diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java b/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java index c2ed84f91f..b7a24e00d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/BaseFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -13,7 +13,6 @@ package io.kubernetes.client.fluent; import java.lang.Object; -import java.lang.String; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedHashSet; @@ -24,7 +23,6 @@ import java.util.stream.Collectors; public class BaseFluent{ - public static final String VISIT = "visit"; public final VisitableMap _visitables = new VisitableMap(); diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java b/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java index b5cbcdc323..9d428b698e 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Builder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java index 99056b2e18..a94eed598b 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/DelegatingVisitor.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java b/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java index 428eade02d..8b635e3c45 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Editable.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java b/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java index afadec9e00..9f3e80d5ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Nested.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java index e10207ff18..0207f6544d 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/PathAwareTypedVisitor.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java index 85e5fa284e..8055451909 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/TypedVisitor.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java b/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java index a80dfc783c..e4161ec766 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitable.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java index 84722affed..56d4f1e88c 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java index b167f7323f..9a89e3e916 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitableMap.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java b/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java index a5e6d22b1d..68c2dda2e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitor.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java index f363e3eeb8..cda1990d2d 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorListener.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java index 66dea40d74..df21792c63 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/VisitorWiretap.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java b/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java index 15e8b5c13c..a14c10599f 100644 --- a/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java +++ b/fluent/src/main/java/io/kubernetes/client/fluent/Visitors.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java index ddb260c1be..c1a109d75a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchemaFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java index 772e517dfb..33aafc1fd4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java index 56dd80bde4..de6b616572 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java index 0afc43237b..a1b151f9d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java index f51bd94e02..2ec9d8fe8a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfigFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java index 887eebf9ec..7461caff53 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java index c5289ed0a0..ea553738a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java index 27563d2882..9b2a4f8aa4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java index 06fbef43b8..b4c4df6ee9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfigFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java index 589962cf62..c6e7a1ee0d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java index 67cf2e25d5..ecff923d1b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java index 50b7b57b2e..a790d7b4e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java index 462542df5e..7a33138410 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequestFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java index 9a092c1045..56cb88550b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java index 14294b5ecf..0c2c5d16a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPortFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java index e45ff140f2..e1a571f88e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java index 92b747ae74..d458cab186 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java index 38856a0fd8..de5db7240b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java index a94df635de..e297376328 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (CoreV1Event item : items) { CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(CoreV1Event... items) { } for (CoreV1Event item : items) { CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,CoreV1Event item) { this.items = new ArrayList(); } CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { CoreV1EventBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,CoreV1Event item) { this.items = new ArrayList(); } CoreV1EventBuilder builder = new CoreV1EventBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java index bf03e659d2..c0423bfe4e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java index 49b6b677d5..d92743bde4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeriesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java index f506f75a23..ff53f63bd2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java index 43d716ecaa..9399233c2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaimFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java index 2c81179c61..c5d113491c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java index a8a44462e7..ecddd9f212 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPortFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java index 2611ead988..d4d41d55b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java index 73c6c4e84a..3db966e22c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java index 47b15a835f..50969d2eee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java index 305e2f6b1b..016451644a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (EventsV1Event item : items) { EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(EventsV1Event... items) { } for (EventsV1Event item : items) { EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,EventsV1Event item) { this.items = new ArrayList(); } EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { EventsV1EventBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,EventsV1Event item) { this.items = new ArrayList(); } EventsV1EventBuilder builder = new EventsV1EventBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java index aa27ec3685..e87bd48808 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java index 4a1f21329c..3074305f25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeriesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java index 807a3fb097..4c734a838c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java index 6196408f00..62f0e75f76 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1SubjectFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java index 734c4d9f5e..b5951ec64f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java index 5a0244e36d..b6b2ee2298 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/RbacV1SubjectFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java index 40e3b8e6e6..39309b638c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java index 78af8531b0..d61fb6e3db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaimFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java index 703dd501f0..e9347a7ab9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java index 3eddd99d40..82cbd09170 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequestFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java index ee9491b65d..a04f770c11 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java index 108cabbaca..7a1cc59760 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -53,7 +53,7 @@ public A addAllToServerAddressByClientCIDRs(Collection items) { } for (V1GroupVersionForDiscovery item : items) { V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - _visitables.get("versions").add(builder); + this._visitables.get("versions").add(builder); this.versions.add(builder); } return (A) this; @@ -93,7 +93,7 @@ public A addToServerAddressByClientCIDRs(V1ServerAddressByClientCIDR... items) { } for (V1ServerAddressByClientCIDR item : items) { V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - _visitables.get("serverAddressByClientCIDRs").add(builder); + this._visitables.get("serverAddressByClientCIDRs").add(builder); this.serverAddressByClientCIDRs.add(builder); } return (A) this; @@ -104,12 +104,12 @@ public A addToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR i this.serverAddressByClientCIDRs = new ArrayList(); } V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { - _visitables.get("serverAddressByClientCIDRs").add(builder); - serverAddressByClientCIDRs.add(builder); + if (index < 0 || index >= this.serverAddressByClientCIDRs.size()) { + this._visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.add(builder); } else { - _visitables.get("serverAddressByClientCIDRs").add(builder); - serverAddressByClientCIDRs.add(index, builder); + this._visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.add(index, builder); } return (A) this; } @@ -120,7 +120,7 @@ public A addToVersions(V1GroupVersionForDiscovery... items) { } for (V1GroupVersionForDiscovery item : items) { V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - _visitables.get("versions").add(builder); + this._visitables.get("versions").add(builder); this.versions.add(builder); } return (A) this; @@ -131,12 +131,12 @@ public A addToVersions(int index,V1GroupVersionForDiscovery item) { this.versions = new ArrayList(); } V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - if (index < 0 || index >= versions.size()) { - _visitables.get("versions").add(builder); - versions.add(builder); + if (index < 0 || index >= this.versions.size()) { + this._visitables.get("versions").add(builder); + this.versions.add(builder); } else { - _visitables.get("versions").add(builder); - versions.add(index, builder); + this._visitables.get("versions").add(builder); + this.versions.add(index, builder); } return (A) this; } @@ -434,7 +434,7 @@ public A removeMatchingFromServerAddressByClientCIDRs(Predicate each = serverAddressByClientCIDRs.iterator(); - List visitables = _visitables.get("serverAddressByClientCIDRs"); + List visitables = this._visitables.get("serverAddressByClientCIDRs"); while (each.hasNext()) { V1ServerAddressByClientCIDRBuilder builder = each.next(); if (predicate.test(builder)) { @@ -450,7 +450,7 @@ public A removeMatchingFromVersions(Predicate return (A) this; } Iterator each = versions.iterator(); - List visitables = _visitables.get("versions"); + List visitables = this._visitables.get("versions"); while (each.hasNext()) { V1GroupVersionForDiscoveryBuilder builder = each.next(); if (predicate.test(builder)) { @@ -474,12 +474,12 @@ public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR i this.serverAddressByClientCIDRs = new ArrayList(); } V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { - _visitables.get("serverAddressByClientCIDRs").add(builder); - serverAddressByClientCIDRs.add(builder); + if (index < 0 || index >= this.serverAddressByClientCIDRs.size()) { + this._visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.add(builder); } else { - _visitables.get("serverAddressByClientCIDRs").add(builder); - serverAddressByClientCIDRs.set(index, builder); + this._visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.set(index, builder); } return (A) this; } @@ -489,12 +489,12 @@ public A setToVersions(int index,V1GroupVersionForDiscovery item) { this.versions = new ArrayList(); } V1GroupVersionForDiscoveryBuilder builder = new V1GroupVersionForDiscoveryBuilder(item); - if (index < 0 || index >= versions.size()) { - _visitables.get("versions").add(builder); - versions.add(builder); + if (index < 0 || index >= this.versions.size()) { + this._visitables.get("versions").add(builder); + this.versions.add(builder); } else { - _visitables.get("versions").add(builder); - versions.set(index, builder); + this._visitables.get("versions").add(builder); + this.versions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java index fc46d32b3a..3ba286108b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java index 51c3fb6c09..abffabc87c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ public A addAllToGroups(Collection items) { } for (V1APIGroup item : items) { V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - _visitables.get("groups").add(builder); + this._visitables.get("groups").add(builder); this.groups.add(builder); } return (A) this; @@ -69,7 +69,7 @@ public A addToGroups(V1APIGroup... items) { } for (V1APIGroup item : items) { V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - _visitables.get("groups").add(builder); + this._visitables.get("groups").add(builder); this.groups.add(builder); } return (A) this; @@ -80,12 +80,12 @@ public A addToGroups(int index,V1APIGroup item) { this.groups = new ArrayList(); } V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - if (index < 0 || index >= groups.size()) { - _visitables.get("groups").add(builder); - groups.add(builder); + if (index < 0 || index >= this.groups.size()) { + this._visitables.get("groups").add(builder); + this.groups.add(builder); } else { - _visitables.get("groups").add(builder); - groups.add(index, builder); + this._visitables.get("groups").add(builder); + this.groups.add(index, builder); } return (A) this; } @@ -245,7 +245,7 @@ public A removeMatchingFromGroups(Predicate predicate) { return (A) this; } Iterator each = groups.iterator(); - List visitables = _visitables.get("groups"); + List visitables = this._visitables.get("groups"); while (each.hasNext()) { V1APIGroupBuilder builder = each.next(); if (predicate.test(builder)) { @@ -265,12 +265,12 @@ public A setToGroups(int index,V1APIGroup item) { this.groups = new ArrayList(); } V1APIGroupBuilder builder = new V1APIGroupBuilder(item); - if (index < 0 || index >= groups.size()) { - _visitables.get("groups").add(builder); - groups.add(builder); + if (index < 0 || index >= this.groups.size()) { + this._visitables.get("groups").add(builder); + this.groups.add(builder); } else { - _visitables.get("groups").add(builder); - groups.set(index, builder); + this._visitables.get("groups").add(builder); + this.groups.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java index d1b9e2cae6..ea4741e3a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java index b40c7455f2..b0b74f74a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java index 2b7f60acbb..2ebefd5207 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java index 01b248dd6c..7535753b92 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -50,7 +50,7 @@ public A addAllToResources(Collection items) { } for (V1APIResource item : items) { V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - _visitables.get("resources").add(builder); + this._visitables.get("resources").add(builder); this.resources.add(builder); } return (A) this; @@ -70,7 +70,7 @@ public A addToResources(V1APIResource... items) { } for (V1APIResource item : items) { V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - _visitables.get("resources").add(builder); + this._visitables.get("resources").add(builder); this.resources.add(builder); } return (A) this; @@ -81,12 +81,12 @@ public A addToResources(int index,V1APIResource item) { this.resources = new ArrayList(); } V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - if (index < 0 || index >= resources.size()) { - _visitables.get("resources").add(builder); - resources.add(builder); + if (index < 0 || index >= this.resources.size()) { + this._visitables.get("resources").add(builder); + this.resources.add(builder); } else { - _visitables.get("resources").add(builder); - resources.add(index, builder); + this._visitables.get("resources").add(builder); + this.resources.add(index, builder); } return (A) this; } @@ -258,7 +258,7 @@ public A removeMatchingFromResources(Predicate predicate) return (A) this; } Iterator each = resources.iterator(); - List visitables = _visitables.get("resources"); + List visitables = this._visitables.get("resources"); while (each.hasNext()) { V1APIResourceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -278,12 +278,12 @@ public A setToResources(int index,V1APIResource item) { this.resources = new ArrayList(); } V1APIResourceBuilder builder = new V1APIResourceBuilder(item); - if (index < 0 || index >= resources.size()) { - _visitables.get("resources").add(builder); - resources.add(builder); + if (index < 0 || index >= this.resources.size()) { + this._visitables.get("resources").add(builder); + this.resources.add(builder); } else { - _visitables.get("resources").add(builder); - resources.set(index, builder); + this._visitables.get("resources").add(builder); + this.resources.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java index 959396f7fb..d2ab1eee4d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java index 96c70a70d8..56745507df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java index f360541b84..8f32d6fd64 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java index 2b356619a2..12383796a3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java index 43dda75300..cc97405bd3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java index 74659c505f..eb9304c739 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1APIService item : items) { V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1APIService... items) { } for (V1APIService item : items) { V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1APIService item) { this.items = new ArrayList(); } V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1APIServiceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1APIService item) { this.items = new ArrayList(); } V1APIServiceBuilder builder = new V1APIServiceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java index 10f0407362..67a8131363 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java index ef3f39028e..816938bdcc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java index fdb43a2f89..171e032446 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java index 98e85c6636..6cd1ccead5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToConditions(Collection items) { } for (V1APIServiceCondition item : items) { V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToConditions(V1APIServiceCondition... items) { } for (V1APIServiceCondition item : items) { V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToConditions(int index,V1APIServiceCondition item) { this.conditions = new ArrayList(); } V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromConditions(Predicate pr return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1APIServiceConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToConditions(int index,V1APIServiceCondition item) { this.conditions = new ArrayList(); } V1APIServiceConditionBuilder builder = new V1APIServiceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java index cc6395d585..ac6d0fab52 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java index f1f0c601e2..b641907a95 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1APIVersionsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -50,7 +50,7 @@ public A addAllToServerAddressByClientCIDRs(Collection= serverAddressByClientCIDRs.size()) { - _visitables.get("serverAddressByClientCIDRs").add(builder); - serverAddressByClientCIDRs.add(builder); + if (index < 0 || index >= this.serverAddressByClientCIDRs.size()) { + this._visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.add(builder); } else { - _visitables.get("serverAddressByClientCIDRs").add(builder); - serverAddressByClientCIDRs.add(index, builder); + this._visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.add(index, builder); } return (A) this; } @@ -336,7 +336,7 @@ public A removeMatchingFromServerAddressByClientCIDRs(Predicate each = serverAddressByClientCIDRs.iterator(); - List visitables = _visitables.get("serverAddressByClientCIDRs"); + List visitables = this._visitables.get("serverAddressByClientCIDRs"); while (each.hasNext()) { V1ServerAddressByClientCIDRBuilder builder = each.next(); if (predicate.test(builder)) { @@ -356,12 +356,12 @@ public A setToServerAddressByClientCIDRs(int index,V1ServerAddressByClientCIDR i this.serverAddressByClientCIDRs = new ArrayList(); } V1ServerAddressByClientCIDRBuilder builder = new V1ServerAddressByClientCIDRBuilder(item); - if (index < 0 || index >= serverAddressByClientCIDRs.size()) { - _visitables.get("serverAddressByClientCIDRs").add(builder); - serverAddressByClientCIDRs.add(builder); + if (index < 0 || index >= this.serverAddressByClientCIDRs.size()) { + this._visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.add(builder); } else { - _visitables.get("serverAddressByClientCIDRs").add(builder); - serverAddressByClientCIDRs.set(index, builder); + this._visitables.get("serverAddressByClientCIDRs").add(builder); + this.serverAddressByClientCIDRs.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java index 53b636ef61..4acc741400 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java index 0bce0bb254..90790a3fc0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java index bb7d394228..0e16c407bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java index eb0019a116..8e7ea51dab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AffinityFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java index ad6b31e008..b75db57cfa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java index 1dd3d1473c..6c20b50bd6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRuleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToClusterRoleSelectors(Collection items) { } for (V1LabelSelector item : items) { V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - _visitables.get("clusterRoleSelectors").add(builder); + this._visitables.get("clusterRoleSelectors").add(builder); this.clusterRoleSelectors.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToClusterRoleSelectors(V1LabelSelector... items) { } for (V1LabelSelector item : items) { V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - _visitables.get("clusterRoleSelectors").add(builder); + this._visitables.get("clusterRoleSelectors").add(builder); this.clusterRoleSelectors.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToClusterRoleSelectors(int index,V1LabelSelector item) { this.clusterRoleSelectors = new ArrayList(); } V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - if (index < 0 || index >= clusterRoleSelectors.size()) { - _visitables.get("clusterRoleSelectors").add(builder); - clusterRoleSelectors.add(builder); + if (index < 0 || index >= this.clusterRoleSelectors.size()) { + this._visitables.get("clusterRoleSelectors").add(builder); + this.clusterRoleSelectors.add(builder); } else { - _visitables.get("clusterRoleSelectors").add(builder); - clusterRoleSelectors.add(index, builder); + this._visitables.get("clusterRoleSelectors").add(builder); + this.clusterRoleSelectors.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromClusterRoleSelectors(Predicate each = clusterRoleSelectors.iterator(); - List visitables = _visitables.get("clusterRoleSelectors"); + List visitables = this._visitables.get("clusterRoleSelectors"); while (each.hasNext()) { V1LabelSelectorBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToClusterRoleSelectors(int index,V1LabelSelector item) { this.clusterRoleSelectors = new ArrayList(); } V1LabelSelectorBuilder builder = new V1LabelSelectorBuilder(item); - if (index < 0 || index >= clusterRoleSelectors.size()) { - _visitables.get("clusterRoleSelectors").add(builder); - clusterRoleSelectors.add(builder); + if (index < 0 || index >= this.clusterRoleSelectors.size()) { + this._visitables.get("clusterRoleSelectors").add(builder); + this.clusterRoleSelectors.add(builder); } else { - _visitables.get("clusterRoleSelectors").add(builder); - clusterRoleSelectors.set(index, builder); + this._visitables.get("clusterRoleSelectors").add(builder); + this.clusterRoleSelectors.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusBuilder.java index 9b2181e187..b54bec923b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java index 1086b6bb72..4dbe6b2554 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -54,7 +54,7 @@ public A addAllToConditions(Collection items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -74,7 +74,7 @@ public A addToConditions(V1Condition... items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -85,12 +85,12 @@ public A addToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -310,7 +310,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -330,12 +330,12 @@ public A setToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java index 1156da1b9b..c27281a70e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java index 1250444f5b..8a50161dde 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResultFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java index c380041a92..9a238812d9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java index a72df5f0ee..96f7506f5a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfileFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfigurationBuilder.java new file mode 100644 index 0000000000..90de4ce439 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfigurationBuilder.java @@ -0,0 +1,45 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ApplyConfigurationBuilder extends V1ApplyConfigurationFluent implements VisitableBuilder{ + + V1ApplyConfigurationFluent fluent; + + public V1ApplyConfigurationBuilder() { + this(new V1ApplyConfiguration()); + } + + public V1ApplyConfigurationBuilder(V1ApplyConfigurationFluent fluent) { + this(fluent, new V1ApplyConfiguration()); + } + + public V1ApplyConfigurationBuilder(V1ApplyConfiguration instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ApplyConfigurationBuilder(V1ApplyConfigurationFluent fluent,V1ApplyConfiguration instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ApplyConfiguration build() { + V1ApplyConfiguration buildable = new V1ApplyConfiguration(); + buildable.setExpression(fluent.getExpression()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfigurationFluent.java new file mode 100644 index 0000000000..2e21ffb5a5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfigurationFluent.java @@ -0,0 +1,89 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ApplyConfigurationFluent> extends BaseFluent{ + + private String expression; + + public V1ApplyConfigurationFluent() { + } + + public V1ApplyConfigurationFluent(V1ApplyConfiguration instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1ApplyConfiguration instance) { + instance = instance != null ? instance : new V1ApplyConfiguration(); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ApplyConfigurationFluent that = (V1ApplyConfigurationFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + return true; + } + + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public int hashCode() { + return Objects.hash(expression); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } + sb.append("}"); + return sb.toString(); + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java index db705fd62b..a022c841c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java index cc34702909..08a6b9d75a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolumeFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java index c09733ca63..e336bfae11 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java index c4d3b83275..721654daef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java index 729eaee784..72d48a652a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java index 695237ae94..abd64ac55e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java index 4fbc78c023..15f085ac1c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java index f6ad364da2..70b2a65d24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java index d8d8f3f082..c2f537708a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java index 38a149552b..2dd62b7c68 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java index a7337372ac..4498d3f390 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java index 8fd2bee240..fd02a0929b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BindingFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java index cede154328..f1aaab201b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java index 050037c577..433b1dc8cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java index 99a81143f8..2a52ec67ee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java index d68397a987..7ec032f182 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelectorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java index ac0e44ac5d..b7c752ddaa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java index 4e3ff4a6a2..e5c6a8beb9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java index 3fa04e8549..2980000119 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java index adc1550afb..0afd80ac8b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1CSIDriver item : items) { V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1CSIDriver... items) { } for (V1CSIDriver item : items) { V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1CSIDriver item) { this.items = new ArrayList(); } V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1CSIDriverBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1CSIDriver item) { this.items = new ArrayList(); } V1CSIDriverBuilder builder = new V1CSIDriverBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java index de37731ad2..807bca7b22 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -42,6 +42,7 @@ public V1CSIDriverSpec build() { buildable.setFsGroupPolicy(fluent.getFsGroupPolicy()); buildable.setNodeAllocatableUpdatePeriodSeconds(fluent.getNodeAllocatableUpdatePeriodSeconds()); buildable.setPodInfoOnMount(fluent.getPodInfoOnMount()); + buildable.setPreventPodSchedulingIfMissing(fluent.getPreventPodSchedulingIfMissing()); buildable.setRequiresRepublish(fluent.getRequiresRepublish()); buildable.setSeLinuxMount(fluent.getSeLinuxMount()); buildable.setServiceAccountTokenInSecrets(fluent.getServiceAccountTokenInSecrets()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java index 4a540bf503..68afee43b7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -38,6 +38,7 @@ public class V1CSIDriverSpecFluent items) { } for (StorageV1TokenRequest item : items) { StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - _visitables.get("tokenRequests").add(builder); + this._visitables.get("tokenRequests").add(builder); this.tokenRequests.add(builder); } return (A) this; @@ -88,7 +89,7 @@ public A addToTokenRequests(StorageV1TokenRequest... items) { } for (StorageV1TokenRequest item : items) { StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - _visitables.get("tokenRequests").add(builder); + this._visitables.get("tokenRequests").add(builder); this.tokenRequests.add(builder); } return (A) this; @@ -99,12 +100,12 @@ public A addToTokenRequests(int index,StorageV1TokenRequest item) { this.tokenRequests = new ArrayList(); } StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - if (index < 0 || index >= tokenRequests.size()) { - _visitables.get("tokenRequests").add(builder); - tokenRequests.add(builder); + if (index < 0 || index >= this.tokenRequests.size()) { + this._visitables.get("tokenRequests").add(builder); + this.tokenRequests.add(builder); } else { - _visitables.get("tokenRequests").add(builder); - tokenRequests.add(index, builder); + this._visitables.get("tokenRequests").add(builder); + this.tokenRequests.add(index, builder); } return (A) this; } @@ -159,6 +160,7 @@ protected void copyInstance(V1CSIDriverSpec instance) { this.withFsGroupPolicy(instance.getFsGroupPolicy()); this.withNodeAllocatableUpdatePeriodSeconds(instance.getNodeAllocatableUpdatePeriodSeconds()); this.withPodInfoOnMount(instance.getPodInfoOnMount()); + this.withPreventPodSchedulingIfMissing(instance.getPreventPodSchedulingIfMissing()); this.withRequiresRepublish(instance.getRequiresRepublish()); this.withSeLinuxMount(instance.getSeLinuxMount()); this.withServiceAccountTokenInSecrets(instance.getServiceAccountTokenInSecrets()); @@ -227,6 +229,9 @@ public boolean equals(Object o) { if (!(Objects.equals(podInfoOnMount, that.podInfoOnMount))) { return false; } + if (!(Objects.equals(preventPodSchedulingIfMissing, that.preventPodSchedulingIfMissing))) { + return false; + } if (!(Objects.equals(requiresRepublish, that.requiresRepublish))) { return false; } @@ -281,6 +286,10 @@ public Boolean getPodInfoOnMount() { return this.podInfoOnMount; } + public Boolean getPreventPodSchedulingIfMissing() { + return this.preventPodSchedulingIfMissing; + } + public Boolean getRequiresRepublish() { return this.requiresRepublish; } @@ -339,6 +348,10 @@ public boolean hasPodInfoOnMount() { return this.podInfoOnMount != null; } + public boolean hasPreventPodSchedulingIfMissing() { + return this.preventPodSchedulingIfMissing != null; + } + public boolean hasRequiresRepublish() { return this.requiresRepublish != null; } @@ -364,7 +377,7 @@ public boolean hasVolumeLifecycleModes() { } public int hashCode() { - return Objects.hash(attachRequired, fsGroupPolicy, nodeAllocatableUpdatePeriodSeconds, podInfoOnMount, requiresRepublish, seLinuxMount, serviceAccountTokenInSecrets, storageCapacity, tokenRequests, volumeLifecycleModes); + return Objects.hash(attachRequired, fsGroupPolicy, nodeAllocatableUpdatePeriodSeconds, podInfoOnMount, preventPodSchedulingIfMissing, requiresRepublish, seLinuxMount, serviceAccountTokenInSecrets, storageCapacity, tokenRequests, volumeLifecycleModes); } public A removeAllFromTokenRequests(Collection items) { @@ -416,7 +429,7 @@ public A removeMatchingFromTokenRequests(Predicate return (A) this; } Iterator each = tokenRequests.iterator(); - List visitables = _visitables.get("tokenRequests"); + List visitables = this._visitables.get("tokenRequests"); while (each.hasNext()) { StorageV1TokenRequestBuilder builder = each.next(); if (predicate.test(builder)) { @@ -436,12 +449,12 @@ public A setToTokenRequests(int index,StorageV1TokenRequest item) { this.tokenRequests = new ArrayList(); } StorageV1TokenRequestBuilder builder = new StorageV1TokenRequestBuilder(item); - if (index < 0 || index >= tokenRequests.size()) { - _visitables.get("tokenRequests").add(builder); - tokenRequests.add(builder); + if (index < 0 || index >= this.tokenRequests.size()) { + this._visitables.get("tokenRequests").add(builder); + this.tokenRequests.add(builder); } else { - _visitables.get("tokenRequests").add(builder); - tokenRequests.set(index, builder); + this._visitables.get("tokenRequests").add(builder); + this.tokenRequests.set(index, builder); } return (A) this; } @@ -477,6 +490,11 @@ public String toString() { sb.append(podInfoOnMount); sb.append(","); } + if (!(preventPodSchedulingIfMissing == null)) { + sb.append("preventPodSchedulingIfMissing:"); + sb.append(preventPodSchedulingIfMissing); + sb.append(","); + } if (!(requiresRepublish == null)) { sb.append("requiresRepublish:"); sb.append(requiresRepublish); @@ -538,6 +556,15 @@ public A withPodInfoOnMount(Boolean podInfoOnMount) { return (A) this; } + public A withPreventPodSchedulingIfMissing() { + return withPreventPodSchedulingIfMissing(true); + } + + public A withPreventPodSchedulingIfMissing(Boolean preventPodSchedulingIfMissing) { + this.preventPodSchedulingIfMissing = preventPodSchedulingIfMissing; + return (A) this; + } + public A withRequiresRepublish() { return withRequiresRepublish(true); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java index 61726ce8b2..9ca5cff9b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java index 6da9cbf84e..292a4c18db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java index 1b37f8f34f..ce84892e91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriverFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java index cd1cbe1e70..2c793d66c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java index 03f366c942..27287c5486 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java index 95682405bd..6d05f6402f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1CSINode item : items) { V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1CSINode... items) { } for (V1CSINode item : items) { V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1CSINode item) { this.items = new ArrayList(); } V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1CSINodeBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1CSINode item) { this.items = new ArrayList(); } V1CSINodeBuilder builder = new V1CSINodeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java index 559ba45c46..50cf17ae0f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java index e6dd04c62b..76ea3f06d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToDrivers(Collection items) { } for (V1CSINodeDriver item : items) { V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - _visitables.get("drivers").add(builder); + this._visitables.get("drivers").add(builder); this.drivers.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToDrivers(V1CSINodeDriver... items) { } for (V1CSINodeDriver item : items) { V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - _visitables.get("drivers").add(builder); + this._visitables.get("drivers").add(builder); this.drivers.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToDrivers(int index,V1CSINodeDriver item) { this.drivers = new ArrayList(); } V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - if (index < 0 || index >= drivers.size()) { - _visitables.get("drivers").add(builder); - drivers.add(builder); + if (index < 0 || index >= this.drivers.size()) { + this._visitables.get("drivers").add(builder); + this.drivers.add(builder); } else { - _visitables.get("drivers").add(builder); - drivers.add(index, builder); + this._visitables.get("drivers").add(builder); + this.drivers.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromDrivers(Predicate predicate) return (A) this; } Iterator each = drivers.iterator(); - List visitables = _visitables.get("drivers"); + List visitables = this._visitables.get("drivers"); while (each.hasNext()) { V1CSINodeDriverBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToDrivers(int index,V1CSINodeDriver item) { this.drivers = new ArrayList(); } V1CSINodeDriverBuilder builder = new V1CSINodeDriverBuilder(item); - if (index < 0 || index >= drivers.size()) { - _visitables.get("drivers").add(builder); - drivers.add(builder); + if (index < 0 || index >= this.drivers.size()) { + this._visitables.get("drivers").add(builder); + this.drivers.add(builder); } else { - _visitables.get("drivers").add(builder); - drivers.set(index, builder); + this._visitables.get("drivers").add(builder); + this.drivers.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java index 311c60103a..d0455fa7ab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java index 98b77ee015..11815e1a15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java index 533cad863a..d326b4fcaf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java index 23f97c7f10..7fec11fca8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java index adce71e615..e11324836e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java index b0b88ff151..5411765a04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1CSIStorageCapacity item : items) { V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1CSIStorageCapacity... items) { } for (V1CSIStorageCapacity item : items) { V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1CSIStorageCapacity item) { this.items = new ArrayList(); } V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicat return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1CSIStorageCapacityBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1CSIStorageCapacity item) { this.items = new ArrayList(); } V1CSIStorageCapacityBuilder builder = new V1CSIStorageCapacityBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java index 0335293481..b017bcdaaf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java index 448c67647e..a250cd1ab0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java index 8fa6d4cbd4..e8e24fb936 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java index 284ed259a6..717843c0d4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapabilitiesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java index d037815eed..063ef6d13d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java index 983277e214..5c520bd12b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -82,7 +82,6 @@ public V1CapacityRequestPolicyRange buildValidRange() { protected void copyInstance(V1CapacityRequestPolicy instance) { instance = instance != null ? instance : new V1CapacityRequestPolicy(); if (instance != null) { - this.withDefault(instance.getDefault()); this.withValidRange(instance.getValidRange()); this.withValidValues(instance.getValidValues()); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java index 340f3ad184..1985a388a5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java index 0ba943a76e..3a412887b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRangeFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java index 329fd9e81d..23bf7b939e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java index 2d05dff182..765689e85e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirementsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java index ff65c8545f..f58673c2cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java index 69ba4560b8..520b39ae6d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java index 71f93f059a..63b91d011b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java index 6346cb2ad6..70cc9be910 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java index a47af55878..6fc7c6d616 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java index ef6fb480ac..c6b52e50b5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java index 00e8ca1384..98f6f0664b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java index 0918780c72..7617a335d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java index 175c097247..fca22b5320 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java index c83c77c706..7481cc568a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1CertificateSigningRequest item : items) { V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1CertificateSigningRequest... items) { } for (V1CertificateSigningRequest item : items) { V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1CertificateSigningRequest item) { this.items = new ArrayList(); } V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate p return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1CertificateSigningRequestBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1CertificateSigningRequest item) { this.items = new ArrayList(); } V1CertificateSigningRequestBuilder builder = new V1CertificateSigningRequestBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java index 4a8a40bfa9..595ce0c10b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java index f6b572d78e..04ef57f7c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java index dcfd1b02d7..247ede70c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java index 119c8fefea..3657b690ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -59,7 +59,7 @@ public A addAllToConditions(Collection ite } for (V1CertificateSigningRequestCondition item : items) { V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -97,7 +97,7 @@ public A addToConditions(V1CertificateSigningRequestCondition... items) { } for (V1CertificateSigningRequestCondition item : items) { V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -108,12 +108,12 @@ public A addToConditions(int index,V1CertificateSigningRequestCondition item) { this.conditions = new ArrayList(); } V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -290,7 +290,7 @@ public A removeMatchingFromConditions(Predicate each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1CertificateSigningRequestConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -318,12 +318,12 @@ public A setToConditions(int index,V1CertificateSigningRequestCondition item) { this.conditions = new ArrayList(); } V1CertificateSigningRequestConditionBuilder builder = new V1CertificateSigningRequestConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java index aabbd42242..d9d9aece62 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java index da42f2ad5d..a3f40f72fe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java index 53d2712d40..c095cbeea4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java index 9d43c0ca0c..f030d59e63 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java index c73d25669e..97f76bb86a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java index 2bda807801..a2216e3b2b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfigFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java index 875a9290e2..978d668678 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java index 5611e5e57d..6faf5d5072 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -52,7 +52,7 @@ public A addAllToSubjects(Collection items) { } for (RbacV1Subject item : items) { RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - _visitables.get("subjects").add(builder); + this._visitables.get("subjects").add(builder); this.subjects.add(builder); } return (A) this; @@ -72,7 +72,7 @@ public A addToSubjects(RbacV1Subject... items) { } for (RbacV1Subject item : items) { RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - _visitables.get("subjects").add(builder); + this._visitables.get("subjects").add(builder); this.subjects.add(builder); } return (A) this; @@ -83,12 +83,12 @@ public A addToSubjects(int index,RbacV1Subject item) { this.subjects = new ArrayList(); } RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { - _visitables.get("subjects").add(builder); - subjects.add(builder); + if (index < 0 || index >= this.subjects.size()) { + this._visitables.get("subjects").add(builder); + this.subjects.add(builder); } else { - _visitables.get("subjects").add(builder); - subjects.add(index, builder); + this._visitables.get("subjects").add(builder); + this.subjects.add(index, builder); } return (A) this; } @@ -296,7 +296,7 @@ public A removeMatchingFromSubjects(Predicate predicate) { return (A) this; } Iterator each = subjects.iterator(); - List visitables = _visitables.get("subjects"); + List visitables = this._visitables.get("subjects"); while (each.hasNext()) { RbacV1SubjectBuilder builder = each.next(); if (predicate.test(builder)) { @@ -316,12 +316,12 @@ public A setToSubjects(int index,RbacV1Subject item) { this.subjects = new ArrayList(); } RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { - _visitables.get("subjects").add(builder); - subjects.add(builder); + if (index < 0 || index >= this.subjects.size()) { + this._visitables.get("subjects").add(builder); + this.subjects.add(builder); } else { - _visitables.get("subjects").add(builder); - subjects.set(index, builder); + this._visitables.get("subjects").add(builder); + this.subjects.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java index 0dd9f57092..fd4db45e88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java index afee2c2f36..fca995b51d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1ClusterRoleBinding item : items) { V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1ClusterRoleBinding... items) { } for (V1ClusterRoleBinding item : items) { V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1ClusterRoleBinding item) { this.items = new ArrayList(); } V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicat return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ClusterRoleBindingBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1ClusterRoleBinding item) { this.items = new ArrayList(); } V1ClusterRoleBindingBuilder builder = new V1ClusterRoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java index 628237b777..3b93a32ccf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java index 1ca8ed57c2..fc44853139 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -52,7 +52,7 @@ public A addAllToRules(Collection items) { } for (V1PolicyRule item : items) { V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -72,7 +72,7 @@ public A addToRules(V1PolicyRule... items) { } for (V1PolicyRule item : items) { V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -83,12 +83,12 @@ public A addToRules(int index,V1PolicyRule item) { this.rules = new ArrayList(); } V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.add(index, builder); + this._visitables.get("rules").add(builder); + this.rules.add(index, builder); } return (A) this; } @@ -296,7 +296,7 @@ public A removeMatchingFromRules(Predicate predicate) { return (A) this; } Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); + List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1PolicyRuleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -316,12 +316,12 @@ public A setToRules(int index,V1PolicyRule item) { this.rules = new ArrayList(); } V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.set(index, builder); + this._visitables.get("rules").add(builder); + this.rules.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java index d2cd22885f..947f17e961 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java index 5bc588f02f..a185da7db0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1ClusterRole item : items) { V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1ClusterRole... items) { } for (V1ClusterRole item : items) { V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1ClusterRole item) { this.items = new ArrayList(); } V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ClusterRoleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1ClusterRole item) { this.items = new ArrayList(); } V1ClusterRoleBuilder builder = new V1ClusterRoleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java index 0e72406c75..21483b2e52 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java index c042bd8087..6254e0e00d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjectionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java index 7e0787ec0e..9c2433a87f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java index 16d9fea0fc..9c73f56c8e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java index f29a8f231d..e9d195ad72 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java index 49a4c0067c..b769d28c4a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToConditions(Collection items) { } for (V1ComponentCondition item : items) { V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToConditions(V1ComponentCondition... items) { } for (V1ComponentCondition item : items) { V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToConditions(int index,V1ComponentCondition item) { this.conditions = new ArrayList(); } V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromConditions(Predicate pre return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ComponentConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToConditions(int index,V1ComponentCondition item) { this.conditions = new ArrayList(); } V1ComponentConditionBuilder builder = new V1ComponentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java index f6dea7f89c..9af5243aa5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java index 07a066de4f..2ee5f5701d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1ComponentStatus item : items) { V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1ComponentStatus... items) { } for (V1ComponentStatus item : items) { V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1ComponentStatus item) { this.items = new ArrayList(); } V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ComponentStatusBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1ComponentStatus item) { this.items = new ArrayList(); } V1ComponentStatusBuilder builder = new V1ComponentStatusBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java index 13660c50de..340cad53f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java index d1a7e2dab7..dc66462c96 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java index b94eacafd6..096be48b8c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java index 082a0712b2..d7f4a0b277 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java index 7661ef2484..a2e2f13fb8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java index 0584491c55..4bb18220cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java index 948dc13321..c1299efdcb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java index 246e296174..6a17388fe9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelectorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java index 11cc2ef527..d02476d590 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java index a8c2c687a7..e079af0677 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1ConfigMap item : items) { V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1ConfigMap... items) { } for (V1ConfigMap item : items) { V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1ConfigMap item) { this.items = new ArrayList(); } V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ConfigMapBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1ConfigMap item) { this.items = new ArrayList(); } V1ConfigMapBuilder builder = new V1ConfigMapBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java index 745ce296c8..c0397f3087 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java index c216c1af8a..1d2d9d08b7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java index f0c5a4ddd5..c190408bbc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java index 04fec301d8..8123491d9c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjectionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -50,7 +50,7 @@ public A addAllToItems(Collection items) { } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -70,7 +70,7 @@ public A addToItems(V1KeyToPath... items) { } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -81,12 +81,12 @@ public A addToItems(int index,V1KeyToPath item) { this.items = new ArrayList(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -246,7 +246,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1KeyToPathBuilder builder = each.next(); if (predicate.test(builder)) { @@ -266,12 +266,12 @@ public A setToItems(int index,V1KeyToPath item) { this.items = new ArrayList(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java index 367ff37280..382c1bad20 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java index da5ff80b35..0024a46dfc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -52,7 +52,7 @@ public A addAllToItems(Collection items) { } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -72,7 +72,7 @@ public A addToItems(V1KeyToPath... items) { } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -83,12 +83,12 @@ public A addToItems(int index,V1KeyToPath item) { this.items = new ArrayList(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -260,7 +260,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1KeyToPathBuilder builder = each.next(); if (predicate.test(builder)) { @@ -280,12 +280,12 @@ public A setToItems(int index,V1KeyToPath item) { this.items = new ArrayList(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java index 74c69eb11e..7d1f389ad3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java index 662bcc1c83..2d5f7a3799 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java index 6f7f3674ca..cce6b83755 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequestFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java index 1704ec1d5e..54d2813de3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -93,7 +93,7 @@ public A addAllToEnv(Collection items) { } for (V1EnvVar item : items) { V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").add(builder); + this._visitables.get("env").add(builder); this.env.add(builder); } return (A) this; @@ -105,7 +105,7 @@ public A addAllToEnvFrom(Collection items) { } for (V1EnvFromSource item : items) { V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").add(builder); + this._visitables.get("envFrom").add(builder); this.envFrom.add(builder); } return (A) this; @@ -117,7 +117,7 @@ public A addAllToPorts(Collection items) { } for (V1ContainerPort item : items) { V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -129,7 +129,7 @@ public A addAllToResizePolicy(Collection items) { } for (V1ContainerResizePolicy item : items) { V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - _visitables.get("resizePolicy").add(builder); + this._visitables.get("resizePolicy").add(builder); this.resizePolicy.add(builder); } return (A) this; @@ -141,7 +141,7 @@ public A addAllToRestartPolicyRules(Collection items) { } for (V1ContainerRestartRule item : items) { V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - _visitables.get("restartPolicyRules").add(builder); + this._visitables.get("restartPolicyRules").add(builder); this.restartPolicyRules.add(builder); } return (A) this; @@ -153,7 +153,7 @@ public A addAllToVolumeDevices(Collection items) { } for (V1VolumeDevice item : items) { V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").add(builder); + this._visitables.get("volumeDevices").add(builder); this.volumeDevices.add(builder); } return (A) this; @@ -165,7 +165,7 @@ public A addAllToVolumeMounts(Collection items) { } for (V1VolumeMount item : items) { V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").add(builder); + this._visitables.get("volumeMounts").add(builder); this.volumeMounts.add(builder); } return (A) this; @@ -269,7 +269,7 @@ public A addToEnv(V1EnvVar... items) { } for (V1EnvVar item : items) { V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").add(builder); + this._visitables.get("env").add(builder); this.env.add(builder); } return (A) this; @@ -280,12 +280,12 @@ public A addToEnv(int index,V1EnvVar item) { this.env = new ArrayList(); } V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { - _visitables.get("env").add(builder); - env.add(builder); + if (index < 0 || index >= this.env.size()) { + this._visitables.get("env").add(builder); + this.env.add(builder); } else { - _visitables.get("env").add(builder); - env.add(index, builder); + this._visitables.get("env").add(builder); + this.env.add(index, builder); } return (A) this; } @@ -296,7 +296,7 @@ public A addToEnvFrom(V1EnvFromSource... items) { } for (V1EnvFromSource item : items) { V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").add(builder); + this._visitables.get("envFrom").add(builder); this.envFrom.add(builder); } return (A) this; @@ -307,12 +307,12 @@ public A addToEnvFrom(int index,V1EnvFromSource item) { this.envFrom = new ArrayList(); } V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { - _visitables.get("envFrom").add(builder); - envFrom.add(builder); + if (index < 0 || index >= this.envFrom.size()) { + this._visitables.get("envFrom").add(builder); + this.envFrom.add(builder); } else { - _visitables.get("envFrom").add(builder); - envFrom.add(index, builder); + this._visitables.get("envFrom").add(builder); + this.envFrom.add(index, builder); } return (A) this; } @@ -323,7 +323,7 @@ public A addToPorts(V1ContainerPort... items) { } for (V1ContainerPort item : items) { V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -334,12 +334,12 @@ public A addToPorts(int index,V1ContainerPort item) { this.ports = new ArrayList(); } V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.add(index, builder); + this._visitables.get("ports").add(builder); + this.ports.add(index, builder); } return (A) this; } @@ -350,7 +350,7 @@ public A addToResizePolicy(V1ContainerResizePolicy... items) { } for (V1ContainerResizePolicy item : items) { V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - _visitables.get("resizePolicy").add(builder); + this._visitables.get("resizePolicy").add(builder); this.resizePolicy.add(builder); } return (A) this; @@ -361,12 +361,12 @@ public A addToResizePolicy(int index,V1ContainerResizePolicy item) { this.resizePolicy = new ArrayList(); } V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { - _visitables.get("resizePolicy").add(builder); - resizePolicy.add(builder); + if (index < 0 || index >= this.resizePolicy.size()) { + this._visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); } else { - _visitables.get("resizePolicy").add(builder); - resizePolicy.add(index, builder); + this._visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(index, builder); } return (A) this; } @@ -377,7 +377,7 @@ public A addToRestartPolicyRules(V1ContainerRestartRule... items) { } for (V1ContainerRestartRule item : items) { V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - _visitables.get("restartPolicyRules").add(builder); + this._visitables.get("restartPolicyRules").add(builder); this.restartPolicyRules.add(builder); } return (A) this; @@ -388,12 +388,12 @@ public A addToRestartPolicyRules(int index,V1ContainerRestartRule item) { this.restartPolicyRules = new ArrayList(); } V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - if (index < 0 || index >= restartPolicyRules.size()) { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.add(builder); + if (index < 0 || index >= this.restartPolicyRules.size()) { + this._visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); } else { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.add(index, builder); + this._visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(index, builder); } return (A) this; } @@ -404,7 +404,7 @@ public A addToVolumeDevices(V1VolumeDevice... items) { } for (V1VolumeDevice item : items) { V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").add(builder); + this._visitables.get("volumeDevices").add(builder); this.volumeDevices.add(builder); } return (A) this; @@ -415,12 +415,12 @@ public A addToVolumeDevices(int index,V1VolumeDevice item) { this.volumeDevices = new ArrayList(); } V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { - _visitables.get("volumeDevices").add(builder); - volumeDevices.add(builder); + if (index < 0 || index >= this.volumeDevices.size()) { + this._visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); } else { - _visitables.get("volumeDevices").add(builder); - volumeDevices.add(index, builder); + this._visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(index, builder); } return (A) this; } @@ -431,7 +431,7 @@ public A addToVolumeMounts(V1VolumeMount... items) { } for (V1VolumeMount item : items) { V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").add(builder); + this._visitables.get("volumeMounts").add(builder); this.volumeMounts.add(builder); } return (A) this; @@ -442,12 +442,12 @@ public A addToVolumeMounts(int index,V1VolumeMount item) { this.volumeMounts = new ArrayList(); } V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(builder); + if (index < 0 || index >= this.volumeMounts.size()) { + this._visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } else { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(index, builder); + this._visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(index, builder); } return (A) this; } @@ -1583,7 +1583,7 @@ public A removeMatchingFromEnv(Predicate predicate) { return (A) this; } Iterator each = env.iterator(); - List visitables = _visitables.get("env"); + List visitables = this._visitables.get("env"); while (each.hasNext()) { V1EnvVarBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1599,7 +1599,7 @@ public A removeMatchingFromEnvFrom(Predicate predicate) return (A) this; } Iterator each = envFrom.iterator(); - List visitables = _visitables.get("envFrom"); + List visitables = this._visitables.get("envFrom"); while (each.hasNext()) { V1EnvFromSourceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1615,7 +1615,7 @@ public A removeMatchingFromPorts(Predicate predicate) { return (A) this; } Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); + List visitables = this._visitables.get("ports"); while (each.hasNext()) { V1ContainerPortBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1631,7 +1631,7 @@ public A removeMatchingFromResizePolicy(Predicate each = resizePolicy.iterator(); - List visitables = _visitables.get("resizePolicy"); + List visitables = this._visitables.get("resizePolicy"); while (each.hasNext()) { V1ContainerResizePolicyBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1647,7 +1647,7 @@ public A removeMatchingFromRestartPolicyRules(Predicate each = restartPolicyRules.iterator(); - List visitables = _visitables.get("restartPolicyRules"); + List visitables = this._visitables.get("restartPolicyRules"); while (each.hasNext()) { V1ContainerRestartRuleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1663,7 +1663,7 @@ public A removeMatchingFromVolumeDevices(Predicate predic return (A) this; } Iterator each = volumeDevices.iterator(); - List visitables = _visitables.get("volumeDevices"); + List visitables = this._visitables.get("volumeDevices"); while (each.hasNext()) { V1VolumeDeviceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1679,7 +1679,7 @@ public A removeMatchingFromVolumeMounts(Predicate predicat return (A) this; } Iterator each = volumeMounts.iterator(); - List visitables = _visitables.get("volumeMounts"); + List visitables = this._visitables.get("volumeMounts"); while (each.hasNext()) { V1VolumeMountBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1739,12 +1739,12 @@ public A setToEnv(int index,V1EnvVar item) { this.env = new ArrayList(); } V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { - _visitables.get("env").add(builder); - env.add(builder); + if (index < 0 || index >= this.env.size()) { + this._visitables.get("env").add(builder); + this.env.add(builder); } else { - _visitables.get("env").add(builder); - env.set(index, builder); + this._visitables.get("env").add(builder); + this.env.set(index, builder); } return (A) this; } @@ -1754,12 +1754,12 @@ public A setToEnvFrom(int index,V1EnvFromSource item) { this.envFrom = new ArrayList(); } V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { - _visitables.get("envFrom").add(builder); - envFrom.add(builder); + if (index < 0 || index >= this.envFrom.size()) { + this._visitables.get("envFrom").add(builder); + this.envFrom.add(builder); } else { - _visitables.get("envFrom").add(builder); - envFrom.set(index, builder); + this._visitables.get("envFrom").add(builder); + this.envFrom.set(index, builder); } return (A) this; } @@ -1769,12 +1769,12 @@ public A setToPorts(int index,V1ContainerPort item) { this.ports = new ArrayList(); } V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); + this._visitables.get("ports").add(builder); + this.ports.set(index, builder); } return (A) this; } @@ -1784,12 +1784,12 @@ public A setToResizePolicy(int index,V1ContainerResizePolicy item) { this.resizePolicy = new ArrayList(); } V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { - _visitables.get("resizePolicy").add(builder); - resizePolicy.add(builder); + if (index < 0 || index >= this.resizePolicy.size()) { + this._visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); } else { - _visitables.get("resizePolicy").add(builder); - resizePolicy.set(index, builder); + this._visitables.get("resizePolicy").add(builder); + this.resizePolicy.set(index, builder); } return (A) this; } @@ -1799,12 +1799,12 @@ public A setToRestartPolicyRules(int index,V1ContainerRestartRule item) { this.restartPolicyRules = new ArrayList(); } V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - if (index < 0 || index >= restartPolicyRules.size()) { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.add(builder); + if (index < 0 || index >= this.restartPolicyRules.size()) { + this._visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); } else { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.set(index, builder); + this._visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.set(index, builder); } return (A) this; } @@ -1814,12 +1814,12 @@ public A setToVolumeDevices(int index,V1VolumeDevice item) { this.volumeDevices = new ArrayList(); } V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { - _visitables.get("volumeDevices").add(builder); - volumeDevices.add(builder); + if (index < 0 || index >= this.volumeDevices.size()) { + this._visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); } else { - _visitables.get("volumeDevices").add(builder); - volumeDevices.set(index, builder); + this._visitables.get("volumeDevices").add(builder); + this.volumeDevices.set(index, builder); } return (A) this; } @@ -1829,12 +1829,12 @@ public A setToVolumeMounts(int index,V1VolumeMount item) { this.volumeMounts = new ArrayList(); } V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(builder); + if (index < 0 || index >= this.volumeMounts.size()) { + this._visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } else { - _visitables.get("volumeMounts").add(builder); - volumeMounts.set(index, builder); + this._visitables.get("volumeMounts").add(builder); + this.volumeMounts.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java index ce1e23cfb7..ded1e59342 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java index bdfaff8928..c10db0d8ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImageFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java index e4add6ad03..36c7d59f92 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java index 648163085f..df149c485c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPortFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java index 582e708d51..9e28931832 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java index d71d66c658..4e7732cb1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java index 11d681e581..2b9b8b7a69 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java index a04f2e46e6..30a450d23c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java index 8ffb4fb324..bb468d58dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesFluent.java index 941d273f07..df09faa15a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java index 95f79c97d9..fd03a71471 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java index a15836c635..1a8728d707 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java index 34de9b25c6..d61ba2aaf8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java index 82a4a0fac0..568b9f6b09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunningFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java index f482f86285..c35d421d0b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java index eb86e92972..14a4103b14 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminatedFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java index c780d1ad25..d7f6b256ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java index 084ae96e7f..0a7d2034e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaitingFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java index 8b975a1a29..d70626fceb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java index 8704f63430..7fe803ff7d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -67,7 +67,7 @@ public A addAllToAllocatedResourcesStatus(Collection items) { } for (V1ResourceStatus item : items) { V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); - _visitables.get("allocatedResourcesStatus").add(builder); + this._visitables.get("allocatedResourcesStatus").add(builder); this.allocatedResourcesStatus.add(builder); } return (A) this; @@ -79,7 +79,7 @@ public A addAllToVolumeMounts(Collection items) { } for (V1VolumeMountStatus item : items) { V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); - _visitables.get("volumeMounts").add(builder); + this._visitables.get("volumeMounts").add(builder); this.volumeMounts.add(builder); } return (A) this; @@ -127,7 +127,7 @@ public A addToAllocatedResourcesStatus(V1ResourceStatus... items) { } for (V1ResourceStatus item : items) { V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); - _visitables.get("allocatedResourcesStatus").add(builder); + this._visitables.get("allocatedResourcesStatus").add(builder); this.allocatedResourcesStatus.add(builder); } return (A) this; @@ -138,12 +138,12 @@ public A addToAllocatedResourcesStatus(int index,V1ResourceStatus item) { this.allocatedResourcesStatus = new ArrayList(); } V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); - if (index < 0 || index >= allocatedResourcesStatus.size()) { - _visitables.get("allocatedResourcesStatus").add(builder); - allocatedResourcesStatus.add(builder); + if (index < 0 || index >= this.allocatedResourcesStatus.size()) { + this._visitables.get("allocatedResourcesStatus").add(builder); + this.allocatedResourcesStatus.add(builder); } else { - _visitables.get("allocatedResourcesStatus").add(builder); - allocatedResourcesStatus.add(index, builder); + this._visitables.get("allocatedResourcesStatus").add(builder); + this.allocatedResourcesStatus.add(index, builder); } return (A) this; } @@ -154,7 +154,7 @@ public A addToVolumeMounts(V1VolumeMountStatus... items) { } for (V1VolumeMountStatus item : items) { V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); - _visitables.get("volumeMounts").add(builder); + this._visitables.get("volumeMounts").add(builder); this.volumeMounts.add(builder); } return (A) this; @@ -165,12 +165,12 @@ public A addToVolumeMounts(int index,V1VolumeMountStatus item) { this.volumeMounts = new ArrayList(); } V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(builder); + if (index < 0 || index >= this.volumeMounts.size()) { + this._visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } else { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(index, builder); + this._visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(index, builder); } return (A) this; } @@ -636,7 +636,7 @@ public A removeMatchingFromAllocatedResourcesStatus(Predicate each = allocatedResourcesStatus.iterator(); - List visitables = _visitables.get("allocatedResourcesStatus"); + List visitables = this._visitables.get("allocatedResourcesStatus"); while (each.hasNext()) { V1ResourceStatusBuilder builder = each.next(); if (predicate.test(builder)) { @@ -652,7 +652,7 @@ public A removeMatchingFromVolumeMounts(Predicate pr return (A) this; } Iterator each = volumeMounts.iterator(); - List visitables = _visitables.get("volumeMounts"); + List visitables = this._visitables.get("volumeMounts"); while (each.hasNext()) { V1VolumeMountStatusBuilder builder = each.next(); if (predicate.test(builder)) { @@ -676,12 +676,12 @@ public A setToAllocatedResourcesStatus(int index,V1ResourceStatus item) { this.allocatedResourcesStatus = new ArrayList(); } V1ResourceStatusBuilder builder = new V1ResourceStatusBuilder(item); - if (index < 0 || index >= allocatedResourcesStatus.size()) { - _visitables.get("allocatedResourcesStatus").add(builder); - allocatedResourcesStatus.add(builder); + if (index < 0 || index >= this.allocatedResourcesStatus.size()) { + this._visitables.get("allocatedResourcesStatus").add(builder); + this.allocatedResourcesStatus.add(builder); } else { - _visitables.get("allocatedResourcesStatus").add(builder); - allocatedResourcesStatus.set(index, builder); + this._visitables.get("allocatedResourcesStatus").add(builder); + this.allocatedResourcesStatus.set(index, builder); } return (A) this; } @@ -691,12 +691,12 @@ public A setToVolumeMounts(int index,V1VolumeMountStatus item) { this.volumeMounts = new ArrayList(); } V1VolumeMountStatusBuilder builder = new V1VolumeMountStatusBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(builder); + if (index < 0 || index >= this.volumeMounts.size()) { + this._visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } else { - _visitables.get("volumeMounts").add(builder); - volumeMounts.set(index, builder); + this._visitables.get("volumeMounts").add(builder); + this.volumeMounts.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java index 38ca51e650..0aa0fe5194 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java index 41d83f3b64..abdc522483 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUserFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java index 40fd8c2786..bf156bfe25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java index 24da4286fa..d4647b867d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java index 74651f26c2..ba261f865c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java index 27e2008dc0..796cc6059f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1ControllerRevision item : items) { V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1ControllerRevision... items) { } for (V1ControllerRevision item : items) { V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1ControllerRevision item) { this.items = new ArrayList(); } V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicat return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ControllerRevisionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1ControllerRevision item) { this.items = new ArrayList(); } V1ControllerRevisionBuilder builder = new V1ControllerRevisionBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java index 5c0ac1b77d..4c3322126c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java index d57bf5b3c1..6611c601aa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java index 2a3afdc4da..7411538eab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java index 2ad7517784..beb3d81c74 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CounterSetFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java index 93661f4cd6..148f6e6a16 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java index 350fb51339..7e9b11fd47 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java index 42af12178a..4dbd479c83 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java index 7646eaf22d..caccd40728 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1CronJob item : items) { V1CronJobBuilder builder = new V1CronJobBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1CronJob... items) { } for (V1CronJob item : items) { V1CronJobBuilder builder = new V1CronJobBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1CronJob item) { this.items = new ArrayList(); } V1CronJobBuilder builder = new V1CronJobBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1CronJobBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1CronJob item) { this.items = new ArrayList(); } V1CronJobBuilder builder = new V1CronJobBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java index d0d1f777b3..deda957f13 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java index 495ed6883f..86d9091c42 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java index 94372782a1..bf663d7d4f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java index 8e8bb8b06c..93d7bd7a6f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -50,7 +50,7 @@ public A addAllToActive(Collection items) { } for (V1ObjectReference item : items) { V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("active").add(builder); + this._visitables.get("active").add(builder); this.active.add(builder); } return (A) this; @@ -70,7 +70,7 @@ public A addToActive(V1ObjectReference... items) { } for (V1ObjectReference item : items) { V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("active").add(builder); + this._visitables.get("active").add(builder); this.active.add(builder); } return (A) this; @@ -81,12 +81,12 @@ public A addToActive(int index,V1ObjectReference item) { this.active = new ArrayList(); } V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= active.size()) { - _visitables.get("active").add(builder); - active.add(builder); + if (index < 0 || index >= this.active.size()) { + this._visitables.get("active").add(builder); + this.active.add(builder); } else { - _visitables.get("active").add(builder); - active.add(index, builder); + this._visitables.get("active").add(builder); + this.active.add(index, builder); } return (A) this; } @@ -246,7 +246,7 @@ public A removeMatchingFromActive(Predicate predicate) return (A) this; } Iterator each = active.iterator(); - List visitables = _visitables.get("active"); + List visitables = this._visitables.get("active"); while (each.hasNext()) { V1ObjectReferenceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -266,12 +266,12 @@ public A setToActive(int index,V1ObjectReference item) { this.active = new ArrayList(); } V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= active.size()) { - _visitables.get("active").add(builder); - active.add(builder); + if (index < 0 || index >= this.active.size()) { + this._visitables.get("active").add(builder); + this.active.add(builder); } else { - _visitables.get("active").add(builder); - active.set(index, builder); + this._visitables.get("active").add(builder); + this.active.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java index b9f0cfc456..eedbd601f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java index 5b0f7935e8..ada125cef8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java index 6433c9b959..c9b4402970 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java index a969a75e86..9c5628d758 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinitionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java index c83494bca4..88d5c3575f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java index 849ffff59f..f2aaf0dbc5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java index 326f278714..18fe57a8be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java index 5ae0be6c0c..6e1658364a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java index fda5b8170a..d07b71416a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java index 7c9400d5be..1b2fa5f036 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java index 6a6ef04385..393b9306ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java index adf3f66f82..78abe9d1c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1CustomResourceDefinition item : items) { V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1CustomResourceDefinition... items) { } for (V1CustomResourceDefinition item : items) { V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1CustomResourceDefinition item) { this.items = new ArrayList(); } V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate pr return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1CustomResourceDefinitionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1CustomResourceDefinition item) { this.items = new ArrayList(); } V1CustomResourceDefinitionBuilder builder = new V1CustomResourceDefinitionBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java index 217c385a1e..c72df7bf6b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java index c22d9e3a83..b33a94117c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNamesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java index 4e56699cbd..94af6275d9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java index 323ce3f52b..5b481c760a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -54,7 +54,7 @@ public A addAllToVersions(Collection items) { } for (V1CustomResourceDefinitionVersion item : items) { V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); - _visitables.get("versions").add(builder); + this._visitables.get("versions").add(builder); this.versions.add(builder); } return (A) this; @@ -74,7 +74,7 @@ public A addToVersions(V1CustomResourceDefinitionVersion... items) { } for (V1CustomResourceDefinitionVersion item : items) { V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); - _visitables.get("versions").add(builder); + this._visitables.get("versions").add(builder); this.versions.add(builder); } return (A) this; @@ -85,12 +85,12 @@ public A addToVersions(int index,V1CustomResourceDefinitionVersion item) { this.versions = new ArrayList(); } V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); - if (index < 0 || index >= versions.size()) { - _visitables.get("versions").add(builder); - versions.add(builder); + if (index < 0 || index >= this.versions.size()) { + this._visitables.get("versions").add(builder); + this.versions.add(builder); } else { - _visitables.get("versions").add(builder); - versions.add(index, builder); + this._visitables.get("versions").add(builder); + this.versions.add(index, builder); } return (A) this; } @@ -310,7 +310,7 @@ public A removeMatchingFromVersions(Predicate each = versions.iterator(); - List visitables = _visitables.get("versions"); + List visitables = this._visitables.get("versions"); while (each.hasNext()) { V1CustomResourceDefinitionVersionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -330,12 +330,12 @@ public A setToVersions(int index,V1CustomResourceDefinitionVersion item) { this.versions = new ArrayList(); } V1CustomResourceDefinitionVersionBuilder builder = new V1CustomResourceDefinitionVersionBuilder(item); - if (index < 0 || index >= versions.size()) { - _visitables.get("versions").add(builder); - versions.add(builder); + if (index < 0 || index >= this.versions.size()) { + this._visitables.get("versions").add(builder); + this.versions.add(builder); } else { - _visitables.get("versions").add(builder); - versions.set(index, builder); + this._visitables.get("versions").add(builder); + this.versions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java index 8587588f7c..0139d6e8f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java index 0396522e6b..0983a9a671 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -52,7 +52,7 @@ public A addAllToConditions(Collection item } for (V1CustomResourceDefinitionCondition item : items) { V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -82,7 +82,7 @@ public A addToConditions(V1CustomResourceDefinitionCondition... items) { } for (V1CustomResourceDefinitionCondition item : items) { V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -93,12 +93,12 @@ public A addToConditions(int index,V1CustomResourceDefinitionCondition item) { this.conditions = new ArrayList(); } V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -350,7 +350,7 @@ public A removeMatchingFromConditions(Predicate each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1CustomResourceDefinitionConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -370,12 +370,12 @@ public A setToConditions(int index,V1CustomResourceDefinitionCondition item) { this.conditions = new ArrayList(); } V1CustomResourceDefinitionConditionBuilder builder = new V1CustomResourceDefinitionConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java index a43ef8e560..101ae6ccee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java index 5a7a378112..0ece77bb4a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -57,7 +57,7 @@ public A addAllToAdditionalPrinterColumns(Collection items) { } for (V1SelectableField item : items) { V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); - _visitables.get("selectableFields").add(builder); + this._visitables.get("selectableFields").add(builder); this.selectableFields.add(builder); } return (A) this; @@ -97,7 +97,7 @@ public A addToAdditionalPrinterColumns(V1CustomResourceColumnDefinition... items } for (V1CustomResourceColumnDefinition item : items) { V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); - _visitables.get("additionalPrinterColumns").add(builder); + this._visitables.get("additionalPrinterColumns").add(builder); this.additionalPrinterColumns.add(builder); } return (A) this; @@ -108,12 +108,12 @@ public A addToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinitio this.additionalPrinterColumns = new ArrayList(); } V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); - if (index < 0 || index >= additionalPrinterColumns.size()) { - _visitables.get("additionalPrinterColumns").add(builder); - additionalPrinterColumns.add(builder); + if (index < 0 || index >= this.additionalPrinterColumns.size()) { + this._visitables.get("additionalPrinterColumns").add(builder); + this.additionalPrinterColumns.add(builder); } else { - _visitables.get("additionalPrinterColumns").add(builder); - additionalPrinterColumns.add(index, builder); + this._visitables.get("additionalPrinterColumns").add(builder); + this.additionalPrinterColumns.add(index, builder); } return (A) this; } @@ -124,7 +124,7 @@ public A addToSelectableFields(V1SelectableField... items) { } for (V1SelectableField item : items) { V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); - _visitables.get("selectableFields").add(builder); + this._visitables.get("selectableFields").add(builder); this.selectableFields.add(builder); } return (A) this; @@ -135,12 +135,12 @@ public A addToSelectableFields(int index,V1SelectableField item) { this.selectableFields = new ArrayList(); } V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); - if (index < 0 || index >= selectableFields.size()) { - _visitables.get("selectableFields").add(builder); - selectableFields.add(builder); + if (index < 0 || index >= this.selectableFields.size()) { + this._visitables.get("selectableFields").add(builder); + this.selectableFields.add(builder); } else { - _visitables.get("selectableFields").add(builder); - selectableFields.add(index, builder); + this._visitables.get("selectableFields").add(builder); + this.selectableFields.add(index, builder); } return (A) this; } @@ -486,7 +486,7 @@ public A removeMatchingFromAdditionalPrinterColumns(Predicate each = additionalPrinterColumns.iterator(); - List visitables = _visitables.get("additionalPrinterColumns"); + List visitables = this._visitables.get("additionalPrinterColumns"); while (each.hasNext()) { V1CustomResourceColumnDefinitionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -502,7 +502,7 @@ public A removeMatchingFromSelectableFields(Predicate return (A) this; } Iterator each = selectableFields.iterator(); - List visitables = _visitables.get("selectableFields"); + List visitables = this._visitables.get("selectableFields"); while (each.hasNext()) { V1SelectableFieldBuilder builder = each.next(); if (predicate.test(builder)) { @@ -526,12 +526,12 @@ public A setToAdditionalPrinterColumns(int index,V1CustomResourceColumnDefinitio this.additionalPrinterColumns = new ArrayList(); } V1CustomResourceColumnDefinitionBuilder builder = new V1CustomResourceColumnDefinitionBuilder(item); - if (index < 0 || index >= additionalPrinterColumns.size()) { - _visitables.get("additionalPrinterColumns").add(builder); - additionalPrinterColumns.add(builder); + if (index < 0 || index >= this.additionalPrinterColumns.size()) { + this._visitables.get("additionalPrinterColumns").add(builder); + this.additionalPrinterColumns.add(builder); } else { - _visitables.get("additionalPrinterColumns").add(builder); - additionalPrinterColumns.set(index, builder); + this._visitables.get("additionalPrinterColumns").add(builder); + this.additionalPrinterColumns.set(index, builder); } return (A) this; } @@ -541,12 +541,12 @@ public A setToSelectableFields(int index,V1SelectableField item) { this.selectableFields = new ArrayList(); } V1SelectableFieldBuilder builder = new V1SelectableFieldBuilder(item); - if (index < 0 || index >= selectableFields.size()) { - _visitables.get("selectableFields").add(builder); - selectableFields.add(builder); + if (index < 0 || index >= this.selectableFields.size()) { + this._visitables.get("selectableFields").add(builder); + this.selectableFields.add(builder); } else { - _visitables.get("selectableFields").add(builder); - selectableFields.set(index, builder); + this._visitables.get("selectableFields").add(builder); + this.selectableFields.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java index 485e954a80..8f1497ea58 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java index bad659af09..13759b622c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScaleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java index ce801e3247..f1b92b3cf2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java index ffea52a8e5..f88c94d74d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourcesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java index cacad21a7f..0d5f287a5b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java index eb8f7acc7b..d211b55cc6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java index dad6c9bb0a..d79ebd85b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java index f4ecbcf620..eb773b6225 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpointFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java index 0463523818..517de13e35 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java index 9470daf6d6..ee53068605 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java index 47729a76f7..9a1fb9715f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java index 65ae17f966..1201f88630 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java index ab291d519b..bacc138657 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java index 94c6686561..fa872d0a2c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1DaemonSet item : items) { V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1DaemonSet... items) { } for (V1DaemonSet item : items) { V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1DaemonSet item) { this.items = new ArrayList(); } V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1DaemonSetBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1DaemonSet item) { this.items = new ArrayList(); } V1DaemonSetBuilder builder = new V1DaemonSetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java index 31d51797c9..16b618a8ae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java index f9676c00cd..fd473b9697 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java index 7964245db7..470f547201 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java index 0c22800366..fcf7dc9704 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -58,7 +58,7 @@ public A addAllToConditions(Collection items) { } for (V1DaemonSetCondition item : items) { V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -78,7 +78,7 @@ public A addToConditions(V1DaemonSetCondition... items) { } for (V1DaemonSetCondition item : items) { V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -89,12 +89,12 @@ public A addToConditions(int index,V1DaemonSetCondition item) { this.conditions = new ArrayList(); } V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -338,7 +338,7 @@ public A removeMatchingFromConditions(Predicate pre return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1DaemonSetConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -358,12 +358,12 @@ public A setToConditions(int index,V1DaemonSetCondition item) { this.conditions = new ArrayList(); } V1DaemonSetConditionBuilder builder = new V1DaemonSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java index 1dac3e2156..d111a250d9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java index cd235a247b..360067ce25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java index 9029d5eb81..ab653c5bdc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java index a5a48ddaf8..bf9588102d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptionsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java index 15ccd9f78f..bbdf54d8cb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java index 1c2d2d5877..1043385b90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java index f32dd84378..904233a5a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java index 83541ff676..5f75928dcb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java index f2d46b1359..e905b27fce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java index e9808ac8cd..f43f9ce23d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1Deployment item : items) { V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1Deployment... items) { } for (V1Deployment item : items) { V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1Deployment item) { this.items = new ArrayList(); } V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1DeploymentBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1Deployment item) { this.items = new ArrayList(); } V1DeploymentBuilder builder = new V1DeploymentBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java index 5a015e4b99..a5c578d77d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java index bbd1c10900..259eed8e0c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java index 553cb58ab4..b907abbab1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java index 2ab7d5c6bf..b3d39e2961 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -57,7 +57,7 @@ public A addAllToConditions(Collection items) { } for (V1DeploymentCondition item : items) { V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -77,7 +77,7 @@ public A addToConditions(V1DeploymentCondition... items) { } for (V1DeploymentCondition item : items) { V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -88,12 +88,12 @@ public A addToConditions(int index,V1DeploymentCondition item) { this.conditions = new ArrayList(); } V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -325,7 +325,7 @@ public A removeMatchingFromConditions(Predicate pr return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1DeploymentConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -345,12 +345,12 @@ public A setToConditions(int index,V1DeploymentCondition item) { this.conditions = new ArrayList(); } V1DeploymentConditionBuilder builder = new V1DeploymentConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java index 0247bf294d..089d2ec361 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java index a23e6e9b1b..1fbb8707f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java index 3aec92ea99..e0cfe13dc2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java index 1c7edf2e3c..2cba6607ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java index ca58887639..34db056fe1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java index 075bd31a69..5f1f116821 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResultFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,7 +48,7 @@ public A addAllToConfig(Collection items) { } for (V1DeviceAllocationConfiguration item : items) { V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -60,7 +60,7 @@ public A addAllToResults(Collection items) { } for (V1DeviceRequestAllocationResult item : items) { V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); - _visitables.get("results").add(builder); + this._visitables.get("results").add(builder); this.results.add(builder); } return (A) this; @@ -88,7 +88,7 @@ public A addToConfig(V1DeviceAllocationConfiguration... items) { } for (V1DeviceAllocationConfiguration item : items) { V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -99,12 +99,12 @@ public A addToConfig(int index,V1DeviceAllocationConfiguration item) { this.config = new ArrayList(); } V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.add(index, builder); + this._visitables.get("config").add(builder); + this.config.add(index, builder); } return (A) this; } @@ -115,7 +115,7 @@ public A addToResults(V1DeviceRequestAllocationResult... items) { } for (V1DeviceRequestAllocationResult item : items) { V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); - _visitables.get("results").add(builder); + this._visitables.get("results").add(builder); this.results.add(builder); } return (A) this; @@ -126,12 +126,12 @@ public A addToResults(int index,V1DeviceRequestAllocationResult item) { this.results = new ArrayList(); } V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { - _visitables.get("results").add(builder); - results.add(builder); + if (index < 0 || index >= this.results.size()) { + this._visitables.get("results").add(builder); + this.results.add(builder); } else { - _visitables.get("results").add(builder); - results.add(index, builder); + this._visitables.get("results").add(builder); + this.results.add(index, builder); } return (A) this; } @@ -369,7 +369,7 @@ public A removeMatchingFromConfig(Predicate each = config.iterator(); - List visitables = _visitables.get("config"); + List visitables = this._visitables.get("config"); while (each.hasNext()) { V1DeviceAllocationConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -385,7 +385,7 @@ public A removeMatchingFromResults(Predicate each = results.iterator(); - List visitables = _visitables.get("results"); + List visitables = this._visitables.get("results"); while (each.hasNext()) { V1DeviceRequestAllocationResultBuilder builder = each.next(); if (predicate.test(builder)) { @@ -409,12 +409,12 @@ public A setToConfig(int index,V1DeviceAllocationConfiguration item) { this.config = new ArrayList(); } V1DeviceAllocationConfigurationBuilder builder = new V1DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.set(index, builder); + this._visitables.get("config").add(builder); + this.config.set(index, builder); } return (A) this; } @@ -424,12 +424,12 @@ public A setToResults(int index,V1DeviceRequestAllocationResult item) { this.results = new ArrayList(); } V1DeviceRequestAllocationResultBuilder builder = new V1DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { - _visitables.get("results").add(builder); - results.add(builder); + if (index < 0 || index >= this.results.size()) { + this._visitables.get("results").add(builder); + this.results.add(builder); } else { - _visitables.get("results").add(builder); - results.set(index, builder); + this._visitables.get("results").add(builder); + this.results.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java index b0a94d5ad1..58f7f5a812 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -39,9 +39,13 @@ public V1DeviceAttributeBuilder(V1DeviceAttributeFluent fluent,V1DeviceAttrib public V1DeviceAttribute build() { V1DeviceAttribute buildable = new V1DeviceAttribute(); buildable.setBool(fluent.getBool()); + buildable.setBools(fluent.getBools()); buildable.setInt(fluent.getInt()); + buildable.setInts(fluent.getInts()); buildable.setString(fluent.getString()); + buildable.setStrings(fluent.getStrings()); buildable.setVersion(fluent.getVersion()); + buildable.setVersions(fluent.getVersions()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java index d6eaa92b70..7a83aa51f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttributeFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -19,7 +19,11 @@ import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; import java.util.Objects; +import java.util.function.Predicate; /** * Generated @@ -29,8 +33,12 @@ public class V1DeviceAttributeFluent bools; + private List ints; private String string; + private List strings; private String version; + private List versions; public V1DeviceAttributeFluent() { } @@ -39,13 +47,128 @@ public V1DeviceAttributeFluent(V1DeviceAttribute instance) { this.copyInstance(instance); } + public A addAllToBools(Collection items) { + if (this.bools == null) { + this.bools = new ArrayList(); + } + for (Boolean item : items) { + this.bools.add(item); + } + return (A) this; + } + + public A addAllToInts(Collection items) { + if (this.ints == null) { + this.ints = new ArrayList(); + } + for (Long item : items) { + this.ints.add(item); + } + return (A) this; + } + + public A addAllToStrings(Collection items) { + if (this.strings == null) { + this.strings = new ArrayList(); + } + for (String item : items) { + this.strings.add(item); + } + return (A) this; + } + + public A addAllToVersions(Collection items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (String item : items) { + this.versions.add(item); + } + return (A) this; + } + + public A addToBools(Boolean... items) { + if (this.bools == null) { + this.bools = new ArrayList(); + } + for (Boolean item : items) { + this.bools.add(item); + } + return (A) this; + } + + public A addToBools(int index,Boolean item) { + if (this.bools == null) { + this.bools = new ArrayList(); + } + this.bools.add(index, item); + return (A) this; + } + + public A addToInts(Long... items) { + if (this.ints == null) { + this.ints = new ArrayList(); + } + for (Long item : items) { + this.ints.add(item); + } + return (A) this; + } + + public A addToInts(int index,Long item) { + if (this.ints == null) { + this.ints = new ArrayList(); + } + this.ints.add(index, item); + return (A) this; + } + + public A addToStrings(String... items) { + if (this.strings == null) { + this.strings = new ArrayList(); + } + for (String item : items) { + this.strings.add(item); + } + return (A) this; + } + + public A addToStrings(int index,String item) { + if (this.strings == null) { + this.strings = new ArrayList(); + } + this.strings.add(index, item); + return (A) this; + } + + public A addToVersions(String... items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (String item : items) { + this.versions.add(item); + } + return (A) this; + } + + public A addToVersions(int index,String item) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + this.versions.add(index, item); + return (A) this; + } + protected void copyInstance(V1DeviceAttribute instance) { instance = instance != null ? instance : new V1DeviceAttribute(); if (instance != null) { this.withBool(instance.getBool()); - this.withInt(instance.getInt()); + this.withBools(instance.getBools()); + this.withInts(instance.getInts()); this.withString(instance.getString()); + this.withStrings(instance.getStrings()); this.withVersion(instance.getVersion()); + this.withVersions(instance.getVersions()); } } @@ -63,15 +186,27 @@ public boolean equals(Object o) { if (!(Objects.equals(bool, that.bool))) { return false; } + if (!(Objects.equals(bools, that.bools))) { + return false; + } if (!(Objects.equals(_int, that._int))) { return false; } + if (!(Objects.equals(ints, that.ints))) { + return false; + } if (!(Objects.equals(string, that.string))) { return false; } + if (!(Objects.equals(strings, that.strings))) { + return false; + } if (!(Objects.equals(version, that.version))) { return false; } + if (!(Objects.equals(versions, that.versions))) { + return false; + } return true; } @@ -79,36 +214,300 @@ public Boolean getBool() { return this.bool; } + public Boolean getBool(int index) { + return this.bools.get(index); + } + + public List getBools() { + return this.bools; + } + + public Boolean getFirstBool() { + return this.bools.get(0); + } + + public Long getFirstInt() { + return this.ints.get(0); + } + + public String getFirstString() { + return this.strings.get(0); + } + + public String getFirstVersion() { + return this.versions.get(0); + } + public Long getInt() { return this._int; } + public Long getInt(int index) { + return this.ints.get(index); + } + + public List getInts() { + return this.ints; + } + + public Boolean getLastBool() { + return this.bools.get(bools.size() - 1); + } + + public Long getLastInt() { + return this.ints.get(ints.size() - 1); + } + + public String getLastString() { + return this.strings.get(strings.size() - 1); + } + + public String getLastVersion() { + return this.versions.get(versions.size() - 1); + } + + public Boolean getMatchingBool(Predicate predicate) { + for (Boolean item : bools) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public Long getMatchingInt(Predicate predicate) { + for (Long item : ints) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingString(Predicate predicate) { + for (String item : strings) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingVersion(Predicate predicate) { + for (String item : versions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + public String getString() { return this.string; } + public String getString(int index) { + return this.strings.get(index); + } + + public List getStrings() { + return this.strings; + } + public String getVersion() { return this.version; } + public String getVersion(int index) { + return this.versions.get(index); + } + + public List getVersions() { + return this.versions; + } + public boolean hasBool() { return this.bool != null; } + public boolean hasBools() { + return this.bools != null && !(this.bools.isEmpty()); + } + public boolean hasInt() { return this._int != null; } + public boolean hasInts() { + return this.ints != null && !(this.ints.isEmpty()); + } + + public boolean hasMatchingBool(Predicate predicate) { + for (Boolean item : bools) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingInt(Predicate predicate) { + for (Long item : ints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingString(Predicate predicate) { + for (String item : strings) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVersion(Predicate predicate) { + for (String item : versions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasString() { return this.string != null; } + public boolean hasStrings() { + return this.strings != null && !(this.strings.isEmpty()); + } + public boolean hasVersion() { return this.version != null; } + public boolean hasVersions() { + return this.versions != null && !(this.versions.isEmpty()); + } + public int hashCode() { - return Objects.hash(bool, _int, string, version); + return Objects.hash(bool, bools, _int, ints, string, strings, version, versions); + } + + public A removeAllFromBools(Collection items) { + if (this.bools == null) { + return (A) this; + } + for (Boolean item : items) { + this.bools.remove(item); + } + return (A) this; + } + + public A removeAllFromInts(Collection items) { + if (this.ints == null) { + return (A) this; + } + for (Long item : items) { + this.ints.remove(item); + } + return (A) this; + } + + public A removeAllFromStrings(Collection items) { + if (this.strings == null) { + return (A) this; + } + for (String item : items) { + this.strings.remove(item); + } + return (A) this; + } + + public A removeAllFromVersions(Collection items) { + if (this.versions == null) { + return (A) this; + } + for (String item : items) { + this.versions.remove(item); + } + return (A) this; + } + + public A removeFromBools(Boolean... items) { + if (this.bools == null) { + return (A) this; + } + for (Boolean item : items) { + this.bools.remove(item); + } + return (A) this; + } + + public A removeFromInts(Long... items) { + if (this.ints == null) { + return (A) this; + } + for (Long item : items) { + this.ints.remove(item); + } + return (A) this; + } + + public A removeFromStrings(String... items) { + if (this.strings == null) { + return (A) this; + } + for (String item : items) { + this.strings.remove(item); + } + return (A) this; + } + + public A removeFromVersions(String... items) { + if (this.versions == null) { + return (A) this; + } + for (String item : items) { + this.versions.remove(item); + } + return (A) this; + } + + public A setToBools(int index,Boolean item) { + if (this.bools == null) { + this.bools = new ArrayList(); + } + this.bools.set(index, item); + return (A) this; + } + + public A setToInts(int index,Long item) { + if (this.ints == null) { + this.ints = new ArrayList(); + } + this.ints.set(index, item); + return (A) this; + } + + public A setToStrings(int index,String item) { + if (this.strings == null) { + this.strings = new ArrayList(); + } + this.strings.set(index, item); + return (A) this; + } + + public A setToVersions(int index,String item) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + this.versions.set(index, item); + return (A) this; } public String toString() { @@ -119,19 +518,39 @@ public String toString() { sb.append(bool); sb.append(","); } + if (!(bools == null) && !(bools.isEmpty())) { + sb.append("bools:"); + sb.append(bools); + sb.append(","); + } if (!(_int == null)) { sb.append("_int:"); sb.append(_int); sb.append(","); } + if (!(ints == null) && !(ints.isEmpty())) { + sb.append("ints:"); + sb.append(ints); + sb.append(","); + } if (!(string == null)) { sb.append("string:"); sb.append(string); sb.append(","); } + if (!(strings == null) && !(strings.isEmpty())) { + sb.append("strings:"); + sb.append(strings); + sb.append(","); + } if (!(version == null)) { sb.append("version:"); sb.append(version); + sb.append(","); + } + if (!(versions == null) && !(versions.isEmpty())) { + sb.append("versions:"); + sb.append(versions); } sb.append("}"); return sb.toString(); @@ -146,19 +565,119 @@ public A withBool(Boolean bool) { return (A) this; } + public A withBools(List bools) { + if (bools != null) { + this.bools = new ArrayList(); + for (Boolean item : bools) { + this.addToBools(item); + } + } else { + this.bools = null; + } + return (A) this; + } + + public A withBools(Boolean... bools) { + if (this.bools != null) { + this.bools.clear(); + _visitables.remove("bools"); + } + if (bools != null) { + for (Boolean item : bools) { + this.addToBools(item); + } + } + return (A) this; + } + public A withInt(Long _int) { this._int = _int; return (A) this; } + public A withInts(List ints) { + if (ints != null) { + this.ints = new ArrayList(); + for (Long item : ints) { + this.addToInts(item); + } + } else { + this.ints = null; + } + return (A) this; + } + + public A withInts(Long... ints) { + if (this.ints != null) { + this.ints.clear(); + _visitables.remove("ints"); + } + if (ints != null) { + for (Long item : ints) { + this.addToInts(item); + } + } + return (A) this; + } + public A withString(String string) { this.string = string; return (A) this; } + public A withStrings(List strings) { + if (strings != null) { + this.strings = new ArrayList(); + for (String item : strings) { + this.addToStrings(item); + } + } else { + this.strings = null; + } + return (A) this; + } + + public A withStrings(String... strings) { + if (this.strings != null) { + this.strings.clear(); + _visitables.remove("strings"); + } + if (strings != null) { + for (String item : strings) { + this.addToStrings(item); + } + } + return (A) this; + } + public A withVersion(String version) { this.version = version; return (A) this; } + public A withVersions(List versions) { + if (versions != null) { + this.versions = new ArrayList(); + for (String item : versions) { + this.addToVersions(item); + } + } else { + this.versions = null; + } + return (A) this; + } + + public A withVersions(String... versions) { + if (this.versions != null) { + this.versions.clear(); + _visitables.remove("versions"); + } + if (versions != null) { + for (String item : versions) { + this.addToVersions(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java index 508ece1ac5..736bd5e886 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,6 +47,7 @@ public V1Device build() { buildable.setCapacity(fluent.getCapacity()); buildable.setConsumesCounters(fluent.buildConsumesCounters()); buildable.setName(fluent.getName()); + buildable.setNodeAllocatableResourceMappings(fluent.getNodeAllocatableResourceMappings()); buildable.setNodeName(fluent.getNodeName()); buildable.setNodeSelector(fluent.buildNodeSelector()); buildable.setTaints(fluent.buildTaints()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java index df630489c6..857f6dd9be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java index b72c44667e..e045cc9579 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacityFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java index c6ff71d4af..80f3ed3569 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java index 78bf377770..c0a7201dcb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java index 7dff7cd2b6..d6b4b9bec0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java index 72bcc21bbd..53d2a1ddec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ public A addAllToConfig(Collection items) { } for (V1DeviceClaimConfiguration item : items) { V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -61,7 +61,7 @@ public A addAllToConstraints(Collection items) { } for (V1DeviceConstraint item : items) { V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); - _visitables.get("constraints").add(builder); + this._visitables.get("constraints").add(builder); this.constraints.add(builder); } return (A) this; @@ -73,7 +73,7 @@ public A addAllToRequests(Collection items) { } for (V1DeviceRequest item : items) { V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); - _visitables.get("requests").add(builder); + this._visitables.get("requests").add(builder); this.requests.add(builder); } return (A) this; @@ -109,7 +109,7 @@ public A addToConfig(V1DeviceClaimConfiguration... items) { } for (V1DeviceClaimConfiguration item : items) { V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -120,12 +120,12 @@ public A addToConfig(int index,V1DeviceClaimConfiguration item) { this.config = new ArrayList(); } V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.add(index, builder); + this._visitables.get("config").add(builder); + this.config.add(index, builder); } return (A) this; } @@ -136,7 +136,7 @@ public A addToConstraints(V1DeviceConstraint... items) { } for (V1DeviceConstraint item : items) { V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); - _visitables.get("constraints").add(builder); + this._visitables.get("constraints").add(builder); this.constraints.add(builder); } return (A) this; @@ -147,12 +147,12 @@ public A addToConstraints(int index,V1DeviceConstraint item) { this.constraints = new ArrayList(); } V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { - _visitables.get("constraints").add(builder); - constraints.add(builder); + if (index < 0 || index >= this.constraints.size()) { + this._visitables.get("constraints").add(builder); + this.constraints.add(builder); } else { - _visitables.get("constraints").add(builder); - constraints.add(index, builder); + this._visitables.get("constraints").add(builder); + this.constraints.add(index, builder); } return (A) this; } @@ -163,7 +163,7 @@ public A addToRequests(V1DeviceRequest... items) { } for (V1DeviceRequest item : items) { V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); - _visitables.get("requests").add(builder); + this._visitables.get("requests").add(builder); this.requests.add(builder); } return (A) this; @@ -174,12 +174,12 @@ public A addToRequests(int index,V1DeviceRequest item) { this.requests = new ArrayList(); } V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { - _visitables.get("requests").add(builder); - requests.add(builder); + if (index < 0 || index >= this.requests.size()) { + this._visitables.get("requests").add(builder); + this.requests.add(builder); } else { - _visitables.get("requests").add(builder); - requests.add(index, builder); + this._visitables.get("requests").add(builder); + this.requests.add(index, builder); } return (A) this; } @@ -519,7 +519,7 @@ public A removeMatchingFromConfig(Predicate p return (A) this; } Iterator each = config.iterator(); - List visitables = _visitables.get("config"); + List visitables = this._visitables.get("config"); while (each.hasNext()) { V1DeviceClaimConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -535,7 +535,7 @@ public A removeMatchingFromConstraints(Predicate pred return (A) this; } Iterator each = constraints.iterator(); - List visitables = _visitables.get("constraints"); + List visitables = this._visitables.get("constraints"); while (each.hasNext()) { V1DeviceConstraintBuilder builder = each.next(); if (predicate.test(builder)) { @@ -551,7 +551,7 @@ public A removeMatchingFromRequests(Predicate predicate) return (A) this; } Iterator each = requests.iterator(); - List visitables = _visitables.get("requests"); + List visitables = this._visitables.get("requests"); while (each.hasNext()) { V1DeviceRequestBuilder builder = each.next(); if (predicate.test(builder)) { @@ -579,12 +579,12 @@ public A setToConfig(int index,V1DeviceClaimConfiguration item) { this.config = new ArrayList(); } V1DeviceClaimConfigurationBuilder builder = new V1DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.set(index, builder); + this._visitables.get("config").add(builder); + this.config.set(index, builder); } return (A) this; } @@ -594,12 +594,12 @@ public A setToConstraints(int index,V1DeviceConstraint item) { this.constraints = new ArrayList(); } V1DeviceConstraintBuilder builder = new V1DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { - _visitables.get("constraints").add(builder); - constraints.add(builder); + if (index < 0 || index >= this.constraints.size()) { + this._visitables.get("constraints").add(builder); + this.constraints.add(builder); } else { - _visitables.get("constraints").add(builder); - constraints.set(index, builder); + this._visitables.get("constraints").add(builder); + this.constraints.set(index, builder); } return (A) this; } @@ -609,12 +609,12 @@ public A setToRequests(int index,V1DeviceRequest item) { this.requests = new ArrayList(); } V1DeviceRequestBuilder builder = new V1DeviceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { - _visitables.get("requests").add(builder); - requests.add(builder); + if (index < 0 || index >= this.requests.size()) { + this._visitables.get("requests").add(builder); + this.requests.add(builder); } else { - _visitables.get("requests").add(builder); - requests.set(index, builder); + this._visitables.get("requests").add(builder); + this.requests.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java index e3439d1dd8..e9db28357d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java index 1985145a92..28f2b6f158 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java index 831e13c9b8..da298082ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java index 4772bef0be..9d82f1d7da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListBuilder.java index 287001a11d..2ddd361f15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java index c52a277c69..c4ed7d5030 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1DeviceClass item : items) { V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1DeviceClass... items) { } for (V1DeviceClass item : items) { V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1DeviceClass item) { this.items = new ArrayList(); } V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1DeviceClassBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1DeviceClass item) { this.items = new ArrayList(); } V1DeviceClassBuilder builder = new V1DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java index b72989c3cb..581c37cbb1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java index 8bc7e3ded6..781295bf97 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ public A addAllToConfig(Collection items) { } for (V1DeviceClassConfiguration item : items) { V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -61,7 +61,7 @@ public A addAllToSelectors(Collection items) { } for (V1DeviceSelector item : items) { V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -89,7 +89,7 @@ public A addToConfig(V1DeviceClassConfiguration... items) { } for (V1DeviceClassConfiguration item : items) { V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -100,12 +100,12 @@ public A addToConfig(int index,V1DeviceClassConfiguration item) { this.config = new ArrayList(); } V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.add(index, builder); + this._visitables.get("config").add(builder); + this.config.add(index, builder); } return (A) this; } @@ -116,7 +116,7 @@ public A addToSelectors(V1DeviceSelector... items) { } for (V1DeviceSelector item : items) { V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -127,12 +127,12 @@ public A addToSelectors(int index,V1DeviceSelector item) { this.selectors = new ArrayList(); } V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.add(index, builder); } return (A) this; } @@ -382,7 +382,7 @@ public A removeMatchingFromConfig(Predicate p return (A) this; } Iterator each = config.iterator(); - List visitables = _visitables.get("config"); + List visitables = this._visitables.get("config"); while (each.hasNext()) { V1DeviceClassConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -398,7 +398,7 @@ public A removeMatchingFromSelectors(Predicate predicat return (A) this; } Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); + List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1DeviceSelectorBuilder builder = each.next(); if (predicate.test(builder)) { @@ -422,12 +422,12 @@ public A setToConfig(int index,V1DeviceClassConfiguration item) { this.config = new ArrayList(); } V1DeviceClassConfigurationBuilder builder = new V1DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.set(index, builder); + this._visitables.get("config").add(builder); + this.config.set(index, builder); } return (A) this; } @@ -437,12 +437,12 @@ public A setToSelectors(int index,V1DeviceSelector item) { this.selectors = new ArrayList(); } V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java index f800114059..ad4ced8af9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java index 9e6322639f..6512c4ed19 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraintFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java index 4a114d971a..07119ca790 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java index 46156029dd..3418b4c943 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumptionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java index 0b1e351fc5..b421645591 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -45,6 +45,7 @@ public class V1DeviceFluent capacity; private ArrayList consumesCounters; private String name; + private Map nodeAllocatableResourceMappings; private String nodeName; private V1NodeSelectorBuilder nodeSelector; private ArrayList taints; @@ -82,7 +83,7 @@ public A addAllToConsumesCounters(Collection items) } for (V1DeviceCounterConsumption item : items) { V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").add(builder); + this._visitables.get("consumesCounters").add(builder); this.consumesCounters.add(builder); } return (A) this; @@ -94,7 +95,7 @@ public A addAllToTaints(Collection items) { } for (V1DeviceTaint item : items) { V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); - _visitables.get("taints").add(builder); + this._visitables.get("taints").add(builder); this.taints.add(builder); } return (A) this; @@ -198,7 +199,7 @@ public A addToConsumesCounters(V1DeviceCounterConsumption... items) { } for (V1DeviceCounterConsumption item : items) { V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").add(builder); + this._visitables.get("consumesCounters").add(builder); this.consumesCounters.add(builder); } return (A) this; @@ -209,12 +210,32 @@ public A addToConsumesCounters(int index,V1DeviceCounterConsumption item) { this.consumesCounters = new ArrayList(); } V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); - if (index < 0 || index >= consumesCounters.size()) { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(builder); + if (index < 0 || index >= this.consumesCounters.size()) { + this._visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); } else { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(index, builder); + this._visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(index, builder); + } + return (A) this; + } + + public A addToNodeAllocatableResourceMappings(Map map) { + if (this.nodeAllocatableResourceMappings == null && map != null) { + this.nodeAllocatableResourceMappings = new LinkedHashMap(); + } + if (map != null) { + this.nodeAllocatableResourceMappings.putAll(map); + } + return (A) this; + } + + public A addToNodeAllocatableResourceMappings(String key,V1NodeAllocatableResourceMapping value) { + if (this.nodeAllocatableResourceMappings == null && key != null && value != null) { + this.nodeAllocatableResourceMappings = new LinkedHashMap(); + } + if (key != null && value != null) { + this.nodeAllocatableResourceMappings.put(key, value); } return (A) this; } @@ -225,7 +246,7 @@ public A addToTaints(V1DeviceTaint... items) { } for (V1DeviceTaint item : items) { V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); - _visitables.get("taints").add(builder); + this._visitables.get("taints").add(builder); this.taints.add(builder); } return (A) this; @@ -236,12 +257,12 @@ public A addToTaints(int index,V1DeviceTaint item) { this.taints = new ArrayList(); } V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); + if (index < 0 || index >= this.taints.size()) { + this._visitables.get("taints").add(builder); + this.taints.add(builder); } else { - _visitables.get("taints").add(builder); - taints.add(index, builder); + this._visitables.get("taints").add(builder); + this.taints.add(index, builder); } return (A) this; } @@ -312,6 +333,7 @@ protected void copyInstance(V1Device instance) { this.withCapacity(instance.getCapacity()); this.withConsumesCounters(instance.getConsumesCounters()); this.withName(instance.getName()); + this.withNodeAllocatableResourceMappings(instance.getNodeAllocatableResourceMappings()); this.withNodeName(instance.getNodeName()); this.withNodeSelector(instance.getNodeSelector()); this.withTaints(instance.getTaints()); @@ -440,6 +462,9 @@ public boolean equals(Object o) { if (!(Objects.equals(name, that.name))) { return false; } + if (!(Objects.equals(nodeAllocatableResourceMappings, that.nodeAllocatableResourceMappings))) { + return false; + } if (!(Objects.equals(nodeName, that.nodeName))) { return false; } @@ -526,6 +551,10 @@ public String getName() { return this.name; } + public Map getNodeAllocatableResourceMappings() { + return this.nodeAllocatableResourceMappings; + } + public String getNodeName() { return this.nodeName; } @@ -602,6 +631,10 @@ public boolean hasName() { return this.name != null; } + public boolean hasNodeAllocatableResourceMappings() { + return this.nodeAllocatableResourceMappings != null; + } + public boolean hasNodeName() { return this.nodeName != null; } @@ -615,7 +648,7 @@ public boolean hasTaints() { } public int hashCode() { - return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeName, nodeSelector, taints); + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeAllocatableResourceMappings, nodeName, nodeSelector, taints); } public A removeAllFromBindingConditions(Collection items) { @@ -742,6 +775,30 @@ public A removeFromConsumesCounters(V1DeviceCounterConsumption... items) { return (A) this; } + public A removeFromNodeAllocatableResourceMappings(String key) { + if (this.nodeAllocatableResourceMappings == null) { + return (A) this; + } + if (key != null && this.nodeAllocatableResourceMappings != null) { + this.nodeAllocatableResourceMappings.remove(key); + } + return (A) this; + } + + public A removeFromNodeAllocatableResourceMappings(Map map) { + if (this.nodeAllocatableResourceMappings == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.nodeAllocatableResourceMappings != null) { + this.nodeAllocatableResourceMappings.remove(key); + } + } + } + return (A) this; + } + public A removeFromTaints(V1DeviceTaint... items) { if (this.taints == null) { return (A) this; @@ -759,7 +816,7 @@ public A removeMatchingFromConsumesCounters(Predicate each = consumesCounters.iterator(); - List visitables = _visitables.get("consumesCounters"); + List visitables = this._visitables.get("consumesCounters"); while (each.hasNext()) { V1DeviceCounterConsumptionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -775,7 +832,7 @@ public A removeMatchingFromTaints(Predicate predicate) { return (A) this; } Iterator each = taints.iterator(); - List visitables = _visitables.get("taints"); + List visitables = this._visitables.get("taints"); while (each.hasNext()) { V1DeviceTaintBuilder builder = each.next(); if (predicate.test(builder)) { @@ -815,12 +872,12 @@ public A setToConsumesCounters(int index,V1DeviceCounterConsumption item) { this.consumesCounters = new ArrayList(); } V1DeviceCounterConsumptionBuilder builder = new V1DeviceCounterConsumptionBuilder(item); - if (index < 0 || index >= consumesCounters.size()) { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(builder); + if (index < 0 || index >= this.consumesCounters.size()) { + this._visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); } else { - _visitables.get("consumesCounters").add(builder); - consumesCounters.set(index, builder); + this._visitables.get("consumesCounters").add(builder); + this.consumesCounters.set(index, builder); } return (A) this; } @@ -830,12 +887,12 @@ public A setToTaints(int index,V1DeviceTaint item) { this.taints = new ArrayList(); } V1DeviceTaintBuilder builder = new V1DeviceTaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); + if (index < 0 || index >= this.taints.size()) { + this._visitables.get("taints").add(builder); + this.taints.add(builder); } else { - _visitables.get("taints").add(builder); - taints.set(index, builder); + this._visitables.get("taints").add(builder); + this.taints.set(index, builder); } return (A) this; } @@ -888,6 +945,11 @@ public String toString() { sb.append(name); sb.append(","); } + if (!(nodeAllocatableResourceMappings == null) && !(nodeAllocatableResourceMappings.isEmpty())) { + sb.append("nodeAllocatableResourceMappings:"); + sb.append(nodeAllocatableResourceMappings); + sb.append(","); + } if (!(nodeName == null)) { sb.append("nodeName:"); sb.append(nodeName); @@ -1042,6 +1104,15 @@ public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { return new NodeSelectorNested(item); } + public A withNodeAllocatableResourceMappings(Map nodeAllocatableResourceMappings) { + if (nodeAllocatableResourceMappings == null) { + this.nodeAllocatableResourceMappings = null; + } else { + this.nodeAllocatableResourceMappings = new LinkedHashMap(nodeAllocatableResourceMappings); + } + return (A) this; + } + public A withNodeName(String nodeName) { this.nodeName = nodeName; return (A) this; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java index 86bc683c65..2f394fe243 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java index 39e0516f6f..532c45c46c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResultFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -80,7 +80,7 @@ public A addAllToTolerations(Collection items) { } for (V1DeviceToleration item : items) { V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -156,7 +156,7 @@ public A addToTolerations(V1DeviceToleration... items) { } for (V1DeviceToleration item : items) { V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -167,12 +167,12 @@ public A addToTolerations(int index,V1DeviceToleration item) { this.tolerations = new ArrayList(); } V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.add(index, builder); } return (A) this; } @@ -540,7 +540,7 @@ public A removeMatchingFromTolerations(Predicate pred return (A) this; } Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); + List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1DeviceTolerationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -576,12 +576,12 @@ public A setToTolerations(int index,V1DeviceToleration item) { this.tolerations = new ArrayList(); } V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java index ec1f3d58c6..f334beb2a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java index 442576215b..82df79d86c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -50,7 +50,7 @@ public A addAllToFirstAvailable(Collection items) { } for (V1DeviceSubRequest item : items) { V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); - _visitables.get("firstAvailable").add(builder); + this._visitables.get("firstAvailable").add(builder); this.firstAvailable.add(builder); } return (A) this; @@ -70,7 +70,7 @@ public A addToFirstAvailable(V1DeviceSubRequest... items) { } for (V1DeviceSubRequest item : items) { V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); - _visitables.get("firstAvailable").add(builder); + this._visitables.get("firstAvailable").add(builder); this.firstAvailable.add(builder); } return (A) this; @@ -81,12 +81,12 @@ public A addToFirstAvailable(int index,V1DeviceSubRequest item) { this.firstAvailable = new ArrayList(); } V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); - if (index < 0 || index >= firstAvailable.size()) { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(builder); + if (index < 0 || index >= this.firstAvailable.size()) { + this._visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(builder); } else { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(index, builder); + this._visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(index, builder); } return (A) this; } @@ -258,7 +258,7 @@ public A removeMatchingFromFirstAvailable(Predicate p return (A) this; } Iterator each = firstAvailable.iterator(); - List visitables = _visitables.get("firstAvailable"); + List visitables = this._visitables.get("firstAvailable"); while (each.hasNext()) { V1DeviceSubRequestBuilder builder = each.next(); if (predicate.test(builder)) { @@ -278,12 +278,12 @@ public A setToFirstAvailable(int index,V1DeviceSubRequest item) { this.firstAvailable = new ArrayList(); } V1DeviceSubRequestBuilder builder = new V1DeviceSubRequestBuilder(item); - if (index < 0 || index >= firstAvailable.size()) { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(builder); + if (index < 0 || index >= this.firstAvailable.size()) { + this._visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(builder); } else { - _visitables.get("firstAvailable").add(builder); - firstAvailable.set(index, builder); + this._visitables.get("firstAvailable").add(builder); + this.firstAvailable.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java index 17194ea208..187d3ad8f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java index 5871563561..f8517ae12b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelectorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java index 51bcf9a2e9..3c4ddbc169 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java index 19e0772bcf..2f4a09776d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequestFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -55,7 +55,7 @@ public A addAllToSelectors(Collection items) { } for (V1DeviceSelector item : items) { V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addAllToTolerations(Collection items) { } for (V1DeviceToleration item : items) { V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -95,7 +95,7 @@ public A addToSelectors(V1DeviceSelector... items) { } for (V1DeviceSelector item : items) { V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -106,12 +106,12 @@ public A addToSelectors(int index,V1DeviceSelector item) { this.selectors = new ArrayList(); } V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.add(index, builder); } return (A) this; } @@ -122,7 +122,7 @@ public A addToTolerations(V1DeviceToleration... items) { } for (V1DeviceToleration item : items) { V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -133,12 +133,12 @@ public A addToTolerations(int index,V1DeviceToleration item) { this.tolerations = new ArrayList(); } V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.add(index, builder); } return (A) this; } @@ -448,7 +448,7 @@ public A removeMatchingFromSelectors(Predicate predicat return (A) this; } Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); + List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1DeviceSelectorBuilder builder = each.next(); if (predicate.test(builder)) { @@ -464,7 +464,7 @@ public A removeMatchingFromTolerations(Predicate pred return (A) this; } Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); + List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1DeviceTolerationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -488,12 +488,12 @@ public A setToSelectors(int index,V1DeviceSelector item) { this.selectors = new ArrayList(); } V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.set(index, builder); } return (A) this; } @@ -503,12 +503,12 @@ public A setToTolerations(int index,V1DeviceToleration item) { this.tolerations = new ArrayList(); } V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java index c1fee223d2..56a3aab7f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java index 7612ec70bf..bba2aed590 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaintFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java index 7b968f074e..3eb689b45b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java index a03e9b75c8..d14c6fda5c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTolerationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java index 695a1924f9..56790c61bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java index 97c5776d09..ae16f5681d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjectionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToItems(Collection items) { } for (V1DownwardAPIVolumeFile item : items) { V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToItems(V1DownwardAPIVolumeFile... items) { } for (V1DownwardAPIVolumeFile item : items) { V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToItems(int index,V1DownwardAPIVolumeFile item) { this.items = new ArrayList(); } V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1DownwardAPIVolumeFileBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToItems(int index,V1DownwardAPIVolumeFile item) { this.items = new ArrayList(); } V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java index 405f79119b..9d84c0ac05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java index 6ed1a2d8fc..cc260d285b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFileFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java index 7c4d8c906e..989932b5b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java index b164de1e3e..6dfa083007 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ public A addAllToItems(Collection items) { } for (V1DownwardAPIVolumeFile item : items) { V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -69,7 +69,7 @@ public A addToItems(V1DownwardAPIVolumeFile... items) { } for (V1DownwardAPIVolumeFile item : items) { V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -80,12 +80,12 @@ public A addToItems(int index,V1DownwardAPIVolumeFile item) { this.items = new ArrayList(); } V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -233,7 +233,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1DownwardAPIVolumeFileBuilder builder = each.next(); if (predicate.test(builder)) { @@ -253,12 +253,12 @@ public A setToItems(int index,V1DownwardAPIVolumeFile item) { this.items = new ArrayList(); } V1DownwardAPIVolumeFileBuilder builder = new V1DownwardAPIVolumeFileBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java index a5090422d8..02ade2206e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java index 028708d3d6..a2fd7ec5c6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java index db231dee2e..e0bd3317bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java index ff5c559dca..5a341f0114 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddressFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java index 213709d5a3..df84d66702 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java index b67c90dcc5..dc8b8afb89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java index a8f0f9bed6..7f37d7edb8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditionsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java index c92451fb9c..687b944cdc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java index d1beb61fb4..7504c46deb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java index 850e241207..35d8d1820e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHintsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,7 +48,7 @@ public A addAllToForNodes(Collection items) { } for (V1ForNode item : items) { V1ForNodeBuilder builder = new V1ForNodeBuilder(item); - _visitables.get("forNodes").add(builder); + this._visitables.get("forNodes").add(builder); this.forNodes.add(builder); } return (A) this; @@ -60,7 +60,7 @@ public A addAllToForZones(Collection items) { } for (V1ForZone item : items) { V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - _visitables.get("forZones").add(builder); + this._visitables.get("forZones").add(builder); this.forZones.add(builder); } return (A) this; @@ -88,7 +88,7 @@ public A addToForNodes(V1ForNode... items) { } for (V1ForNode item : items) { V1ForNodeBuilder builder = new V1ForNodeBuilder(item); - _visitables.get("forNodes").add(builder); + this._visitables.get("forNodes").add(builder); this.forNodes.add(builder); } return (A) this; @@ -99,12 +99,12 @@ public A addToForNodes(int index,V1ForNode item) { this.forNodes = new ArrayList(); } V1ForNodeBuilder builder = new V1ForNodeBuilder(item); - if (index < 0 || index >= forNodes.size()) { - _visitables.get("forNodes").add(builder); - forNodes.add(builder); + if (index < 0 || index >= this.forNodes.size()) { + this._visitables.get("forNodes").add(builder); + this.forNodes.add(builder); } else { - _visitables.get("forNodes").add(builder); - forNodes.add(index, builder); + this._visitables.get("forNodes").add(builder); + this.forNodes.add(index, builder); } return (A) this; } @@ -115,7 +115,7 @@ public A addToForZones(V1ForZone... items) { } for (V1ForZone item : items) { V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - _visitables.get("forZones").add(builder); + this._visitables.get("forZones").add(builder); this.forZones.add(builder); } return (A) this; @@ -126,12 +126,12 @@ public A addToForZones(int index,V1ForZone item) { this.forZones = new ArrayList(); } V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - if (index < 0 || index >= forZones.size()) { - _visitables.get("forZones").add(builder); - forZones.add(builder); + if (index < 0 || index >= this.forZones.size()) { + this._visitables.get("forZones").add(builder); + this.forZones.add(builder); } else { - _visitables.get("forZones").add(builder); - forZones.add(index, builder); + this._visitables.get("forZones").add(builder); + this.forZones.add(index, builder); } return (A) this; } @@ -369,7 +369,7 @@ public A removeMatchingFromForNodes(Predicate predicate) { return (A) this; } Iterator each = forNodes.iterator(); - List visitables = _visitables.get("forNodes"); + List visitables = this._visitables.get("forNodes"); while (each.hasNext()) { V1ForNodeBuilder builder = each.next(); if (predicate.test(builder)) { @@ -385,7 +385,7 @@ public A removeMatchingFromForZones(Predicate predicate) { return (A) this; } Iterator each = forZones.iterator(); - List visitables = _visitables.get("forZones"); + List visitables = this._visitables.get("forZones"); while (each.hasNext()) { V1ForZoneBuilder builder = each.next(); if (predicate.test(builder)) { @@ -409,12 +409,12 @@ public A setToForNodes(int index,V1ForNode item) { this.forNodes = new ArrayList(); } V1ForNodeBuilder builder = new V1ForNodeBuilder(item); - if (index < 0 || index >= forNodes.size()) { - _visitables.get("forNodes").add(builder); - forNodes.add(builder); + if (index < 0 || index >= this.forNodes.size()) { + this._visitables.get("forNodes").add(builder); + this.forNodes.add(builder); } else { - _visitables.get("forNodes").add(builder); - forNodes.set(index, builder); + this._visitables.get("forNodes").add(builder); + this.forNodes.set(index, builder); } return (A) this; } @@ -424,12 +424,12 @@ public A setToForZones(int index,V1ForZone item) { this.forZones = new ArrayList(); } V1ForZoneBuilder builder = new V1ForZoneBuilder(item); - if (index < 0 || index >= forZones.size()) { - _visitables.get("forZones").add(builder); - forZones.add(builder); + if (index < 0 || index >= this.forZones.size()) { + this._visitables.get("forZones").add(builder); + this.forZones.add(builder); } else { - _visitables.get("forZones").add(builder); - forZones.set(index, builder); + this._visitables.get("forZones").add(builder); + this.forZones.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java index 686d901da2..b2ce16129d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java index 92993249f0..5b773b0776 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -53,7 +53,7 @@ public A addAllToEndpoints(Collection items) { } for (V1Endpoint item : items) { V1EndpointBuilder builder = new V1EndpointBuilder(item); - _visitables.get("endpoints").add(builder); + this._visitables.get("endpoints").add(builder); this.endpoints.add(builder); } return (A) this; @@ -65,7 +65,7 @@ public A addAllToPorts(Collection items) { } for (DiscoveryV1EndpointPort item : items) { DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -93,7 +93,7 @@ public A addToEndpoints(V1Endpoint... items) { } for (V1Endpoint item : items) { V1EndpointBuilder builder = new V1EndpointBuilder(item); - _visitables.get("endpoints").add(builder); + this._visitables.get("endpoints").add(builder); this.endpoints.add(builder); } return (A) this; @@ -104,12 +104,12 @@ public A addToEndpoints(int index,V1Endpoint item) { this.endpoints = new ArrayList(); } V1EndpointBuilder builder = new V1EndpointBuilder(item); - if (index < 0 || index >= endpoints.size()) { - _visitables.get("endpoints").add(builder); - endpoints.add(builder); + if (index < 0 || index >= this.endpoints.size()) { + this._visitables.get("endpoints").add(builder); + this.endpoints.add(builder); } else { - _visitables.get("endpoints").add(builder); - endpoints.add(index, builder); + this._visitables.get("endpoints").add(builder); + this.endpoints.add(index, builder); } return (A) this; } @@ -120,7 +120,7 @@ public A addToPorts(DiscoveryV1EndpointPort... items) { } for (DiscoveryV1EndpointPort item : items) { DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -131,12 +131,12 @@ public A addToPorts(int index,DiscoveryV1EndpointPort item) { this.ports = new ArrayList(); } DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.add(index, builder); + this._visitables.get("ports").add(builder); + this.ports.add(index, builder); } return (A) this; } @@ -434,7 +434,7 @@ public A removeMatchingFromEndpoints(Predicate predicate) { return (A) this; } Iterator each = endpoints.iterator(); - List visitables = _visitables.get("endpoints"); + List visitables = this._visitables.get("endpoints"); while (each.hasNext()) { V1EndpointBuilder builder = each.next(); if (predicate.test(builder)) { @@ -450,7 +450,7 @@ public A removeMatchingFromPorts(Predicate predi return (A) this; } Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); + List visitables = this._visitables.get("ports"); while (each.hasNext()) { DiscoveryV1EndpointPortBuilder builder = each.next(); if (predicate.test(builder)) { @@ -474,12 +474,12 @@ public A setToEndpoints(int index,V1Endpoint item) { this.endpoints = new ArrayList(); } V1EndpointBuilder builder = new V1EndpointBuilder(item); - if (index < 0 || index >= endpoints.size()) { - _visitables.get("endpoints").add(builder); - endpoints.add(builder); + if (index < 0 || index >= this.endpoints.size()) { + this._visitables.get("endpoints").add(builder); + this.endpoints.add(builder); } else { - _visitables.get("endpoints").add(builder); - endpoints.set(index, builder); + this._visitables.get("endpoints").add(builder); + this.endpoints.set(index, builder); } return (A) this; } @@ -489,12 +489,12 @@ public A setToPorts(int index,DiscoveryV1EndpointPort item) { this.ports = new ArrayList(); } DiscoveryV1EndpointPortBuilder builder = new DiscoveryV1EndpointPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); + this._visitables.get("ports").add(builder); + this.ports.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java index 7fc99aa80f..d4a7bac912 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java index 8e5ad69b1f..5a2ed328d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1EndpointSlice item : items) { V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1EndpointSlice... items) { } for (V1EndpointSlice item : items) { V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1EndpointSlice item) { this.items = new ArrayList(); } V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1EndpointSliceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1EndpointSlice item) { this.items = new ArrayList(); } V1EndpointSliceBuilder builder = new V1EndpointSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java index 52553ac2b6..28f4a44578 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java index d57414fb5e..e95161d745 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubsetFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ public A addAllToAddresses(Collection items) { } for (V1EndpointAddress item : items) { V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("addresses").add(builder); + this._visitables.get("addresses").add(builder); this.addresses.add(builder); } return (A) this; @@ -61,7 +61,7 @@ public A addAllToNotReadyAddresses(Collection items) { } for (V1EndpointAddress item : items) { V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("notReadyAddresses").add(builder); + this._visitables.get("notReadyAddresses").add(builder); this.notReadyAddresses.add(builder); } return (A) this; @@ -73,7 +73,7 @@ public A addAllToPorts(Collection items) { } for (CoreV1EndpointPort item : items) { CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -109,7 +109,7 @@ public A addToAddresses(V1EndpointAddress... items) { } for (V1EndpointAddress item : items) { V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("addresses").add(builder); + this._visitables.get("addresses").add(builder); this.addresses.add(builder); } return (A) this; @@ -120,12 +120,12 @@ public A addToAddresses(int index,V1EndpointAddress item) { this.addresses = new ArrayList(); } V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { - _visitables.get("addresses").add(builder); - addresses.add(builder); + if (index < 0 || index >= this.addresses.size()) { + this._visitables.get("addresses").add(builder); + this.addresses.add(builder); } else { - _visitables.get("addresses").add(builder); - addresses.add(index, builder); + this._visitables.get("addresses").add(builder); + this.addresses.add(index, builder); } return (A) this; } @@ -136,7 +136,7 @@ public A addToNotReadyAddresses(V1EndpointAddress... items) { } for (V1EndpointAddress item : items) { V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - _visitables.get("notReadyAddresses").add(builder); + this._visitables.get("notReadyAddresses").add(builder); this.notReadyAddresses.add(builder); } return (A) this; @@ -147,12 +147,12 @@ public A addToNotReadyAddresses(int index,V1EndpointAddress item) { this.notReadyAddresses = new ArrayList(); } V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= notReadyAddresses.size()) { - _visitables.get("notReadyAddresses").add(builder); - notReadyAddresses.add(builder); + if (index < 0 || index >= this.notReadyAddresses.size()) { + this._visitables.get("notReadyAddresses").add(builder); + this.notReadyAddresses.add(builder); } else { - _visitables.get("notReadyAddresses").add(builder); - notReadyAddresses.add(index, builder); + this._visitables.get("notReadyAddresses").add(builder); + this.notReadyAddresses.add(index, builder); } return (A) this; } @@ -163,7 +163,7 @@ public A addToPorts(CoreV1EndpointPort... items) { } for (CoreV1EndpointPort item : items) { CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -174,12 +174,12 @@ public A addToPorts(int index,CoreV1EndpointPort item) { this.ports = new ArrayList(); } CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.add(index, builder); + this._visitables.get("ports").add(builder); + this.ports.add(index, builder); } return (A) this; } @@ -519,7 +519,7 @@ public A removeMatchingFromAddresses(Predicate predica return (A) this; } Iterator each = addresses.iterator(); - List visitables = _visitables.get("addresses"); + List visitables = this._visitables.get("addresses"); while (each.hasNext()) { V1EndpointAddressBuilder builder = each.next(); if (predicate.test(builder)) { @@ -535,7 +535,7 @@ public A removeMatchingFromNotReadyAddresses(Predicate return (A) this; } Iterator each = notReadyAddresses.iterator(); - List visitables = _visitables.get("notReadyAddresses"); + List visitables = this._visitables.get("notReadyAddresses"); while (each.hasNext()) { V1EndpointAddressBuilder builder = each.next(); if (predicate.test(builder)) { @@ -551,7 +551,7 @@ public A removeMatchingFromPorts(Predicate predicate) return (A) this; } Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); + List visitables = this._visitables.get("ports"); while (each.hasNext()) { CoreV1EndpointPortBuilder builder = each.next(); if (predicate.test(builder)) { @@ -579,12 +579,12 @@ public A setToAddresses(int index,V1EndpointAddress item) { this.addresses = new ArrayList(); } V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { - _visitables.get("addresses").add(builder); - addresses.add(builder); + if (index < 0 || index >= this.addresses.size()) { + this._visitables.get("addresses").add(builder); + this.addresses.add(builder); } else { - _visitables.get("addresses").add(builder); - addresses.set(index, builder); + this._visitables.get("addresses").add(builder); + this.addresses.set(index, builder); } return (A) this; } @@ -594,12 +594,12 @@ public A setToNotReadyAddresses(int index,V1EndpointAddress item) { this.notReadyAddresses = new ArrayList(); } V1EndpointAddressBuilder builder = new V1EndpointAddressBuilder(item); - if (index < 0 || index >= notReadyAddresses.size()) { - _visitables.get("notReadyAddresses").add(builder); - notReadyAddresses.add(builder); + if (index < 0 || index >= this.notReadyAddresses.size()) { + this._visitables.get("notReadyAddresses").add(builder); + this.notReadyAddresses.add(builder); } else { - _visitables.get("notReadyAddresses").add(builder); - notReadyAddresses.set(index, builder); + this._visitables.get("notReadyAddresses").add(builder); + this.notReadyAddresses.set(index, builder); } return (A) this; } @@ -609,12 +609,12 @@ public A setToPorts(int index,CoreV1EndpointPort item) { this.ports = new ArrayList(); } CoreV1EndpointPortBuilder builder = new CoreV1EndpointPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); + this._visitables.get("ports").add(builder); + this.ports.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java index b8dcc94a4f..1a2560e5eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java index 73bf5cb0db..1d402ba82e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToSubsets(Collection items) { } for (V1EndpointSubset item : items) { V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - _visitables.get("subsets").add(builder); + this._visitables.get("subsets").add(builder); this.subsets.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToSubsets(V1EndpointSubset... items) { } for (V1EndpointSubset item : items) { V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - _visitables.get("subsets").add(builder); + this._visitables.get("subsets").add(builder); this.subsets.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToSubsets(int index,V1EndpointSubset item) { this.subsets = new ArrayList(); } V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - if (index < 0 || index >= subsets.size()) { - _visitables.get("subsets").add(builder); - subsets.add(builder); + if (index < 0 || index >= this.subsets.size()) { + this._visitables.get("subsets").add(builder); + this.subsets.add(builder); } else { - _visitables.get("subsets").add(builder); - subsets.add(index, builder); + this._visitables.get("subsets").add(builder); + this.subsets.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromSubsets(Predicate predicate) return (A) this; } Iterator each = subsets.iterator(); - List visitables = _visitables.get("subsets"); + List visitables = this._visitables.get("subsets"); while (each.hasNext()) { V1EndpointSubsetBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToSubsets(int index,V1EndpointSubset item) { this.subsets = new ArrayList(); } V1EndpointSubsetBuilder builder = new V1EndpointSubsetBuilder(item); - if (index < 0 || index >= subsets.size()) { - _visitables.get("subsets").add(builder); - subsets.add(builder); + if (index < 0 || index >= this.subsets.size()) { + this._visitables.get("subsets").add(builder); + this.subsets.add(builder); } else { - _visitables.get("subsets").add(builder); - subsets.set(index, builder); + this._visitables.get("subsets").add(builder); + this.subsets.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java index 686954a0db..07b05a257f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java index c1792337c0..9ca0e2f67b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1Endpoints item : items) { V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1Endpoints... items) { } for (V1Endpoints item : items) { V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1Endpoints item) { this.items = new ArrayList(); } V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1EndpointsBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1Endpoints item) { this.items = new ArrayList(); } V1EndpointsBuilder builder = new V1EndpointsBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java index c6ab7648f8..05a45068fc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java index 242366a861..82ba0bef5d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java index 7d6fa65eec..13de42cf58 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java index c631594064..7c9bd973f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java index 7b164851b2..bbf58e1ad8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java index aab0b64c6e..77fa362986 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java index 0215ac0572..caa99210a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java index 267c36b7d4..444c9768a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainerFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -94,7 +94,7 @@ public A addAllToEnv(Collection items) { } for (V1EnvVar item : items) { V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").add(builder); + this._visitables.get("env").add(builder); this.env.add(builder); } return (A) this; @@ -106,7 +106,7 @@ public A addAllToEnvFrom(Collection items) { } for (V1EnvFromSource item : items) { V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").add(builder); + this._visitables.get("envFrom").add(builder); this.envFrom.add(builder); } return (A) this; @@ -118,7 +118,7 @@ public A addAllToPorts(Collection items) { } for (V1ContainerPort item : items) { V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -130,7 +130,7 @@ public A addAllToResizePolicy(Collection items) { } for (V1ContainerResizePolicy item : items) { V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - _visitables.get("resizePolicy").add(builder); + this._visitables.get("resizePolicy").add(builder); this.resizePolicy.add(builder); } return (A) this; @@ -142,7 +142,7 @@ public A addAllToRestartPolicyRules(Collection items) { } for (V1ContainerRestartRule item : items) { V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - _visitables.get("restartPolicyRules").add(builder); + this._visitables.get("restartPolicyRules").add(builder); this.restartPolicyRules.add(builder); } return (A) this; @@ -154,7 +154,7 @@ public A addAllToVolumeDevices(Collection items) { } for (V1VolumeDevice item : items) { V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").add(builder); + this._visitables.get("volumeDevices").add(builder); this.volumeDevices.add(builder); } return (A) this; @@ -166,7 +166,7 @@ public A addAllToVolumeMounts(Collection items) { } for (V1VolumeMount item : items) { V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").add(builder); + this._visitables.get("volumeMounts").add(builder); this.volumeMounts.add(builder); } return (A) this; @@ -270,7 +270,7 @@ public A addToEnv(V1EnvVar... items) { } for (V1EnvVar item : items) { V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - _visitables.get("env").add(builder); + this._visitables.get("env").add(builder); this.env.add(builder); } return (A) this; @@ -281,12 +281,12 @@ public A addToEnv(int index,V1EnvVar item) { this.env = new ArrayList(); } V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { - _visitables.get("env").add(builder); - env.add(builder); + if (index < 0 || index >= this.env.size()) { + this._visitables.get("env").add(builder); + this.env.add(builder); } else { - _visitables.get("env").add(builder); - env.add(index, builder); + this._visitables.get("env").add(builder); + this.env.add(index, builder); } return (A) this; } @@ -297,7 +297,7 @@ public A addToEnvFrom(V1EnvFromSource... items) { } for (V1EnvFromSource item : items) { V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - _visitables.get("envFrom").add(builder); + this._visitables.get("envFrom").add(builder); this.envFrom.add(builder); } return (A) this; @@ -308,12 +308,12 @@ public A addToEnvFrom(int index,V1EnvFromSource item) { this.envFrom = new ArrayList(); } V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { - _visitables.get("envFrom").add(builder); - envFrom.add(builder); + if (index < 0 || index >= this.envFrom.size()) { + this._visitables.get("envFrom").add(builder); + this.envFrom.add(builder); } else { - _visitables.get("envFrom").add(builder); - envFrom.add(index, builder); + this._visitables.get("envFrom").add(builder); + this.envFrom.add(index, builder); } return (A) this; } @@ -324,7 +324,7 @@ public A addToPorts(V1ContainerPort... items) { } for (V1ContainerPort item : items) { V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -335,12 +335,12 @@ public A addToPorts(int index,V1ContainerPort item) { this.ports = new ArrayList(); } V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.add(index, builder); + this._visitables.get("ports").add(builder); + this.ports.add(index, builder); } return (A) this; } @@ -351,7 +351,7 @@ public A addToResizePolicy(V1ContainerResizePolicy... items) { } for (V1ContainerResizePolicy item : items) { V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - _visitables.get("resizePolicy").add(builder); + this._visitables.get("resizePolicy").add(builder); this.resizePolicy.add(builder); } return (A) this; @@ -362,12 +362,12 @@ public A addToResizePolicy(int index,V1ContainerResizePolicy item) { this.resizePolicy = new ArrayList(); } V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { - _visitables.get("resizePolicy").add(builder); - resizePolicy.add(builder); + if (index < 0 || index >= this.resizePolicy.size()) { + this._visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); } else { - _visitables.get("resizePolicy").add(builder); - resizePolicy.add(index, builder); + this._visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(index, builder); } return (A) this; } @@ -378,7 +378,7 @@ public A addToRestartPolicyRules(V1ContainerRestartRule... items) { } for (V1ContainerRestartRule item : items) { V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - _visitables.get("restartPolicyRules").add(builder); + this._visitables.get("restartPolicyRules").add(builder); this.restartPolicyRules.add(builder); } return (A) this; @@ -389,12 +389,12 @@ public A addToRestartPolicyRules(int index,V1ContainerRestartRule item) { this.restartPolicyRules = new ArrayList(); } V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - if (index < 0 || index >= restartPolicyRules.size()) { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.add(builder); + if (index < 0 || index >= this.restartPolicyRules.size()) { + this._visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); } else { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.add(index, builder); + this._visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(index, builder); } return (A) this; } @@ -405,7 +405,7 @@ public A addToVolumeDevices(V1VolumeDevice... items) { } for (V1VolumeDevice item : items) { V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - _visitables.get("volumeDevices").add(builder); + this._visitables.get("volumeDevices").add(builder); this.volumeDevices.add(builder); } return (A) this; @@ -416,12 +416,12 @@ public A addToVolumeDevices(int index,V1VolumeDevice item) { this.volumeDevices = new ArrayList(); } V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { - _visitables.get("volumeDevices").add(builder); - volumeDevices.add(builder); + if (index < 0 || index >= this.volumeDevices.size()) { + this._visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); } else { - _visitables.get("volumeDevices").add(builder); - volumeDevices.add(index, builder); + this._visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(index, builder); } return (A) this; } @@ -432,7 +432,7 @@ public A addToVolumeMounts(V1VolumeMount... items) { } for (V1VolumeMount item : items) { V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - _visitables.get("volumeMounts").add(builder); + this._visitables.get("volumeMounts").add(builder); this.volumeMounts.add(builder); } return (A) this; @@ -443,12 +443,12 @@ public A addToVolumeMounts(int index,V1VolumeMount item) { this.volumeMounts = new ArrayList(); } V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(builder); + if (index < 0 || index >= this.volumeMounts.size()) { + this._visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } else { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(index, builder); + this._visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(index, builder); } return (A) this; } @@ -1596,7 +1596,7 @@ public A removeMatchingFromEnv(Predicate predicate) { return (A) this; } Iterator each = env.iterator(); - List visitables = _visitables.get("env"); + List visitables = this._visitables.get("env"); while (each.hasNext()) { V1EnvVarBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1612,7 +1612,7 @@ public A removeMatchingFromEnvFrom(Predicate predicate) return (A) this; } Iterator each = envFrom.iterator(); - List visitables = _visitables.get("envFrom"); + List visitables = this._visitables.get("envFrom"); while (each.hasNext()) { V1EnvFromSourceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1628,7 +1628,7 @@ public A removeMatchingFromPorts(Predicate predicate) { return (A) this; } Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); + List visitables = this._visitables.get("ports"); while (each.hasNext()) { V1ContainerPortBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1644,7 +1644,7 @@ public A removeMatchingFromResizePolicy(Predicate each = resizePolicy.iterator(); - List visitables = _visitables.get("resizePolicy"); + List visitables = this._visitables.get("resizePolicy"); while (each.hasNext()) { V1ContainerResizePolicyBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1660,7 +1660,7 @@ public A removeMatchingFromRestartPolicyRules(Predicate each = restartPolicyRules.iterator(); - List visitables = _visitables.get("restartPolicyRules"); + List visitables = this._visitables.get("restartPolicyRules"); while (each.hasNext()) { V1ContainerRestartRuleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1676,7 +1676,7 @@ public A removeMatchingFromVolumeDevices(Predicate predic return (A) this; } Iterator each = volumeDevices.iterator(); - List visitables = _visitables.get("volumeDevices"); + List visitables = this._visitables.get("volumeDevices"); while (each.hasNext()) { V1VolumeDeviceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1692,7 +1692,7 @@ public A removeMatchingFromVolumeMounts(Predicate predicat return (A) this; } Iterator each = volumeMounts.iterator(); - List visitables = _visitables.get("volumeMounts"); + List visitables = this._visitables.get("volumeMounts"); while (each.hasNext()) { V1VolumeMountBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1752,12 +1752,12 @@ public A setToEnv(int index,V1EnvVar item) { this.env = new ArrayList(); } V1EnvVarBuilder builder = new V1EnvVarBuilder(item); - if (index < 0 || index >= env.size()) { - _visitables.get("env").add(builder); - env.add(builder); + if (index < 0 || index >= this.env.size()) { + this._visitables.get("env").add(builder); + this.env.add(builder); } else { - _visitables.get("env").add(builder); - env.set(index, builder); + this._visitables.get("env").add(builder); + this.env.set(index, builder); } return (A) this; } @@ -1767,12 +1767,12 @@ public A setToEnvFrom(int index,V1EnvFromSource item) { this.envFrom = new ArrayList(); } V1EnvFromSourceBuilder builder = new V1EnvFromSourceBuilder(item); - if (index < 0 || index >= envFrom.size()) { - _visitables.get("envFrom").add(builder); - envFrom.add(builder); + if (index < 0 || index >= this.envFrom.size()) { + this._visitables.get("envFrom").add(builder); + this.envFrom.add(builder); } else { - _visitables.get("envFrom").add(builder); - envFrom.set(index, builder); + this._visitables.get("envFrom").add(builder); + this.envFrom.set(index, builder); } return (A) this; } @@ -1782,12 +1782,12 @@ public A setToPorts(int index,V1ContainerPort item) { this.ports = new ArrayList(); } V1ContainerPortBuilder builder = new V1ContainerPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); + this._visitables.get("ports").add(builder); + this.ports.set(index, builder); } return (A) this; } @@ -1797,12 +1797,12 @@ public A setToResizePolicy(int index,V1ContainerResizePolicy item) { this.resizePolicy = new ArrayList(); } V1ContainerResizePolicyBuilder builder = new V1ContainerResizePolicyBuilder(item); - if (index < 0 || index >= resizePolicy.size()) { - _visitables.get("resizePolicy").add(builder); - resizePolicy.add(builder); + if (index < 0 || index >= this.resizePolicy.size()) { + this._visitables.get("resizePolicy").add(builder); + this.resizePolicy.add(builder); } else { - _visitables.get("resizePolicy").add(builder); - resizePolicy.set(index, builder); + this._visitables.get("resizePolicy").add(builder); + this.resizePolicy.set(index, builder); } return (A) this; } @@ -1812,12 +1812,12 @@ public A setToRestartPolicyRules(int index,V1ContainerRestartRule item) { this.restartPolicyRules = new ArrayList(); } V1ContainerRestartRuleBuilder builder = new V1ContainerRestartRuleBuilder(item); - if (index < 0 || index >= restartPolicyRules.size()) { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.add(builder); + if (index < 0 || index >= this.restartPolicyRules.size()) { + this._visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.add(builder); } else { - _visitables.get("restartPolicyRules").add(builder); - restartPolicyRules.set(index, builder); + this._visitables.get("restartPolicyRules").add(builder); + this.restartPolicyRules.set(index, builder); } return (A) this; } @@ -1827,12 +1827,12 @@ public A setToVolumeDevices(int index,V1VolumeDevice item) { this.volumeDevices = new ArrayList(); } V1VolumeDeviceBuilder builder = new V1VolumeDeviceBuilder(item); - if (index < 0 || index >= volumeDevices.size()) { - _visitables.get("volumeDevices").add(builder); - volumeDevices.add(builder); + if (index < 0 || index >= this.volumeDevices.size()) { + this._visitables.get("volumeDevices").add(builder); + this.volumeDevices.add(builder); } else { - _visitables.get("volumeDevices").add(builder); - volumeDevices.set(index, builder); + this._visitables.get("volumeDevices").add(builder); + this.volumeDevices.set(index, builder); } return (A) this; } @@ -1842,12 +1842,12 @@ public A setToVolumeMounts(int index,V1VolumeMount item) { this.volumeMounts = new ArrayList(); } V1VolumeMountBuilder builder = new V1VolumeMountBuilder(item); - if (index < 0 || index >= volumeMounts.size()) { - _visitables.get("volumeMounts").add(builder); - volumeMounts.add(builder); + if (index < 0 || index >= this.volumeMounts.size()) { + this._visitables.get("volumeMounts").add(builder); + this.volumeMounts.add(builder); } else { - _visitables.get("volumeMounts").add(builder); - volumeMounts.set(index, builder); + this._visitables.get("volumeMounts").add(builder); + this.volumeMounts.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java index b3dfd0e8e2..30f640470f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java index eb0e288837..1a7f08daa4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java index a6b11680e3..5cbbe33bb1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java index 704c12469c..ae9b12c012 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EventSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java index 82179aa878..b7c2e8acdf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java index 93504f3644..8e7f687f03 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1EvictionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java index 0c78cb1452..1993b387f0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java index 09d802e8d5..73bb522041 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequestFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -56,7 +56,7 @@ public A addAllToSelectors(Collection items) { } for (V1DeviceSelector item : items) { V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -68,7 +68,7 @@ public A addAllToTolerations(Collection items) { } for (V1DeviceToleration item : items) { V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -96,7 +96,7 @@ public A addToSelectors(V1DeviceSelector... items) { } for (V1DeviceSelector item : items) { V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -107,12 +107,12 @@ public A addToSelectors(int index,V1DeviceSelector item) { this.selectors = new ArrayList(); } V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.add(index, builder); } return (A) this; } @@ -123,7 +123,7 @@ public A addToTolerations(V1DeviceToleration... items) { } for (V1DeviceToleration item : items) { V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -134,12 +134,12 @@ public A addToTolerations(int index,V1DeviceToleration item) { this.tolerations = new ArrayList(); } V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.add(index, builder); } return (A) this; } @@ -449,7 +449,7 @@ public A removeMatchingFromSelectors(Predicate predicat return (A) this; } Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); + List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1DeviceSelectorBuilder builder = each.next(); if (predicate.test(builder)) { @@ -465,7 +465,7 @@ public A removeMatchingFromTolerations(Predicate pred return (A) this; } Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); + List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1DeviceTolerationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -489,12 +489,12 @@ public A setToSelectors(int index,V1DeviceSelector item) { this.selectors = new ArrayList(); } V1DeviceSelectorBuilder builder = new V1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.set(index, builder); } return (A) this; } @@ -504,12 +504,12 @@ public A setToTolerations(int index,V1DeviceToleration item) { this.tolerations = new ArrayList(); } V1DeviceTolerationBuilder builder = new V1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java index 50455f13c6..ee6a70ff91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java index 158f3398dc..8c0b80b9a5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExecActionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java index 42c556d4af..3c5c7facab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java index 75c4a04a38..3af563d5a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java index b39fc2d6fc..da5e300f7e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java index 04d9f33ea4..614f183394 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarningFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java index d1449ee56d..eee4a36c3e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java index 5bb93d5979..3cd9ccf1e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java index 60f7752e39..4230d9ec50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java index 107ef21247..107104f01c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java index 14c406add9..1914f56769 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java index 7a874a4c64..21487a978d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,7 +48,7 @@ public A addAllToRequirements(Collection items) { } for (V1FieldSelectorRequirement item : items) { V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); - _visitables.get("requirements").add(builder); + this._visitables.get("requirements").add(builder); this.requirements.add(builder); } return (A) this; @@ -68,7 +68,7 @@ public A addToRequirements(V1FieldSelectorRequirement... items) { } for (V1FieldSelectorRequirement item : items) { V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); - _visitables.get("requirements").add(builder); + this._visitables.get("requirements").add(builder); this.requirements.add(builder); } return (A) this; @@ -79,12 +79,12 @@ public A addToRequirements(int index,V1FieldSelectorRequirement item) { this.requirements = new ArrayList(); } V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); - if (index < 0 || index >= requirements.size()) { - _visitables.get("requirements").add(builder); - requirements.add(builder); + if (index < 0 || index >= this.requirements.size()) { + this._visitables.get("requirements").add(builder); + this.requirements.add(builder); } else { - _visitables.get("requirements").add(builder); - requirements.add(index, builder); + this._visitables.get("requirements").add(builder); + this.requirements.add(index, builder); } return (A) this; } @@ -232,7 +232,7 @@ public A removeMatchingFromRequirements(Predicate each = requirements.iterator(); - List visitables = _visitables.get("requirements"); + List visitables = this._visitables.get("requirements"); while (each.hasNext()) { V1FieldSelectorRequirementBuilder builder = each.next(); if (predicate.test(builder)) { @@ -252,12 +252,12 @@ public A setToRequirements(int index,V1FieldSelectorRequirement item) { this.requirements = new ArrayList(); } V1FieldSelectorRequirementBuilder builder = new V1FieldSelectorRequirementBuilder(item); - if (index < 0 || index >= requirements.size()) { - _visitables.get("requirements").add(builder); - requirements.add(builder); + if (index < 0 || index >= this.requirements.size()) { + this._visitables.get("requirements").add(builder); + this.requirements.add(builder); } else { - _visitables.get("requirements").add(builder); - requirements.set(index, builder); + this._visitables.get("requirements").add(builder); + this.requirements.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java index 78e5e846ab..defc07c05b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java index 9a21e068d2..7339bcf8b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirementFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java index 74a5d1528b..ee4df9a0e0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java index 7db51e4ef4..8eca1cbbee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelectorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java index 1763bec0cc..2654a1b8b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java index c46dfa667a..43a33af077 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java index 0b9f094994..7524699478 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java index 9e5f35ce33..7460157d00 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java index e643e764bb..a14969db90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java index 4b0db0b65d..c34e269904 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java index ec2f298b59..7f54456944 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java index 92ad754c77..394ceaf710 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethodFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java index f52b4a034f..9f0005aaec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java index ec45485e11..f5f8e945de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java index 9abc038b86..1ebb071d98 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java index f71877fccc..2a5ee1944d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java index 1bdbd37862..6ae75db111 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java index 2ccbe07ec2..08a1d03824 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1FlowSchema item : items) { V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1FlowSchema... items) { } for (V1FlowSchema item : items) { V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1FlowSchema item) { this.items = new ArrayList(); } V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1FlowSchemaBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1FlowSchema item) { this.items = new ArrayList(); } V1FlowSchemaBuilder builder = new V1FlowSchemaBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java index d13bbbefe0..68a177a292 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java index ae147d1c43..9713bd0258 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -52,7 +52,7 @@ public A addAllToRules(Collection items) { } for (V1PolicyRulesWithSubjects item : items) { V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -72,7 +72,7 @@ public A addToRules(V1PolicyRulesWithSubjects... items) { } for (V1PolicyRulesWithSubjects item : items) { V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -83,12 +83,12 @@ public A addToRules(int index,V1PolicyRulesWithSubjects item) { this.rules = new ArrayList(); } V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.add(index, builder); + this._visitables.get("rules").add(builder); + this.rules.add(index, builder); } return (A) this; } @@ -284,7 +284,7 @@ public A removeMatchingFromRules(Predicate pre return (A) this; } Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); + List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1PolicyRulesWithSubjectsBuilder builder = each.next(); if (predicate.test(builder)) { @@ -304,12 +304,12 @@ public A setToRules(int index,V1PolicyRulesWithSubjects item) { this.rules = new ArrayList(); } V1PolicyRulesWithSubjectsBuilder builder = new V1PolicyRulesWithSubjectsBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.set(index, builder); + this._visitables.get("rules").add(builder); + this.rules.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java index 89d01bcde1..bb55c25d15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java index 91d1fb6af6..fd210cd1f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToConditions(Collection items) { } for (V1FlowSchemaCondition item : items) { V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToConditions(V1FlowSchemaCondition... items) { } for (V1FlowSchemaCondition item : items) { V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToConditions(int index,V1FlowSchemaCondition item) { this.conditions = new ArrayList(); } V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromConditions(Predicate pr return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1FlowSchemaConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToConditions(int index,V1FlowSchemaCondition item) { this.conditions = new ArrayList(); } V1FlowSchemaConditionBuilder builder = new V1FlowSchemaConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java index 85ff6d164f..67403f4e70 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java index 743e52c92a..440a5825a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForNodeFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java index b9f4599bfb..def2a46605 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java index 5b9c58ad74..4127690af5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ForZoneFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java index 7b811de845..df173e78f0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java index 74f3beb201..b1f2022310 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java index fd824e72af..0562fb27eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java index 956eb67df4..e4b19920dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GRPCActionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java index f39f3f867e..1c0cc66949 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java index f0abec2dc9..ef7da79904 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java index a053ef6aa2..eb822f2d95 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java index 0cbff4a614..e2ba3aef88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java index b9d3ddb34a..3fb36180b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java index 021944f591..22402c6979 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceBuilder.java index cb2f4b2745..35283ff627 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceFluent.java index 28cd86ad0b..c24d645f81 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupResourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java index b818b4d08b..99ecebb278 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java index 8479ef4de9..af2d343b29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubjectFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java index 93eccddead..79eea64e8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java index 24f16ec588..bd810cba35 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscoveryFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKindBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKindBuilder.java new file mode 100644 index 0000000000..102a3a8b5a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKindBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1GroupVersionKindBuilder extends V1GroupVersionKindFluent implements VisitableBuilder{ + + V1GroupVersionKindFluent fluent; + + public V1GroupVersionKindBuilder() { + this(new V1GroupVersionKind()); + } + + public V1GroupVersionKindBuilder(V1GroupVersionKindFluent fluent) { + this(fluent, new V1GroupVersionKind()); + } + + public V1GroupVersionKindBuilder(V1GroupVersionKind instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1GroupVersionKindBuilder(V1GroupVersionKindFluent fluent,V1GroupVersionKind instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1GroupVersionKind build() { + V1GroupVersionKind buildable = new V1GroupVersionKind(); + buildable.setGroup(fluent.getGroup()); + buildable.setKind(fluent.getKind()); + buildable.setVersion(fluent.getVersion()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKindFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKindFluent.java new file mode 100644 index 0000000000..dca3dc50d5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKindFluent.java @@ -0,0 +1,135 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1GroupVersionKindFluent> extends BaseFluent{ + + private String group; + private String kind; + private String version; + + public V1GroupVersionKindFluent() { + } + + public V1GroupVersionKindFluent(V1GroupVersionKind instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1GroupVersionKind instance) { + instance = instance != null ? instance : new V1GroupVersionKind(); + if (instance != null) { + this.withGroup(instance.getGroup()); + this.withKind(instance.getKind()); + this.withVersion(instance.getVersion()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1GroupVersionKindFluent that = (V1GroupVersionKindFluent) o; + if (!(Objects.equals(group, that.group))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(version, that.version))) { + return false; + } + return true; + } + + public String getGroup() { + return this.group; + } + + public String getKind() { + return this.kind; + } + + public String getVersion() { + return this.version; + } + + public boolean hasGroup() { + return this.group != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasVersion() { + return this.version != null; + } + + public int hashCode() { + return Objects.hash(group, kind, version); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(group == null)) { + sb.append("group:"); + sb.append(group); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + } + sb.append("}"); + return sb.toString(); + } + + public A withGroup(String group) { + this.group = group; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java index 62d69b4a67..0bd5cb8073 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java index 5c93052406..80811ec89f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetActionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -52,7 +52,7 @@ public A addAllToHttpHeaders(Collection items) { } for (V1HTTPHeader item : items) { V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - _visitables.get("httpHeaders").add(builder); + this._visitables.get("httpHeaders").add(builder); this.httpHeaders.add(builder); } return (A) this; @@ -72,7 +72,7 @@ public A addToHttpHeaders(V1HTTPHeader... items) { } for (V1HTTPHeader item : items) { V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - _visitables.get("httpHeaders").add(builder); + this._visitables.get("httpHeaders").add(builder); this.httpHeaders.add(builder); } return (A) this; @@ -83,12 +83,12 @@ public A addToHttpHeaders(int index,V1HTTPHeader item) { this.httpHeaders = new ArrayList(); } V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - if (index < 0 || index >= httpHeaders.size()) { - _visitables.get("httpHeaders").add(builder); - httpHeaders.add(builder); + if (index < 0 || index >= this.httpHeaders.size()) { + this._visitables.get("httpHeaders").add(builder); + this.httpHeaders.add(builder); } else { - _visitables.get("httpHeaders").add(builder); - httpHeaders.add(index, builder); + this._visitables.get("httpHeaders").add(builder); + this.httpHeaders.add(index, builder); } return (A) this; } @@ -272,7 +272,7 @@ public A removeMatchingFromHttpHeaders(Predicate predicate) return (A) this; } Iterator each = httpHeaders.iterator(); - List visitables = _visitables.get("httpHeaders"); + List visitables = this._visitables.get("httpHeaders"); while (each.hasNext()) { V1HTTPHeaderBuilder builder = each.next(); if (predicate.test(builder)) { @@ -292,12 +292,12 @@ public A setToHttpHeaders(int index,V1HTTPHeader item) { this.httpHeaders = new ArrayList(); } V1HTTPHeaderBuilder builder = new V1HTTPHeaderBuilder(item); - if (index < 0 || index >= httpHeaders.size()) { - _visitables.get("httpHeaders").add(builder); - httpHeaders.add(builder); + if (index < 0 || index >= this.httpHeaders.size()) { + this._visitables.get("httpHeaders").add(builder); + this.httpHeaders.add(builder); } else { - _visitables.get("httpHeaders").add(builder); - httpHeaders.set(index, builder); + this._visitables.get("httpHeaders").add(builder); + this.httpHeaders.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java index 39cb19a7b7..97896e0ea4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java index f084998691..ab41f08f32 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeaderFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java index 82bbe7ec09..36f9b15efb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java index 0b6c41be3c..0faef26327 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPathFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java index 92ec3fd7bb..7239b8d7a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java index 531f1b24a2..43ad8ab936 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValueFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToPaths(Collection items) { } for (V1HTTPIngressPath item : items) { V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - _visitables.get("paths").add(builder); + this._visitables.get("paths").add(builder); this.paths.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToPaths(V1HTTPIngressPath... items) { } for (V1HTTPIngressPath item : items) { V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - _visitables.get("paths").add(builder); + this._visitables.get("paths").add(builder); this.paths.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToPaths(int index,V1HTTPIngressPath item) { this.paths = new ArrayList(); } V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - if (index < 0 || index >= paths.size()) { - _visitables.get("paths").add(builder); - paths.add(builder); + if (index < 0 || index >= this.paths.size()) { + this._visitables.get("paths").add(builder); + this.paths.add(builder); } else { - _visitables.get("paths").add(builder); - paths.add(index, builder); + this._visitables.get("paths").add(builder); + this.paths.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromPaths(Predicate predicate) return (A) this; } Iterator each = paths.iterator(); - List visitables = _visitables.get("paths"); + List visitables = this._visitables.get("paths"); while (each.hasNext()) { V1HTTPIngressPathBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToPaths(int index,V1HTTPIngressPath item) { this.paths = new ArrayList(); } V1HTTPIngressPathBuilder builder = new V1HTTPIngressPathBuilder(item); - if (index < 0 || index >= paths.size()) { - _visitables.get("paths").add(builder); - paths.add(builder); + if (index < 0 || index >= this.paths.size()) { + this._visitables.get("paths").add(builder); + this.paths.add(builder); } else { - _visitables.get("paths").add(builder); - paths.set(index, builder); + this._visitables.get("paths").add(builder); + this.paths.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java index eb6709e060..6bf9eec270 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java index 7a1c121ee5..08c4b3fdb3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java index 2b7467390f..90e6f6dc4c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java index 349195b202..323fddc9d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1HorizontalPodAutoscaler item : items) { V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1HorizontalPodAutoscaler... items) { } for (V1HorizontalPodAutoscaler item : items) { V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1HorizontalPodAutoscaler item) { this.items = new ArrayList(); } V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate pre return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1HorizontalPodAutoscalerBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1HorizontalPodAutoscaler item) { this.items = new ArrayList(); } V1HorizontalPodAutoscalerBuilder builder = new V1HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java index 73ad482910..a829613964 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java index 5ad5fc1e80..bb3656940c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java index 720082e0ca..477869b32a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java index f99bab48d2..ec069c5c5a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java index a09dd4c0bb..73972ce4b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java index 54052567cc..f7320c9a3d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostAliasFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java index 214cc75d83..ddae31af0c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java index 0f3e632630..fb46f3dedf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostIPFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java index d57f6e6360..80bf0a6b94 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java index 6e63da6fcd..07f4d27426 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java index 9d14a75022..f4696f47d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java index ef08430fca..2882d875f0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java index b917fed0e1..cc6bd0b7bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java index 52e9e51a75..a5dba766c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1IPAddress item : items) { V1IPAddressBuilder builder = new V1IPAddressBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1IPAddress... items) { } for (V1IPAddress item : items) { V1IPAddressBuilder builder = new V1IPAddressBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1IPAddress item) { this.items = new ArrayList(); } V1IPAddressBuilder builder = new V1IPAddressBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1IPAddressBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1IPAddress item) { this.items = new ArrayList(); } V1IPAddressBuilder builder = new V1IPAddressBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java index 4014887b0d..445924fe91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java index 79188405f7..bc243239d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java index 38ac03d1f4..53b13226cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java index a713d7bfc8..1ee405a5d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IPBlockFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java index 5f2174aeee..7e83d4eb56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java index c46c42745c..ada2d0831f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java index debea97cbe..32fa1fe413 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java index b5b7a4080c..5448c22044 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java index fa64f6ab24..dfa7b3ad1d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java index a91508cb34..ac9385b9a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatusBuilder.java new file mode 100644 index 0000000000..892dcacbdf --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatusBuilder.java @@ -0,0 +1,45 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ImageVolumeStatusBuilder extends V1ImageVolumeStatusFluent implements VisitableBuilder{ + + V1ImageVolumeStatusFluent fluent; + + public V1ImageVolumeStatusBuilder() { + this(new V1ImageVolumeStatus()); + } + + public V1ImageVolumeStatusBuilder(V1ImageVolumeStatusFluent fluent) { + this(fluent, new V1ImageVolumeStatus()); + } + + public V1ImageVolumeStatusBuilder(V1ImageVolumeStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ImageVolumeStatusBuilder(V1ImageVolumeStatusFluent fluent,V1ImageVolumeStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ImageVolumeStatus build() { + V1ImageVolumeStatus buildable = new V1ImageVolumeStatus(); + buildable.setImageRef(fluent.getImageRef()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatusFluent.java new file mode 100644 index 0000000000..f155c00a16 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatusFluent.java @@ -0,0 +1,89 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ImageVolumeStatusFluent> extends BaseFluent{ + + private String imageRef; + + public V1ImageVolumeStatusFluent() { + } + + public V1ImageVolumeStatusFluent(V1ImageVolumeStatus instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1ImageVolumeStatus instance) { + instance = instance != null ? instance : new V1ImageVolumeStatus(); + if (instance != null) { + this.withImageRef(instance.getImageRef()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ImageVolumeStatusFluent that = (V1ImageVolumeStatusFluent) o; + if (!(Objects.equals(imageRef, that.imageRef))) { + return false; + } + return true; + } + + public String getImageRef() { + return this.imageRef; + } + + public boolean hasImageRef() { + return this.imageRef != null; + } + + public int hashCode() { + return Objects.hash(imageRef); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(imageRef == null)) { + sb.append("imageRef:"); + sb.append(imageRef); + } + sb.append("}"); + return sb.toString(); + } + + public A withImageRef(String imageRef) { + this.imageRef = imageRef; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java index 41a2e011ec..8652512c57 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java index 89a791cb82..910ca1bd37 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackendFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java index 349aeaadc7..1a75baa532 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java index 989d821ef0..222c27c972 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java index 0f96b74461..b1f8d55efc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java index 408f35c283..70f00679f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java index 511b904048..03488e4801 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1IngressClass item : items) { V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1IngressClass... items) { } for (V1IngressClass item : items) { V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1IngressClass item) { this.items = new ArrayList(); } V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1IngressClassBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1IngressClass item) { this.items = new ArrayList(); } V1IngressClassBuilder builder = new V1IngressClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java index 194e8faaee..c1fcc3283a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java index ffb6f89076..738f970c14 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java index bad190241c..2d4965e7e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java index e43bc662fd..d8339e8732 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java index 958a7f613b..f5f390df9c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java index 56d8d542f4..20025d4e04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java index 50cd5a1241..552b152ad5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1Ingress item : items) { V1IngressBuilder builder = new V1IngressBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1Ingress... items) { } for (V1Ingress item : items) { V1IngressBuilder builder = new V1IngressBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1Ingress item) { this.items = new ArrayList(); } V1IngressBuilder builder = new V1IngressBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1IngressBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1Ingress item) { this.items = new ArrayList(); } V1IngressBuilder builder = new V1IngressBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java index 53e30cc679..54d30ff2a5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java index a42902eb02..eed727d7e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngressFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ public A addAllToPorts(Collection items) { } for (V1IngressPortStatus item : items) { V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -69,7 +69,7 @@ public A addToPorts(V1IngressPortStatus... items) { } for (V1IngressPortStatus item : items) { V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -80,12 +80,12 @@ public A addToPorts(int index,V1IngressPortStatus item) { this.ports = new ArrayList(); } V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.add(index, builder); + this._visitables.get("ports").add(builder); + this.ports.add(index, builder); } return (A) this; } @@ -245,7 +245,7 @@ public A removeMatchingFromPorts(Predicate predicate return (A) this; } Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); + List visitables = this._visitables.get("ports"); while (each.hasNext()) { V1IngressPortStatusBuilder builder = each.next(); if (predicate.test(builder)) { @@ -265,12 +265,12 @@ public A setToPorts(int index,V1IngressPortStatus item) { this.ports = new ArrayList(); } V1IngressPortStatusBuilder builder = new V1IngressPortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); + this._visitables.get("ports").add(builder); + this.ports.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java index 8171000b7d..3d80de2e74 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java index 2c35cdb6b5..3072350515 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToIngress(Collection items) { } for (V1IngressLoadBalancerIngress item : items) { V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); - _visitables.get("ingress").add(builder); + this._visitables.get("ingress").add(builder); this.ingress.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToIngress(V1IngressLoadBalancerIngress... items) { } for (V1IngressLoadBalancerIngress item : items) { V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); - _visitables.get("ingress").add(builder); + this._visitables.get("ingress").add(builder); this.ingress.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToIngress(int index,V1IngressLoadBalancerIngress item) { this.ingress = new ArrayList(); } V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { - _visitables.get("ingress").add(builder); - ingress.add(builder); + if (index < 0 || index >= this.ingress.size()) { + this._visitables.get("ingress").add(builder); + this.ingress.add(builder); } else { - _visitables.get("ingress").add(builder); - ingress.add(index, builder); + this._visitables.get("ingress").add(builder); + this.ingress.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromIngress(Predicate each = ingress.iterator(); - List visitables = _visitables.get("ingress"); + List visitables = this._visitables.get("ingress"); while (each.hasNext()) { V1IngressLoadBalancerIngressBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToIngress(int index,V1IngressLoadBalancerIngress item) { this.ingress = new ArrayList(); } V1IngressLoadBalancerIngressBuilder builder = new V1IngressLoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { - _visitables.get("ingress").add(builder); - ingress.add(builder); + if (index < 0 || index >= this.ingress.size()) { + this._visitables.get("ingress").add(builder); + this.ingress.add(builder); } else { - _visitables.get("ingress").add(builder); - ingress.set(index, builder); + this._visitables.get("ingress").add(builder); + this.ingress.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java index 97404a54c4..14dbe0e34d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java index 80c422da8b..dbc42dbe4a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java index 6dd17053fe..63ab9805a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java index 7331d33330..fba4e12d9c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressRuleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java index 6e1587c9a1..87ab90fdee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java index 5701d95031..5e74ec6768 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackendFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java index 123b3e01ce..14d2e91c61 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java index 8aeebc33c3..6a22d26e6a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToRules(Collection items) { } for (V1IngressRule item : items) { V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -63,7 +63,7 @@ public A addAllToTls(Collection items) { } for (V1IngressTLS item : items) { V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - _visitables.get("tls").add(builder); + this._visitables.get("tls").add(builder); this.tls.add(builder); } return (A) this; @@ -91,7 +91,7 @@ public A addToRules(V1IngressRule... items) { } for (V1IngressRule item : items) { V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -102,12 +102,12 @@ public A addToRules(int index,V1IngressRule item) { this.rules = new ArrayList(); } V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.add(index, builder); + this._visitables.get("rules").add(builder); + this.rules.add(index, builder); } return (A) this; } @@ -118,7 +118,7 @@ public A addToTls(V1IngressTLS... items) { } for (V1IngressTLS item : items) { V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - _visitables.get("tls").add(builder); + this._visitables.get("tls").add(builder); this.tls.add(builder); } return (A) this; @@ -129,12 +129,12 @@ public A addToTls(int index,V1IngressTLS item) { this.tls = new ArrayList(); } V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - if (index < 0 || index >= tls.size()) { - _visitables.get("tls").add(builder); - tls.add(builder); + if (index < 0 || index >= this.tls.size()) { + this._visitables.get("tls").add(builder); + this.tls.add(builder); } else { - _visitables.get("tls").add(builder); - tls.add(index, builder); + this._visitables.get("tls").add(builder); + this.tls.add(index, builder); } return (A) this; } @@ -408,7 +408,7 @@ public A removeMatchingFromRules(Predicate predicate) { return (A) this; } Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); + List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1IngressRuleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -424,7 +424,7 @@ public A removeMatchingFromTls(Predicate predicate) { return (A) this; } Iterator each = tls.iterator(); - List visitables = _visitables.get("tls"); + List visitables = this._visitables.get("tls"); while (each.hasNext()) { V1IngressTLSBuilder builder = each.next(); if (predicate.test(builder)) { @@ -448,12 +448,12 @@ public A setToRules(int index,V1IngressRule item) { this.rules = new ArrayList(); } V1IngressRuleBuilder builder = new V1IngressRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.set(index, builder); + this._visitables.get("rules").add(builder); + this.rules.set(index, builder); } return (A) this; } @@ -463,12 +463,12 @@ public A setToTls(int index,V1IngressTLS item) { this.tls = new ArrayList(); } V1IngressTLSBuilder builder = new V1IngressTLSBuilder(item); - if (index < 0 || index >= tls.size()) { - _visitables.get("tls").add(builder); - tls.add(builder); + if (index < 0 || index >= this.tls.size()) { + this._visitables.get("tls").add(builder); + this.tls.add(builder); } else { - _visitables.get("tls").add(builder); - tls.set(index, builder); + this._visitables.get("tls").add(builder); + this.tls.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java index ffd2c15eef..87f2d19268 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java index 8cb10e2dc0..37c844b139 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java index a76513c47c..86b116b493 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java index 9d659a876f..a669d4f60d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLSFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatchBuilder.java similarity index 52% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatchBuilder.java index ee1aea7b92..f17fa84b8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatchBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -14,32 +14,31 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; -public class V1alpha1PodGroupBuilder extends V1alpha1PodGroupFluent implements VisitableBuilder{ +public class V1JSONPatchBuilder extends V1JSONPatchFluent implements VisitableBuilder{ - V1alpha1PodGroupFluent fluent; + V1JSONPatchFluent fluent; - public V1alpha1PodGroupBuilder() { - this(new V1alpha1PodGroup()); + public V1JSONPatchBuilder() { + this(new V1JSONPatch()); } - public V1alpha1PodGroupBuilder(V1alpha1PodGroupFluent fluent) { - this(fluent, new V1alpha1PodGroup()); + public V1JSONPatchBuilder(V1JSONPatchFluent fluent) { + this(fluent, new V1JSONPatch()); } - public V1alpha1PodGroupBuilder(V1alpha1PodGroup instance) { + public V1JSONPatchBuilder(V1JSONPatch instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha1PodGroupBuilder(V1alpha1PodGroupFluent fluent,V1alpha1PodGroup instance) { + public V1JSONPatchBuilder(V1JSONPatchFluent fluent,V1JSONPatch instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha1PodGroup build() { - V1alpha1PodGroup buildable = new V1alpha1PodGroup(); - buildable.setName(fluent.getName()); - buildable.setPolicy(fluent.buildPolicy()); + public V1JSONPatch build() { + V1JSONPatch buildable = new V1JSONPatch(); + buildable.setExpression(fluent.getExpression()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatchFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatchFluent.java new file mode 100644 index 0000000000..a1870c6d90 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatchFluent.java @@ -0,0 +1,89 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1JSONPatchFluent> extends BaseFluent{ + + private String expression; + + public V1JSONPatchFluent() { + } + + public V1JSONPatchFluent(V1JSONPatch instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1JSONPatch instance) { + instance = instance != null ? instance : new V1JSONPatch(); + if (instance != null) { + this.withExpression(instance.getExpression()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1JSONPatchFluent that = (V1JSONPatchFluent) o; + if (!(Objects.equals(expression, that.expression))) { + return false; + } + return true; + } + + public String getExpression() { + return this.expression; + } + + public boolean hasExpression() { + return this.expression != null; + } + + public int hashCode() { + return Objects.hash(expression); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(expression == null)) { + sb.append("expression:"); + sb.append(expression); + } + sb.append("}"); + return sb.toString(); + } + + public A withExpression(String expression) { + this.expression = expression; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java index d59603afa3..6b3c14ea07 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java index c7756ea5da..44ec6c275e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaPropsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -89,7 +89,7 @@ public A addAllToAllOf(Collection items) { } for (V1JSONSchemaProps item : items) { V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("allOf").add(builder); + this._visitables.get("allOf").add(builder); this.allOf.add(builder); } return (A) this; @@ -101,7 +101,7 @@ public A addAllToAnyOf(Collection items) { } for (V1JSONSchemaProps item : items) { V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("anyOf").add(builder); + this._visitables.get("anyOf").add(builder); this.anyOf.add(builder); } return (A) this; @@ -123,7 +123,7 @@ public A addAllToOneOf(Collection items) { } for (V1JSONSchemaProps item : items) { V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("oneOf").add(builder); + this._visitables.get("oneOf").add(builder); this.oneOf.add(builder); } return (A) this; @@ -169,7 +169,7 @@ public A addToAllOf(V1JSONSchemaProps... items) { } for (V1JSONSchemaProps item : items) { V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("allOf").add(builder); + this._visitables.get("allOf").add(builder); this.allOf.add(builder); } return (A) this; @@ -180,12 +180,12 @@ public A addToAllOf(int index,V1JSONSchemaProps item) { this.allOf = new ArrayList(); } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= allOf.size()) { - _visitables.get("allOf").add(builder); - allOf.add(builder); + if (index < 0 || index >= this.allOf.size()) { + this._visitables.get("allOf").add(builder); + this.allOf.add(builder); } else { - _visitables.get("allOf").add(builder); - allOf.add(index, builder); + this._visitables.get("allOf").add(builder); + this.allOf.add(index, builder); } return (A) this; } @@ -196,7 +196,7 @@ public A addToAnyOf(V1JSONSchemaProps... items) { } for (V1JSONSchemaProps item : items) { V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("anyOf").add(builder); + this._visitables.get("anyOf").add(builder); this.anyOf.add(builder); } return (A) this; @@ -207,12 +207,12 @@ public A addToAnyOf(int index,V1JSONSchemaProps item) { this.anyOf = new ArrayList(); } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= anyOf.size()) { - _visitables.get("anyOf").add(builder); - anyOf.add(builder); + if (index < 0 || index >= this.anyOf.size()) { + this._visitables.get("anyOf").add(builder); + this.anyOf.add(builder); } else { - _visitables.get("anyOf").add(builder); - anyOf.add(index, builder); + this._visitables.get("anyOf").add(builder); + this.anyOf.add(index, builder); } return (A) this; } @@ -281,7 +281,7 @@ public A addToOneOf(V1JSONSchemaProps... items) { } for (V1JSONSchemaProps item : items) { V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - _visitables.get("oneOf").add(builder); + this._visitables.get("oneOf").add(builder); this.oneOf.add(builder); } return (A) this; @@ -292,12 +292,12 @@ public A addToOneOf(int index,V1JSONSchemaProps item) { this.oneOf = new ArrayList(); } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= oneOf.size()) { - _visitables.get("oneOf").add(builder); - oneOf.add(builder); + if (index < 0 || index >= this.oneOf.size()) { + this._visitables.get("oneOf").add(builder); + this.oneOf.add(builder); } else { - _visitables.get("oneOf").add(builder); - oneOf.add(index, builder); + this._visitables.get("oneOf").add(builder); + this.oneOf.add(index, builder); } return (A) this; } @@ -452,11 +452,9 @@ protected void copyInstance(V1JSONSchemaProps instance) { this.withAdditionalProperties(instance.getAdditionalProperties()); this.withAllOf(instance.getAllOf()); this.withAnyOf(instance.getAnyOf()); - this.withDefault(instance.getDefault()); this.withDefinitions(instance.getDefinitions()); this.withDependencies(instance.getDependencies()); this.withDescription(instance.getDescription()); - this.withEnum(instance.getEnum()); this.withExample(instance.getExample()); this.withExclusiveMaximum(instance.getExclusiveMaximum()); this.withExclusiveMinimum(instance.getExclusiveMinimum()); @@ -1323,7 +1321,7 @@ public A removeMatchingFromAllOf(Predicate predicate) return (A) this; } Iterator each = allOf.iterator(); - List visitables = _visitables.get("allOf"); + List visitables = this._visitables.get("allOf"); while (each.hasNext()) { V1JSONSchemaPropsBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1339,7 +1337,7 @@ public A removeMatchingFromAnyOf(Predicate predicate) return (A) this; } Iterator each = anyOf.iterator(); - List visitables = _visitables.get("anyOf"); + List visitables = this._visitables.get("anyOf"); while (each.hasNext()) { V1JSONSchemaPropsBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1355,7 +1353,7 @@ public A removeMatchingFromOneOf(Predicate predicate) return (A) this; } Iterator each = oneOf.iterator(); - List visitables = _visitables.get("oneOf"); + List visitables = this._visitables.get("oneOf"); while (each.hasNext()) { V1JSONSchemaPropsBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1383,12 +1381,12 @@ public A setToAllOf(int index,V1JSONSchemaProps item) { this.allOf = new ArrayList(); } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= allOf.size()) { - _visitables.get("allOf").add(builder); - allOf.add(builder); + if (index < 0 || index >= this.allOf.size()) { + this._visitables.get("allOf").add(builder); + this.allOf.add(builder); } else { - _visitables.get("allOf").add(builder); - allOf.set(index, builder); + this._visitables.get("allOf").add(builder); + this.allOf.set(index, builder); } return (A) this; } @@ -1398,12 +1396,12 @@ public A setToAnyOf(int index,V1JSONSchemaProps item) { this.anyOf = new ArrayList(); } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= anyOf.size()) { - _visitables.get("anyOf").add(builder); - anyOf.add(builder); + if (index < 0 || index >= this.anyOf.size()) { + this._visitables.get("anyOf").add(builder); + this.anyOf.add(builder); } else { - _visitables.get("anyOf").add(builder); - anyOf.set(index, builder); + this._visitables.get("anyOf").add(builder); + this.anyOf.set(index, builder); } return (A) this; } @@ -1421,12 +1419,12 @@ public A setToOneOf(int index,V1JSONSchemaProps item) { this.oneOf = new ArrayList(); } V1JSONSchemaPropsBuilder builder = new V1JSONSchemaPropsBuilder(item); - if (index < 0 || index >= oneOf.size()) { - _visitables.get("oneOf").add(builder); - oneOf.add(builder); + if (index < 0 || index >= this.oneOf.size()) { + this._visitables.get("oneOf").add(builder); + this.oneOf.add(builder); } else { - _visitables.get("oneOf").add(builder); - oneOf.set(index, builder); + this._visitables.get("oneOf").add(builder); + this.oneOf.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java index 04c682f3cd..4b7775f57f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java index df769989ae..73e713e853 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java index a9632d767a..847807af4c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java index f3ce24e67c..1f6931c75b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java index 751d2efa42..c04a697f7a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java index d877ed345f..a6d94cf59f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1Job item : items) { V1JobBuilder builder = new V1JobBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1Job... items) { } for (V1Job item : items) { V1JobBuilder builder = new V1JobBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1Job item) { this.items = new ArrayList(); } V1JobBuilder builder = new V1JobBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1JobBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1Job item) { this.items = new ArrayList(); } V1JobBuilder builder = new V1JobBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java index af0d537dbf..467b204605 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java index a2c71d4b00..9e086934b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java index fb61324277..424ebaf77d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java index 2527fffd26..1dcf3433ee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -60,7 +60,7 @@ public A addAllToConditions(Collection items) { } for (V1JobCondition item : items) { V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -80,7 +80,7 @@ public A addToConditions(V1JobCondition... items) { } for (V1JobCondition item : items) { V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -91,12 +91,12 @@ public A addToConditions(int index,V1JobCondition item) { this.conditions = new ArrayList(); } V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -364,7 +364,7 @@ public A removeMatchingFromConditions(Predicate predicate return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1JobConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -384,12 +384,12 @@ public A setToConditions(int index,V1JobCondition item) { this.conditions = new ArrayList(); } V1JobConditionBuilder builder = new V1JobConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java index 89821b85f7..a0b18f6282 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java index 16224522d7..49614f3b49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java index d50728c94c..df0305ca82 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java index 1cef3394c5..2c789a13d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPathFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java index 18253b5e8f..45020858e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java index 5891224df2..20b81958f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,7 +48,7 @@ public A addAllToRequirements(Collection items) { } for (V1LabelSelectorRequirement item : items) { V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - _visitables.get("requirements").add(builder); + this._visitables.get("requirements").add(builder); this.requirements.add(builder); } return (A) this; @@ -68,7 +68,7 @@ public A addToRequirements(V1LabelSelectorRequirement... items) { } for (V1LabelSelectorRequirement item : items) { V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - _visitables.get("requirements").add(builder); + this._visitables.get("requirements").add(builder); this.requirements.add(builder); } return (A) this; @@ -79,12 +79,12 @@ public A addToRequirements(int index,V1LabelSelectorRequirement item) { this.requirements = new ArrayList(); } V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - if (index < 0 || index >= requirements.size()) { - _visitables.get("requirements").add(builder); - requirements.add(builder); + if (index < 0 || index >= this.requirements.size()) { + this._visitables.get("requirements").add(builder); + this.requirements.add(builder); } else { - _visitables.get("requirements").add(builder); - requirements.add(index, builder); + this._visitables.get("requirements").add(builder); + this.requirements.add(index, builder); } return (A) this; } @@ -232,7 +232,7 @@ public A removeMatchingFromRequirements(Predicate each = requirements.iterator(); - List visitables = _visitables.get("requirements"); + List visitables = this._visitables.get("requirements"); while (each.hasNext()) { V1LabelSelectorRequirementBuilder builder = each.next(); if (predicate.test(builder)) { @@ -252,12 +252,12 @@ public A setToRequirements(int index,V1LabelSelectorRequirement item) { this.requirements = new ArrayList(); } V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - if (index < 0 || index >= requirements.size()) { - _visitables.get("requirements").add(builder); - requirements.add(builder); + if (index < 0 || index >= this.requirements.size()) { + this._visitables.get("requirements").add(builder); + this.requirements.add(builder); } else { - _visitables.get("requirements").add(builder); - requirements.set(index, builder); + this._visitables.get("requirements").add(builder); + this.requirements.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java index 1ac0ceccd6..b6cabd8792 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java index 2a50abb981..5a6b33b6df 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -50,7 +50,7 @@ public A addAllToMatchExpressions(Collection items) } for (V1LabelSelectorRequirement item : items) { V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").add(builder); + this._visitables.get("matchExpressions").add(builder); this.matchExpressions.add(builder); } return (A) this; @@ -70,7 +70,7 @@ public A addToMatchExpressions(V1LabelSelectorRequirement... items) { } for (V1LabelSelectorRequirement item : items) { V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").add(builder); + this._visitables.get("matchExpressions").add(builder); this.matchExpressions.add(builder); } return (A) this; @@ -81,12 +81,12 @@ public A addToMatchExpressions(int index,V1LabelSelectorRequirement item) { this.matchExpressions = new ArrayList(); } V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { - _visitables.get("matchExpressions").add(builder); - matchExpressions.add(builder); + if (index < 0 || index >= this.matchExpressions.size()) { + this._visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); } else { - _visitables.get("matchExpressions").add(builder); - matchExpressions.add(index, builder); + this._visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(index, builder); } return (A) this; } @@ -278,7 +278,7 @@ public A removeMatchingFromMatchExpressions(Predicate each = matchExpressions.iterator(); - List visitables = _visitables.get("matchExpressions"); + List visitables = this._visitables.get("matchExpressions"); while (each.hasNext()) { V1LabelSelectorRequirementBuilder builder = each.next(); if (predicate.test(builder)) { @@ -298,12 +298,12 @@ public A setToMatchExpressions(int index,V1LabelSelectorRequirement item) { this.matchExpressions = new ArrayList(); } V1LabelSelectorRequirementBuilder builder = new V1LabelSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { - _visitables.get("matchExpressions").add(builder); - matchExpressions.add(builder); + if (index < 0 || index >= this.matchExpressions.size()) { + this._visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); } else { - _visitables.get("matchExpressions").add(builder); - matchExpressions.set(index, builder); + this._visitables.get("matchExpressions").add(builder); + this.matchExpressions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java index d6d3598f27..16cab9bb65 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java index 19ea6fe088..6bff4aa706 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirementFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java index 60ba292be3..0c1c5cf510 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java index 61cc6cf8a6..df89b4eb95 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java index e3b2c8eeb0..ba6c1bde8a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java index 50c528035f..b749c488e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1Lease item : items) { V1LeaseBuilder builder = new V1LeaseBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1Lease... items) { } for (V1Lease item : items) { V1LeaseBuilder builder = new V1LeaseBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1Lease item) { this.items = new ArrayList(); } V1LeaseBuilder builder = new V1LeaseBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1LeaseBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1Lease item) { this.items = new ArrayList(); } V1LeaseBuilder builder = new V1LeaseBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java index 81a37965ef..1ed685814e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java index 829bbc1e5f..099d7a689d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java index a3a2624880..5f8de1f2a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java index a376d35fd2..2e89597ba0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java index a507b38fb4..365df21d49 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java index 7a37c21bb4..055c9193fd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandlerFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java index 16bd3735de..9ee5ae6aa5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java index dd8f2902d6..fcb98d3181 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java index 2cb673d7a2..708ce09e1e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java index efb020c741..8017f1777f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItemFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -145,7 +145,6 @@ public A addToMin(String key,Quantity value) { protected void copyInstance(V1LimitRangeItem instance) { instance = instance != null ? instance : new V1LimitRangeItem(); if (instance != null) { - this.withDefault(instance.getDefault()); this.withDefaultRequest(instance.getDefaultRequest()); this.withMax(instance.getMax()); this.withMaxLimitRequestRatio(instance.getMaxLimitRequestRatio()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java index 649e826733..cd05e8f99a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java index d4810ac45b..3f8d1be214 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1LimitRange item : items) { V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1LimitRange... items) { } for (V1LimitRange item : items) { V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1LimitRange item) { this.items = new ArrayList(); } V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1LimitRangeBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1LimitRange item) { this.items = new ArrayList(); } V1LimitRangeBuilder builder = new V1LimitRangeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java index 88c1e2279d..f13ed12df3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java index 79288228db..b27feb42e4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToLimits(Collection items) { } for (V1LimitRangeItem item : items) { V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - _visitables.get("limits").add(builder); + this._visitables.get("limits").add(builder); this.limits.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToLimits(V1LimitRangeItem... items) { } for (V1LimitRangeItem item : items) { V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - _visitables.get("limits").add(builder); + this._visitables.get("limits").add(builder); this.limits.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToLimits(int index,V1LimitRangeItem item) { this.limits = new ArrayList(); } V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - if (index < 0 || index >= limits.size()) { - _visitables.get("limits").add(builder); - limits.add(builder); + if (index < 0 || index >= this.limits.size()) { + this._visitables.get("limits").add(builder); + this.limits.add(builder); } else { - _visitables.get("limits").add(builder); - limits.add(index, builder); + this._visitables.get("limits").add(builder); + this.limits.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromLimits(Predicate predicate) return (A) this; } Iterator each = limits.iterator(); - List visitables = _visitables.get("limits"); + List visitables = this._visitables.get("limits"); while (each.hasNext()) { V1LimitRangeItemBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToLimits(int index,V1LimitRangeItem item) { this.limits = new ArrayList(); } V1LimitRangeItemBuilder builder = new V1LimitRangeItemBuilder(item); - if (index < 0 || index >= limits.size()) { - _visitables.get("limits").add(builder); - limits.add(builder); + if (index < 0 || index >= this.limits.size()) { + this._visitables.get("limits").add(builder); + this.limits.add(builder); } else { - _visitables.get("limits").add(builder); - limits.set(index, builder); + this._visitables.get("limits").add(builder); + this.limits.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java index 3fc2759a54..12d1b2bc59 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java index e146faf543..57d32e9de8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponseFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java index 2ed85dc004..d6e994e7e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java index 2a0079a0b7..ad6169666b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java index 20ce4d5a7f..6a15537827 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java index 458a6b6d39..9a8dd83145 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUserFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java index 9a81b1d333..1fd1d7b88d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -42,6 +42,7 @@ public V1ListMeta build() { buildable.setRemainingItemCount(fluent.getRemainingItemCount()); buildable.setResourceVersion(fluent.getResourceVersion()); buildable.setSelfLink(fluent.getSelfLink()); + buildable.setShardInfo(fluent.buildShardInfo()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java index c6a4c0b15d..72746f68ab 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ListMetaFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -13,12 +13,14 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Long; import java.lang.Object; import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import java.util.Optional; /** * Generated @@ -30,6 +32,7 @@ public class V1ListMetaFluent editOrNewShardInfo() { + return this.withNewShardInfoLike(Optional.ofNullable(this.buildShardInfo()).orElse(new V1ShardInfoBuilder().build())); + } + + public ShardInfoNested editOrNewShardInfoLike(V1ShardInfo item) { + return this.withNewShardInfoLike(Optional.ofNullable(this.buildShardInfo()).orElse(item)); + } + + public ShardInfoNested editShardInfo() { + return this.withNewShardInfoLike(Optional.ofNullable(this.buildShardInfo()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -71,6 +90,9 @@ public boolean equals(Object o) { if (!(Objects.equals(selfLink, that.selfLink))) { return false; } + if (!(Objects.equals(shardInfo, that.shardInfo))) { + return false; + } return true; } @@ -106,8 +128,12 @@ public boolean hasSelfLink() { return this.selfLink != null; } + public boolean hasShardInfo() { + return this.shardInfo != null; + } + public int hashCode() { - return Objects.hash(_continue, remainingItemCount, resourceVersion, selfLink); + return Objects.hash(_continue, remainingItemCount, resourceVersion, selfLink, shardInfo); } public String toString() { @@ -131,6 +157,11 @@ public String toString() { if (!(selfLink == null)) { sb.append("selfLink:"); sb.append(selfLink); + sb.append(","); + } + if (!(shardInfo == null)) { + sb.append("shardInfo:"); + sb.append(shardInfo); } sb.append("}"); return sb.toString(); @@ -141,6 +172,14 @@ public A withContinue(String _continue) { return (A) this; } + public ShardInfoNested withNewShardInfo() { + return new ShardInfoNested(null); + } + + public ShardInfoNested withNewShardInfoLike(V1ShardInfo item) { + return new ShardInfoNested(item); + } + public A withRemainingItemCount(Long remainingItemCount) { this.remainingItemCount = remainingItemCount; return (A) this; @@ -156,4 +195,32 @@ public A withSelfLink(String selfLink) { return (A) this; } + public A withShardInfo(V1ShardInfo shardInfo) { + this._visitables.remove("shardInfo"); + if (shardInfo != null) { + this.shardInfo = new V1ShardInfoBuilder(shardInfo); + this._visitables.get("shardInfo").add(this.shardInfo); + } else { + this.shardInfo = null; + this._visitables.get("shardInfo").remove(this.shardInfo); + } + return (A) this; + } + public class ShardInfoNested extends V1ShardInfoFluent> implements Nested{ + + V1ShardInfoBuilder builder; + + ShardInfoNested(V1ShardInfo item) { + this.builder = new V1ShardInfoBuilder(this, item); + } + + public N and() { + return (N) V1ListMetaFluent.this.withShardInfo(builder.build()); + } + + public N endShardInfo() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java index df3b64f343..a196a7594c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java index aaca3ce5c8..c981448257 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngressFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -50,7 +50,7 @@ public A addAllToPorts(Collection items) { } for (V1PortStatus item : items) { V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -70,7 +70,7 @@ public A addToPorts(V1PortStatus... items) { } for (V1PortStatus item : items) { V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -81,12 +81,12 @@ public A addToPorts(int index,V1PortStatus item) { this.ports = new ArrayList(); } V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.add(index, builder); + this._visitables.get("ports").add(builder); + this.ports.add(index, builder); } return (A) this; } @@ -258,7 +258,7 @@ public A removeMatchingFromPorts(Predicate predicate) { return (A) this; } Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); + List visitables = this._visitables.get("ports"); while (each.hasNext()) { V1PortStatusBuilder builder = each.next(); if (predicate.test(builder)) { @@ -278,12 +278,12 @@ public A setToPorts(int index,V1PortStatus item) { this.ports = new ArrayList(); } V1PortStatusBuilder builder = new V1PortStatusBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); + this._visitables.get("ports").add(builder); + this.ports.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java index 57dfb79c74..e656c512b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java index be3d5370b0..7f74108efe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToIngress(Collection items) { } for (V1LoadBalancerIngress item : items) { V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - _visitables.get("ingress").add(builder); + this._visitables.get("ingress").add(builder); this.ingress.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToIngress(V1LoadBalancerIngress... items) { } for (V1LoadBalancerIngress item : items) { V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - _visitables.get("ingress").add(builder); + this._visitables.get("ingress").add(builder); this.ingress.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToIngress(int index,V1LoadBalancerIngress item) { this.ingress = new ArrayList(); } V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { - _visitables.get("ingress").add(builder); - ingress.add(builder); + if (index < 0 || index >= this.ingress.size()) { + this._visitables.get("ingress").add(builder); + this.ingress.add(builder); } else { - _visitables.get("ingress").add(builder); - ingress.add(index, builder); + this._visitables.get("ingress").add(builder); + this.ingress.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromIngress(Predicate predi return (A) this; } Iterator each = ingress.iterator(); - List visitables = _visitables.get("ingress"); + List visitables = this._visitables.get("ingress"); while (each.hasNext()) { V1LoadBalancerIngressBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToIngress(int index,V1LoadBalancerIngress item) { this.ingress = new ArrayList(); } V1LoadBalancerIngressBuilder builder = new V1LoadBalancerIngressBuilder(item); - if (index < 0 || index >= ingress.size()) { - _visitables.get("ingress").add(builder); - ingress.add(builder); + if (index < 0 || index >= this.ingress.size()) { + this._visitables.get("ingress").add(builder); + this.ingress.add(builder); } else { - _visitables.get("ingress").add(builder); - ingress.set(index, builder); + this._visitables.get("ingress").add(builder); + this.ingress.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java index 5d9a9559b0..3259973d5b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java index 311edb37c1..1275373b33 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java index 7d355e3ec4..8ae07e493d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java index ce997e4f10..2e01562bcf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReviewFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java index 58e30e1ebb..b2b17a07eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java index bdf2e233bd..9eed49b5a5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java index 83dc54fe36..38de47872e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java index 8a85dc327c..98a88da776 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntryFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java index 8a3cc0ddc6..f09cb89417 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java index d96768f09f..a9217a60aa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java index 133f8a2035..d6ed9df96a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java index 4adeadb00c..7dfcb86327 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MatchResourcesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -52,7 +52,7 @@ public A addAllToExcludeResourceRules(Collection item } for (V1NamedRuleWithOperations item : items) { V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - _visitables.get("excludeResourceRules").add(builder); + this._visitables.get("excludeResourceRules").add(builder); this.excludeResourceRules.add(builder); } return (A) this; @@ -64,7 +64,7 @@ public A addAllToResourceRules(Collection items) { } for (V1NamedRuleWithOperations item : items) { V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - _visitables.get("resourceRules").add(builder); + this._visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } return (A) this; @@ -92,7 +92,7 @@ public A addToExcludeResourceRules(V1NamedRuleWithOperations... items) { } for (V1NamedRuleWithOperations item : items) { V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - _visitables.get("excludeResourceRules").add(builder); + this._visitables.get("excludeResourceRules").add(builder); this.excludeResourceRules.add(builder); } return (A) this; @@ -103,12 +103,12 @@ public A addToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { this.excludeResourceRules = new ArrayList(); } V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(builder); + if (index < 0 || index >= this.excludeResourceRules.size()) { + this._visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); } else { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(index, builder); + this._visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(index, builder); } return (A) this; } @@ -119,7 +119,7 @@ public A addToResourceRules(V1NamedRuleWithOperations... items) { } for (V1NamedRuleWithOperations item : items) { V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - _visitables.get("resourceRules").add(builder); + this._visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } return (A) this; @@ -130,12 +130,12 @@ public A addToResourceRules(int index,V1NamedRuleWithOperations item) { this.resourceRules = new ArrayList(); } V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); + if (index < 0 || index >= this.resourceRules.size()) { + this._visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } else { - _visitables.get("resourceRules").add(builder); - resourceRules.add(index, builder); + this._visitables.get("resourceRules").add(builder); + this.resourceRules.add(index, builder); } return (A) this; } @@ -433,7 +433,7 @@ public A removeMatchingFromExcludeResourceRules(Predicate each = excludeResourceRules.iterator(); - List visitables = _visitables.get("excludeResourceRules"); + List visitables = this._visitables.get("excludeResourceRules"); while (each.hasNext()) { V1NamedRuleWithOperationsBuilder builder = each.next(); if (predicate.test(builder)) { @@ -449,7 +449,7 @@ public A removeMatchingFromResourceRules(Predicate each = resourceRules.iterator(); - List visitables = _visitables.get("resourceRules"); + List visitables = this._visitables.get("resourceRules"); while (each.hasNext()) { V1NamedRuleWithOperationsBuilder builder = each.next(); if (predicate.test(builder)) { @@ -473,12 +473,12 @@ public A setToExcludeResourceRules(int index,V1NamedRuleWithOperations item) { this.excludeResourceRules = new ArrayList(); } V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(builder); + if (index < 0 || index >= this.excludeResourceRules.size()) { + this._visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); } else { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.set(index, builder); + this._visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.set(index, builder); } return (A) this; } @@ -488,12 +488,12 @@ public A setToResourceRules(int index,V1NamedRuleWithOperations item) { this.resourceRules = new ArrayList(); } V1NamedRuleWithOperationsBuilder builder = new V1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); + if (index < 0 || index >= this.resourceRules.size()) { + this._visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } else { - _visitables.get("resourceRules").add(builder); - resourceRules.set(index, builder); + this._visitables.get("resourceRules").add(builder); + this.resourceRules.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java index 5bef90818b..5c37dd8203 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java index f2cdedf64c..ddef4c7fd5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingBuilder.java new file mode 100644 index 0000000000..6132bc2f3c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1MutatingAdmissionPolicyBindingBuilder extends V1MutatingAdmissionPolicyBindingFluent implements VisitableBuilder{ + + V1MutatingAdmissionPolicyBindingFluent fluent; + + public V1MutatingAdmissionPolicyBindingBuilder() { + this(new V1MutatingAdmissionPolicyBinding()); + } + + public V1MutatingAdmissionPolicyBindingBuilder(V1MutatingAdmissionPolicyBindingFluent fluent) { + this(fluent, new V1MutatingAdmissionPolicyBinding()); + } + + public V1MutatingAdmissionPolicyBindingBuilder(V1MutatingAdmissionPolicyBinding instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1MutatingAdmissionPolicyBindingBuilder(V1MutatingAdmissionPolicyBindingFluent fluent,V1MutatingAdmissionPolicyBinding instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1MutatingAdmissionPolicyBinding build() { + V1MutatingAdmissionPolicyBinding buildable = new V1MutatingAdmissionPolicyBinding(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingFluent.java new file mode 100644 index 0000000000..7573dd6f37 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingFluent.java @@ -0,0 +1,247 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1MutatingAdmissionPolicyBindingFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1MutatingAdmissionPolicyBindingSpecBuilder spec; + + public V1MutatingAdmissionPolicyBindingFluent() { + } + + public V1MutatingAdmissionPolicyBindingFluent(V1MutatingAdmissionPolicyBinding instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1MutatingAdmissionPolicyBindingSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + protected void copyInstance(V1MutatingAdmissionPolicyBinding instance) { + instance = instance != null ? instance : new V1MutatingAdmissionPolicyBinding(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1MutatingAdmissionPolicyBindingSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1MutatingAdmissionPolicyBindingSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1MutatingAdmissionPolicyBindingFluent that = (V1MutatingAdmissionPolicyBindingFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1MutatingAdmissionPolicyBindingSpec item) { + return new SpecNested(item); + } + + public A withSpec(V1MutatingAdmissionPolicyBindingSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1MutatingAdmissionPolicyBindingSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1MutatingAdmissionPolicyBindingFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1MutatingAdmissionPolicyBindingSpecFluent> implements Nested{ + + V1MutatingAdmissionPolicyBindingSpecBuilder builder; + + SpecNested(V1MutatingAdmissionPolicyBindingSpec item) { + this.builder = new V1MutatingAdmissionPolicyBindingSpecBuilder(this, item); + } + + public N and() { + return (N) V1MutatingAdmissionPolicyBindingFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingListBuilder.java new file mode 100644 index 0000000000..003927dead --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingListBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1MutatingAdmissionPolicyBindingListBuilder extends V1MutatingAdmissionPolicyBindingListFluent implements VisitableBuilder{ + + V1MutatingAdmissionPolicyBindingListFluent fluent; + + public V1MutatingAdmissionPolicyBindingListBuilder() { + this(new V1MutatingAdmissionPolicyBindingList()); + } + + public V1MutatingAdmissionPolicyBindingListBuilder(V1MutatingAdmissionPolicyBindingListFluent fluent) { + this(fluent, new V1MutatingAdmissionPolicyBindingList()); + } + + public V1MutatingAdmissionPolicyBindingListBuilder(V1MutatingAdmissionPolicyBindingList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1MutatingAdmissionPolicyBindingListBuilder(V1MutatingAdmissionPolicyBindingListFluent fluent,V1MutatingAdmissionPolicyBindingList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1MutatingAdmissionPolicyBindingList build() { + V1MutatingAdmissionPolicyBindingList buildable = new V1MutatingAdmissionPolicyBindingList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingListFluent.java new file mode 100644 index 0000000000..479df26c2f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingListFluent.java @@ -0,0 +1,423 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1MutatingAdmissionPolicyBindingListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1MutatingAdmissionPolicyBindingListFluent() { + } + + public V1MutatingAdmissionPolicyBindingListFluent(V1MutatingAdmissionPolicyBindingList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1MutatingAdmissionPolicyBinding item : items) { + V1MutatingAdmissionPolicyBindingBuilder builder = new V1MutatingAdmissionPolicyBindingBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1MutatingAdmissionPolicyBinding item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V1MutatingAdmissionPolicyBinding... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1MutatingAdmissionPolicyBinding item : items) { + V1MutatingAdmissionPolicyBindingBuilder builder = new V1MutatingAdmissionPolicyBindingBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1MutatingAdmissionPolicyBinding item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1MutatingAdmissionPolicyBindingBuilder builder = new V1MutatingAdmissionPolicyBindingBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.add(index, builder); + } + return (A) this; + } + + public V1MutatingAdmissionPolicyBinding buildFirstItem() { + return this.items.get(0).build(); + } + + public V1MutatingAdmissionPolicyBinding buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1MutatingAdmissionPolicyBinding buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1MutatingAdmissionPolicyBinding buildMatchingItem(Predicate predicate) { + for (V1MutatingAdmissionPolicyBindingBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1MutatingAdmissionPolicyBindingList instance) { + instance = instance != null ? instance : new V1MutatingAdmissionPolicyBindingList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1MutatingAdmissionPolicyBindingListFluent that = (V1MutatingAdmissionPolicyBindingListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1MutatingAdmissionPolicyBindingBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1MutatingAdmissionPolicyBinding item : items) { + V1MutatingAdmissionPolicyBindingBuilder builder = new V1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1MutatingAdmissionPolicyBinding... items) { + if (this.items == null) { + return (A) this; + } + for (V1MutatingAdmissionPolicyBinding item : items) { + V1MutatingAdmissionPolicyBindingBuilder builder = new V1MutatingAdmissionPolicyBindingBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = this._visitables.get("items"); + while (each.hasNext()) { + V1MutatingAdmissionPolicyBindingBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1MutatingAdmissionPolicyBinding item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1MutatingAdmissionPolicyBinding item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1MutatingAdmissionPolicyBindingBuilder builder = new V1MutatingAdmissionPolicyBindingBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1MutatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1MutatingAdmissionPolicyBinding... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1MutatingAdmissionPolicyBinding item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1MutatingAdmissionPolicyBindingFluent> implements Nested{ + + V1MutatingAdmissionPolicyBindingBuilder builder; + int index; + + ItemsNested(int index,V1MutatingAdmissionPolicyBinding item) { + this.index = index; + this.builder = new V1MutatingAdmissionPolicyBindingBuilder(this, item); + } + + public N and() { + return (N) V1MutatingAdmissionPolicyBindingListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1MutatingAdmissionPolicyBindingListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpecBuilder.java new file mode 100644 index 0000000000..bd6ede320c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpecBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1MutatingAdmissionPolicyBindingSpecBuilder extends V1MutatingAdmissionPolicyBindingSpecFluent implements VisitableBuilder{ + + V1MutatingAdmissionPolicyBindingSpecFluent fluent; + + public V1MutatingAdmissionPolicyBindingSpecBuilder() { + this(new V1MutatingAdmissionPolicyBindingSpec()); + } + + public V1MutatingAdmissionPolicyBindingSpecBuilder(V1MutatingAdmissionPolicyBindingSpecFluent fluent) { + this(fluent, new V1MutatingAdmissionPolicyBindingSpec()); + } + + public V1MutatingAdmissionPolicyBindingSpecBuilder(V1MutatingAdmissionPolicyBindingSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1MutatingAdmissionPolicyBindingSpecBuilder(V1MutatingAdmissionPolicyBindingSpecFluent fluent,V1MutatingAdmissionPolicyBindingSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1MutatingAdmissionPolicyBindingSpec build() { + V1MutatingAdmissionPolicyBindingSpec buildable = new V1MutatingAdmissionPolicyBindingSpec(); + buildable.setMatchResources(fluent.buildMatchResources()); + buildable.setParamRef(fluent.buildParamRef()); + buildable.setPolicyName(fluent.getPolicyName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpecFluent.java new file mode 100644 index 0000000000..5a765bfc1f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpecFluent.java @@ -0,0 +1,224 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1MutatingAdmissionPolicyBindingSpecFluent> extends BaseFluent{ + + private V1MatchResourcesBuilder matchResources; + private V1ParamRefBuilder paramRef; + private String policyName; + + public V1MutatingAdmissionPolicyBindingSpecFluent() { + } + + public V1MutatingAdmissionPolicyBindingSpecFluent(V1MutatingAdmissionPolicyBindingSpec instance) { + this.copyInstance(instance); + } + + public V1MatchResources buildMatchResources() { + return this.matchResources != null ? this.matchResources.build() : null; + } + + public V1ParamRef buildParamRef() { + return this.paramRef != null ? this.paramRef.build() : null; + } + + protected void copyInstance(V1MutatingAdmissionPolicyBindingSpec instance) { + instance = instance != null ? instance : new V1MutatingAdmissionPolicyBindingSpec(); + if (instance != null) { + this.withMatchResources(instance.getMatchResources()); + this.withParamRef(instance.getParamRef()); + this.withPolicyName(instance.getPolicyName()); + } + } + + public MatchResourcesNested editMatchResources() { + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(null)); + } + + public MatchResourcesNested editOrNewMatchResources() { + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(new V1MatchResourcesBuilder().build())); + } + + public MatchResourcesNested editOrNewMatchResourcesLike(V1MatchResources item) { + return this.withNewMatchResourcesLike(Optional.ofNullable(this.buildMatchResources()).orElse(item)); + } + + public ParamRefNested editOrNewParamRef() { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(new V1ParamRefBuilder().build())); + } + + public ParamRefNested editOrNewParamRefLike(V1ParamRef item) { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(item)); + } + + public ParamRefNested editParamRef() { + return this.withNewParamRefLike(Optional.ofNullable(this.buildParamRef()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1MutatingAdmissionPolicyBindingSpecFluent that = (V1MutatingAdmissionPolicyBindingSpecFluent) o; + if (!(Objects.equals(matchResources, that.matchResources))) { + return false; + } + if (!(Objects.equals(paramRef, that.paramRef))) { + return false; + } + if (!(Objects.equals(policyName, that.policyName))) { + return false; + } + return true; + } + + public String getPolicyName() { + return this.policyName; + } + + public boolean hasMatchResources() { + return this.matchResources != null; + } + + public boolean hasParamRef() { + return this.paramRef != null; + } + + public boolean hasPolicyName() { + return this.policyName != null; + } + + public int hashCode() { + return Objects.hash(matchResources, paramRef, policyName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(matchResources == null)) { + sb.append("matchResources:"); + sb.append(matchResources); + sb.append(","); + } + if (!(paramRef == null)) { + sb.append("paramRef:"); + sb.append(paramRef); + sb.append(","); + } + if (!(policyName == null)) { + sb.append("policyName:"); + sb.append(policyName); + } + sb.append("}"); + return sb.toString(); + } + + public A withMatchResources(V1MatchResources matchResources) { + this._visitables.remove("matchResources"); + if (matchResources != null) { + this.matchResources = new V1MatchResourcesBuilder(matchResources); + this._visitables.get("matchResources").add(this.matchResources); + } else { + this.matchResources = null; + this._visitables.get("matchResources").remove(this.matchResources); + } + return (A) this; + } + + public MatchResourcesNested withNewMatchResources() { + return new MatchResourcesNested(null); + } + + public MatchResourcesNested withNewMatchResourcesLike(V1MatchResources item) { + return new MatchResourcesNested(item); + } + + public ParamRefNested withNewParamRef() { + return new ParamRefNested(null); + } + + public ParamRefNested withNewParamRefLike(V1ParamRef item) { + return new ParamRefNested(item); + } + + public A withParamRef(V1ParamRef paramRef) { + this._visitables.remove("paramRef"); + if (paramRef != null) { + this.paramRef = new V1ParamRefBuilder(paramRef); + this._visitables.get("paramRef").add(this.paramRef); + } else { + this.paramRef = null; + this._visitables.get("paramRef").remove(this.paramRef); + } + return (A) this; + } + + public A withPolicyName(String policyName) { + this.policyName = policyName; + return (A) this; + } + public class MatchResourcesNested extends V1MatchResourcesFluent> implements Nested{ + + V1MatchResourcesBuilder builder; + + MatchResourcesNested(V1MatchResources item) { + this.builder = new V1MatchResourcesBuilder(this, item); + } + + public N and() { + return (N) V1MutatingAdmissionPolicyBindingSpecFluent.this.withMatchResources(builder.build()); + } + + public N endMatchResources() { + return and(); + } + + } + public class ParamRefNested extends V1ParamRefFluent> implements Nested{ + + V1ParamRefBuilder builder; + + ParamRefNested(V1ParamRef item) { + this.builder = new V1ParamRefBuilder(this, item); + } + + public N and() { + return (N) V1MutatingAdmissionPolicyBindingSpecFluent.this.withParamRef(builder.build()); + } + + public N endParamRef() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBuilder.java new file mode 100644 index 0000000000..a5345248a4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1MutatingAdmissionPolicyBuilder extends V1MutatingAdmissionPolicyFluent implements VisitableBuilder{ + + V1MutatingAdmissionPolicyFluent fluent; + + public V1MutatingAdmissionPolicyBuilder() { + this(new V1MutatingAdmissionPolicy()); + } + + public V1MutatingAdmissionPolicyBuilder(V1MutatingAdmissionPolicyFluent fluent) { + this(fluent, new V1MutatingAdmissionPolicy()); + } + + public V1MutatingAdmissionPolicyBuilder(V1MutatingAdmissionPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1MutatingAdmissionPolicyBuilder(V1MutatingAdmissionPolicyFluent fluent,V1MutatingAdmissionPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1MutatingAdmissionPolicy build() { + V1MutatingAdmissionPolicy buildable = new V1MutatingAdmissionPolicy(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyFluent.java new file mode 100644 index 0000000000..62704f52fc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyFluent.java @@ -0,0 +1,247 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1MutatingAdmissionPolicyFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1MutatingAdmissionPolicySpecBuilder spec; + + public V1MutatingAdmissionPolicyFluent() { + } + + public V1MutatingAdmissionPolicyFluent(V1MutatingAdmissionPolicy instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1MutatingAdmissionPolicySpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + protected void copyInstance(V1MutatingAdmissionPolicy instance) { + instance = instance != null ? instance : new V1MutatingAdmissionPolicy(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1MutatingAdmissionPolicySpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1MutatingAdmissionPolicySpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1MutatingAdmissionPolicyFluent that = (V1MutatingAdmissionPolicyFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1MutatingAdmissionPolicySpec item) { + return new SpecNested(item); + } + + public A withSpec(V1MutatingAdmissionPolicySpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1MutatingAdmissionPolicySpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1MutatingAdmissionPolicyFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1MutatingAdmissionPolicySpecFluent> implements Nested{ + + V1MutatingAdmissionPolicySpecBuilder builder; + + SpecNested(V1MutatingAdmissionPolicySpec item) { + this.builder = new V1MutatingAdmissionPolicySpecBuilder(this, item); + } + + public N and() { + return (N) V1MutatingAdmissionPolicyFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyListBuilder.java new file mode 100644 index 0000000000..cdc048d019 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyListBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1MutatingAdmissionPolicyListBuilder extends V1MutatingAdmissionPolicyListFluent implements VisitableBuilder{ + + V1MutatingAdmissionPolicyListFluent fluent; + + public V1MutatingAdmissionPolicyListBuilder() { + this(new V1MutatingAdmissionPolicyList()); + } + + public V1MutatingAdmissionPolicyListBuilder(V1MutatingAdmissionPolicyListFluent fluent) { + this(fluent, new V1MutatingAdmissionPolicyList()); + } + + public V1MutatingAdmissionPolicyListBuilder(V1MutatingAdmissionPolicyList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1MutatingAdmissionPolicyListBuilder(V1MutatingAdmissionPolicyListFluent fluent,V1MutatingAdmissionPolicyList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1MutatingAdmissionPolicyList build() { + V1MutatingAdmissionPolicyList buildable = new V1MutatingAdmissionPolicyList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyListFluent.java new file mode 100644 index 0000000000..67b95ef88a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyListFluent.java @@ -0,0 +1,423 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1MutatingAdmissionPolicyListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1MutatingAdmissionPolicyListFluent() { + } + + public V1MutatingAdmissionPolicyListFluent(V1MutatingAdmissionPolicyList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1MutatingAdmissionPolicy item : items) { + V1MutatingAdmissionPolicyBuilder builder = new V1MutatingAdmissionPolicyBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1MutatingAdmissionPolicy item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V1MutatingAdmissionPolicy... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1MutatingAdmissionPolicy item : items) { + V1MutatingAdmissionPolicyBuilder builder = new V1MutatingAdmissionPolicyBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1MutatingAdmissionPolicy item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1MutatingAdmissionPolicyBuilder builder = new V1MutatingAdmissionPolicyBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.add(index, builder); + } + return (A) this; + } + + public V1MutatingAdmissionPolicy buildFirstItem() { + return this.items.get(0).build(); + } + + public V1MutatingAdmissionPolicy buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1MutatingAdmissionPolicy buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1MutatingAdmissionPolicy buildMatchingItem(Predicate predicate) { + for (V1MutatingAdmissionPolicyBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1MutatingAdmissionPolicyList instance) { + instance = instance != null ? instance : new V1MutatingAdmissionPolicyList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1MutatingAdmissionPolicyListFluent that = (V1MutatingAdmissionPolicyListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1MutatingAdmissionPolicyBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1MutatingAdmissionPolicy item : items) { + V1MutatingAdmissionPolicyBuilder builder = new V1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1MutatingAdmissionPolicy... items) { + if (this.items == null) { + return (A) this; + } + for (V1MutatingAdmissionPolicy item : items) { + V1MutatingAdmissionPolicyBuilder builder = new V1MutatingAdmissionPolicyBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = this._visitables.get("items"); + while (each.hasNext()) { + V1MutatingAdmissionPolicyBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1MutatingAdmissionPolicy item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1MutatingAdmissionPolicy item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1MutatingAdmissionPolicyBuilder builder = new V1MutatingAdmissionPolicyBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1MutatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1MutatingAdmissionPolicy... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1MutatingAdmissionPolicy item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1MutatingAdmissionPolicyFluent> implements Nested{ + + V1MutatingAdmissionPolicyBuilder builder; + int index; + + ItemsNested(int index,V1MutatingAdmissionPolicy item) { + this.index = index; + this.builder = new V1MutatingAdmissionPolicyBuilder(this, item); + } + + public N and() { + return (N) V1MutatingAdmissionPolicyListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1MutatingAdmissionPolicyListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpecBuilder.java new file mode 100644 index 0000000000..42e70b458b --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpecBuilder.java @@ -0,0 +1,51 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1MutatingAdmissionPolicySpecBuilder extends V1MutatingAdmissionPolicySpecFluent implements VisitableBuilder{ + + V1MutatingAdmissionPolicySpecFluent fluent; + + public V1MutatingAdmissionPolicySpecBuilder() { + this(new V1MutatingAdmissionPolicySpec()); + } + + public V1MutatingAdmissionPolicySpecBuilder(V1MutatingAdmissionPolicySpecFluent fluent) { + this(fluent, new V1MutatingAdmissionPolicySpec()); + } + + public V1MutatingAdmissionPolicySpecBuilder(V1MutatingAdmissionPolicySpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1MutatingAdmissionPolicySpecBuilder(V1MutatingAdmissionPolicySpecFluent fluent,V1MutatingAdmissionPolicySpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1MutatingAdmissionPolicySpec build() { + V1MutatingAdmissionPolicySpec buildable = new V1MutatingAdmissionPolicySpec(); + buildable.setFailurePolicy(fluent.getFailurePolicy()); + buildable.setMatchConditions(fluent.buildMatchConditions()); + buildable.setMatchConstraints(fluent.buildMatchConstraints()); + buildable.setMutations(fluent.buildMutations()); + buildable.setParamKind(fluent.buildParamKind()); + buildable.setReinvocationPolicy(fluent.getReinvocationPolicy()); + buildable.setVariables(fluent.buildVariables()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpecFluent.java new file mode 100644 index 0000000000..978b8ad529 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpecFluent.java @@ -0,0 +1,964 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1MutatingAdmissionPolicySpecFluent> extends BaseFluent{ + + private String failurePolicy; + private ArrayList matchConditions; + private V1MatchResourcesBuilder matchConstraints; + private ArrayList mutations; + private V1ParamKindBuilder paramKind; + private String reinvocationPolicy; + private ArrayList variables; + + public V1MutatingAdmissionPolicySpecFluent() { + } + + public V1MutatingAdmissionPolicySpecFluent(V1MutatingAdmissionPolicySpec instance) { + this.copyInstance(instance); + } + + public A addAllToMatchConditions(Collection items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; + } + + public A addAllToMutations(Collection items) { + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + for (V1Mutation item : items) { + V1MutationBuilder builder = new V1MutationBuilder(item); + this._visitables.get("mutations").add(builder); + this.mutations.add(builder); + } + return (A) this; + } + + public A addAllToVariables(Collection items) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + for (V1Variable item : items) { + V1VariableBuilder builder = new V1VariableBuilder(item); + this._visitables.get("variables").add(builder); + this.variables.add(builder); + } + return (A) this; + } + + public MatchConditionsNested addNewMatchCondition() { + return new MatchConditionsNested(-1, null); + } + + public MatchConditionsNested addNewMatchConditionLike(V1MatchCondition item) { + return new MatchConditionsNested(-1, item); + } + + public MutationsNested addNewMutation() { + return new MutationsNested(-1, null); + } + + public MutationsNested addNewMutationLike(V1Mutation item) { + return new MutationsNested(-1, item); + } + + public VariablesNested addNewVariable() { + return new VariablesNested(-1, null); + } + + public VariablesNested addNewVariableLike(V1Variable item) { + return new VariablesNested(-1, item); + } + + public A addToMatchConditions(V1MatchCondition... items) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } + return (A) this; + } + + public A addToMatchConditions(int index,V1MatchCondition item) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + if (index < 0 || index >= this.matchConditions.size()) { + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } else { + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(index, builder); + } + return (A) this; + } + + public A addToMutations(V1Mutation... items) { + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + for (V1Mutation item : items) { + V1MutationBuilder builder = new V1MutationBuilder(item); + this._visitables.get("mutations").add(builder); + this.mutations.add(builder); + } + return (A) this; + } + + public A addToMutations(int index,V1Mutation item) { + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + V1MutationBuilder builder = new V1MutationBuilder(item); + if (index < 0 || index >= this.mutations.size()) { + this._visitables.get("mutations").add(builder); + this.mutations.add(builder); + } else { + this._visitables.get("mutations").add(builder); + this.mutations.add(index, builder); + } + return (A) this; + } + + public A addToVariables(V1Variable... items) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + for (V1Variable item : items) { + V1VariableBuilder builder = new V1VariableBuilder(item); + this._visitables.get("variables").add(builder); + this.variables.add(builder); + } + return (A) this; + } + + public A addToVariables(int index,V1Variable item) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + V1VariableBuilder builder = new V1VariableBuilder(item); + if (index < 0 || index >= this.variables.size()) { + this._visitables.get("variables").add(builder); + this.variables.add(builder); + } else { + this._visitables.get("variables").add(builder); + this.variables.add(index, builder); + } + return (A) this; + } + + public V1MatchCondition buildFirstMatchCondition() { + return this.matchConditions.get(0).build(); + } + + public V1Mutation buildFirstMutation() { + return this.mutations.get(0).build(); + } + + public V1Variable buildFirstVariable() { + return this.variables.get(0).build(); + } + + public V1MatchCondition buildLastMatchCondition() { + return this.matchConditions.get(matchConditions.size() - 1).build(); + } + + public V1Mutation buildLastMutation() { + return this.mutations.get(mutations.size() - 1).build(); + } + + public V1Variable buildLastVariable() { + return this.variables.get(variables.size() - 1).build(); + } + + public V1MatchCondition buildMatchCondition(int index) { + return this.matchConditions.get(index).build(); + } + + public List buildMatchConditions() { + return this.matchConditions != null ? build(matchConditions) : null; + } + + public V1MatchResources buildMatchConstraints() { + return this.matchConstraints != null ? this.matchConstraints.build() : null; + } + + public V1MatchCondition buildMatchingMatchCondition(Predicate predicate) { + for (V1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1Mutation buildMatchingMutation(Predicate predicate) { + for (V1MutationBuilder item : mutations) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1Variable buildMatchingVariable(Predicate predicate) { + for (V1VariableBuilder item : variables) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1Mutation buildMutation(int index) { + return this.mutations.get(index).build(); + } + + public List buildMutations() { + return this.mutations != null ? build(mutations) : null; + } + + public V1ParamKind buildParamKind() { + return this.paramKind != null ? this.paramKind.build() : null; + } + + public V1Variable buildVariable(int index) { + return this.variables.get(index).build(); + } + + public List buildVariables() { + return this.variables != null ? build(variables) : null; + } + + protected void copyInstance(V1MutatingAdmissionPolicySpec instance) { + instance = instance != null ? instance : new V1MutatingAdmissionPolicySpec(); + if (instance != null) { + this.withFailurePolicy(instance.getFailurePolicy()); + this.withMatchConditions(instance.getMatchConditions()); + this.withMatchConstraints(instance.getMatchConstraints()); + this.withMutations(instance.getMutations()); + this.withParamKind(instance.getParamKind()); + this.withReinvocationPolicy(instance.getReinvocationPolicy()); + this.withVariables(instance.getVariables()); + } + } + + public MatchConditionsNested editFirstMatchCondition() { + if (matchConditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(0, this.buildMatchCondition(0)); + } + + public MutationsNested editFirstMutation() { + if (mutations.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "mutations")); + } + return this.setNewMutationLike(0, this.buildMutation(0)); + } + + public VariablesNested editFirstVariable() { + if (variables.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(0, this.buildVariable(0)); + } + + public MatchConditionsNested editLastMatchCondition() { + int index = matchConditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public MutationsNested editLastMutation() { + int index = mutations.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); + } + + public VariablesNested editLastVariable() { + int index = variables.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public MatchConditionsNested editMatchCondition(int index) { + if (matchConditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public MatchConstraintsNested editMatchConstraints() { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(null)); + } + + public MatchConditionsNested editMatchingMatchCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < matchConditions.size();i++) { + if (predicate.test(matchConditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "matchConditions")); + } + return this.setNewMatchConditionLike(index, this.buildMatchCondition(index)); + } + + public MutationsNested editMatchingMutation(Predicate predicate) { + int index = -1; + for (int i = 0;i < mutations.size();i++) { + if (predicate.test(mutations.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); + } + + public VariablesNested editMatchingVariable(Predicate predicate) { + int index = -1; + for (int i = 0;i < variables.size();i++) { + if (predicate.test(variables.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public MutationsNested editMutation(int index) { + if (mutations.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "mutations")); + } + return this.setNewMutationLike(index, this.buildMutation(index)); + } + + public MatchConstraintsNested editOrNewMatchConstraints() { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(new V1MatchResourcesBuilder().build())); + } + + public MatchConstraintsNested editOrNewMatchConstraintsLike(V1MatchResources item) { + return this.withNewMatchConstraintsLike(Optional.ofNullable(this.buildMatchConstraints()).orElse(item)); + } + + public ParamKindNested editOrNewParamKind() { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(new V1ParamKindBuilder().build())); + } + + public ParamKindNested editOrNewParamKindLike(V1ParamKind item) { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(item)); + } + + public ParamKindNested editParamKind() { + return this.withNewParamKindLike(Optional.ofNullable(this.buildParamKind()).orElse(null)); + } + + public VariablesNested editVariable(int index) { + if (variables.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "variables")); + } + return this.setNewVariableLike(index, this.buildVariable(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1MutatingAdmissionPolicySpecFluent that = (V1MutatingAdmissionPolicySpecFluent) o; + if (!(Objects.equals(failurePolicy, that.failurePolicy))) { + return false; + } + if (!(Objects.equals(matchConditions, that.matchConditions))) { + return false; + } + if (!(Objects.equals(matchConstraints, that.matchConstraints))) { + return false; + } + if (!(Objects.equals(mutations, that.mutations))) { + return false; + } + if (!(Objects.equals(paramKind, that.paramKind))) { + return false; + } + if (!(Objects.equals(reinvocationPolicy, that.reinvocationPolicy))) { + return false; + } + if (!(Objects.equals(variables, that.variables))) { + return false; + } + return true; + } + + public String getFailurePolicy() { + return this.failurePolicy; + } + + public String getReinvocationPolicy() { + return this.reinvocationPolicy; + } + + public boolean hasFailurePolicy() { + return this.failurePolicy != null; + } + + public boolean hasMatchConditions() { + return this.matchConditions != null && !(this.matchConditions.isEmpty()); + } + + public boolean hasMatchConstraints() { + return this.matchConstraints != null; + } + + public boolean hasMatchingMatchCondition(Predicate predicate) { + for (V1MatchConditionBuilder item : matchConditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingMutation(Predicate predicate) { + for (V1MutationBuilder item : mutations) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVariable(Predicate predicate) { + for (V1VariableBuilder item : variables) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMutations() { + return this.mutations != null && !(this.mutations.isEmpty()); + } + + public boolean hasParamKind() { + return this.paramKind != null; + } + + public boolean hasReinvocationPolicy() { + return this.reinvocationPolicy != null; + } + + public boolean hasVariables() { + return this.variables != null && !(this.variables.isEmpty()); + } + + public int hashCode() { + return Objects.hash(failurePolicy, matchConditions, matchConstraints, mutations, paramKind, reinvocationPolicy, variables); + } + + public A removeAllFromMatchConditions(Collection items) { + if (this.matchConditions == null) { + return (A) this; + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; + } + + public A removeAllFromMutations(Collection items) { + if (this.mutations == null) { + return (A) this; + } + for (V1Mutation item : items) { + V1MutationBuilder builder = new V1MutationBuilder(item); + _visitables.get("mutations").remove(builder); + this.mutations.remove(builder); + } + return (A) this; + } + + public A removeAllFromVariables(Collection items) { + if (this.variables == null) { + return (A) this; + } + for (V1Variable item : items) { + V1VariableBuilder builder = new V1VariableBuilder(item); + _visitables.get("variables").remove(builder); + this.variables.remove(builder); + } + return (A) this; + } + + public A removeFromMatchConditions(V1MatchCondition... items) { + if (this.matchConditions == null) { + return (A) this; + } + for (V1MatchCondition item : items) { + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + _visitables.get("matchConditions").remove(builder); + this.matchConditions.remove(builder); + } + return (A) this; + } + + public A removeFromMutations(V1Mutation... items) { + if (this.mutations == null) { + return (A) this; + } + for (V1Mutation item : items) { + V1MutationBuilder builder = new V1MutationBuilder(item); + _visitables.get("mutations").remove(builder); + this.mutations.remove(builder); + } + return (A) this; + } + + public A removeFromVariables(V1Variable... items) { + if (this.variables == null) { + return (A) this; + } + for (V1Variable item : items) { + V1VariableBuilder builder = new V1VariableBuilder(item); + _visitables.get("variables").remove(builder); + this.variables.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromMatchConditions(Predicate predicate) { + if (matchConditions == null) { + return (A) this; + } + Iterator each = matchConditions.iterator(); + List visitables = this._visitables.get("matchConditions"); + while (each.hasNext()) { + V1MatchConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromMutations(Predicate predicate) { + if (mutations == null) { + return (A) this; + } + Iterator each = mutations.iterator(); + List visitables = this._visitables.get("mutations"); + while (each.hasNext()) { + V1MutationBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromVariables(Predicate predicate) { + if (variables == null) { + return (A) this; + } + Iterator each = variables.iterator(); + List visitables = this._visitables.get("variables"); + while (each.hasNext()) { + V1VariableBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public MatchConditionsNested setNewMatchConditionLike(int index,V1MatchCondition item) { + return new MatchConditionsNested(index, item); + } + + public MutationsNested setNewMutationLike(int index,V1Mutation item) { + return new MutationsNested(index, item); + } + + public VariablesNested setNewVariableLike(int index,V1Variable item) { + return new VariablesNested(index, item); + } + + public A setToMatchConditions(int index,V1MatchCondition item) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList(); + } + V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); + if (index < 0 || index >= this.matchConditions.size()) { + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); + } else { + this._visitables.get("matchConditions").add(builder); + this.matchConditions.set(index, builder); + } + return (A) this; + } + + public A setToMutations(int index,V1Mutation item) { + if (this.mutations == null) { + this.mutations = new ArrayList(); + } + V1MutationBuilder builder = new V1MutationBuilder(item); + if (index < 0 || index >= this.mutations.size()) { + this._visitables.get("mutations").add(builder); + this.mutations.add(builder); + } else { + this._visitables.get("mutations").add(builder); + this.mutations.set(index, builder); + } + return (A) this; + } + + public A setToVariables(int index,V1Variable item) { + if (this.variables == null) { + this.variables = new ArrayList(); + } + V1VariableBuilder builder = new V1VariableBuilder(item); + if (index < 0 || index >= this.variables.size()) { + this._visitables.get("variables").add(builder); + this.variables.add(builder); + } else { + this._visitables.get("variables").add(builder); + this.variables.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(failurePolicy == null)) { + sb.append("failurePolicy:"); + sb.append(failurePolicy); + sb.append(","); + } + if (!(matchConditions == null) && !(matchConditions.isEmpty())) { + sb.append("matchConditions:"); + sb.append(matchConditions); + sb.append(","); + } + if (!(matchConstraints == null)) { + sb.append("matchConstraints:"); + sb.append(matchConstraints); + sb.append(","); + } + if (!(mutations == null) && !(mutations.isEmpty())) { + sb.append("mutations:"); + sb.append(mutations); + sb.append(","); + } + if (!(paramKind == null)) { + sb.append("paramKind:"); + sb.append(paramKind); + sb.append(","); + } + if (!(reinvocationPolicy == null)) { + sb.append("reinvocationPolicy:"); + sb.append(reinvocationPolicy); + sb.append(","); + } + if (!(variables == null) && !(variables.isEmpty())) { + sb.append("variables:"); + sb.append(variables); + } + sb.append("}"); + return sb.toString(); + } + + public A withFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; + return (A) this; + } + + public A withMatchConditions(List matchConditions) { + if (this.matchConditions != null) { + this._visitables.get("matchConditions").clear(); + } + if (matchConditions != null) { + this.matchConditions = new ArrayList(); + for (V1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } else { + this.matchConditions = null; + } + return (A) this; + } + + public A withMatchConditions(V1MatchCondition... matchConditions) { + if (this.matchConditions != null) { + this.matchConditions.clear(); + _visitables.remove("matchConditions"); + } + if (matchConditions != null) { + for (V1MatchCondition item : matchConditions) { + this.addToMatchConditions(item); + } + } + return (A) this; + } + + public A withMatchConstraints(V1MatchResources matchConstraints) { + this._visitables.remove("matchConstraints"); + if (matchConstraints != null) { + this.matchConstraints = new V1MatchResourcesBuilder(matchConstraints); + this._visitables.get("matchConstraints").add(this.matchConstraints); + } else { + this.matchConstraints = null; + this._visitables.get("matchConstraints").remove(this.matchConstraints); + } + return (A) this; + } + + public A withMutations(List mutations) { + if (this.mutations != null) { + this._visitables.get("mutations").clear(); + } + if (mutations != null) { + this.mutations = new ArrayList(); + for (V1Mutation item : mutations) { + this.addToMutations(item); + } + } else { + this.mutations = null; + } + return (A) this; + } + + public A withMutations(V1Mutation... mutations) { + if (this.mutations != null) { + this.mutations.clear(); + _visitables.remove("mutations"); + } + if (mutations != null) { + for (V1Mutation item : mutations) { + this.addToMutations(item); + } + } + return (A) this; + } + + public MatchConstraintsNested withNewMatchConstraints() { + return new MatchConstraintsNested(null); + } + + public MatchConstraintsNested withNewMatchConstraintsLike(V1MatchResources item) { + return new MatchConstraintsNested(item); + } + + public ParamKindNested withNewParamKind() { + return new ParamKindNested(null); + } + + public ParamKindNested withNewParamKindLike(V1ParamKind item) { + return new ParamKindNested(item); + } + + public A withParamKind(V1ParamKind paramKind) { + this._visitables.remove("paramKind"); + if (paramKind != null) { + this.paramKind = new V1ParamKindBuilder(paramKind); + this._visitables.get("paramKind").add(this.paramKind); + } else { + this.paramKind = null; + this._visitables.get("paramKind").remove(this.paramKind); + } + return (A) this; + } + + public A withReinvocationPolicy(String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; + return (A) this; + } + + public A withVariables(List variables) { + if (this.variables != null) { + this._visitables.get("variables").clear(); + } + if (variables != null) { + this.variables = new ArrayList(); + for (V1Variable item : variables) { + this.addToVariables(item); + } + } else { + this.variables = null; + } + return (A) this; + } + + public A withVariables(V1Variable... variables) { + if (this.variables != null) { + this.variables.clear(); + _visitables.remove("variables"); + } + if (variables != null) { + for (V1Variable item : variables) { + this.addToVariables(item); + } + } + return (A) this; + } + public class MatchConditionsNested extends V1MatchConditionFluent> implements Nested{ + + V1MatchConditionBuilder builder; + int index; + + MatchConditionsNested(int index,V1MatchCondition item) { + this.index = index; + this.builder = new V1MatchConditionBuilder(this, item); + } + + public N and() { + return (N) V1MutatingAdmissionPolicySpecFluent.this.setToMatchConditions(index, builder.build()); + } + + public N endMatchCondition() { + return and(); + } + + } + public class MatchConstraintsNested extends V1MatchResourcesFluent> implements Nested{ + + V1MatchResourcesBuilder builder; + + MatchConstraintsNested(V1MatchResources item) { + this.builder = new V1MatchResourcesBuilder(this, item); + } + + public N and() { + return (N) V1MutatingAdmissionPolicySpecFluent.this.withMatchConstraints(builder.build()); + } + + public N endMatchConstraints() { + return and(); + } + + } + public class MutationsNested extends V1MutationFluent> implements Nested{ + + V1MutationBuilder builder; + int index; + + MutationsNested(int index,V1Mutation item) { + this.index = index; + this.builder = new V1MutationBuilder(this, item); + } + + public N and() { + return (N) V1MutatingAdmissionPolicySpecFluent.this.setToMutations(index, builder.build()); + } + + public N endMutation() { + return and(); + } + + } + public class ParamKindNested extends V1ParamKindFluent> implements Nested{ + + V1ParamKindBuilder builder; + + ParamKindNested(V1ParamKind item) { + this.builder = new V1ParamKindBuilder(this, item); + } + + public N and() { + return (N) V1MutatingAdmissionPolicySpecFluent.this.withParamKind(builder.build()); + } + + public N endParamKind() { + return and(); + } + + } + public class VariablesNested extends V1VariableFluent> implements Nested{ + + V1VariableBuilder builder; + int index; + + VariablesNested(int index,V1Variable item) { + this.index = index; + this.builder = new V1VariableBuilder(this, item); + } + + public N and() { + return (N) V1MutatingAdmissionPolicySpecFluent.this.setToVariables(index, builder.build()); + } + + public N endVariable() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java index d1fb4ababa..253d128652 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java index fbc0c01be0..f205827ec5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java index 265017d7d3..ca683e6cc2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToWebhooks(Collection items) { } for (V1MutatingWebhook item : items) { V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - _visitables.get("webhooks").add(builder); + this._visitables.get("webhooks").add(builder); this.webhooks.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToWebhooks(V1MutatingWebhook... items) { } for (V1MutatingWebhook item : items) { V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - _visitables.get("webhooks").add(builder); + this._visitables.get("webhooks").add(builder); this.webhooks.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToWebhooks(int index,V1MutatingWebhook item) { this.webhooks = new ArrayList(); } V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { - _visitables.get("webhooks").add(builder); - webhooks.add(builder); + if (index < 0 || index >= this.webhooks.size()) { + this._visitables.get("webhooks").add(builder); + this.webhooks.add(builder); } else { - _visitables.get("webhooks").add(builder); - webhooks.add(index, builder); + this._visitables.get("webhooks").add(builder); + this.webhooks.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromWebhooks(Predicate predicat return (A) this; } Iterator each = webhooks.iterator(); - List visitables = _visitables.get("webhooks"); + List visitables = this._visitables.get("webhooks"); while (each.hasNext()) { V1MutatingWebhookBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToWebhooks(int index,V1MutatingWebhook item) { this.webhooks = new ArrayList(); } V1MutatingWebhookBuilder builder = new V1MutatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { - _visitables.get("webhooks").add(builder); - webhooks.add(builder); + if (index < 0 || index >= this.webhooks.size()) { + this._visitables.get("webhooks").add(builder); + this.webhooks.add(builder); } else { - _visitables.get("webhooks").add(builder); - webhooks.set(index, builder); + this._visitables.get("webhooks").add(builder); + this.webhooks.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java index 63e58c4638..f8b881b649 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java index 0d15ec3a48..19869e8f96 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1MutatingWebhookConfiguration item : items) { V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1MutatingWebhookConfiguration... items) { } for (V1MutatingWebhookConfiguration item : items) { V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1MutatingWebhookConfiguration item) { this.items = new ArrayList(); } V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1MutatingWebhookConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1MutatingWebhookConfiguration item) { this.items = new ArrayList(); } V1MutatingWebhookConfigurationBuilder builder = new V1MutatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java index 07b9f61c5b..bc3c99a25a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -70,7 +70,7 @@ public A addAllToMatchConditions(Collection items) { } for (V1MatchCondition item : items) { V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); + this._visitables.get("matchConditions").add(builder); this.matchConditions.add(builder); } return (A) this; @@ -82,7 +82,7 @@ public A addAllToRules(Collection items) { } for (V1RuleWithOperations item : items) { V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -128,7 +128,7 @@ public A addToMatchConditions(V1MatchCondition... items) { } for (V1MatchCondition item : items) { V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); + this._visitables.get("matchConditions").add(builder); this.matchConditions.add(builder); } return (A) this; @@ -139,12 +139,12 @@ public A addToMatchConditions(int index,V1MatchCondition item) { this.matchConditions = new ArrayList(); } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); + if (index < 0 || index >= this.matchConditions.size()) { + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); } else { - _visitables.get("matchConditions").add(builder); - matchConditions.add(index, builder); + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(index, builder); } return (A) this; } @@ -155,7 +155,7 @@ public A addToRules(V1RuleWithOperations... items) { } for (V1RuleWithOperations item : items) { V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -166,12 +166,12 @@ public A addToRules(int index,V1RuleWithOperations item) { this.rules = new ArrayList(); } V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.add(index, builder); + this._visitables.get("rules").add(builder); + this.rules.add(index, builder); } return (A) this; } @@ -615,7 +615,7 @@ public A removeMatchingFromMatchConditions(Predicate pr return (A) this; } Iterator each = matchConditions.iterator(); - List visitables = _visitables.get("matchConditions"); + List visitables = this._visitables.get("matchConditions"); while (each.hasNext()) { V1MatchConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -631,7 +631,7 @@ public A removeMatchingFromRules(Predicate predicat return (A) this; } Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); + List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1RuleWithOperationsBuilder builder = each.next(); if (predicate.test(builder)) { @@ -663,12 +663,12 @@ public A setToMatchConditions(int index,V1MatchCondition item) { this.matchConditions = new ArrayList(); } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); + if (index < 0 || index >= this.matchConditions.size()) { + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); } else { - _visitables.get("matchConditions").add(builder); - matchConditions.set(index, builder); + this._visitables.get("matchConditions").add(builder); + this.matchConditions.set(index, builder); } return (A) this; } @@ -678,12 +678,12 @@ public A setToRules(int index,V1RuleWithOperations item) { this.rules = new ArrayList(); } V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.set(index, builder); + this._visitables.get("rules").add(builder); + this.rules.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutationBuilder.java new file mode 100644 index 0000000000..e62035a318 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutationBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1MutationBuilder extends V1MutationFluent implements VisitableBuilder{ + + V1MutationFluent fluent; + + public V1MutationBuilder() { + this(new V1Mutation()); + } + + public V1MutationBuilder(V1MutationFluent fluent) { + this(fluent, new V1Mutation()); + } + + public V1MutationBuilder(V1Mutation instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1MutationBuilder(V1MutationFluent fluent,V1Mutation instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1Mutation build() { + V1Mutation buildable = new V1Mutation(); + buildable.setApplyConfiguration(fluent.buildApplyConfiguration()); + buildable.setJsonPatch(fluent.buildJsonPatch()); + buildable.setPatchType(fluent.getPatchType()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutationFluent.java new file mode 100644 index 0000000000..c768f7cd94 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1MutationFluent.java @@ -0,0 +1,224 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1MutationFluent> extends BaseFluent{ + + private V1ApplyConfigurationBuilder applyConfiguration; + private V1JSONPatchBuilder jsonPatch; + private String patchType; + + public V1MutationFluent() { + } + + public V1MutationFluent(V1Mutation instance) { + this.copyInstance(instance); + } + + public V1ApplyConfiguration buildApplyConfiguration() { + return this.applyConfiguration != null ? this.applyConfiguration.build() : null; + } + + public V1JSONPatch buildJsonPatch() { + return this.jsonPatch != null ? this.jsonPatch.build() : null; + } + + protected void copyInstance(V1Mutation instance) { + instance = instance != null ? instance : new V1Mutation(); + if (instance != null) { + this.withApplyConfiguration(instance.getApplyConfiguration()); + this.withJsonPatch(instance.getJsonPatch()); + this.withPatchType(instance.getPatchType()); + } + } + + public ApplyConfigurationNested editApplyConfiguration() { + return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(null)); + } + + public JsonPatchNested editJsonPatch() { + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(null)); + } + + public ApplyConfigurationNested editOrNewApplyConfiguration() { + return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(new V1ApplyConfigurationBuilder().build())); + } + + public ApplyConfigurationNested editOrNewApplyConfigurationLike(V1ApplyConfiguration item) { + return this.withNewApplyConfigurationLike(Optional.ofNullable(this.buildApplyConfiguration()).orElse(item)); + } + + public JsonPatchNested editOrNewJsonPatch() { + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(new V1JSONPatchBuilder().build())); + } + + public JsonPatchNested editOrNewJsonPatchLike(V1JSONPatch item) { + return this.withNewJsonPatchLike(Optional.ofNullable(this.buildJsonPatch()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1MutationFluent that = (V1MutationFluent) o; + if (!(Objects.equals(applyConfiguration, that.applyConfiguration))) { + return false; + } + if (!(Objects.equals(jsonPatch, that.jsonPatch))) { + return false; + } + if (!(Objects.equals(patchType, that.patchType))) { + return false; + } + return true; + } + + public String getPatchType() { + return this.patchType; + } + + public boolean hasApplyConfiguration() { + return this.applyConfiguration != null; + } + + public boolean hasJsonPatch() { + return this.jsonPatch != null; + } + + public boolean hasPatchType() { + return this.patchType != null; + } + + public int hashCode() { + return Objects.hash(applyConfiguration, jsonPatch, patchType); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(applyConfiguration == null)) { + sb.append("applyConfiguration:"); + sb.append(applyConfiguration); + sb.append(","); + } + if (!(jsonPatch == null)) { + sb.append("jsonPatch:"); + sb.append(jsonPatch); + sb.append(","); + } + if (!(patchType == null)) { + sb.append("patchType:"); + sb.append(patchType); + } + sb.append("}"); + return sb.toString(); + } + + public A withApplyConfiguration(V1ApplyConfiguration applyConfiguration) { + this._visitables.remove("applyConfiguration"); + if (applyConfiguration != null) { + this.applyConfiguration = new V1ApplyConfigurationBuilder(applyConfiguration); + this._visitables.get("applyConfiguration").add(this.applyConfiguration); + } else { + this.applyConfiguration = null; + this._visitables.get("applyConfiguration").remove(this.applyConfiguration); + } + return (A) this; + } + + public A withJsonPatch(V1JSONPatch jsonPatch) { + this._visitables.remove("jsonPatch"); + if (jsonPatch != null) { + this.jsonPatch = new V1JSONPatchBuilder(jsonPatch); + this._visitables.get("jsonPatch").add(this.jsonPatch); + } else { + this.jsonPatch = null; + this._visitables.get("jsonPatch").remove(this.jsonPatch); + } + return (A) this; + } + + public ApplyConfigurationNested withNewApplyConfiguration() { + return new ApplyConfigurationNested(null); + } + + public ApplyConfigurationNested withNewApplyConfigurationLike(V1ApplyConfiguration item) { + return new ApplyConfigurationNested(item); + } + + public JsonPatchNested withNewJsonPatch() { + return new JsonPatchNested(null); + } + + public JsonPatchNested withNewJsonPatchLike(V1JSONPatch item) { + return new JsonPatchNested(item); + } + + public A withPatchType(String patchType) { + this.patchType = patchType; + return (A) this; + } + public class ApplyConfigurationNested extends V1ApplyConfigurationFluent> implements Nested{ + + V1ApplyConfigurationBuilder builder; + + ApplyConfigurationNested(V1ApplyConfiguration item) { + this.builder = new V1ApplyConfigurationBuilder(this, item); + } + + public N and() { + return (N) V1MutationFluent.this.withApplyConfiguration(builder.build()); + } + + public N endApplyConfiguration() { + return and(); + } + + } + public class JsonPatchNested extends V1JSONPatchFluent> implements Nested{ + + V1JSONPatchBuilder builder; + + JsonPatchNested(V1JSONPatch item) { + this.builder = new V1JSONPatchBuilder(this, item); + } + + public N and() { + return (N) V1MutationFluent.this.withJsonPatch(builder.build()); + } + + public N endJsonPatch() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java index b9dc69ca98..84e5119de0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java index c345aeff30..132b3bc13a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java index 46c8fa29d0..a2b14f6956 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java index 59f17536a1..60713285d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperationsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java index 656667a869..58942f2d01 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java index a3b77848e1..ad0b5f33de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java index ff18c4c1f2..259aef0e22 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java index a5952e0455..18dd46e0d4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java index d4c5f375e6..b922f889b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java index ae29b22422..663c02d855 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1Namespace item : items) { V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1Namespace... items) { } for (V1Namespace item : items) { V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1Namespace item) { this.items = new ArrayList(); } V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1NamespaceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1Namespace item) { this.items = new ArrayList(); } V1NamespaceBuilder builder = new V1NamespaceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java index 06478f9fbe..da6c532cef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java index 83844b3f67..fb8a7aec61 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java index bf5efa98b8..11147cd090 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java index 4046c52ef8..fe39e0f665 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,7 +48,7 @@ public A addAllToConditions(Collection items) { } for (V1NamespaceCondition item : items) { V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -68,7 +68,7 @@ public A addToConditions(V1NamespaceCondition... items) { } for (V1NamespaceCondition item : items) { V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -79,12 +79,12 @@ public A addToConditions(int index,V1NamespaceCondition item) { this.conditions = new ArrayList(); } V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -232,7 +232,7 @@ public A removeMatchingFromConditions(Predicate pre return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1NamespaceConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -252,12 +252,12 @@ public A setToConditions(int index,V1NamespaceCondition item) { this.conditions = new ArrayList(); } V1NamespaceConditionBuilder builder = new V1NamespaceConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataBuilder.java index 20570d792b..f90f73b178 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java index 23e0badcad..c1aa723361 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceDataFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java index 3d1d152b55..1ad1615f6c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java index 0e9b8923d1..132df36dfc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java index e07bf8798e..69b73daae1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRuleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,7 +48,7 @@ public A addAllToPorts(Collection items) { } for (V1NetworkPolicyPort item : items) { V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -60,7 +60,7 @@ public A addAllToTo(Collection items) { } for (V1NetworkPolicyPeer item : items) { V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("to").add(builder); + this._visitables.get("to").add(builder); this.to.add(builder); } return (A) this; @@ -88,7 +88,7 @@ public A addToPorts(V1NetworkPolicyPort... items) { } for (V1NetworkPolicyPort item : items) { V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -99,12 +99,12 @@ public A addToPorts(int index,V1NetworkPolicyPort item) { this.ports = new ArrayList(); } V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.add(index, builder); + this._visitables.get("ports").add(builder); + this.ports.add(index, builder); } return (A) this; } @@ -115,7 +115,7 @@ public A addToTo(V1NetworkPolicyPeer... items) { } for (V1NetworkPolicyPeer item : items) { V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("to").add(builder); + this._visitables.get("to").add(builder); this.to.add(builder); } return (A) this; @@ -126,12 +126,12 @@ public A addToTo(int index,V1NetworkPolicyPeer item) { this.to = new ArrayList(); } V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= to.size()) { - _visitables.get("to").add(builder); - to.add(builder); + if (index < 0 || index >= this.to.size()) { + this._visitables.get("to").add(builder); + this.to.add(builder); } else { - _visitables.get("to").add(builder); - to.add(index, builder); + this._visitables.get("to").add(builder); + this.to.add(index, builder); } return (A) this; } @@ -369,7 +369,7 @@ public A removeMatchingFromPorts(Predicate predicate return (A) this; } Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); + List visitables = this._visitables.get("ports"); while (each.hasNext()) { V1NetworkPolicyPortBuilder builder = each.next(); if (predicate.test(builder)) { @@ -385,7 +385,7 @@ public A removeMatchingFromTo(Predicate predicate) { return (A) this; } Iterator each = to.iterator(); - List visitables = _visitables.get("to"); + List visitables = this._visitables.get("to"); while (each.hasNext()) { V1NetworkPolicyPeerBuilder builder = each.next(); if (predicate.test(builder)) { @@ -409,12 +409,12 @@ public A setToPorts(int index,V1NetworkPolicyPort item) { this.ports = new ArrayList(); } V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); + this._visitables.get("ports").add(builder); + this.ports.set(index, builder); } return (A) this; } @@ -424,12 +424,12 @@ public A setToTo(int index,V1NetworkPolicyPeer item) { this.to = new ArrayList(); } V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= to.size()) { - _visitables.get("to").add(builder); - to.add(builder); + if (index < 0 || index >= this.to.size()) { + this._visitables.get("to").add(builder); + this.to.add(builder); } else { - _visitables.get("to").add(builder); - to.set(index, builder); + this._visitables.get("to").add(builder); + this.to.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java index b8ea9545cd..76e95f5183 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java index 1e2a8eba34..90e117d66c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java index a2099ba7fc..a08a384a7d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRuleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,7 +48,7 @@ public A addAllToFrom(Collection items) { } for (V1NetworkPolicyPeer item : items) { V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("from").add(builder); + this._visitables.get("from").add(builder); this.from.add(builder); } return (A) this; @@ -60,7 +60,7 @@ public A addAllToPorts(Collection items) { } for (V1NetworkPolicyPort item : items) { V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -88,7 +88,7 @@ public A addToFrom(V1NetworkPolicyPeer... items) { } for (V1NetworkPolicyPeer item : items) { V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - _visitables.get("from").add(builder); + this._visitables.get("from").add(builder); this.from.add(builder); } return (A) this; @@ -99,12 +99,12 @@ public A addToFrom(int index,V1NetworkPolicyPeer item) { this.from = new ArrayList(); } V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= from.size()) { - _visitables.get("from").add(builder); - from.add(builder); + if (index < 0 || index >= this.from.size()) { + this._visitables.get("from").add(builder); + this.from.add(builder); } else { - _visitables.get("from").add(builder); - from.add(index, builder); + this._visitables.get("from").add(builder); + this.from.add(index, builder); } return (A) this; } @@ -115,7 +115,7 @@ public A addToPorts(V1NetworkPolicyPort... items) { } for (V1NetworkPolicyPort item : items) { V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -126,12 +126,12 @@ public A addToPorts(int index,V1NetworkPolicyPort item) { this.ports = new ArrayList(); } V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.add(index, builder); + this._visitables.get("ports").add(builder); + this.ports.add(index, builder); } return (A) this; } @@ -369,7 +369,7 @@ public A removeMatchingFromFrom(Predicate predicate) return (A) this; } Iterator each = from.iterator(); - List visitables = _visitables.get("from"); + List visitables = this._visitables.get("from"); while (each.hasNext()) { V1NetworkPolicyPeerBuilder builder = each.next(); if (predicate.test(builder)) { @@ -385,7 +385,7 @@ public A removeMatchingFromPorts(Predicate predicate return (A) this; } Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); + List visitables = this._visitables.get("ports"); while (each.hasNext()) { V1NetworkPolicyPortBuilder builder = each.next(); if (predicate.test(builder)) { @@ -409,12 +409,12 @@ public A setToFrom(int index,V1NetworkPolicyPeer item) { this.from = new ArrayList(); } V1NetworkPolicyPeerBuilder builder = new V1NetworkPolicyPeerBuilder(item); - if (index < 0 || index >= from.size()) { - _visitables.get("from").add(builder); - from.add(builder); + if (index < 0 || index >= this.from.size()) { + this._visitables.get("from").add(builder); + this.from.add(builder); } else { - _visitables.get("from").add(builder); - from.set(index, builder); + this._visitables.get("from").add(builder); + this.from.set(index, builder); } return (A) this; } @@ -424,12 +424,12 @@ public A setToPorts(int index,V1NetworkPolicyPort item) { this.ports = new ArrayList(); } V1NetworkPolicyPortBuilder builder = new V1NetworkPolicyPortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); + this._visitables.get("ports").add(builder); + this.ports.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java index d9128ce25f..7bf51154b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java index 42fa3e5366..cc848f3f0c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1NetworkPolicy item : items) { V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1NetworkPolicy... items) { } for (V1NetworkPolicy item : items) { V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1NetworkPolicy item) { this.items = new ArrayList(); } V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1NetworkPolicyBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1NetworkPolicy item) { this.items = new ArrayList(); } V1NetworkPolicyBuilder builder = new V1NetworkPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java index aad0167a67..0175f709d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java index 80c670985d..f447219755 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeerFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java index 37cd5ec74f..a2fba72723 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java index e45966f3e4..374e39150b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPortFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java index be0340f4e5..855c403ac5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java index 3df1af053e..4d99138430 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToEgress(Collection items) { } for (V1NetworkPolicyEgressRule item : items) { V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - _visitables.get("egress").add(builder); + this._visitables.get("egress").add(builder); this.egress.add(builder); } return (A) this; @@ -63,7 +63,7 @@ public A addAllToIngress(Collection items) { } for (V1NetworkPolicyIngressRule item : items) { V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - _visitables.get("ingress").add(builder); + this._visitables.get("ingress").add(builder); this.ingress.add(builder); } return (A) this; @@ -101,7 +101,7 @@ public A addToEgress(V1NetworkPolicyEgressRule... items) { } for (V1NetworkPolicyEgressRule item : items) { V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - _visitables.get("egress").add(builder); + this._visitables.get("egress").add(builder); this.egress.add(builder); } return (A) this; @@ -112,12 +112,12 @@ public A addToEgress(int index,V1NetworkPolicyEgressRule item) { this.egress = new ArrayList(); } V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - if (index < 0 || index >= egress.size()) { - _visitables.get("egress").add(builder); - egress.add(builder); + if (index < 0 || index >= this.egress.size()) { + this._visitables.get("egress").add(builder); + this.egress.add(builder); } else { - _visitables.get("egress").add(builder); - egress.add(index, builder); + this._visitables.get("egress").add(builder); + this.egress.add(index, builder); } return (A) this; } @@ -128,7 +128,7 @@ public A addToIngress(V1NetworkPolicyIngressRule... items) { } for (V1NetworkPolicyIngressRule item : items) { V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - _visitables.get("ingress").add(builder); + this._visitables.get("ingress").add(builder); this.ingress.add(builder); } return (A) this; @@ -139,12 +139,12 @@ public A addToIngress(int index,V1NetworkPolicyIngressRule item) { this.ingress = new ArrayList(); } V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - if (index < 0 || index >= ingress.size()) { - _visitables.get("ingress").add(builder); - ingress.add(builder); + if (index < 0 || index >= this.ingress.size()) { + this._visitables.get("ingress").add(builder); + this.ingress.add(builder); } else { - _visitables.get("ingress").add(builder); - ingress.add(index, builder); + this._visitables.get("ingress").add(builder); + this.ingress.add(index, builder); } return (A) this; } @@ -486,7 +486,7 @@ public A removeMatchingFromEgress(Predicate pr return (A) this; } Iterator each = egress.iterator(); - List visitables = _visitables.get("egress"); + List visitables = this._visitables.get("egress"); while (each.hasNext()) { V1NetworkPolicyEgressRuleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -502,7 +502,7 @@ public A removeMatchingFromIngress(Predicate return (A) this; } Iterator each = ingress.iterator(); - List visitables = _visitables.get("ingress"); + List visitables = this._visitables.get("ingress"); while (each.hasNext()) { V1NetworkPolicyIngressRuleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -526,12 +526,12 @@ public A setToEgress(int index,V1NetworkPolicyEgressRule item) { this.egress = new ArrayList(); } V1NetworkPolicyEgressRuleBuilder builder = new V1NetworkPolicyEgressRuleBuilder(item); - if (index < 0 || index >= egress.size()) { - _visitables.get("egress").add(builder); - egress.add(builder); + if (index < 0 || index >= this.egress.size()) { + this._visitables.get("egress").add(builder); + this.egress.add(builder); } else { - _visitables.get("egress").add(builder); - egress.set(index, builder); + this._visitables.get("egress").add(builder); + this.egress.set(index, builder); } return (A) this; } @@ -541,12 +541,12 @@ public A setToIngress(int index,V1NetworkPolicyIngressRule item) { this.ingress = new ArrayList(); } V1NetworkPolicyIngressRuleBuilder builder = new V1NetworkPolicyIngressRuleBuilder(item); - if (index < 0 || index >= ingress.size()) { - _visitables.get("ingress").add(builder); - ingress.add(builder); + if (index < 0 || index >= this.ingress.size()) { + this._visitables.get("ingress").add(builder); + this.ingress.add(builder); } else { - _visitables.get("ingress").add(builder); - ingress.set(index, builder); + this._visitables.get("ingress").add(builder); + this.ingress.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java index 5002022882..07387af961 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java index 6449823ebb..bac57f59ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddressFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java index 864519fb78..ed36339c53 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java index f82fc0b3cf..a5521705ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinityFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection= preferredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(builder); + if (index < 0 || index >= this.preferredDuringSchedulingIgnoredDuringExecution.size()) { + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); } return (A) this; } @@ -245,7 +245,7 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predi return (A) this; } Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); - List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); + List visitables = this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { V1PreferredSchedulingTermBuilder builder = each.next(); if (predicate.test(builder)) { @@ -265,12 +265,12 @@ public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1Prefer this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } V1PreferredSchedulingTermBuilder builder = new V1PreferredSchedulingTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(builder); + if (index < 0 || index >= this.preferredDuringSchedulingIgnoredDuringExecution.size()) { + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatusBuilder.java new file mode 100644 index 0000000000..6a9c0498e7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatusBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1NodeAllocatableResourceClaimStatusBuilder extends V1NodeAllocatableResourceClaimStatusFluent implements VisitableBuilder{ + + V1NodeAllocatableResourceClaimStatusFluent fluent; + + public V1NodeAllocatableResourceClaimStatusBuilder() { + this(new V1NodeAllocatableResourceClaimStatus()); + } + + public V1NodeAllocatableResourceClaimStatusBuilder(V1NodeAllocatableResourceClaimStatusFluent fluent) { + this(fluent, new V1NodeAllocatableResourceClaimStatus()); + } + + public V1NodeAllocatableResourceClaimStatusBuilder(V1NodeAllocatableResourceClaimStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1NodeAllocatableResourceClaimStatusBuilder(V1NodeAllocatableResourceClaimStatusFluent fluent,V1NodeAllocatableResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NodeAllocatableResourceClaimStatus build() { + V1NodeAllocatableResourceClaimStatus buildable = new V1NodeAllocatableResourceClaimStatus(); + buildable.setContainers(fluent.getContainers()); + buildable.setResourceClaimName(fluent.getResourceClaimName()); + buildable.setResources(fluent.getResources()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatusFluent.java new file mode 100644 index 0000000000..92fa6e7f06 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatusFluent.java @@ -0,0 +1,296 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1NodeAllocatableResourceClaimStatusFluent> extends BaseFluent{ + + private List containers; + private String resourceClaimName; + private Map resources; + + public V1NodeAllocatableResourceClaimStatusFluent() { + } + + public V1NodeAllocatableResourceClaimStatusFluent(V1NodeAllocatableResourceClaimStatus instance) { + this.copyInstance(instance); + } + + public A addAllToContainers(Collection items) { + if (this.containers == null) { + this.containers = new ArrayList(); + } + for (String item : items) { + this.containers.add(item); + } + return (A) this; + } + + public A addToContainers(String... items) { + if (this.containers == null) { + this.containers = new ArrayList(); + } + for (String item : items) { + this.containers.add(item); + } + return (A) this; + } + + public A addToContainers(int index,String item) { + if (this.containers == null) { + this.containers = new ArrayList(); + } + this.containers.add(index, item); + return (A) this; + } + + public A addToResources(Map map) { + if (this.resources == null && map != null) { + this.resources = new LinkedHashMap(); + } + if (map != null) { + this.resources.putAll(map); + } + return (A) this; + } + + public A addToResources(String key,Quantity value) { + if (this.resources == null && key != null && value != null) { + this.resources = new LinkedHashMap(); + } + if (key != null && value != null) { + this.resources.put(key, value); + } + return (A) this; + } + + protected void copyInstance(V1NodeAllocatableResourceClaimStatus instance) { + instance = instance != null ? instance : new V1NodeAllocatableResourceClaimStatus(); + if (instance != null) { + this.withContainers(instance.getContainers()); + this.withResourceClaimName(instance.getResourceClaimName()); + this.withResources(instance.getResources()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeAllocatableResourceClaimStatusFluent that = (V1NodeAllocatableResourceClaimStatusFluent) o; + if (!(Objects.equals(containers, that.containers))) { + return false; + } + if (!(Objects.equals(resourceClaimName, that.resourceClaimName))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + return true; + } + + public String getContainer(int index) { + return this.containers.get(index); + } + + public List getContainers() { + return this.containers; + } + + public String getFirstContainer() { + return this.containers.get(0); + } + + public String getLastContainer() { + return this.containers.get(containers.size() - 1); + } + + public String getMatchingContainer(Predicate predicate) { + for (String item : containers) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getResourceClaimName() { + return this.resourceClaimName; + } + + public Map getResources() { + return this.resources; + } + + public boolean hasContainers() { + return this.containers != null && !(this.containers.isEmpty()); + } + + public boolean hasMatchingContainer(Predicate predicate) { + for (String item : containers) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResourceClaimName() { + return this.resourceClaimName != null; + } + + public boolean hasResources() { + return this.resources != null; + } + + public int hashCode() { + return Objects.hash(containers, resourceClaimName, resources); + } + + public A removeAllFromContainers(Collection items) { + if (this.containers == null) { + return (A) this; + } + for (String item : items) { + this.containers.remove(item); + } + return (A) this; + } + + public A removeFromContainers(String... items) { + if (this.containers == null) { + return (A) this; + } + for (String item : items) { + this.containers.remove(item); + } + return (A) this; + } + + public A removeFromResources(String key) { + if (this.resources == null) { + return (A) this; + } + if (key != null && this.resources != null) { + this.resources.remove(key); + } + return (A) this; + } + + public A removeFromResources(Map map) { + if (this.resources == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.resources != null) { + this.resources.remove(key); + } + } + } + return (A) this; + } + + public A setToContainers(int index,String item) { + if (this.containers == null) { + this.containers = new ArrayList(); + } + this.containers.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(containers == null) && !(containers.isEmpty())) { + sb.append("containers:"); + sb.append(containers); + sb.append(","); + } + if (!(resourceClaimName == null)) { + sb.append("resourceClaimName:"); + sb.append(resourceClaimName); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + } + sb.append("}"); + return sb.toString(); + } + + public A withContainers(List containers) { + if (containers != null) { + this.containers = new ArrayList(); + for (String item : containers) { + this.addToContainers(item); + } + } else { + this.containers = null; + } + return (A) this; + } + + public A withContainers(String... containers) { + if (this.containers != null) { + this.containers.clear(); + _visitables.remove("containers"); + } + if (containers != null) { + for (String item : containers) { + this.addToContainers(item); + } + } + return (A) this; + } + + public A withResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return (A) this; + } + + public A withResources(Map resources) { + if (resources == null) { + this.resources = null; + } else { + this.resources = new LinkedHashMap(resources); + } + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMappingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMappingBuilder.java new file mode 100644 index 0000000000..3787054cdb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMappingBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1NodeAllocatableResourceMappingBuilder extends V1NodeAllocatableResourceMappingFluent implements VisitableBuilder{ + + V1NodeAllocatableResourceMappingFluent fluent; + + public V1NodeAllocatableResourceMappingBuilder() { + this(new V1NodeAllocatableResourceMapping()); + } + + public V1NodeAllocatableResourceMappingBuilder(V1NodeAllocatableResourceMappingFluent fluent) { + this(fluent, new V1NodeAllocatableResourceMapping()); + } + + public V1NodeAllocatableResourceMappingBuilder(V1NodeAllocatableResourceMapping instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1NodeAllocatableResourceMappingBuilder(V1NodeAllocatableResourceMappingFluent fluent,V1NodeAllocatableResourceMapping instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1NodeAllocatableResourceMapping build() { + V1NodeAllocatableResourceMapping buildable = new V1NodeAllocatableResourceMapping(); + buildable.setAllocationMultiplier(fluent.getAllocationMultiplier()); + buildable.setCapacityKey(fluent.getCapacityKey()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMappingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMappingFluent.java new file mode 100644 index 0000000000..2dfd254fc6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMappingFluent.java @@ -0,0 +1,117 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1NodeAllocatableResourceMappingFluent> extends BaseFluent{ + + private Quantity allocationMultiplier; + private String capacityKey; + + public V1NodeAllocatableResourceMappingFluent() { + } + + public V1NodeAllocatableResourceMappingFluent(V1NodeAllocatableResourceMapping instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1NodeAllocatableResourceMapping instance) { + instance = instance != null ? instance : new V1NodeAllocatableResourceMapping(); + if (instance != null) { + this.withAllocationMultiplier(instance.getAllocationMultiplier()); + this.withCapacityKey(instance.getCapacityKey()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1NodeAllocatableResourceMappingFluent that = (V1NodeAllocatableResourceMappingFluent) o; + if (!(Objects.equals(allocationMultiplier, that.allocationMultiplier))) { + return false; + } + if (!(Objects.equals(capacityKey, that.capacityKey))) { + return false; + } + return true; + } + + public Quantity getAllocationMultiplier() { + return this.allocationMultiplier; + } + + public String getCapacityKey() { + return this.capacityKey; + } + + public boolean hasAllocationMultiplier() { + return this.allocationMultiplier != null; + } + + public boolean hasCapacityKey() { + return this.capacityKey != null; + } + + public int hashCode() { + return Objects.hash(allocationMultiplier, capacityKey); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocationMultiplier == null)) { + sb.append("allocationMultiplier:"); + sb.append(allocationMultiplier); + sb.append(","); + } + if (!(capacityKey == null)) { + sb.append("capacityKey:"); + sb.append(capacityKey); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllocationMultiplier(Quantity allocationMultiplier) { + this.allocationMultiplier = allocationMultiplier; + return (A) this; + } + + public A withCapacityKey(String capacityKey) { + this.capacityKey = capacityKey; + return (A) this; + } + + public A withNewAllocationMultiplier(String value) { + return (A) this.withAllocationMultiplier(new Quantity(value)); + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java index 6d2abff766..e8f0c59416 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java index d16f6b777b..94cab6c97c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java index 65af90cf4d..a68f4726be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java index ddb6325352..ea7613fba5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java index 8f616689aa..3b667949a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java index 83300cc188..a84c08968b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java index dd94ab77da..071087f10f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java index da9e61ff40..cd79349a6b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java index 9174d016af..5a658c3ce7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpointsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java index 883f24b93d..02f725cdd3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java index e4e4259b09..1232e77d8e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeaturesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java index 4a32354b54..3a74d1f145 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java index ba50143393..686163cb21 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java index f4bd41b802..94ee0bb222 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1Node item : items) { V1NodeBuilder builder = new V1NodeBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1Node... items) { } for (V1Node item : items) { V1NodeBuilder builder = new V1NodeBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1Node item) { this.items = new ArrayList(); } V1NodeBuilder builder = new V1NodeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1NodeBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1Node item) { this.items = new ArrayList(); } V1NodeBuilder builder = new V1NodeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java index 63dac2e500..5ecd960d4b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java index bc4578c7ba..9fa51c70c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java index ddd0a4d2af..9f464442ee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeaturesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java index 6b4c5e2168..b1c4a1b96a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java index cc8ff06076..4c82cafa60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java index 1b418f0427..75e166fd3d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToNodeSelectorTerms(Collection items) { } for (V1NodeSelectorTerm item : items) { V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - _visitables.get("nodeSelectorTerms").add(builder); + this._visitables.get("nodeSelectorTerms").add(builder); this.nodeSelectorTerms.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToNodeSelectorTerms(V1NodeSelectorTerm... items) { } for (V1NodeSelectorTerm item : items) { V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - _visitables.get("nodeSelectorTerms").add(builder); + this._visitables.get("nodeSelectorTerms").add(builder); this.nodeSelectorTerms.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { this.nodeSelectorTerms = new ArrayList(); } V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - if (index < 0 || index >= nodeSelectorTerms.size()) { - _visitables.get("nodeSelectorTerms").add(builder); - nodeSelectorTerms.add(builder); + if (index < 0 || index >= this.nodeSelectorTerms.size()) { + this._visitables.get("nodeSelectorTerms").add(builder); + this.nodeSelectorTerms.add(builder); } else { - _visitables.get("nodeSelectorTerms").add(builder); - nodeSelectorTerms.add(index, builder); + this._visitables.get("nodeSelectorTerms").add(builder); + this.nodeSelectorTerms.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromNodeSelectorTerms(Predicate each = nodeSelectorTerms.iterator(); - List visitables = _visitables.get("nodeSelectorTerms"); + List visitables = this._visitables.get("nodeSelectorTerms"); while (each.hasNext()) { V1NodeSelectorTermBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToNodeSelectorTerms(int index,V1NodeSelectorTerm item) { this.nodeSelectorTerms = new ArrayList(); } V1NodeSelectorTermBuilder builder = new V1NodeSelectorTermBuilder(item); - if (index < 0 || index >= nodeSelectorTerms.size()) { - _visitables.get("nodeSelectorTerms").add(builder); - nodeSelectorTerms.add(builder); + if (index < 0 || index >= this.nodeSelectorTerms.size()) { + this._visitables.get("nodeSelectorTerms").add(builder); + this.nodeSelectorTerms.add(builder); } else { - _visitables.get("nodeSelectorTerms").add(builder); - nodeSelectorTerms.set(index, builder); + this._visitables.get("nodeSelectorTerms").add(builder); + this.nodeSelectorTerms.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java index f92274b494..da4c63a758 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java index 0632a3456a..2dc0a0f8f3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirementFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java index 5490945c1f..c4397581a0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java index 4135371347..70c90e57d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTermFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,7 +48,7 @@ public A addAllToMatchExpressions(Collection items) { } for (V1NodeSelectorRequirement item : items) { V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").add(builder); + this._visitables.get("matchExpressions").add(builder); this.matchExpressions.add(builder); } return (A) this; @@ -60,7 +60,7 @@ public A addAllToMatchFields(Collection items) { } for (V1NodeSelectorRequirement item : items) { V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchFields").add(builder); + this._visitables.get("matchFields").add(builder); this.matchFields.add(builder); } return (A) this; @@ -88,7 +88,7 @@ public A addToMatchExpressions(V1NodeSelectorRequirement... items) { } for (V1NodeSelectorRequirement item : items) { V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchExpressions").add(builder); + this._visitables.get("matchExpressions").add(builder); this.matchExpressions.add(builder); } return (A) this; @@ -99,12 +99,12 @@ public A addToMatchExpressions(int index,V1NodeSelectorRequirement item) { this.matchExpressions = new ArrayList(); } V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { - _visitables.get("matchExpressions").add(builder); - matchExpressions.add(builder); + if (index < 0 || index >= this.matchExpressions.size()) { + this._visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); } else { - _visitables.get("matchExpressions").add(builder); - matchExpressions.add(index, builder); + this._visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(index, builder); } return (A) this; } @@ -115,7 +115,7 @@ public A addToMatchFields(V1NodeSelectorRequirement... items) { } for (V1NodeSelectorRequirement item : items) { V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - _visitables.get("matchFields").add(builder); + this._visitables.get("matchFields").add(builder); this.matchFields.add(builder); } return (A) this; @@ -126,12 +126,12 @@ public A addToMatchFields(int index,V1NodeSelectorRequirement item) { this.matchFields = new ArrayList(); } V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchFields.size()) { - _visitables.get("matchFields").add(builder); - matchFields.add(builder); + if (index < 0 || index >= this.matchFields.size()) { + this._visitables.get("matchFields").add(builder); + this.matchFields.add(builder); } else { - _visitables.get("matchFields").add(builder); - matchFields.add(index, builder); + this._visitables.get("matchFields").add(builder); + this.matchFields.add(index, builder); } return (A) this; } @@ -369,7 +369,7 @@ public A removeMatchingFromMatchExpressions(Predicate each = matchExpressions.iterator(); - List visitables = _visitables.get("matchExpressions"); + List visitables = this._visitables.get("matchExpressions"); while (each.hasNext()) { V1NodeSelectorRequirementBuilder builder = each.next(); if (predicate.test(builder)) { @@ -385,7 +385,7 @@ public A removeMatchingFromMatchFields(Predicate each = matchFields.iterator(); - List visitables = _visitables.get("matchFields"); + List visitables = this._visitables.get("matchFields"); while (each.hasNext()) { V1NodeSelectorRequirementBuilder builder = each.next(); if (predicate.test(builder)) { @@ -409,12 +409,12 @@ public A setToMatchExpressions(int index,V1NodeSelectorRequirement item) { this.matchExpressions = new ArrayList(); } V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { - _visitables.get("matchExpressions").add(builder); - matchExpressions.add(builder); + if (index < 0 || index >= this.matchExpressions.size()) { + this._visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); } else { - _visitables.get("matchExpressions").add(builder); - matchExpressions.set(index, builder); + this._visitables.get("matchExpressions").add(builder); + this.matchExpressions.set(index, builder); } return (A) this; } @@ -424,12 +424,12 @@ public A setToMatchFields(int index,V1NodeSelectorRequirement item) { this.matchFields = new ArrayList(); } V1NodeSelectorRequirementBuilder builder = new V1NodeSelectorRequirementBuilder(item); - if (index < 0 || index >= matchFields.size()) { - _visitables.get("matchFields").add(builder); - matchFields.add(builder); + if (index < 0 || index >= this.matchFields.size()) { + this._visitables.get("matchFields").add(builder); + this.matchFields.add(builder); } else { - _visitables.get("matchFields").add(builder); - matchFields.set(index, builder); + this._visitables.get("matchFields").add(builder); + this.matchFields.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java index 9ad6d7e78f..272639d8ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java index dd3cf4b2aa..e21d84683d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -65,7 +65,7 @@ public A addAllToTaints(Collection items) { } for (V1Taint item : items) { V1TaintBuilder builder = new V1TaintBuilder(item); - _visitables.get("taints").add(builder); + this._visitables.get("taints").add(builder); this.taints.add(builder); } return (A) this; @@ -103,7 +103,7 @@ public A addToTaints(V1Taint... items) { } for (V1Taint item : items) { V1TaintBuilder builder = new V1TaintBuilder(item); - _visitables.get("taints").add(builder); + this._visitables.get("taints").add(builder); this.taints.add(builder); } return (A) this; @@ -114,12 +114,12 @@ public A addToTaints(int index,V1Taint item) { this.taints = new ArrayList(); } V1TaintBuilder builder = new V1TaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); + if (index < 0 || index >= this.taints.size()) { + this._visitables.get("taints").add(builder); + this.taints.add(builder); } else { - _visitables.get("taints").add(builder); - taints.add(index, builder); + this._visitables.get("taints").add(builder); + this.taints.add(index, builder); } return (A) this; } @@ -389,7 +389,7 @@ public A removeMatchingFromTaints(Predicate predicate) { return (A) this; } Iterator each = taints.iterator(); - List visitables = _visitables.get("taints"); + List visitables = this._visitables.get("taints"); while (each.hasNext()) { V1TaintBuilder builder = each.next(); if (predicate.test(builder)) { @@ -417,12 +417,12 @@ public A setToTaints(int index,V1Taint item) { this.taints = new ArrayList(); } V1TaintBuilder builder = new V1TaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); + if (index < 0 || index >= this.taints.size()) { + this._visitables.get("taints").add(builder); + this.taints.add(builder); } else { - _visitables.get("taints").add(builder); - taints.set(index, builder); + this._visitables.get("taints").add(builder); + this.taints.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java index 0d981ee96b..7fbdfecb89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java index bff8cea959..de1db5025e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -64,7 +64,7 @@ public A addAllToAddresses(Collection items) { } for (V1NodeAddress item : items) { V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - _visitables.get("addresses").add(builder); + this._visitables.get("addresses").add(builder); this.addresses.add(builder); } return (A) this; @@ -76,7 +76,7 @@ public A addAllToConditions(Collection items) { } for (V1NodeCondition item : items) { V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -98,7 +98,7 @@ public A addAllToImages(Collection items) { } for (V1ContainerImage item : items) { V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - _visitables.get("images").add(builder); + this._visitables.get("images").add(builder); this.images.add(builder); } return (A) this; @@ -110,7 +110,7 @@ public A addAllToRuntimeHandlers(Collection items) { } for (V1NodeRuntimeHandler item : items) { V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); - _visitables.get("runtimeHandlers").add(builder); + this._visitables.get("runtimeHandlers").add(builder); this.runtimeHandlers.add(builder); } return (A) this; @@ -122,7 +122,7 @@ public A addAllToVolumesAttached(Collection items) { } for (V1AttachedVolume item : items) { V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - _visitables.get("volumesAttached").add(builder); + this._visitables.get("volumesAttached").add(builder); this.volumesAttached.add(builder); } return (A) this; @@ -184,7 +184,7 @@ public A addToAddresses(V1NodeAddress... items) { } for (V1NodeAddress item : items) { V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - _visitables.get("addresses").add(builder); + this._visitables.get("addresses").add(builder); this.addresses.add(builder); } return (A) this; @@ -195,12 +195,12 @@ public A addToAddresses(int index,V1NodeAddress item) { this.addresses = new ArrayList(); } V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { - _visitables.get("addresses").add(builder); - addresses.add(builder); + if (index < 0 || index >= this.addresses.size()) { + this._visitables.get("addresses").add(builder); + this.addresses.add(builder); } else { - _visitables.get("addresses").add(builder); - addresses.add(index, builder); + this._visitables.get("addresses").add(builder); + this.addresses.add(index, builder); } return (A) this; } @@ -251,7 +251,7 @@ public A addToConditions(V1NodeCondition... items) { } for (V1NodeCondition item : items) { V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -262,12 +262,12 @@ public A addToConditions(int index,V1NodeCondition item) { this.conditions = new ArrayList(); } V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -296,7 +296,7 @@ public A addToImages(V1ContainerImage... items) { } for (V1ContainerImage item : items) { V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - _visitables.get("images").add(builder); + this._visitables.get("images").add(builder); this.images.add(builder); } return (A) this; @@ -307,12 +307,12 @@ public A addToImages(int index,V1ContainerImage item) { this.images = new ArrayList(); } V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - if (index < 0 || index >= images.size()) { - _visitables.get("images").add(builder); - images.add(builder); + if (index < 0 || index >= this.images.size()) { + this._visitables.get("images").add(builder); + this.images.add(builder); } else { - _visitables.get("images").add(builder); - images.add(index, builder); + this._visitables.get("images").add(builder); + this.images.add(index, builder); } return (A) this; } @@ -323,7 +323,7 @@ public A addToRuntimeHandlers(V1NodeRuntimeHandler... items) { } for (V1NodeRuntimeHandler item : items) { V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); - _visitables.get("runtimeHandlers").add(builder); + this._visitables.get("runtimeHandlers").add(builder); this.runtimeHandlers.add(builder); } return (A) this; @@ -334,12 +334,12 @@ public A addToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { this.runtimeHandlers = new ArrayList(); } V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); - if (index < 0 || index >= runtimeHandlers.size()) { - _visitables.get("runtimeHandlers").add(builder); - runtimeHandlers.add(builder); + if (index < 0 || index >= this.runtimeHandlers.size()) { + this._visitables.get("runtimeHandlers").add(builder); + this.runtimeHandlers.add(builder); } else { - _visitables.get("runtimeHandlers").add(builder); - runtimeHandlers.add(index, builder); + this._visitables.get("runtimeHandlers").add(builder); + this.runtimeHandlers.add(index, builder); } return (A) this; } @@ -350,7 +350,7 @@ public A addToVolumesAttached(V1AttachedVolume... items) { } for (V1AttachedVolume item : items) { V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - _visitables.get("volumesAttached").add(builder); + this._visitables.get("volumesAttached").add(builder); this.volumesAttached.add(builder); } return (A) this; @@ -361,12 +361,12 @@ public A addToVolumesAttached(int index,V1AttachedVolume item) { this.volumesAttached = new ArrayList(); } V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - if (index < 0 || index >= volumesAttached.size()) { - _visitables.get("volumesAttached").add(builder); - volumesAttached.add(builder); + if (index < 0 || index >= this.volumesAttached.size()) { + this._visitables.get("volumesAttached").add(builder); + this.volumesAttached.add(builder); } else { - _visitables.get("volumesAttached").add(builder); - volumesAttached.add(index, builder); + this._visitables.get("volumesAttached").add(builder); + this.volumesAttached.add(index, builder); } return (A) this; } @@ -1232,7 +1232,7 @@ public A removeMatchingFromAddresses(Predicate predicate) return (A) this; } Iterator each = addresses.iterator(); - List visitables = _visitables.get("addresses"); + List visitables = this._visitables.get("addresses"); while (each.hasNext()) { V1NodeAddressBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1248,7 +1248,7 @@ public A removeMatchingFromConditions(Predicate predicat return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1NodeConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1264,7 +1264,7 @@ public A removeMatchingFromImages(Predicate predicate) return (A) this; } Iterator each = images.iterator(); - List visitables = _visitables.get("images"); + List visitables = this._visitables.get("images"); while (each.hasNext()) { V1ContainerImageBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1280,7 +1280,7 @@ public A removeMatchingFromRuntimeHandlers(Predicate each = runtimeHandlers.iterator(); - List visitables = _visitables.get("runtimeHandlers"); + List visitables = this._visitables.get("runtimeHandlers"); while (each.hasNext()) { V1NodeRuntimeHandlerBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1296,7 +1296,7 @@ public A removeMatchingFromVolumesAttached(Predicate pr return (A) this; } Iterator each = volumesAttached.iterator(); - List visitables = _visitables.get("volumesAttached"); + List visitables = this._visitables.get("volumesAttached"); while (each.hasNext()) { V1AttachedVolumeBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1332,12 +1332,12 @@ public A setToAddresses(int index,V1NodeAddress item) { this.addresses = new ArrayList(); } V1NodeAddressBuilder builder = new V1NodeAddressBuilder(item); - if (index < 0 || index >= addresses.size()) { - _visitables.get("addresses").add(builder); - addresses.add(builder); + if (index < 0 || index >= this.addresses.size()) { + this._visitables.get("addresses").add(builder); + this.addresses.add(builder); } else { - _visitables.get("addresses").add(builder); - addresses.set(index, builder); + this._visitables.get("addresses").add(builder); + this.addresses.set(index, builder); } return (A) this; } @@ -1347,12 +1347,12 @@ public A setToConditions(int index,V1NodeCondition item) { this.conditions = new ArrayList(); } V1NodeConditionBuilder builder = new V1NodeConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } @@ -1370,12 +1370,12 @@ public A setToImages(int index,V1ContainerImage item) { this.images = new ArrayList(); } V1ContainerImageBuilder builder = new V1ContainerImageBuilder(item); - if (index < 0 || index >= images.size()) { - _visitables.get("images").add(builder); - images.add(builder); + if (index < 0 || index >= this.images.size()) { + this._visitables.get("images").add(builder); + this.images.add(builder); } else { - _visitables.get("images").add(builder); - images.set(index, builder); + this._visitables.get("images").add(builder); + this.images.set(index, builder); } return (A) this; } @@ -1385,12 +1385,12 @@ public A setToRuntimeHandlers(int index,V1NodeRuntimeHandler item) { this.runtimeHandlers = new ArrayList(); } V1NodeRuntimeHandlerBuilder builder = new V1NodeRuntimeHandlerBuilder(item); - if (index < 0 || index >= runtimeHandlers.size()) { - _visitables.get("runtimeHandlers").add(builder); - runtimeHandlers.add(builder); + if (index < 0 || index >= this.runtimeHandlers.size()) { + this._visitables.get("runtimeHandlers").add(builder); + this.runtimeHandlers.add(builder); } else { - _visitables.get("runtimeHandlers").add(builder); - runtimeHandlers.set(index, builder); + this._visitables.get("runtimeHandlers").add(builder); + this.runtimeHandlers.set(index, builder); } return (A) this; } @@ -1400,12 +1400,12 @@ public A setToVolumesAttached(int index,V1AttachedVolume item) { this.volumesAttached = new ArrayList(); } V1AttachedVolumeBuilder builder = new V1AttachedVolumeBuilder(item); - if (index < 0 || index >= volumesAttached.size()) { - _visitables.get("volumesAttached").add(builder); - volumesAttached.add(builder); + if (index < 0 || index >= this.volumesAttached.size()) { + this._visitables.get("volumesAttached").add(builder); + this.volumesAttached.add(builder); } else { - _visitables.get("volumesAttached").add(builder); - volumesAttached.set(index, builder); + this._visitables.get("volumesAttached").add(builder); + this.volumesAttached.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java index 994b9620f8..4bfbdbcc3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java index 6eb7adfbd7..a3976e1288 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java index 1abe913491..5a5007c3e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java index 743dd288f2..d5c7b040da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfoFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java index b275007c3f..5ff7641a31 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java index c23407b5f9..24c091b83b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java index 5e8fa99d14..75eb444818 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java index 2dab831199..400d8c4ea0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRuleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java index 9d671fa9e0..9ca638f21f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java index a750deec2e..0eef2c59e1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRuleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java index cd88f549f3..0ff72bd308 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java index a9cf94bea2..b47e370544 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelectorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java index 154ea5b14a..a031b2c42d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java index 394412196c..ab58ea7279 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMetaFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -75,7 +75,7 @@ public A addAllToManagedFields(Collection items) { } for (V1ManagedFieldsEntry item : items) { V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - _visitables.get("managedFields").add(builder); + this._visitables.get("managedFields").add(builder); this.managedFields.add(builder); } return (A) this; @@ -87,7 +87,7 @@ public A addAllToOwnerReferences(Collection items) { } for (V1OwnerReference item : items) { V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - _visitables.get("ownerReferences").add(builder); + this._visitables.get("ownerReferences").add(builder); this.ownerReferences.add(builder); } return (A) this; @@ -173,7 +173,7 @@ public A addToManagedFields(V1ManagedFieldsEntry... items) { } for (V1ManagedFieldsEntry item : items) { V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - _visitables.get("managedFields").add(builder); + this._visitables.get("managedFields").add(builder); this.managedFields.add(builder); } return (A) this; @@ -184,12 +184,12 @@ public A addToManagedFields(int index,V1ManagedFieldsEntry item) { this.managedFields = new ArrayList(); } V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - if (index < 0 || index >= managedFields.size()) { - _visitables.get("managedFields").add(builder); - managedFields.add(builder); + if (index < 0 || index >= this.managedFields.size()) { + this._visitables.get("managedFields").add(builder); + this.managedFields.add(builder); } else { - _visitables.get("managedFields").add(builder); - managedFields.add(index, builder); + this._visitables.get("managedFields").add(builder); + this.managedFields.add(index, builder); } return (A) this; } @@ -200,7 +200,7 @@ public A addToOwnerReferences(V1OwnerReference... items) { } for (V1OwnerReference item : items) { V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - _visitables.get("ownerReferences").add(builder); + this._visitables.get("ownerReferences").add(builder); this.ownerReferences.add(builder); } return (A) this; @@ -211,12 +211,12 @@ public A addToOwnerReferences(int index,V1OwnerReference item) { this.ownerReferences = new ArrayList(); } V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - if (index < 0 || index >= ownerReferences.size()) { - _visitables.get("ownerReferences").add(builder); - ownerReferences.add(builder); + if (index < 0 || index >= this.ownerReferences.size()) { + this._visitables.get("ownerReferences").add(builder); + this.ownerReferences.add(builder); } else { - _visitables.get("ownerReferences").add(builder); - ownerReferences.add(index, builder); + this._visitables.get("ownerReferences").add(builder); + this.ownerReferences.add(index, builder); } return (A) this; } @@ -708,7 +708,7 @@ public A removeMatchingFromManagedFields(Predicate return (A) this; } Iterator each = managedFields.iterator(); - List visitables = _visitables.get("managedFields"); + List visitables = this._visitables.get("managedFields"); while (each.hasNext()) { V1ManagedFieldsEntryBuilder builder = each.next(); if (predicate.test(builder)) { @@ -724,7 +724,7 @@ public A removeMatchingFromOwnerReferences(Predicate pr return (A) this; } Iterator each = ownerReferences.iterator(); - List visitables = _visitables.get("ownerReferences"); + List visitables = this._visitables.get("ownerReferences"); while (each.hasNext()) { V1OwnerReferenceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -756,12 +756,12 @@ public A setToManagedFields(int index,V1ManagedFieldsEntry item) { this.managedFields = new ArrayList(); } V1ManagedFieldsEntryBuilder builder = new V1ManagedFieldsEntryBuilder(item); - if (index < 0 || index >= managedFields.size()) { - _visitables.get("managedFields").add(builder); - managedFields.add(builder); + if (index < 0 || index >= this.managedFields.size()) { + this._visitables.get("managedFields").add(builder); + this.managedFields.add(builder); } else { - _visitables.get("managedFields").add(builder); - managedFields.set(index, builder); + this._visitables.get("managedFields").add(builder); + this.managedFields.set(index, builder); } return (A) this; } @@ -771,12 +771,12 @@ public A setToOwnerReferences(int index,V1OwnerReference item) { this.ownerReferences = new ArrayList(); } V1OwnerReferenceBuilder builder = new V1OwnerReferenceBuilder(item); - if (index < 0 || index >= ownerReferences.size()) { - _visitables.get("ownerReferences").add(builder); - ownerReferences.add(builder); + if (index < 0 || index >= this.ownerReferences.size()) { + this._visitables.get("ownerReferences").add(builder); + this.ownerReferences.add(builder); } else { - _visitables.get("ownerReferences").add(builder); - ownerReferences.set(index, builder); + this._visitables.get("ownerReferences").add(builder); + this.ownerReferences.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java index 99ecd342ca..95066d2e74 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java index 1831494ee1..7a1494574b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java index 2352e365b4..c8e99e1fbe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java index ea7089f878..f9e3524dca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java index f37ae3a9f2..b0ba3e4b05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java index bbdb94d559..e6c957bf70 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OverheadFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java index 68af526261..0158b28d15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java index cb4e404989..c8d52fc707 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java index 9a4a92dbde..05cd58ec55 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java index 23776cf399..48921eb2cb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamKindFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java index 9a40ad95aa..e1b4e71007 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java index 21ddb2480c..fbafc20fe1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParamRefFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java index 59598e0d79..32b63e52ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java index d73c9065de..95c1afd93e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ParentReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java index f90b0c0bd7..65e5494aff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java index b7206b2290..7392df62af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java index 16a973fd7b..6395bce459 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java index d9e4ecb93c..5799dc5d59 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java index 75822ba913..6ba5e63889 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java index 52e4793f0c..5f0e17852d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java index 93d5135fc8..d072189837 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1PersistentVolumeClaim item : items) { V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1PersistentVolumeClaim... items) { } for (V1PersistentVolumeClaim item : items) { V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1PersistentVolumeClaim item) { this.items = new ArrayList(); } V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1PersistentVolumeClaimBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1PersistentVolumeClaim item) { this.items = new ArrayList(); } V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java index 5fd2df50f2..7ab18de0db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java index 3d87c9ad98..2957667144 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java index d91054f6e9..6734398be4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java index b1b52f8654..427c292b48 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -68,7 +68,7 @@ public A addAllToConditions(Collection items) } for (V1PersistentVolumeClaimCondition item : items) { V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -166,7 +166,7 @@ public A addToConditions(V1PersistentVolumeClaimCondition... items) { } for (V1PersistentVolumeClaimCondition item : items) { V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -177,12 +177,12 @@ public A addToConditions(int index,V1PersistentVolumeClaimCondition item) { this.conditions = new ArrayList(); } V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -536,7 +536,7 @@ public A removeMatchingFromConditions(Predicate each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1PersistentVolumeClaimConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -564,12 +564,12 @@ public A setToConditions(int index,V1PersistentVolumeClaimCondition item) { this.conditions = new ArrayList(); } V1PersistentVolumeClaimConditionBuilder builder = new V1PersistentVolumeClaimConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java index d5ec5a7de5..12f0ae9a26 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java index 6bc389cfa0..3c798bf661 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplateFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java index 1d2341f91a..4efde3ec02 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java index 321e837ad2..5ef171e929 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java index 1d3591d388..ffd3d09537 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java index e9502ee8ad..792789efc9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java index b225996f65..aa02cca0de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1PersistentVolume item : items) { V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1PersistentVolume... items) { } for (V1PersistentVolume item : items) { V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1PersistentVolume item) { this.items = new ArrayList(); } V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1PersistentVolumeBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1PersistentVolume item) { this.items = new ArrayList(); } V1PersistentVolumeBuilder builder = new V1PersistentVolumeBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java index 8bd9a50b3d..2d68cf3476 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java index c116105dc3..f3faaf3755 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java index 887ac579ac..5474d2f901 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java index c2fcb13a34..930c924711 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java index 7f066c1d0d..23a1bf74fd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java index ca06315603..11784773ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java index b0492ae60b..82327a3b89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java index c5a12ad136..38f9383d26 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,7 +48,7 @@ public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection= preferredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(builder); + if (index < 0 || index >= this.preferredDuringSchedulingIgnoredDuringExecution.size()) { + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); } return (A) this; } @@ -115,7 +115,7 @@ public A addToRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm.. } for (V1PodAffinityTerm item : items) { V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); } return (A) this; @@ -126,12 +126,12 @@ public A addToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffi this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.add(builder); + if (index < 0 || index >= this.requiredDuringSchedulingIgnoredDuringExecution.size()) { + this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); } else { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); + this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); } return (A) this; } @@ -369,7 +369,7 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predi return (A) this; } Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); - List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); + List visitables = this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { V1WeightedPodAffinityTermBuilder builder = each.next(); if (predicate.test(builder)) { @@ -385,7 +385,7 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predic return (A) this; } Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); - List visitables = _visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); + List visitables = this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { V1PodAffinityTermBuilder builder = each.next(); if (predicate.test(builder)) { @@ -409,12 +409,12 @@ public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1Weight this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(builder); + if (index < 0 || index >= this.preferredDuringSchedulingIgnoredDuringExecution.size()) { + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); } return (A) this; } @@ -424,12 +424,12 @@ public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffi this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.add(builder); + if (index < 0 || index >= this.requiredDuringSchedulingIgnoredDuringExecution.size()) { + this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); } else { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); + this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java index 6ee54eadff..09bcce5e1d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java index d6bb86bafc..b3b1fe528b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTermFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java index 3f3a15ad5b..dd406b01d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java index 89efc52199..cd05f8f22f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinityFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,7 +48,7 @@ public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(Collection= preferredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(builder); + if (index < 0 || index >= this.preferredDuringSchedulingIgnoredDuringExecution.size()) { + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(index, builder); } return (A) this; } @@ -115,7 +115,7 @@ public A addToRequiredDuringSchedulingIgnoredDuringExecution(V1PodAffinityTerm.. } for (V1PodAffinityTerm item : items) { V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); } return (A) this; @@ -126,12 +126,12 @@ public A addToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffi this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.add(builder); + if (index < 0 || index >= this.requiredDuringSchedulingIgnoredDuringExecution.size()) { + this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); } else { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); + this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(index, builder); } return (A) this; } @@ -369,7 +369,7 @@ public A removeMatchingFromPreferredDuringSchedulingIgnoredDuringExecution(Predi return (A) this; } Iterator each = preferredDuringSchedulingIgnoredDuringExecution.iterator(); - List visitables = _visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); + List visitables = this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { V1WeightedPodAffinityTermBuilder builder = each.next(); if (predicate.test(builder)) { @@ -385,7 +385,7 @@ public A removeMatchingFromRequiredDuringSchedulingIgnoredDuringExecution(Predic return (A) this; } Iterator each = requiredDuringSchedulingIgnoredDuringExecution.iterator(); - List visitables = _visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); + List visitables = this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution"); while (each.hasNext()) { V1PodAffinityTermBuilder builder = each.next(); if (predicate.test(builder)) { @@ -409,12 +409,12 @@ public A setToPreferredDuringSchedulingIgnoredDuringExecution(int index,V1Weight this.preferredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } V1WeightedPodAffinityTermBuilder builder = new V1WeightedPodAffinityTermBuilder(item); - if (index < 0 || index >= preferredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.add(builder); + if (index < 0 || index >= this.preferredDuringSchedulingIgnoredDuringExecution.size()) { + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.add(builder); } else { - _visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); - preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); + this._visitables.get("preferredDuringSchedulingIgnoredDuringExecution").add(builder); + this.preferredDuringSchedulingIgnoredDuringExecution.set(index, builder); } return (A) this; } @@ -424,12 +424,12 @@ public A setToRequiredDuringSchedulingIgnoredDuringExecution(int index,V1PodAffi this.requiredDuringSchedulingIgnoredDuringExecution = new ArrayList(); } V1PodAffinityTermBuilder builder = new V1PodAffinityTermBuilder(item); - if (index < 0 || index >= requiredDuringSchedulingIgnoredDuringExecution.size()) { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.add(builder); + if (index < 0 || index >= this.requiredDuringSchedulingIgnoredDuringExecution.size()) { + this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.add(builder); } else { - _visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); - requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); + this._visitables.get("requiredDuringSchedulingIgnoredDuringExecution").add(builder); + this.requiredDuringSchedulingIgnoredDuringExecution.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java index b33201ed95..a4569dcfe8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java index df2e3a7c28..9c0693f1c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java index da5c7d33fd..1129f71be4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjectionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java index cdc53c80d0..53ca2fc35b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java index 672ba34f84..30bf759d17 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java index 7a13df7e8f..8afc57673b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java index 9beae3bd38..d5617f5346 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -59,7 +59,7 @@ public A addAllToOptions(Collection items) { } for (V1PodDNSConfigOption item : items) { V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - _visitables.get("options").add(builder); + this._visitables.get("options").add(builder); this.options.add(builder); } return (A) this; @@ -107,7 +107,7 @@ public A addToOptions(V1PodDNSConfigOption... items) { } for (V1PodDNSConfigOption item : items) { V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - _visitables.get("options").add(builder); + this._visitables.get("options").add(builder); this.options.add(builder); } return (A) this; @@ -118,12 +118,12 @@ public A addToOptions(int index,V1PodDNSConfigOption item) { this.options = new ArrayList(); } V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - if (index < 0 || index >= options.size()) { - _visitables.get("options").add(builder); - options.add(builder); + if (index < 0 || index >= this.options.size()) { + this._visitables.get("options").add(builder); + this.options.add(builder); } else { - _visitables.get("options").add(builder); - options.add(index, builder); + this._visitables.get("options").add(builder); + this.options.add(index, builder); } return (A) this; } @@ -401,7 +401,7 @@ public A removeMatchingFromOptions(Predicate predic return (A) this; } Iterator each = options.iterator(); - List visitables = _visitables.get("options"); + List visitables = this._visitables.get("options"); while (each.hasNext()) { V1PodDNSConfigOptionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -429,12 +429,12 @@ public A setToOptions(int index,V1PodDNSConfigOption item) { this.options = new ArrayList(); } V1PodDNSConfigOptionBuilder builder = new V1PodDNSConfigOptionBuilder(item); - if (index < 0 || index >= options.size()) { - _visitables.get("options").add(builder); - options.add(builder); + if (index < 0 || index >= this.options.size()) { + this._visitables.get("options").add(builder); + this.options.add(builder); } else { - _visitables.get("options").add(builder); - options.set(index, builder); + this._visitables.get("options").add(builder); + this.options.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java index 822e8538f7..83703518d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java index 9ccc14ec5a..0fc2dc8eef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOptionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java index c0350a7397..971df80810 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java index 4573287c6b..0df0e21131 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java index 2f9c7a7278..8f48bed152 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java index 23e09717be..34fbe5993c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1PodDisruptionBudget item : items) { V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1PodDisruptionBudget... items) { } for (V1PodDisruptionBudget item : items) { V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1PodDisruptionBudget item) { this.items = new ArrayList(); } V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predica return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1PodDisruptionBudgetBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1PodDisruptionBudget item) { this.items = new ArrayList(); } V1PodDisruptionBudgetBuilder builder = new V1PodDisruptionBudgetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java index e76c6aff9f..d06b3ebeb7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java index ef202436f1..c7492f85de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java index 64139607d9..337b303dd2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java index d107dbf52a..bf07dd3cb3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -58,7 +58,7 @@ public A addAllToConditions(Collection items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -78,7 +78,7 @@ public A addToConditions(V1Condition... items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -89,12 +89,12 @@ public A addToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -346,7 +346,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -366,12 +366,12 @@ public A setToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusBuilder.java index 9bf031b8ab..895eaeeca4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java index 74a367f2d5..7c19af9c3d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,7 +48,7 @@ public A addAllToRequestMappings(Collection } for (V1ContainerExtendedResourceRequest item : items) { V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); - _visitables.get("requestMappings").add(builder); + this._visitables.get("requestMappings").add(builder); this.requestMappings.add(builder); } return (A) this; @@ -68,7 +68,7 @@ public A addToRequestMappings(V1ContainerExtendedResourceRequest... items) { } for (V1ContainerExtendedResourceRequest item : items) { V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); - _visitables.get("requestMappings").add(builder); + this._visitables.get("requestMappings").add(builder); this.requestMappings.add(builder); } return (A) this; @@ -79,12 +79,12 @@ public A addToRequestMappings(int index,V1ContainerExtendedResourceRequest item) this.requestMappings = new ArrayList(); } V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); - if (index < 0 || index >= requestMappings.size()) { - _visitables.get("requestMappings").add(builder); - requestMappings.add(builder); + if (index < 0 || index >= this.requestMappings.size()) { + this._visitables.get("requestMappings").add(builder); + this.requestMappings.add(builder); } else { - _visitables.get("requestMappings").add(builder); - requestMappings.add(index, builder); + this._visitables.get("requestMappings").add(builder); + this.requestMappings.add(index, builder); } return (A) this; } @@ -232,7 +232,7 @@ public A removeMatchingFromRequestMappings(Predicate each = requestMappings.iterator(); - List visitables = _visitables.get("requestMappings"); + List visitables = this._visitables.get("requestMappings"); while (each.hasNext()) { V1ContainerExtendedResourceRequestBuilder builder = each.next(); if (predicate.test(builder)) { @@ -252,12 +252,12 @@ public A setToRequestMappings(int index,V1ContainerExtendedResourceRequest item) this.requestMappings = new ArrayList(); } V1ContainerExtendedResourceRequestBuilder builder = new V1ContainerExtendedResourceRequestBuilder(item); - if (index < 0 || index >= requestMappings.size()) { - _visitables.get("requestMappings").add(builder); - requestMappings.add(builder); + if (index < 0 || index >= this.requestMappings.size()) { + this._visitables.get("requestMappings").add(builder); + this.requestMappings.add(builder); } else { - _visitables.get("requestMappings").add(builder); - requestMappings.set(index, builder); + this._visitables.get("requestMappings").add(builder); + this.requestMappings.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java index b687dd6998..ef068563c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java index be6be22c2e..71bd655ab7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToRules(Collection items) { } for (V1PodFailurePolicyRule item : items) { V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToRules(V1PodFailurePolicyRule... items) { } for (V1PodFailurePolicyRule item : items) { V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToRules(int index,V1PodFailurePolicyRule item) { this.rules = new ArrayList(); } V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.add(index, builder); + this._visitables.get("rules").add(builder); + this.rules.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromRules(Predicate predic return (A) this; } Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); + List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1PodFailurePolicyRuleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToRules(int index,V1PodFailurePolicyRule item) { this.rules = new ArrayList(); } V1PodFailurePolicyRuleBuilder builder = new V1PodFailurePolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.set(index, builder); + this._visitables.get("rules").add(builder); + this.rules.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java index 0a5ed20673..5ae7619e50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java index e41240cbc5..0a4758f47e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirementFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java index 19eb34f4b4..ef8e77601c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java index 9dca2fb4dd..b80e11811e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPatternFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java index 1777662248..8494cf6175 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java index 97278c49c1..06b5d5994e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRuleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -50,7 +50,7 @@ public A addAllToOnPodConditions(Collection= onPodConditions.size()) { - _visitables.get("onPodConditions").add(builder); - onPodConditions.add(builder); + if (index < 0 || index >= this.onPodConditions.size()) { + this._visitables.get("onPodConditions").add(builder); + this.onPodConditions.add(builder); } else { - _visitables.get("onPodConditions").add(builder); - onPodConditions.add(index, builder); + this._visitables.get("onPodConditions").add(builder); + this.onPodConditions.add(index, builder); } return (A) this; } @@ -258,7 +258,7 @@ public A removeMatchingFromOnPodConditions(Predicate each = onPodConditions.iterator(); - List visitables = _visitables.get("onPodConditions"); + List visitables = this._visitables.get("onPodConditions"); while (each.hasNext()) { V1PodFailurePolicyOnPodConditionsPatternBuilder builder = each.next(); if (predicate.test(builder)) { @@ -278,12 +278,12 @@ public A setToOnPodConditions(int index,V1PodFailurePolicyOnPodConditionsPattern this.onPodConditions = new ArrayList(); } V1PodFailurePolicyOnPodConditionsPatternBuilder builder = new V1PodFailurePolicyOnPodConditionsPatternBuilder(item); - if (index < 0 || index >= onPodConditions.size()) { - _visitables.get("onPodConditions").add(builder); - onPodConditions.add(builder); + if (index < 0 || index >= this.onPodConditions.size()) { + this._visitables.get("onPodConditions").add(builder); + this.onPodConditions.add(builder); } else { - _visitables.get("onPodConditions").add(builder); - onPodConditions.set(index, builder); + this._visitables.get("onPodConditions").add(builder); + this.onPodConditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java index d0dbf77737..cb81362d5c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java index c0e2b32bf4..5f2439df8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java index 0c85ad6b7f..ac6e8b7d39 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodIPFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java index 656b5e9c13..dae5333cc9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java index 6b35e9113b..f9f73614a0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1Pod item : items) { V1PodBuilder builder = new V1PodBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1Pod... items) { } for (V1Pod item : items) { V1PodBuilder builder = new V1PodBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1Pod item) { this.items = new ArrayList(); } V1PodBuilder builder = new V1PodBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1PodBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1Pod item) { this.items = new ArrayList(); } V1PodBuilder builder = new V1PodBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java index 017a715ef3..a9256ee55f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java index d47b09d6dc..ddabc8f3ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodOSFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java index 4ceae0b1ef..22b111e521 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java index 9878424afb..e4081a1ea2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGateFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java index 890a1a8384..3793ace1da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java index c999f0018c..9b3fa3cd3f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java index 401391fb03..dacb641566 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java index c9c1f219ec..c13472aabd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java index c8a8b7d029..09f3fba197 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java index 1972d397c6..fa602d6ac3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGateFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroupBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroupBuilder.java new file mode 100644 index 0000000000..f57d326db5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroupBuilder.java @@ -0,0 +1,45 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1PodSchedulingGroupBuilder extends V1PodSchedulingGroupFluent implements VisitableBuilder{ + + V1PodSchedulingGroupFluent fluent; + + public V1PodSchedulingGroupBuilder() { + this(new V1PodSchedulingGroup()); + } + + public V1PodSchedulingGroupBuilder(V1PodSchedulingGroupFluent fluent) { + this(fluent, new V1PodSchedulingGroup()); + } + + public V1PodSchedulingGroupBuilder(V1PodSchedulingGroup instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1PodSchedulingGroupBuilder(V1PodSchedulingGroupFluent fluent,V1PodSchedulingGroup instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1PodSchedulingGroup build() { + V1PodSchedulingGroup buildable = new V1PodSchedulingGroup(); + buildable.setPodGroupName(fluent.getPodGroupName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroupFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroupFluent.java new file mode 100644 index 0000000000..0312cedaca --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroupFluent.java @@ -0,0 +1,89 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1PodSchedulingGroupFluent> extends BaseFluent{ + + private String podGroupName; + + public V1PodSchedulingGroupFluent() { + } + + public V1PodSchedulingGroupFluent(V1PodSchedulingGroup instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1PodSchedulingGroup instance) { + instance = instance != null ? instance : new V1PodSchedulingGroup(); + if (instance != null) { + this.withPodGroupName(instance.getPodGroupName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1PodSchedulingGroupFluent that = (V1PodSchedulingGroupFluent) o; + if (!(Objects.equals(podGroupName, that.podGroupName))) { + return false; + } + return true; + } + + public String getPodGroupName() { + return this.podGroupName; + } + + public boolean hasPodGroupName() { + return this.podGroupName != null; + } + + public int hashCode() { + return Objects.hash(podGroupName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(podGroupName == null)) { + sb.append("podGroupName:"); + sb.append(podGroupName); + } + sb.append("}"); + return sb.toString(); + } + + public A withPodGroupName(String podGroupName) { + this.podGroupName = podGroupName; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java index 485f8dda0c..5002a5d13e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java index cb9f534116..e0123804eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContextFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -72,7 +72,7 @@ public A addAllToSysctls(Collection items) { } for (V1Sysctl item : items) { V1SysctlBuilder builder = new V1SysctlBuilder(item); - _visitables.get("sysctls").add(builder); + this._visitables.get("sysctls").add(builder); this.sysctls.add(builder); } return (A) this; @@ -110,7 +110,7 @@ public A addToSysctls(V1Sysctl... items) { } for (V1Sysctl item : items) { V1SysctlBuilder builder = new V1SysctlBuilder(item); - _visitables.get("sysctls").add(builder); + this._visitables.get("sysctls").add(builder); this.sysctls.add(builder); } return (A) this; @@ -121,12 +121,12 @@ public A addToSysctls(int index,V1Sysctl item) { this.sysctls = new ArrayList(); } V1SysctlBuilder builder = new V1SysctlBuilder(item); - if (index < 0 || index >= sysctls.size()) { - _visitables.get("sysctls").add(builder); - sysctls.add(builder); + if (index < 0 || index >= this.sysctls.size()) { + this._visitables.get("sysctls").add(builder); + this.sysctls.add(builder); } else { - _visitables.get("sysctls").add(builder); - sysctls.add(index, builder); + this._visitables.get("sysctls").add(builder); + this.sysctls.add(index, builder); } return (A) this; } @@ -504,7 +504,7 @@ public A removeMatchingFromSysctls(Predicate predicate) { return (A) this; } Iterator each = sysctls.iterator(); - List visitables = _visitables.get("sysctls"); + List visitables = this._visitables.get("sysctls"); while (each.hasNext()) { V1SysctlBuilder builder = each.next(); if (predicate.test(builder)) { @@ -532,12 +532,12 @@ public A setToSysctls(int index,V1Sysctl item) { this.sysctls = new ArrayList(); } V1SysctlBuilder builder = new V1SysctlBuilder(item); - if (index < 0 || index >= sysctls.size()) { - _visitables.get("sysctls").add(builder); - sysctls.add(builder); + if (index < 0 || index >= this.sysctls.size()) { + this._visitables.get("sysctls").add(builder); + this.sysctls.add(builder); } else { - _visitables.get("sysctls").add(builder); - sysctls.set(index, builder); + this._visitables.get("sysctls").add(builder); + this.sysctls.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java index a2a4fa7900..938177bbaa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -69,6 +69,7 @@ public V1PodSpec build() { buildable.setRuntimeClassName(fluent.getRuntimeClassName()); buildable.setSchedulerName(fluent.getSchedulerName()); buildable.setSchedulingGates(fluent.buildSchedulingGates()); + buildable.setSchedulingGroup(fluent.buildSchedulingGroup()); buildable.setSecurityContext(fluent.buildSecurityContext()); buildable.setServiceAccount(fluent.getServiceAccount()); buildable.setServiceAccountName(fluent.getServiceAccountName()); @@ -79,7 +80,6 @@ public V1PodSpec build() { buildable.setTolerations(fluent.buildTolerations()); buildable.setTopologySpreadConstraints(fluent.buildTopologySpreadConstraints()); buildable.setVolumes(fluent.buildVolumes()); - buildable.setWorkloadRef(fluent.buildWorkloadRef()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java index ff3ba5ed13..067ef9b0a3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -70,6 +70,7 @@ public class V1PodSpecFluent schedulingGates; + private V1PodSchedulingGroupBuilder schedulingGroup; private V1PodSecurityContextBuilder securityContext; private String serviceAccount; private String serviceAccountName; @@ -80,7 +81,6 @@ public class V1PodSpecFluent tolerations; private ArrayList topologySpreadConstraints; private ArrayList volumes; - private V1WorkloadReferenceBuilder workloadRef; public V1PodSpecFluent() { } @@ -95,7 +95,7 @@ public A addAllToContainers(Collection items) { } for (V1Container item : items) { V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("containers").add(builder); + this._visitables.get("containers").add(builder); this.containers.add(builder); } return (A) this; @@ -107,7 +107,7 @@ public A addAllToEphemeralContainers(Collection items) { } for (V1EphemeralContainer item : items) { V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - _visitables.get("ephemeralContainers").add(builder); + this._visitables.get("ephemeralContainers").add(builder); this.ephemeralContainers.add(builder); } return (A) this; @@ -119,7 +119,7 @@ public A addAllToHostAliases(Collection items) { } for (V1HostAlias item : items) { V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - _visitables.get("hostAliases").add(builder); + this._visitables.get("hostAliases").add(builder); this.hostAliases.add(builder); } return (A) this; @@ -131,7 +131,7 @@ public A addAllToImagePullSecrets(Collection items) { } for (V1LocalObjectReference item : items) { V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").add(builder); + this._visitables.get("imagePullSecrets").add(builder); this.imagePullSecrets.add(builder); } return (A) this; @@ -143,7 +143,7 @@ public A addAllToInitContainers(Collection items) { } for (V1Container item : items) { V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("initContainers").add(builder); + this._visitables.get("initContainers").add(builder); this.initContainers.add(builder); } return (A) this; @@ -155,7 +155,7 @@ public A addAllToReadinessGates(Collection items) { } for (V1PodReadinessGate item : items) { V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - _visitables.get("readinessGates").add(builder); + this._visitables.get("readinessGates").add(builder); this.readinessGates.add(builder); } return (A) this; @@ -167,7 +167,7 @@ public A addAllToResourceClaims(Collection items) { } for (V1PodResourceClaim item : items) { V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); - _visitables.get("resourceClaims").add(builder); + this._visitables.get("resourceClaims").add(builder); this.resourceClaims.add(builder); } return (A) this; @@ -179,7 +179,7 @@ public A addAllToSchedulingGates(Collection items) { } for (V1PodSchedulingGate item : items) { V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); - _visitables.get("schedulingGates").add(builder); + this._visitables.get("schedulingGates").add(builder); this.schedulingGates.add(builder); } return (A) this; @@ -191,7 +191,7 @@ public A addAllToTolerations(Collection items) { } for (V1Toleration item : items) { V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -203,7 +203,7 @@ public A addAllToTopologySpreadConstraints(Collection items) { } for (V1Volume item : items) { V1VolumeBuilder builder = new V1VolumeBuilder(item); - _visitables.get("volumes").add(builder); + this._visitables.get("volumes").add(builder); this.volumes.add(builder); } return (A) this; @@ -315,7 +315,7 @@ public A addToContainers(V1Container... items) { } for (V1Container item : items) { V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("containers").add(builder); + this._visitables.get("containers").add(builder); this.containers.add(builder); } return (A) this; @@ -326,12 +326,12 @@ public A addToContainers(int index,V1Container item) { this.containers = new ArrayList(); } V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= containers.size()) { - _visitables.get("containers").add(builder); - containers.add(builder); + if (index < 0 || index >= this.containers.size()) { + this._visitables.get("containers").add(builder); + this.containers.add(builder); } else { - _visitables.get("containers").add(builder); - containers.add(index, builder); + this._visitables.get("containers").add(builder); + this.containers.add(index, builder); } return (A) this; } @@ -342,7 +342,7 @@ public A addToEphemeralContainers(V1EphemeralContainer... items) { } for (V1EphemeralContainer item : items) { V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - _visitables.get("ephemeralContainers").add(builder); + this._visitables.get("ephemeralContainers").add(builder); this.ephemeralContainers.add(builder); } return (A) this; @@ -353,12 +353,12 @@ public A addToEphemeralContainers(int index,V1EphemeralContainer item) { this.ephemeralContainers = new ArrayList(); } V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - if (index < 0 || index >= ephemeralContainers.size()) { - _visitables.get("ephemeralContainers").add(builder); - ephemeralContainers.add(builder); + if (index < 0 || index >= this.ephemeralContainers.size()) { + this._visitables.get("ephemeralContainers").add(builder); + this.ephemeralContainers.add(builder); } else { - _visitables.get("ephemeralContainers").add(builder); - ephemeralContainers.add(index, builder); + this._visitables.get("ephemeralContainers").add(builder); + this.ephemeralContainers.add(index, builder); } return (A) this; } @@ -369,7 +369,7 @@ public A addToHostAliases(V1HostAlias... items) { } for (V1HostAlias item : items) { V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - _visitables.get("hostAliases").add(builder); + this._visitables.get("hostAliases").add(builder); this.hostAliases.add(builder); } return (A) this; @@ -380,12 +380,12 @@ public A addToHostAliases(int index,V1HostAlias item) { this.hostAliases = new ArrayList(); } V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - if (index < 0 || index >= hostAliases.size()) { - _visitables.get("hostAliases").add(builder); - hostAliases.add(builder); + if (index < 0 || index >= this.hostAliases.size()) { + this._visitables.get("hostAliases").add(builder); + this.hostAliases.add(builder); } else { - _visitables.get("hostAliases").add(builder); - hostAliases.add(index, builder); + this._visitables.get("hostAliases").add(builder); + this.hostAliases.add(index, builder); } return (A) this; } @@ -396,7 +396,7 @@ public A addToImagePullSecrets(V1LocalObjectReference... items) { } for (V1LocalObjectReference item : items) { V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").add(builder); + this._visitables.get("imagePullSecrets").add(builder); this.imagePullSecrets.add(builder); } return (A) this; @@ -407,12 +407,12 @@ public A addToImagePullSecrets(int index,V1LocalObjectReference item) { this.imagePullSecrets = new ArrayList(); } V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { - _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.add(builder); + if (index < 0 || index >= this.imagePullSecrets.size()) { + this._visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(builder); } else { - _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.add(index, builder); + this._visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(index, builder); } return (A) this; } @@ -423,7 +423,7 @@ public A addToInitContainers(V1Container... items) { } for (V1Container item : items) { V1ContainerBuilder builder = new V1ContainerBuilder(item); - _visitables.get("initContainers").add(builder); + this._visitables.get("initContainers").add(builder); this.initContainers.add(builder); } return (A) this; @@ -434,12 +434,12 @@ public A addToInitContainers(int index,V1Container item) { this.initContainers = new ArrayList(); } V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= initContainers.size()) { - _visitables.get("initContainers").add(builder); - initContainers.add(builder); + if (index < 0 || index >= this.initContainers.size()) { + this._visitables.get("initContainers").add(builder); + this.initContainers.add(builder); } else { - _visitables.get("initContainers").add(builder); - initContainers.add(index, builder); + this._visitables.get("initContainers").add(builder); + this.initContainers.add(index, builder); } return (A) this; } @@ -490,7 +490,7 @@ public A addToReadinessGates(V1PodReadinessGate... items) { } for (V1PodReadinessGate item : items) { V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - _visitables.get("readinessGates").add(builder); + this._visitables.get("readinessGates").add(builder); this.readinessGates.add(builder); } return (A) this; @@ -501,12 +501,12 @@ public A addToReadinessGates(int index,V1PodReadinessGate item) { this.readinessGates = new ArrayList(); } V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - if (index < 0 || index >= readinessGates.size()) { - _visitables.get("readinessGates").add(builder); - readinessGates.add(builder); + if (index < 0 || index >= this.readinessGates.size()) { + this._visitables.get("readinessGates").add(builder); + this.readinessGates.add(builder); } else { - _visitables.get("readinessGates").add(builder); - readinessGates.add(index, builder); + this._visitables.get("readinessGates").add(builder); + this.readinessGates.add(index, builder); } return (A) this; } @@ -517,7 +517,7 @@ public A addToResourceClaims(V1PodResourceClaim... items) { } for (V1PodResourceClaim item : items) { V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); - _visitables.get("resourceClaims").add(builder); + this._visitables.get("resourceClaims").add(builder); this.resourceClaims.add(builder); } return (A) this; @@ -528,12 +528,12 @@ public A addToResourceClaims(int index,V1PodResourceClaim item) { this.resourceClaims = new ArrayList(); } V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); - if (index < 0 || index >= resourceClaims.size()) { - _visitables.get("resourceClaims").add(builder); - resourceClaims.add(builder); + if (index < 0 || index >= this.resourceClaims.size()) { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); } else { - _visitables.get("resourceClaims").add(builder); - resourceClaims.add(index, builder); + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(index, builder); } return (A) this; } @@ -544,7 +544,7 @@ public A addToSchedulingGates(V1PodSchedulingGate... items) { } for (V1PodSchedulingGate item : items) { V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); - _visitables.get("schedulingGates").add(builder); + this._visitables.get("schedulingGates").add(builder); this.schedulingGates.add(builder); } return (A) this; @@ -555,12 +555,12 @@ public A addToSchedulingGates(int index,V1PodSchedulingGate item) { this.schedulingGates = new ArrayList(); } V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); - if (index < 0 || index >= schedulingGates.size()) { - _visitables.get("schedulingGates").add(builder); - schedulingGates.add(builder); + if (index < 0 || index >= this.schedulingGates.size()) { + this._visitables.get("schedulingGates").add(builder); + this.schedulingGates.add(builder); } else { - _visitables.get("schedulingGates").add(builder); - schedulingGates.add(index, builder); + this._visitables.get("schedulingGates").add(builder); + this.schedulingGates.add(index, builder); } return (A) this; } @@ -571,7 +571,7 @@ public A addToTolerations(V1Toleration... items) { } for (V1Toleration item : items) { V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -582,12 +582,12 @@ public A addToTolerations(int index,V1Toleration item) { this.tolerations = new ArrayList(); } V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.add(index, builder); } return (A) this; } @@ -598,7 +598,7 @@ public A addToTopologySpreadConstraints(V1TopologySpreadConstraint... items) { } for (V1TopologySpreadConstraint item : items) { V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - _visitables.get("topologySpreadConstraints").add(builder); + this._visitables.get("topologySpreadConstraints").add(builder); this.topologySpreadConstraints.add(builder); } return (A) this; @@ -609,12 +609,12 @@ public A addToTopologySpreadConstraints(int index,V1TopologySpreadConstraint ite this.topologySpreadConstraints = new ArrayList(); } V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - if (index < 0 || index >= topologySpreadConstraints.size()) { - _visitables.get("topologySpreadConstraints").add(builder); - topologySpreadConstraints.add(builder); + if (index < 0 || index >= this.topologySpreadConstraints.size()) { + this._visitables.get("topologySpreadConstraints").add(builder); + this.topologySpreadConstraints.add(builder); } else { - _visitables.get("topologySpreadConstraints").add(builder); - topologySpreadConstraints.add(index, builder); + this._visitables.get("topologySpreadConstraints").add(builder); + this.topologySpreadConstraints.add(index, builder); } return (A) this; } @@ -625,7 +625,7 @@ public A addToVolumes(V1Volume... items) { } for (V1Volume item : items) { V1VolumeBuilder builder = new V1VolumeBuilder(item); - _visitables.get("volumes").add(builder); + this._visitables.get("volumes").add(builder); this.volumes.add(builder); } return (A) this; @@ -636,12 +636,12 @@ public A addToVolumes(int index,V1Volume item) { this.volumes = new ArrayList(); } V1VolumeBuilder builder = new V1VolumeBuilder(item); - if (index < 0 || index >= volumes.size()) { - _visitables.get("volumes").add(builder); - volumes.add(builder); + if (index < 0 || index >= this.volumes.size()) { + this._visitables.get("volumes").add(builder); + this.volumes.add(builder); } else { - _visitables.get("volumes").add(builder); - volumes.add(index, builder); + this._visitables.get("volumes").add(builder); + this.volumes.add(index, builder); } return (A) this; } @@ -913,6 +913,10 @@ public List buildSchedulingGates() { return this.schedulingGates != null ? build(schedulingGates) : null; } + public V1PodSchedulingGroup buildSchedulingGroup() { + return this.schedulingGroup != null ? this.schedulingGroup.build() : null; + } + public V1PodSecurityContext buildSecurityContext() { return this.securityContext != null ? this.securityContext.build() : null; } @@ -941,10 +945,6 @@ public List buildVolumes() { return this.volumes != null ? build(volumes) : null; } - public V1WorkloadReference buildWorkloadRef() { - return this.workloadRef != null ? this.workloadRef.build() : null; - } - protected void copyInstance(V1PodSpec instance) { instance = instance != null ? instance : new V1PodSpec(); if (instance != null) { @@ -979,6 +979,7 @@ protected void copyInstance(V1PodSpec instance) { this.withRuntimeClassName(instance.getRuntimeClassName()); this.withSchedulerName(instance.getSchedulerName()); this.withSchedulingGates(instance.getSchedulingGates()); + this.withSchedulingGroup(instance.getSchedulingGroup()); this.withSecurityContext(instance.getSecurityContext()); this.withServiceAccount(instance.getServiceAccount()); this.withServiceAccountName(instance.getServiceAccountName()); @@ -989,7 +990,6 @@ protected void copyInstance(V1PodSpec instance) { this.withTolerations(instance.getTolerations()); this.withTopologySpreadConstraints(instance.getTopologySpreadConstraints()); this.withVolumes(instance.getVolumes()); - this.withWorkloadRef(instance.getWorkloadRef()); } } @@ -1387,20 +1387,20 @@ public ResourcesNested editOrNewResourcesLike(V1ResourceRequirements item) { return this.withNewResourcesLike(Optional.ofNullable(this.buildResources()).orElse(item)); } - public SecurityContextNested editOrNewSecurityContext() { - return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(new V1PodSecurityContextBuilder().build())); + public SchedulingGroupNested editOrNewSchedulingGroup() { + return this.withNewSchedulingGroupLike(Optional.ofNullable(this.buildSchedulingGroup()).orElse(new V1PodSchedulingGroupBuilder().build())); } - public SecurityContextNested editOrNewSecurityContextLike(V1PodSecurityContext item) { - return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(item)); + public SchedulingGroupNested editOrNewSchedulingGroupLike(V1PodSchedulingGroup item) { + return this.withNewSchedulingGroupLike(Optional.ofNullable(this.buildSchedulingGroup()).orElse(item)); } - public WorkloadRefNested editOrNewWorkloadRef() { - return this.withNewWorkloadRefLike(Optional.ofNullable(this.buildWorkloadRef()).orElse(new V1WorkloadReferenceBuilder().build())); + public SecurityContextNested editOrNewSecurityContext() { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(new V1PodSecurityContextBuilder().build())); } - public WorkloadRefNested editOrNewWorkloadRefLike(V1WorkloadReference item) { - return this.withNewWorkloadRefLike(Optional.ofNullable(this.buildWorkloadRef()).orElse(item)); + public SecurityContextNested editOrNewSecurityContextLike(V1PodSecurityContext item) { + return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(item)); } public OsNested editOs() { @@ -1432,6 +1432,10 @@ public SchedulingGatesNested editSchedulingGate(int index) { return this.setNewSchedulingGateLike(index, this.buildSchedulingGate(index)); } + public SchedulingGroupNested editSchedulingGroup() { + return this.withNewSchedulingGroupLike(Optional.ofNullable(this.buildSchedulingGroup()).orElse(null)); + } + public SecurityContextNested editSecurityContext() { return this.withNewSecurityContextLike(Optional.ofNullable(this.buildSecurityContext()).orElse(null)); } @@ -1457,10 +1461,6 @@ public VolumesNested editVolume(int index) { return this.setNewVolumeLike(index, this.buildVolume(index)); } - public WorkloadRefNested editWorkloadRef() { - return this.withNewWorkloadRefLike(Optional.ofNullable(this.buildWorkloadRef()).orElse(null)); - } - public boolean equals(Object o) { if (this == o) { return true; @@ -1565,6 +1565,9 @@ public boolean equals(Object o) { if (!(Objects.equals(schedulingGates, that.schedulingGates))) { return false; } + if (!(Objects.equals(schedulingGroup, that.schedulingGroup))) { + return false; + } if (!(Objects.equals(securityContext, that.securityContext))) { return false; } @@ -1595,9 +1598,6 @@ public boolean equals(Object o) { if (!(Objects.equals(volumes, that.volumes))) { return false; } - if (!(Objects.equals(workloadRef, that.workloadRef))) { - return false; - } return true; } @@ -1924,6 +1924,10 @@ public boolean hasSchedulingGates() { return this.schedulingGates != null && !(this.schedulingGates.isEmpty()); } + public boolean hasSchedulingGroup() { + return this.schedulingGroup != null; + } + public boolean hasSecurityContext() { return this.securityContext != null; } @@ -1964,12 +1968,8 @@ public boolean hasVolumes() { return this.volumes != null && !(this.volumes.isEmpty()); } - public boolean hasWorkloadRef() { - return this.workloadRef != null; - } - public int hashCode() { - return Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, hostnameOverride, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, resources, restartPolicy, runtimeClassName, schedulerName, schedulingGates, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes, workloadRef); + return Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, hostnameOverride, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, resources, restartPolicy, runtimeClassName, schedulerName, schedulingGates, schedulingGroup, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes); } public A removeAllFromContainers(Collection items) { @@ -2289,7 +2289,7 @@ public A removeMatchingFromContainers(Predicate predicate) { return (A) this; } Iterator each = containers.iterator(); - List visitables = _visitables.get("containers"); + List visitables = this._visitables.get("containers"); while (each.hasNext()) { V1ContainerBuilder builder = each.next(); if (predicate.test(builder)) { @@ -2305,7 +2305,7 @@ public A removeMatchingFromEphemeralContainers(Predicate each = ephemeralContainers.iterator(); - List visitables = _visitables.get("ephemeralContainers"); + List visitables = this._visitables.get("ephemeralContainers"); while (each.hasNext()) { V1EphemeralContainerBuilder builder = each.next(); if (predicate.test(builder)) { @@ -2321,7 +2321,7 @@ public A removeMatchingFromHostAliases(Predicate predicate) return (A) this; } Iterator each = hostAliases.iterator(); - List visitables = _visitables.get("hostAliases"); + List visitables = this._visitables.get("hostAliases"); while (each.hasNext()) { V1HostAliasBuilder builder = each.next(); if (predicate.test(builder)) { @@ -2337,7 +2337,7 @@ public A removeMatchingFromImagePullSecrets(Predicate each = imagePullSecrets.iterator(); - List visitables = _visitables.get("imagePullSecrets"); + List visitables = this._visitables.get("imagePullSecrets"); while (each.hasNext()) { V1LocalObjectReferenceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -2353,7 +2353,7 @@ public A removeMatchingFromInitContainers(Predicate predicat return (A) this; } Iterator each = initContainers.iterator(); - List visitables = _visitables.get("initContainers"); + List visitables = this._visitables.get("initContainers"); while (each.hasNext()) { V1ContainerBuilder builder = each.next(); if (predicate.test(builder)) { @@ -2369,7 +2369,7 @@ public A removeMatchingFromReadinessGates(Predicate p return (A) this; } Iterator each = readinessGates.iterator(); - List visitables = _visitables.get("readinessGates"); + List visitables = this._visitables.get("readinessGates"); while (each.hasNext()) { V1PodReadinessGateBuilder builder = each.next(); if (predicate.test(builder)) { @@ -2385,7 +2385,7 @@ public A removeMatchingFromResourceClaims(Predicate p return (A) this; } Iterator each = resourceClaims.iterator(); - List visitables = _visitables.get("resourceClaims"); + List visitables = this._visitables.get("resourceClaims"); while (each.hasNext()) { V1PodResourceClaimBuilder builder = each.next(); if (predicate.test(builder)) { @@ -2401,7 +2401,7 @@ public A removeMatchingFromSchedulingGates(Predicate return (A) this; } Iterator each = schedulingGates.iterator(); - List visitables = _visitables.get("schedulingGates"); + List visitables = this._visitables.get("schedulingGates"); while (each.hasNext()) { V1PodSchedulingGateBuilder builder = each.next(); if (predicate.test(builder)) { @@ -2417,7 +2417,7 @@ public A removeMatchingFromTolerations(Predicate predicate) return (A) this; } Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); + List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1TolerationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -2433,7 +2433,7 @@ public A removeMatchingFromTopologySpreadConstraints(Predicate each = topologySpreadConstraints.iterator(); - List visitables = _visitables.get("topologySpreadConstraints"); + List visitables = this._visitables.get("topologySpreadConstraints"); while (each.hasNext()) { V1TopologySpreadConstraintBuilder builder = each.next(); if (predicate.test(builder)) { @@ -2449,7 +2449,7 @@ public A removeMatchingFromVolumes(Predicate predicate) { return (A) this; } Iterator each = volumes.iterator(); - List visitables = _visitables.get("volumes"); + List visitables = this._visitables.get("volumes"); while (each.hasNext()) { V1VolumeBuilder builder = each.next(); if (predicate.test(builder)) { @@ -2509,12 +2509,12 @@ public A setToContainers(int index,V1Container item) { this.containers = new ArrayList(); } V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= containers.size()) { - _visitables.get("containers").add(builder); - containers.add(builder); + if (index < 0 || index >= this.containers.size()) { + this._visitables.get("containers").add(builder); + this.containers.add(builder); } else { - _visitables.get("containers").add(builder); - containers.set(index, builder); + this._visitables.get("containers").add(builder); + this.containers.set(index, builder); } return (A) this; } @@ -2524,12 +2524,12 @@ public A setToEphemeralContainers(int index,V1EphemeralContainer item) { this.ephemeralContainers = new ArrayList(); } V1EphemeralContainerBuilder builder = new V1EphemeralContainerBuilder(item); - if (index < 0 || index >= ephemeralContainers.size()) { - _visitables.get("ephemeralContainers").add(builder); - ephemeralContainers.add(builder); + if (index < 0 || index >= this.ephemeralContainers.size()) { + this._visitables.get("ephemeralContainers").add(builder); + this.ephemeralContainers.add(builder); } else { - _visitables.get("ephemeralContainers").add(builder); - ephemeralContainers.set(index, builder); + this._visitables.get("ephemeralContainers").add(builder); + this.ephemeralContainers.set(index, builder); } return (A) this; } @@ -2539,12 +2539,12 @@ public A setToHostAliases(int index,V1HostAlias item) { this.hostAliases = new ArrayList(); } V1HostAliasBuilder builder = new V1HostAliasBuilder(item); - if (index < 0 || index >= hostAliases.size()) { - _visitables.get("hostAliases").add(builder); - hostAliases.add(builder); + if (index < 0 || index >= this.hostAliases.size()) { + this._visitables.get("hostAliases").add(builder); + this.hostAliases.add(builder); } else { - _visitables.get("hostAliases").add(builder); - hostAliases.set(index, builder); + this._visitables.get("hostAliases").add(builder); + this.hostAliases.set(index, builder); } return (A) this; } @@ -2554,12 +2554,12 @@ public A setToImagePullSecrets(int index,V1LocalObjectReference item) { this.imagePullSecrets = new ArrayList(); } V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { - _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.add(builder); + if (index < 0 || index >= this.imagePullSecrets.size()) { + this._visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(builder); } else { - _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.set(index, builder); + this._visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.set(index, builder); } return (A) this; } @@ -2569,12 +2569,12 @@ public A setToInitContainers(int index,V1Container item) { this.initContainers = new ArrayList(); } V1ContainerBuilder builder = new V1ContainerBuilder(item); - if (index < 0 || index >= initContainers.size()) { - _visitables.get("initContainers").add(builder); - initContainers.add(builder); + if (index < 0 || index >= this.initContainers.size()) { + this._visitables.get("initContainers").add(builder); + this.initContainers.add(builder); } else { - _visitables.get("initContainers").add(builder); - initContainers.set(index, builder); + this._visitables.get("initContainers").add(builder); + this.initContainers.set(index, builder); } return (A) this; } @@ -2584,12 +2584,12 @@ public A setToReadinessGates(int index,V1PodReadinessGate item) { this.readinessGates = new ArrayList(); } V1PodReadinessGateBuilder builder = new V1PodReadinessGateBuilder(item); - if (index < 0 || index >= readinessGates.size()) { - _visitables.get("readinessGates").add(builder); - readinessGates.add(builder); + if (index < 0 || index >= this.readinessGates.size()) { + this._visitables.get("readinessGates").add(builder); + this.readinessGates.add(builder); } else { - _visitables.get("readinessGates").add(builder); - readinessGates.set(index, builder); + this._visitables.get("readinessGates").add(builder); + this.readinessGates.set(index, builder); } return (A) this; } @@ -2599,12 +2599,12 @@ public A setToResourceClaims(int index,V1PodResourceClaim item) { this.resourceClaims = new ArrayList(); } V1PodResourceClaimBuilder builder = new V1PodResourceClaimBuilder(item); - if (index < 0 || index >= resourceClaims.size()) { - _visitables.get("resourceClaims").add(builder); - resourceClaims.add(builder); + if (index < 0 || index >= this.resourceClaims.size()) { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); } else { - _visitables.get("resourceClaims").add(builder); - resourceClaims.set(index, builder); + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.set(index, builder); } return (A) this; } @@ -2614,12 +2614,12 @@ public A setToSchedulingGates(int index,V1PodSchedulingGate item) { this.schedulingGates = new ArrayList(); } V1PodSchedulingGateBuilder builder = new V1PodSchedulingGateBuilder(item); - if (index < 0 || index >= schedulingGates.size()) { - _visitables.get("schedulingGates").add(builder); - schedulingGates.add(builder); + if (index < 0 || index >= this.schedulingGates.size()) { + this._visitables.get("schedulingGates").add(builder); + this.schedulingGates.add(builder); } else { - _visitables.get("schedulingGates").add(builder); - schedulingGates.set(index, builder); + this._visitables.get("schedulingGates").add(builder); + this.schedulingGates.set(index, builder); } return (A) this; } @@ -2629,12 +2629,12 @@ public A setToTolerations(int index,V1Toleration item) { this.tolerations = new ArrayList(); } V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.set(index, builder); } return (A) this; } @@ -2644,12 +2644,12 @@ public A setToTopologySpreadConstraints(int index,V1TopologySpreadConstraint ite this.topologySpreadConstraints = new ArrayList(); } V1TopologySpreadConstraintBuilder builder = new V1TopologySpreadConstraintBuilder(item); - if (index < 0 || index >= topologySpreadConstraints.size()) { - _visitables.get("topologySpreadConstraints").add(builder); - topologySpreadConstraints.add(builder); + if (index < 0 || index >= this.topologySpreadConstraints.size()) { + this._visitables.get("topologySpreadConstraints").add(builder); + this.topologySpreadConstraints.add(builder); } else { - _visitables.get("topologySpreadConstraints").add(builder); - topologySpreadConstraints.set(index, builder); + this._visitables.get("topologySpreadConstraints").add(builder); + this.topologySpreadConstraints.set(index, builder); } return (A) this; } @@ -2659,12 +2659,12 @@ public A setToVolumes(int index,V1Volume item) { this.volumes = new ArrayList(); } V1VolumeBuilder builder = new V1VolumeBuilder(item); - if (index < 0 || index >= volumes.size()) { - _visitables.get("volumes").add(builder); - volumes.add(builder); + if (index < 0 || index >= this.volumes.size()) { + this._visitables.get("volumes").add(builder); + this.volumes.add(builder); } else { - _visitables.get("volumes").add(builder); - volumes.set(index, builder); + this._visitables.get("volumes").add(builder); + this.volumes.set(index, builder); } return (A) this; } @@ -2827,6 +2827,11 @@ public String toString() { sb.append(schedulingGates); sb.append(","); } + if (!(schedulingGroup == null)) { + sb.append("schedulingGroup:"); + sb.append(schedulingGroup); + sb.append(","); + } if (!(securityContext == null)) { sb.append("securityContext:"); sb.append(securityContext); @@ -2875,11 +2880,6 @@ public String toString() { if (!(volumes == null) && !(volumes.isEmpty())) { sb.append("volumes:"); sb.append(volumes); - sb.append(","); - } - if (!(workloadRef == null)) { - sb.append("workloadRef:"); - sb.append(workloadRef); } sb.append("}"); return sb.toString(); @@ -3155,20 +3155,20 @@ public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { return new ResourcesNested(item); } - public SecurityContextNested withNewSecurityContext() { - return new SecurityContextNested(null); + public SchedulingGroupNested withNewSchedulingGroup() { + return new SchedulingGroupNested(null); } - public SecurityContextNested withNewSecurityContextLike(V1PodSecurityContext item) { - return new SecurityContextNested(item); + public SchedulingGroupNested withNewSchedulingGroupLike(V1PodSchedulingGroup item) { + return new SchedulingGroupNested(item); } - public WorkloadRefNested withNewWorkloadRef() { - return new WorkloadRefNested(null); + public SecurityContextNested withNewSecurityContext() { + return new SecurityContextNested(null); } - public WorkloadRefNested withNewWorkloadRefLike(V1WorkloadReference item) { - return new WorkloadRefNested(item); + public SecurityContextNested withNewSecurityContextLike(V1PodSecurityContext item) { + return new SecurityContextNested(item); } public A withNodeName(String nodeName) { @@ -3332,6 +3332,18 @@ public A withSchedulingGates(V1PodSchedulingGate... schedulingGates) { return (A) this; } + public A withSchedulingGroup(V1PodSchedulingGroup schedulingGroup) { + this._visitables.remove("schedulingGroup"); + if (schedulingGroup != null) { + this.schedulingGroup = new V1PodSchedulingGroupBuilder(schedulingGroup); + this._visitables.get("schedulingGroup").add(this.schedulingGroup); + } else { + this.schedulingGroup = null; + this._visitables.get("schedulingGroup").remove(this.schedulingGroup); + } + return (A) this; + } + public A withSecurityContext(V1PodSecurityContext securityContext) { this._visitables.remove("securityContext"); if (securityContext != null) { @@ -3465,18 +3477,6 @@ public A withVolumes(V1Volume... volumes) { } return (A) this; } - - public A withWorkloadRef(V1WorkloadReference workloadRef) { - this._visitables.remove("workloadRef"); - if (workloadRef != null) { - this.workloadRef = new V1WorkloadReferenceBuilder(workloadRef); - this._visitables.get("workloadRef").add(this.workloadRef); - } else { - this.workloadRef = null; - this._visitables.get("workloadRef").remove(this.workloadRef); - } - return (A) this; - } public class AffinityNested extends V1AffinityFluent> implements Nested{ V1AffinityBuilder builder; @@ -3696,6 +3696,23 @@ public N endSchedulingGate() { return and(); } + } + public class SchedulingGroupNested extends V1PodSchedulingGroupFluent> implements Nested{ + + V1PodSchedulingGroupBuilder builder; + + SchedulingGroupNested(V1PodSchedulingGroup item) { + this.builder = new V1PodSchedulingGroupBuilder(this, item); + } + + public N and() { + return (N) V1PodSpecFluent.this.withSchedulingGroup(builder.build()); + } + + public N endSchedulingGroup() { + return and(); + } + } public class SecurityContextNested extends V1PodSecurityContextFluent> implements Nested{ @@ -3771,21 +3788,4 @@ public N endVolume() { } } - public class WorkloadRefNested extends V1WorkloadReferenceFluent> implements Nested{ - - V1WorkloadReferenceBuilder builder; - - WorkloadRefNested(V1WorkloadReference item) { - this.builder = new V1WorkloadReferenceBuilder(this, item); - } - - public N and() { - return (N) V1PodSpecFluent.this.withWorkloadRef(builder.build()); - } - - public N endWorkloadRef() { - return and(); - } - - } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java index c01d9491a5..dc7145da22 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,6 +47,7 @@ public V1PodStatus build() { buildable.setHostIPs(fluent.buildHostIPs()); buildable.setInitContainerStatuses(fluent.buildInitContainerStatuses()); buildable.setMessage(fluent.getMessage()); + buildable.setNodeAllocatableResourceClaimStatuses(fluent.buildNodeAllocatableResourceClaimStatuses()); buildable.setNominatedNodeName(fluent.getNominatedNodeName()); buildable.setObservedGeneration(fluent.getObservedGeneration()); buildable.setPhase(fluent.getPhase()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java index 07f102937c..1ab94fb576 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,6 +47,7 @@ public class V1PodStatusFluent hostIPs; private ArrayList initContainerStatuses; private String message; + private ArrayList nodeAllocatableResourceClaimStatuses; private String nominatedNodeName; private Long observedGeneration; private String phase; @@ -72,7 +73,7 @@ public A addAllToConditions(Collection items) { } for (V1PodCondition item : items) { V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -84,7 +85,7 @@ public A addAllToContainerStatuses(Collection items) { } for (V1ContainerStatus item : items) { V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("containerStatuses").add(builder); + this._visitables.get("containerStatuses").add(builder); this.containerStatuses.add(builder); } return (A) this; @@ -96,7 +97,7 @@ public A addAllToEphemeralContainerStatuses(Collection items) } for (V1ContainerStatus item : items) { V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("ephemeralContainerStatuses").add(builder); + this._visitables.get("ephemeralContainerStatuses").add(builder); this.ephemeralContainerStatuses.add(builder); } return (A) this; @@ -108,7 +109,7 @@ public A addAllToHostIPs(Collection items) { } for (V1HostIP item : items) { V1HostIPBuilder builder = new V1HostIPBuilder(item); - _visitables.get("hostIPs").add(builder); + this._visitables.get("hostIPs").add(builder); this.hostIPs.add(builder); } return (A) this; @@ -120,19 +121,31 @@ public A addAllToInitContainerStatuses(Collection items) { } for (V1ContainerStatus item : items) { V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("initContainerStatuses").add(builder); + this._visitables.get("initContainerStatuses").add(builder); this.initContainerStatuses.add(builder); } return (A) this; } + public A addAllToNodeAllocatableResourceClaimStatuses(Collection items) { + if (this.nodeAllocatableResourceClaimStatuses == null) { + this.nodeAllocatableResourceClaimStatuses = new ArrayList(); + } + for (V1NodeAllocatableResourceClaimStatus item : items) { + V1NodeAllocatableResourceClaimStatusBuilder builder = new V1NodeAllocatableResourceClaimStatusBuilder(item); + this._visitables.get("nodeAllocatableResourceClaimStatuses").add(builder); + this.nodeAllocatableResourceClaimStatuses.add(builder); + } + return (A) this; + } + public A addAllToPodIPs(Collection items) { if (this.podIPs == null) { this.podIPs = new ArrayList(); } for (V1PodIP item : items) { V1PodIPBuilder builder = new V1PodIPBuilder(item); - _visitables.get("podIPs").add(builder); + this._visitables.get("podIPs").add(builder); this.podIPs.add(builder); } return (A) this; @@ -144,7 +157,7 @@ public A addAllToResourceClaimStatuses(Collection item } for (V1PodResourceClaimStatus item : items) { V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); - _visitables.get("resourceClaimStatuses").add(builder); + this._visitables.get("resourceClaimStatuses").add(builder); this.resourceClaimStatuses.add(builder); } return (A) this; @@ -190,6 +203,14 @@ public InitContainerStatusesNested addNewInitContainerStatusLike(V1ContainerS return new InitContainerStatusesNested(-1, item); } + public NodeAllocatableResourceClaimStatusesNested addNewNodeAllocatableResourceClaimStatus() { + return new NodeAllocatableResourceClaimStatusesNested(-1, null); + } + + public NodeAllocatableResourceClaimStatusesNested addNewNodeAllocatableResourceClaimStatusLike(V1NodeAllocatableResourceClaimStatus item) { + return new NodeAllocatableResourceClaimStatusesNested(-1, item); + } + public PodIPsNested addNewPodIP() { return new PodIPsNested(-1, null); } @@ -232,7 +253,7 @@ public A addToConditions(V1PodCondition... items) { } for (V1PodCondition item : items) { V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -243,12 +264,12 @@ public A addToConditions(int index,V1PodCondition item) { this.conditions = new ArrayList(); } V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -259,7 +280,7 @@ public A addToContainerStatuses(V1ContainerStatus... items) { } for (V1ContainerStatus item : items) { V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("containerStatuses").add(builder); + this._visitables.get("containerStatuses").add(builder); this.containerStatuses.add(builder); } return (A) this; @@ -270,12 +291,12 @@ public A addToContainerStatuses(int index,V1ContainerStatus item) { this.containerStatuses = new ArrayList(); } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= containerStatuses.size()) { - _visitables.get("containerStatuses").add(builder); - containerStatuses.add(builder); + if (index < 0 || index >= this.containerStatuses.size()) { + this._visitables.get("containerStatuses").add(builder); + this.containerStatuses.add(builder); } else { - _visitables.get("containerStatuses").add(builder); - containerStatuses.add(index, builder); + this._visitables.get("containerStatuses").add(builder); + this.containerStatuses.add(index, builder); } return (A) this; } @@ -286,7 +307,7 @@ public A addToEphemeralContainerStatuses(V1ContainerStatus... items) { } for (V1ContainerStatus item : items) { V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("ephemeralContainerStatuses").add(builder); + this._visitables.get("ephemeralContainerStatuses").add(builder); this.ephemeralContainerStatuses.add(builder); } return (A) this; @@ -297,12 +318,12 @@ public A addToEphemeralContainerStatuses(int index,V1ContainerStatus item) { this.ephemeralContainerStatuses = new ArrayList(); } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= ephemeralContainerStatuses.size()) { - _visitables.get("ephemeralContainerStatuses").add(builder); - ephemeralContainerStatuses.add(builder); + if (index < 0 || index >= this.ephemeralContainerStatuses.size()) { + this._visitables.get("ephemeralContainerStatuses").add(builder); + this.ephemeralContainerStatuses.add(builder); } else { - _visitables.get("ephemeralContainerStatuses").add(builder); - ephemeralContainerStatuses.add(index, builder); + this._visitables.get("ephemeralContainerStatuses").add(builder); + this.ephemeralContainerStatuses.add(index, builder); } return (A) this; } @@ -313,7 +334,7 @@ public A addToHostIPs(V1HostIP... items) { } for (V1HostIP item : items) { V1HostIPBuilder builder = new V1HostIPBuilder(item); - _visitables.get("hostIPs").add(builder); + this._visitables.get("hostIPs").add(builder); this.hostIPs.add(builder); } return (A) this; @@ -324,12 +345,12 @@ public A addToHostIPs(int index,V1HostIP item) { this.hostIPs = new ArrayList(); } V1HostIPBuilder builder = new V1HostIPBuilder(item); - if (index < 0 || index >= hostIPs.size()) { - _visitables.get("hostIPs").add(builder); - hostIPs.add(builder); + if (index < 0 || index >= this.hostIPs.size()) { + this._visitables.get("hostIPs").add(builder); + this.hostIPs.add(builder); } else { - _visitables.get("hostIPs").add(builder); - hostIPs.add(index, builder); + this._visitables.get("hostIPs").add(builder); + this.hostIPs.add(index, builder); } return (A) this; } @@ -340,7 +361,7 @@ public A addToInitContainerStatuses(V1ContainerStatus... items) { } for (V1ContainerStatus item : items) { V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - _visitables.get("initContainerStatuses").add(builder); + this._visitables.get("initContainerStatuses").add(builder); this.initContainerStatuses.add(builder); } return (A) this; @@ -351,12 +372,39 @@ public A addToInitContainerStatuses(int index,V1ContainerStatus item) { this.initContainerStatuses = new ArrayList(); } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= initContainerStatuses.size()) { - _visitables.get("initContainerStatuses").add(builder); - initContainerStatuses.add(builder); + if (index < 0 || index >= this.initContainerStatuses.size()) { + this._visitables.get("initContainerStatuses").add(builder); + this.initContainerStatuses.add(builder); } else { - _visitables.get("initContainerStatuses").add(builder); - initContainerStatuses.add(index, builder); + this._visitables.get("initContainerStatuses").add(builder); + this.initContainerStatuses.add(index, builder); + } + return (A) this; + } + + public A addToNodeAllocatableResourceClaimStatuses(V1NodeAllocatableResourceClaimStatus... items) { + if (this.nodeAllocatableResourceClaimStatuses == null) { + this.nodeAllocatableResourceClaimStatuses = new ArrayList(); + } + for (V1NodeAllocatableResourceClaimStatus item : items) { + V1NodeAllocatableResourceClaimStatusBuilder builder = new V1NodeAllocatableResourceClaimStatusBuilder(item); + this._visitables.get("nodeAllocatableResourceClaimStatuses").add(builder); + this.nodeAllocatableResourceClaimStatuses.add(builder); + } + return (A) this; + } + + public A addToNodeAllocatableResourceClaimStatuses(int index,V1NodeAllocatableResourceClaimStatus item) { + if (this.nodeAllocatableResourceClaimStatuses == null) { + this.nodeAllocatableResourceClaimStatuses = new ArrayList(); + } + V1NodeAllocatableResourceClaimStatusBuilder builder = new V1NodeAllocatableResourceClaimStatusBuilder(item); + if (index < 0 || index >= this.nodeAllocatableResourceClaimStatuses.size()) { + this._visitables.get("nodeAllocatableResourceClaimStatuses").add(builder); + this.nodeAllocatableResourceClaimStatuses.add(builder); + } else { + this._visitables.get("nodeAllocatableResourceClaimStatuses").add(builder); + this.nodeAllocatableResourceClaimStatuses.add(index, builder); } return (A) this; } @@ -367,7 +415,7 @@ public A addToPodIPs(V1PodIP... items) { } for (V1PodIP item : items) { V1PodIPBuilder builder = new V1PodIPBuilder(item); - _visitables.get("podIPs").add(builder); + this._visitables.get("podIPs").add(builder); this.podIPs.add(builder); } return (A) this; @@ -378,12 +426,12 @@ public A addToPodIPs(int index,V1PodIP item) { this.podIPs = new ArrayList(); } V1PodIPBuilder builder = new V1PodIPBuilder(item); - if (index < 0 || index >= podIPs.size()) { - _visitables.get("podIPs").add(builder); - podIPs.add(builder); + if (index < 0 || index >= this.podIPs.size()) { + this._visitables.get("podIPs").add(builder); + this.podIPs.add(builder); } else { - _visitables.get("podIPs").add(builder); - podIPs.add(index, builder); + this._visitables.get("podIPs").add(builder); + this.podIPs.add(index, builder); } return (A) this; } @@ -394,7 +442,7 @@ public A addToResourceClaimStatuses(V1PodResourceClaimStatus... items) { } for (V1PodResourceClaimStatus item : items) { V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); - _visitables.get("resourceClaimStatuses").add(builder); + this._visitables.get("resourceClaimStatuses").add(builder); this.resourceClaimStatuses.add(builder); } return (A) this; @@ -405,12 +453,12 @@ public A addToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { this.resourceClaimStatuses = new ArrayList(); } V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); - if (index < 0 || index >= resourceClaimStatuses.size()) { - _visitables.get("resourceClaimStatuses").add(builder); - resourceClaimStatuses.add(builder); + if (index < 0 || index >= this.resourceClaimStatuses.size()) { + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); } else { - _visitables.get("resourceClaimStatuses").add(builder); - resourceClaimStatuses.add(index, builder); + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(index, builder); } return (A) this; } @@ -463,6 +511,10 @@ public V1ContainerStatus buildFirstInitContainerStatus() { return this.initContainerStatuses.get(0).build(); } + public V1NodeAllocatableResourceClaimStatus buildFirstNodeAllocatableResourceClaimStatus() { + return this.nodeAllocatableResourceClaimStatuses.get(0).build(); + } + public V1PodIP buildFirstPodIP() { return this.podIPs.get(0).build(); } @@ -507,6 +559,10 @@ public V1ContainerStatus buildLastInitContainerStatus() { return this.initContainerStatuses.get(initContainerStatuses.size() - 1).build(); } + public V1NodeAllocatableResourceClaimStatus buildLastNodeAllocatableResourceClaimStatus() { + return this.nodeAllocatableResourceClaimStatuses.get(nodeAllocatableResourceClaimStatuses.size() - 1).build(); + } + public V1PodIP buildLastPodIP() { return this.podIPs.get(podIPs.size() - 1).build(); } @@ -560,6 +616,15 @@ public V1ContainerStatus buildMatchingInitContainerStatus(Predicate predicate) { + for (V1NodeAllocatableResourceClaimStatusBuilder item : nodeAllocatableResourceClaimStatuses) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + public V1PodIP buildMatchingPodIP(Predicate predicate) { for (V1PodIPBuilder item : podIPs) { if (predicate.test(item)) { @@ -578,6 +643,14 @@ public V1PodResourceClaimStatus buildMatchingResourceClaimStatus(Predicate buildNodeAllocatableResourceClaimStatuses() { + return this.nodeAllocatableResourceClaimStatuses != null ? build(nodeAllocatableResourceClaimStatuses) : null; + } + public V1PodIP buildPodIP(int index) { return this.podIPs.get(index).build(); } @@ -610,6 +683,7 @@ protected void copyInstance(V1PodStatus instance) { this.withHostIPs(instance.getHostIPs()); this.withInitContainerStatuses(instance.getInitContainerStatuses()); this.withMessage(instance.getMessage()); + this.withNodeAllocatableResourceClaimStatuses(instance.getNodeAllocatableResourceClaimStatuses()); this.withNominatedNodeName(instance.getNominatedNodeName()); this.withObservedGeneration(instance.getObservedGeneration()); this.withPhase(instance.getPhase()); @@ -684,6 +758,13 @@ public InitContainerStatusesNested editFirstInitContainerStatus() { return this.setNewInitContainerStatusLike(0, this.buildInitContainerStatus(0)); } + public NodeAllocatableResourceClaimStatusesNested editFirstNodeAllocatableResourceClaimStatus() { + if (nodeAllocatableResourceClaimStatuses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "nodeAllocatableResourceClaimStatuses")); + } + return this.setNewNodeAllocatableResourceClaimStatusLike(0, this.buildNodeAllocatableResourceClaimStatus(0)); + } + public PodIPsNested editFirstPodIP() { if (podIPs.size() == 0) { throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "podIPs")); @@ -752,6 +833,14 @@ public InitContainerStatusesNested editLastInitContainerStatus() { return this.setNewInitContainerStatusLike(index, this.buildInitContainerStatus(index)); } + public NodeAllocatableResourceClaimStatusesNested editLastNodeAllocatableResourceClaimStatus() { + int index = nodeAllocatableResourceClaimStatuses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "nodeAllocatableResourceClaimStatuses")); + } + return this.setNewNodeAllocatableResourceClaimStatusLike(index, this.buildNodeAllocatableResourceClaimStatus(index)); + } + public PodIPsNested editLastPodIP() { int index = podIPs.size() - 1; if (index < 0) { @@ -838,6 +927,20 @@ public InitContainerStatusesNested editMatchingInitContainerStatus(Predicate< return this.setNewInitContainerStatusLike(index, this.buildInitContainerStatus(index)); } + public NodeAllocatableResourceClaimStatusesNested editMatchingNodeAllocatableResourceClaimStatus(Predicate predicate) { + int index = -1; + for (int i = 0;i < nodeAllocatableResourceClaimStatuses.size();i++) { + if (predicate.test(nodeAllocatableResourceClaimStatuses.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "nodeAllocatableResourceClaimStatuses")); + } + return this.setNewNodeAllocatableResourceClaimStatusLike(index, this.buildNodeAllocatableResourceClaimStatus(index)); + } + public PodIPsNested editMatchingPodIP(Predicate predicate) { int index = -1; for (int i = 0;i < podIPs.size();i++) { @@ -866,6 +969,13 @@ public ResourceClaimStatusesNested editMatchingResourceClaimStatus(Predicate< return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); } + public NodeAllocatableResourceClaimStatusesNested editNodeAllocatableResourceClaimStatus(int index) { + if (nodeAllocatableResourceClaimStatuses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "nodeAllocatableResourceClaimStatuses")); + } + return this.setNewNodeAllocatableResourceClaimStatusLike(index, this.buildNodeAllocatableResourceClaimStatus(index)); + } + public ExtendedResourceClaimStatusNested editOrNewExtendedResourceClaimStatus() { return this.withNewExtendedResourceClaimStatusLike(Optional.ofNullable(this.buildExtendedResourceClaimStatus()).orElse(new V1PodExtendedResourceClaimStatusBuilder().build())); } @@ -938,6 +1048,9 @@ public boolean equals(Object o) { if (!(Objects.equals(message, that.message))) { return false; } + if (!(Objects.equals(nodeAllocatableResourceClaimStatuses, that.nodeAllocatableResourceClaimStatuses))) { + return false; + } if (!(Objects.equals(nominatedNodeName, that.nominatedNodeName))) { return false; } @@ -1095,6 +1208,15 @@ public boolean hasMatchingInitContainerStatus(Predicate predicate) { + for (V1NodeAllocatableResourceClaimStatusBuilder item : nodeAllocatableResourceClaimStatuses) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasMatchingPodIP(Predicate predicate) { for (V1PodIPBuilder item : podIPs) { if (predicate.test(item)) { @@ -1117,6 +1239,10 @@ public boolean hasMessage() { return this.message != null; } + public boolean hasNodeAllocatableResourceClaimStatuses() { + return this.nodeAllocatableResourceClaimStatuses != null && !(this.nodeAllocatableResourceClaimStatuses.isEmpty()); + } + public boolean hasNominatedNodeName() { return this.nominatedNodeName != null; } @@ -1162,7 +1288,7 @@ public boolean hasStartTime() { } public int hashCode() { - return Objects.hash(allocatedResources, conditions, containerStatuses, ephemeralContainerStatuses, extendedResourceClaimStatus, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, resources, startTime); + return Objects.hash(allocatedResources, conditions, containerStatuses, ephemeralContainerStatuses, extendedResourceClaimStatus, hostIP, hostIPs, initContainerStatuses, message, nodeAllocatableResourceClaimStatuses, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, resources, startTime); } public A removeAllFromConditions(Collection items) { @@ -1225,6 +1351,18 @@ public A removeAllFromInitContainerStatuses(Collection items) return (A) this; } + public A removeAllFromNodeAllocatableResourceClaimStatuses(Collection items) { + if (this.nodeAllocatableResourceClaimStatuses == null) { + return (A) this; + } + for (V1NodeAllocatableResourceClaimStatus item : items) { + V1NodeAllocatableResourceClaimStatusBuilder builder = new V1NodeAllocatableResourceClaimStatusBuilder(item); + _visitables.get("nodeAllocatableResourceClaimStatuses").remove(builder); + this.nodeAllocatableResourceClaimStatuses.remove(builder); + } + return (A) this; + } + public A removeAllFromPodIPs(Collection items) { if (this.podIPs == null) { return (A) this; @@ -1333,6 +1471,18 @@ public A removeFromInitContainerStatuses(V1ContainerStatus... items) { return (A) this; } + public A removeFromNodeAllocatableResourceClaimStatuses(V1NodeAllocatableResourceClaimStatus... items) { + if (this.nodeAllocatableResourceClaimStatuses == null) { + return (A) this; + } + for (V1NodeAllocatableResourceClaimStatus item : items) { + V1NodeAllocatableResourceClaimStatusBuilder builder = new V1NodeAllocatableResourceClaimStatusBuilder(item); + _visitables.get("nodeAllocatableResourceClaimStatuses").remove(builder); + this.nodeAllocatableResourceClaimStatuses.remove(builder); + } + return (A) this; + } + public A removeFromPodIPs(V1PodIP... items) { if (this.podIPs == null) { return (A) this; @@ -1362,7 +1512,7 @@ public A removeMatchingFromConditions(Predicate predicate return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1PodConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1378,7 +1528,7 @@ public A removeMatchingFromContainerStatuses(Predicate return (A) this; } Iterator each = containerStatuses.iterator(); - List visitables = _visitables.get("containerStatuses"); + List visitables = this._visitables.get("containerStatuses"); while (each.hasNext()) { V1ContainerStatusBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1394,7 +1544,7 @@ public A removeMatchingFromEphemeralContainerStatuses(Predicate each = ephemeralContainerStatuses.iterator(); - List visitables = _visitables.get("ephemeralContainerStatuses"); + List visitables = this._visitables.get("ephemeralContainerStatuses"); while (each.hasNext()) { V1ContainerStatusBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1410,7 +1560,7 @@ public A removeMatchingFromHostIPs(Predicate predicate) { return (A) this; } Iterator each = hostIPs.iterator(); - List visitables = _visitables.get("hostIPs"); + List visitables = this._visitables.get("hostIPs"); while (each.hasNext()) { V1HostIPBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1426,7 +1576,7 @@ public A removeMatchingFromInitContainerStatuses(Predicate each = initContainerStatuses.iterator(); - List visitables = _visitables.get("initContainerStatuses"); + List visitables = this._visitables.get("initContainerStatuses"); while (each.hasNext()) { V1ContainerStatusBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1437,12 +1587,28 @@ public A removeMatchingFromInitContainerStatuses(Predicate predicate) { + if (nodeAllocatableResourceClaimStatuses == null) { + return (A) this; + } + Iterator each = nodeAllocatableResourceClaimStatuses.iterator(); + List visitables = this._visitables.get("nodeAllocatableResourceClaimStatuses"); + while (each.hasNext()) { + V1NodeAllocatableResourceClaimStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + public A removeMatchingFromPodIPs(Predicate predicate) { if (podIPs == null) { return (A) this; } Iterator each = podIPs.iterator(); - List visitables = _visitables.get("podIPs"); + List visitables = this._visitables.get("podIPs"); while (each.hasNext()) { V1PodIPBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1458,7 +1624,7 @@ public A removeMatchingFromResourceClaimStatuses(Predicate each = resourceClaimStatuses.iterator(); - List visitables = _visitables.get("resourceClaimStatuses"); + List visitables = this._visitables.get("resourceClaimStatuses"); while (each.hasNext()) { V1PodResourceClaimStatusBuilder builder = each.next(); if (predicate.test(builder)) { @@ -1489,6 +1655,10 @@ public InitContainerStatusesNested setNewInitContainerStatusLike(int index,V1 return new InitContainerStatusesNested(index, item); } + public NodeAllocatableResourceClaimStatusesNested setNewNodeAllocatableResourceClaimStatusLike(int index,V1NodeAllocatableResourceClaimStatus item) { + return new NodeAllocatableResourceClaimStatusesNested(index, item); + } + public PodIPsNested setNewPodIPLike(int index,V1PodIP item) { return new PodIPsNested(index, item); } @@ -1502,12 +1672,12 @@ public A setToConditions(int index,V1PodCondition item) { this.conditions = new ArrayList(); } V1PodConditionBuilder builder = new V1PodConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } @@ -1517,12 +1687,12 @@ public A setToContainerStatuses(int index,V1ContainerStatus item) { this.containerStatuses = new ArrayList(); } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= containerStatuses.size()) { - _visitables.get("containerStatuses").add(builder); - containerStatuses.add(builder); + if (index < 0 || index >= this.containerStatuses.size()) { + this._visitables.get("containerStatuses").add(builder); + this.containerStatuses.add(builder); } else { - _visitables.get("containerStatuses").add(builder); - containerStatuses.set(index, builder); + this._visitables.get("containerStatuses").add(builder); + this.containerStatuses.set(index, builder); } return (A) this; } @@ -1532,12 +1702,12 @@ public A setToEphemeralContainerStatuses(int index,V1ContainerStatus item) { this.ephemeralContainerStatuses = new ArrayList(); } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= ephemeralContainerStatuses.size()) { - _visitables.get("ephemeralContainerStatuses").add(builder); - ephemeralContainerStatuses.add(builder); + if (index < 0 || index >= this.ephemeralContainerStatuses.size()) { + this._visitables.get("ephemeralContainerStatuses").add(builder); + this.ephemeralContainerStatuses.add(builder); } else { - _visitables.get("ephemeralContainerStatuses").add(builder); - ephemeralContainerStatuses.set(index, builder); + this._visitables.get("ephemeralContainerStatuses").add(builder); + this.ephemeralContainerStatuses.set(index, builder); } return (A) this; } @@ -1547,12 +1717,12 @@ public A setToHostIPs(int index,V1HostIP item) { this.hostIPs = new ArrayList(); } V1HostIPBuilder builder = new V1HostIPBuilder(item); - if (index < 0 || index >= hostIPs.size()) { - _visitables.get("hostIPs").add(builder); - hostIPs.add(builder); + if (index < 0 || index >= this.hostIPs.size()) { + this._visitables.get("hostIPs").add(builder); + this.hostIPs.add(builder); } else { - _visitables.get("hostIPs").add(builder); - hostIPs.set(index, builder); + this._visitables.get("hostIPs").add(builder); + this.hostIPs.set(index, builder); } return (A) this; } @@ -1562,12 +1732,27 @@ public A setToInitContainerStatuses(int index,V1ContainerStatus item) { this.initContainerStatuses = new ArrayList(); } V1ContainerStatusBuilder builder = new V1ContainerStatusBuilder(item); - if (index < 0 || index >= initContainerStatuses.size()) { - _visitables.get("initContainerStatuses").add(builder); - initContainerStatuses.add(builder); + if (index < 0 || index >= this.initContainerStatuses.size()) { + this._visitables.get("initContainerStatuses").add(builder); + this.initContainerStatuses.add(builder); } else { - _visitables.get("initContainerStatuses").add(builder); - initContainerStatuses.set(index, builder); + this._visitables.get("initContainerStatuses").add(builder); + this.initContainerStatuses.set(index, builder); + } + return (A) this; + } + + public A setToNodeAllocatableResourceClaimStatuses(int index,V1NodeAllocatableResourceClaimStatus item) { + if (this.nodeAllocatableResourceClaimStatuses == null) { + this.nodeAllocatableResourceClaimStatuses = new ArrayList(); + } + V1NodeAllocatableResourceClaimStatusBuilder builder = new V1NodeAllocatableResourceClaimStatusBuilder(item); + if (index < 0 || index >= this.nodeAllocatableResourceClaimStatuses.size()) { + this._visitables.get("nodeAllocatableResourceClaimStatuses").add(builder); + this.nodeAllocatableResourceClaimStatuses.add(builder); + } else { + this._visitables.get("nodeAllocatableResourceClaimStatuses").add(builder); + this.nodeAllocatableResourceClaimStatuses.set(index, builder); } return (A) this; } @@ -1577,12 +1762,12 @@ public A setToPodIPs(int index,V1PodIP item) { this.podIPs = new ArrayList(); } V1PodIPBuilder builder = new V1PodIPBuilder(item); - if (index < 0 || index >= podIPs.size()) { - _visitables.get("podIPs").add(builder); - podIPs.add(builder); + if (index < 0 || index >= this.podIPs.size()) { + this._visitables.get("podIPs").add(builder); + this.podIPs.add(builder); } else { - _visitables.get("podIPs").add(builder); - podIPs.set(index, builder); + this._visitables.get("podIPs").add(builder); + this.podIPs.set(index, builder); } return (A) this; } @@ -1592,12 +1777,12 @@ public A setToResourceClaimStatuses(int index,V1PodResourceClaimStatus item) { this.resourceClaimStatuses = new ArrayList(); } V1PodResourceClaimStatusBuilder builder = new V1PodResourceClaimStatusBuilder(item); - if (index < 0 || index >= resourceClaimStatuses.size()) { - _visitables.get("resourceClaimStatuses").add(builder); - resourceClaimStatuses.add(builder); + if (index < 0 || index >= this.resourceClaimStatuses.size()) { + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); } else { - _visitables.get("resourceClaimStatuses").add(builder); - resourceClaimStatuses.set(index, builder); + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.set(index, builder); } return (A) this; } @@ -1650,6 +1835,11 @@ public String toString() { sb.append(message); sb.append(","); } + if (!(nodeAllocatableResourceClaimStatuses == null) && !(nodeAllocatableResourceClaimStatuses.isEmpty())) { + sb.append("nodeAllocatableResourceClaimStatuses:"); + sb.append(nodeAllocatableResourceClaimStatuses); + sb.append(","); + } if (!(nominatedNodeName == null)) { sb.append("nominatedNodeName:"); sb.append(nominatedNodeName); @@ -1895,6 +2085,34 @@ public ResourcesNested withNewResourcesLike(V1ResourceRequirements item) { return new ResourcesNested(item); } + public A withNodeAllocatableResourceClaimStatuses(List nodeAllocatableResourceClaimStatuses) { + if (this.nodeAllocatableResourceClaimStatuses != null) { + this._visitables.get("nodeAllocatableResourceClaimStatuses").clear(); + } + if (nodeAllocatableResourceClaimStatuses != null) { + this.nodeAllocatableResourceClaimStatuses = new ArrayList(); + for (V1NodeAllocatableResourceClaimStatus item : nodeAllocatableResourceClaimStatuses) { + this.addToNodeAllocatableResourceClaimStatuses(item); + } + } else { + this.nodeAllocatableResourceClaimStatuses = null; + } + return (A) this; + } + + public A withNodeAllocatableResourceClaimStatuses(V1NodeAllocatableResourceClaimStatus... nodeAllocatableResourceClaimStatuses) { + if (this.nodeAllocatableResourceClaimStatuses != null) { + this.nodeAllocatableResourceClaimStatuses.clear(); + _visitables.remove("nodeAllocatableResourceClaimStatuses"); + } + if (nodeAllocatableResourceClaimStatuses != null) { + for (V1NodeAllocatableResourceClaimStatus item : nodeAllocatableResourceClaimStatuses) { + this.addToNodeAllocatableResourceClaimStatuses(item); + } + } + return (A) this; + } + public A withNominatedNodeName(String nominatedNodeName) { this.nominatedNodeName = nominatedNodeName; return (A) this; @@ -2113,6 +2331,25 @@ public N endInitContainerStatus() { return and(); } + } + public class NodeAllocatableResourceClaimStatusesNested extends V1NodeAllocatableResourceClaimStatusFluent> implements Nested{ + + V1NodeAllocatableResourceClaimStatusBuilder builder; + int index; + + NodeAllocatableResourceClaimStatusesNested(int index,V1NodeAllocatableResourceClaimStatus item) { + this.index = index; + this.builder = new V1NodeAllocatableResourceClaimStatusBuilder(this, item); + } + + public N and() { + return (N) V1PodStatusFluent.this.setToNodeAllocatableResourceClaimStatuses(index, builder.build()); + } + + public N endNodeAllocatableResourceClaimStatus() { + return and(); + } + } public class PodIPsNested extends V1PodIPFluent> implements Nested{ diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java index 5a06a2776a..081155400b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java index 8629382431..ced4dcb1e0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java index 9b116d6742..404fff71f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java index 8bc699ba02..a6ce3380e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1PodTemplate item : items) { V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1PodTemplate... items) { } for (V1PodTemplate item : items) { V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1PodTemplate item) { this.items = new ArrayList(); } V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1PodTemplateBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1PodTemplate item) { this.items = new ArrayList(); } V1PodTemplateBuilder builder = new V1PodTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java index 2b720bc70c..e1471f6926 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java index 448d7adc22..c60115d044 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java index dbadca5076..d284da4a90 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java index bbc8a949d2..e3b7b89eb2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRuleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java index 1c14fc5f1d..a331d04205 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java index 62bb608643..279ca97e87 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjectsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ public A addAllToNonResourceRules(Collection items) { } for (V1NonResourcePolicyRule item : items) { V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); - _visitables.get("nonResourceRules").add(builder); + this._visitables.get("nonResourceRules").add(builder); this.nonResourceRules.add(builder); } return (A) this; @@ -61,7 +61,7 @@ public A addAllToResourceRules(Collection items) { } for (V1ResourcePolicyRule item : items) { V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); - _visitables.get("resourceRules").add(builder); + this._visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } return (A) this; @@ -73,7 +73,7 @@ public A addAllToSubjects(Collection items) { } for (FlowcontrolV1Subject item : items) { FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); - _visitables.get("subjects").add(builder); + this._visitables.get("subjects").add(builder); this.subjects.add(builder); } return (A) this; @@ -109,7 +109,7 @@ public A addToNonResourceRules(V1NonResourcePolicyRule... items) { } for (V1NonResourcePolicyRule item : items) { V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); - _visitables.get("nonResourceRules").add(builder); + this._visitables.get("nonResourceRules").add(builder); this.nonResourceRules.add(builder); } return (A) this; @@ -120,12 +120,12 @@ public A addToNonResourceRules(int index,V1NonResourcePolicyRule item) { this.nonResourceRules = new ArrayList(); } V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { - _visitables.get("nonResourceRules").add(builder); - nonResourceRules.add(builder); + if (index < 0 || index >= this.nonResourceRules.size()) { + this._visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.add(builder); } else { - _visitables.get("nonResourceRules").add(builder); - nonResourceRules.add(index, builder); + this._visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.add(index, builder); } return (A) this; } @@ -136,7 +136,7 @@ public A addToResourceRules(V1ResourcePolicyRule... items) { } for (V1ResourcePolicyRule item : items) { V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); - _visitables.get("resourceRules").add(builder); + this._visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } return (A) this; @@ -147,12 +147,12 @@ public A addToResourceRules(int index,V1ResourcePolicyRule item) { this.resourceRules = new ArrayList(); } V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); + if (index < 0 || index >= this.resourceRules.size()) { + this._visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } else { - _visitables.get("resourceRules").add(builder); - resourceRules.add(index, builder); + this._visitables.get("resourceRules").add(builder); + this.resourceRules.add(index, builder); } return (A) this; } @@ -163,7 +163,7 @@ public A addToSubjects(FlowcontrolV1Subject... items) { } for (FlowcontrolV1Subject item : items) { FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); - _visitables.get("subjects").add(builder); + this._visitables.get("subjects").add(builder); this.subjects.add(builder); } return (A) this; @@ -174,12 +174,12 @@ public A addToSubjects(int index,FlowcontrolV1Subject item) { this.subjects = new ArrayList(); } FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { - _visitables.get("subjects").add(builder); - subjects.add(builder); + if (index < 0 || index >= this.subjects.size()) { + this._visitables.get("subjects").add(builder); + this.subjects.add(builder); } else { - _visitables.get("subjects").add(builder); - subjects.add(index, builder); + this._visitables.get("subjects").add(builder); + this.subjects.add(index, builder); } return (A) this; } @@ -519,7 +519,7 @@ public A removeMatchingFromNonResourceRules(Predicate each = nonResourceRules.iterator(); - List visitables = _visitables.get("nonResourceRules"); + List visitables = this._visitables.get("nonResourceRules"); while (each.hasNext()) { V1NonResourcePolicyRuleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -535,7 +535,7 @@ public A removeMatchingFromResourceRules(Predicate return (A) this; } Iterator each = resourceRules.iterator(); - List visitables = _visitables.get("resourceRules"); + List visitables = this._visitables.get("resourceRules"); while (each.hasNext()) { V1ResourcePolicyRuleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -551,7 +551,7 @@ public A removeMatchingFromSubjects(Predicate predi return (A) this; } Iterator each = subjects.iterator(); - List visitables = _visitables.get("subjects"); + List visitables = this._visitables.get("subjects"); while (each.hasNext()) { FlowcontrolV1SubjectBuilder builder = each.next(); if (predicate.test(builder)) { @@ -579,12 +579,12 @@ public A setToNonResourceRules(int index,V1NonResourcePolicyRule item) { this.nonResourceRules = new ArrayList(); } V1NonResourcePolicyRuleBuilder builder = new V1NonResourcePolicyRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { - _visitables.get("nonResourceRules").add(builder); - nonResourceRules.add(builder); + if (index < 0 || index >= this.nonResourceRules.size()) { + this._visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.add(builder); } else { - _visitables.get("nonResourceRules").add(builder); - nonResourceRules.set(index, builder); + this._visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.set(index, builder); } return (A) this; } @@ -594,12 +594,12 @@ public A setToResourceRules(int index,V1ResourcePolicyRule item) { this.resourceRules = new ArrayList(); } V1ResourcePolicyRuleBuilder builder = new V1ResourcePolicyRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); + if (index < 0 || index >= this.resourceRules.size()) { + this._visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } else { - _visitables.get("resourceRules").add(builder); - resourceRules.set(index, builder); + this._visitables.get("resourceRules").add(builder); + this.resourceRules.set(index, builder); } return (A) this; } @@ -609,12 +609,12 @@ public A setToSubjects(int index,FlowcontrolV1Subject item) { this.subjects = new ArrayList(); } FlowcontrolV1SubjectBuilder builder = new FlowcontrolV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { - _visitables.get("subjects").add(builder); - subjects.add(builder); + if (index < 0 || index >= this.subjects.size()) { + this._visitables.get("subjects").add(builder); + this.subjects.add(builder); } else { - _visitables.get("subjects").add(builder); - subjects.set(index, builder); + this._visitables.get("subjects").add(builder); + this.subjects.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java index f674240a4e..58d5b9110a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java index 97c01bb912..4004903428 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java index 97bf7ec41f..33c137bfc7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java index 9295a75e65..d32d626906 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java index 37241e03db..3a4b8730d8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java index 240e36c612..b5423c70e2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreconditionsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java index ec4088e68c..9093493185 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java index 0bbce23e2d..ecff2aee66 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTermFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java index 7bb5c0b979..3387707502 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java index f298cf0687..0cdf2523d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java index 3006cbedd9..43676f91b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java index a3114f127a..25b3976d2a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1PriorityClass item : items) { V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1PriorityClass... items) { } for (V1PriorityClass item : items) { V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1PriorityClass item) { this.items = new ArrayList(); } V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1PriorityClassBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1PriorityClass item) { this.items = new ArrayList(); } V1PriorityClassBuilder builder = new V1PriorityClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java index 1115e3a783..4ca5d76c23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java index 768d4ef69a..8deb53eb2b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java index d7400ac411..a39935170a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java index 45c27bc216..9261137951 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java index e800fa42d0..574c4376dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java index ad94c09952..b99b43b37d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1PriorityLevelConfiguration item : items) { V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1PriorityLevelConfiguration... items) { } for (V1PriorityLevelConfiguration item : items) { V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1PriorityLevelConfiguration item) { this.items = new ArrayList(); } V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1PriorityLevelConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1PriorityLevelConfiguration item) { this.items = new ArrayList(); } V1PriorityLevelConfigurationBuilder builder = new V1PriorityLevelConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java index 3a42842e93..78f2129db5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java index 0bb7c3780c..22031688a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java index 8ac6b20db4..37d0f34d3f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java index 6ce436b21a..ee84abaef0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java index 1946e4cc5d..e8ccb49b80 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java index f399c94373..61e784fc06 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToConditions(Collection it } for (V1PriorityLevelConfigurationCondition item : items) { V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToConditions(V1PriorityLevelConfigurationCondition... items) { } for (V1PriorityLevelConfigurationCondition item : items) { V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToConditions(int index,V1PriorityLevelConfigurationCondition item) { this.conditions = new ArrayList(); } V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromConditions(Predicate each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1PriorityLevelConfigurationConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToConditions(int index,V1PriorityLevelConfigurationCondition item) { this.conditions = new ArrayList(); } V1PriorityLevelConfigurationConditionBuilder builder = new V1PriorityLevelConfigurationConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java index 25047fc6bc..f077e3528c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java index 2ee33c1f72..a9e23d1c66 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProbeFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java index 47766469f8..20fc3d1d2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java index 3a0b3b5714..1cd6f9f74c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ public A addAllToSources(Collection items) { } for (V1VolumeProjection item : items) { V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - _visitables.get("sources").add(builder); + this._visitables.get("sources").add(builder); this.sources.add(builder); } return (A) this; @@ -69,7 +69,7 @@ public A addToSources(V1VolumeProjection... items) { } for (V1VolumeProjection item : items) { V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - _visitables.get("sources").add(builder); + this._visitables.get("sources").add(builder); this.sources.add(builder); } return (A) this; @@ -80,12 +80,12 @@ public A addToSources(int index,V1VolumeProjection item) { this.sources = new ArrayList(); } V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - if (index < 0 || index >= sources.size()) { - _visitables.get("sources").add(builder); - sources.add(builder); + if (index < 0 || index >= this.sources.size()) { + this._visitables.get("sources").add(builder); + this.sources.add(builder); } else { - _visitables.get("sources").add(builder); - sources.add(index, builder); + this._visitables.get("sources").add(builder); + this.sources.add(index, builder); } return (A) this; } @@ -233,7 +233,7 @@ public A removeMatchingFromSources(Predicate predicat return (A) this; } Iterator each = sources.iterator(); - List visitables = _visitables.get("sources"); + List visitables = this._visitables.get("sources"); while (each.hasNext()) { V1VolumeProjectionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -253,12 +253,12 @@ public A setToSources(int index,V1VolumeProjection item) { this.sources = new ArrayList(); } V1VolumeProjectionBuilder builder = new V1VolumeProjectionBuilder(item); - if (index < 0 || index >= sources.size()) { - _visitables.get("sources").add(builder); - sources.add(builder); + if (index < 0 || index >= this.sources.size()) { + this._visitables.get("sources").add(builder); + this.sources.add(builder); } else { - _visitables.get("sources").add(builder); - sources.set(index, builder); + this._visitables.get("sources").add(builder); + this.sources.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java index 8a3da03464..8038025434 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java index 20bbaca3d2..14351d3ae0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java index 3856e3a9ae..19576b00e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java index 3e9057e6ab..829b20515e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java index 69d683833f..2f9c6deb5c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java index 7b49a12bcf..1bb35709db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java index fce6d30398..842de1cd89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java index e8a1c1e56c..62d3bac88f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java index b036fcfb29..f816eb3645 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java index 069386bc0d..32152e8116 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java index a62033fc22..47cedccd83 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java index a9fd4af614..90e7f478a7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java index 5c32ac2aa1..6af3f73411 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java index 52a04c83cd..2ad3a8b33b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1ReplicaSet item : items) { V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1ReplicaSet... items) { } for (V1ReplicaSet item : items) { V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1ReplicaSet item) { this.items = new ArrayList(); } V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ReplicaSetBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1ReplicaSet item) { this.items = new ArrayList(); } V1ReplicaSetBuilder builder = new V1ReplicaSetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java index f588058738..5c91ef0d6d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java index ad87055e94..62e0aab4ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java index 2669e8f151..aec4e39311 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java index c486e4b192..65b273aff5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -55,7 +55,7 @@ public A addAllToConditions(Collection items) { } for (V1ReplicaSetCondition item : items) { V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -75,7 +75,7 @@ public A addToConditions(V1ReplicaSetCondition... items) { } for (V1ReplicaSetCondition item : items) { V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -86,12 +86,12 @@ public A addToConditions(int index,V1ReplicaSetCondition item) { this.conditions = new ArrayList(); } V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -299,7 +299,7 @@ public A removeMatchingFromConditions(Predicate pr return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ReplicaSetConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -319,12 +319,12 @@ public A setToConditions(int index,V1ReplicaSetCondition item) { this.conditions = new ArrayList(); } V1ReplicaSetConditionBuilder builder = new V1ReplicaSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java index 44f9abcf02..de2d2a3bb0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java index 2ac3e9dd8b..1f2531c0cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java index 2ab225e57b..c89a013760 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java index 0fe250f9e0..a494a8037e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java index cf51e73aae..697fbd0b37 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java index 5031a4a4b0..8ce2c5c470 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1ReplicationController item : items) { V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1ReplicationController... items) { } for (V1ReplicationController item : items) { V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1ReplicationController item) { this.items = new ArrayList(); } V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ReplicationControllerBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1ReplicationController item) { this.items = new ArrayList(); } V1ReplicationControllerBuilder builder = new V1ReplicationControllerBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java index 6e4658056e..5f8dd7291b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java index 085e062daf..e2c1902be5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java index 660e35394e..cc70d4507c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java index 2c0900f274..31c5dbf6ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -54,7 +54,7 @@ public A addAllToConditions(Collection items) } for (V1ReplicationControllerCondition item : items) { V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -74,7 +74,7 @@ public A addToConditions(V1ReplicationControllerCondition... items) { } for (V1ReplicationControllerCondition item : items) { V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -85,12 +85,12 @@ public A addToConditions(int index,V1ReplicationControllerCondition item) { this.conditions = new ArrayList(); } V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -286,7 +286,7 @@ public A removeMatchingFromConditions(Predicate each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ReplicationControllerConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -306,12 +306,12 @@ public A setToConditions(int index,V1ReplicationControllerCondition item) { this.conditions = new ArrayList(); } V1ReplicationControllerConditionBuilder builder = new V1ReplicationControllerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java index fe05fd5e68..7827bfa4ef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java index 300c2ce242..f996459dbc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java index fdedd832a8..00517263e6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java index 68e47338e1..c95bad4307 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListBuilder.java index 68e20b00e8..69c97a9ffb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java index 01bed6ae67..9b8928001e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (ResourceV1ResourceClaim item : items) { ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(ResourceV1ResourceClaim... items) { } for (ResourceV1ResourceClaim item : items) { ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,ResourceV1ResourceClaim item) { this.items = new ArrayList(); } ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { ResourceV1ResourceClaimBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,ResourceV1ResourceClaim item) { this.items = new ArrayList(); } ResourceV1ResourceClaimBuilder builder = new ResourceV1ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java index ef1f1c5d14..086c534938 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java index 911c2e79b8..beb1bd7258 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java index 43042b5373..b9a768fe8d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java index fe634a5de2..c6f743c571 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -50,7 +50,7 @@ public A addAllToDevices(Collection items) { } for (V1AllocatedDeviceStatus item : items) { V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").add(builder); + this._visitables.get("devices").add(builder); this.devices.add(builder); } return (A) this; @@ -62,7 +62,7 @@ public A addAllToReservedFor(Collection items) } for (V1ResourceClaimConsumerReference item : items) { V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); - _visitables.get("reservedFor").add(builder); + this._visitables.get("reservedFor").add(builder); this.reservedFor.add(builder); } return (A) this; @@ -90,7 +90,7 @@ public A addToDevices(V1AllocatedDeviceStatus... items) { } for (V1AllocatedDeviceStatus item : items) { V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").add(builder); + this._visitables.get("devices").add(builder); this.devices.add(builder); } return (A) this; @@ -101,12 +101,12 @@ public A addToDevices(int index,V1AllocatedDeviceStatus item) { this.devices = new ArrayList(); } V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); + if (index < 0 || index >= this.devices.size()) { + this._visitables.get("devices").add(builder); + this.devices.add(builder); } else { - _visitables.get("devices").add(builder); - devices.add(index, builder); + this._visitables.get("devices").add(builder); + this.devices.add(index, builder); } return (A) this; } @@ -117,7 +117,7 @@ public A addToReservedFor(V1ResourceClaimConsumerReference... items) { } for (V1ResourceClaimConsumerReference item : items) { V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); - _visitables.get("reservedFor").add(builder); + this._visitables.get("reservedFor").add(builder); this.reservedFor.add(builder); } return (A) this; @@ -128,12 +128,12 @@ public A addToReservedFor(int index,V1ResourceClaimConsumerReference item) { this.reservedFor = new ArrayList(); } V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { - _visitables.get("reservedFor").add(builder); - reservedFor.add(builder); + if (index < 0 || index >= this.reservedFor.size()) { + this._visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); } else { - _visitables.get("reservedFor").add(builder); - reservedFor.add(index, builder); + this._visitables.get("reservedFor").add(builder); + this.reservedFor.add(index, builder); } return (A) this; } @@ -395,7 +395,7 @@ public A removeMatchingFromDevices(Predicate pre return (A) this; } Iterator each = devices.iterator(); - List visitables = _visitables.get("devices"); + List visitables = this._visitables.get("devices"); while (each.hasNext()) { V1AllocatedDeviceStatusBuilder builder = each.next(); if (predicate.test(builder)) { @@ -411,7 +411,7 @@ public A removeMatchingFromReservedFor(Predicate each = reservedFor.iterator(); - List visitables = _visitables.get("reservedFor"); + List visitables = this._visitables.get("reservedFor"); while (each.hasNext()) { V1ResourceClaimConsumerReferenceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -435,12 +435,12 @@ public A setToDevices(int index,V1AllocatedDeviceStatus item) { this.devices = new ArrayList(); } V1AllocatedDeviceStatusBuilder builder = new V1AllocatedDeviceStatusBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); + if (index < 0 || index >= this.devices.size()) { + this._visitables.get("devices").add(builder); + this.devices.add(builder); } else { - _visitables.get("devices").add(builder); - devices.set(index, builder); + this._visitables.get("devices").add(builder); + this.devices.set(index, builder); } return (A) this; } @@ -450,12 +450,12 @@ public A setToReservedFor(int index,V1ResourceClaimConsumerReference item) { this.reservedFor = new ArrayList(); } V1ResourceClaimConsumerReferenceBuilder builder = new V1ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { - _visitables.get("reservedFor").add(builder); - reservedFor.add(builder); + if (index < 0 || index >= this.reservedFor.size()) { + this._visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); } else { - _visitables.get("reservedFor").add(builder); - reservedFor.set(index, builder); + this._visitables.get("reservedFor").add(builder); + this.reservedFor.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java index 7660341024..d54ba41ae8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java index ebc9d92a76..f9c6503ad4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListBuilder.java index 2102ea2416..f1f24224af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java index 73b112157f..3ff19ed6d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1ResourceClaimTemplate item : items) { V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1ResourceClaimTemplate... items) { } for (V1ResourceClaimTemplate item : items) { V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1ResourceClaimTemplate item) { this.items = new ArrayList(); } V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ResourceClaimTemplateBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1ResourceClaimTemplate item) { this.items = new ArrayList(); } V1ResourceClaimTemplateBuilder builder = new V1ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java index 2ad7ab1a83..bc855a67d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java index ad5bea1bb1..25bb72622a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java index 7aee8cab22..64e1fd57e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java index 843b9cca01..c3e611e2ff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelectorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java index 41f2c5b94e..dd80a03fcb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -39,6 +39,7 @@ public V1ResourceHealthBuilder(V1ResourceHealthFluent fluent,V1ResourceHealth public V1ResourceHealth build() { V1ResourceHealth buildable = new V1ResourceHealth(); buildable.setHealth(fluent.getHealth()); + buildable.setMessage(fluent.getMessage()); buildable.setResourceID(fluent.getResourceID()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java index d5fedb0334..d49ead4225 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealthFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -26,6 +26,7 @@ public class V1ResourceHealthFluent> extends BaseFluent{ private String health; + private String message; private String resourceID; public V1ResourceHealthFluent() { @@ -39,6 +40,7 @@ protected void copyInstance(V1ResourceHealth instance) { instance = instance != null ? instance : new V1ResourceHealth(); if (instance != null) { this.withHealth(instance.getHealth()); + this.withMessage(instance.getMessage()); this.withResourceID(instance.getResourceID()); } } @@ -57,6 +59,9 @@ public boolean equals(Object o) { if (!(Objects.equals(health, that.health))) { return false; } + if (!(Objects.equals(message, that.message))) { + return false; + } if (!(Objects.equals(resourceID, that.resourceID))) { return false; } @@ -67,6 +72,10 @@ public String getHealth() { return this.health; } + public String getMessage() { + return this.message; + } + public String getResourceID() { return this.resourceID; } @@ -75,12 +84,16 @@ public boolean hasHealth() { return this.health != null; } + public boolean hasMessage() { + return this.message != null; + } + public boolean hasResourceID() { return this.resourceID != null; } public int hashCode() { - return Objects.hash(health, resourceID); + return Objects.hash(health, message, resourceID); } public String toString() { @@ -91,6 +104,11 @@ public String toString() { sb.append(health); sb.append(","); } + if (!(message == null)) { + sb.append("message:"); + sb.append(message); + sb.append(","); + } if (!(resourceID == null)) { sb.append("resourceID:"); sb.append(resourceID); @@ -104,6 +122,11 @@ public A withHealth(String health) { return (A) this; } + public A withMessage(String message) { + this.message = message; + return (A) this; + } + public A withResourceID(String resourceID) { this.resourceID = resourceID; return (A) this; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java index adb5b98606..4ba7d06421 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java index 23ce7ab29d..20a316922b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRuleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolBuilder.java index d65c94a7ea..1b580e81c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java index 1b09849486..ef78d358bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePoolFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java index 95c69eeb64..7e58af0b56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java index ef1f1013a7..1a36bcec12 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java index fbff58f2af..314a370f9c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java index df24f1508d..d23ce98b6c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1ResourceQuota item : items) { V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1ResourceQuota... items) { } for (V1ResourceQuota item : items) { V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1ResourceQuota item) { this.items = new ArrayList(); } V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ResourceQuotaBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1ResourceQuota item) { this.items = new ArrayList(); } V1ResourceQuotaBuilder builder = new V1ResourceQuotaBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java index 2c2a1e39d5..91c8d67ea5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java index f02be327e9..6d5376cd6d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java index a724de54d2..3935858390 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java index 730663f08e..7b492a1895 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java index f3b50deac6..3fbba1b851 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java index a5dd6a6293..0492eae67b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirementsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -52,7 +52,7 @@ public A addAllToClaims(Collection items) { } for (CoreV1ResourceClaim item : items) { CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); - _visitables.get("claims").add(builder); + this._visitables.get("claims").add(builder); this.claims.add(builder); } return (A) this; @@ -72,7 +72,7 @@ public A addToClaims(CoreV1ResourceClaim... items) { } for (CoreV1ResourceClaim item : items) { CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); - _visitables.get("claims").add(builder); + this._visitables.get("claims").add(builder); this.claims.add(builder); } return (A) this; @@ -83,12 +83,12 @@ public A addToClaims(int index,CoreV1ResourceClaim item) { this.claims = new ArrayList(); } CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); - if (index < 0 || index >= claims.size()) { - _visitables.get("claims").add(builder); - claims.add(builder); + if (index < 0 || index >= this.claims.size()) { + this._visitables.get("claims").add(builder); + this.claims.add(builder); } else { - _visitables.get("claims").add(builder); - claims.add(index, builder); + this._visitables.get("claims").add(builder); + this.claims.add(index, builder); } return (A) this; } @@ -336,7 +336,7 @@ public A removeMatchingFromClaims(Predicate predicat return (A) this; } Iterator each = claims.iterator(); - List visitables = _visitables.get("claims"); + List visitables = this._visitables.get("claims"); while (each.hasNext()) { CoreV1ResourceClaimBuilder builder = each.next(); if (predicate.test(builder)) { @@ -356,12 +356,12 @@ public A setToClaims(int index,CoreV1ResourceClaim item) { this.claims = new ArrayList(); } CoreV1ResourceClaimBuilder builder = new CoreV1ResourceClaimBuilder(item); - if (index < 0 || index >= claims.size()) { - _visitables.get("claims").add(builder); - claims.add(builder); + if (index < 0 || index >= this.claims.size()) { + this._visitables.get("claims").add(builder); + this.claims.add(builder); } else { - _visitables.get("claims").add(builder); - claims.set(index, builder); + this._visitables.get("claims").add(builder); + this.claims.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java index 49ea6c5a9d..01800a337f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java index 032d2b133e..1a7e4302d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRuleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java index 8b6c70932f..8764170e5a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java index aa7c5e7caa..cfc9a5708d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListBuilder.java index 26b09c4769..0a46ed2858 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java index 5cdf720b66..52796f11b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1ResourceSlice item : items) { V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1ResourceSlice... items) { } for (V1ResourceSlice item : items) { V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1ResourceSlice item) { this.items = new ArrayList(); } V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ResourceSliceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1ResourceSlice item) { this.items = new ArrayList(); } V1ResourceSliceBuilder builder = new V1ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java index 2284b7ef7c..c8a06543fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java index 185e399afa..22e5f69570 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -56,7 +56,7 @@ public A addAllToDevices(Collection items) { } for (V1Device item : items) { V1DeviceBuilder builder = new V1DeviceBuilder(item); - _visitables.get("devices").add(builder); + this._visitables.get("devices").add(builder); this.devices.add(builder); } return (A) this; @@ -68,7 +68,7 @@ public A addAllToSharedCounters(Collection items) { } for (V1CounterSet item : items) { V1CounterSetBuilder builder = new V1CounterSetBuilder(item); - _visitables.get("sharedCounters").add(builder); + this._visitables.get("sharedCounters").add(builder); this.sharedCounters.add(builder); } return (A) this; @@ -96,7 +96,7 @@ public A addToDevices(V1Device... items) { } for (V1Device item : items) { V1DeviceBuilder builder = new V1DeviceBuilder(item); - _visitables.get("devices").add(builder); + this._visitables.get("devices").add(builder); this.devices.add(builder); } return (A) this; @@ -107,12 +107,12 @@ public A addToDevices(int index,V1Device item) { this.devices = new ArrayList(); } V1DeviceBuilder builder = new V1DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); + if (index < 0 || index >= this.devices.size()) { + this._visitables.get("devices").add(builder); + this.devices.add(builder); } else { - _visitables.get("devices").add(builder); - devices.add(index, builder); + this._visitables.get("devices").add(builder); + this.devices.add(index, builder); } return (A) this; } @@ -123,7 +123,7 @@ public A addToSharedCounters(V1CounterSet... items) { } for (V1CounterSet item : items) { V1CounterSetBuilder builder = new V1CounterSetBuilder(item); - _visitables.get("sharedCounters").add(builder); + this._visitables.get("sharedCounters").add(builder); this.sharedCounters.add(builder); } return (A) this; @@ -134,12 +134,12 @@ public A addToSharedCounters(int index,V1CounterSet item) { this.sharedCounters = new ArrayList(); } V1CounterSetBuilder builder = new V1CounterSetBuilder(item); - if (index < 0 || index >= sharedCounters.size()) { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(builder); + if (index < 0 || index >= this.sharedCounters.size()) { + this._visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); } else { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(index, builder); + this._visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(index, builder); } return (A) this; } @@ -473,7 +473,7 @@ public A removeMatchingFromDevices(Predicate predicate) { return (A) this; } Iterator each = devices.iterator(); - List visitables = _visitables.get("devices"); + List visitables = this._visitables.get("devices"); while (each.hasNext()) { V1DeviceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -489,7 +489,7 @@ public A removeMatchingFromSharedCounters(Predicate predica return (A) this; } Iterator each = sharedCounters.iterator(); - List visitables = _visitables.get("sharedCounters"); + List visitables = this._visitables.get("sharedCounters"); while (each.hasNext()) { V1CounterSetBuilder builder = each.next(); if (predicate.test(builder)) { @@ -513,12 +513,12 @@ public A setToDevices(int index,V1Device item) { this.devices = new ArrayList(); } V1DeviceBuilder builder = new V1DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); + if (index < 0 || index >= this.devices.size()) { + this._visitables.get("devices").add(builder); + this.devices.add(builder); } else { - _visitables.get("devices").add(builder); - devices.set(index, builder); + this._visitables.get("devices").add(builder); + this.devices.set(index, builder); } return (A) this; } @@ -528,12 +528,12 @@ public A setToSharedCounters(int index,V1CounterSet item) { this.sharedCounters = new ArrayList(); } V1CounterSetBuilder builder = new V1CounterSetBuilder(item); - if (index < 0 || index >= sharedCounters.size()) { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(builder); + if (index < 0 || index >= this.sharedCounters.size()) { + this._visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); } else { - _visitables.get("sharedCounters").add(builder); - sharedCounters.set(index, builder); + this._visitables.get("sharedCounters").add(builder); + this.sharedCounters.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java index 83ab554bf5..8c4f85a31c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java index 3ee1c4b5a5..1fab40b42e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,7 +48,7 @@ public A addAllToResources(Collection items) { } for (V1ResourceHealth item : items) { V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); - _visitables.get("resources").add(builder); + this._visitables.get("resources").add(builder); this.resources.add(builder); } return (A) this; @@ -68,7 +68,7 @@ public A addToResources(V1ResourceHealth... items) { } for (V1ResourceHealth item : items) { V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); - _visitables.get("resources").add(builder); + this._visitables.get("resources").add(builder); this.resources.add(builder); } return (A) this; @@ -79,12 +79,12 @@ public A addToResources(int index,V1ResourceHealth item) { this.resources = new ArrayList(); } V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); - if (index < 0 || index >= resources.size()) { - _visitables.get("resources").add(builder); - resources.add(builder); + if (index < 0 || index >= this.resources.size()) { + this._visitables.get("resources").add(builder); + this.resources.add(builder); } else { - _visitables.get("resources").add(builder); - resources.add(index, builder); + this._visitables.get("resources").add(builder); + this.resources.add(index, builder); } return (A) this; } @@ -232,7 +232,7 @@ public A removeMatchingFromResources(Predicate predicat return (A) this; } Iterator each = resources.iterator(); - List visitables = _visitables.get("resources"); + List visitables = this._visitables.get("resources"); while (each.hasNext()) { V1ResourceHealthBuilder builder = each.next(); if (predicate.test(builder)) { @@ -252,12 +252,12 @@ public A setToResources(int index,V1ResourceHealth item) { this.resources = new ArrayList(); } V1ResourceHealthBuilder builder = new V1ResourceHealthBuilder(item); - if (index < 0 || index >= resources.size()) { - _visitables.get("resources").add(builder); - resources.add(builder); + if (index < 0 || index >= this.resources.size()) { + this._visitables.get("resources").add(builder); + this.resources.add(builder); } else { - _visitables.get("resources").add(builder); - resources.set(index, builder); + this._visitables.get("resources").add(builder); + this.resources.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java index ae7eb41caf..9378f0fe51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java index 5e59d6c139..a35fc26503 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -52,7 +52,7 @@ public A addAllToSubjects(Collection items) { } for (RbacV1Subject item : items) { RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - _visitables.get("subjects").add(builder); + this._visitables.get("subjects").add(builder); this.subjects.add(builder); } return (A) this; @@ -72,7 +72,7 @@ public A addToSubjects(RbacV1Subject... items) { } for (RbacV1Subject item : items) { RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - _visitables.get("subjects").add(builder); + this._visitables.get("subjects").add(builder); this.subjects.add(builder); } return (A) this; @@ -83,12 +83,12 @@ public A addToSubjects(int index,RbacV1Subject item) { this.subjects = new ArrayList(); } RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { - _visitables.get("subjects").add(builder); - subjects.add(builder); + if (index < 0 || index >= this.subjects.size()) { + this._visitables.get("subjects").add(builder); + this.subjects.add(builder); } else { - _visitables.get("subjects").add(builder); - subjects.add(index, builder); + this._visitables.get("subjects").add(builder); + this.subjects.add(index, builder); } return (A) this; } @@ -296,7 +296,7 @@ public A removeMatchingFromSubjects(Predicate predicate) { return (A) this; } Iterator each = subjects.iterator(); - List visitables = _visitables.get("subjects"); + List visitables = this._visitables.get("subjects"); while (each.hasNext()) { RbacV1SubjectBuilder builder = each.next(); if (predicate.test(builder)) { @@ -316,12 +316,12 @@ public A setToSubjects(int index,RbacV1Subject item) { this.subjects = new ArrayList(); } RbacV1SubjectBuilder builder = new RbacV1SubjectBuilder(item); - if (index < 0 || index >= subjects.size()) { - _visitables.get("subjects").add(builder); - subjects.add(builder); + if (index < 0 || index >= this.subjects.size()) { + this._visitables.get("subjects").add(builder); + this.subjects.add(builder); } else { - _visitables.get("subjects").add(builder); - subjects.set(index, builder); + this._visitables.get("subjects").add(builder); + this.subjects.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java index 9455a4c1c8..36728a59a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java index 81b56f11fc..e572fa1f1f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1RoleBinding item : items) { V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1RoleBinding... items) { } for (V1RoleBinding item : items) { V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1RoleBinding item) { this.items = new ArrayList(); } V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1RoleBindingBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1RoleBinding item) { this.items = new ArrayList(); } V1RoleBindingBuilder builder = new V1RoleBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java index 83a6d1bf1a..b46f1d2a00 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java index 61ed74c175..fdc8412230 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToRules(Collection items) { } for (V1PolicyRule item : items) { V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToRules(V1PolicyRule... items) { } for (V1PolicyRule item : items) { V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToRules(int index,V1PolicyRule item) { this.rules = new ArrayList(); } V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.add(index, builder); + this._visitables.get("rules").add(builder); + this.rules.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromRules(Predicate predicate) { return (A) this; } Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); + List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1PolicyRuleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToRules(int index,V1PolicyRule item) { this.rules = new ArrayList(); } V1PolicyRuleBuilder builder = new V1PolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.set(index, builder); + this._visitables.get("rules").add(builder); + this.rules.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java index c064cd7498..85c31fdd2a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java index 1069207d5b..0f4794f03a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1Role item : items) { V1RoleBuilder builder = new V1RoleBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1Role... items) { } for (V1Role item : items) { V1RoleBuilder builder = new V1RoleBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1Role item) { this.items = new ArrayList(); } V1RoleBuilder builder = new V1RoleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1RoleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1Role item) { this.items = new ArrayList(); } V1RoleBuilder builder = new V1RoleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java index 402111aaf0..b40d58a338 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java index f71003874d..78a4c345be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RoleRefFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java index 3e9da0fb91..ed9ec05606 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java index c01dbfcdb7..735f29b20a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSetFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java index 8e97d90a68..3ffbc90aa4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java index 1c9e3a44a0..a5fd90262e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeploymentFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java index 5fd22b4512..45f20eac84 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java index a7d89e91c4..b93e979da4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java index 9c6a52f4b3..a8066abd33 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java index 8c144e5d82..df89d0bf62 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperationsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java index bd5656eae7..c23bd1dfac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java index 40691a6783..727841e3de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java index 9b4bbd8d28..b8b331bd7e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java index c7e1813b1b..7553aa3493 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1RuntimeClass item : items) { V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1RuntimeClass... items) { } for (V1RuntimeClass item : items) { V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1RuntimeClass item) { this.items = new ArrayList(); } V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1RuntimeClassBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1RuntimeClass item) { this.items = new ArrayList(); } V1RuntimeClassBuilder builder = new V1RuntimeClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java index b1d78d3272..b9ffa368e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java index 98ca72f62b..8a324aaf16 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptionsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java index b90b00d154..6de2d90acc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java index 075de6f3f5..afe52c0f42 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java index 3b58cb4919..12d3ad3ae5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java index 27d9054516..ec7b4a0944 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java index bc4b0a8020..eab378cde7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java index 7b2b11458f..7033654396 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java index c9e40248dc..aa51e64788 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java index 0dab14f133..05fa5250bc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java index f3739da57c..7de00d7152 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java index c2cc546d55..0be8d0263e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java index 8a6ead2e7e..7f64c0793c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java index c9859061ab..4f8336b86d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SchedulingFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -50,7 +50,7 @@ public A addAllToTolerations(Collection items) { } for (V1Toleration item : items) { V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -90,7 +90,7 @@ public A addToTolerations(V1Toleration... items) { } for (V1Toleration item : items) { V1TolerationBuilder builder = new V1TolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -101,12 +101,12 @@ public A addToTolerations(int index,V1Toleration item) { this.tolerations = new ArrayList(); } V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.add(index, builder); } return (A) this; } @@ -278,7 +278,7 @@ public A removeMatchingFromTolerations(Predicate predicate) return (A) this; } Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); + List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1TolerationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -298,12 +298,12 @@ public A setToTolerations(int index,V1Toleration item) { this.tolerations = new ArrayList(); } V1TolerationBuilder builder = new V1TolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java index 8539097969..f4b7cab996 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java index e06cc2426e..121a724c66 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelectorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToMatchExpressions(Collection= matchExpressions.size()) { - _visitables.get("matchExpressions").add(builder); - matchExpressions.add(builder); + if (index < 0 || index >= this.matchExpressions.size()) { + this._visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); } else { - _visitables.get("matchExpressions").add(builder); - matchExpressions.add(index, builder); + this._visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromMatchExpressions(Predicate each = matchExpressions.iterator(); - List visitables = _visitables.get("matchExpressions"); + List visitables = this._visitables.get("matchExpressions"); while (each.hasNext()) { V1ScopedResourceSelectorRequirementBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToMatchExpressions(int index,V1ScopedResourceSelectorRequirement ite this.matchExpressions = new ArrayList(); } V1ScopedResourceSelectorRequirementBuilder builder = new V1ScopedResourceSelectorRequirementBuilder(item); - if (index < 0 || index >= matchExpressions.size()) { - _visitables.get("matchExpressions").add(builder); - matchExpressions.add(builder); + if (index < 0 || index >= this.matchExpressions.size()) { + this._visitables.get("matchExpressions").add(builder); + this.matchExpressions.add(builder); } else { - _visitables.get("matchExpressions").add(builder); - matchExpressions.set(index, builder); + this._visitables.get("matchExpressions").add(builder); + this.matchExpressions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java index f1d79a576e..7d8f83a2ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java index 702a6f10f5..5fa93c62a3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirementFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java index c6b673ec2b..7709027276 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java index eddb9afc7a..bebb7dd516 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfileFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java index 94b3786978..cdb17c3a59 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java index 9cbb5153b6..c92b0a5cde 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java index e74e5278e5..b5f6cc38f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java index b9ecb2f4c8..f5dc5e74b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java index f36b06d4e8..04bd41ae56 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java index db412a9f33..a263a67769 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelectorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java index cd15fd3f67..9028fa3a33 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java index 697fcc41af..07ca571e4f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1Secret item : items) { V1SecretBuilder builder = new V1SecretBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1Secret... items) { } for (V1Secret item : items) { V1SecretBuilder builder = new V1SecretBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1Secret item) { this.items = new ArrayList(); } V1SecretBuilder builder = new V1SecretBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1SecretBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1Secret item) { this.items = new ArrayList(); } V1SecretBuilder builder = new V1SecretBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java index c0d7b02a08..c0db6cfb43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java index 4affdf4f05..b46852ca24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjectionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -50,7 +50,7 @@ public A addAllToItems(Collection items) { } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -70,7 +70,7 @@ public A addToItems(V1KeyToPath... items) { } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -81,12 +81,12 @@ public A addToItems(int index,V1KeyToPath item) { this.items = new ArrayList(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -246,7 +246,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1KeyToPathBuilder builder = each.next(); if (predicate.test(builder)) { @@ -266,12 +266,12 @@ public A setToItems(int index,V1KeyToPath item) { this.items = new ArrayList(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java index fe0d72070c..199031a4b3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java index e288a1f9ee..89ce07ea37 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java index 38d38daf10..876145a7d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java index b7b4960118..74592ea927 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -52,7 +52,7 @@ public A addAllToItems(Collection items) { } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -72,7 +72,7 @@ public A addToItems(V1KeyToPath... items) { } for (V1KeyToPath item : items) { V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -83,12 +83,12 @@ public A addToItems(int index,V1KeyToPath item) { this.items = new ArrayList(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -260,7 +260,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1KeyToPathBuilder builder = each.next(); if (predicate.test(builder)) { @@ -280,12 +280,12 @@ public A setToItems(int index,V1KeyToPath item) { this.items = new ArrayList(); } V1KeyToPathBuilder builder = new V1KeyToPathBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java index 3eedd74380..9b9156e9db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java index 06915d9e81..d5ac1ce0a0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContextFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java index 3c7ae31729..1e648dd404 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java index f3b383e02f..860d7c65c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelectableFieldFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java index 5d7fe79919..9843c0d8ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java index 2f2bc1cc72..bae42e95b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java index 03d618b7f1..e66237f873 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java index 624e1a01ee..3ec21f401d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java index 0ca1cfb821..a7dfecd5a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java index 89686ea5e8..82f1216571 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java index 7225a62b2a..c9bf657bb9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java index f75d9bd132..70c16beda4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java index b28897b87c..171a063046 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java index d07bea14aa..77b0be2c7e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java index 07e923305a..89ee79009b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java index 127cd946ed..e477f8fd8c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java index 8729850a3e..850a19c563 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java index 6bf1adf22e..c1153e8d7c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDRFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java index 890792cdba..d5f72de727 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java index 8a0601ee6f..c43122eb68 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -54,7 +54,7 @@ public A addAllToImagePullSecrets(Collection items) { } for (V1LocalObjectReference item : items) { V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").add(builder); + this._visitables.get("imagePullSecrets").add(builder); this.imagePullSecrets.add(builder); } return (A) this; @@ -66,7 +66,7 @@ public A addAllToSecrets(Collection items) { } for (V1ObjectReference item : items) { V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("secrets").add(builder); + this._visitables.get("secrets").add(builder); this.secrets.add(builder); } return (A) this; @@ -94,7 +94,7 @@ public A addToImagePullSecrets(V1LocalObjectReference... items) { } for (V1LocalObjectReference item : items) { V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - _visitables.get("imagePullSecrets").add(builder); + this._visitables.get("imagePullSecrets").add(builder); this.imagePullSecrets.add(builder); } return (A) this; @@ -105,12 +105,12 @@ public A addToImagePullSecrets(int index,V1LocalObjectReference item) { this.imagePullSecrets = new ArrayList(); } V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { - _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.add(builder); + if (index < 0 || index >= this.imagePullSecrets.size()) { + this._visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(builder); } else { - _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.add(index, builder); + this._visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(index, builder); } return (A) this; } @@ -121,7 +121,7 @@ public A addToSecrets(V1ObjectReference... items) { } for (V1ObjectReference item : items) { V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - _visitables.get("secrets").add(builder); + this._visitables.get("secrets").add(builder); this.secrets.add(builder); } return (A) this; @@ -132,12 +132,12 @@ public A addToSecrets(int index,V1ObjectReference item) { this.secrets = new ArrayList(); } V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= secrets.size()) { - _visitables.get("secrets").add(builder); - secrets.add(builder); + if (index < 0 || index >= this.secrets.size()) { + this._visitables.get("secrets").add(builder); + this.secrets.add(builder); } else { - _visitables.get("secrets").add(builder); - secrets.add(index, builder); + this._visitables.get("secrets").add(builder); + this.secrets.add(index, builder); } return (A) this; } @@ -435,7 +435,7 @@ public A removeMatchingFromImagePullSecrets(Predicate each = imagePullSecrets.iterator(); - List visitables = _visitables.get("imagePullSecrets"); + List visitables = this._visitables.get("imagePullSecrets"); while (each.hasNext()) { V1LocalObjectReferenceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -451,7 +451,7 @@ public A removeMatchingFromSecrets(Predicate predicate return (A) this; } Iterator each = secrets.iterator(); - List visitables = _visitables.get("secrets"); + List visitables = this._visitables.get("secrets"); while (each.hasNext()) { V1ObjectReferenceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -475,12 +475,12 @@ public A setToImagePullSecrets(int index,V1LocalObjectReference item) { this.imagePullSecrets = new ArrayList(); } V1LocalObjectReferenceBuilder builder = new V1LocalObjectReferenceBuilder(item); - if (index < 0 || index >= imagePullSecrets.size()) { - _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.add(builder); + if (index < 0 || index >= this.imagePullSecrets.size()) { + this._visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.add(builder); } else { - _visitables.get("imagePullSecrets").add(builder); - imagePullSecrets.set(index, builder); + this._visitables.get("imagePullSecrets").add(builder); + this.imagePullSecrets.set(index, builder); } return (A) this; } @@ -490,12 +490,12 @@ public A setToSecrets(int index,V1ObjectReference item) { this.secrets = new ArrayList(); } V1ObjectReferenceBuilder builder = new V1ObjectReferenceBuilder(item); - if (index < 0 || index >= secrets.size()) { - _visitables.get("secrets").add(builder); - secrets.add(builder); + if (index < 0 || index >= this.secrets.size()) { + this._visitables.get("secrets").add(builder); + this.secrets.add(builder); } else { - _visitables.get("secrets").add(builder); - secrets.set(index, builder); + this._visitables.get("secrets").add(builder); + this.secrets.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java index a7f851fc14..309ec779f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java index a118bd6ef3..15ba8ff98f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1ServiceAccount item : items) { V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1ServiceAccount... items) { } for (V1ServiceAccount item : items) { V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1ServiceAccount item) { this.items = new ArrayList(); } V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ServiceAccountBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1ServiceAccount item) { this.items = new ArrayList(); } V1ServiceAccountBuilder builder = new V1ServiceAccountBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java index 6069d6e613..c40484bda3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java index d458865ed6..b021ac10eb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubjectFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java index a716881e05..f8fc0e4f51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java index ca384194be..f182f6661e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjectionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java index 1262f8d9f6..332c390fba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java index 30d49019ea..ba5d37278a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPortFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java index 030f3aaf1a..acceb01072 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java index f3073e5fe8..7fb5ae75e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java index b91fbfa15f..65887a7676 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java index 515d9cc481..5b51639816 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java index 8045b3f152..eb7e660d36 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1ServiceCIDR item : items) { V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1ServiceCIDR... items) { } for (V1ServiceCIDR item : items) { V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1ServiceCIDR item) { this.items = new ArrayList(); } V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ServiceCIDRBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1ServiceCIDR item) { this.items = new ArrayList(); } V1ServiceCIDRBuilder builder = new V1ServiceCIDRBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java index bbc81255f2..e431226b32 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java index fcee960f59..cf1b8c2957 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java index e9ad25c2fa..798615e10a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java index 322b28417f..e89bf2d0d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToConditions(Collection items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToConditions(V1Condition... items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java index a10b6c7c92..28a4a8eca8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java index 9b411906de..90697fd4f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java index 491f21dd03..3c153593da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1Service item : items) { V1ServiceBuilder builder = new V1ServiceBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1Service... items) { } for (V1Service item : items) { V1ServiceBuilder builder = new V1ServiceBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1Service item) { this.items = new ArrayList(); } V1ServiceBuilder builder = new V1ServiceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ServiceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1Service item) { this.items = new ArrayList(); } V1ServiceBuilder builder = new V1ServiceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java index 043bbebc4f..ec62dcf1de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java index f15cb0bca5..f79503888e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServicePortFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java index b443754cb9..5b182976ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java index c0c2b56fea..ed38ce970b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -111,7 +111,7 @@ public A addAllToPorts(Collection items) { } for (V1ServicePort item : items) { V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -203,7 +203,7 @@ public A addToPorts(V1ServicePort... items) { } for (V1ServicePort item : items) { V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - _visitables.get("ports").add(builder); + this._visitables.get("ports").add(builder); this.ports.add(builder); } return (A) this; @@ -214,12 +214,12 @@ public A addToPorts(int index,V1ServicePort item) { this.ports = new ArrayList(); } V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.add(index, builder); + this._visitables.get("ports").add(builder); + this.ports.add(index, builder); } return (A) this; } @@ -839,7 +839,7 @@ public A removeMatchingFromPorts(Predicate predicate) { return (A) this; } Iterator each = ports.iterator(); - List visitables = _visitables.get("ports"); + List visitables = this._visitables.get("ports"); while (each.hasNext()) { V1ServicePortBuilder builder = each.next(); if (predicate.test(builder)) { @@ -891,12 +891,12 @@ public A setToPorts(int index,V1ServicePort item) { this.ports = new ArrayList(); } V1ServicePortBuilder builder = new V1ServicePortBuilder(item); - if (index < 0 || index >= ports.size()) { - _visitables.get("ports").add(builder); - ports.add(builder); + if (index < 0 || index >= this.ports.size()) { + this._visitables.get("ports").add(builder); + this.ports.add(builder); } else { - _visitables.get("ports").add(builder); - ports.set(index, builder); + this._visitables.get("ports").add(builder); + this.ports.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java index 1bcda5f278..341c1acaae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java index b1263f73c2..a8be8ee9f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ public A addAllToConditions(Collection items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -69,7 +69,7 @@ public A addToConditions(V1Condition... items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -80,12 +80,12 @@ public A addToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -245,7 +245,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -265,12 +265,12 @@ public A setToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java index 0d24647719..5dc410bb9c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java index 797928a6ca..4a9521fb95 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfigFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfoBuilder.java new file mode 100644 index 0000000000..109b5ebcbd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfoBuilder.java @@ -0,0 +1,45 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1ShardInfoBuilder extends V1ShardInfoFluent implements VisitableBuilder{ + + V1ShardInfoFluent fluent; + + public V1ShardInfoBuilder() { + this(new V1ShardInfo()); + } + + public V1ShardInfoBuilder(V1ShardInfoFluent fluent) { + this(fluent, new V1ShardInfo()); + } + + public V1ShardInfoBuilder(V1ShardInfo instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1ShardInfoBuilder(V1ShardInfoFluent fluent,V1ShardInfo instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1ShardInfo build() { + V1ShardInfo buildable = new V1ShardInfo(); + buildable.setSelector(fluent.getSelector()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfoFluent.java new file mode 100644 index 0000000000..0072d7e8ad --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfoFluent.java @@ -0,0 +1,89 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1ShardInfoFluent> extends BaseFluent{ + + private String selector; + + public V1ShardInfoFluent() { + } + + public V1ShardInfoFluent(V1ShardInfo instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1ShardInfo instance) { + instance = instance != null ? instance : new V1ShardInfo(); + if (instance != null) { + this.withSelector(instance.getSelector()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1ShardInfoFluent that = (V1ShardInfoFluent) o; + if (!(Objects.equals(selector, that.selector))) { + return false; + } + return true; + } + + public String getSelector() { + return this.selector; + } + + public boolean hasSelector() { + return this.selector != null; + } + + public int hashCode() { + return Objects.hash(selector); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(selector == null)) { + sb.append("selector:"); + sb.append(selector); + } + sb.append("}"); + return sb.toString(); + } + + public A withSelector(String selector) { + this.selector = selector; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java index fded83b442..d8bd56e138 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java index 7d41577da1..02c483f06f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SleepActionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java index 454f300e63..04b9f9bb76 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java index 9edfa2929a..2869fa7918 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java index 65a868f95b..696ad39f61 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java index 4cda8e1019..57bbbb47a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java index 8034f435b6..b8c5816aec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java index 6a7be18928..b7fadfc8fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1StatefulSet item : items) { V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1StatefulSet... items) { } for (V1StatefulSet item : items) { V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1StatefulSet item) { this.items = new ArrayList(); } V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1StatefulSetBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1StatefulSet item) { this.items = new ArrayList(); } V1StatefulSetBuilder builder = new V1StatefulSetBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java index 4e49857841..0e34531f7a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java index f127c45290..d8e8eeccb8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinalsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java index 52ea5294b9..dff1d5c1e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java index 55d6ea66de..5e5ae56827 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java index fa42a87e53..fc1659230e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java index 3900e60e75..0005037a1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -59,7 +59,7 @@ public A addAllToVolumeClaimTemplates(Collection items) } for (V1PersistentVolumeClaim item : items) { V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("volumeClaimTemplates").add(builder); + this._visitables.get("volumeClaimTemplates").add(builder); this.volumeClaimTemplates.add(builder); } return (A) this; @@ -79,7 +79,7 @@ public A addToVolumeClaimTemplates(V1PersistentVolumeClaim... items) { } for (V1PersistentVolumeClaim item : items) { V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - _visitables.get("volumeClaimTemplates").add(builder); + this._visitables.get("volumeClaimTemplates").add(builder); this.volumeClaimTemplates.add(builder); } return (A) this; @@ -90,12 +90,12 @@ public A addToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { this.volumeClaimTemplates = new ArrayList(); } V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= volumeClaimTemplates.size()) { - _visitables.get("volumeClaimTemplates").add(builder); - volumeClaimTemplates.add(builder); + if (index < 0 || index >= this.volumeClaimTemplates.size()) { + this._visitables.get("volumeClaimTemplates").add(builder); + this.volumeClaimTemplates.add(builder); } else { - _visitables.get("volumeClaimTemplates").add(builder); - volumeClaimTemplates.add(index, builder); + this._visitables.get("volumeClaimTemplates").add(builder); + this.volumeClaimTemplates.add(index, builder); } return (A) this; } @@ -411,7 +411,7 @@ public A removeMatchingFromVolumeClaimTemplates(Predicate each = volumeClaimTemplates.iterator(); - List visitables = _visitables.get("volumeClaimTemplates"); + List visitables = this._visitables.get("volumeClaimTemplates"); while (each.hasNext()) { V1PersistentVolumeClaimBuilder builder = each.next(); if (predicate.test(builder)) { @@ -431,12 +431,12 @@ public A setToVolumeClaimTemplates(int index,V1PersistentVolumeClaim item) { this.volumeClaimTemplates = new ArrayList(); } V1PersistentVolumeClaimBuilder builder = new V1PersistentVolumeClaimBuilder(item); - if (index < 0 || index >= volumeClaimTemplates.size()) { - _visitables.get("volumeClaimTemplates").add(builder); - volumeClaimTemplates.add(builder); + if (index < 0 || index >= this.volumeClaimTemplates.size()) { + this._visitables.get("volumeClaimTemplates").add(builder); + this.volumeClaimTemplates.add(builder); } else { - _visitables.get("volumeClaimTemplates").add(builder); - volumeClaimTemplates.set(index, builder); + this._visitables.get("volumeClaimTemplates").add(builder); + this.volumeClaimTemplates.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java index d7187356f8..ef0dfa19dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java index d003f7bf7c..a721495024 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -58,7 +58,7 @@ public A addAllToConditions(Collection items) { } for (V1StatefulSetCondition item : items) { V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -78,7 +78,7 @@ public A addToConditions(V1StatefulSetCondition... items) { } for (V1StatefulSetCondition item : items) { V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -89,12 +89,12 @@ public A addToConditions(int index,V1StatefulSetCondition item) { this.conditions = new ArrayList(); } V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -338,7 +338,7 @@ public A removeMatchingFromConditions(Predicate p return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1StatefulSetConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -358,12 +358,12 @@ public A setToConditions(int index,V1StatefulSetCondition item) { this.conditions = new ArrayList(); } V1StatefulSetConditionBuilder builder = new V1StatefulSetConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java index 3da0f10341..640be28d44 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java index a0e1b74b9f..3efb858793 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java index f0e52619bb..7c5031c532 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java index edf4834ade..388be21d0b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java index f5f5ee471f..c9e95a045c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusCauseFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java index 39771c2418..357e43bee9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java index 2f2faf23b2..4d0730ef05 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetailsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -53,7 +53,7 @@ public A addAllToCauses(Collection items) { } for (V1StatusCause item : items) { V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - _visitables.get("causes").add(builder); + this._visitables.get("causes").add(builder); this.causes.add(builder); } return (A) this; @@ -73,7 +73,7 @@ public A addToCauses(V1StatusCause... items) { } for (V1StatusCause item : items) { V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - _visitables.get("causes").add(builder); + this._visitables.get("causes").add(builder); this.causes.add(builder); } return (A) this; @@ -84,12 +84,12 @@ public A addToCauses(int index,V1StatusCause item) { this.causes = new ArrayList(); } V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - if (index < 0 || index >= causes.size()) { - _visitables.get("causes").add(builder); - causes.add(builder); + if (index < 0 || index >= this.causes.size()) { + this._visitables.get("causes").add(builder); + this.causes.add(builder); } else { - _visitables.get("causes").add(builder); - causes.add(index, builder); + this._visitables.get("causes").add(builder); + this.causes.add(index, builder); } return (A) this; } @@ -285,7 +285,7 @@ public A removeMatchingFromCauses(Predicate predicate) { return (A) this; } Iterator each = causes.iterator(); - List visitables = _visitables.get("causes"); + List visitables = this._visitables.get("causes"); while (each.hasNext()) { V1StatusCauseBuilder builder = each.next(); if (predicate.test(builder)) { @@ -305,12 +305,12 @@ public A setToCauses(int index,V1StatusCause item) { this.causes = new ArrayList(); } V1StatusCauseBuilder builder = new V1StatusCauseBuilder(item); - if (index < 0 || index >= causes.size()) { - _visitables.get("causes").add(builder); - causes.add(builder); + if (index < 0 || index >= this.causes.size()) { + this._visitables.get("causes").add(builder); + this.causes.add(builder); } else { - _visitables.get("causes").add(builder); - causes.set(index, builder); + this._visitables.get("causes").add(builder); + this.causes.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java index 66c377fc3a..24c104ff3e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java index 6297f0ec63..aece33ff36 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java index b8d2af7283..ba5edc29a1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -60,7 +60,7 @@ public A addAllToAllowedTopologies(Collection items) { } for (V1TopologySelectorTerm item : items) { V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - _visitables.get("allowedTopologies").add(builder); + this._visitables.get("allowedTopologies").add(builder); this.allowedTopologies.add(builder); } return (A) this; @@ -90,7 +90,7 @@ public A addToAllowedTopologies(V1TopologySelectorTerm... items) { } for (V1TopologySelectorTerm item : items) { V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - _visitables.get("allowedTopologies").add(builder); + this._visitables.get("allowedTopologies").add(builder); this.allowedTopologies.add(builder); } return (A) this; @@ -101,12 +101,12 @@ public A addToAllowedTopologies(int index,V1TopologySelectorTerm item) { this.allowedTopologies = new ArrayList(); } V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - if (index < 0 || index >= allowedTopologies.size()) { - _visitables.get("allowedTopologies").add(builder); - allowedTopologies.add(builder); + if (index < 0 || index >= this.allowedTopologies.size()) { + this._visitables.get("allowedTopologies").add(builder); + this.allowedTopologies.add(builder); } else { - _visitables.get("allowedTopologies").add(builder); - allowedTopologies.add(index, builder); + this._visitables.get("allowedTopologies").add(builder); + this.allowedTopologies.add(index, builder); } return (A) this; } @@ -474,7 +474,7 @@ public A removeMatchingFromAllowedTopologies(Predicate each = allowedTopologies.iterator(); - List visitables = _visitables.get("allowedTopologies"); + List visitables = this._visitables.get("allowedTopologies"); while (each.hasNext()) { V1TopologySelectorTermBuilder builder = each.next(); if (predicate.test(builder)) { @@ -494,12 +494,12 @@ public A setToAllowedTopologies(int index,V1TopologySelectorTerm item) { this.allowedTopologies = new ArrayList(); } V1TopologySelectorTermBuilder builder = new V1TopologySelectorTermBuilder(item); - if (index < 0 || index >= allowedTopologies.size()) { - _visitables.get("allowedTopologies").add(builder); - allowedTopologies.add(builder); + if (index < 0 || index >= this.allowedTopologies.size()) { + this._visitables.get("allowedTopologies").add(builder); + this.allowedTopologies.add(builder); } else { - _visitables.get("allowedTopologies").add(builder); - allowedTopologies.set(index, builder); + this._visitables.get("allowedTopologies").add(builder); + this.allowedTopologies.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java index 36b15ab5e4..989ccc0c0d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java index 5c10b1c27d..5ba1ad31a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1StorageClass item : items) { V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1StorageClass... items) { } for (V1StorageClass item : items) { V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1StorageClass item) { this.items = new ArrayList(); } V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1StorageClassBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1StorageClass item) { this.items = new ArrayList(); } V1StorageClassBuilder builder = new V1StorageClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java index 3f8fb143be..d1aa6f495d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java index 53914cd381..63a3655cce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java index f62a0d41d7..13e70d17cc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java index 027a6a82a0..4e720ec505 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java index e2cb3cd048..5dde48f026 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java index 35777be0af..d749efaa60 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java index 9382470e6f..77d8796175 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java index 5b4082098b..f23aa73afe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java index e5139315fa..f144f56b6e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java index 800c2319a6..af852d77af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java index 0cfcf8af03..7209828c45 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java index c0ea6a8111..3c69c5a3cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToNonResourceRules(Collection items) { } for (V1NonResourceRule item : items) { V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - _visitables.get("nonResourceRules").add(builder); + this._visitables.get("nonResourceRules").add(builder); this.nonResourceRules.add(builder); } return (A) this; @@ -63,7 +63,7 @@ public A addAllToResourceRules(Collection items) { } for (V1ResourceRule item : items) { V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - _visitables.get("resourceRules").add(builder); + this._visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } return (A) this; @@ -91,7 +91,7 @@ public A addToNonResourceRules(V1NonResourceRule... items) { } for (V1NonResourceRule item : items) { V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - _visitables.get("nonResourceRules").add(builder); + this._visitables.get("nonResourceRules").add(builder); this.nonResourceRules.add(builder); } return (A) this; @@ -102,12 +102,12 @@ public A addToNonResourceRules(int index,V1NonResourceRule item) { this.nonResourceRules = new ArrayList(); } V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { - _visitables.get("nonResourceRules").add(builder); - nonResourceRules.add(builder); + if (index < 0 || index >= this.nonResourceRules.size()) { + this._visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.add(builder); } else { - _visitables.get("nonResourceRules").add(builder); - nonResourceRules.add(index, builder); + this._visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.add(index, builder); } return (A) this; } @@ -118,7 +118,7 @@ public A addToResourceRules(V1ResourceRule... items) { } for (V1ResourceRule item : items) { V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - _visitables.get("resourceRules").add(builder); + this._visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } return (A) this; @@ -129,12 +129,12 @@ public A addToResourceRules(int index,V1ResourceRule item) { this.resourceRules = new ArrayList(); } V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); + if (index < 0 || index >= this.resourceRules.size()) { + this._visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } else { - _visitables.get("resourceRules").add(builder); - resourceRules.add(index, builder); + this._visitables.get("resourceRules").add(builder); + this.resourceRules.add(index, builder); } return (A) this; } @@ -396,7 +396,7 @@ public A removeMatchingFromNonResourceRules(Predicate return (A) this; } Iterator each = nonResourceRules.iterator(); - List visitables = _visitables.get("nonResourceRules"); + List visitables = this._visitables.get("nonResourceRules"); while (each.hasNext()) { V1NonResourceRuleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -412,7 +412,7 @@ public A removeMatchingFromResourceRules(Predicate predic return (A) this; } Iterator each = resourceRules.iterator(); - List visitables = _visitables.get("resourceRules"); + List visitables = this._visitables.get("resourceRules"); while (each.hasNext()) { V1ResourceRuleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -436,12 +436,12 @@ public A setToNonResourceRules(int index,V1NonResourceRule item) { this.nonResourceRules = new ArrayList(); } V1NonResourceRuleBuilder builder = new V1NonResourceRuleBuilder(item); - if (index < 0 || index >= nonResourceRules.size()) { - _visitables.get("nonResourceRules").add(builder); - nonResourceRules.add(builder); + if (index < 0 || index >= this.nonResourceRules.size()) { + this._visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.add(builder); } else { - _visitables.get("nonResourceRules").add(builder); - nonResourceRules.set(index, builder); + this._visitables.get("nonResourceRules").add(builder); + this.nonResourceRules.set(index, builder); } return (A) this; } @@ -451,12 +451,12 @@ public A setToResourceRules(int index,V1ResourceRule item) { this.resourceRules = new ArrayList(); } V1ResourceRuleBuilder builder = new V1ResourceRuleBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); + if (index < 0 || index >= this.resourceRules.size()) { + this._visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } else { - _visitables.get("resourceRules").add(builder); - resourceRules.set(index, builder); + this._visitables.get("resourceRules").add(builder); + this.resourceRules.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java index 86b62eedf4..ff5f3d589b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java index 4b85e95d05..66417d9fca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToRules(Collection items) { } for (V1SuccessPolicyRule item : items) { V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToRules(V1SuccessPolicyRule... items) { } for (V1SuccessPolicyRule item : items) { V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToRules(int index,V1SuccessPolicyRule item) { this.rules = new ArrayList(); } V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.add(index, builder); + this._visitables.get("rules").add(builder); + this.rules.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromRules(Predicate predicate return (A) this; } Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); + List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1SuccessPolicyRuleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToRules(int index,V1SuccessPolicyRule item) { this.rules = new ArrayList(); } V1SuccessPolicyRuleBuilder builder = new V1SuccessPolicyRuleBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.set(index, builder); + this._visitables.get("rules").add(builder); + this.rules.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java index d6d831138d..bc517a5a73 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java index 80b888a4f5..d9187fddba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRuleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java index 5947174a5b..9722a9c160 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java index 0f6ef0747d..7c974d80d2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1SysctlFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java index d4fe169f01..406708fd71 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java index b6b471032d..338a33adbb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketActionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java index 805b19514c..f8f1196969 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java index 525b0b658d..f3e84dea6e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TaintFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java index 03d1522dcf..aea0124f43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java index d11920f8de..49723bbc03 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java index 395e25b59e..3eccf074af 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java index 9f336a8faf..dd457df77c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java index 85949c2db7..423bdd2cdb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java index 1b3e66b4bb..9d591376db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java index f813282c14..82fd290ec7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java index 112ad0252b..74613dfde3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java index c63b1b0f72..9a2acc4876 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java index 49852fa7b5..0d52a434c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java index 6f94903b5f..a5a84e7836 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java index 35a8934a97..42e8f370b0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TolerationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java index 19c6ee9f57..9762a2d4b2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java index 98a2027b12..16e78f6c6e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirementFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java index c6d33cb033..f5d4e3ac54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java index 892ebc19e0..759ba76dc6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTermFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToMatchLabelExpressions(Collection= matchLabelExpressions.size()) { - _visitables.get("matchLabelExpressions").add(builder); - matchLabelExpressions.add(builder); + if (index < 0 || index >= this.matchLabelExpressions.size()) { + this._visitables.get("matchLabelExpressions").add(builder); + this.matchLabelExpressions.add(builder); } else { - _visitables.get("matchLabelExpressions").add(builder); - matchLabelExpressions.add(index, builder); + this._visitables.get("matchLabelExpressions").add(builder); + this.matchLabelExpressions.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromMatchLabelExpressions(Predicate each = matchLabelExpressions.iterator(); - List visitables = _visitables.get("matchLabelExpressions"); + List visitables = this._visitables.get("matchLabelExpressions"); while (each.hasNext()) { V1TopologySelectorLabelRequirementBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToMatchLabelExpressions(int index,V1TopologySelectorLabelRequirement this.matchLabelExpressions = new ArrayList(); } V1TopologySelectorLabelRequirementBuilder builder = new V1TopologySelectorLabelRequirementBuilder(item); - if (index < 0 || index >= matchLabelExpressions.size()) { - _visitables.get("matchLabelExpressions").add(builder); - matchLabelExpressions.add(builder); + if (index < 0 || index >= this.matchLabelExpressions.size()) { + this._visitables.get("matchLabelExpressions").add(builder); + this.matchLabelExpressions.add(builder); } else { - _visitables.get("matchLabelExpressions").add(builder); - matchLabelExpressions.set(index, builder); + this._visitables.get("matchLabelExpressions").add(builder); + this.matchLabelExpressions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java index 6c029ab1d3..5ed5b6f5a4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java index 562ae5015b..d6e47c5857 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraintFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java index 168a4fd553..46035d251d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java index 0080b49e93..58f31bffb5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypeCheckingFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToExpressionWarnings(Collection items) { } for (V1ExpressionWarning item : items) { V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); - _visitables.get("expressionWarnings").add(builder); + this._visitables.get("expressionWarnings").add(builder); this.expressionWarnings.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToExpressionWarnings(V1ExpressionWarning... items) { } for (V1ExpressionWarning item : items) { V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); - _visitables.get("expressionWarnings").add(builder); + this._visitables.get("expressionWarnings").add(builder); this.expressionWarnings.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToExpressionWarnings(int index,V1ExpressionWarning item) { this.expressionWarnings = new ArrayList(); } V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); - if (index < 0 || index >= expressionWarnings.size()) { - _visitables.get("expressionWarnings").add(builder); - expressionWarnings.add(builder); + if (index < 0 || index >= this.expressionWarnings.size()) { + this._visitables.get("expressionWarnings").add(builder); + this.expressionWarnings.add(builder); } else { - _visitables.get("expressionWarnings").add(builder); - expressionWarnings.add(index, builder); + this._visitables.get("expressionWarnings").add(builder); + this.expressionWarnings.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromExpressionWarnings(Predicate each = expressionWarnings.iterator(); - List visitables = _visitables.get("expressionWarnings"); + List visitables = this._visitables.get("expressionWarnings"); while (each.hasNext()) { V1ExpressionWarningBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToExpressionWarnings(int index,V1ExpressionWarning item) { this.expressionWarnings = new ArrayList(); } V1ExpressionWarningBuilder builder = new V1ExpressionWarningBuilder(item); - if (index < 0 || index >= expressionWarnings.size()) { - _visitables.get("expressionWarnings").add(builder); - expressionWarnings.add(builder); + if (index < 0 || index >= this.expressionWarnings.size()) { + this._visitables.get("expressionWarnings").add(builder); + this.expressionWarnings.add(builder); } else { - _visitables.get("expressionWarnings").add(builder); - expressionWarnings.set(index, builder); + this._visitables.get("expressionWarnings").add(builder); + this.expressionWarnings.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java index d3e0032682..e0904a22fe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java index 3a9a96378d..b2cbe85d15 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java index 693a3f04ed..3dd600e9a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java index 983286bf52..5b8be3e34f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java index f773bef299..21116b0a97 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java index 45e699c5ec..d6358b888a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPodsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java index 329b22abe6..b6f277458b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java index 8b730142d5..54c6ece983 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserInfoFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java index 36ea106399..97d6e5b1b7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java index 3116279882..ea08b15319 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1UserSubjectFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java index fed5551096..e5c0499327 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java index 25cee0453e..94aec02678 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java index 8d9b64958d..fa52ecff89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java index 53690e610a..4c8e22a65c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1ValidatingAdmissionPolicyBinding item : items) { V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1ValidatingAdmissionPolicyBinding... items) { } for (V1ValidatingAdmissionPolicyBinding item : items) { V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1ValidatingAdmissionPolicyBinding item) { this.items = new ArrayList(); } V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ValidatingAdmissionPolicyBindingBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1ValidatingAdmissionPolicyBinding item) { this.items = new ArrayList(); } V1ValidatingAdmissionPolicyBindingBuilder builder = new V1ValidatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java index e1c0901d52..077729cbb0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java index a7d04fda49..43ed027b96 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java index 6190763cc6..fc9314e74d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java index 2819477668..b0fa87ba08 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java index c474183a59..f7fdf90aba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java index 449debf520..c73bc2dad5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1ValidatingAdmissionPolicy item : items) { V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1ValidatingAdmissionPolicy... items) { } for (V1ValidatingAdmissionPolicy item : items) { V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1ValidatingAdmissionPolicy item) { this.items = new ArrayList(); } V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate p return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ValidatingAdmissionPolicyBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1ValidatingAdmissionPolicy item) { this.items = new ArrayList(); } V1ValidatingAdmissionPolicyBuilder builder = new V1ValidatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java index 9f366b9f62..b9b6d5813a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java index 793db02a8c..95297e6837 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -54,7 +54,7 @@ public A addAllToAuditAnnotations(Collection items) { } for (V1AuditAnnotation item : items) { V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); - _visitables.get("auditAnnotations").add(builder); + this._visitables.get("auditAnnotations").add(builder); this.auditAnnotations.add(builder); } return (A) this; @@ -66,7 +66,7 @@ public A addAllToMatchConditions(Collection items) { } for (V1MatchCondition item : items) { V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); + this._visitables.get("matchConditions").add(builder); this.matchConditions.add(builder); } return (A) this; @@ -78,7 +78,7 @@ public A addAllToValidations(Collection items) { } for (V1Validation item : items) { V1ValidationBuilder builder = new V1ValidationBuilder(item); - _visitables.get("validations").add(builder); + this._visitables.get("validations").add(builder); this.validations.add(builder); } return (A) this; @@ -90,7 +90,7 @@ public A addAllToVariables(Collection items) { } for (V1Variable item : items) { V1VariableBuilder builder = new V1VariableBuilder(item); - _visitables.get("variables").add(builder); + this._visitables.get("variables").add(builder); this.variables.add(builder); } return (A) this; @@ -134,7 +134,7 @@ public A addToAuditAnnotations(V1AuditAnnotation... items) { } for (V1AuditAnnotation item : items) { V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); - _visitables.get("auditAnnotations").add(builder); + this._visitables.get("auditAnnotations").add(builder); this.auditAnnotations.add(builder); } return (A) this; @@ -145,12 +145,12 @@ public A addToAuditAnnotations(int index,V1AuditAnnotation item) { this.auditAnnotations = new ArrayList(); } V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); - if (index < 0 || index >= auditAnnotations.size()) { - _visitables.get("auditAnnotations").add(builder); - auditAnnotations.add(builder); + if (index < 0 || index >= this.auditAnnotations.size()) { + this._visitables.get("auditAnnotations").add(builder); + this.auditAnnotations.add(builder); } else { - _visitables.get("auditAnnotations").add(builder); - auditAnnotations.add(index, builder); + this._visitables.get("auditAnnotations").add(builder); + this.auditAnnotations.add(index, builder); } return (A) this; } @@ -161,7 +161,7 @@ public A addToMatchConditions(V1MatchCondition... items) { } for (V1MatchCondition item : items) { V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); + this._visitables.get("matchConditions").add(builder); this.matchConditions.add(builder); } return (A) this; @@ -172,12 +172,12 @@ public A addToMatchConditions(int index,V1MatchCondition item) { this.matchConditions = new ArrayList(); } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); + if (index < 0 || index >= this.matchConditions.size()) { + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); } else { - _visitables.get("matchConditions").add(builder); - matchConditions.add(index, builder); + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(index, builder); } return (A) this; } @@ -188,7 +188,7 @@ public A addToValidations(V1Validation... items) { } for (V1Validation item : items) { V1ValidationBuilder builder = new V1ValidationBuilder(item); - _visitables.get("validations").add(builder); + this._visitables.get("validations").add(builder); this.validations.add(builder); } return (A) this; @@ -199,12 +199,12 @@ public A addToValidations(int index,V1Validation item) { this.validations = new ArrayList(); } V1ValidationBuilder builder = new V1ValidationBuilder(item); - if (index < 0 || index >= validations.size()) { - _visitables.get("validations").add(builder); - validations.add(builder); + if (index < 0 || index >= this.validations.size()) { + this._visitables.get("validations").add(builder); + this.validations.add(builder); } else { - _visitables.get("validations").add(builder); - validations.add(index, builder); + this._visitables.get("validations").add(builder); + this.validations.add(index, builder); } return (A) this; } @@ -215,7 +215,7 @@ public A addToVariables(V1Variable... items) { } for (V1Variable item : items) { V1VariableBuilder builder = new V1VariableBuilder(item); - _visitables.get("variables").add(builder); + this._visitables.get("variables").add(builder); this.variables.add(builder); } return (A) this; @@ -226,12 +226,12 @@ public A addToVariables(int index,V1Variable item) { this.variables = new ArrayList(); } V1VariableBuilder builder = new V1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { - _visitables.get("variables").add(builder); - variables.add(builder); + if (index < 0 || index >= this.variables.size()) { + this._visitables.get("variables").add(builder); + this.variables.add(builder); } else { - _visitables.get("variables").add(builder); - variables.add(index, builder); + this._visitables.get("variables").add(builder); + this.variables.add(index, builder); } return (A) this; } @@ -733,7 +733,7 @@ public A removeMatchingFromAuditAnnotations(Predicate return (A) this; } Iterator each = auditAnnotations.iterator(); - List visitables = _visitables.get("auditAnnotations"); + List visitables = this._visitables.get("auditAnnotations"); while (each.hasNext()) { V1AuditAnnotationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -749,7 +749,7 @@ public A removeMatchingFromMatchConditions(Predicate pr return (A) this; } Iterator each = matchConditions.iterator(); - List visitables = _visitables.get("matchConditions"); + List visitables = this._visitables.get("matchConditions"); while (each.hasNext()) { V1MatchConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -765,7 +765,7 @@ public A removeMatchingFromValidations(Predicate predicate) return (A) this; } Iterator each = validations.iterator(); - List visitables = _visitables.get("validations"); + List visitables = this._visitables.get("validations"); while (each.hasNext()) { V1ValidationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -781,7 +781,7 @@ public A removeMatchingFromVariables(Predicate predicate) { return (A) this; } Iterator each = variables.iterator(); - List visitables = _visitables.get("variables"); + List visitables = this._visitables.get("variables"); while (each.hasNext()) { V1VariableBuilder builder = each.next(); if (predicate.test(builder)) { @@ -813,12 +813,12 @@ public A setToAuditAnnotations(int index,V1AuditAnnotation item) { this.auditAnnotations = new ArrayList(); } V1AuditAnnotationBuilder builder = new V1AuditAnnotationBuilder(item); - if (index < 0 || index >= auditAnnotations.size()) { - _visitables.get("auditAnnotations").add(builder); - auditAnnotations.add(builder); + if (index < 0 || index >= this.auditAnnotations.size()) { + this._visitables.get("auditAnnotations").add(builder); + this.auditAnnotations.add(builder); } else { - _visitables.get("auditAnnotations").add(builder); - auditAnnotations.set(index, builder); + this._visitables.get("auditAnnotations").add(builder); + this.auditAnnotations.set(index, builder); } return (A) this; } @@ -828,12 +828,12 @@ public A setToMatchConditions(int index,V1MatchCondition item) { this.matchConditions = new ArrayList(); } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); + if (index < 0 || index >= this.matchConditions.size()) { + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); } else { - _visitables.get("matchConditions").add(builder); - matchConditions.set(index, builder); + this._visitables.get("matchConditions").add(builder); + this.matchConditions.set(index, builder); } return (A) this; } @@ -843,12 +843,12 @@ public A setToValidations(int index,V1Validation item) { this.validations = new ArrayList(); } V1ValidationBuilder builder = new V1ValidationBuilder(item); - if (index < 0 || index >= validations.size()) { - _visitables.get("validations").add(builder); - validations.add(builder); + if (index < 0 || index >= this.validations.size()) { + this._visitables.get("validations").add(builder); + this.validations.add(builder); } else { - _visitables.get("validations").add(builder); - validations.set(index, builder); + this._visitables.get("validations").add(builder); + this.validations.set(index, builder); } return (A) this; } @@ -858,12 +858,12 @@ public A setToVariables(int index,V1Variable item) { this.variables = new ArrayList(); } V1VariableBuilder builder = new V1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { - _visitables.get("variables").add(builder); - variables.add(builder); + if (index < 0 || index >= this.variables.size()) { + this._visitables.get("variables").add(builder); + this.variables.add(builder); } else { - _visitables.get("variables").add(builder); - variables.set(index, builder); + this._visitables.get("variables").add(builder); + this.variables.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java index e2dbaa3cb3..4bdf3d65f0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java index b3e79596ea..c9f1f504dc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToConditions(Collection items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToConditions(V1Condition... items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -259,7 +259,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -279,12 +279,12 @@ public A setToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java index bea7f1fd25..c1d9963632 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java index 5183af5d52..5484a4688b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java index ba41f1a490..c4fe5a09c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToWebhooks(Collection items) { } for (V1ValidatingWebhook item : items) { V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - _visitables.get("webhooks").add(builder); + this._visitables.get("webhooks").add(builder); this.webhooks.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToWebhooks(V1ValidatingWebhook... items) { } for (V1ValidatingWebhook item : items) { V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - _visitables.get("webhooks").add(builder); + this._visitables.get("webhooks").add(builder); this.webhooks.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToWebhooks(int index,V1ValidatingWebhook item) { this.webhooks = new ArrayList(); } V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { - _visitables.get("webhooks").add(builder); - webhooks.add(builder); + if (index < 0 || index >= this.webhooks.size()) { + this._visitables.get("webhooks").add(builder); + this.webhooks.add(builder); } else { - _visitables.get("webhooks").add(builder); - webhooks.add(index, builder); + this._visitables.get("webhooks").add(builder); + this.webhooks.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromWebhooks(Predicate predic return (A) this; } Iterator each = webhooks.iterator(); - List visitables = _visitables.get("webhooks"); + List visitables = this._visitables.get("webhooks"); while (each.hasNext()) { V1ValidatingWebhookBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToWebhooks(int index,V1ValidatingWebhook item) { this.webhooks = new ArrayList(); } V1ValidatingWebhookBuilder builder = new V1ValidatingWebhookBuilder(item); - if (index < 0 || index >= webhooks.size()) { - _visitables.get("webhooks").add(builder); - webhooks.add(builder); + if (index < 0 || index >= this.webhooks.size()) { + this._visitables.get("webhooks").add(builder); + this.webhooks.add(builder); } else { - _visitables.get("webhooks").add(builder); - webhooks.set(index, builder); + this._visitables.get("webhooks").add(builder); + this.webhooks.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java index cbdc61418d..7d418d0be4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java index 70f1f903f5..b89b5191a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1ValidatingWebhookConfiguration item : items) { V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1ValidatingWebhookConfiguration... items) { } for (V1ValidatingWebhookConfiguration item : items) { V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1ValidatingWebhookConfiguration item) { this.items = new ArrayList(); } V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1ValidatingWebhookConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1ValidatingWebhookConfiguration item) { this.items = new ArrayList(); } V1ValidatingWebhookConfigurationBuilder builder = new V1ValidatingWebhookConfigurationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java index 947614a4ce..815b86e2a6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -69,7 +69,7 @@ public A addAllToMatchConditions(Collection items) { } for (V1MatchCondition item : items) { V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); + this._visitables.get("matchConditions").add(builder); this.matchConditions.add(builder); } return (A) this; @@ -81,7 +81,7 @@ public A addAllToRules(Collection items) { } for (V1RuleWithOperations item : items) { V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -127,7 +127,7 @@ public A addToMatchConditions(V1MatchCondition... items) { } for (V1MatchCondition item : items) { V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); + this._visitables.get("matchConditions").add(builder); this.matchConditions.add(builder); } return (A) this; @@ -138,12 +138,12 @@ public A addToMatchConditions(int index,V1MatchCondition item) { this.matchConditions = new ArrayList(); } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); + if (index < 0 || index >= this.matchConditions.size()) { + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); } else { - _visitables.get("matchConditions").add(builder); - matchConditions.add(index, builder); + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(index, builder); } return (A) this; } @@ -154,7 +154,7 @@ public A addToRules(V1RuleWithOperations... items) { } for (V1RuleWithOperations item : items) { V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - _visitables.get("rules").add(builder); + this._visitables.get("rules").add(builder); this.rules.add(builder); } return (A) this; @@ -165,12 +165,12 @@ public A addToRules(int index,V1RuleWithOperations item) { this.rules = new ArrayList(); } V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.add(index, builder); + this._visitables.get("rules").add(builder); + this.rules.add(index, builder); } return (A) this; } @@ -602,7 +602,7 @@ public A removeMatchingFromMatchConditions(Predicate pr return (A) this; } Iterator each = matchConditions.iterator(); - List visitables = _visitables.get("matchConditions"); + List visitables = this._visitables.get("matchConditions"); while (each.hasNext()) { V1MatchConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -618,7 +618,7 @@ public A removeMatchingFromRules(Predicate predicat return (A) this; } Iterator each = rules.iterator(); - List visitables = _visitables.get("rules"); + List visitables = this._visitables.get("rules"); while (each.hasNext()) { V1RuleWithOperationsBuilder builder = each.next(); if (predicate.test(builder)) { @@ -650,12 +650,12 @@ public A setToMatchConditions(int index,V1MatchCondition item) { this.matchConditions = new ArrayList(); } V1MatchConditionBuilder builder = new V1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); + if (index < 0 || index >= this.matchConditions.size()) { + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); } else { - _visitables.get("matchConditions").add(builder); - matchConditions.set(index, builder); + this._visitables.get("matchConditions").add(builder); + this.matchConditions.set(index, builder); } return (A) this; } @@ -665,12 +665,12 @@ public A setToRules(int index,V1RuleWithOperations item) { this.rules = new ArrayList(); } V1RuleWithOperationsBuilder builder = new V1RuleWithOperationsBuilder(item); - if (index < 0 || index >= rules.size()) { - _visitables.get("rules").add(builder); - rules.add(builder); + if (index < 0 || index >= this.rules.size()) { + this._visitables.get("rules").add(builder); + this.rules.add(builder); } else { - _visitables.get("rules").add(builder); - rules.set(index, builder); + this._visitables.get("rules").add(builder); + this.rules.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java index 8008187a55..28912aa17d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java index 934e8752c3..f10b1e88e9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java index cf6931f02d..da523cd57a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java index 85525018b4..4bc27a4aec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRuleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java index 9602e736cf..ff3780be52 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java index 0a28777eb2..cfc06cc44e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VariableFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java index 43c556e377..1bd9f27f3b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java index e92c826642..81f91bdf5a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java index 037917dc04..40a6bf708f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java index 4a43506694..efbaf9211a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1VolumeAttachment item : items) { V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1VolumeAttachment... items) { } for (V1VolumeAttachment item : items) { V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1VolumeAttachment item) { this.items = new ArrayList(); } V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1VolumeAttachmentBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1VolumeAttachment item) { this.items = new ArrayList(); } V1VolumeAttachmentBuilder builder = new V1VolumeAttachmentBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java index 3e9917d1f8..6ef81185b9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java index 261433281e..dddb9ee2d3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java index 6e1eb6b982..c5d22882be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java index 7ed7c548b9..8673b5a42e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java index 920c6a963f..412fa4c2cf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java index 56ac998905..1d8daaa922 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java index 9ef1fe31b9..5717dab9c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java index 755332b68f..3ae7f425b8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java index 1ce9e11f41..ac7653a441 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java index 83a98b7fbe..5397cecafe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1VolumeAttributesClass item : items) { V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1VolumeAttributesClass... items) { } for (V1VolumeAttributesClass item : items) { V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1VolumeAttributesClass item) { this.items = new ArrayList(); } V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1VolumeAttributesClassBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1VolumeAttributesClass item) { this.items = new ArrayList(); } V1VolumeAttributesClassBuilder builder = new V1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java index 48b28ff46e..9403383803 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java index 9003a1be6a..00263c076c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java index 0b1387e481..6e21e102c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDeviceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java index ddd8280bc1..0a8b0d4eeb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java index b30ff47d8c..70fdd770be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeErrorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java index 2e141418c6..5d34668814 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java index 3a37149e5a..35dd668f98 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java index 2ccd1d8165..c48c05d55c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java index 2f4a61638a..4553e5a8f1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -42,6 +42,7 @@ public V1VolumeMountStatus build() { buildable.setName(fluent.getName()); buildable.setReadOnly(fluent.getReadOnly()); buildable.setRecursiveReadOnly(fluent.getRecursiveReadOnly()); + buildable.setVolumeStatus(fluent.buildVolumeStatus()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java index 65c65300b3..dd1e9fb61b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -13,12 +13,14 @@ package io.kubernetes.client.openapi.models; import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; import java.lang.Boolean; import java.lang.Object; import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; import java.util.Objects; +import java.util.Optional; /** * Generated @@ -30,6 +32,7 @@ public class V1VolumeMountStatusFluent editOrNewVolumeStatus() { + return this.withNewVolumeStatusLike(Optional.ofNullable(this.buildVolumeStatus()).orElse(new V1VolumeStatusBuilder().build())); + } + + public VolumeStatusNested editOrNewVolumeStatusLike(V1VolumeStatus item) { + return this.withNewVolumeStatusLike(Optional.ofNullable(this.buildVolumeStatus()).orElse(item)); + } + + public VolumeStatusNested editVolumeStatus() { + return this.withNewVolumeStatusLike(Optional.ofNullable(this.buildVolumeStatus()).orElse(null)); + } + public boolean equals(Object o) { if (this == o) { return true; @@ -71,6 +91,9 @@ public boolean equals(Object o) { if (!(Objects.equals(recursiveReadOnly, that.recursiveReadOnly))) { return false; } + if (!(Objects.equals(volumeStatus, that.volumeStatus))) { + return false; + } return true; } @@ -106,8 +129,12 @@ public boolean hasRecursiveReadOnly() { return this.recursiveReadOnly != null; } + public boolean hasVolumeStatus() { + return this.volumeStatus != null; + } + public int hashCode() { - return Objects.hash(mountPath, name, readOnly, recursiveReadOnly); + return Objects.hash(mountPath, name, readOnly, recursiveReadOnly, volumeStatus); } public String toString() { @@ -131,6 +158,11 @@ public String toString() { if (!(recursiveReadOnly == null)) { sb.append("recursiveReadOnly:"); sb.append(recursiveReadOnly); + sb.append(","); + } + if (!(volumeStatus == null)) { + sb.append("volumeStatus:"); + sb.append(volumeStatus); } sb.append("}"); return sb.toString(); @@ -146,6 +178,14 @@ public A withName(String name) { return (A) this; } + public VolumeStatusNested withNewVolumeStatus() { + return new VolumeStatusNested(null); + } + + public VolumeStatusNested withNewVolumeStatusLike(V1VolumeStatus item) { + return new VolumeStatusNested(item); + } + public A withReadOnly() { return withReadOnly(true); } @@ -160,4 +200,32 @@ public A withRecursiveReadOnly(String recursiveReadOnly) { return (A) this; } + public A withVolumeStatus(V1VolumeStatus volumeStatus) { + this._visitables.remove("volumeStatus"); + if (volumeStatus != null) { + this.volumeStatus = new V1VolumeStatusBuilder(volumeStatus); + this._visitables.get("volumeStatus").add(this.volumeStatus); + } else { + this.volumeStatus = null; + this._visitables.get("volumeStatus").remove(this.volumeStatus); + } + return (A) this; + } + public class VolumeStatusNested extends V1VolumeStatusFluent> implements Nested{ + + V1VolumeStatusBuilder builder; + + VolumeStatusNested(V1VolumeStatus item) { + this.builder = new V1VolumeStatusBuilder(this, item); + } + + public N and() { + return (N) V1VolumeMountStatusFluent.this.withVolumeStatus(builder.build()); + } + + public N endVolumeStatus() { + return and(); + } + + } } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java index fbab5edeaa..9e17094f71 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java index e80e06cb99..7c17e46a89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinityFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java index baab246509..f1380dbc50 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java index 59a467ff46..21b5b31b92 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResourcesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java index 0be1375bfc..7d2d206dbf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java index 679fbbfeb5..cc9f876df4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjectionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java index 05c247be21..a8a656218f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java index 71e80b8a06..4114218db9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirementsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatusBuilder.java new file mode 100644 index 0000000000..0dceb7012e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatusBuilder.java @@ -0,0 +1,45 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1VolumeStatusBuilder extends V1VolumeStatusFluent implements VisitableBuilder{ + + V1VolumeStatusFluent fluent; + + public V1VolumeStatusBuilder() { + this(new V1VolumeStatus()); + } + + public V1VolumeStatusBuilder(V1VolumeStatusFluent fluent) { + this(fluent, new V1VolumeStatus()); + } + + public V1VolumeStatusBuilder(V1VolumeStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1VolumeStatusBuilder(V1VolumeStatusFluent fluent,V1VolumeStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1VolumeStatus build() { + V1VolumeStatus buildable = new V1VolumeStatus(); + buildable.setImage(fluent.buildImage()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatusFluent.java new file mode 100644 index 0000000000..cacfcf5cdb --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatusFluent.java @@ -0,0 +1,134 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1VolumeStatusFluent> extends BaseFluent{ + + private V1ImageVolumeStatusBuilder image; + + public V1VolumeStatusFluent() { + } + + public V1VolumeStatusFluent(V1VolumeStatus instance) { + this.copyInstance(instance); + } + + public V1ImageVolumeStatus buildImage() { + return this.image != null ? this.image.build() : null; + } + + protected void copyInstance(V1VolumeStatus instance) { + instance = instance != null ? instance : new V1VolumeStatus(); + if (instance != null) { + this.withImage(instance.getImage()); + } + } + + public ImageNested editImage() { + return this.withNewImageLike(Optional.ofNullable(this.buildImage()).orElse(null)); + } + + public ImageNested editOrNewImage() { + return this.withNewImageLike(Optional.ofNullable(this.buildImage()).orElse(new V1ImageVolumeStatusBuilder().build())); + } + + public ImageNested editOrNewImageLike(V1ImageVolumeStatus item) { + return this.withNewImageLike(Optional.ofNullable(this.buildImage()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1VolumeStatusFluent that = (V1VolumeStatusFluent) o; + if (!(Objects.equals(image, that.image))) { + return false; + } + return true; + } + + public boolean hasImage() { + return this.image != null; + } + + public int hashCode() { + return Objects.hash(image); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(image == null)) { + sb.append("image:"); + sb.append(image); + } + sb.append("}"); + return sb.toString(); + } + + public A withImage(V1ImageVolumeStatus image) { + this._visitables.remove("image"); + if (image != null) { + this.image = new V1ImageVolumeStatusBuilder(image); + this._visitables.get("image").add(this.image); + } else { + this.image = null; + this._visitables.get("image").remove(this.image); + } + return (A) this; + } + + public ImageNested withNewImage() { + return new ImageNested(null); + } + + public ImageNested withNewImageLike(V1ImageVolumeStatus item) { + return new ImageNested(item); + } + public class ImageNested extends V1ImageVolumeStatusFluent> implements Nested{ + + V1ImageVolumeStatusBuilder builder; + + ImageNested(V1ImageVolumeStatus item) { + this.builder = new V1ImageVolumeStatusBuilder(this, item); + } + + public N and() { + return (N) V1VolumeStatusFluent.this.withImage(builder.build()); + } + + public N endImage() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java index b23414b4a8..7aeb63c1b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java index cb6c396d17..768aa80815 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java index 225a9b8426..c2475455e7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java index 01080e5c6b..6f1a557eae 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WatchEventFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -38,8 +38,7 @@ public V1WatchEventFluent(V1WatchEvent instance) { protected void copyInstance(V1WatchEvent instance) { instance = instance != null ? instance : new V1WatchEvent(); if (instance != null) { - this.withObject(instance.getObject()); - this.withType(instance.getType()); + this.withType(instance.getType()); } } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java index 326486b09f..32b0ea164c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java index 7965d79922..00b97bbff0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java index eebdd20dbf..8f6331f1e6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java index eab92e2e5d..198e04f02f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTermFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java index c4f30ac670..419451dfbe 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java index 9742bbec9d..24c9f8c5e5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptionsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReferenceBuilder.java deleted file mode 100644 index 6dccdb430b..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReferenceBuilder.java +++ /dev/null @@ -1,47 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1WorkloadReferenceBuilder extends V1WorkloadReferenceFluent implements VisitableBuilder{ - - V1WorkloadReferenceFluent fluent; - - public V1WorkloadReferenceBuilder() { - this(new V1WorkloadReference()); - } - - public V1WorkloadReferenceBuilder(V1WorkloadReferenceFluent fluent) { - this(fluent, new V1WorkloadReference()); - } - - public V1WorkloadReferenceBuilder(V1WorkloadReference instance) { - this.fluent = this; - this.copyInstance(instance); - } - - public V1WorkloadReferenceBuilder(V1WorkloadReferenceFluent fluent,V1WorkloadReference instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1WorkloadReference build() { - V1WorkloadReference buildable = new V1WorkloadReference(); - buildable.setName(fluent.getName()); - buildable.setPodGroup(fluent.getPodGroup()); - buildable.setPodGroupReplicaKey(fluent.getPodGroupReplicaKey()); - return buildable; - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java index c019487608..e258347e04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java index 3f3992e436..02f8303ea7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java index f8c62e9fa8..1b86e30001 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java index ae360511e8..c5b8d687a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java index b47970b287..d8ce4f3c7a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java index 83039af899..aedc7069cd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1alpha1ClusterTrustBundle item : items) { V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1alpha1ClusterTrustBundle... items) { } for (V1alpha1ClusterTrustBundle item : items) { V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1alpha1ClusterTrustBundle item) { this.items = new ArrayList(); } V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate pr return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1alpha1ClusterTrustBundleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1alpha1ClusterTrustBundle item) { this.items = new ArrayList(); } V1alpha1ClusterTrustBundleBuilder builder = new V1alpha1ClusterTrustBundleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecBuilder.java index dc1633f9fd..1e30913533 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java index 6ac98744f0..c6da611b98 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java index bc44873ae9..4dd3bed817 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java index 7908111b9d..b90a96a325 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatchFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java index 76c703669c..93027adc23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java index a67149d9be..043d28b97b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java index 0631759d9d..5b95b89fec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java index a740c6c3a8..ba1c653ad8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResourcesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -52,7 +52,7 @@ public A addAllToExcludeResourceRules(Collection items } for (V1alpha1NamedRuleWithOperations item : items) { V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - _visitables.get("resourceRules").add(builder); + this._visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } return (A) this; @@ -92,7 +92,7 @@ public A addToExcludeResourceRules(V1alpha1NamedRuleWithOperations... items) { } for (V1alpha1NamedRuleWithOperations item : items) { V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - _visitables.get("excludeResourceRules").add(builder); + this._visitables.get("excludeResourceRules").add(builder); this.excludeResourceRules.add(builder); } return (A) this; @@ -103,12 +103,12 @@ public A addToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations ite this.excludeResourceRules = new ArrayList(); } V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(builder); + if (index < 0 || index >= this.excludeResourceRules.size()) { + this._visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); } else { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(index, builder); + this._visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(index, builder); } return (A) this; } @@ -119,7 +119,7 @@ public A addToResourceRules(V1alpha1NamedRuleWithOperations... items) { } for (V1alpha1NamedRuleWithOperations item : items) { V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - _visitables.get("resourceRules").add(builder); + this._visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } return (A) this; @@ -130,12 +130,12 @@ public A addToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { this.resourceRules = new ArrayList(); } V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); + if (index < 0 || index >= this.resourceRules.size()) { + this._visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } else { - _visitables.get("resourceRules").add(builder); - resourceRules.add(index, builder); + this._visitables.get("resourceRules").add(builder); + this.resourceRules.add(index, builder); } return (A) this; } @@ -433,7 +433,7 @@ public A removeMatchingFromExcludeResourceRules(Predicate each = excludeResourceRules.iterator(); - List visitables = _visitables.get("excludeResourceRules"); + List visitables = this._visitables.get("excludeResourceRules"); while (each.hasNext()) { V1alpha1NamedRuleWithOperationsBuilder builder = each.next(); if (predicate.test(builder)) { @@ -449,7 +449,7 @@ public A removeMatchingFromResourceRules(Predicate each = resourceRules.iterator(); - List visitables = _visitables.get("resourceRules"); + List visitables = this._visitables.get("resourceRules"); while (each.hasNext()) { V1alpha1NamedRuleWithOperationsBuilder builder = each.next(); if (predicate.test(builder)) { @@ -473,12 +473,12 @@ public A setToExcludeResourceRules(int index,V1alpha1NamedRuleWithOperations ite this.excludeResourceRules = new ArrayList(); } V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(builder); + if (index < 0 || index >= this.excludeResourceRules.size()) { + this._visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); } else { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.set(index, builder); + this._visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.set(index, builder); } return (A) this; } @@ -488,12 +488,12 @@ public A setToResourceRules(int index,V1alpha1NamedRuleWithOperations item) { this.resourceRules = new ArrayList(); } V1alpha1NamedRuleWithOperationsBuilder builder = new V1alpha1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); + if (index < 0 || index >= this.resourceRules.size()) { + this._visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } else { - _visitables.get("resourceRules").add(builder); - resourceRules.set(index, builder); + this._visitables.get("resourceRules").add(builder); + this.resourceRules.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java index d59734a7d7..d8469a0490 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java index 140b33ec51..7e92a19f48 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java index b5a58a3c89..05cc0bdd28 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java index 42f4f751cd..b7b9289c94 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) } for (V1alpha1MutatingAdmissionPolicyBinding item : items) { V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1alpha1MutatingAdmissionPolicyBinding... items) { } for (V1alpha1MutatingAdmissionPolicyBinding item : items) { V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { this.items = new ArrayList(); } V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1alpha1MutatingAdmissionPolicyBindingBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1alpha1MutatingAdmissionPolicyBinding item) { this.items = new ArrayList(); } V1alpha1MutatingAdmissionPolicyBindingBuilder builder = new V1alpha1MutatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java index 24cf1d081b..68e429bb8c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java index b269056b29..d97d4ab40a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java index e34b296d46..a60f1a940c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java index a93d7f69d4..f14ea37be6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java index 28b733e987..c83c86d57f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java index 2c8822d7d6..94bdc33ea7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1alpha1MutatingAdmissionPolicy item : items) { V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1alpha1MutatingAdmissionPolicy... items) { } for (V1alpha1MutatingAdmissionPolicy item : items) { V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1alpha1MutatingAdmissionPolicy item) { this.items = new ArrayList(); } V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1alpha1MutatingAdmissionPolicyBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1alpha1MutatingAdmissionPolicy item) { this.items = new ArrayList(); } V1alpha1MutatingAdmissionPolicyBuilder builder = new V1alpha1MutatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java index 7ddba35a8e..793c4fb25f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java index ed31d4788e..c53bd864c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -54,7 +54,7 @@ public A addAllToMatchConditions(Collection items) { } for (V1alpha1MatchCondition item : items) { V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); + this._visitables.get("matchConditions").add(builder); this.matchConditions.add(builder); } return (A) this; @@ -66,7 +66,7 @@ public A addAllToMutations(Collection items) { } for (V1alpha1Mutation item : items) { V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); - _visitables.get("mutations").add(builder); + this._visitables.get("mutations").add(builder); this.mutations.add(builder); } return (A) this; @@ -78,7 +78,7 @@ public A addAllToVariables(Collection items) { } for (V1alpha1Variable item : items) { V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); - _visitables.get("variables").add(builder); + this._visitables.get("variables").add(builder); this.variables.add(builder); } return (A) this; @@ -114,7 +114,7 @@ public A addToMatchConditions(V1alpha1MatchCondition... items) { } for (V1alpha1MatchCondition item : items) { V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); + this._visitables.get("matchConditions").add(builder); this.matchConditions.add(builder); } return (A) this; @@ -125,12 +125,12 @@ public A addToMatchConditions(int index,V1alpha1MatchCondition item) { this.matchConditions = new ArrayList(); } V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); + if (index < 0 || index >= this.matchConditions.size()) { + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); } else { - _visitables.get("matchConditions").add(builder); - matchConditions.add(index, builder); + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(index, builder); } return (A) this; } @@ -141,7 +141,7 @@ public A addToMutations(V1alpha1Mutation... items) { } for (V1alpha1Mutation item : items) { V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); - _visitables.get("mutations").add(builder); + this._visitables.get("mutations").add(builder); this.mutations.add(builder); } return (A) this; @@ -152,12 +152,12 @@ public A addToMutations(int index,V1alpha1Mutation item) { this.mutations = new ArrayList(); } V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); - if (index < 0 || index >= mutations.size()) { - _visitables.get("mutations").add(builder); - mutations.add(builder); + if (index < 0 || index >= this.mutations.size()) { + this._visitables.get("mutations").add(builder); + this.mutations.add(builder); } else { - _visitables.get("mutations").add(builder); - mutations.add(index, builder); + this._visitables.get("mutations").add(builder); + this.mutations.add(index, builder); } return (A) this; } @@ -168,7 +168,7 @@ public A addToVariables(V1alpha1Variable... items) { } for (V1alpha1Variable item : items) { V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); - _visitables.get("variables").add(builder); + this._visitables.get("variables").add(builder); this.variables.add(builder); } return (A) this; @@ -179,12 +179,12 @@ public A addToVariables(int index,V1alpha1Variable item) { this.variables = new ArrayList(); } V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { - _visitables.get("variables").add(builder); - variables.add(builder); + if (index < 0 || index >= this.variables.size()) { + this._visitables.get("variables").add(builder); + this.variables.add(builder); } else { - _visitables.get("variables").add(builder); - variables.add(index, builder); + this._visitables.get("variables").add(builder); + this.variables.add(index, builder); } return (A) this; } @@ -596,7 +596,7 @@ public A removeMatchingFromMatchConditions(Predicate each = matchConditions.iterator(); - List visitables = _visitables.get("matchConditions"); + List visitables = this._visitables.get("matchConditions"); while (each.hasNext()) { V1alpha1MatchConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -612,7 +612,7 @@ public A removeMatchingFromMutations(Predicate predicat return (A) this; } Iterator each = mutations.iterator(); - List visitables = _visitables.get("mutations"); + List visitables = this._visitables.get("mutations"); while (each.hasNext()) { V1alpha1MutationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -628,7 +628,7 @@ public A removeMatchingFromVariables(Predicate predicat return (A) this; } Iterator each = variables.iterator(); - List visitables = _visitables.get("variables"); + List visitables = this._visitables.get("variables"); while (each.hasNext()) { V1alpha1VariableBuilder builder = each.next(); if (predicate.test(builder)) { @@ -656,12 +656,12 @@ public A setToMatchConditions(int index,V1alpha1MatchCondition item) { this.matchConditions = new ArrayList(); } V1alpha1MatchConditionBuilder builder = new V1alpha1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); + if (index < 0 || index >= this.matchConditions.size()) { + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); } else { - _visitables.get("matchConditions").add(builder); - matchConditions.set(index, builder); + this._visitables.get("matchConditions").add(builder); + this.matchConditions.set(index, builder); } return (A) this; } @@ -671,12 +671,12 @@ public A setToMutations(int index,V1alpha1Mutation item) { this.mutations = new ArrayList(); } V1alpha1MutationBuilder builder = new V1alpha1MutationBuilder(item); - if (index < 0 || index >= mutations.size()) { - _visitables.get("mutations").add(builder); - mutations.add(builder); + if (index < 0 || index >= this.mutations.size()) { + this._visitables.get("mutations").add(builder); + this.mutations.add(builder); } else { - _visitables.get("mutations").add(builder); - mutations.set(index, builder); + this._visitables.get("mutations").add(builder); + this.mutations.set(index, builder); } return (A) this; } @@ -686,12 +686,12 @@ public A setToVariables(int index,V1alpha1Variable item) { this.variables = new ArrayList(); } V1alpha1VariableBuilder builder = new V1alpha1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { - _visitables.get("variables").add(builder); - variables.add(builder); + if (index < 0 || index >= this.variables.size()) { + this._visitables.get("variables").add(builder); + this.variables.add(builder); } else { - _visitables.get("variables").add(builder); - variables.set(index, builder); + this._visitables.get("variables").add(builder); + this.variables.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java index 58829a9419..bdd518293e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java index c60e1575c7..e2a39405b1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsBuilder.java index 36d58daa3d..d50f612b7d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java index b418f6be8d..c1cb60011f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperationsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindBuilder.java index e85a4bf9e0..b843b38ba5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java index 56fc4f6827..12dbcfcf30 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKindFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java index 6193344cdd..762255699e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java index 1bc82e368b..349536cbb5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRefFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupFluent.java deleted file mode 100644 index 7dbe452bb7..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupFluent.java +++ /dev/null @@ -1,157 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.String; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import java.util.Objects; -import java.util.Optional; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1PodGroupFluent> extends BaseFluent{ - - private String name; - private V1alpha1PodGroupPolicyBuilder policy; - - public V1alpha1PodGroupFluent() { - } - - public V1alpha1PodGroupFluent(V1alpha1PodGroup instance) { - this.copyInstance(instance); - } - - public V1alpha1PodGroupPolicy buildPolicy() { - return this.policy != null ? this.policy.build() : null; - } - - protected void copyInstance(V1alpha1PodGroup instance) { - instance = instance != null ? instance : new V1alpha1PodGroup(); - if (instance != null) { - this.withName(instance.getName()); - this.withPolicy(instance.getPolicy()); - } - } - - public PolicyNested editOrNewPolicy() { - return this.withNewPolicyLike(Optional.ofNullable(this.buildPolicy()).orElse(new V1alpha1PodGroupPolicyBuilder().build())); - } - - public PolicyNested editOrNewPolicyLike(V1alpha1PodGroupPolicy item) { - return this.withNewPolicyLike(Optional.ofNullable(this.buildPolicy()).orElse(item)); - } - - public PolicyNested editPolicy() { - return this.withNewPolicyLike(Optional.ofNullable(this.buildPolicy()).orElse(null)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1alpha1PodGroupFluent that = (V1alpha1PodGroupFluent) o; - if (!(Objects.equals(name, that.name))) { - return false; - } - if (!(Objects.equals(policy, that.policy))) { - return false; - } - return true; - } - - public String getName() { - return this.name; - } - - public boolean hasName() { - return this.name != null; - } - - public boolean hasPolicy() { - return this.policy != null; - } - - public int hashCode() { - return Objects.hash(name, policy); - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(name == null)) { - sb.append("name:"); - sb.append(name); - sb.append(","); - } - if (!(policy == null)) { - sb.append("policy:"); - sb.append(policy); - } - sb.append("}"); - return sb.toString(); - } - - public A withName(String name) { - this.name = name; - return (A) this; - } - - public PolicyNested withNewPolicy() { - return new PolicyNested(null); - } - - public PolicyNested withNewPolicyLike(V1alpha1PodGroupPolicy item) { - return new PolicyNested(item); - } - - public A withPolicy(V1alpha1PodGroupPolicy policy) { - this._visitables.remove("policy"); - if (policy != null) { - this.policy = new V1alpha1PodGroupPolicyBuilder(policy); - this._visitables.get("policy").add(this.policy); - } else { - this.policy = null; - this._visitables.get("policy").remove(this.policy); - } - return (A) this; - } - public class PolicyNested extends V1alpha1PodGroupPolicyFluent> implements Nested{ - - V1alpha1PodGroupPolicyBuilder builder; - - PolicyNested(V1alpha1PodGroupPolicy item) { - this.builder = new V1alpha1PodGroupPolicyBuilder(this, item); - } - - public N and() { - return (N) V1alpha1PodGroupFluent.this.withPolicy(builder.build()); - } - - public N endPolicy() { - return and(); - } - - } -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicyBuilder.java deleted file mode 100644 index a381836f5c..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicyBuilder.java +++ /dev/null @@ -1,46 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.VisitableBuilder; -import java.lang.Object; -public class V1alpha1PodGroupPolicyBuilder extends V1alpha1PodGroupPolicyFluent implements VisitableBuilder{ - - V1alpha1PodGroupPolicyFluent fluent; - - public V1alpha1PodGroupPolicyBuilder() { - this(new V1alpha1PodGroupPolicy()); - } - - public V1alpha1PodGroupPolicyBuilder(V1alpha1PodGroupPolicyFluent fluent) { - this(fluent, new V1alpha1PodGroupPolicy()); - } - - public V1alpha1PodGroupPolicyBuilder(V1alpha1PodGroupPolicy instance) { - this.fluent = this; - this.copyInstance(instance); - } - - public V1alpha1PodGroupPolicyBuilder(V1alpha1PodGroupPolicyFluent fluent,V1alpha1PodGroupPolicy instance) { - this.fluent = fluent; - fluent.copyInstance(instance); - } - - public V1alpha1PodGroupPolicy build() { - V1alpha1PodGroupPolicy buildable = new V1alpha1PodGroupPolicy(); - buildable.setBasic(fluent.getBasic()); - buildable.setGang(fluent.buildGang()); - return buildable; - } - -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java index 0e004c5699..517ec83ce8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java index f260a0de8a..c8e8f46f3e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java index 1089f2d868..a2f9a762bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java index 7fca8d1862..643d2280f8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java index fddb5660e7..134c7304ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java index 0ab857febd..2bbc76e4ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java index 85780934f8..ec178da2e3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java index 14bfd48492..f933af1d72 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1alpha1StorageVersion item : items) { V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1alpha1StorageVersion... items) { } for (V1alpha1StorageVersion item : items) { V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1alpha1StorageVersion item) { this.items = new ArrayList(); } V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predic return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1alpha1StorageVersionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1alpha1StorageVersion item) { this.items = new ArrayList(); } V1alpha1StorageVersionBuilder builder = new V1alpha1StorageVersionBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java index 99248617cd..e6ba7547a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java index 1e3a2040ed..e6bd979540 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ public A addAllToConditions(Collection items) { } for (V1alpha1StorageVersionCondition item : items) { V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -61,7 +61,7 @@ public A addAllToStorageVersions(Collection items) } for (V1alpha1ServerStorageVersion item : items) { V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - _visitables.get("storageVersions").add(builder); + this._visitables.get("storageVersions").add(builder); this.storageVersions.add(builder); } return (A) this; @@ -89,7 +89,7 @@ public A addToConditions(V1alpha1StorageVersionCondition... items) { } for (V1alpha1StorageVersionCondition item : items) { V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -100,12 +100,12 @@ public A addToConditions(int index,V1alpha1StorageVersionCondition item) { this.conditions = new ArrayList(); } V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -116,7 +116,7 @@ public A addToStorageVersions(V1alpha1ServerStorageVersion... items) { } for (V1alpha1ServerStorageVersion item : items) { V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - _visitables.get("storageVersions").add(builder); + this._visitables.get("storageVersions").add(builder); this.storageVersions.add(builder); } return (A) this; @@ -127,12 +127,12 @@ public A addToStorageVersions(int index,V1alpha1ServerStorageVersion item) { this.storageVersions = new ArrayList(); } V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - if (index < 0 || index >= storageVersions.size()) { - _visitables.get("storageVersions").add(builder); - storageVersions.add(builder); + if (index < 0 || index >= this.storageVersions.size()) { + this._visitables.get("storageVersions").add(builder); + this.storageVersions.add(builder); } else { - _visitables.get("storageVersions").add(builder); - storageVersions.add(index, builder); + this._visitables.get("storageVersions").add(builder); + this.storageVersions.add(index, builder); } return (A) this; } @@ -382,7 +382,7 @@ public A removeMatchingFromConditions(Predicate each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1alpha1StorageVersionConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -398,7 +398,7 @@ public A removeMatchingFromStorageVersions(Predicate each = storageVersions.iterator(); - List visitables = _visitables.get("storageVersions"); + List visitables = this._visitables.get("storageVersions"); while (each.hasNext()) { V1alpha1ServerStorageVersionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -422,12 +422,12 @@ public A setToConditions(int index,V1alpha1StorageVersionCondition item) { this.conditions = new ArrayList(); } V1alpha1StorageVersionConditionBuilder builder = new V1alpha1StorageVersionConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } @@ -437,12 +437,12 @@ public A setToStorageVersions(int index,V1alpha1ServerStorageVersion item) { this.storageVersions = new ArrayList(); } V1alpha1ServerStorageVersionBuilder builder = new V1alpha1ServerStorageVersionBuilder(item); - if (index < 0 || index >= storageVersions.size()) { - _visitables.get("storageVersions").add(builder); - storageVersions.add(builder); + if (index < 0 || index >= this.storageVersions.size()) { + this._visitables.get("storageVersions").add(builder); + this.storageVersions.add(builder); } else { - _visitables.get("storageVersions").add(builder); - storageVersions.set(index, builder); + this._visitables.get("storageVersions").add(builder); + this.storageVersions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableBuilder.java index 5f409f3431..f396247462 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java index 691d3e9b17..019805b376 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1VariableFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpecFluent.java deleted file mode 100644 index bc2e129228..0000000000 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpecFluent.java +++ /dev/null @@ -1,377 +0,0 @@ -/* -Copyright 2020 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import io.kubernetes.client.fluent.BaseFluent; -import io.kubernetes.client.fluent.Nested; -import java.lang.Object; -import java.lang.RuntimeException; -import java.lang.String; -import java.lang.StringBuilder; -import java.lang.SuppressWarnings; -import java.util.ArrayList; -import java.util.Collection; -import java.util.Iterator; -import java.util.List; -import java.util.Objects; -import java.util.Optional; -import java.util.function.Predicate; - -/** - * Generated - */ -@SuppressWarnings("unchecked") -public class V1alpha1WorkloadSpecFluent> extends BaseFluent{ - - private V1alpha1TypedLocalObjectReferenceBuilder controllerRef; - private ArrayList podGroups; - - public V1alpha1WorkloadSpecFluent() { - } - - public V1alpha1WorkloadSpecFluent(V1alpha1WorkloadSpec instance) { - this.copyInstance(instance); - } - - public A addAllToPodGroups(Collection items) { - if (this.podGroups == null) { - this.podGroups = new ArrayList(); - } - for (V1alpha1PodGroup item : items) { - V1alpha1PodGroupBuilder builder = new V1alpha1PodGroupBuilder(item); - _visitables.get("podGroups").add(builder); - this.podGroups.add(builder); - } - return (A) this; - } - - public PodGroupsNested addNewPodGroup() { - return new PodGroupsNested(-1, null); - } - - public PodGroupsNested addNewPodGroupLike(V1alpha1PodGroup item) { - return new PodGroupsNested(-1, item); - } - - public A addToPodGroups(V1alpha1PodGroup... items) { - if (this.podGroups == null) { - this.podGroups = new ArrayList(); - } - for (V1alpha1PodGroup item : items) { - V1alpha1PodGroupBuilder builder = new V1alpha1PodGroupBuilder(item); - _visitables.get("podGroups").add(builder); - this.podGroups.add(builder); - } - return (A) this; - } - - public A addToPodGroups(int index,V1alpha1PodGroup item) { - if (this.podGroups == null) { - this.podGroups = new ArrayList(); - } - V1alpha1PodGroupBuilder builder = new V1alpha1PodGroupBuilder(item); - if (index < 0 || index >= podGroups.size()) { - _visitables.get("podGroups").add(builder); - podGroups.add(builder); - } else { - _visitables.get("podGroups").add(builder); - podGroups.add(index, builder); - } - return (A) this; - } - - public V1alpha1TypedLocalObjectReference buildControllerRef() { - return this.controllerRef != null ? this.controllerRef.build() : null; - } - - public V1alpha1PodGroup buildFirstPodGroup() { - return this.podGroups.get(0).build(); - } - - public V1alpha1PodGroup buildLastPodGroup() { - return this.podGroups.get(podGroups.size() - 1).build(); - } - - public V1alpha1PodGroup buildMatchingPodGroup(Predicate predicate) { - for (V1alpha1PodGroupBuilder item : podGroups) { - if (predicate.test(item)) { - return item.build(); - } - } - return null; - } - - public V1alpha1PodGroup buildPodGroup(int index) { - return this.podGroups.get(index).build(); - } - - public List buildPodGroups() { - return this.podGroups != null ? build(podGroups) : null; - } - - protected void copyInstance(V1alpha1WorkloadSpec instance) { - instance = instance != null ? instance : new V1alpha1WorkloadSpec(); - if (instance != null) { - this.withControllerRef(instance.getControllerRef()); - this.withPodGroups(instance.getPodGroups()); - } - } - - public ControllerRefNested editControllerRef() { - return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(null)); - } - - public PodGroupsNested editFirstPodGroup() { - if (podGroups.size() == 0) { - throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "podGroups")); - } - return this.setNewPodGroupLike(0, this.buildPodGroup(0)); - } - - public PodGroupsNested editLastPodGroup() { - int index = podGroups.size() - 1; - if (index < 0) { - throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "podGroups")); - } - return this.setNewPodGroupLike(index, this.buildPodGroup(index)); - } - - public PodGroupsNested editMatchingPodGroup(Predicate predicate) { - int index = -1; - for (int i = 0;i < podGroups.size();i++) { - if (predicate.test(podGroups.get(i))) { - index = i; - break; - } - } - if (index < 0) { - throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "podGroups")); - } - return this.setNewPodGroupLike(index, this.buildPodGroup(index)); - } - - public ControllerRefNested editOrNewControllerRef() { - return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(new V1alpha1TypedLocalObjectReferenceBuilder().build())); - } - - public ControllerRefNested editOrNewControllerRefLike(V1alpha1TypedLocalObjectReference item) { - return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(item)); - } - - public PodGroupsNested editPodGroup(int index) { - if (podGroups.size() <= index) { - throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "podGroups")); - } - return this.setNewPodGroupLike(index, this.buildPodGroup(index)); - } - - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || this.getClass() != o.getClass()) { - return false; - } - if (!(super.equals(o))) { - return false; - } - V1alpha1WorkloadSpecFluent that = (V1alpha1WorkloadSpecFluent) o; - if (!(Objects.equals(controllerRef, that.controllerRef))) { - return false; - } - if (!(Objects.equals(podGroups, that.podGroups))) { - return false; - } - return true; - } - - public boolean hasControllerRef() { - return this.controllerRef != null; - } - - public boolean hasMatchingPodGroup(Predicate predicate) { - for (V1alpha1PodGroupBuilder item : podGroups) { - if (predicate.test(item)) { - return true; - } - } - return false; - } - - public boolean hasPodGroups() { - return this.podGroups != null && !(this.podGroups.isEmpty()); - } - - public int hashCode() { - return Objects.hash(controllerRef, podGroups); - } - - public A removeAllFromPodGroups(Collection items) { - if (this.podGroups == null) { - return (A) this; - } - for (V1alpha1PodGroup item : items) { - V1alpha1PodGroupBuilder builder = new V1alpha1PodGroupBuilder(item); - _visitables.get("podGroups").remove(builder); - this.podGroups.remove(builder); - } - return (A) this; - } - - public A removeFromPodGroups(V1alpha1PodGroup... items) { - if (this.podGroups == null) { - return (A) this; - } - for (V1alpha1PodGroup item : items) { - V1alpha1PodGroupBuilder builder = new V1alpha1PodGroupBuilder(item); - _visitables.get("podGroups").remove(builder); - this.podGroups.remove(builder); - } - return (A) this; - } - - public A removeMatchingFromPodGroups(Predicate predicate) { - if (podGroups == null) { - return (A) this; - } - Iterator each = podGroups.iterator(); - List visitables = _visitables.get("podGroups"); - while (each.hasNext()) { - V1alpha1PodGroupBuilder builder = each.next(); - if (predicate.test(builder)) { - visitables.remove(builder); - each.remove(); - } - } - return (A) this; - } - - public PodGroupsNested setNewPodGroupLike(int index,V1alpha1PodGroup item) { - return new PodGroupsNested(index, item); - } - - public A setToPodGroups(int index,V1alpha1PodGroup item) { - if (this.podGroups == null) { - this.podGroups = new ArrayList(); - } - V1alpha1PodGroupBuilder builder = new V1alpha1PodGroupBuilder(item); - if (index < 0 || index >= podGroups.size()) { - _visitables.get("podGroups").add(builder); - podGroups.add(builder); - } else { - _visitables.get("podGroups").add(builder); - podGroups.set(index, builder); - } - return (A) this; - } - - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("{"); - if (!(controllerRef == null)) { - sb.append("controllerRef:"); - sb.append(controllerRef); - sb.append(","); - } - if (!(podGroups == null) && !(podGroups.isEmpty())) { - sb.append("podGroups:"); - sb.append(podGroups); - } - sb.append("}"); - return sb.toString(); - } - - public A withControllerRef(V1alpha1TypedLocalObjectReference controllerRef) { - this._visitables.remove("controllerRef"); - if (controllerRef != null) { - this.controllerRef = new V1alpha1TypedLocalObjectReferenceBuilder(controllerRef); - this._visitables.get("controllerRef").add(this.controllerRef); - } else { - this.controllerRef = null; - this._visitables.get("controllerRef").remove(this.controllerRef); - } - return (A) this; - } - - public ControllerRefNested withNewControllerRef() { - return new ControllerRefNested(null); - } - - public ControllerRefNested withNewControllerRefLike(V1alpha1TypedLocalObjectReference item) { - return new ControllerRefNested(item); - } - - public A withPodGroups(List podGroups) { - if (this.podGroups != null) { - this._visitables.get("podGroups").clear(); - } - if (podGroups != null) { - this.podGroups = new ArrayList(); - for (V1alpha1PodGroup item : podGroups) { - this.addToPodGroups(item); - } - } else { - this.podGroups = null; - } - return (A) this; - } - - public A withPodGroups(V1alpha1PodGroup... podGroups) { - if (this.podGroups != null) { - this.podGroups.clear(); - _visitables.remove("podGroups"); - } - if (podGroups != null) { - for (V1alpha1PodGroup item : podGroups) { - this.addToPodGroups(item); - } - } - return (A) this; - } - public class ControllerRefNested extends V1alpha1TypedLocalObjectReferenceFluent> implements Nested{ - - V1alpha1TypedLocalObjectReferenceBuilder builder; - - ControllerRefNested(V1alpha1TypedLocalObjectReference item) { - this.builder = new V1alpha1TypedLocalObjectReferenceBuilder(this, item); - } - - public N and() { - return (N) V1alpha1WorkloadSpecFluent.this.withControllerRef(builder.build()); - } - - public N endControllerRef() { - return and(); - } - - } - public class PodGroupsNested extends V1alpha1PodGroupFluent> implements Nested{ - - V1alpha1PodGroupBuilder builder; - int index; - - PodGroupsNested(int index,V1alpha1PodGroup item) { - this.index = index; - this.builder = new V1alpha1PodGroupBuilder(this, item); - } - - public N and() { - return (N) V1alpha1WorkloadSpecFluent.this.setToPodGroups(index, builder.build()); - } - - public N endPodGroup() { - return and(); - } - - } -} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicyBuilder.java similarity index 53% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicyBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicyBuilder.java index 52ed20e1d5..3d7022dac5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -14,30 +14,30 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; -public class V1alpha1GangSchedulingPolicyBuilder extends V1alpha1GangSchedulingPolicyFluent implements VisitableBuilder{ +public class V1alpha2GangSchedulingPolicyBuilder extends V1alpha2GangSchedulingPolicyFluent implements VisitableBuilder{ - V1alpha1GangSchedulingPolicyFluent fluent; + V1alpha2GangSchedulingPolicyFluent fluent; - public V1alpha1GangSchedulingPolicyBuilder() { - this(new V1alpha1GangSchedulingPolicy()); + public V1alpha2GangSchedulingPolicyBuilder() { + this(new V1alpha2GangSchedulingPolicy()); } - public V1alpha1GangSchedulingPolicyBuilder(V1alpha1GangSchedulingPolicyFluent fluent) { - this(fluent, new V1alpha1GangSchedulingPolicy()); + public V1alpha2GangSchedulingPolicyBuilder(V1alpha2GangSchedulingPolicyFluent fluent) { + this(fluent, new V1alpha2GangSchedulingPolicy()); } - public V1alpha1GangSchedulingPolicyBuilder(V1alpha1GangSchedulingPolicy instance) { + public V1alpha2GangSchedulingPolicyBuilder(V1alpha2GangSchedulingPolicy instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha1GangSchedulingPolicyBuilder(V1alpha1GangSchedulingPolicyFluent fluent,V1alpha1GangSchedulingPolicy instance) { + public V1alpha2GangSchedulingPolicyBuilder(V1alpha2GangSchedulingPolicyFluent fluent,V1alpha2GangSchedulingPolicy instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha1GangSchedulingPolicy build() { - V1alpha1GangSchedulingPolicy buildable = new V1alpha1GangSchedulingPolicy(); + public V1alpha2GangSchedulingPolicy build() { + V1alpha2GangSchedulingPolicy buildable = new V1alpha2GangSchedulingPolicy(); buildable.setMinCount(fluent.getMinCount()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicyFluent.java similarity index 80% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicyFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicyFluent.java index 1340333864..bae2b91422 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -24,19 +24,19 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1GangSchedulingPolicyFluent> extends BaseFluent{ +public class V1alpha2GangSchedulingPolicyFluent> extends BaseFluent{ private Integer minCount; - public V1alpha1GangSchedulingPolicyFluent() { + public V1alpha2GangSchedulingPolicyFluent() { } - public V1alpha1GangSchedulingPolicyFluent(V1alpha1GangSchedulingPolicy instance) { + public V1alpha2GangSchedulingPolicyFluent(V1alpha2GangSchedulingPolicy instance) { this.copyInstance(instance); } - protected void copyInstance(V1alpha1GangSchedulingPolicy instance) { - instance = instance != null ? instance : new V1alpha1GangSchedulingPolicy(); + protected void copyInstance(V1alpha2GangSchedulingPolicy instance) { + instance = instance != null ? instance : new V1alpha2GangSchedulingPolicy(); if (instance != null) { this.withMinCount(instance.getMinCount()); } @@ -52,7 +52,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1GangSchedulingPolicyFluent that = (V1alpha1GangSchedulingPolicyFluent) o; + V1alpha2GangSchedulingPolicyFluent that = (V1alpha2GangSchedulingPolicyFluent) o; if (!(Objects.equals(minCount, that.minCount))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java index 7ab4a62fa4..f4021b4159 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java index 90888ad334..17d5b33e14 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java index 984d2c45e1..243cf9d6ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java index dac9f72b47..42b4e0b31d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1alpha2LeaseCandidate item : items) { V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1alpha2LeaseCandidate... items) { } for (V1alpha2LeaseCandidate item : items) { V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1alpha2LeaseCandidate item) { this.items = new ArrayList(); } V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predic return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1alpha2LeaseCandidateBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1alpha2LeaseCandidate item) { this.items = new ArrayList(); } V1alpha2LeaseCandidateBuilder builder = new V1alpha2LeaseCandidateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java index 24a89fa709..a6d55532f5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java index 0ae17c00b7..a8204a6e25 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupBuilder.java new file mode 100644 index 0000000000..d3bb30ac78 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupBuilder.java @@ -0,0 +1,49 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha2PodGroupBuilder extends V1alpha2PodGroupFluent implements VisitableBuilder{ + + V1alpha2PodGroupFluent fluent; + + public V1alpha2PodGroupBuilder() { + this(new V1alpha2PodGroup()); + } + + public V1alpha2PodGroupBuilder(V1alpha2PodGroupFluent fluent) { + this(fluent, new V1alpha2PodGroup()); + } + + public V1alpha2PodGroupBuilder(V1alpha2PodGroup instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha2PodGroupBuilder(V1alpha2PodGroupFluent fluent,V1alpha2PodGroup instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha2PodGroup build() { + V1alpha2PodGroup buildable = new V1alpha2PodGroup(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupFluent.java new file mode 100644 index 0000000000..d75bb8ac6c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupFluent.java @@ -0,0 +1,314 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2PodGroupFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha2PodGroupSpecBuilder spec; + private V1alpha2PodGroupStatusBuilder status; + + public V1alpha2PodGroupFluent() { + } + + public V1alpha2PodGroupFluent(V1alpha2PodGroup instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha2PodGroupSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1alpha2PodGroupStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + protected void copyInstance(V1alpha2PodGroup instance) { + instance = instance != null ? instance : new V1alpha2PodGroup(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha2PodGroupSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha2PodGroupSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha2PodGroupStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1alpha2PodGroupStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha2PodGroupFluent that = (V1alpha2PodGroupFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha2PodGroupSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1alpha2PodGroupStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1alpha2PodGroupSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha2PodGroupSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1alpha2PodGroupStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1alpha2PodGroupStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1alpha2PodGroupSpecFluent> implements Nested{ + + V1alpha2PodGroupSpecBuilder builder; + + SpecNested(V1alpha2PodGroupSpec item) { + this.builder = new V1alpha2PodGroupSpecBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1alpha2PodGroupStatusFluent> implements Nested{ + + V1alpha2PodGroupStatusBuilder builder; + + StatusNested(V1alpha2PodGroupStatus item) { + this.builder = new V1alpha2PodGroupStatusBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupFluent.this.withStatus(builder.build()); + } + + public N endStatus() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupListBuilder.java similarity index 58% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadListBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupListBuilder.java index 6da4d86256..b5862109f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -14,30 +14,30 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; -public class V1alpha1WorkloadListBuilder extends V1alpha1WorkloadListFluent implements VisitableBuilder{ +public class V1alpha2PodGroupListBuilder extends V1alpha2PodGroupListFluent implements VisitableBuilder{ - V1alpha1WorkloadListFluent fluent; + V1alpha2PodGroupListFluent fluent; - public V1alpha1WorkloadListBuilder() { - this(new V1alpha1WorkloadList()); + public V1alpha2PodGroupListBuilder() { + this(new V1alpha2PodGroupList()); } - public V1alpha1WorkloadListBuilder(V1alpha1WorkloadListFluent fluent) { - this(fluent, new V1alpha1WorkloadList()); + public V1alpha2PodGroupListBuilder(V1alpha2PodGroupListFluent fluent) { + this(fluent, new V1alpha2PodGroupList()); } - public V1alpha1WorkloadListBuilder(V1alpha1WorkloadList instance) { + public V1alpha2PodGroupListBuilder(V1alpha2PodGroupList instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha1WorkloadListBuilder(V1alpha1WorkloadListFluent fluent,V1alpha1WorkloadList instance) { + public V1alpha2PodGroupListBuilder(V1alpha2PodGroupListFluent fluent,V1alpha2PodGroupList instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha1WorkloadList build() { - V1alpha1WorkloadList buildable = new V1alpha1WorkloadList(); + public V1alpha2PodGroupList build() { + V1alpha2PodGroupList buildable = new V1alpha2PodGroupList(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setItems(fluent.buildItems()); buildable.setKind(fluent.getKind()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupListFluent.java new file mode 100644 index 0000000000..a2e44ce958 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupListFluent.java @@ -0,0 +1,423 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2PodGroupListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1alpha2PodGroupListFluent() { + } + + public V1alpha2PodGroupListFluent(V1alpha2PodGroupList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha2PodGroup item : items) { + V1alpha2PodGroupBuilder builder = new V1alpha2PodGroupBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha2PodGroup item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V1alpha2PodGroup... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha2PodGroup item : items) { + V1alpha2PodGroupBuilder builder = new V1alpha2PodGroupBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1alpha2PodGroup item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha2PodGroupBuilder builder = new V1alpha2PodGroupBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.add(index, builder); + } + return (A) this; + } + + public V1alpha2PodGroup buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha2PodGroup buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha2PodGroup buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha2PodGroup buildMatchingItem(Predicate predicate) { + for (V1alpha2PodGroupBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1alpha2PodGroupList instance) { + instance = instance != null ? instance : new V1alpha2PodGroupList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha2PodGroupListFluent that = (V1alpha2PodGroupListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha2PodGroupBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha2PodGroup item : items) { + V1alpha2PodGroupBuilder builder = new V1alpha2PodGroupBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha2PodGroup... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha2PodGroup item : items) { + V1alpha2PodGroupBuilder builder = new V1alpha2PodGroupBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = this._visitables.get("items"); + while (each.hasNext()) { + V1alpha2PodGroupBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha2PodGroup item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1alpha2PodGroup item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha2PodGroupBuilder builder = new V1alpha2PodGroupBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha2PodGroup item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1alpha2PodGroup... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha2PodGroup item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1alpha2PodGroupFluent> implements Nested{ + + V1alpha2PodGroupBuilder builder; + int index; + + ItemsNested(int index,V1alpha2PodGroup item) { + this.index = index; + this.builder = new V1alpha2PodGroupBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimBuilder.java new file mode 100644 index 0000000000..b09ffc10b3 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha2PodGroupResourceClaimBuilder extends V1alpha2PodGroupResourceClaimFluent implements VisitableBuilder{ + + V1alpha2PodGroupResourceClaimFluent fluent; + + public V1alpha2PodGroupResourceClaimBuilder() { + this(new V1alpha2PodGroupResourceClaim()); + } + + public V1alpha2PodGroupResourceClaimBuilder(V1alpha2PodGroupResourceClaimFluent fluent) { + this(fluent, new V1alpha2PodGroupResourceClaim()); + } + + public V1alpha2PodGroupResourceClaimBuilder(V1alpha2PodGroupResourceClaim instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha2PodGroupResourceClaimBuilder(V1alpha2PodGroupResourceClaimFluent fluent,V1alpha2PodGroupResourceClaim instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha2PodGroupResourceClaim build() { + V1alpha2PodGroupResourceClaim buildable = new V1alpha2PodGroupResourceClaim(); + buildable.setName(fluent.getName()); + buildable.setResourceClaimName(fluent.getResourceClaimName()); + buildable.setResourceClaimTemplateName(fluent.getResourceClaimTemplateName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimFluent.java new file mode 100644 index 0000000000..e4f7d4a8f7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimFluent.java @@ -0,0 +1,135 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2PodGroupResourceClaimFluent> extends BaseFluent{ + + private String name; + private String resourceClaimName; + private String resourceClaimTemplateName; + + public V1alpha2PodGroupResourceClaimFluent() { + } + + public V1alpha2PodGroupResourceClaimFluent(V1alpha2PodGroupResourceClaim instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha2PodGroupResourceClaim instance) { + instance = instance != null ? instance : new V1alpha2PodGroupResourceClaim(); + if (instance != null) { + this.withName(instance.getName()); + this.withResourceClaimName(instance.getResourceClaimName()); + this.withResourceClaimTemplateName(instance.getResourceClaimTemplateName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha2PodGroupResourceClaimFluent that = (V1alpha2PodGroupResourceClaimFluent) o; + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(resourceClaimName, that.resourceClaimName))) { + return false; + } + if (!(Objects.equals(resourceClaimTemplateName, that.resourceClaimTemplateName))) { + return false; + } + return true; + } + + public String getName() { + return this.name; + } + + public String getResourceClaimName() { + return this.resourceClaimName; + } + + public String getResourceClaimTemplateName() { + return this.resourceClaimTemplateName; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasResourceClaimName() { + return this.resourceClaimName != null; + } + + public boolean hasResourceClaimTemplateName() { + return this.resourceClaimTemplateName != null; + } + + public int hashCode() { + return Objects.hash(name, resourceClaimName, resourceClaimTemplateName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(resourceClaimName == null)) { + sb.append("resourceClaimName:"); + sb.append(resourceClaimName); + sb.append(","); + } + if (!(resourceClaimTemplateName == null)) { + sb.append("resourceClaimTemplateName:"); + sb.append(resourceClaimTemplateName); + } + sb.append("}"); + return sb.toString(); + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public A withResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return (A) this; + } + + public A withResourceClaimTemplateName(String resourceClaimTemplateName) { + this.resourceClaimTemplateName = resourceClaimTemplateName; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatusBuilder.java new file mode 100644 index 0000000000..904ae87df1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatusBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha2PodGroupResourceClaimStatusBuilder extends V1alpha2PodGroupResourceClaimStatusFluent implements VisitableBuilder{ + + V1alpha2PodGroupResourceClaimStatusFluent fluent; + + public V1alpha2PodGroupResourceClaimStatusBuilder() { + this(new V1alpha2PodGroupResourceClaimStatus()); + } + + public V1alpha2PodGroupResourceClaimStatusBuilder(V1alpha2PodGroupResourceClaimStatusFluent fluent) { + this(fluent, new V1alpha2PodGroupResourceClaimStatus()); + } + + public V1alpha2PodGroupResourceClaimStatusBuilder(V1alpha2PodGroupResourceClaimStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha2PodGroupResourceClaimStatusBuilder(V1alpha2PodGroupResourceClaimStatusFluent fluent,V1alpha2PodGroupResourceClaimStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha2PodGroupResourceClaimStatus build() { + V1alpha2PodGroupResourceClaimStatus buildable = new V1alpha2PodGroupResourceClaimStatus(); + buildable.setName(fluent.getName()); + buildable.setResourceClaimName(fluent.getResourceClaimName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatusFluent.java similarity index 52% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReferenceFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatusFluent.java index ef4b9f7baf..aede3c7eb0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -23,25 +23,23 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1WorkloadReferenceFluent> extends BaseFluent{ +public class V1alpha2PodGroupResourceClaimStatusFluent> extends BaseFluent{ private String name; - private String podGroup; - private String podGroupReplicaKey; + private String resourceClaimName; - public V1WorkloadReferenceFluent() { + public V1alpha2PodGroupResourceClaimStatusFluent() { } - public V1WorkloadReferenceFluent(V1WorkloadReference instance) { + public V1alpha2PodGroupResourceClaimStatusFluent(V1alpha2PodGroupResourceClaimStatus instance) { this.copyInstance(instance); } - protected void copyInstance(V1WorkloadReference instance) { - instance = instance != null ? instance : new V1WorkloadReference(); + protected void copyInstance(V1alpha2PodGroupResourceClaimStatus instance) { + instance = instance != null ? instance : new V1alpha2PodGroupResourceClaimStatus(); if (instance != null) { this.withName(instance.getName()); - this.withPodGroup(instance.getPodGroup()); - this.withPodGroupReplicaKey(instance.getPodGroupReplicaKey()); + this.withResourceClaimName(instance.getResourceClaimName()); } } @@ -55,14 +53,11 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1WorkloadReferenceFluent that = (V1WorkloadReferenceFluent) o; + V1alpha2PodGroupResourceClaimStatusFluent that = (V1alpha2PodGroupResourceClaimStatusFluent) o; if (!(Objects.equals(name, that.name))) { return false; } - if (!(Objects.equals(podGroup, that.podGroup))) { - return false; - } - if (!(Objects.equals(podGroupReplicaKey, that.podGroupReplicaKey))) { + if (!(Objects.equals(resourceClaimName, that.resourceClaimName))) { return false; } return true; @@ -72,28 +67,20 @@ public String getName() { return this.name; } - public String getPodGroup() { - return this.podGroup; - } - - public String getPodGroupReplicaKey() { - return this.podGroupReplicaKey; + public String getResourceClaimName() { + return this.resourceClaimName; } public boolean hasName() { return this.name != null; } - public boolean hasPodGroup() { - return this.podGroup != null; - } - - public boolean hasPodGroupReplicaKey() { - return this.podGroupReplicaKey != null; + public boolean hasResourceClaimName() { + return this.resourceClaimName != null; } public int hashCode() { - return Objects.hash(name, podGroup, podGroupReplicaKey); + return Objects.hash(name, resourceClaimName); } public String toString() { @@ -104,14 +91,9 @@ public String toString() { sb.append(name); sb.append(","); } - if (!(podGroup == null)) { - sb.append("podGroup:"); - sb.append(podGroup); - sb.append(","); - } - if (!(podGroupReplicaKey == null)) { - sb.append("podGroupReplicaKey:"); - sb.append(podGroupReplicaKey); + if (!(resourceClaimName == null)) { + sb.append("resourceClaimName:"); + sb.append(resourceClaimName); } sb.append("}"); return sb.toString(); @@ -122,13 +104,8 @@ public A withName(String name) { return (A) this; } - public A withPodGroup(String podGroup) { - this.podGroup = podGroup; - return (A) this; - } - - public A withPodGroupReplicaKey(String podGroupReplicaKey) { - this.podGroupReplicaKey = podGroupReplicaKey; + public A withResourceClaimName(String resourceClaimName) { + this.resourceClaimName = resourceClaimName; return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraintsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraintsBuilder.java new file mode 100644 index 0000000000..1819c05d32 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraintsBuilder.java @@ -0,0 +1,45 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha2PodGroupSchedulingConstraintsBuilder extends V1alpha2PodGroupSchedulingConstraintsFluent implements VisitableBuilder{ + + V1alpha2PodGroupSchedulingConstraintsFluent fluent; + + public V1alpha2PodGroupSchedulingConstraintsBuilder() { + this(new V1alpha2PodGroupSchedulingConstraints()); + } + + public V1alpha2PodGroupSchedulingConstraintsBuilder(V1alpha2PodGroupSchedulingConstraintsFluent fluent) { + this(fluent, new V1alpha2PodGroupSchedulingConstraints()); + } + + public V1alpha2PodGroupSchedulingConstraintsBuilder(V1alpha2PodGroupSchedulingConstraints instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha2PodGroupSchedulingConstraintsBuilder(V1alpha2PodGroupSchedulingConstraintsFluent fluent,V1alpha2PodGroupSchedulingConstraints instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha2PodGroupSchedulingConstraints build() { + V1alpha2PodGroupSchedulingConstraints buildable = new V1alpha2PodGroupSchedulingConstraints(); + buildable.setTopology(fluent.buildTopology()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraintsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraintsFluent.java new file mode 100644 index 0000000000..2547ef6666 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraintsFluent.java @@ -0,0 +1,309 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2PodGroupSchedulingConstraintsFluent> extends BaseFluent{ + + private ArrayList topology; + + public V1alpha2PodGroupSchedulingConstraintsFluent() { + } + + public V1alpha2PodGroupSchedulingConstraintsFluent(V1alpha2PodGroupSchedulingConstraints instance) { + this.copyInstance(instance); + } + + public A addAllToTopology(Collection items) { + if (this.topology == null) { + this.topology = new ArrayList(); + } + for (V1alpha2TopologyConstraint item : items) { + V1alpha2TopologyConstraintBuilder builder = new V1alpha2TopologyConstraintBuilder(item); + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } + return (A) this; + } + + public TopologyNested addNewTopology() { + return new TopologyNested(-1, null); + } + + public TopologyNested addNewTopologyLike(V1alpha2TopologyConstraint item) { + return new TopologyNested(-1, item); + } + + public A addToTopology(V1alpha2TopologyConstraint... items) { + if (this.topology == null) { + this.topology = new ArrayList(); + } + for (V1alpha2TopologyConstraint item : items) { + V1alpha2TopologyConstraintBuilder builder = new V1alpha2TopologyConstraintBuilder(item); + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } + return (A) this; + } + + public A addToTopology(int index,V1alpha2TopologyConstraint item) { + if (this.topology == null) { + this.topology = new ArrayList(); + } + V1alpha2TopologyConstraintBuilder builder = new V1alpha2TopologyConstraintBuilder(item); + if (index < 0 || index >= this.topology.size()) { + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } else { + this._visitables.get("topology").add(builder); + this.topology.add(index, builder); + } + return (A) this; + } + + public V1alpha2TopologyConstraint buildFirstTopology() { + return this.topology.get(0).build(); + } + + public V1alpha2TopologyConstraint buildLastTopology() { + return this.topology.get(topology.size() - 1).build(); + } + + public V1alpha2TopologyConstraint buildMatchingTopology(Predicate predicate) { + for (V1alpha2TopologyConstraintBuilder item : topology) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public List buildTopology() { + return this.topology != null ? build(topology) : null; + } + + public V1alpha2TopologyConstraint buildTopology(int index) { + return this.topology.get(index).build(); + } + + protected void copyInstance(V1alpha2PodGroupSchedulingConstraints instance) { + instance = instance != null ? instance : new V1alpha2PodGroupSchedulingConstraints(); + if (instance != null) { + this.withTopology(instance.getTopology()); + } + } + + public TopologyNested editFirstTopology() { + if (topology.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "topology")); + } + return this.setNewTopologyLike(0, this.buildTopology(0)); + } + + public TopologyNested editLastTopology() { + int index = topology.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "topology")); + } + return this.setNewTopologyLike(index, this.buildTopology(index)); + } + + public TopologyNested editMatchingTopology(Predicate predicate) { + int index = -1; + for (int i = 0;i < topology.size();i++) { + if (predicate.test(topology.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "topology")); + } + return this.setNewTopologyLike(index, this.buildTopology(index)); + } + + public TopologyNested editTopology(int index) { + if (topology.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "topology")); + } + return this.setNewTopologyLike(index, this.buildTopology(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha2PodGroupSchedulingConstraintsFluent that = (V1alpha2PodGroupSchedulingConstraintsFluent) o; + if (!(Objects.equals(topology, that.topology))) { + return false; + } + return true; + } + + public boolean hasMatchingTopology(Predicate predicate) { + for (V1alpha2TopologyConstraintBuilder item : topology) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasTopology() { + return this.topology != null && !(this.topology.isEmpty()); + } + + public int hashCode() { + return Objects.hash(topology); + } + + public A removeAllFromTopology(Collection items) { + if (this.topology == null) { + return (A) this; + } + for (V1alpha2TopologyConstraint item : items) { + V1alpha2TopologyConstraintBuilder builder = new V1alpha2TopologyConstraintBuilder(item); + _visitables.get("topology").remove(builder); + this.topology.remove(builder); + } + return (A) this; + } + + public A removeFromTopology(V1alpha2TopologyConstraint... items) { + if (this.topology == null) { + return (A) this; + } + for (V1alpha2TopologyConstraint item : items) { + V1alpha2TopologyConstraintBuilder builder = new V1alpha2TopologyConstraintBuilder(item); + _visitables.get("topology").remove(builder); + this.topology.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromTopology(Predicate predicate) { + if (topology == null) { + return (A) this; + } + Iterator each = topology.iterator(); + List visitables = this._visitables.get("topology"); + while (each.hasNext()) { + V1alpha2TopologyConstraintBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public TopologyNested setNewTopologyLike(int index,V1alpha2TopologyConstraint item) { + return new TopologyNested(index, item); + } + + public A setToTopology(int index,V1alpha2TopologyConstraint item) { + if (this.topology == null) { + this.topology = new ArrayList(); + } + V1alpha2TopologyConstraintBuilder builder = new V1alpha2TopologyConstraintBuilder(item); + if (index < 0 || index >= this.topology.size()) { + this._visitables.get("topology").add(builder); + this.topology.add(builder); + } else { + this._visitables.get("topology").add(builder); + this.topology.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(topology == null) && !(topology.isEmpty())) { + sb.append("topology:"); + sb.append(topology); + } + sb.append("}"); + return sb.toString(); + } + + public A withTopology(List topology) { + if (this.topology != null) { + this._visitables.get("topology").clear(); + } + if (topology != null) { + this.topology = new ArrayList(); + for (V1alpha2TopologyConstraint item : topology) { + this.addToTopology(item); + } + } else { + this.topology = null; + } + return (A) this; + } + + public A withTopology(V1alpha2TopologyConstraint... topology) { + if (this.topology != null) { + this.topology.clear(); + _visitables.remove("topology"); + } + if (topology != null) { + for (V1alpha2TopologyConstraint item : topology) { + this.addToTopology(item); + } + } + return (A) this; + } + public class TopologyNested extends V1alpha2TopologyConstraintFluent> implements Nested{ + + V1alpha2TopologyConstraintBuilder builder; + int index; + + TopologyNested(int index,V1alpha2TopologyConstraint item) { + this.index = index; + this.builder = new V1alpha2TopologyConstraintBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupSchedulingConstraintsFluent.this.setToTopology(index, builder.build()); + } + + public N endTopology() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicyBuilder.java new file mode 100644 index 0000000000..af3e07458c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicyBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha2PodGroupSchedulingPolicyBuilder extends V1alpha2PodGroupSchedulingPolicyFluent implements VisitableBuilder{ + + V1alpha2PodGroupSchedulingPolicyFluent fluent; + + public V1alpha2PodGroupSchedulingPolicyBuilder() { + this(new V1alpha2PodGroupSchedulingPolicy()); + } + + public V1alpha2PodGroupSchedulingPolicyBuilder(V1alpha2PodGroupSchedulingPolicyFluent fluent) { + this(fluent, new V1alpha2PodGroupSchedulingPolicy()); + } + + public V1alpha2PodGroupSchedulingPolicyBuilder(V1alpha2PodGroupSchedulingPolicy instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha2PodGroupSchedulingPolicyBuilder(V1alpha2PodGroupSchedulingPolicyFluent fluent,V1alpha2PodGroupSchedulingPolicy instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha2PodGroupSchedulingPolicy build() { + V1alpha2PodGroupSchedulingPolicy buildable = new V1alpha2PodGroupSchedulingPolicy(); + buildable.setBasic(fluent.getBasic()); + buildable.setGang(fluent.buildGang()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicyFluent.java similarity index 70% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicyFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicyFluent.java index 2c2e9a931e..f887108cd9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -25,24 +25,24 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1PodGroupPolicyFluent> extends BaseFluent{ +public class V1alpha2PodGroupSchedulingPolicyFluent> extends BaseFluent{ private Object basic; - private V1alpha1GangSchedulingPolicyBuilder gang; + private V1alpha2GangSchedulingPolicyBuilder gang; - public V1alpha1PodGroupPolicyFluent() { + public V1alpha2PodGroupSchedulingPolicyFluent() { } - public V1alpha1PodGroupPolicyFluent(V1alpha1PodGroupPolicy instance) { + public V1alpha2PodGroupSchedulingPolicyFluent(V1alpha2PodGroupSchedulingPolicy instance) { this.copyInstance(instance); } - public V1alpha1GangSchedulingPolicy buildGang() { + public V1alpha2GangSchedulingPolicy buildGang() { return this.gang != null ? this.gang.build() : null; } - protected void copyInstance(V1alpha1PodGroupPolicy instance) { - instance = instance != null ? instance : new V1alpha1PodGroupPolicy(); + protected void copyInstance(V1alpha2PodGroupSchedulingPolicy instance) { + instance = instance != null ? instance : new V1alpha2PodGroupSchedulingPolicy(); if (instance != null) { this.withBasic(instance.getBasic()); this.withGang(instance.getGang()); @@ -54,10 +54,10 @@ public GangNested editGang() { } public GangNested editOrNewGang() { - return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(new V1alpha1GangSchedulingPolicyBuilder().build())); + return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(new V1alpha2GangSchedulingPolicyBuilder().build())); } - public GangNested editOrNewGangLike(V1alpha1GangSchedulingPolicy item) { + public GangNested editOrNewGangLike(V1alpha2GangSchedulingPolicy item) { return this.withNewGangLike(Optional.ofNullable(this.buildGang()).orElse(item)); } @@ -71,7 +71,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1PodGroupPolicyFluent that = (V1alpha1PodGroupPolicyFluent) o; + V1alpha2PodGroupSchedulingPolicyFluent that = (V1alpha2PodGroupSchedulingPolicyFluent) o; if (!(Objects.equals(basic, that.basic))) { return false; } @@ -118,10 +118,10 @@ public A withBasic(Object basic) { return (A) this; } - public A withGang(V1alpha1GangSchedulingPolicy gang) { + public A withGang(V1alpha2GangSchedulingPolicy gang) { this._visitables.remove("gang"); if (gang != null) { - this.gang = new V1alpha1GangSchedulingPolicyBuilder(gang); + this.gang = new V1alpha2GangSchedulingPolicyBuilder(gang); this._visitables.get("gang").add(this.gang); } else { this.gang = null; @@ -134,19 +134,19 @@ public GangNested withNewGang() { return new GangNested(null); } - public GangNested withNewGangLike(V1alpha1GangSchedulingPolicy item) { + public GangNested withNewGangLike(V1alpha2GangSchedulingPolicy item) { return new GangNested(item); } - public class GangNested extends V1alpha1GangSchedulingPolicyFluent> implements Nested{ + public class GangNested extends V1alpha2GangSchedulingPolicyFluent> implements Nested{ - V1alpha1GangSchedulingPolicyBuilder builder; + V1alpha2GangSchedulingPolicyBuilder builder; - GangNested(V1alpha1GangSchedulingPolicy item) { - this.builder = new V1alpha1GangSchedulingPolicyBuilder(this, item); + GangNested(V1alpha2GangSchedulingPolicy item) { + this.builder = new V1alpha2GangSchedulingPolicyBuilder(this, item); } public N and() { - return (N) V1alpha1PodGroupPolicyFluent.this.withGang(builder.build()); + return (N) V1alpha2PodGroupSchedulingPolicyFluent.this.withGang(builder.build()); } public N endGang() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpecBuilder.java new file mode 100644 index 0000000000..f61d61e242 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpecBuilder.java @@ -0,0 +1,51 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha2PodGroupSpecBuilder extends V1alpha2PodGroupSpecFluent implements VisitableBuilder{ + + V1alpha2PodGroupSpecFluent fluent; + + public V1alpha2PodGroupSpecBuilder() { + this(new V1alpha2PodGroupSpec()); + } + + public V1alpha2PodGroupSpecBuilder(V1alpha2PodGroupSpecFluent fluent) { + this(fluent, new V1alpha2PodGroupSpec()); + } + + public V1alpha2PodGroupSpecBuilder(V1alpha2PodGroupSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha2PodGroupSpecBuilder(V1alpha2PodGroupSpecFluent fluent,V1alpha2PodGroupSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha2PodGroupSpec build() { + V1alpha2PodGroupSpec buildable = new V1alpha2PodGroupSpec(); + buildable.setDisruptionMode(fluent.getDisruptionMode()); + buildable.setPodGroupTemplateRef(fluent.buildPodGroupTemplateRef()); + buildable.setPriority(fluent.getPriority()); + buildable.setPriorityClassName(fluent.getPriorityClassName()); + buildable.setResourceClaims(fluent.buildResourceClaims()); + buildable.setSchedulingConstraints(fluent.buildSchedulingConstraints()); + buildable.setSchedulingPolicy(fluent.buildSchedulingPolicy()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpecFluent.java new file mode 100644 index 0000000000..e25d5e1002 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpecFluent.java @@ -0,0 +1,581 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2PodGroupSpecFluent> extends BaseFluent{ + + private String disruptionMode; + private V1alpha2PodGroupTemplateReferenceBuilder podGroupTemplateRef; + private Integer priority; + private String priorityClassName; + private ArrayList resourceClaims; + private V1alpha2PodGroupSchedulingConstraintsBuilder schedulingConstraints; + private V1alpha2PodGroupSchedulingPolicyBuilder schedulingPolicy; + + public V1alpha2PodGroupSpecFluent() { + } + + public V1alpha2PodGroupSpecFluent(V1alpha2PodGroupSpec instance) { + this.copyInstance(instance); + } + + public A addAllToResourceClaims(Collection items) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); + } + for (V1alpha2PodGroupResourceClaim item : items) { + V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } + return (A) this; + } + + public ResourceClaimsNested addNewResourceClaim() { + return new ResourceClaimsNested(-1, null); + } + + public ResourceClaimsNested addNewResourceClaimLike(V1alpha2PodGroupResourceClaim item) { + return new ResourceClaimsNested(-1, item); + } + + public A addToResourceClaims(V1alpha2PodGroupResourceClaim... items) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); + } + for (V1alpha2PodGroupResourceClaim item : items) { + V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } + return (A) this; + } + + public A addToResourceClaims(int index,V1alpha2PodGroupResourceClaim item) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); + } + V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + if (index < 0 || index >= this.resourceClaims.size()) { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } else { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(index, builder); + } + return (A) this; + } + + public V1alpha2PodGroupResourceClaim buildFirstResourceClaim() { + return this.resourceClaims.get(0).build(); + } + + public V1alpha2PodGroupResourceClaim buildLastResourceClaim() { + return this.resourceClaims.get(resourceClaims.size() - 1).build(); + } + + public V1alpha2PodGroupResourceClaim buildMatchingResourceClaim(Predicate predicate) { + for (V1alpha2PodGroupResourceClaimBuilder item : resourceClaims) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha2PodGroupTemplateReference buildPodGroupTemplateRef() { + return this.podGroupTemplateRef != null ? this.podGroupTemplateRef.build() : null; + } + + public V1alpha2PodGroupResourceClaim buildResourceClaim(int index) { + return this.resourceClaims.get(index).build(); + } + + public List buildResourceClaims() { + return this.resourceClaims != null ? build(resourceClaims) : null; + } + + public V1alpha2PodGroupSchedulingConstraints buildSchedulingConstraints() { + return this.schedulingConstraints != null ? this.schedulingConstraints.build() : null; + } + + public V1alpha2PodGroupSchedulingPolicy buildSchedulingPolicy() { + return this.schedulingPolicy != null ? this.schedulingPolicy.build() : null; + } + + protected void copyInstance(V1alpha2PodGroupSpec instance) { + instance = instance != null ? instance : new V1alpha2PodGroupSpec(); + if (instance != null) { + this.withDisruptionMode(instance.getDisruptionMode()); + this.withPodGroupTemplateRef(instance.getPodGroupTemplateRef()); + this.withPriority(instance.getPriority()); + this.withPriorityClassName(instance.getPriorityClassName()); + this.withResourceClaims(instance.getResourceClaims()); + this.withSchedulingConstraints(instance.getSchedulingConstraints()); + this.withSchedulingPolicy(instance.getSchedulingPolicy()); + } + } + + public ResourceClaimsNested editFirstResourceClaim() { + if (resourceClaims.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceClaims")); + } + return this.setNewResourceClaimLike(0, this.buildResourceClaim(0)); + } + + public ResourceClaimsNested editLastResourceClaim() { + int index = resourceClaims.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + } + + public ResourceClaimsNested editMatchingResourceClaim(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceClaims.size();i++) { + if (predicate.test(resourceClaims.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + } + + public PodGroupTemplateRefNested editOrNewPodGroupTemplateRef() { + return this.withNewPodGroupTemplateRefLike(Optional.ofNullable(this.buildPodGroupTemplateRef()).orElse(new V1alpha2PodGroupTemplateReferenceBuilder().build())); + } + + public PodGroupTemplateRefNested editOrNewPodGroupTemplateRefLike(V1alpha2PodGroupTemplateReference item) { + return this.withNewPodGroupTemplateRefLike(Optional.ofNullable(this.buildPodGroupTemplateRef()).orElse(item)); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(new V1alpha2PodGroupSchedulingConstraintsBuilder().build())); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraintsLike(V1alpha2PodGroupSchedulingConstraints item) { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(item)); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(new V1alpha2PodGroupSchedulingPolicyBuilder().build())); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicyLike(V1alpha2PodGroupSchedulingPolicy item) { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(item)); + } + + public PodGroupTemplateRefNested editPodGroupTemplateRef() { + return this.withNewPodGroupTemplateRefLike(Optional.ofNullable(this.buildPodGroupTemplateRef()).orElse(null)); + } + + public ResourceClaimsNested editResourceClaim(int index) { + if (resourceClaims.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + } + + public SchedulingConstraintsNested editSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(null)); + } + + public SchedulingPolicyNested editSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha2PodGroupSpecFluent that = (V1alpha2PodGroupSpecFluent) o; + if (!(Objects.equals(disruptionMode, that.disruptionMode))) { + return false; + } + if (!(Objects.equals(podGroupTemplateRef, that.podGroupTemplateRef))) { + return false; + } + if (!(Objects.equals(priority, that.priority))) { + return false; + } + if (!(Objects.equals(priorityClassName, that.priorityClassName))) { + return false; + } + if (!(Objects.equals(resourceClaims, that.resourceClaims))) { + return false; + } + if (!(Objects.equals(schedulingConstraints, that.schedulingConstraints))) { + return false; + } + if (!(Objects.equals(schedulingPolicy, that.schedulingPolicy))) { + return false; + } + return true; + } + + public String getDisruptionMode() { + return this.disruptionMode; + } + + public Integer getPriority() { + return this.priority; + } + + public String getPriorityClassName() { + return this.priorityClassName; + } + + public boolean hasDisruptionMode() { + return this.disruptionMode != null; + } + + public boolean hasMatchingResourceClaim(Predicate predicate) { + for (V1alpha2PodGroupResourceClaimBuilder item : resourceClaims) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPodGroupTemplateRef() { + return this.podGroupTemplateRef != null; + } + + public boolean hasPriority() { + return this.priority != null; + } + + public boolean hasPriorityClassName() { + return this.priorityClassName != null; + } + + public boolean hasResourceClaims() { + return this.resourceClaims != null && !(this.resourceClaims.isEmpty()); + } + + public boolean hasSchedulingConstraints() { + return this.schedulingConstraints != null; + } + + public boolean hasSchedulingPolicy() { + return this.schedulingPolicy != null; + } + + public int hashCode() { + return Objects.hash(disruptionMode, podGroupTemplateRef, priority, priorityClassName, resourceClaims, schedulingConstraints, schedulingPolicy); + } + + public A removeAllFromResourceClaims(Collection items) { + if (this.resourceClaims == null) { + return (A) this; + } + for (V1alpha2PodGroupResourceClaim item : items) { + V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); + } + return (A) this; + } + + public A removeFromResourceClaims(V1alpha2PodGroupResourceClaim... items) { + if (this.resourceClaims == null) { + return (A) this; + } + for (V1alpha2PodGroupResourceClaim item : items) { + V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromResourceClaims(Predicate predicate) { + if (resourceClaims == null) { + return (A) this; + } + Iterator each = resourceClaims.iterator(); + List visitables = this._visitables.get("resourceClaims"); + while (each.hasNext()) { + V1alpha2PodGroupResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ResourceClaimsNested setNewResourceClaimLike(int index,V1alpha2PodGroupResourceClaim item) { + return new ResourceClaimsNested(index, item); + } + + public A setToResourceClaims(int index,V1alpha2PodGroupResourceClaim item) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); + } + V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + if (index < 0 || index >= this.resourceClaims.size()) { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } else { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(disruptionMode == null)) { + sb.append("disruptionMode:"); + sb.append(disruptionMode); + sb.append(","); + } + if (!(podGroupTemplateRef == null)) { + sb.append("podGroupTemplateRef:"); + sb.append(podGroupTemplateRef); + sb.append(","); + } + if (!(priority == null)) { + sb.append("priority:"); + sb.append(priority); + sb.append(","); + } + if (!(priorityClassName == null)) { + sb.append("priorityClassName:"); + sb.append(priorityClassName); + sb.append(","); + } + if (!(resourceClaims == null) && !(resourceClaims.isEmpty())) { + sb.append("resourceClaims:"); + sb.append(resourceClaims); + sb.append(","); + } + if (!(schedulingConstraints == null)) { + sb.append("schedulingConstraints:"); + sb.append(schedulingConstraints); + sb.append(","); + } + if (!(schedulingPolicy == null)) { + sb.append("schedulingPolicy:"); + sb.append(schedulingPolicy); + } + sb.append("}"); + return sb.toString(); + } + + public A withDisruptionMode(String disruptionMode) { + this.disruptionMode = disruptionMode; + return (A) this; + } + + public PodGroupTemplateRefNested withNewPodGroupTemplateRef() { + return new PodGroupTemplateRefNested(null); + } + + public PodGroupTemplateRefNested withNewPodGroupTemplateRefLike(V1alpha2PodGroupTemplateReference item) { + return new PodGroupTemplateRefNested(item); + } + + public SchedulingConstraintsNested withNewSchedulingConstraints() { + return new SchedulingConstraintsNested(null); + } + + public SchedulingConstraintsNested withNewSchedulingConstraintsLike(V1alpha2PodGroupSchedulingConstraints item) { + return new SchedulingConstraintsNested(item); + } + + public SchedulingPolicyNested withNewSchedulingPolicy() { + return new SchedulingPolicyNested(null); + } + + public SchedulingPolicyNested withNewSchedulingPolicyLike(V1alpha2PodGroupSchedulingPolicy item) { + return new SchedulingPolicyNested(item); + } + + public A withPodGroupTemplateRef(V1alpha2PodGroupTemplateReference podGroupTemplateRef) { + this._visitables.remove("podGroupTemplateRef"); + if (podGroupTemplateRef != null) { + this.podGroupTemplateRef = new V1alpha2PodGroupTemplateReferenceBuilder(podGroupTemplateRef); + this._visitables.get("podGroupTemplateRef").add(this.podGroupTemplateRef); + } else { + this.podGroupTemplateRef = null; + this._visitables.get("podGroupTemplateRef").remove(this.podGroupTemplateRef); + } + return (A) this; + } + + public A withPriority(Integer priority) { + this.priority = priority; + return (A) this; + } + + public A withPriorityClassName(String priorityClassName) { + this.priorityClassName = priorityClassName; + return (A) this; + } + + public A withResourceClaims(List resourceClaims) { + if (this.resourceClaims != null) { + this._visitables.get("resourceClaims").clear(); + } + if (resourceClaims != null) { + this.resourceClaims = new ArrayList(); + for (V1alpha2PodGroupResourceClaim item : resourceClaims) { + this.addToResourceClaims(item); + } + } else { + this.resourceClaims = null; + } + return (A) this; + } + + public A withResourceClaims(V1alpha2PodGroupResourceClaim... resourceClaims) { + if (this.resourceClaims != null) { + this.resourceClaims.clear(); + _visitables.remove("resourceClaims"); + } + if (resourceClaims != null) { + for (V1alpha2PodGroupResourceClaim item : resourceClaims) { + this.addToResourceClaims(item); + } + } + return (A) this; + } + + public A withSchedulingConstraints(V1alpha2PodGroupSchedulingConstraints schedulingConstraints) { + this._visitables.remove("schedulingConstraints"); + if (schedulingConstraints != null) { + this.schedulingConstraints = new V1alpha2PodGroupSchedulingConstraintsBuilder(schedulingConstraints); + this._visitables.get("schedulingConstraints").add(this.schedulingConstraints); + } else { + this.schedulingConstraints = null; + this._visitables.get("schedulingConstraints").remove(this.schedulingConstraints); + } + return (A) this; + } + + public A withSchedulingPolicy(V1alpha2PodGroupSchedulingPolicy schedulingPolicy) { + this._visitables.remove("schedulingPolicy"); + if (schedulingPolicy != null) { + this.schedulingPolicy = new V1alpha2PodGroupSchedulingPolicyBuilder(schedulingPolicy); + this._visitables.get("schedulingPolicy").add(this.schedulingPolicy); + } else { + this.schedulingPolicy = null; + this._visitables.get("schedulingPolicy").remove(this.schedulingPolicy); + } + return (A) this; + } + public class PodGroupTemplateRefNested extends V1alpha2PodGroupTemplateReferenceFluent> implements Nested{ + + V1alpha2PodGroupTemplateReferenceBuilder builder; + + PodGroupTemplateRefNested(V1alpha2PodGroupTemplateReference item) { + this.builder = new V1alpha2PodGroupTemplateReferenceBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupSpecFluent.this.withPodGroupTemplateRef(builder.build()); + } + + public N endPodGroupTemplateRef() { + return and(); + } + + } + public class ResourceClaimsNested extends V1alpha2PodGroupResourceClaimFluent> implements Nested{ + + V1alpha2PodGroupResourceClaimBuilder builder; + int index; + + ResourceClaimsNested(int index,V1alpha2PodGroupResourceClaim item) { + this.index = index; + this.builder = new V1alpha2PodGroupResourceClaimBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupSpecFluent.this.setToResourceClaims(index, builder.build()); + } + + public N endResourceClaim() { + return and(); + } + + } + public class SchedulingConstraintsNested extends V1alpha2PodGroupSchedulingConstraintsFluent> implements Nested{ + + V1alpha2PodGroupSchedulingConstraintsBuilder builder; + + SchedulingConstraintsNested(V1alpha2PodGroupSchedulingConstraints item) { + this.builder = new V1alpha2PodGroupSchedulingConstraintsBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupSpecFluent.this.withSchedulingConstraints(builder.build()); + } + + public N endSchedulingConstraints() { + return and(); + } + + } + public class SchedulingPolicyNested extends V1alpha2PodGroupSchedulingPolicyFluent> implements Nested{ + + V1alpha2PodGroupSchedulingPolicyBuilder builder; + + SchedulingPolicyNested(V1alpha2PodGroupSchedulingPolicy item) { + this.builder = new V1alpha2PodGroupSchedulingPolicyBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupSpecFluent.this.withSchedulingPolicy(builder.build()); + } + + public N endSchedulingPolicy() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatusBuilder.java new file mode 100644 index 0000000000..f84d5cbdfe --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatusBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha2PodGroupStatusBuilder extends V1alpha2PodGroupStatusFluent implements VisitableBuilder{ + + V1alpha2PodGroupStatusFluent fluent; + + public V1alpha2PodGroupStatusBuilder() { + this(new V1alpha2PodGroupStatus()); + } + + public V1alpha2PodGroupStatusBuilder(V1alpha2PodGroupStatusFluent fluent) { + this(fluent, new V1alpha2PodGroupStatus()); + } + + public V1alpha2PodGroupStatusBuilder(V1alpha2PodGroupStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha2PodGroupStatusBuilder(V1alpha2PodGroupStatusFluent fluent,V1alpha2PodGroupStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha2PodGroupStatus build() { + V1alpha2PodGroupStatus buildable = new V1alpha2PodGroupStatus(); + buildable.setConditions(fluent.buildConditions()); + buildable.setResourceClaimStatuses(fluent.buildResourceClaimStatuses()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatusFluent.java new file mode 100644 index 0000000000..f2a1121f51 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatusFluent.java @@ -0,0 +1,546 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2PodGroupStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private ArrayList resourceClaimStatuses; + + public V1alpha2PodGroupStatusFluent() { + } + + public V1alpha2PodGroupStatusFluent(V1alpha2PodGroupStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A addAllToResourceClaimStatuses(Collection items) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList(); + } + for (V1alpha2PodGroupResourceClaimStatus item : items) { + V1alpha2PodGroupResourceClaimStatusBuilder builder = new V1alpha2PodGroupResourceClaimStatusBuilder(item); + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); + } + return (A) this; + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public ResourceClaimStatusesNested addNewResourceClaimStatus() { + return new ResourceClaimStatusesNested(-1, null); + } + + public ResourceClaimStatusesNested addNewResourceClaimStatusLike(V1alpha2PodGroupResourceClaimStatus item) { + return new ResourceClaimStatusesNested(-1, item); + } + + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); + } + return (A) this; + } + + public A addToResourceClaimStatuses(V1alpha2PodGroupResourceClaimStatus... items) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList(); + } + for (V1alpha2PodGroupResourceClaimStatus item : items) { + V1alpha2PodGroupResourceClaimStatusBuilder builder = new V1alpha2PodGroupResourceClaimStatusBuilder(item); + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); + } + return (A) this; + } + + public A addToResourceClaimStatuses(int index,V1alpha2PodGroupResourceClaimStatus item) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList(); + } + V1alpha2PodGroupResourceClaimStatusBuilder builder = new V1alpha2PodGroupResourceClaimStatusBuilder(item); + if (index < 0 || index >= this.resourceClaimStatuses.size()) { + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); + } else { + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(index, builder); + } + return (A) this; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1Condition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1alpha2PodGroupResourceClaimStatus buildFirstResourceClaimStatus() { + return this.resourceClaimStatuses.get(0).build(); + } + + public V1Condition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1alpha2PodGroupResourceClaimStatus buildLastResourceClaimStatus() { + return this.resourceClaimStatuses.get(resourceClaimStatuses.size() - 1).build(); + } + + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha2PodGroupResourceClaimStatus buildMatchingResourceClaimStatus(Predicate predicate) { + for (V1alpha2PodGroupResourceClaimStatusBuilder item : resourceClaimStatuses) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha2PodGroupResourceClaimStatus buildResourceClaimStatus(int index) { + return this.resourceClaimStatuses.get(index).build(); + } + + public List buildResourceClaimStatuses() { + return this.resourceClaimStatuses != null ? build(resourceClaimStatuses) : null; + } + + protected void copyInstance(V1alpha2PodGroupStatus instance) { + instance = instance != null ? instance : new V1alpha2PodGroupStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withResourceClaimStatuses(instance.getResourceClaimStatuses()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ResourceClaimStatusesNested editFirstResourceClaimStatus() { + if (resourceClaimStatuses.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceClaimStatuses")); + } + return this.setNewResourceClaimStatusLike(0, this.buildResourceClaimStatus(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ResourceClaimStatusesNested editLastResourceClaimStatus() { + int index = resourceClaimStatuses.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceClaimStatuses")); + } + return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ResourceClaimStatusesNested editMatchingResourceClaimStatus(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceClaimStatuses.size();i++) { + if (predicate.test(resourceClaimStatuses.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceClaimStatuses")); + } + return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); + } + + public ResourceClaimStatusesNested editResourceClaimStatus(int index) { + if (resourceClaimStatuses.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaimStatuses")); + } + return this.setNewResourceClaimStatusLike(index, this.buildResourceClaimStatus(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha2PodGroupStatusFluent that = (V1alpha2PodGroupStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(resourceClaimStatuses, that.resourceClaimStatuses))) { + return false; + } + return true; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingResourceClaimStatus(Predicate predicate) { + for (V1alpha2PodGroupResourceClaimStatusBuilder item : resourceClaimStatuses) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResourceClaimStatuses() { + return this.resourceClaimStatuses != null && !(this.resourceClaimStatuses.isEmpty()); + } + + public int hashCode() { + return Objects.hash(conditions, resourceClaimStatuses); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeAllFromResourceClaimStatuses(Collection items) { + if (this.resourceClaimStatuses == null) { + return (A) this; + } + for (V1alpha2PodGroupResourceClaimStatus item : items) { + V1alpha2PodGroupResourceClaimStatusBuilder builder = new V1alpha2PodGroupResourceClaimStatusBuilder(item); + _visitables.get("resourceClaimStatuses").remove(builder); + this.resourceClaimStatuses.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1Condition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromResourceClaimStatuses(V1alpha2PodGroupResourceClaimStatus... items) { + if (this.resourceClaimStatuses == null) { + return (A) this; + } + for (V1alpha2PodGroupResourceClaimStatus item : items) { + V1alpha2PodGroupResourceClaimStatusBuilder builder = new V1alpha2PodGroupResourceClaimStatusBuilder(item); + _visitables.get("resourceClaimStatuses").remove(builder); + this.resourceClaimStatuses.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = this._visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromResourceClaimStatuses(Predicate predicate) { + if (resourceClaimStatuses == null) { + return (A) this; + } + Iterator each = resourceClaimStatuses.iterator(); + List visitables = this._visitables.get("resourceClaimStatuses"); + while (each.hasNext()) { + V1alpha2PodGroupResourceClaimStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public ResourceClaimStatusesNested setNewResourceClaimStatusLike(int index,V1alpha2PodGroupResourceClaimStatus item) { + return new ResourceClaimStatusesNested(index, item); + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); + } + return (A) this; + } + + public A setToResourceClaimStatuses(int index,V1alpha2PodGroupResourceClaimStatus item) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList(); + } + V1alpha2PodGroupResourceClaimStatusBuilder builder = new V1alpha2PodGroupResourceClaimStatusBuilder(item); + if (index < 0 || index >= this.resourceClaimStatuses.size()) { + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.add(builder); + } else { + this._visitables.get("resourceClaimStatuses").add(builder); + this.resourceClaimStatuses.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(resourceClaimStatuses == null) && !(resourceClaimStatuses.isEmpty())) { + sb.append("resourceClaimStatuses:"); + sb.append(resourceClaimStatuses); + } + sb.append("}"); + return sb.toString(); + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withResourceClaimStatuses(List resourceClaimStatuses) { + if (this.resourceClaimStatuses != null) { + this._visitables.get("resourceClaimStatuses").clear(); + } + if (resourceClaimStatuses != null) { + this.resourceClaimStatuses = new ArrayList(); + for (V1alpha2PodGroupResourceClaimStatus item : resourceClaimStatuses) { + this.addToResourceClaimStatuses(item); + } + } else { + this.resourceClaimStatuses = null; + } + return (A) this; + } + + public A withResourceClaimStatuses(V1alpha2PodGroupResourceClaimStatus... resourceClaimStatuses) { + if (this.resourceClaimStatuses != null) { + this.resourceClaimStatuses.clear(); + _visitables.remove("resourceClaimStatuses"); + } + if (resourceClaimStatuses != null) { + for (V1alpha2PodGroupResourceClaimStatus item : resourceClaimStatuses) { + this.addToResourceClaimStatuses(item); + } + } + return (A) this; + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupStatusFluent.this.setToConditions(index, builder.build()); + } + + public N endCondition() { + return and(); + } + + } + public class ResourceClaimStatusesNested extends V1alpha2PodGroupResourceClaimStatusFluent> implements Nested{ + + V1alpha2PodGroupResourceClaimStatusBuilder builder; + int index; + + ResourceClaimStatusesNested(int index,V1alpha2PodGroupResourceClaimStatus item) { + this.index = index; + this.builder = new V1alpha2PodGroupResourceClaimStatusBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupStatusFluent.this.setToResourceClaimStatuses(index, builder.build()); + } + + public N endResourceClaimStatus() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateBuilder.java new file mode 100644 index 0000000000..b66ac6c1de --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateBuilder.java @@ -0,0 +1,51 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha2PodGroupTemplateBuilder extends V1alpha2PodGroupTemplateFluent implements VisitableBuilder{ + + V1alpha2PodGroupTemplateFluent fluent; + + public V1alpha2PodGroupTemplateBuilder() { + this(new V1alpha2PodGroupTemplate()); + } + + public V1alpha2PodGroupTemplateBuilder(V1alpha2PodGroupTemplateFluent fluent) { + this(fluent, new V1alpha2PodGroupTemplate()); + } + + public V1alpha2PodGroupTemplateBuilder(V1alpha2PodGroupTemplate instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha2PodGroupTemplateBuilder(V1alpha2PodGroupTemplateFluent fluent,V1alpha2PodGroupTemplate instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha2PodGroupTemplate build() { + V1alpha2PodGroupTemplate buildable = new V1alpha2PodGroupTemplate(); + buildable.setDisruptionMode(fluent.getDisruptionMode()); + buildable.setName(fluent.getName()); + buildable.setPriority(fluent.getPriority()); + buildable.setPriorityClassName(fluent.getPriorityClassName()); + buildable.setResourceClaims(fluent.buildResourceClaims()); + buildable.setSchedulingConstraints(fluent.buildSchedulingConstraints()); + buildable.setSchedulingPolicy(fluent.buildSchedulingPolicy()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateFluent.java new file mode 100644 index 0000000000..e78d46167f --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateFluent.java @@ -0,0 +1,537 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2PodGroupTemplateFluent> extends BaseFluent{ + + private String disruptionMode; + private String name; + private Integer priority; + private String priorityClassName; + private ArrayList resourceClaims; + private V1alpha2PodGroupSchedulingConstraintsBuilder schedulingConstraints; + private V1alpha2PodGroupSchedulingPolicyBuilder schedulingPolicy; + + public V1alpha2PodGroupTemplateFluent() { + } + + public V1alpha2PodGroupTemplateFluent(V1alpha2PodGroupTemplate instance) { + this.copyInstance(instance); + } + + public A addAllToResourceClaims(Collection items) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); + } + for (V1alpha2PodGroupResourceClaim item : items) { + V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } + return (A) this; + } + + public ResourceClaimsNested addNewResourceClaim() { + return new ResourceClaimsNested(-1, null); + } + + public ResourceClaimsNested addNewResourceClaimLike(V1alpha2PodGroupResourceClaim item) { + return new ResourceClaimsNested(-1, item); + } + + public A addToResourceClaims(V1alpha2PodGroupResourceClaim... items) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); + } + for (V1alpha2PodGroupResourceClaim item : items) { + V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } + return (A) this; + } + + public A addToResourceClaims(int index,V1alpha2PodGroupResourceClaim item) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); + } + V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + if (index < 0 || index >= this.resourceClaims.size()) { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } else { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(index, builder); + } + return (A) this; + } + + public V1alpha2PodGroupResourceClaim buildFirstResourceClaim() { + return this.resourceClaims.get(0).build(); + } + + public V1alpha2PodGroupResourceClaim buildLastResourceClaim() { + return this.resourceClaims.get(resourceClaims.size() - 1).build(); + } + + public V1alpha2PodGroupResourceClaim buildMatchingResourceClaim(Predicate predicate) { + for (V1alpha2PodGroupResourceClaimBuilder item : resourceClaims) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha2PodGroupResourceClaim buildResourceClaim(int index) { + return this.resourceClaims.get(index).build(); + } + + public List buildResourceClaims() { + return this.resourceClaims != null ? build(resourceClaims) : null; + } + + public V1alpha2PodGroupSchedulingConstraints buildSchedulingConstraints() { + return this.schedulingConstraints != null ? this.schedulingConstraints.build() : null; + } + + public V1alpha2PodGroupSchedulingPolicy buildSchedulingPolicy() { + return this.schedulingPolicy != null ? this.schedulingPolicy.build() : null; + } + + protected void copyInstance(V1alpha2PodGroupTemplate instance) { + instance = instance != null ? instance : new V1alpha2PodGroupTemplate(); + if (instance != null) { + this.withDisruptionMode(instance.getDisruptionMode()); + this.withName(instance.getName()); + this.withPriority(instance.getPriority()); + this.withPriorityClassName(instance.getPriorityClassName()); + this.withResourceClaims(instance.getResourceClaims()); + this.withSchedulingConstraints(instance.getSchedulingConstraints()); + this.withSchedulingPolicy(instance.getSchedulingPolicy()); + } + } + + public ResourceClaimsNested editFirstResourceClaim() { + if (resourceClaims.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resourceClaims")); + } + return this.setNewResourceClaimLike(0, this.buildResourceClaim(0)); + } + + public ResourceClaimsNested editLastResourceClaim() { + int index = resourceClaims.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + } + + public ResourceClaimsNested editMatchingResourceClaim(Predicate predicate) { + int index = -1; + for (int i = 0;i < resourceClaims.size();i++) { + if (predicate.test(resourceClaims.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(new V1alpha2PodGroupSchedulingConstraintsBuilder().build())); + } + + public SchedulingConstraintsNested editOrNewSchedulingConstraintsLike(V1alpha2PodGroupSchedulingConstraints item) { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(item)); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(new V1alpha2PodGroupSchedulingPolicyBuilder().build())); + } + + public SchedulingPolicyNested editOrNewSchedulingPolicyLike(V1alpha2PodGroupSchedulingPolicy item) { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(item)); + } + + public ResourceClaimsNested editResourceClaim(int index) { + if (resourceClaims.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resourceClaims")); + } + return this.setNewResourceClaimLike(index, this.buildResourceClaim(index)); + } + + public SchedulingConstraintsNested editSchedulingConstraints() { + return this.withNewSchedulingConstraintsLike(Optional.ofNullable(this.buildSchedulingConstraints()).orElse(null)); + } + + public SchedulingPolicyNested editSchedulingPolicy() { + return this.withNewSchedulingPolicyLike(Optional.ofNullable(this.buildSchedulingPolicy()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha2PodGroupTemplateFluent that = (V1alpha2PodGroupTemplateFluent) o; + if (!(Objects.equals(disruptionMode, that.disruptionMode))) { + return false; + } + if (!(Objects.equals(name, that.name))) { + return false; + } + if (!(Objects.equals(priority, that.priority))) { + return false; + } + if (!(Objects.equals(priorityClassName, that.priorityClassName))) { + return false; + } + if (!(Objects.equals(resourceClaims, that.resourceClaims))) { + return false; + } + if (!(Objects.equals(schedulingConstraints, that.schedulingConstraints))) { + return false; + } + if (!(Objects.equals(schedulingPolicy, that.schedulingPolicy))) { + return false; + } + return true; + } + + public String getDisruptionMode() { + return this.disruptionMode; + } + + public String getName() { + return this.name; + } + + public Integer getPriority() { + return this.priority; + } + + public String getPriorityClassName() { + return this.priorityClassName; + } + + public boolean hasDisruptionMode() { + return this.disruptionMode != null; + } + + public boolean hasMatchingResourceClaim(Predicate predicate) { + for (V1alpha2PodGroupResourceClaimBuilder item : resourceClaims) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasName() { + return this.name != null; + } + + public boolean hasPriority() { + return this.priority != null; + } + + public boolean hasPriorityClassName() { + return this.priorityClassName != null; + } + + public boolean hasResourceClaims() { + return this.resourceClaims != null && !(this.resourceClaims.isEmpty()); + } + + public boolean hasSchedulingConstraints() { + return this.schedulingConstraints != null; + } + + public boolean hasSchedulingPolicy() { + return this.schedulingPolicy != null; + } + + public int hashCode() { + return Objects.hash(disruptionMode, name, priority, priorityClassName, resourceClaims, schedulingConstraints, schedulingPolicy); + } + + public A removeAllFromResourceClaims(Collection items) { + if (this.resourceClaims == null) { + return (A) this; + } + for (V1alpha2PodGroupResourceClaim item : items) { + V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); + } + return (A) this; + } + + public A removeFromResourceClaims(V1alpha2PodGroupResourceClaim... items) { + if (this.resourceClaims == null) { + return (A) this; + } + for (V1alpha2PodGroupResourceClaim item : items) { + V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + _visitables.get("resourceClaims").remove(builder); + this.resourceClaims.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromResourceClaims(Predicate predicate) { + if (resourceClaims == null) { + return (A) this; + } + Iterator each = resourceClaims.iterator(); + List visitables = this._visitables.get("resourceClaims"); + while (each.hasNext()) { + V1alpha2PodGroupResourceClaimBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ResourceClaimsNested setNewResourceClaimLike(int index,V1alpha2PodGroupResourceClaim item) { + return new ResourceClaimsNested(index, item); + } + + public A setToResourceClaims(int index,V1alpha2PodGroupResourceClaim item) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList(); + } + V1alpha2PodGroupResourceClaimBuilder builder = new V1alpha2PodGroupResourceClaimBuilder(item); + if (index < 0 || index >= this.resourceClaims.size()) { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.add(builder); + } else { + this._visitables.get("resourceClaims").add(builder); + this.resourceClaims.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(disruptionMode == null)) { + sb.append("disruptionMode:"); + sb.append(disruptionMode); + sb.append(","); + } + if (!(name == null)) { + sb.append("name:"); + sb.append(name); + sb.append(","); + } + if (!(priority == null)) { + sb.append("priority:"); + sb.append(priority); + sb.append(","); + } + if (!(priorityClassName == null)) { + sb.append("priorityClassName:"); + sb.append(priorityClassName); + sb.append(","); + } + if (!(resourceClaims == null) && !(resourceClaims.isEmpty())) { + sb.append("resourceClaims:"); + sb.append(resourceClaims); + sb.append(","); + } + if (!(schedulingConstraints == null)) { + sb.append("schedulingConstraints:"); + sb.append(schedulingConstraints); + sb.append(","); + } + if (!(schedulingPolicy == null)) { + sb.append("schedulingPolicy:"); + sb.append(schedulingPolicy); + } + sb.append("}"); + return sb.toString(); + } + + public A withDisruptionMode(String disruptionMode) { + this.disruptionMode = disruptionMode; + return (A) this; + } + + public A withName(String name) { + this.name = name; + return (A) this; + } + + public SchedulingConstraintsNested withNewSchedulingConstraints() { + return new SchedulingConstraintsNested(null); + } + + public SchedulingConstraintsNested withNewSchedulingConstraintsLike(V1alpha2PodGroupSchedulingConstraints item) { + return new SchedulingConstraintsNested(item); + } + + public SchedulingPolicyNested withNewSchedulingPolicy() { + return new SchedulingPolicyNested(null); + } + + public SchedulingPolicyNested withNewSchedulingPolicyLike(V1alpha2PodGroupSchedulingPolicy item) { + return new SchedulingPolicyNested(item); + } + + public A withPriority(Integer priority) { + this.priority = priority; + return (A) this; + } + + public A withPriorityClassName(String priorityClassName) { + this.priorityClassName = priorityClassName; + return (A) this; + } + + public A withResourceClaims(List resourceClaims) { + if (this.resourceClaims != null) { + this._visitables.get("resourceClaims").clear(); + } + if (resourceClaims != null) { + this.resourceClaims = new ArrayList(); + for (V1alpha2PodGroupResourceClaim item : resourceClaims) { + this.addToResourceClaims(item); + } + } else { + this.resourceClaims = null; + } + return (A) this; + } + + public A withResourceClaims(V1alpha2PodGroupResourceClaim... resourceClaims) { + if (this.resourceClaims != null) { + this.resourceClaims.clear(); + _visitables.remove("resourceClaims"); + } + if (resourceClaims != null) { + for (V1alpha2PodGroupResourceClaim item : resourceClaims) { + this.addToResourceClaims(item); + } + } + return (A) this; + } + + public A withSchedulingConstraints(V1alpha2PodGroupSchedulingConstraints schedulingConstraints) { + this._visitables.remove("schedulingConstraints"); + if (schedulingConstraints != null) { + this.schedulingConstraints = new V1alpha2PodGroupSchedulingConstraintsBuilder(schedulingConstraints); + this._visitables.get("schedulingConstraints").add(this.schedulingConstraints); + } else { + this.schedulingConstraints = null; + this._visitables.get("schedulingConstraints").remove(this.schedulingConstraints); + } + return (A) this; + } + + public A withSchedulingPolicy(V1alpha2PodGroupSchedulingPolicy schedulingPolicy) { + this._visitables.remove("schedulingPolicy"); + if (schedulingPolicy != null) { + this.schedulingPolicy = new V1alpha2PodGroupSchedulingPolicyBuilder(schedulingPolicy); + this._visitables.get("schedulingPolicy").add(this.schedulingPolicy); + } else { + this.schedulingPolicy = null; + this._visitables.get("schedulingPolicy").remove(this.schedulingPolicy); + } + return (A) this; + } + public class ResourceClaimsNested extends V1alpha2PodGroupResourceClaimFluent> implements Nested{ + + V1alpha2PodGroupResourceClaimBuilder builder; + int index; + + ResourceClaimsNested(int index,V1alpha2PodGroupResourceClaim item) { + this.index = index; + this.builder = new V1alpha2PodGroupResourceClaimBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupTemplateFluent.this.setToResourceClaims(index, builder.build()); + } + + public N endResourceClaim() { + return and(); + } + + } + public class SchedulingConstraintsNested extends V1alpha2PodGroupSchedulingConstraintsFluent> implements Nested{ + + V1alpha2PodGroupSchedulingConstraintsBuilder builder; + + SchedulingConstraintsNested(V1alpha2PodGroupSchedulingConstraints item) { + this.builder = new V1alpha2PodGroupSchedulingConstraintsBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupTemplateFluent.this.withSchedulingConstraints(builder.build()); + } + + public N endSchedulingConstraints() { + return and(); + } + + } + public class SchedulingPolicyNested extends V1alpha2PodGroupSchedulingPolicyFluent> implements Nested{ + + V1alpha2PodGroupSchedulingPolicyBuilder builder; + + SchedulingPolicyNested(V1alpha2PodGroupSchedulingPolicy item) { + this.builder = new V1alpha2PodGroupSchedulingPolicyBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupTemplateFluent.this.withSchedulingPolicy(builder.build()); + } + + public N endSchedulingPolicy() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReferenceBuilder.java new file mode 100644 index 0000000000..1365147484 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReferenceBuilder.java @@ -0,0 +1,45 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha2PodGroupTemplateReferenceBuilder extends V1alpha2PodGroupTemplateReferenceFluent implements VisitableBuilder{ + + V1alpha2PodGroupTemplateReferenceFluent fluent; + + public V1alpha2PodGroupTemplateReferenceBuilder() { + this(new V1alpha2PodGroupTemplateReference()); + } + + public V1alpha2PodGroupTemplateReferenceBuilder(V1alpha2PodGroupTemplateReferenceFluent fluent) { + this(fluent, new V1alpha2PodGroupTemplateReference()); + } + + public V1alpha2PodGroupTemplateReferenceBuilder(V1alpha2PodGroupTemplateReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha2PodGroupTemplateReferenceBuilder(V1alpha2PodGroupTemplateReferenceFluent fluent,V1alpha2PodGroupTemplateReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha2PodGroupTemplateReference build() { + V1alpha2PodGroupTemplateReference buildable = new V1alpha2PodGroupTemplateReference(); + buildable.setWorkload(fluent.buildWorkload()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReferenceFluent.java new file mode 100644 index 0000000000..b600a6464a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReferenceFluent.java @@ -0,0 +1,134 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2PodGroupTemplateReferenceFluent> extends BaseFluent{ + + private V1alpha2WorkloadPodGroupTemplateReferenceBuilder workload; + + public V1alpha2PodGroupTemplateReferenceFluent() { + } + + public V1alpha2PodGroupTemplateReferenceFluent(V1alpha2PodGroupTemplateReference instance) { + this.copyInstance(instance); + } + + public V1alpha2WorkloadPodGroupTemplateReference buildWorkload() { + return this.workload != null ? this.workload.build() : null; + } + + protected void copyInstance(V1alpha2PodGroupTemplateReference instance) { + instance = instance != null ? instance : new V1alpha2PodGroupTemplateReference(); + if (instance != null) { + this.withWorkload(instance.getWorkload()); + } + } + + public WorkloadNested editOrNewWorkload() { + return this.withNewWorkloadLike(Optional.ofNullable(this.buildWorkload()).orElse(new V1alpha2WorkloadPodGroupTemplateReferenceBuilder().build())); + } + + public WorkloadNested editOrNewWorkloadLike(V1alpha2WorkloadPodGroupTemplateReference item) { + return this.withNewWorkloadLike(Optional.ofNullable(this.buildWorkload()).orElse(item)); + } + + public WorkloadNested editWorkload() { + return this.withNewWorkloadLike(Optional.ofNullable(this.buildWorkload()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha2PodGroupTemplateReferenceFluent that = (V1alpha2PodGroupTemplateReferenceFluent) o; + if (!(Objects.equals(workload, that.workload))) { + return false; + } + return true; + } + + public boolean hasWorkload() { + return this.workload != null; + } + + public int hashCode() { + return Objects.hash(workload); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(workload == null)) { + sb.append("workload:"); + sb.append(workload); + } + sb.append("}"); + return sb.toString(); + } + + public WorkloadNested withNewWorkload() { + return new WorkloadNested(null); + } + + public WorkloadNested withNewWorkloadLike(V1alpha2WorkloadPodGroupTemplateReference item) { + return new WorkloadNested(item); + } + + public A withWorkload(V1alpha2WorkloadPodGroupTemplateReference workload) { + this._visitables.remove("workload"); + if (workload != null) { + this.workload = new V1alpha2WorkloadPodGroupTemplateReferenceBuilder(workload); + this._visitables.get("workload").add(this.workload); + } else { + this.workload = null; + this._visitables.get("workload").remove(this.workload); + } + return (A) this; + } + public class WorkloadNested extends V1alpha2WorkloadPodGroupTemplateReferenceFluent> implements Nested{ + + V1alpha2WorkloadPodGroupTemplateReferenceBuilder builder; + + WorkloadNested(V1alpha2WorkloadPodGroupTemplateReference item) { + this.builder = new V1alpha2WorkloadPodGroupTemplateReferenceBuilder(this, item); + } + + public N and() { + return (N) V1alpha2PodGroupTemplateReferenceFluent.this.withWorkload(builder.build()); + } + + public N endWorkload() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraintBuilder.java new file mode 100644 index 0000000000..5a203eeda1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraintBuilder.java @@ -0,0 +1,45 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha2TopologyConstraintBuilder extends V1alpha2TopologyConstraintFluent implements VisitableBuilder{ + + V1alpha2TopologyConstraintFluent fluent; + + public V1alpha2TopologyConstraintBuilder() { + this(new V1alpha2TopologyConstraint()); + } + + public V1alpha2TopologyConstraintBuilder(V1alpha2TopologyConstraintFluent fluent) { + this(fluent, new V1alpha2TopologyConstraint()); + } + + public V1alpha2TopologyConstraintBuilder(V1alpha2TopologyConstraint instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha2TopologyConstraintBuilder(V1alpha2TopologyConstraintFluent fluent,V1alpha2TopologyConstraint instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha2TopologyConstraint build() { + V1alpha2TopologyConstraint buildable = new V1alpha2TopologyConstraint(); + buildable.setKey(fluent.getKey()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraintFluent.java new file mode 100644 index 0000000000..d3c2f0edec --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraintFluent.java @@ -0,0 +1,89 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2TopologyConstraintFluent> extends BaseFluent{ + + private String key; + + public V1alpha2TopologyConstraintFluent() { + } + + public V1alpha2TopologyConstraintFluent(V1alpha2TopologyConstraint instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha2TopologyConstraint instance) { + instance = instance != null ? instance : new V1alpha2TopologyConstraint(); + if (instance != null) { + this.withKey(instance.getKey()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha2TopologyConstraintFluent that = (V1alpha2TopologyConstraintFluent) o; + if (!(Objects.equals(key, that.key))) { + return false; + } + return true; + } + + public String getKey() { + return this.key; + } + + public boolean hasKey() { + return this.key != null; + } + + public int hashCode() { + return Objects.hash(key); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(key == null)) { + sb.append("key:"); + sb.append(key); + } + sb.append("}"); + return sb.toString(); + } + + public A withKey(String key) { + this.key = key; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypedLocalObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReferenceBuilder.java similarity index 54% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypedLocalObjectReferenceBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReferenceBuilder.java index 648b8ce365..869dd21147 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypedLocalObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -14,30 +14,30 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; -public class V1alpha1TypedLocalObjectReferenceBuilder extends V1alpha1TypedLocalObjectReferenceFluent implements VisitableBuilder{ +public class V1alpha2TypedLocalObjectReferenceBuilder extends V1alpha2TypedLocalObjectReferenceFluent implements VisitableBuilder{ - V1alpha1TypedLocalObjectReferenceFluent fluent; + V1alpha2TypedLocalObjectReferenceFluent fluent; - public V1alpha1TypedLocalObjectReferenceBuilder() { - this(new V1alpha1TypedLocalObjectReference()); + public V1alpha2TypedLocalObjectReferenceBuilder() { + this(new V1alpha2TypedLocalObjectReference()); } - public V1alpha1TypedLocalObjectReferenceBuilder(V1alpha1TypedLocalObjectReferenceFluent fluent) { - this(fluent, new V1alpha1TypedLocalObjectReference()); + public V1alpha2TypedLocalObjectReferenceBuilder(V1alpha2TypedLocalObjectReferenceFluent fluent) { + this(fluent, new V1alpha2TypedLocalObjectReference()); } - public V1alpha1TypedLocalObjectReferenceBuilder(V1alpha1TypedLocalObjectReference instance) { + public V1alpha2TypedLocalObjectReferenceBuilder(V1alpha2TypedLocalObjectReference instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha1TypedLocalObjectReferenceBuilder(V1alpha1TypedLocalObjectReferenceFluent fluent,V1alpha1TypedLocalObjectReference instance) { + public V1alpha2TypedLocalObjectReferenceBuilder(V1alpha2TypedLocalObjectReferenceFluent fluent,V1alpha2TypedLocalObjectReference instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha1TypedLocalObjectReference build() { - V1alpha1TypedLocalObjectReference buildable = new V1alpha1TypedLocalObjectReference(); + public V1alpha2TypedLocalObjectReference build() { + V1alpha2TypedLocalObjectReference buildable = new V1alpha2TypedLocalObjectReference(); buildable.setApiGroup(fluent.getApiGroup()); buildable.setKind(fluent.getKind()); buildable.setName(fluent.getName()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypedLocalObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReferenceFluent.java similarity index 85% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypedLocalObjectReferenceFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReferenceFluent.java index 769f411ce6..bb7aebb3d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypedLocalObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -23,21 +23,21 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1TypedLocalObjectReferenceFluent> extends BaseFluent{ +public class V1alpha2TypedLocalObjectReferenceFluent> extends BaseFluent{ private String apiGroup; private String kind; private String name; - public V1alpha1TypedLocalObjectReferenceFluent() { + public V1alpha2TypedLocalObjectReferenceFluent() { } - public V1alpha1TypedLocalObjectReferenceFluent(V1alpha1TypedLocalObjectReference instance) { + public V1alpha2TypedLocalObjectReferenceFluent(V1alpha2TypedLocalObjectReference instance) { this.copyInstance(instance); } - protected void copyInstance(V1alpha1TypedLocalObjectReference instance) { - instance = instance != null ? instance : new V1alpha1TypedLocalObjectReference(); + protected void copyInstance(V1alpha2TypedLocalObjectReference instance) { + instance = instance != null ? instance : new V1alpha2TypedLocalObjectReference(); if (instance != null) { this.withApiGroup(instance.getApiGroup()); this.withKind(instance.getKind()); @@ -55,7 +55,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1TypedLocalObjectReferenceFluent that = (V1alpha1TypedLocalObjectReferenceFluent) o; + V1alpha2TypedLocalObjectReferenceFluent that = (V1alpha2TypedLocalObjectReferenceFluent) o; if (!(Objects.equals(apiGroup, that.apiGroup))) { return false; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadBuilder.java similarity index 60% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadBuilder.java index a0cf205950..8300822ae7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -14,30 +14,30 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; -public class V1alpha1WorkloadBuilder extends V1alpha1WorkloadFluent implements VisitableBuilder{ +public class V1alpha2WorkloadBuilder extends V1alpha2WorkloadFluent implements VisitableBuilder{ - V1alpha1WorkloadFluent fluent; + V1alpha2WorkloadFluent fluent; - public V1alpha1WorkloadBuilder() { - this(new V1alpha1Workload()); + public V1alpha2WorkloadBuilder() { + this(new V1alpha2Workload()); } - public V1alpha1WorkloadBuilder(V1alpha1WorkloadFluent fluent) { - this(fluent, new V1alpha1Workload()); + public V1alpha2WorkloadBuilder(V1alpha2WorkloadFluent fluent) { + this(fluent, new V1alpha2Workload()); } - public V1alpha1WorkloadBuilder(V1alpha1Workload instance) { + public V1alpha2WorkloadBuilder(V1alpha2Workload instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha1WorkloadBuilder(V1alpha1WorkloadFluent fluent,V1alpha1Workload instance) { + public V1alpha2WorkloadBuilder(V1alpha2WorkloadFluent fluent,V1alpha2Workload instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha1Workload build() { - V1alpha1Workload buildable = new V1alpha1Workload(); + public V1alpha2Workload build() { + V1alpha2Workload buildable = new V1alpha2Workload(); buildable.setApiVersion(fluent.getApiVersion()); buildable.setKind(fluent.getKind()); buildable.setMetadata(fluent.buildMetadata()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadFluent.java similarity index 82% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadFluent.java index 4f77b921a9..fab4f97217 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -25,17 +25,17 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1WorkloadFluent> extends BaseFluent{ +public class V1alpha2WorkloadFluent> extends BaseFluent{ private String apiVersion; private String kind; private V1ObjectMetaBuilder metadata; - private V1alpha1WorkloadSpecBuilder spec; + private V1alpha2WorkloadSpecBuilder spec; - public V1alpha1WorkloadFluent() { + public V1alpha2WorkloadFluent() { } - public V1alpha1WorkloadFluent(V1alpha1Workload instance) { + public V1alpha2WorkloadFluent(V1alpha2Workload instance) { this.copyInstance(instance); } @@ -43,12 +43,12 @@ public V1ObjectMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - public V1alpha1WorkloadSpec buildSpec() { + public V1alpha2WorkloadSpec buildSpec() { return this.spec != null ? this.spec.build() : null; } - protected void copyInstance(V1alpha1Workload instance) { - instance = instance != null ? instance : new V1alpha1Workload(); + protected void copyInstance(V1alpha2Workload instance) { + instance = instance != null ? instance : new V1alpha2Workload(); if (instance != null) { this.withApiVersion(instance.getApiVersion()); this.withKind(instance.getKind()); @@ -70,10 +70,10 @@ public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { } public SpecNested editOrNewSpec() { - return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha1WorkloadSpecBuilder().build())); + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha2WorkloadSpecBuilder().build())); } - public SpecNested editOrNewSpecLike(V1alpha1WorkloadSpec item) { + public SpecNested editOrNewSpecLike(V1alpha2WorkloadSpec item) { return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); } @@ -91,7 +91,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1WorkloadFluent that = (V1alpha1WorkloadFluent) o; + V1alpha2WorkloadFluent that = (V1alpha2WorkloadFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -195,14 +195,14 @@ public SpecNested withNewSpec() { return new SpecNested(null); } - public SpecNested withNewSpecLike(V1alpha1WorkloadSpec item) { + public SpecNested withNewSpecLike(V1alpha2WorkloadSpec item) { return new SpecNested(item); } - public A withSpec(V1alpha1WorkloadSpec spec) { + public A withSpec(V1alpha2WorkloadSpec spec) { this._visitables.remove("spec"); if (spec != null) { - this.spec = new V1alpha1WorkloadSpecBuilder(spec); + this.spec = new V1alpha2WorkloadSpecBuilder(spec); this._visitables.get("spec").add(this.spec); } else { this.spec = null; @@ -219,7 +219,7 @@ public class MetadataNested extends V1ObjectMetaFluent> imp } public N and() { - return (N) V1alpha1WorkloadFluent.this.withMetadata(builder.build()); + return (N) V1alpha2WorkloadFluent.this.withMetadata(builder.build()); } public N endMetadata() { @@ -227,16 +227,16 @@ public N endMetadata() { } } - public class SpecNested extends V1alpha1WorkloadSpecFluent> implements Nested{ + public class SpecNested extends V1alpha2WorkloadSpecFluent> implements Nested{ - V1alpha1WorkloadSpecBuilder builder; + V1alpha2WorkloadSpecBuilder builder; - SpecNested(V1alpha1WorkloadSpec item) { - this.builder = new V1alpha1WorkloadSpecBuilder(this, item); + SpecNested(V1alpha2WorkloadSpec item) { + this.builder = new V1alpha2WorkloadSpecBuilder(this, item); } public N and() { - return (N) V1alpha1WorkloadFluent.this.withSpec(builder.build()); + return (N) V1alpha2WorkloadFluent.this.withSpec(builder.build()); } public N endSpec() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadListBuilder.java new file mode 100644 index 0000000000..07ea68d0a5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadListBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha2WorkloadListBuilder extends V1alpha2WorkloadListFluent implements VisitableBuilder{ + + V1alpha2WorkloadListFluent fluent; + + public V1alpha2WorkloadListBuilder() { + this(new V1alpha2WorkloadList()); + } + + public V1alpha2WorkloadListBuilder(V1alpha2WorkloadListFluent fluent) { + this(fluent, new V1alpha2WorkloadList()); + } + + public V1alpha2WorkloadListBuilder(V1alpha2WorkloadList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha2WorkloadListBuilder(V1alpha2WorkloadListFluent fluent,V1alpha2WorkloadList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha2WorkloadList build() { + V1alpha2WorkloadList buildable = new V1alpha2WorkloadList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadListFluent.java similarity index 71% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadListFluent.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadListFluent.java index 9d4adc5dcb..1eb72f84b0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -31,27 +31,27 @@ * Generated */ @SuppressWarnings("unchecked") -public class V1alpha1WorkloadListFluent> extends BaseFluent{ +public class V1alpha2WorkloadListFluent> extends BaseFluent{ private String apiVersion; - private ArrayList items; + private ArrayList items; private String kind; private V1ListMetaBuilder metadata; - public V1alpha1WorkloadListFluent() { + public V1alpha2WorkloadListFluent() { } - public V1alpha1WorkloadListFluent(V1alpha1WorkloadList instance) { + public V1alpha2WorkloadListFluent(V1alpha2WorkloadList instance) { this.copyInstance(instance); } - public A addAllToItems(Collection items) { + public A addAllToItems(Collection items) { if (this.items == null) { this.items = new ArrayList(); } - for (V1alpha1Workload item : items) { - V1alpha1WorkloadBuilder builder = new V1alpha1WorkloadBuilder(item); - _visitables.get("items").add(builder); + for (V1alpha2Workload item : items) { + V1alpha2WorkloadBuilder builder = new V1alpha2WorkloadBuilder(item); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -61,55 +61,55 @@ public ItemsNested addNewItem() { return new ItemsNested(-1, null); } - public ItemsNested addNewItemLike(V1alpha1Workload item) { + public ItemsNested addNewItemLike(V1alpha2Workload item) { return new ItemsNested(-1, item); } - public A addToItems(V1alpha1Workload... items) { + public A addToItems(V1alpha2Workload... items) { if (this.items == null) { this.items = new ArrayList(); } - for (V1alpha1Workload item : items) { - V1alpha1WorkloadBuilder builder = new V1alpha1WorkloadBuilder(item); - _visitables.get("items").add(builder); + for (V1alpha2Workload item : items) { + V1alpha2WorkloadBuilder builder = new V1alpha2WorkloadBuilder(item); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; } - public A addToItems(int index,V1alpha1Workload item) { + public A addToItems(int index,V1alpha2Workload item) { if (this.items == null) { this.items = new ArrayList(); } - V1alpha1WorkloadBuilder builder = new V1alpha1WorkloadBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + V1alpha2WorkloadBuilder builder = new V1alpha2WorkloadBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } - public V1alpha1Workload buildFirstItem() { + public V1alpha2Workload buildFirstItem() { return this.items.get(0).build(); } - public V1alpha1Workload buildItem(int index) { + public V1alpha2Workload buildItem(int index) { return this.items.get(index).build(); } - public List buildItems() { + public List buildItems() { return this.items != null ? build(items) : null; } - public V1alpha1Workload buildLastItem() { + public V1alpha2Workload buildLastItem() { return this.items.get(items.size() - 1).build(); } - public V1alpha1Workload buildMatchingItem(Predicate predicate) { - for (V1alpha1WorkloadBuilder item : items) { + public V1alpha2Workload buildMatchingItem(Predicate predicate) { + for (V1alpha2WorkloadBuilder item : items) { if (predicate.test(item)) { return item.build(); } @@ -121,8 +121,8 @@ public V1ListMeta buildMetadata() { return this.metadata != null ? this.metadata.build() : null; } - protected void copyInstance(V1alpha1WorkloadList instance) { - instance = instance != null ? instance : new V1alpha1WorkloadList(); + protected void copyInstance(V1alpha2WorkloadList instance) { + instance = instance != null ? instance : new V1alpha2WorkloadList(); if (instance != null) { this.withApiVersion(instance.getApiVersion()); this.withItems(instance.getItems()); @@ -153,7 +153,7 @@ public ItemsNested editLastItem() { return this.setNewItemLike(index, this.buildItem(index)); } - public ItemsNested editMatchingItem(Predicate predicate) { + public ItemsNested editMatchingItem(Predicate predicate) { int index = -1; for (int i = 0;i < items.size();i++) { if (predicate.test(items.get(i))) { @@ -189,7 +189,7 @@ public boolean equals(Object o) { if (!(super.equals(o))) { return false; } - V1alpha1WorkloadListFluent that = (V1alpha1WorkloadListFluent) o; + V1alpha2WorkloadListFluent that = (V1alpha2WorkloadListFluent) o; if (!(Objects.equals(apiVersion, that.apiVersion))) { return false; } @@ -225,8 +225,8 @@ public boolean hasKind() { return this.kind != null; } - public boolean hasMatchingItem(Predicate predicate) { - for (V1alpha1WorkloadBuilder item : items) { + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha2WorkloadBuilder item : items) { if (predicate.test(item)) { return true; } @@ -242,38 +242,38 @@ public int hashCode() { return Objects.hash(apiVersion, items, kind, metadata); } - public A removeAllFromItems(Collection items) { + public A removeAllFromItems(Collection items) { if (this.items == null) { return (A) this; } - for (V1alpha1Workload item : items) { - V1alpha1WorkloadBuilder builder = new V1alpha1WorkloadBuilder(item); + for (V1alpha2Workload item : items) { + V1alpha2WorkloadBuilder builder = new V1alpha2WorkloadBuilder(item); _visitables.get("items").remove(builder); this.items.remove(builder); } return (A) this; } - public A removeFromItems(V1alpha1Workload... items) { + public A removeFromItems(V1alpha2Workload... items) { if (this.items == null) { return (A) this; } - for (V1alpha1Workload item : items) { - V1alpha1WorkloadBuilder builder = new V1alpha1WorkloadBuilder(item); + for (V1alpha2Workload item : items) { + V1alpha2WorkloadBuilder builder = new V1alpha2WorkloadBuilder(item); _visitables.get("items").remove(builder); this.items.remove(builder); } return (A) this; } - public A removeMatchingFromItems(Predicate predicate) { + public A removeMatchingFromItems(Predicate predicate) { if (items == null) { return (A) this; } - Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + Iterator each = items.iterator(); + List visitables = this._visitables.get("items"); while (each.hasNext()) { - V1alpha1WorkloadBuilder builder = each.next(); + V1alpha2WorkloadBuilder builder = each.next(); if (predicate.test(builder)) { visitables.remove(builder); each.remove(); @@ -282,21 +282,21 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } - public ItemsNested setNewItemLike(int index,V1alpha1Workload item) { + public ItemsNested setNewItemLike(int index,V1alpha2Workload item) { return new ItemsNested(index, item); } - public A setToItems(int index,V1alpha1Workload item) { + public A setToItems(int index,V1alpha2Workload item) { if (this.items == null) { this.items = new ArrayList(); } - V1alpha1WorkloadBuilder builder = new V1alpha1WorkloadBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + V1alpha2WorkloadBuilder builder = new V1alpha2WorkloadBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } @@ -332,13 +332,13 @@ public A withApiVersion(String apiVersion) { return (A) this; } - public A withItems(List items) { + public A withItems(List items) { if (this.items != null) { this._visitables.get("items").clear(); } if (items != null) { this.items = new ArrayList(); - for (V1alpha1Workload item : items) { + for (V1alpha2Workload item : items) { this.addToItems(item); } } else { @@ -347,13 +347,13 @@ public A withItems(List items) { return (A) this; } - public A withItems(V1alpha1Workload... items) { + public A withItems(V1alpha2Workload... items) { if (this.items != null) { this.items.clear(); _visitables.remove("items"); } if (items != null) { - for (V1alpha1Workload item : items) { + for (V1alpha2Workload item : items) { this.addToItems(item); } } @@ -384,18 +384,18 @@ public MetadataNested withNewMetadata() { public MetadataNested withNewMetadataLike(V1ListMeta item) { return new MetadataNested(item); } - public class ItemsNested extends V1alpha1WorkloadFluent> implements Nested{ + public class ItemsNested extends V1alpha2WorkloadFluent> implements Nested{ - V1alpha1WorkloadBuilder builder; + V1alpha2WorkloadBuilder builder; int index; - ItemsNested(int index,V1alpha1Workload item) { + ItemsNested(int index,V1alpha2Workload item) { this.index = index; - this.builder = new V1alpha1WorkloadBuilder(this, item); + this.builder = new V1alpha2WorkloadBuilder(this, item); } public N and() { - return (N) V1alpha1WorkloadListFluent.this.setToItems(index, builder.build()); + return (N) V1alpha2WorkloadListFluent.this.setToItems(index, builder.build()); } public N endItem() { @@ -412,7 +412,7 @@ public class MetadataNested extends V1ListMetaFluent> imple } public N and() { - return (N) V1alpha1WorkloadListFluent.this.withMetadata(builder.build()); + return (N) V1alpha2WorkloadListFluent.this.withMetadata(builder.build()); } public N endMetadata() { diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReferenceBuilder.java new file mode 100644 index 0000000000..1b470d62e9 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReferenceBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha2WorkloadPodGroupTemplateReferenceBuilder extends V1alpha2WorkloadPodGroupTemplateReferenceFluent implements VisitableBuilder{ + + V1alpha2WorkloadPodGroupTemplateReferenceFluent fluent; + + public V1alpha2WorkloadPodGroupTemplateReferenceBuilder() { + this(new V1alpha2WorkloadPodGroupTemplateReference()); + } + + public V1alpha2WorkloadPodGroupTemplateReferenceBuilder(V1alpha2WorkloadPodGroupTemplateReferenceFluent fluent) { + this(fluent, new V1alpha2WorkloadPodGroupTemplateReference()); + } + + public V1alpha2WorkloadPodGroupTemplateReferenceBuilder(V1alpha2WorkloadPodGroupTemplateReference instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha2WorkloadPodGroupTemplateReferenceBuilder(V1alpha2WorkloadPodGroupTemplateReferenceFluent fluent,V1alpha2WorkloadPodGroupTemplateReference instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha2WorkloadPodGroupTemplateReference build() { + V1alpha2WorkloadPodGroupTemplateReference buildable = new V1alpha2WorkloadPodGroupTemplateReference(); + buildable.setPodGroupTemplateName(fluent.getPodGroupTemplateName()); + buildable.setWorkloadName(fluent.getWorkloadName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReferenceFluent.java new file mode 100644 index 0000000000..6cca7f35b1 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReferenceFluent.java @@ -0,0 +1,112 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2WorkloadPodGroupTemplateReferenceFluent> extends BaseFluent{ + + private String podGroupTemplateName; + private String workloadName; + + public V1alpha2WorkloadPodGroupTemplateReferenceFluent() { + } + + public V1alpha2WorkloadPodGroupTemplateReferenceFluent(V1alpha2WorkloadPodGroupTemplateReference instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha2WorkloadPodGroupTemplateReference instance) { + instance = instance != null ? instance : new V1alpha2WorkloadPodGroupTemplateReference(); + if (instance != null) { + this.withPodGroupTemplateName(instance.getPodGroupTemplateName()); + this.withWorkloadName(instance.getWorkloadName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha2WorkloadPodGroupTemplateReferenceFluent that = (V1alpha2WorkloadPodGroupTemplateReferenceFluent) o; + if (!(Objects.equals(podGroupTemplateName, that.podGroupTemplateName))) { + return false; + } + if (!(Objects.equals(workloadName, that.workloadName))) { + return false; + } + return true; + } + + public String getPodGroupTemplateName() { + return this.podGroupTemplateName; + } + + public String getWorkloadName() { + return this.workloadName; + } + + public boolean hasPodGroupTemplateName() { + return this.podGroupTemplateName != null; + } + + public boolean hasWorkloadName() { + return this.workloadName != null; + } + + public int hashCode() { + return Objects.hash(podGroupTemplateName, workloadName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(podGroupTemplateName == null)) { + sb.append("podGroupTemplateName:"); + sb.append(podGroupTemplateName); + sb.append(","); + } + if (!(workloadName == null)) { + sb.append("workloadName:"); + sb.append(workloadName); + } + sb.append("}"); + return sb.toString(); + } + + public A withPodGroupTemplateName(String podGroupTemplateName) { + this.podGroupTemplateName = podGroupTemplateName; + return (A) this; + } + + public A withWorkloadName(String workloadName) { + this.workloadName = workloadName; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpecBuilder.java similarity index 53% rename from fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpecBuilder.java rename to fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpecBuilder.java index 821edfc5f7..fe976187b0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -14,32 +14,32 @@ import io.kubernetes.client.fluent.VisitableBuilder; import java.lang.Object; -public class V1alpha1WorkloadSpecBuilder extends V1alpha1WorkloadSpecFluent implements VisitableBuilder{ +public class V1alpha2WorkloadSpecBuilder extends V1alpha2WorkloadSpecFluent implements VisitableBuilder{ - V1alpha1WorkloadSpecFluent fluent; + V1alpha2WorkloadSpecFluent fluent; - public V1alpha1WorkloadSpecBuilder() { - this(new V1alpha1WorkloadSpec()); + public V1alpha2WorkloadSpecBuilder() { + this(new V1alpha2WorkloadSpec()); } - public V1alpha1WorkloadSpecBuilder(V1alpha1WorkloadSpecFluent fluent) { - this(fluent, new V1alpha1WorkloadSpec()); + public V1alpha2WorkloadSpecBuilder(V1alpha2WorkloadSpecFluent fluent) { + this(fluent, new V1alpha2WorkloadSpec()); } - public V1alpha1WorkloadSpecBuilder(V1alpha1WorkloadSpec instance) { + public V1alpha2WorkloadSpecBuilder(V1alpha2WorkloadSpec instance) { this.fluent = this; this.copyInstance(instance); } - public V1alpha1WorkloadSpecBuilder(V1alpha1WorkloadSpecFluent fluent,V1alpha1WorkloadSpec instance) { + public V1alpha2WorkloadSpecBuilder(V1alpha2WorkloadSpecFluent fluent,V1alpha2WorkloadSpec instance) { this.fluent = fluent; fluent.copyInstance(instance); } - public V1alpha1WorkloadSpec build() { - V1alpha1WorkloadSpec buildable = new V1alpha1WorkloadSpec(); + public V1alpha2WorkloadSpec build() { + V1alpha2WorkloadSpec buildable = new V1alpha2WorkloadSpec(); buildable.setControllerRef(fluent.buildControllerRef()); - buildable.setPodGroups(fluent.buildPodGroups()); + buildable.setPodGroupTemplates(fluent.buildPodGroupTemplates()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpecFluent.java new file mode 100644 index 0000000000..bedbcb0cc7 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpecFluent.java @@ -0,0 +1,377 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha2WorkloadSpecFluent> extends BaseFluent{ + + private V1alpha2TypedLocalObjectReferenceBuilder controllerRef; + private ArrayList podGroupTemplates; + + public V1alpha2WorkloadSpecFluent() { + } + + public V1alpha2WorkloadSpecFluent(V1alpha2WorkloadSpec instance) { + this.copyInstance(instance); + } + + public A addAllToPodGroupTemplates(Collection items) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList(); + } + for (V1alpha2PodGroupTemplate item : items) { + V1alpha2PodGroupTemplateBuilder builder = new V1alpha2PodGroupTemplateBuilder(item); + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } + return (A) this; + } + + public PodGroupTemplatesNested addNewPodGroupTemplate() { + return new PodGroupTemplatesNested(-1, null); + } + + public PodGroupTemplatesNested addNewPodGroupTemplateLike(V1alpha2PodGroupTemplate item) { + return new PodGroupTemplatesNested(-1, item); + } + + public A addToPodGroupTemplates(V1alpha2PodGroupTemplate... items) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList(); + } + for (V1alpha2PodGroupTemplate item : items) { + V1alpha2PodGroupTemplateBuilder builder = new V1alpha2PodGroupTemplateBuilder(item); + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } + return (A) this; + } + + public A addToPodGroupTemplates(int index,V1alpha2PodGroupTemplate item) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList(); + } + V1alpha2PodGroupTemplateBuilder builder = new V1alpha2PodGroupTemplateBuilder(item); + if (index < 0 || index >= this.podGroupTemplates.size()) { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } else { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(index, builder); + } + return (A) this; + } + + public V1alpha2TypedLocalObjectReference buildControllerRef() { + return this.controllerRef != null ? this.controllerRef.build() : null; + } + + public V1alpha2PodGroupTemplate buildFirstPodGroupTemplate() { + return this.podGroupTemplates.get(0).build(); + } + + public V1alpha2PodGroupTemplate buildLastPodGroupTemplate() { + return this.podGroupTemplates.get(podGroupTemplates.size() - 1).build(); + } + + public V1alpha2PodGroupTemplate buildMatchingPodGroupTemplate(Predicate predicate) { + for (V1alpha2PodGroupTemplateBuilder item : podGroupTemplates) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha2PodGroupTemplate buildPodGroupTemplate(int index) { + return this.podGroupTemplates.get(index).build(); + } + + public List buildPodGroupTemplates() { + return this.podGroupTemplates != null ? build(podGroupTemplates) : null; + } + + protected void copyInstance(V1alpha2WorkloadSpec instance) { + instance = instance != null ? instance : new V1alpha2WorkloadSpec(); + if (instance != null) { + this.withControllerRef(instance.getControllerRef()); + this.withPodGroupTemplates(instance.getPodGroupTemplates()); + } + } + + public ControllerRefNested editControllerRef() { + return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(null)); + } + + public PodGroupTemplatesNested editFirstPodGroupTemplate() { + if (podGroupTemplates.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(0, this.buildPodGroupTemplate(0)); + } + + public PodGroupTemplatesNested editLastPodGroupTemplate() { + int index = podGroupTemplates.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); + } + + public PodGroupTemplatesNested editMatchingPodGroupTemplate(Predicate predicate) { + int index = -1; + for (int i = 0;i < podGroupTemplates.size();i++) { + if (predicate.test(podGroupTemplates.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); + } + + public ControllerRefNested editOrNewControllerRef() { + return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(new V1alpha2TypedLocalObjectReferenceBuilder().build())); + } + + public ControllerRefNested editOrNewControllerRefLike(V1alpha2TypedLocalObjectReference item) { + return this.withNewControllerRefLike(Optional.ofNullable(this.buildControllerRef()).orElse(item)); + } + + public PodGroupTemplatesNested editPodGroupTemplate(int index) { + if (podGroupTemplates.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "podGroupTemplates")); + } + return this.setNewPodGroupTemplateLike(index, this.buildPodGroupTemplate(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha2WorkloadSpecFluent that = (V1alpha2WorkloadSpecFluent) o; + if (!(Objects.equals(controllerRef, that.controllerRef))) { + return false; + } + if (!(Objects.equals(podGroupTemplates, that.podGroupTemplates))) { + return false; + } + return true; + } + + public boolean hasControllerRef() { + return this.controllerRef != null; + } + + public boolean hasMatchingPodGroupTemplate(Predicate predicate) { + for (V1alpha2PodGroupTemplateBuilder item : podGroupTemplates) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPodGroupTemplates() { + return this.podGroupTemplates != null && !(this.podGroupTemplates.isEmpty()); + } + + public int hashCode() { + return Objects.hash(controllerRef, podGroupTemplates); + } + + public A removeAllFromPodGroupTemplates(Collection items) { + if (this.podGroupTemplates == null) { + return (A) this; + } + for (V1alpha2PodGroupTemplate item : items) { + V1alpha2PodGroupTemplateBuilder builder = new V1alpha2PodGroupTemplateBuilder(item); + _visitables.get("podGroupTemplates").remove(builder); + this.podGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeFromPodGroupTemplates(V1alpha2PodGroupTemplate... items) { + if (this.podGroupTemplates == null) { + return (A) this; + } + for (V1alpha2PodGroupTemplate item : items) { + V1alpha2PodGroupTemplateBuilder builder = new V1alpha2PodGroupTemplateBuilder(item); + _visitables.get("podGroupTemplates").remove(builder); + this.podGroupTemplates.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromPodGroupTemplates(Predicate predicate) { + if (podGroupTemplates == null) { + return (A) this; + } + Iterator each = podGroupTemplates.iterator(); + List visitables = this._visitables.get("podGroupTemplates"); + while (each.hasNext()) { + V1alpha2PodGroupTemplateBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public PodGroupTemplatesNested setNewPodGroupTemplateLike(int index,V1alpha2PodGroupTemplate item) { + return new PodGroupTemplatesNested(index, item); + } + + public A setToPodGroupTemplates(int index,V1alpha2PodGroupTemplate item) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList(); + } + V1alpha2PodGroupTemplateBuilder builder = new V1alpha2PodGroupTemplateBuilder(item); + if (index < 0 || index >= this.podGroupTemplates.size()) { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.add(builder); + } else { + this._visitables.get("podGroupTemplates").add(builder); + this.podGroupTemplates.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(controllerRef == null)) { + sb.append("controllerRef:"); + sb.append(controllerRef); + sb.append(","); + } + if (!(podGroupTemplates == null) && !(podGroupTemplates.isEmpty())) { + sb.append("podGroupTemplates:"); + sb.append(podGroupTemplates); + } + sb.append("}"); + return sb.toString(); + } + + public A withControllerRef(V1alpha2TypedLocalObjectReference controllerRef) { + this._visitables.remove("controllerRef"); + if (controllerRef != null) { + this.controllerRef = new V1alpha2TypedLocalObjectReferenceBuilder(controllerRef); + this._visitables.get("controllerRef").add(this.controllerRef); + } else { + this.controllerRef = null; + this._visitables.get("controllerRef").remove(this.controllerRef); + } + return (A) this; + } + + public ControllerRefNested withNewControllerRef() { + return new ControllerRefNested(null); + } + + public ControllerRefNested withNewControllerRefLike(V1alpha2TypedLocalObjectReference item) { + return new ControllerRefNested(item); + } + + public A withPodGroupTemplates(List podGroupTemplates) { + if (this.podGroupTemplates != null) { + this._visitables.get("podGroupTemplates").clear(); + } + if (podGroupTemplates != null) { + this.podGroupTemplates = new ArrayList(); + for (V1alpha2PodGroupTemplate item : podGroupTemplates) { + this.addToPodGroupTemplates(item); + } + } else { + this.podGroupTemplates = null; + } + return (A) this; + } + + public A withPodGroupTemplates(V1alpha2PodGroupTemplate... podGroupTemplates) { + if (this.podGroupTemplates != null) { + this.podGroupTemplates.clear(); + _visitables.remove("podGroupTemplates"); + } + if (podGroupTemplates != null) { + for (V1alpha2PodGroupTemplate item : podGroupTemplates) { + this.addToPodGroupTemplates(item); + } + } + return (A) this; + } + public class ControllerRefNested extends V1alpha2TypedLocalObjectReferenceFluent> implements Nested{ + + V1alpha2TypedLocalObjectReferenceBuilder builder; + + ControllerRefNested(V1alpha2TypedLocalObjectReference item) { + this.builder = new V1alpha2TypedLocalObjectReferenceBuilder(this, item); + } + + public N and() { + return (N) V1alpha2WorkloadSpecFluent.this.withControllerRef(builder.build()); + } + + public N endControllerRef() { + return and(); + } + + } + public class PodGroupTemplatesNested extends V1alpha2PodGroupTemplateFluent> implements Nested{ + + V1alpha2PodGroupTemplateBuilder builder; + int index; + + PodGroupTemplatesNested(int index,V1alpha2PodGroupTemplate item) { + this.index = index; + this.builder = new V1alpha2PodGroupTemplateBuilder(this, item); + } + + public N and() { + return (N) V1alpha2WorkloadSpecFluent.this.setToPodGroupTemplates(index, builder.build()); + } + + public N endPodGroupTemplate() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java index 4def79619e..f049b7a446 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java index 32fd51d158..030d9a550f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java index 59a316c1a3..b9b035d9ef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java index 70ce3498d0..d6612e5630 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java index 1710ad9c7d..3e43ea4be4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java index bec890d94f..32eeef7f4a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1alpha3DeviceTaintRule item : items) { V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1alpha3DeviceTaintRule... items) { } for (V1alpha3DeviceTaintRule item : items) { V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1alpha3DeviceTaintRule item) { this.items = new ArrayList(); } V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predi return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1alpha3DeviceTaintRuleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1alpha3DeviceTaintRule item) { this.items = new ArrayList(); } V1alpha3DeviceTaintRuleBuilder builder = new V1alpha3DeviceTaintRuleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java index 3175f232ad..9c7ab73447 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java index 9934f5ab44..48fa955494 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusBuilder.java index a207457d7e..5376bcfcfa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusFluent.java index 58864c5bb9..0c281001a8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToConditions(Collection items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToConditions(V1Condition... items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java index 1bbe0d57d0..10c80eaec4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java index f34dd09a78..957ee33354 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelectorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatusBuilder.java new file mode 100644 index 0000000000..61ba567790 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatusBuilder.java @@ -0,0 +1,54 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha3PoolStatusBuilder extends V1alpha3PoolStatusFluent implements VisitableBuilder{ + + V1alpha3PoolStatusFluent fluent; + + public V1alpha3PoolStatusBuilder() { + this(new V1alpha3PoolStatus()); + } + + public V1alpha3PoolStatusBuilder(V1alpha3PoolStatusFluent fluent) { + this(fluent, new V1alpha3PoolStatus()); + } + + public V1alpha3PoolStatusBuilder(V1alpha3PoolStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3PoolStatusBuilder(V1alpha3PoolStatusFluent fluent,V1alpha3PoolStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3PoolStatus build() { + V1alpha3PoolStatus buildable = new V1alpha3PoolStatus(); + buildable.setAllocatedDevices(fluent.getAllocatedDevices()); + buildable.setAvailableDevices(fluent.getAvailableDevices()); + buildable.setDriver(fluent.getDriver()); + buildable.setGeneration(fluent.getGeneration()); + buildable.setNodeName(fluent.getNodeName()); + buildable.setPoolName(fluent.getPoolName()); + buildable.setResourceSliceCount(fluent.getResourceSliceCount()); + buildable.setTotalDevices(fluent.getTotalDevices()); + buildable.setUnavailableDevices(fluent.getUnavailableDevices()); + buildable.setValidationError(fluent.getValidationError()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatusFluent.java new file mode 100644 index 0000000000..8929c34886 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatusFluent.java @@ -0,0 +1,298 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; +import java.lang.Long; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3PoolStatusFluent> extends BaseFluent{ + + private Integer allocatedDevices; + private Integer availableDevices; + private String driver; + private Long generation; + private String nodeName; + private String poolName; + private Integer resourceSliceCount; + private Integer totalDevices; + private Integer unavailableDevices; + private String validationError; + + public V1alpha3PoolStatusFluent() { + } + + public V1alpha3PoolStatusFluent(V1alpha3PoolStatus instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha3PoolStatus instance) { + instance = instance != null ? instance : new V1alpha3PoolStatus(); + if (instance != null) { + this.withAllocatedDevices(instance.getAllocatedDevices()); + this.withAvailableDevices(instance.getAvailableDevices()); + this.withDriver(instance.getDriver()); + this.withGeneration(instance.getGeneration()); + this.withNodeName(instance.getNodeName()); + this.withPoolName(instance.getPoolName()); + this.withResourceSliceCount(instance.getResourceSliceCount()); + this.withTotalDevices(instance.getTotalDevices()); + this.withUnavailableDevices(instance.getUnavailableDevices()); + this.withValidationError(instance.getValidationError()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3PoolStatusFluent that = (V1alpha3PoolStatusFluent) o; + if (!(Objects.equals(allocatedDevices, that.allocatedDevices))) { + return false; + } + if (!(Objects.equals(availableDevices, that.availableDevices))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(generation, that.generation))) { + return false; + } + if (!(Objects.equals(nodeName, that.nodeName))) { + return false; + } + if (!(Objects.equals(poolName, that.poolName))) { + return false; + } + if (!(Objects.equals(resourceSliceCount, that.resourceSliceCount))) { + return false; + } + if (!(Objects.equals(totalDevices, that.totalDevices))) { + return false; + } + if (!(Objects.equals(unavailableDevices, that.unavailableDevices))) { + return false; + } + if (!(Objects.equals(validationError, that.validationError))) { + return false; + } + return true; + } + + public Integer getAllocatedDevices() { + return this.allocatedDevices; + } + + public Integer getAvailableDevices() { + return this.availableDevices; + } + + public String getDriver() { + return this.driver; + } + + public Long getGeneration() { + return this.generation; + } + + public String getNodeName() { + return this.nodeName; + } + + public String getPoolName() { + return this.poolName; + } + + public Integer getResourceSliceCount() { + return this.resourceSliceCount; + } + + public Integer getTotalDevices() { + return this.totalDevices; + } + + public Integer getUnavailableDevices() { + return this.unavailableDevices; + } + + public String getValidationError() { + return this.validationError; + } + + public boolean hasAllocatedDevices() { + return this.allocatedDevices != null; + } + + public boolean hasAvailableDevices() { + return this.availableDevices != null; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasGeneration() { + return this.generation != null; + } + + public boolean hasNodeName() { + return this.nodeName != null; + } + + public boolean hasPoolName() { + return this.poolName != null; + } + + public boolean hasResourceSliceCount() { + return this.resourceSliceCount != null; + } + + public boolean hasTotalDevices() { + return this.totalDevices != null; + } + + public boolean hasUnavailableDevices() { + return this.unavailableDevices != null; + } + + public boolean hasValidationError() { + return this.validationError != null; + } + + public int hashCode() { + return Objects.hash(allocatedDevices, availableDevices, driver, generation, nodeName, poolName, resourceSliceCount, totalDevices, unavailableDevices, validationError); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocatedDevices == null)) { + sb.append("allocatedDevices:"); + sb.append(allocatedDevices); + sb.append(","); + } + if (!(availableDevices == null)) { + sb.append("availableDevices:"); + sb.append(availableDevices); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(generation == null)) { + sb.append("generation:"); + sb.append(generation); + sb.append(","); + } + if (!(nodeName == null)) { + sb.append("nodeName:"); + sb.append(nodeName); + sb.append(","); + } + if (!(poolName == null)) { + sb.append("poolName:"); + sb.append(poolName); + sb.append(","); + } + if (!(resourceSliceCount == null)) { + sb.append("resourceSliceCount:"); + sb.append(resourceSliceCount); + sb.append(","); + } + if (!(totalDevices == null)) { + sb.append("totalDevices:"); + sb.append(totalDevices); + sb.append(","); + } + if (!(unavailableDevices == null)) { + sb.append("unavailableDevices:"); + sb.append(unavailableDevices); + sb.append(","); + } + if (!(validationError == null)) { + sb.append("validationError:"); + sb.append(validationError); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllocatedDevices(Integer allocatedDevices) { + this.allocatedDevices = allocatedDevices; + return (A) this; + } + + public A withAvailableDevices(Integer availableDevices) { + this.availableDevices = availableDevices; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withGeneration(Long generation) { + this.generation = generation; + return (A) this; + } + + public A withNodeName(String nodeName) { + this.nodeName = nodeName; + return (A) this; + } + + public A withPoolName(String poolName) { + this.poolName = poolName; + return (A) this; + } + + public A withResourceSliceCount(Integer resourceSliceCount) { + this.resourceSliceCount = resourceSliceCount; + return (A) this; + } + + public A withTotalDevices(Integer totalDevices) { + this.totalDevices = totalDevices; + return (A) this; + } + + public A withUnavailableDevices(Integer unavailableDevices) { + this.unavailableDevices = unavailableDevices; + return (A) this; + } + + public A withValidationError(String validationError) { + this.validationError = validationError; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestBuilder.java new file mode 100644 index 0000000000..93152d2f69 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestBuilder.java @@ -0,0 +1,49 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha3ResourcePoolStatusRequestBuilder extends V1alpha3ResourcePoolStatusRequestFluent implements VisitableBuilder{ + + V1alpha3ResourcePoolStatusRequestFluent fluent; + + public V1alpha3ResourcePoolStatusRequestBuilder() { + this(new V1alpha3ResourcePoolStatusRequest()); + } + + public V1alpha3ResourcePoolStatusRequestBuilder(V1alpha3ResourcePoolStatusRequestFluent fluent) { + this(fluent, new V1alpha3ResourcePoolStatusRequest()); + } + + public V1alpha3ResourcePoolStatusRequestBuilder(V1alpha3ResourcePoolStatusRequest instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3ResourcePoolStatusRequestBuilder(V1alpha3ResourcePoolStatusRequestFluent fluent,V1alpha3ResourcePoolStatusRequest instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourcePoolStatusRequest build() { + V1alpha3ResourcePoolStatusRequest buildable = new V1alpha3ResourcePoolStatusRequest(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestFluent.java new file mode 100644 index 0000000000..6271083205 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestFluent.java @@ -0,0 +1,314 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourcePoolStatusRequestFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1alpha3ResourcePoolStatusRequestSpecBuilder spec; + private V1alpha3ResourcePoolStatusRequestStatusBuilder status; + + public V1alpha3ResourcePoolStatusRequestFluent() { + } + + public V1alpha3ResourcePoolStatusRequestFluent(V1alpha3ResourcePoolStatusRequest instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1alpha3ResourcePoolStatusRequestSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1alpha3ResourcePoolStatusRequestStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + protected void copyInstance(V1alpha3ResourcePoolStatusRequest instance) { + instance = instance != null ? instance : new V1alpha3ResourcePoolStatusRequest(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1alpha3ResourcePoolStatusRequestSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1alpha3ResourcePoolStatusRequestSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1alpha3ResourcePoolStatusRequestStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1alpha3ResourcePoolStatusRequestStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3ResourcePoolStatusRequestFluent that = (V1alpha3ResourcePoolStatusRequestFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1alpha3ResourcePoolStatusRequestSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1alpha3ResourcePoolStatusRequestStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1alpha3ResourcePoolStatusRequestSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1alpha3ResourcePoolStatusRequestSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1alpha3ResourcePoolStatusRequestStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1alpha3ResourcePoolStatusRequestStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1alpha3ResourcePoolStatusRequestFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1alpha3ResourcePoolStatusRequestSpecFluent> implements Nested{ + + V1alpha3ResourcePoolStatusRequestSpecBuilder builder; + + SpecNested(V1alpha3ResourcePoolStatusRequestSpec item) { + this.builder = new V1alpha3ResourcePoolStatusRequestSpecBuilder(this, item); + } + + public N and() { + return (N) V1alpha3ResourcePoolStatusRequestFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1alpha3ResourcePoolStatusRequestStatusFluent> implements Nested{ + + V1alpha3ResourcePoolStatusRequestStatusBuilder builder; + + StatusNested(V1alpha3ResourcePoolStatusRequestStatus item) { + this.builder = new V1alpha3ResourcePoolStatusRequestStatusBuilder(this, item); + } + + public N and() { + return (N) V1alpha3ResourcePoolStatusRequestFluent.this.withStatus(builder.build()); + } + + public N endStatus() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestListBuilder.java new file mode 100644 index 0000000000..1680f8c66c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestListBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha3ResourcePoolStatusRequestListBuilder extends V1alpha3ResourcePoolStatusRequestListFluent implements VisitableBuilder{ + + V1alpha3ResourcePoolStatusRequestListFluent fluent; + + public V1alpha3ResourcePoolStatusRequestListBuilder() { + this(new V1alpha3ResourcePoolStatusRequestList()); + } + + public V1alpha3ResourcePoolStatusRequestListBuilder(V1alpha3ResourcePoolStatusRequestListFluent fluent) { + this(fluent, new V1alpha3ResourcePoolStatusRequestList()); + } + + public V1alpha3ResourcePoolStatusRequestListBuilder(V1alpha3ResourcePoolStatusRequestList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3ResourcePoolStatusRequestListBuilder(V1alpha3ResourcePoolStatusRequestListFluent fluent,V1alpha3ResourcePoolStatusRequestList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourcePoolStatusRequestList build() { + V1alpha3ResourcePoolStatusRequestList buildable = new V1alpha3ResourcePoolStatusRequestList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestListFluent.java new file mode 100644 index 0000000000..a2ca532c65 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestListFluent.java @@ -0,0 +1,423 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourcePoolStatusRequestListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1alpha3ResourcePoolStatusRequestListFluent() { + } + + public V1alpha3ResourcePoolStatusRequestListFluent(V1alpha3ResourcePoolStatusRequestList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha3ResourcePoolStatusRequest item : items) { + V1alpha3ResourcePoolStatusRequestBuilder builder = new V1alpha3ResourcePoolStatusRequestBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1alpha3ResourcePoolStatusRequest item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V1alpha3ResourcePoolStatusRequest... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1alpha3ResourcePoolStatusRequest item : items) { + V1alpha3ResourcePoolStatusRequestBuilder builder = new V1alpha3ResourcePoolStatusRequestBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1alpha3ResourcePoolStatusRequest item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha3ResourcePoolStatusRequestBuilder builder = new V1alpha3ResourcePoolStatusRequestBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.add(index, builder); + } + return (A) this; + } + + public V1alpha3ResourcePoolStatusRequest buildFirstItem() { + return this.items.get(0).build(); + } + + public V1alpha3ResourcePoolStatusRequest buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1alpha3ResourcePoolStatusRequest buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1alpha3ResourcePoolStatusRequest buildMatchingItem(Predicate predicate) { + for (V1alpha3ResourcePoolStatusRequestBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1alpha3ResourcePoolStatusRequestList instance) { + instance = instance != null ? instance : new V1alpha3ResourcePoolStatusRequestList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3ResourcePoolStatusRequestListFluent that = (V1alpha3ResourcePoolStatusRequestListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1alpha3ResourcePoolStatusRequestBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha3ResourcePoolStatusRequest item : items) { + V1alpha3ResourcePoolStatusRequestBuilder builder = new V1alpha3ResourcePoolStatusRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1alpha3ResourcePoolStatusRequest... items) { + if (this.items == null) { + return (A) this; + } + for (V1alpha3ResourcePoolStatusRequest item : items) { + V1alpha3ResourcePoolStatusRequestBuilder builder = new V1alpha3ResourcePoolStatusRequestBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = this._visitables.get("items"); + while (each.hasNext()) { + V1alpha3ResourcePoolStatusRequestBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1alpha3ResourcePoolStatusRequest item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1alpha3ResourcePoolStatusRequest item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1alpha3ResourcePoolStatusRequestBuilder builder = new V1alpha3ResourcePoolStatusRequestBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1alpha3ResourcePoolStatusRequest item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1alpha3ResourcePoolStatusRequest... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1alpha3ResourcePoolStatusRequest item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1alpha3ResourcePoolStatusRequestFluent> implements Nested{ + + V1alpha3ResourcePoolStatusRequestBuilder builder; + int index; + + ItemsNested(int index,V1alpha3ResourcePoolStatusRequest item) { + this.index = index; + this.builder = new V1alpha3ResourcePoolStatusRequestBuilder(this, item); + } + + public N and() { + return (N) V1alpha3ResourcePoolStatusRequestListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1alpha3ResourcePoolStatusRequestListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpecBuilder.java new file mode 100644 index 0000000000..a424a7b574 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpecBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha3ResourcePoolStatusRequestSpecBuilder extends V1alpha3ResourcePoolStatusRequestSpecFluent implements VisitableBuilder{ + + V1alpha3ResourcePoolStatusRequestSpecFluent fluent; + + public V1alpha3ResourcePoolStatusRequestSpecBuilder() { + this(new V1alpha3ResourcePoolStatusRequestSpec()); + } + + public V1alpha3ResourcePoolStatusRequestSpecBuilder(V1alpha3ResourcePoolStatusRequestSpecFluent fluent) { + this(fluent, new V1alpha3ResourcePoolStatusRequestSpec()); + } + + public V1alpha3ResourcePoolStatusRequestSpecBuilder(V1alpha3ResourcePoolStatusRequestSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3ResourcePoolStatusRequestSpecBuilder(V1alpha3ResourcePoolStatusRequestSpecFluent fluent,V1alpha3ResourcePoolStatusRequestSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourcePoolStatusRequestSpec build() { + V1alpha3ResourcePoolStatusRequestSpec buildable = new V1alpha3ResourcePoolStatusRequestSpec(); + buildable.setDriver(fluent.getDriver()); + buildable.setLimit(fluent.getLimit()); + buildable.setPoolName(fluent.getPoolName()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpecFluent.java new file mode 100644 index 0000000000..e5f69b6a46 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpecFluent.java @@ -0,0 +1,136 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Integer; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourcePoolStatusRequestSpecFluent> extends BaseFluent{ + + private String driver; + private Integer limit; + private String poolName; + + public V1alpha3ResourcePoolStatusRequestSpecFluent() { + } + + public V1alpha3ResourcePoolStatusRequestSpecFluent(V1alpha3ResourcePoolStatusRequestSpec instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1alpha3ResourcePoolStatusRequestSpec instance) { + instance = instance != null ? instance : new V1alpha3ResourcePoolStatusRequestSpec(); + if (instance != null) { + this.withDriver(instance.getDriver()); + this.withLimit(instance.getLimit()); + this.withPoolName(instance.getPoolName()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3ResourcePoolStatusRequestSpecFluent that = (V1alpha3ResourcePoolStatusRequestSpecFluent) o; + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(limit, that.limit))) { + return false; + } + if (!(Objects.equals(poolName, that.poolName))) { + return false; + } + return true; + } + + public String getDriver() { + return this.driver; + } + + public Integer getLimit() { + return this.limit; + } + + public String getPoolName() { + return this.poolName; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasLimit() { + return this.limit != null; + } + + public boolean hasPoolName() { + return this.poolName != null; + } + + public int hashCode() { + return Objects.hash(driver, limit, poolName); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(limit == null)) { + sb.append("limit:"); + sb.append(limit); + sb.append(","); + } + if (!(poolName == null)) { + sb.append("poolName:"); + sb.append(poolName); + } + sb.append("}"); + return sb.toString(); + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withLimit(Integer limit) { + this.limit = limit; + return (A) this; + } + + public A withPoolName(String poolName) { + this.poolName = poolName; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatusBuilder.java new file mode 100644 index 0000000000..1cd09890d6 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatusBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1alpha3ResourcePoolStatusRequestStatusBuilder extends V1alpha3ResourcePoolStatusRequestStatusFluent implements VisitableBuilder{ + + V1alpha3ResourcePoolStatusRequestStatusFluent fluent; + + public V1alpha3ResourcePoolStatusRequestStatusBuilder() { + this(new V1alpha3ResourcePoolStatusRequestStatus()); + } + + public V1alpha3ResourcePoolStatusRequestStatusBuilder(V1alpha3ResourcePoolStatusRequestStatusFluent fluent) { + this(fluent, new V1alpha3ResourcePoolStatusRequestStatus()); + } + + public V1alpha3ResourcePoolStatusRequestStatusBuilder(V1alpha3ResourcePoolStatusRequestStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1alpha3ResourcePoolStatusRequestStatusBuilder(V1alpha3ResourcePoolStatusRequestStatusFluent fluent,V1alpha3ResourcePoolStatusRequestStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1alpha3ResourcePoolStatusRequestStatus build() { + V1alpha3ResourcePoolStatusRequestStatus buildable = new V1alpha3ResourcePoolStatusRequestStatus(); + buildable.setConditions(fluent.buildConditions()); + buildable.setPoolCount(fluent.getPoolCount()); + buildable.setPools(fluent.buildPools()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatusFluent.java new file mode 100644 index 0000000000..8212edf508 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatusFluent.java @@ -0,0 +1,570 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Integer; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1alpha3ResourcePoolStatusRequestStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + private Integer poolCount; + private ArrayList pools; + + public V1alpha3ResourcePoolStatusRequestStatusFluent() { + } + + public V1alpha3ResourcePoolStatusRequestStatusFluent(V1alpha3ResourcePoolStatusRequestStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A addAllToPools(Collection items) { + if (this.pools == null) { + this.pools = new ArrayList(); + } + for (V1alpha3PoolStatus item : items) { + V1alpha3PoolStatusBuilder builder = new V1alpha3PoolStatusBuilder(item); + this._visitables.get("pools").add(builder); + this.pools.add(builder); + } + return (A) this; + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public PoolsNested addNewPool() { + return new PoolsNested(-1, null); + } + + public PoolsNested addNewPoolLike(V1alpha3PoolStatus item) { + return new PoolsNested(-1, item); + } + + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); + } + return (A) this; + } + + public A addToPools(V1alpha3PoolStatus... items) { + if (this.pools == null) { + this.pools = new ArrayList(); + } + for (V1alpha3PoolStatus item : items) { + V1alpha3PoolStatusBuilder builder = new V1alpha3PoolStatusBuilder(item); + this._visitables.get("pools").add(builder); + this.pools.add(builder); + } + return (A) this; + } + + public A addToPools(int index,V1alpha3PoolStatus item) { + if (this.pools == null) { + this.pools = new ArrayList(); + } + V1alpha3PoolStatusBuilder builder = new V1alpha3PoolStatusBuilder(item); + if (index < 0 || index >= this.pools.size()) { + this._visitables.get("pools").add(builder); + this.pools.add(builder); + } else { + this._visitables.get("pools").add(builder); + this.pools.add(index, builder); + } + return (A) this; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1Condition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1alpha3PoolStatus buildFirstPool() { + return this.pools.get(0).build(); + } + + public V1Condition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1alpha3PoolStatus buildLastPool() { + return this.pools.get(pools.size() - 1).build(); + } + + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha3PoolStatus buildMatchingPool(Predicate predicate) { + for (V1alpha3PoolStatusBuilder item : pools) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1alpha3PoolStatus buildPool(int index) { + return this.pools.get(index).build(); + } + + public List buildPools() { + return this.pools != null ? build(pools) : null; + } + + protected void copyInstance(V1alpha3ResourcePoolStatusRequestStatus instance) { + instance = instance != null ? instance : new V1alpha3ResourcePoolStatusRequestStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + this.withPoolCount(instance.getPoolCount()); + this.withPools(instance.getPools()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public PoolsNested editFirstPool() { + if (pools.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "pools")); + } + return this.setNewPoolLike(0, this.buildPool(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public PoolsNested editLastPool() { + int index = pools.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "pools")); + } + return this.setNewPoolLike(index, this.buildPool(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public PoolsNested editMatchingPool(Predicate predicate) { + int index = -1; + for (int i = 0;i < pools.size();i++) { + if (predicate.test(pools.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "pools")); + } + return this.setNewPoolLike(index, this.buildPool(index)); + } + + public PoolsNested editPool(int index) { + if (pools.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "pools")); + } + return this.setNewPoolLike(index, this.buildPool(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1alpha3ResourcePoolStatusRequestStatusFluent that = (V1alpha3ResourcePoolStatusRequestStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + if (!(Objects.equals(poolCount, that.poolCount))) { + return false; + } + if (!(Objects.equals(pools, that.pools))) { + return false; + } + return true; + } + + public Integer getPoolCount() { + return this.poolCount; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingPool(Predicate predicate) { + for (V1alpha3PoolStatusBuilder item : pools) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasPoolCount() { + return this.poolCount != null; + } + + public boolean hasPools() { + return this.pools != null && !(this.pools.isEmpty()); + } + + public int hashCode() { + return Objects.hash(conditions, poolCount, pools); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeAllFromPools(Collection items) { + if (this.pools == null) { + return (A) this; + } + for (V1alpha3PoolStatus item : items) { + V1alpha3PoolStatusBuilder builder = new V1alpha3PoolStatusBuilder(item); + _visitables.get("pools").remove(builder); + this.pools.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1Condition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromPools(V1alpha3PoolStatus... items) { + if (this.pools == null) { + return (A) this; + } + for (V1alpha3PoolStatus item : items) { + V1alpha3PoolStatusBuilder builder = new V1alpha3PoolStatusBuilder(item); + _visitables.get("pools").remove(builder); + this.pools.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = this._visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public A removeMatchingFromPools(Predicate predicate) { + if (pools == null) { + return (A) this; + } + Iterator each = pools.iterator(); + List visitables = this._visitables.get("pools"); + while (each.hasNext()) { + V1alpha3PoolStatusBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public PoolsNested setNewPoolLike(int index,V1alpha3PoolStatus item) { + return new PoolsNested(index, item); + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); + } + return (A) this; + } + + public A setToPools(int index,V1alpha3PoolStatus item) { + if (this.pools == null) { + this.pools = new ArrayList(); + } + V1alpha3PoolStatusBuilder builder = new V1alpha3PoolStatusBuilder(item); + if (index < 0 || index >= this.pools.size()) { + this._visitables.get("pools").add(builder); + this.pools.add(builder); + } else { + this._visitables.get("pools").add(builder); + this.pools.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + sb.append(","); + } + if (!(poolCount == null)) { + sb.append("poolCount:"); + sb.append(poolCount); + sb.append(","); + } + if (!(pools == null) && !(pools.isEmpty())) { + sb.append("pools:"); + sb.append(pools); + } + sb.append("}"); + return sb.toString(); + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + + public A withPoolCount(Integer poolCount) { + this.poolCount = poolCount; + return (A) this; + } + + public A withPools(List pools) { + if (this.pools != null) { + this._visitables.get("pools").clear(); + } + if (pools != null) { + this.pools = new ArrayList(); + for (V1alpha3PoolStatus item : pools) { + this.addToPools(item); + } + } else { + this.pools = null; + } + return (A) this; + } + + public A withPools(V1alpha3PoolStatus... pools) { + if (this.pools != null) { + this.pools.clear(); + _visitables.remove("pools"); + } + if (pools != null) { + for (V1alpha3PoolStatus item : pools) { + this.addToPools(item); + } + } + return (A) this; + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + public N and() { + return (N) V1alpha3ResourcePoolStatusRequestStatusFluent.this.setToConditions(index, builder.build()); + } + + public N endCondition() { + return and(); + } + + } + public class PoolsNested extends V1alpha3PoolStatusFluent> implements Nested{ + + V1alpha3PoolStatusBuilder builder; + int index; + + PoolsNested(int index,V1alpha3PoolStatus item) { + this.index = index; + this.builder = new V1alpha3PoolStatusBuilder(this, item); + } + + public N and() { + return (N) V1alpha3ResourcePoolStatusRequestStatusFluent.this.setToPools(index, builder.build()); + } + + public N endPool() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java index c9620a9acf..44bdaf5347 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java index 3a3b7a63ec..8139ae7776 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -54,7 +54,7 @@ public A addAllToConditions(Collection items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -74,7 +74,7 @@ public A addToConditions(V1Condition... items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -85,12 +85,12 @@ public A addToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -310,7 +310,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -330,12 +330,12 @@ public A setToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java index 9c52779883..d3483df31e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java index 94ab1fa66f..141322dc29 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResultFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationBuilder.java index c51e3dfa5f..fde294d781 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java index 701d805c84..bf62b18a4c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java index 00fbd630ef..efa15577ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -46,6 +46,7 @@ public V1beta1BasicDevice build() { buildable.setBindsToNode(fluent.getBindsToNode()); buildable.setCapacity(fluent.getCapacity()); buildable.setConsumesCounters(fluent.buildConsumesCounters()); + buildable.setNodeAllocatableResourceMappings(fluent.getNodeAllocatableResourceMappings()); buildable.setNodeName(fluent.getNodeName()); buildable.setNodeSelector(fluent.buildNodeSelector()); buildable.setTaints(fluent.buildTaints()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java index a6d3cafb10..ce3e04fc42 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDeviceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -44,6 +44,7 @@ public class V1beta1BasicDeviceFluent capacity; private ArrayList consumesCounters; + private Map nodeAllocatableResourceMappings; private String nodeName; private V1NodeSelectorBuilder nodeSelector; private ArrayList taints; @@ -81,7 +82,7 @@ public A addAllToConsumesCounters(Collection it } for (V1beta1DeviceCounterConsumption item : items) { V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").add(builder); + this._visitables.get("consumesCounters").add(builder); this.consumesCounters.add(builder); } return (A) this; @@ -93,7 +94,7 @@ public A addAllToTaints(Collection items) { } for (V1beta1DeviceTaint item : items) { V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); - _visitables.get("taints").add(builder); + this._visitables.get("taints").add(builder); this.taints.add(builder); } return (A) this; @@ -197,7 +198,7 @@ public A addToConsumesCounters(V1beta1DeviceCounterConsumption... items) { } for (V1beta1DeviceCounterConsumption item : items) { V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").add(builder); + this._visitables.get("consumesCounters").add(builder); this.consumesCounters.add(builder); } return (A) this; @@ -208,12 +209,32 @@ public A addToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { this.consumesCounters = new ArrayList(); } V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); - if (index < 0 || index >= consumesCounters.size()) { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(builder); + if (index < 0 || index >= this.consumesCounters.size()) { + this._visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); } else { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(index, builder); + this._visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(index, builder); + } + return (A) this; + } + + public A addToNodeAllocatableResourceMappings(Map map) { + if (this.nodeAllocatableResourceMappings == null && map != null) { + this.nodeAllocatableResourceMappings = new LinkedHashMap(); + } + if (map != null) { + this.nodeAllocatableResourceMappings.putAll(map); + } + return (A) this; + } + + public A addToNodeAllocatableResourceMappings(String key,V1beta1NodeAllocatableResourceMapping value) { + if (this.nodeAllocatableResourceMappings == null && key != null && value != null) { + this.nodeAllocatableResourceMappings = new LinkedHashMap(); + } + if (key != null && value != null) { + this.nodeAllocatableResourceMappings.put(key, value); } return (A) this; } @@ -224,7 +245,7 @@ public A addToTaints(V1beta1DeviceTaint... items) { } for (V1beta1DeviceTaint item : items) { V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); - _visitables.get("taints").add(builder); + this._visitables.get("taints").add(builder); this.taints.add(builder); } return (A) this; @@ -235,12 +256,12 @@ public A addToTaints(int index,V1beta1DeviceTaint item) { this.taints = new ArrayList(); } V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); + if (index < 0 || index >= this.taints.size()) { + this._visitables.get("taints").add(builder); + this.taints.add(builder); } else { - _visitables.get("taints").add(builder); - taints.add(index, builder); + this._visitables.get("taints").add(builder); + this.taints.add(index, builder); } return (A) this; } @@ -310,6 +331,7 @@ protected void copyInstance(V1beta1BasicDevice instance) { this.withBindsToNode(instance.getBindsToNode()); this.withCapacity(instance.getCapacity()); this.withConsumesCounters(instance.getConsumesCounters()); + this.withNodeAllocatableResourceMappings(instance.getNodeAllocatableResourceMappings()); this.withNodeName(instance.getNodeName()); this.withNodeSelector(instance.getNodeSelector()); this.withTaints(instance.getTaints()); @@ -435,6 +457,9 @@ public boolean equals(Object o) { if (!(Objects.equals(consumesCounters, that.consumesCounters))) { return false; } + if (!(Objects.equals(nodeAllocatableResourceMappings, that.nodeAllocatableResourceMappings))) { + return false; + } if (!(Objects.equals(nodeName, that.nodeName))) { return false; } @@ -517,6 +542,10 @@ public String getMatchingBindingFailureCondition(Predicate predicate) { return null; } + public Map getNodeAllocatableResourceMappings() { + return this.nodeAllocatableResourceMappings; + } + public String getNodeName() { return this.nodeName; } @@ -589,6 +618,10 @@ public boolean hasMatchingTaint(Predicate predicate) return false; } + public boolean hasNodeAllocatableResourceMappings() { + return this.nodeAllocatableResourceMappings != null; + } + public boolean hasNodeName() { return this.nodeName != null; } @@ -602,7 +635,7 @@ public boolean hasTaints() { } public int hashCode() { - return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, nodeName, nodeSelector, taints); + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, nodeAllocatableResourceMappings, nodeName, nodeSelector, taints); } public A removeAllFromBindingConditions(Collection items) { @@ -729,6 +762,30 @@ public A removeFromConsumesCounters(V1beta1DeviceCounterConsumption... items) { return (A) this; } + public A removeFromNodeAllocatableResourceMappings(String key) { + if (this.nodeAllocatableResourceMappings == null) { + return (A) this; + } + if (key != null && this.nodeAllocatableResourceMappings != null) { + this.nodeAllocatableResourceMappings.remove(key); + } + return (A) this; + } + + public A removeFromNodeAllocatableResourceMappings(Map map) { + if (this.nodeAllocatableResourceMappings == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.nodeAllocatableResourceMappings != null) { + this.nodeAllocatableResourceMappings.remove(key); + } + } + } + return (A) this; + } + public A removeFromTaints(V1beta1DeviceTaint... items) { if (this.taints == null) { return (A) this; @@ -746,7 +803,7 @@ public A removeMatchingFromConsumesCounters(Predicate each = consumesCounters.iterator(); - List visitables = _visitables.get("consumesCounters"); + List visitables = this._visitables.get("consumesCounters"); while (each.hasNext()) { V1beta1DeviceCounterConsumptionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -762,7 +819,7 @@ public A removeMatchingFromTaints(Predicate predicate return (A) this; } Iterator each = taints.iterator(); - List visitables = _visitables.get("taints"); + List visitables = this._visitables.get("taints"); while (each.hasNext()) { V1beta1DeviceTaintBuilder builder = each.next(); if (predicate.test(builder)) { @@ -802,12 +859,12 @@ public A setToConsumesCounters(int index,V1beta1DeviceCounterConsumption item) { this.consumesCounters = new ArrayList(); } V1beta1DeviceCounterConsumptionBuilder builder = new V1beta1DeviceCounterConsumptionBuilder(item); - if (index < 0 || index >= consumesCounters.size()) { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(builder); + if (index < 0 || index >= this.consumesCounters.size()) { + this._visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); } else { - _visitables.get("consumesCounters").add(builder); - consumesCounters.set(index, builder); + this._visitables.get("consumesCounters").add(builder); + this.consumesCounters.set(index, builder); } return (A) this; } @@ -817,12 +874,12 @@ public A setToTaints(int index,V1beta1DeviceTaint item) { this.taints = new ArrayList(); } V1beta1DeviceTaintBuilder builder = new V1beta1DeviceTaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); + if (index < 0 || index >= this.taints.size()) { + this._visitables.get("taints").add(builder); + this.taints.add(builder); } else { - _visitables.get("taints").add(builder); - taints.set(index, builder); + this._visitables.get("taints").add(builder); + this.taints.set(index, builder); } return (A) this; } @@ -870,6 +927,11 @@ public String toString() { sb.append(consumesCounters); sb.append(","); } + if (!(nodeAllocatableResourceMappings == null) && !(nodeAllocatableResourceMappings.isEmpty())) { + sb.append("nodeAllocatableResourceMappings:"); + sb.append(nodeAllocatableResourceMappings); + sb.append(","); + } if (!(nodeName == null)) { sb.append("nodeName:"); sb.append(nodeName); @@ -1019,6 +1081,15 @@ public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { return new NodeSelectorNested(item); } + public A withNodeAllocatableResourceMappings(Map nodeAllocatableResourceMappings) { + if (nodeAllocatableResourceMappings == null) { + this.nodeAllocatableResourceMappings = null; + } else { + this.nodeAllocatableResourceMappings = new LinkedHashMap(nodeAllocatableResourceMappings); + } + return (A) this; + } + public A withNodeName(String nodeName) { this.nodeName = nodeName; return (A) this; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java index e09e458c3a..fbb71930ee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java index ec5b23f19a..848893d372 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelectorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java index 0c7489525d..15bf3f3d7b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java index e266c83895..bf6bd0d266 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -82,7 +82,6 @@ public V1beta1CapacityRequestPolicyRange buildValidRange() { protected void copyInstance(V1beta1CapacityRequestPolicy instance) { instance = instance != null ? instance : new V1beta1CapacityRequestPolicy(); if (instance != null) { - this.withDefault(instance.getDefault()); this.withValidRange(instance.getValidRange()); this.withValidValues(instance.getValidValues()); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java index e1bb8aa3b6..a755743c9d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java index 8b9375d9e2..8452345612 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRangeFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java index b3fe2b1008..b1f79fdbca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java index 0d36509fae..fd2947b390 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirementsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java index f0990e8596..138ff200a5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java index 8cfbe5b488..6c77b09f3e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java index 2cb8ed7397..1a1c5780f0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java index 41e7d0da88..c106bed2d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta1ClusterTrustBundle item : items) { V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta1ClusterTrustBundle... items) { } for (V1beta1ClusterTrustBundle item : items) { V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta1ClusterTrustBundle item) { this.items = new ArrayList(); } V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate pre return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1ClusterTrustBundleBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta1ClusterTrustBundle item) { this.items = new ArrayList(); } V1beta1ClusterTrustBundleBuilder builder = new V1beta1ClusterTrustBundleBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java index f70ee0610a..7fea77df38 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java index 5e0c55e569..3e4c048402 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java index 52c6293e53..b4b7f8ca1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java index c7f9999cce..6c416713aa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java index d44f97e772..1f695534fa 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java index 88084f1b36..6922d0f64c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSetFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java index cae2ca5651..ce65040321 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java index 287ade8361..043909f51a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java index 062730f038..b9d977f6d4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java index 8e737eb744..34dc2fe926 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResultFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,7 +48,7 @@ public A addAllToConfig(Collection items) } for (V1beta1DeviceAllocationConfiguration item : items) { V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -60,7 +60,7 @@ public A addAllToResults(Collection items) } for (V1beta1DeviceRequestAllocationResult item : items) { V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); - _visitables.get("results").add(builder); + this._visitables.get("results").add(builder); this.results.add(builder); } return (A) this; @@ -88,7 +88,7 @@ public A addToConfig(V1beta1DeviceAllocationConfiguration... items) { } for (V1beta1DeviceAllocationConfiguration item : items) { V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -99,12 +99,12 @@ public A addToConfig(int index,V1beta1DeviceAllocationConfiguration item) { this.config = new ArrayList(); } V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.add(index, builder); + this._visitables.get("config").add(builder); + this.config.add(index, builder); } return (A) this; } @@ -115,7 +115,7 @@ public A addToResults(V1beta1DeviceRequestAllocationResult... items) { } for (V1beta1DeviceRequestAllocationResult item : items) { V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); - _visitables.get("results").add(builder); + this._visitables.get("results").add(builder); this.results.add(builder); } return (A) this; @@ -126,12 +126,12 @@ public A addToResults(int index,V1beta1DeviceRequestAllocationResult item) { this.results = new ArrayList(); } V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { - _visitables.get("results").add(builder); - results.add(builder); + if (index < 0 || index >= this.results.size()) { + this._visitables.get("results").add(builder); + this.results.add(builder); } else { - _visitables.get("results").add(builder); - results.add(index, builder); + this._visitables.get("results").add(builder); + this.results.add(index, builder); } return (A) this; } @@ -369,7 +369,7 @@ public A removeMatchingFromConfig(Predicate each = config.iterator(); - List visitables = _visitables.get("config"); + List visitables = this._visitables.get("config"); while (each.hasNext()) { V1beta1DeviceAllocationConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -385,7 +385,7 @@ public A removeMatchingFromResults(Predicate each = results.iterator(); - List visitables = _visitables.get("results"); + List visitables = this._visitables.get("results"); while (each.hasNext()) { V1beta1DeviceRequestAllocationResultBuilder builder = each.next(); if (predicate.test(builder)) { @@ -409,12 +409,12 @@ public A setToConfig(int index,V1beta1DeviceAllocationConfiguration item) { this.config = new ArrayList(); } V1beta1DeviceAllocationConfigurationBuilder builder = new V1beta1DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.set(index, builder); + this._visitables.get("config").add(builder); + this.config.set(index, builder); } return (A) this; } @@ -424,12 +424,12 @@ public A setToResults(int index,V1beta1DeviceRequestAllocationResult item) { this.results = new ArrayList(); } V1beta1DeviceRequestAllocationResultBuilder builder = new V1beta1DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { - _visitables.get("results").add(builder); - results.add(builder); + if (index < 0 || index >= this.results.size()) { + this._visitables.get("results").add(builder); + this.results.add(builder); } else { - _visitables.get("results").add(builder); - results.set(index, builder); + this._visitables.get("results").add(builder); + this.results.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java index 8de63fb737..1ff8c43661 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -39,9 +39,13 @@ public V1beta1DeviceAttributeBuilder(V1beta1DeviceAttributeFluent fluent,V1be public V1beta1DeviceAttribute build() { V1beta1DeviceAttribute buildable = new V1beta1DeviceAttribute(); buildable.setBool(fluent.getBool()); + buildable.setBools(fluent.getBools()); buildable.setInt(fluent.getInt()); + buildable.setInts(fluent.getInts()); buildable.setString(fluent.getString()); + buildable.setStrings(fluent.getStrings()); buildable.setVersion(fluent.getVersion()); + buildable.setVersions(fluent.getVersions()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java index 013cfbdf94..eb2d41e17c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttributeFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -19,7 +19,11 @@ import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; import java.util.Objects; +import java.util.function.Predicate; /** * Generated @@ -29,8 +33,12 @@ public class V1beta1DeviceAttributeFluent bools; + private List ints; private String string; + private List strings; private String version; + private List versions; public V1beta1DeviceAttributeFluent() { } @@ -39,13 +47,128 @@ public V1beta1DeviceAttributeFluent(V1beta1DeviceAttribute instance) { this.copyInstance(instance); } + public A addAllToBools(Collection items) { + if (this.bools == null) { + this.bools = new ArrayList(); + } + for (Boolean item : items) { + this.bools.add(item); + } + return (A) this; + } + + public A addAllToInts(Collection items) { + if (this.ints == null) { + this.ints = new ArrayList(); + } + for (Long item : items) { + this.ints.add(item); + } + return (A) this; + } + + public A addAllToStrings(Collection items) { + if (this.strings == null) { + this.strings = new ArrayList(); + } + for (String item : items) { + this.strings.add(item); + } + return (A) this; + } + + public A addAllToVersions(Collection items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (String item : items) { + this.versions.add(item); + } + return (A) this; + } + + public A addToBools(Boolean... items) { + if (this.bools == null) { + this.bools = new ArrayList(); + } + for (Boolean item : items) { + this.bools.add(item); + } + return (A) this; + } + + public A addToBools(int index,Boolean item) { + if (this.bools == null) { + this.bools = new ArrayList(); + } + this.bools.add(index, item); + return (A) this; + } + + public A addToInts(Long... items) { + if (this.ints == null) { + this.ints = new ArrayList(); + } + for (Long item : items) { + this.ints.add(item); + } + return (A) this; + } + + public A addToInts(int index,Long item) { + if (this.ints == null) { + this.ints = new ArrayList(); + } + this.ints.add(index, item); + return (A) this; + } + + public A addToStrings(String... items) { + if (this.strings == null) { + this.strings = new ArrayList(); + } + for (String item : items) { + this.strings.add(item); + } + return (A) this; + } + + public A addToStrings(int index,String item) { + if (this.strings == null) { + this.strings = new ArrayList(); + } + this.strings.add(index, item); + return (A) this; + } + + public A addToVersions(String... items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (String item : items) { + this.versions.add(item); + } + return (A) this; + } + + public A addToVersions(int index,String item) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + this.versions.add(index, item); + return (A) this; + } + protected void copyInstance(V1beta1DeviceAttribute instance) { instance = instance != null ? instance : new V1beta1DeviceAttribute(); if (instance != null) { this.withBool(instance.getBool()); - this.withInt(instance.getInt()); + this.withBools(instance.getBools()); + this.withInts(instance.getInts()); this.withString(instance.getString()); + this.withStrings(instance.getStrings()); this.withVersion(instance.getVersion()); + this.withVersions(instance.getVersions()); } } @@ -63,15 +186,27 @@ public boolean equals(Object o) { if (!(Objects.equals(bool, that.bool))) { return false; } + if (!(Objects.equals(bools, that.bools))) { + return false; + } if (!(Objects.equals(_int, that._int))) { return false; } + if (!(Objects.equals(ints, that.ints))) { + return false; + } if (!(Objects.equals(string, that.string))) { return false; } + if (!(Objects.equals(strings, that.strings))) { + return false; + } if (!(Objects.equals(version, that.version))) { return false; } + if (!(Objects.equals(versions, that.versions))) { + return false; + } return true; } @@ -79,36 +214,300 @@ public Boolean getBool() { return this.bool; } + public Boolean getBool(int index) { + return this.bools.get(index); + } + + public List getBools() { + return this.bools; + } + + public Boolean getFirstBool() { + return this.bools.get(0); + } + + public Long getFirstInt() { + return this.ints.get(0); + } + + public String getFirstString() { + return this.strings.get(0); + } + + public String getFirstVersion() { + return this.versions.get(0); + } + public Long getInt() { return this._int; } + public Long getInt(int index) { + return this.ints.get(index); + } + + public List getInts() { + return this.ints; + } + + public Boolean getLastBool() { + return this.bools.get(bools.size() - 1); + } + + public Long getLastInt() { + return this.ints.get(ints.size() - 1); + } + + public String getLastString() { + return this.strings.get(strings.size() - 1); + } + + public String getLastVersion() { + return this.versions.get(versions.size() - 1); + } + + public Boolean getMatchingBool(Predicate predicate) { + for (Boolean item : bools) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public Long getMatchingInt(Predicate predicate) { + for (Long item : ints) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingString(Predicate predicate) { + for (String item : strings) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingVersion(Predicate predicate) { + for (String item : versions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + public String getString() { return this.string; } + public String getString(int index) { + return this.strings.get(index); + } + + public List getStrings() { + return this.strings; + } + public String getVersion() { return this.version; } + public String getVersion(int index) { + return this.versions.get(index); + } + + public List getVersions() { + return this.versions; + } + public boolean hasBool() { return this.bool != null; } + public boolean hasBools() { + return this.bools != null && !(this.bools.isEmpty()); + } + public boolean hasInt() { return this._int != null; } + public boolean hasInts() { + return this.ints != null && !(this.ints.isEmpty()); + } + + public boolean hasMatchingBool(Predicate predicate) { + for (Boolean item : bools) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingInt(Predicate predicate) { + for (Long item : ints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingString(Predicate predicate) { + for (String item : strings) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVersion(Predicate predicate) { + for (String item : versions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasString() { return this.string != null; } + public boolean hasStrings() { + return this.strings != null && !(this.strings.isEmpty()); + } + public boolean hasVersion() { return this.version != null; } + public boolean hasVersions() { + return this.versions != null && !(this.versions.isEmpty()); + } + public int hashCode() { - return Objects.hash(bool, _int, string, version); + return Objects.hash(bool, bools, _int, ints, string, strings, version, versions); + } + + public A removeAllFromBools(Collection items) { + if (this.bools == null) { + return (A) this; + } + for (Boolean item : items) { + this.bools.remove(item); + } + return (A) this; + } + + public A removeAllFromInts(Collection items) { + if (this.ints == null) { + return (A) this; + } + for (Long item : items) { + this.ints.remove(item); + } + return (A) this; + } + + public A removeAllFromStrings(Collection items) { + if (this.strings == null) { + return (A) this; + } + for (String item : items) { + this.strings.remove(item); + } + return (A) this; + } + + public A removeAllFromVersions(Collection items) { + if (this.versions == null) { + return (A) this; + } + for (String item : items) { + this.versions.remove(item); + } + return (A) this; + } + + public A removeFromBools(Boolean... items) { + if (this.bools == null) { + return (A) this; + } + for (Boolean item : items) { + this.bools.remove(item); + } + return (A) this; + } + + public A removeFromInts(Long... items) { + if (this.ints == null) { + return (A) this; + } + for (Long item : items) { + this.ints.remove(item); + } + return (A) this; + } + + public A removeFromStrings(String... items) { + if (this.strings == null) { + return (A) this; + } + for (String item : items) { + this.strings.remove(item); + } + return (A) this; + } + + public A removeFromVersions(String... items) { + if (this.versions == null) { + return (A) this; + } + for (String item : items) { + this.versions.remove(item); + } + return (A) this; + } + + public A setToBools(int index,Boolean item) { + if (this.bools == null) { + this.bools = new ArrayList(); + } + this.bools.set(index, item); + return (A) this; + } + + public A setToInts(int index,Long item) { + if (this.ints == null) { + this.ints = new ArrayList(); + } + this.ints.set(index, item); + return (A) this; + } + + public A setToStrings(int index,String item) { + if (this.strings == null) { + this.strings = new ArrayList(); + } + this.strings.set(index, item); + return (A) this; + } + + public A setToVersions(int index,String item) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + this.versions.set(index, item); + return (A) this; } public String toString() { @@ -119,19 +518,39 @@ public String toString() { sb.append(bool); sb.append(","); } + if (!(bools == null) && !(bools.isEmpty())) { + sb.append("bools:"); + sb.append(bools); + sb.append(","); + } if (!(_int == null)) { sb.append("_int:"); sb.append(_int); sb.append(","); } + if (!(ints == null) && !(ints.isEmpty())) { + sb.append("ints:"); + sb.append(ints); + sb.append(","); + } if (!(string == null)) { sb.append("string:"); sb.append(string); sb.append(","); } + if (!(strings == null) && !(strings.isEmpty())) { + sb.append("strings:"); + sb.append(strings); + sb.append(","); + } if (!(version == null)) { sb.append("version:"); sb.append(version); + sb.append(","); + } + if (!(versions == null) && !(versions.isEmpty())) { + sb.append("versions:"); + sb.append(versions); } sb.append("}"); return sb.toString(); @@ -146,19 +565,119 @@ public A withBool(Boolean bool) { return (A) this; } + public A withBools(List bools) { + if (bools != null) { + this.bools = new ArrayList(); + for (Boolean item : bools) { + this.addToBools(item); + } + } else { + this.bools = null; + } + return (A) this; + } + + public A withBools(Boolean... bools) { + if (this.bools != null) { + this.bools.clear(); + _visitables.remove("bools"); + } + if (bools != null) { + for (Boolean item : bools) { + this.addToBools(item); + } + } + return (A) this; + } + public A withInt(Long _int) { this._int = _int; return (A) this; } + public A withInts(List ints) { + if (ints != null) { + this.ints = new ArrayList(); + for (Long item : ints) { + this.addToInts(item); + } + } else { + this.ints = null; + } + return (A) this; + } + + public A withInts(Long... ints) { + if (this.ints != null) { + this.ints.clear(); + _visitables.remove("ints"); + } + if (ints != null) { + for (Long item : ints) { + this.addToInts(item); + } + } + return (A) this; + } + public A withString(String string) { this.string = string; return (A) this; } + public A withStrings(List strings) { + if (strings != null) { + this.strings = new ArrayList(); + for (String item : strings) { + this.addToStrings(item); + } + } else { + this.strings = null; + } + return (A) this; + } + + public A withStrings(String... strings) { + if (this.strings != null) { + this.strings.clear(); + _visitables.remove("strings"); + } + if (strings != null) { + for (String item : strings) { + this.addToStrings(item); + } + } + return (A) this; + } + public A withVersion(String version) { this.version = version; return (A) this; } + public A withVersions(List versions) { + if (versions != null) { + this.versions = new ArrayList(); + for (String item : versions) { + this.addToVersions(item); + } + } else { + this.versions = null; + } + return (A) this; + } + + public A withVersions(String... versions) { + if (this.versions != null) { + this.versions.clear(); + _visitables.remove("versions"); + } + if (versions != null) { + for (String item : versions) { + this.addToVersions(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java index 359bb78a94..d095103e68 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java index 4e1b7c97d0..5ab39e03f7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java index ee5665ffdd..156a842eba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacityFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java index 9efcde6fb0..8a2eb4d88f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java index a7a880b84a..a8dece7415 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java index ff96abc72d..76f9b63a5a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java index 7c6a9a0f97..51b7195fff 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ public A addAllToConfig(Collection items) { } for (V1beta1DeviceClaimConfiguration item : items) { V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -61,7 +61,7 @@ public A addAllToConstraints(Collection items) { } for (V1beta1DeviceConstraint item : items) { V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); - _visitables.get("constraints").add(builder); + this._visitables.get("constraints").add(builder); this.constraints.add(builder); } return (A) this; @@ -73,7 +73,7 @@ public A addAllToRequests(Collection items) { } for (V1beta1DeviceRequest item : items) { V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); - _visitables.get("requests").add(builder); + this._visitables.get("requests").add(builder); this.requests.add(builder); } return (A) this; @@ -109,7 +109,7 @@ public A addToConfig(V1beta1DeviceClaimConfiguration... items) { } for (V1beta1DeviceClaimConfiguration item : items) { V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -120,12 +120,12 @@ public A addToConfig(int index,V1beta1DeviceClaimConfiguration item) { this.config = new ArrayList(); } V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.add(index, builder); + this._visitables.get("config").add(builder); + this.config.add(index, builder); } return (A) this; } @@ -136,7 +136,7 @@ public A addToConstraints(V1beta1DeviceConstraint... items) { } for (V1beta1DeviceConstraint item : items) { V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); - _visitables.get("constraints").add(builder); + this._visitables.get("constraints").add(builder); this.constraints.add(builder); } return (A) this; @@ -147,12 +147,12 @@ public A addToConstraints(int index,V1beta1DeviceConstraint item) { this.constraints = new ArrayList(); } V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { - _visitables.get("constraints").add(builder); - constraints.add(builder); + if (index < 0 || index >= this.constraints.size()) { + this._visitables.get("constraints").add(builder); + this.constraints.add(builder); } else { - _visitables.get("constraints").add(builder); - constraints.add(index, builder); + this._visitables.get("constraints").add(builder); + this.constraints.add(index, builder); } return (A) this; } @@ -163,7 +163,7 @@ public A addToRequests(V1beta1DeviceRequest... items) { } for (V1beta1DeviceRequest item : items) { V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); - _visitables.get("requests").add(builder); + this._visitables.get("requests").add(builder); this.requests.add(builder); } return (A) this; @@ -174,12 +174,12 @@ public A addToRequests(int index,V1beta1DeviceRequest item) { this.requests = new ArrayList(); } V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { - _visitables.get("requests").add(builder); - requests.add(builder); + if (index < 0 || index >= this.requests.size()) { + this._visitables.get("requests").add(builder); + this.requests.add(builder); } else { - _visitables.get("requests").add(builder); - requests.add(index, builder); + this._visitables.get("requests").add(builder); + this.requests.add(index, builder); } return (A) this; } @@ -519,7 +519,7 @@ public A removeMatchingFromConfig(Predicate each = config.iterator(); - List visitables = _visitables.get("config"); + List visitables = this._visitables.get("config"); while (each.hasNext()) { V1beta1DeviceClaimConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -535,7 +535,7 @@ public A removeMatchingFromConstraints(Predicate return (A) this; } Iterator each = constraints.iterator(); - List visitables = _visitables.get("constraints"); + List visitables = this._visitables.get("constraints"); while (each.hasNext()) { V1beta1DeviceConstraintBuilder builder = each.next(); if (predicate.test(builder)) { @@ -551,7 +551,7 @@ public A removeMatchingFromRequests(Predicate predi return (A) this; } Iterator each = requests.iterator(); - List visitables = _visitables.get("requests"); + List visitables = this._visitables.get("requests"); while (each.hasNext()) { V1beta1DeviceRequestBuilder builder = each.next(); if (predicate.test(builder)) { @@ -579,12 +579,12 @@ public A setToConfig(int index,V1beta1DeviceClaimConfiguration item) { this.config = new ArrayList(); } V1beta1DeviceClaimConfigurationBuilder builder = new V1beta1DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.set(index, builder); + this._visitables.get("config").add(builder); + this.config.set(index, builder); } return (A) this; } @@ -594,12 +594,12 @@ public A setToConstraints(int index,V1beta1DeviceConstraint item) { this.constraints = new ArrayList(); } V1beta1DeviceConstraintBuilder builder = new V1beta1DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { - _visitables.get("constraints").add(builder); - constraints.add(builder); + if (index < 0 || index >= this.constraints.size()) { + this._visitables.get("constraints").add(builder); + this.constraints.add(builder); } else { - _visitables.get("constraints").add(builder); - constraints.set(index, builder); + this._visitables.get("constraints").add(builder); + this.constraints.set(index, builder); } return (A) this; } @@ -609,12 +609,12 @@ public A setToRequests(int index,V1beta1DeviceRequest item) { this.requests = new ArrayList(); } V1beta1DeviceRequestBuilder builder = new V1beta1DeviceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { - _visitables.get("requests").add(builder); - requests.add(builder); + if (index < 0 || index >= this.requests.size()) { + this._visitables.get("requests").add(builder); + this.requests.add(builder); } else { - _visitables.get("requests").add(builder); - requests.set(index, builder); + this._visitables.get("requests").add(builder); + this.requests.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java index beccdbf894..2acd6b23d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java index a498a2d7fd..9ac8c880d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java index 2345f72884..d162b2f0b0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java index 4cf3246534..aa86c41948 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java index 18ef3778c2..96b67b06f9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java index 28bc45714e..d97c137c85 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta1DeviceClass item : items) { V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta1DeviceClass... items) { } for (V1beta1DeviceClass item : items) { V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta1DeviceClass item) { this.items = new ArrayList(); } V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1DeviceClassBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta1DeviceClass item) { this.items = new ArrayList(); } V1beta1DeviceClassBuilder builder = new V1beta1DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java index f596192b09..52fd6d5c3b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java index 3ac3bf66f7..aa31bcb34c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ public A addAllToConfig(Collection items) { } for (V1beta1DeviceClassConfiguration item : items) { V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -61,7 +61,7 @@ public A addAllToSelectors(Collection items) { } for (V1beta1DeviceSelector item : items) { V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -89,7 +89,7 @@ public A addToConfig(V1beta1DeviceClassConfiguration... items) { } for (V1beta1DeviceClassConfiguration item : items) { V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -100,12 +100,12 @@ public A addToConfig(int index,V1beta1DeviceClassConfiguration item) { this.config = new ArrayList(); } V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.add(index, builder); + this._visitables.get("config").add(builder); + this.config.add(index, builder); } return (A) this; } @@ -116,7 +116,7 @@ public A addToSelectors(V1beta1DeviceSelector... items) { } for (V1beta1DeviceSelector item : items) { V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -127,12 +127,12 @@ public A addToSelectors(int index,V1beta1DeviceSelector item) { this.selectors = new ArrayList(); } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.add(index, builder); } return (A) this; } @@ -382,7 +382,7 @@ public A removeMatchingFromConfig(Predicate each = config.iterator(); - List visitables = _visitables.get("config"); + List visitables = this._visitables.get("config"); while (each.hasNext()) { V1beta1DeviceClassConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -398,7 +398,7 @@ public A removeMatchingFromSelectors(Predicate pre return (A) this; } Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); + List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1beta1DeviceSelectorBuilder builder = each.next(); if (predicate.test(builder)) { @@ -422,12 +422,12 @@ public A setToConfig(int index,V1beta1DeviceClassConfiguration item) { this.config = new ArrayList(); } V1beta1DeviceClassConfigurationBuilder builder = new V1beta1DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.set(index, builder); + this._visitables.get("config").add(builder); + this.config.set(index, builder); } return (A) this; } @@ -437,12 +437,12 @@ public A setToSelectors(int index,V1beta1DeviceSelector item) { this.selectors = new ArrayList(); } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java index a8f0d67046..5a7d82e108 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java index 6290039521..ec9a102c2c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraintFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java index 55b3f8856f..1fbdb9a64c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java index 90b6865e6a..5c6579b878 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumptionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java index df722ffcbb..8325f7d997 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java index 4a15fd13ba..8e81870f03 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java index 8781b1ade6..34c7c4672a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResultFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -80,7 +80,7 @@ public A addAllToTolerations(Collection items) { } for (V1beta1DeviceToleration item : items) { V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -156,7 +156,7 @@ public A addToTolerations(V1beta1DeviceToleration... items) { } for (V1beta1DeviceToleration item : items) { V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -167,12 +167,12 @@ public A addToTolerations(int index,V1beta1DeviceToleration item) { this.tolerations = new ArrayList(); } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.add(index, builder); } return (A) this; } @@ -540,7 +540,7 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); + List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1beta1DeviceTolerationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -576,12 +576,12 @@ public A setToTolerations(int index,V1beta1DeviceToleration item) { this.tolerations = new ArrayList(); } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java index 610b0cbbef..3d50e155fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java index 1cd87ffa6d..85cbb2d5d0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -58,7 +58,7 @@ public A addAllToFirstAvailable(Collection items) { } for (V1beta1DeviceSubRequest item : items) { V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); - _visitables.get("firstAvailable").add(builder); + this._visitables.get("firstAvailable").add(builder); this.firstAvailable.add(builder); } return (A) this; @@ -70,7 +70,7 @@ public A addAllToSelectors(Collection items) { } for (V1beta1DeviceSelector item : items) { V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -82,7 +82,7 @@ public A addAllToTolerations(Collection items) { } for (V1beta1DeviceToleration item : items) { V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -118,7 +118,7 @@ public A addToFirstAvailable(V1beta1DeviceSubRequest... items) { } for (V1beta1DeviceSubRequest item : items) { V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); - _visitables.get("firstAvailable").add(builder); + this._visitables.get("firstAvailable").add(builder); this.firstAvailable.add(builder); } return (A) this; @@ -129,12 +129,12 @@ public A addToFirstAvailable(int index,V1beta1DeviceSubRequest item) { this.firstAvailable = new ArrayList(); } V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); - if (index < 0 || index >= firstAvailable.size()) { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(builder); + if (index < 0 || index >= this.firstAvailable.size()) { + this._visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(builder); } else { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(index, builder); + this._visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(index, builder); } return (A) this; } @@ -145,7 +145,7 @@ public A addToSelectors(V1beta1DeviceSelector... items) { } for (V1beta1DeviceSelector item : items) { V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -156,12 +156,12 @@ public A addToSelectors(int index,V1beta1DeviceSelector item) { this.selectors = new ArrayList(); } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.add(index, builder); } return (A) this; } @@ -172,7 +172,7 @@ public A addToTolerations(V1beta1DeviceToleration... items) { } for (V1beta1DeviceToleration item : items) { V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -183,12 +183,12 @@ public A addToTolerations(int index,V1beta1DeviceToleration item) { this.tolerations = new ArrayList(); } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.add(index, builder); } return (A) this; } @@ -612,7 +612,7 @@ public A removeMatchingFromFirstAvailable(Predicate each = firstAvailable.iterator(); - List visitables = _visitables.get("firstAvailable"); + List visitables = this._visitables.get("firstAvailable"); while (each.hasNext()) { V1beta1DeviceSubRequestBuilder builder = each.next(); if (predicate.test(builder)) { @@ -628,7 +628,7 @@ public A removeMatchingFromSelectors(Predicate pre return (A) this; } Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); + List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1beta1DeviceSelectorBuilder builder = each.next(); if (predicate.test(builder)) { @@ -644,7 +644,7 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); + List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1beta1DeviceTolerationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -672,12 +672,12 @@ public A setToFirstAvailable(int index,V1beta1DeviceSubRequest item) { this.firstAvailable = new ArrayList(); } V1beta1DeviceSubRequestBuilder builder = new V1beta1DeviceSubRequestBuilder(item); - if (index < 0 || index >= firstAvailable.size()) { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(builder); + if (index < 0 || index >= this.firstAvailable.size()) { + this._visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(builder); } else { - _visitables.get("firstAvailable").add(builder); - firstAvailable.set(index, builder); + this._visitables.get("firstAvailable").add(builder); + this.firstAvailable.set(index, builder); } return (A) this; } @@ -687,12 +687,12 @@ public A setToSelectors(int index,V1beta1DeviceSelector item) { this.selectors = new ArrayList(); } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.set(index, builder); } return (A) this; } @@ -702,12 +702,12 @@ public A setToTolerations(int index,V1beta1DeviceToleration item) { this.tolerations = new ArrayList(); } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java index e83c744b95..6755f4198f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java index 961d46233a..cc7ec9430a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelectorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java index 2dea4484c5..6bb95ce373 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java index 584b3f3dd9..692d939e2c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequestFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -55,7 +55,7 @@ public A addAllToSelectors(Collection items) { } for (V1beta1DeviceSelector item : items) { V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addAllToTolerations(Collection items) { } for (V1beta1DeviceToleration item : items) { V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -95,7 +95,7 @@ public A addToSelectors(V1beta1DeviceSelector... items) { } for (V1beta1DeviceSelector item : items) { V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -106,12 +106,12 @@ public A addToSelectors(int index,V1beta1DeviceSelector item) { this.selectors = new ArrayList(); } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.add(index, builder); } return (A) this; } @@ -122,7 +122,7 @@ public A addToTolerations(V1beta1DeviceToleration... items) { } for (V1beta1DeviceToleration item : items) { V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -133,12 +133,12 @@ public A addToTolerations(int index,V1beta1DeviceToleration item) { this.tolerations = new ArrayList(); } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.add(index, builder); } return (A) this; } @@ -448,7 +448,7 @@ public A removeMatchingFromSelectors(Predicate pre return (A) this; } Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); + List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1beta1DeviceSelectorBuilder builder = each.next(); if (predicate.test(builder)) { @@ -464,7 +464,7 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); + List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1beta1DeviceTolerationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -488,12 +488,12 @@ public A setToSelectors(int index,V1beta1DeviceSelector item) { this.selectors = new ArrayList(); } V1beta1DeviceSelectorBuilder builder = new V1beta1DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.set(index, builder); } return (A) this; } @@ -503,12 +503,12 @@ public A setToTolerations(int index,V1beta1DeviceToleration item) { this.tolerations = new ArrayList(); } V1beta1DeviceTolerationBuilder builder = new V1beta1DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java index 2489264f03..0fc74f1981 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java index 3c6659ab82..b2fcc43090 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaintFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java index 89bec10c9c..62b9633b95 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java index 2fea17303c..60fb6f4c04 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTolerationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java index 92181273be..0c120d9719 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java index fc397d9ed0..4228f2c92f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java index 50427eef9b..d9834dc286 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java index e80aa0daa1..12e84eb62b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta1IPAddress item : items) { V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta1IPAddress... items) { } for (V1beta1IPAddress item : items) { V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta1IPAddress item) { this.items = new ArrayList(); } V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) { return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1IPAddressBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta1IPAddress item) { this.items = new ArrayList(); } V1beta1IPAddressBuilder builder = new V1beta1IPAddressBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java index 040809b49f..0252d36b23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java index 7a90841daa..03607132ec 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchBuilder.java index 560babdb7b..629aaf8915 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java index a2978c2eba..7b2b9f9dd5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatchFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java index 00c08859b0..e2a248309a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java index a0fb9b3ff1..4bd0728b3a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java index 0717a6d092..34561fb608 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java index 3fba581c66..e7cafb06a2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta1LeaseCandidate item : items) { V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta1LeaseCandidate... items) { } for (V1beta1LeaseCandidate item : items) { V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta1LeaseCandidate item) { this.items = new ArrayList(); } V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predica return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1LeaseCandidateBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta1LeaseCandidate item) { this.items = new ArrayList(); } V1beta1LeaseCandidateBuilder builder = new V1beta1LeaseCandidateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java index 3f013e3d1d..74b4d63940 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java index 2208866bf6..229ba2d341 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java index 020be96b8e..594f5deffd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java index 756909d894..09dc6f7292 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java index f3d243de9d..b8174ad529 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java index bdfc9e387d..4a94fe2b1d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResourcesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -52,7 +52,7 @@ public A addAllToExcludeResourceRules(Collection } for (V1beta1NamedRuleWithOperations item : items) { V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - _visitables.get("excludeResourceRules").add(builder); + this._visitables.get("excludeResourceRules").add(builder); this.excludeResourceRules.add(builder); } return (A) this; @@ -64,7 +64,7 @@ public A addAllToResourceRules(Collection items) } for (V1beta1NamedRuleWithOperations item : items) { V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - _visitables.get("resourceRules").add(builder); + this._visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } return (A) this; @@ -92,7 +92,7 @@ public A addToExcludeResourceRules(V1beta1NamedRuleWithOperations... items) { } for (V1beta1NamedRuleWithOperations item : items) { V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - _visitables.get("excludeResourceRules").add(builder); + this._visitables.get("excludeResourceRules").add(builder); this.excludeResourceRules.add(builder); } return (A) this; @@ -103,12 +103,12 @@ public A addToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item this.excludeResourceRules = new ArrayList(); } V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(builder); + if (index < 0 || index >= this.excludeResourceRules.size()) { + this._visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); } else { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(index, builder); + this._visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(index, builder); } return (A) this; } @@ -119,7 +119,7 @@ public A addToResourceRules(V1beta1NamedRuleWithOperations... items) { } for (V1beta1NamedRuleWithOperations item : items) { V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - _visitables.get("resourceRules").add(builder); + this._visitables.get("resourceRules").add(builder); this.resourceRules.add(builder); } return (A) this; @@ -130,12 +130,12 @@ public A addToResourceRules(int index,V1beta1NamedRuleWithOperations item) { this.resourceRules = new ArrayList(); } V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); + if (index < 0 || index >= this.resourceRules.size()) { + this._visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } else { - _visitables.get("resourceRules").add(builder); - resourceRules.add(index, builder); + this._visitables.get("resourceRules").add(builder); + this.resourceRules.add(index, builder); } return (A) this; } @@ -433,7 +433,7 @@ public A removeMatchingFromExcludeResourceRules(Predicate each = excludeResourceRules.iterator(); - List visitables = _visitables.get("excludeResourceRules"); + List visitables = this._visitables.get("excludeResourceRules"); while (each.hasNext()) { V1beta1NamedRuleWithOperationsBuilder builder = each.next(); if (predicate.test(builder)) { @@ -449,7 +449,7 @@ public A removeMatchingFromResourceRules(Predicate each = resourceRules.iterator(); - List visitables = _visitables.get("resourceRules"); + List visitables = this._visitables.get("resourceRules"); while (each.hasNext()) { V1beta1NamedRuleWithOperationsBuilder builder = each.next(); if (predicate.test(builder)) { @@ -473,12 +473,12 @@ public A setToExcludeResourceRules(int index,V1beta1NamedRuleWithOperations item this.excludeResourceRules = new ArrayList(); } V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= excludeResourceRules.size()) { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.add(builder); + if (index < 0 || index >= this.excludeResourceRules.size()) { + this._visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.add(builder); } else { - _visitables.get("excludeResourceRules").add(builder); - excludeResourceRules.set(index, builder); + this._visitables.get("excludeResourceRules").add(builder); + this.excludeResourceRules.set(index, builder); } return (A) this; } @@ -488,12 +488,12 @@ public A setToResourceRules(int index,V1beta1NamedRuleWithOperations item) { this.resourceRules = new ArrayList(); } V1beta1NamedRuleWithOperationsBuilder builder = new V1beta1NamedRuleWithOperationsBuilder(item); - if (index < 0 || index >= resourceRules.size()) { - _visitables.get("resourceRules").add(builder); - resourceRules.add(builder); + if (index < 0 || index >= this.resourceRules.size()) { + this._visitables.get("resourceRules").add(builder); + this.resourceRules.add(builder); } else { - _visitables.get("resourceRules").add(builder); - resourceRules.set(index, builder); + this._visitables.get("resourceRules").add(builder); + this.resourceRules.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingBuilder.java index 2bf107a3de..ecd78357e8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java index 31b2c9a397..d87342a1b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java index da495ae88e..649521692b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java index 1c236e6733..f54dba0d8a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) } for (V1beta1MutatingAdmissionPolicyBinding item : items) { V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta1MutatingAdmissionPolicyBinding... items) { } for (V1beta1MutatingAdmissionPolicyBinding item : items) { V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta1MutatingAdmissionPolicyBinding item) { this.items = new ArrayList(); } V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1MutatingAdmissionPolicyBindingBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta1MutatingAdmissionPolicyBinding item) { this.items = new ArrayList(); } V1beta1MutatingAdmissionPolicyBindingBuilder builder = new V1beta1MutatingAdmissionPolicyBindingBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java index 44714455d8..bb5890f2f4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java index 3a733c2ea9..8ed45e3f0a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBuilder.java index e96ba20566..ef6eb00a12 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java index 75d46eadd9..7b5de64c61 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListBuilder.java index cddffbdead..ed74e2e78f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java index dbb1ddcf77..e1661ca0ba 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta1MutatingAdmissionPolicy item : items) { V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta1MutatingAdmissionPolicy... items) { } for (V1beta1MutatingAdmissionPolicy item : items) { V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta1MutatingAdmissionPolicy item) { this.items = new ArrayList(); } V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1MutatingAdmissionPolicyBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta1MutatingAdmissionPolicy item) { this.items = new ArrayList(); } V1beta1MutatingAdmissionPolicyBuilder builder = new V1beta1MutatingAdmissionPolicyBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java index 7863acae43..2dfbd93d66 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecFluent.java index 3c0e5481a5..2e9ea40028 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -54,7 +54,7 @@ public A addAllToMatchConditions(Collection items) { } for (V1beta1MatchCondition item : items) { V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); + this._visitables.get("matchConditions").add(builder); this.matchConditions.add(builder); } return (A) this; @@ -66,7 +66,7 @@ public A addAllToMutations(Collection items) { } for (V1beta1Mutation item : items) { V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); - _visitables.get("mutations").add(builder); + this._visitables.get("mutations").add(builder); this.mutations.add(builder); } return (A) this; @@ -78,7 +78,7 @@ public A addAllToVariables(Collection items) { } for (V1beta1Variable item : items) { V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); - _visitables.get("variables").add(builder); + this._visitables.get("variables").add(builder); this.variables.add(builder); } return (A) this; @@ -114,7 +114,7 @@ public A addToMatchConditions(V1beta1MatchCondition... items) { } for (V1beta1MatchCondition item : items) { V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); - _visitables.get("matchConditions").add(builder); + this._visitables.get("matchConditions").add(builder); this.matchConditions.add(builder); } return (A) this; @@ -125,12 +125,12 @@ public A addToMatchConditions(int index,V1beta1MatchCondition item) { this.matchConditions = new ArrayList(); } V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); + if (index < 0 || index >= this.matchConditions.size()) { + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); } else { - _visitables.get("matchConditions").add(builder); - matchConditions.add(index, builder); + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(index, builder); } return (A) this; } @@ -141,7 +141,7 @@ public A addToMutations(V1beta1Mutation... items) { } for (V1beta1Mutation item : items) { V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); - _visitables.get("mutations").add(builder); + this._visitables.get("mutations").add(builder); this.mutations.add(builder); } return (A) this; @@ -152,12 +152,12 @@ public A addToMutations(int index,V1beta1Mutation item) { this.mutations = new ArrayList(); } V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); - if (index < 0 || index >= mutations.size()) { - _visitables.get("mutations").add(builder); - mutations.add(builder); + if (index < 0 || index >= this.mutations.size()) { + this._visitables.get("mutations").add(builder); + this.mutations.add(builder); } else { - _visitables.get("mutations").add(builder); - mutations.add(index, builder); + this._visitables.get("mutations").add(builder); + this.mutations.add(index, builder); } return (A) this; } @@ -168,7 +168,7 @@ public A addToVariables(V1beta1Variable... items) { } for (V1beta1Variable item : items) { V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); - _visitables.get("variables").add(builder); + this._visitables.get("variables").add(builder); this.variables.add(builder); } return (A) this; @@ -179,12 +179,12 @@ public A addToVariables(int index,V1beta1Variable item) { this.variables = new ArrayList(); } V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { - _visitables.get("variables").add(builder); - variables.add(builder); + if (index < 0 || index >= this.variables.size()) { + this._visitables.get("variables").add(builder); + this.variables.add(builder); } else { - _visitables.get("variables").add(builder); - variables.add(index, builder); + this._visitables.get("variables").add(builder); + this.variables.add(index, builder); } return (A) this; } @@ -596,7 +596,7 @@ public A removeMatchingFromMatchConditions(Predicate each = matchConditions.iterator(); - List visitables = _visitables.get("matchConditions"); + List visitables = this._visitables.get("matchConditions"); while (each.hasNext()) { V1beta1MatchConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -612,7 +612,7 @@ public A removeMatchingFromMutations(Predicate predicate return (A) this; } Iterator each = mutations.iterator(); - List visitables = _visitables.get("mutations"); + List visitables = this._visitables.get("mutations"); while (each.hasNext()) { V1beta1MutationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -628,7 +628,7 @@ public A removeMatchingFromVariables(Predicate predicate return (A) this; } Iterator each = variables.iterator(); - List visitables = _visitables.get("variables"); + List visitables = this._visitables.get("variables"); while (each.hasNext()) { V1beta1VariableBuilder builder = each.next(); if (predicate.test(builder)) { @@ -656,12 +656,12 @@ public A setToMatchConditions(int index,V1beta1MatchCondition item) { this.matchConditions = new ArrayList(); } V1beta1MatchConditionBuilder builder = new V1beta1MatchConditionBuilder(item); - if (index < 0 || index >= matchConditions.size()) { - _visitables.get("matchConditions").add(builder); - matchConditions.add(builder); + if (index < 0 || index >= this.matchConditions.size()) { + this._visitables.get("matchConditions").add(builder); + this.matchConditions.add(builder); } else { - _visitables.get("matchConditions").add(builder); - matchConditions.set(index, builder); + this._visitables.get("matchConditions").add(builder); + this.matchConditions.set(index, builder); } return (A) this; } @@ -671,12 +671,12 @@ public A setToMutations(int index,V1beta1Mutation item) { this.mutations = new ArrayList(); } V1beta1MutationBuilder builder = new V1beta1MutationBuilder(item); - if (index < 0 || index >= mutations.size()) { - _visitables.get("mutations").add(builder); - mutations.add(builder); + if (index < 0 || index >= this.mutations.size()) { + this._visitables.get("mutations").add(builder); + this.mutations.add(builder); } else { - _visitables.get("mutations").add(builder); - mutations.set(index, builder); + this._visitables.get("mutations").add(builder); + this.mutations.set(index, builder); } return (A) this; } @@ -686,12 +686,12 @@ public A setToVariables(int index,V1beta1Variable item) { this.variables = new ArrayList(); } V1beta1VariableBuilder builder = new V1beta1VariableBuilder(item); - if (index < 0 || index >= variables.size()) { - _visitables.get("variables").add(builder); - variables.add(builder); + if (index < 0 || index >= this.variables.size()) { + this._visitables.get("variables").add(builder); + this.variables.add(builder); } else { - _visitables.get("variables").add(builder); - variables.set(index, builder); + this._visitables.get("variables").add(builder); + this.variables.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationBuilder.java index 47fe094a17..c198bd298f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationFluent.java index 33a6404ea3..52eb2b6e26 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsBuilder.java index c1a63d6988..a2514fff5a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java index 85cd63984d..94233904ce 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperationsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java index 8818e7b845..bcfd4e8a17 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java index 6154693711..6c2b66c9d7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceDataFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMappingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMappingBuilder.java new file mode 100644 index 0000000000..81557db179 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMappingBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta1NodeAllocatableResourceMappingBuilder extends V1beta1NodeAllocatableResourceMappingFluent implements VisitableBuilder{ + + V1beta1NodeAllocatableResourceMappingFluent fluent; + + public V1beta1NodeAllocatableResourceMappingBuilder() { + this(new V1beta1NodeAllocatableResourceMapping()); + } + + public V1beta1NodeAllocatableResourceMappingBuilder(V1beta1NodeAllocatableResourceMappingFluent fluent) { + this(fluent, new V1beta1NodeAllocatableResourceMapping()); + } + + public V1beta1NodeAllocatableResourceMappingBuilder(V1beta1NodeAllocatableResourceMapping instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta1NodeAllocatableResourceMappingBuilder(V1beta1NodeAllocatableResourceMappingFluent fluent,V1beta1NodeAllocatableResourceMapping instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta1NodeAllocatableResourceMapping build() { + V1beta1NodeAllocatableResourceMapping buildable = new V1beta1NodeAllocatableResourceMapping(); + buildable.setAllocationMultiplier(fluent.getAllocationMultiplier()); + buildable.setCapacityKey(fluent.getCapacityKey()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMappingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMappingFluent.java new file mode 100644 index 0000000000..09163ee1f4 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMappingFluent.java @@ -0,0 +1,117 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta1NodeAllocatableResourceMappingFluent> extends BaseFluent{ + + private Quantity allocationMultiplier; + private String capacityKey; + + public V1beta1NodeAllocatableResourceMappingFluent() { + } + + public V1beta1NodeAllocatableResourceMappingFluent(V1beta1NodeAllocatableResourceMapping instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta1NodeAllocatableResourceMapping instance) { + instance = instance != null ? instance : new V1beta1NodeAllocatableResourceMapping(); + if (instance != null) { + this.withAllocationMultiplier(instance.getAllocationMultiplier()); + this.withCapacityKey(instance.getCapacityKey()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta1NodeAllocatableResourceMappingFluent that = (V1beta1NodeAllocatableResourceMappingFluent) o; + if (!(Objects.equals(allocationMultiplier, that.allocationMultiplier))) { + return false; + } + if (!(Objects.equals(capacityKey, that.capacityKey))) { + return false; + } + return true; + } + + public Quantity getAllocationMultiplier() { + return this.allocationMultiplier; + } + + public String getCapacityKey() { + return this.capacityKey; + } + + public boolean hasAllocationMultiplier() { + return this.allocationMultiplier != null; + } + + public boolean hasCapacityKey() { + return this.capacityKey != null; + } + + public int hashCode() { + return Objects.hash(allocationMultiplier, capacityKey); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocationMultiplier == null)) { + sb.append("allocationMultiplier:"); + sb.append(allocationMultiplier); + sb.append(","); + } + if (!(capacityKey == null)) { + sb.append("capacityKey:"); + sb.append(capacityKey); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllocationMultiplier(Quantity allocationMultiplier) { + this.allocationMultiplier = allocationMultiplier; + return (A) this; + } + + public A withCapacityKey(String capacityKey) { + this.capacityKey = capacityKey; + return (A) this; + } + + public A withNewAllocationMultiplier(String value) { + return (A) this.withAllocationMultiplier(new Quantity(value)); + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java index 0d9416bd11..01c2dca7ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java index 181c53b953..043d0690ea 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java index 40e77952c1..602413a8c2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java index 6e40281082..65140ec99d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKindFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java index dd2eaa8aa7..650e38475e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java index e08c5483b4..127e7f7a0c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRefFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java index 4cd4947978..3379c87f45 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java index 582fdddd0a..d48bc7baef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestBuilder.java index e4db347347..c01c3f7691 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestFluent.java index 6e83f660d6..b1e69c80d9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListBuilder.java index 67fe1bcffc..c55e77e229 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListFluent.java index 0581049c43..7e4dd667c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta1PodCertificateRequest item : items) { V1beta1PodCertificateRequestBuilder builder = new V1beta1PodCertificateRequestBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta1PodCertificateRequest... items) { } for (V1beta1PodCertificateRequest item : items) { V1beta1PodCertificateRequestBuilder builder = new V1beta1PodCertificateRequestBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta1PodCertificateRequest item) { this.items = new ArrayList(); } V1beta1PodCertificateRequestBuilder builder = new V1beta1PodCertificateRequestBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1PodCertificateRequestBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta1PodCertificateRequest item) { this.items = new ArrayList(); } V1beta1PodCertificateRequestBuilder builder = new V1beta1PodCertificateRequestBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecBuilder.java index 14db2c38ae..4d0f76aa73 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,6 +48,7 @@ public V1beta1PodCertificateRequestSpec build() { buildable.setServiceAccountName(fluent.getServiceAccountName()); buildable.setServiceAccountUID(fluent.getServiceAccountUID()); buildable.setSignerName(fluent.getSignerName()); + buildable.setStubPKCS10Request(fluent.getStubPKCS10Request()); buildable.setUnverifiedUserAnnotations(fluent.getUnverifiedUserAnnotations()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecFluent.java index 56a7956a65..cb07eca54f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -42,6 +42,7 @@ public class V1beta1PodCertificateRequestSpecFluent stubPKCS10Request; private Map unverifiedUserAnnotations; public V1beta1PodCertificateRequestSpecFluent() { @@ -71,6 +72,16 @@ public A addAllToProofOfPossession(Collection items) { return (A) this; } + public A addAllToStubPKCS10Request(Collection items) { + if (this.stubPKCS10Request == null) { + this.stubPKCS10Request = new ArrayList(); + } + for (Byte item : items) { + this.stubPKCS10Request.add(item); + } + return (A) this; + } + public A addToPkixPublicKey(Byte... items) { if (this.pkixPublicKey == null) { this.pkixPublicKey = new ArrayList(); @@ -107,6 +118,24 @@ public A addToProofOfPossession(int index,Byte item) { return (A) this; } + public A addToStubPKCS10Request(Byte... items) { + if (this.stubPKCS10Request == null) { + this.stubPKCS10Request = new ArrayList(); + } + for (Byte item : items) { + this.stubPKCS10Request.add(item); + } + return (A) this; + } + + public A addToStubPKCS10Request(int index,Byte item) { + if (this.stubPKCS10Request == null) { + this.stubPKCS10Request = new ArrayList(); + } + this.stubPKCS10Request.add(index, item); + return (A) this; + } + public A addToUnverifiedUserAnnotations(Map map) { if (this.unverifiedUserAnnotations == null && map != null) { this.unverifiedUserAnnotations = new LinkedHashMap(); @@ -140,6 +169,7 @@ protected void copyInstance(V1beta1PodCertificateRequestSpec instance) { this.withServiceAccountName(instance.getServiceAccountName()); this.withServiceAccountUID(instance.getServiceAccountUID()); this.withSignerName(instance.getSignerName()); + this.withStubPKCS10Request(instance.getStubPKCS10Request()); this.withUnverifiedUserAnnotations(instance.getUnverifiedUserAnnotations()); } } @@ -185,6 +215,9 @@ public boolean equals(Object o) { if (!(Objects.equals(signerName, that.signerName))) { return false; } + if (!(Objects.equals(stubPKCS10Request, that.stubPKCS10Request))) { + return false; + } if (!(Objects.equals(unverifiedUserAnnotations, that.unverifiedUserAnnotations))) { return false; } @@ -249,6 +282,19 @@ public String getSignerName() { return this.signerName; } + public byte[] getStubPKCS10Request() { + int size = stubPKCS10Request != null ? stubPKCS10Request.size() : 0; + byte[] result = new byte[size]; + if (size == 0) { + return result; + } + int index = 0; + for (byte item : stubPKCS10Request) { + result[index++] = item; + } + return result; + } + public Map getUnverifiedUserAnnotations() { return this.unverifiedUserAnnotations; } @@ -293,12 +339,16 @@ public boolean hasSignerName() { return this.signerName != null; } + public boolean hasStubPKCS10Request() { + return this.stubPKCS10Request != null && !(this.stubPKCS10Request.isEmpty()); + } + public boolean hasUnverifiedUserAnnotations() { return this.unverifiedUserAnnotations != null; } public int hashCode() { - return Objects.hash(maxExpirationSeconds, nodeName, nodeUID, pkixPublicKey, podName, podUID, proofOfPossession, serviceAccountName, serviceAccountUID, signerName, unverifiedUserAnnotations); + return Objects.hash(maxExpirationSeconds, nodeName, nodeUID, pkixPublicKey, podName, podUID, proofOfPossession, serviceAccountName, serviceAccountUID, signerName, stubPKCS10Request, unverifiedUserAnnotations); } public A removeAllFromPkixPublicKey(Collection items) { @@ -321,6 +371,16 @@ public A removeAllFromProofOfPossession(Collection items) { return (A) this; } + public A removeAllFromStubPKCS10Request(Collection items) { + if (this.stubPKCS10Request == null) { + return (A) this; + } + for (Byte item : items) { + this.stubPKCS10Request.remove(item); + } + return (A) this; + } + public A removeFromPkixPublicKey(Byte... items) { if (this.pkixPublicKey == null) { return (A) this; @@ -341,6 +401,16 @@ public A removeFromProofOfPossession(Byte... items) { return (A) this; } + public A removeFromStubPKCS10Request(Byte... items) { + if (this.stubPKCS10Request == null) { + return (A) this; + } + for (Byte item : items) { + this.stubPKCS10Request.remove(item); + } + return (A) this; + } + public A removeFromUnverifiedUserAnnotations(String key) { if (this.unverifiedUserAnnotations == null) { return (A) this; @@ -381,6 +451,14 @@ public A setToProofOfPossession(int index,Byte item) { return (A) this; } + public A setToStubPKCS10Request(int index,Byte item) { + if (this.stubPKCS10Request == null) { + this.stubPKCS10Request = new ArrayList(); + } + this.stubPKCS10Request.set(index, item); + return (A) this; + } + public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); @@ -434,6 +512,11 @@ public String toString() { sb.append(signerName); sb.append(","); } + if (!(stubPKCS10Request == null) && !(stubPKCS10Request.isEmpty())) { + sb.append("stubPKCS10Request:"); + sb.append(stubPKCS10Request); + sb.append(","); + } if (!(unverifiedUserAnnotations == null) && !(unverifiedUserAnnotations.isEmpty())) { sb.append("unverifiedUserAnnotations:"); sb.append(unverifiedUserAnnotations); @@ -508,6 +591,19 @@ public A withSignerName(String signerName) { return (A) this; } + public A withStubPKCS10Request(byte... stubPKCS10Request) { + if (this.stubPKCS10Request != null) { + this.stubPKCS10Request.clear(); + _visitables.remove("stubPKCS10Request"); + } + if (stubPKCS10Request != null) { + for (byte item : stubPKCS10Request) { + this.addToStubPKCS10Request(item); + } + } + return (A) this; + } + public A withUnverifiedUserAnnotations(Map unverifiedUserAnnotations) { if (unverifiedUserAnnotations == null) { this.unverifiedUserAnnotations = null; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusBuilder.java index 26c1717d67..1fd26ebf77 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusFluent.java index be411e9f15..0c7b2b688d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -52,7 +52,7 @@ public A addAllToConditions(Collection items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -72,7 +72,7 @@ public A addToConditions(V1Condition... items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -83,12 +83,12 @@ public A addToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -272,7 +272,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -292,12 +292,12 @@ public A setToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java index 1d1eaaed4d..d6f22bb063 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java index 9bf00a9872..f037a5c065 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java index 294af9bb9e..cb6920caed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java index cf442b3c91..87333ad4d4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java index 31429187a4..4f0f47ef77 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java index 4f21aaa544..4c4d4e6753 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta1ResourceClaim item : items) { V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta1ResourceClaim... items) { } for (V1beta1ResourceClaim item : items) { V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta1ResourceClaim item) { this.items = new ArrayList(); } V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicat return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1ResourceClaimBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta1ResourceClaim item) { this.items = new ArrayList(); } V1beta1ResourceClaimBuilder builder = new V1beta1ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java index e4fcc99605..20edcf27be 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java index 06338b2a8d..8fbde94e4c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java index 6694f13ee5..178950a456 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java index dd05efe4ee..1f8eb59cdd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -50,7 +50,7 @@ public A addAllToDevices(Collection items) { } for (V1beta1AllocatedDeviceStatus item : items) { V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").add(builder); + this._visitables.get("devices").add(builder); this.devices.add(builder); } return (A) this; @@ -62,7 +62,7 @@ public A addAllToReservedFor(Collection i } for (V1beta1ResourceClaimConsumerReference item : items) { V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); - _visitables.get("reservedFor").add(builder); + this._visitables.get("reservedFor").add(builder); this.reservedFor.add(builder); } return (A) this; @@ -90,7 +90,7 @@ public A addToDevices(V1beta1AllocatedDeviceStatus... items) { } for (V1beta1AllocatedDeviceStatus item : items) { V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").add(builder); + this._visitables.get("devices").add(builder); this.devices.add(builder); } return (A) this; @@ -101,12 +101,12 @@ public A addToDevices(int index,V1beta1AllocatedDeviceStatus item) { this.devices = new ArrayList(); } V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); + if (index < 0 || index >= this.devices.size()) { + this._visitables.get("devices").add(builder); + this.devices.add(builder); } else { - _visitables.get("devices").add(builder); - devices.add(index, builder); + this._visitables.get("devices").add(builder); + this.devices.add(index, builder); } return (A) this; } @@ -117,7 +117,7 @@ public A addToReservedFor(V1beta1ResourceClaimConsumerReference... items) { } for (V1beta1ResourceClaimConsumerReference item : items) { V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); - _visitables.get("reservedFor").add(builder); + this._visitables.get("reservedFor").add(builder); this.reservedFor.add(builder); } return (A) this; @@ -128,12 +128,12 @@ public A addToReservedFor(int index,V1beta1ResourceClaimConsumerReference item) this.reservedFor = new ArrayList(); } V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { - _visitables.get("reservedFor").add(builder); - reservedFor.add(builder); + if (index < 0 || index >= this.reservedFor.size()) { + this._visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); } else { - _visitables.get("reservedFor").add(builder); - reservedFor.add(index, builder); + this._visitables.get("reservedFor").add(builder); + this.reservedFor.add(index, builder); } return (A) this; } @@ -395,7 +395,7 @@ public A removeMatchingFromDevices(Predicate each = devices.iterator(); - List visitables = _visitables.get("devices"); + List visitables = this._visitables.get("devices"); while (each.hasNext()) { V1beta1AllocatedDeviceStatusBuilder builder = each.next(); if (predicate.test(builder)) { @@ -411,7 +411,7 @@ public A removeMatchingFromReservedFor(Predicate each = reservedFor.iterator(); - List visitables = _visitables.get("reservedFor"); + List visitables = this._visitables.get("reservedFor"); while (each.hasNext()) { V1beta1ResourceClaimConsumerReferenceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -435,12 +435,12 @@ public A setToDevices(int index,V1beta1AllocatedDeviceStatus item) { this.devices = new ArrayList(); } V1beta1AllocatedDeviceStatusBuilder builder = new V1beta1AllocatedDeviceStatusBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); + if (index < 0 || index >= this.devices.size()) { + this._visitables.get("devices").add(builder); + this.devices.add(builder); } else { - _visitables.get("devices").add(builder); - devices.set(index, builder); + this._visitables.get("devices").add(builder); + this.devices.set(index, builder); } return (A) this; } @@ -450,12 +450,12 @@ public A setToReservedFor(int index,V1beta1ResourceClaimConsumerReference item) this.reservedFor = new ArrayList(); } V1beta1ResourceClaimConsumerReferenceBuilder builder = new V1beta1ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { - _visitables.get("reservedFor").add(builder); - reservedFor.add(builder); + if (index < 0 || index >= this.reservedFor.size()) { + this._visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); } else { - _visitables.get("reservedFor").add(builder); - reservedFor.set(index, builder); + this._visitables.get("reservedFor").add(builder); + this.reservedFor.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java index 9bdb4c24e0..eb2dc6a064 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java index 2d578c9693..71ff050dc8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java index 72c2614514..8a62a796ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java index 4a7b3f30fe..8338b132dd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta1ResourceClaimTemplate item : items) { V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta1ResourceClaimTemplate... items) { } for (V1beta1ResourceClaimTemplate item : items) { V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta1ResourceClaimTemplate item) { this.items = new ArrayList(); } V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1ResourceClaimTemplateBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta1ResourceClaimTemplate item) { this.items = new ArrayList(); } V1beta1ResourceClaimTemplateBuilder builder = new V1beta1ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java index 601c99e0c2..2f1ec83f20 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java index 9a2f860847..4410fb41ca 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java index 95b2e2efa5..2cfc416de9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java index 260a9e40a2..56b2aeba7b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePoolFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java index be7a584bdd..0e86a297c5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java index 22764b99e5..0edb5edfc9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java index 2f837fba38..92f7f03292 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java index 7c95b207ab..e8006e16f6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta1ResourceSlice item : items) { V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta1ResourceSlice... items) { } for (V1beta1ResourceSlice item : items) { V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta1ResourceSlice item) { this.items = new ArrayList(); } V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicat return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1ResourceSliceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta1ResourceSlice item) { this.items = new ArrayList(); } V1beta1ResourceSliceBuilder builder = new V1beta1ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java index c1d003ad3c..995f171108 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java index 91530b0d66..44cbdf07ac 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -56,7 +56,7 @@ public A addAllToDevices(Collection items) { } for (V1beta1Device item : items) { V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); - _visitables.get("devices").add(builder); + this._visitables.get("devices").add(builder); this.devices.add(builder); } return (A) this; @@ -68,7 +68,7 @@ public A addAllToSharedCounters(Collection items) { } for (V1beta1CounterSet item : items) { V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); - _visitables.get("sharedCounters").add(builder); + this._visitables.get("sharedCounters").add(builder); this.sharedCounters.add(builder); } return (A) this; @@ -96,7 +96,7 @@ public A addToDevices(V1beta1Device... items) { } for (V1beta1Device item : items) { V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); - _visitables.get("devices").add(builder); + this._visitables.get("devices").add(builder); this.devices.add(builder); } return (A) this; @@ -107,12 +107,12 @@ public A addToDevices(int index,V1beta1Device item) { this.devices = new ArrayList(); } V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); + if (index < 0 || index >= this.devices.size()) { + this._visitables.get("devices").add(builder); + this.devices.add(builder); } else { - _visitables.get("devices").add(builder); - devices.add(index, builder); + this._visitables.get("devices").add(builder); + this.devices.add(index, builder); } return (A) this; } @@ -123,7 +123,7 @@ public A addToSharedCounters(V1beta1CounterSet... items) { } for (V1beta1CounterSet item : items) { V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); - _visitables.get("sharedCounters").add(builder); + this._visitables.get("sharedCounters").add(builder); this.sharedCounters.add(builder); } return (A) this; @@ -134,12 +134,12 @@ public A addToSharedCounters(int index,V1beta1CounterSet item) { this.sharedCounters = new ArrayList(); } V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); - if (index < 0 || index >= sharedCounters.size()) { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(builder); + if (index < 0 || index >= this.sharedCounters.size()) { + this._visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); } else { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(index, builder); + this._visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(index, builder); } return (A) this; } @@ -473,7 +473,7 @@ public A removeMatchingFromDevices(Predicate predicate) { return (A) this; } Iterator each = devices.iterator(); - List visitables = _visitables.get("devices"); + List visitables = this._visitables.get("devices"); while (each.hasNext()) { V1beta1DeviceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -489,7 +489,7 @@ public A removeMatchingFromSharedCounters(Predicate pr return (A) this; } Iterator each = sharedCounters.iterator(); - List visitables = _visitables.get("sharedCounters"); + List visitables = this._visitables.get("sharedCounters"); while (each.hasNext()) { V1beta1CounterSetBuilder builder = each.next(); if (predicate.test(builder)) { @@ -513,12 +513,12 @@ public A setToDevices(int index,V1beta1Device item) { this.devices = new ArrayList(); } V1beta1DeviceBuilder builder = new V1beta1DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); + if (index < 0 || index >= this.devices.size()) { + this._visitables.get("devices").add(builder); + this.devices.add(builder); } else { - _visitables.get("devices").add(builder); - devices.set(index, builder); + this._visitables.get("devices").add(builder); + this.devices.set(index, builder); } return (A) this; } @@ -528,12 +528,12 @@ public A setToSharedCounters(int index,V1beta1CounterSet item) { this.sharedCounters = new ArrayList(); } V1beta1CounterSetBuilder builder = new V1beta1CounterSetBuilder(item); - if (index < 0 || index >= sharedCounters.size()) { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(builder); + if (index < 0 || index >= this.sharedCounters.size()) { + this._visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); } else { - _visitables.get("sharedCounters").add(builder); - sharedCounters.set(index, builder); + this._visitables.get("sharedCounters").add(builder); + this.sharedCounters.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRBuilder.java index 01654c0018..c08803146f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java index 978e55778b..ede7304e34 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java index 9e6a587070..e8d0e866d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java index dccfa25a93..d6dd946d32 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta1ServiceCIDR item : items) { V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta1ServiceCIDR... items) { } for (V1beta1ServiceCIDR item : items) { V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta1ServiceCIDR item) { this.items = new ArrayList(); } V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1ServiceCIDRBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta1ServiceCIDR item) { this.items = new ArrayList(); } V1beta1ServiceCIDRBuilder builder = new V1beta1ServiceCIDRBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java index 618944ae9b..dffe2ca031 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java index 447df5f6f1..f6f35d4992 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java index 98680b35e8..60b8c39df7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java index 4d91db26e1..e96b6b19a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,7 +47,7 @@ public A addAllToConditions(Collection items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addToConditions(V1Condition... items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -78,12 +78,12 @@ public A addToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -219,7 +219,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -239,12 +239,12 @@ public A setToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationBuilder.java index 099bb37d1c..283b6214e4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationFluent.java index 36f9f9c9c1..f71d8248a9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListBuilder.java index 5c8a203dd2..f94744b5ad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListFluent.java index 09a5c89d77..cbf8f195d1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta1StorageVersionMigration item : items) { V1beta1StorageVersionMigrationBuilder builder = new V1beta1StorageVersionMigrationBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta1StorageVersionMigration... items) { } for (V1beta1StorageVersionMigration item : items) { V1beta1StorageVersionMigrationBuilder builder = new V1beta1StorageVersionMigrationBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta1StorageVersionMigration item) { this.items = new ArrayList(); } V1beta1StorageVersionMigrationBuilder builder = new V1beta1StorageVersionMigrationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1StorageVersionMigrationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta1StorageVersionMigration item) { this.items = new ArrayList(); } V1beta1StorageVersionMigrationBuilder builder = new V1beta1StorageVersionMigrationBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecBuilder.java index 5b47aa3f59..5a414124c1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecFluent.java index 2d64765945..8b8e5b1ed2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusBuilder.java index e192a3c10a..5608642277 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusFluent.java index f165b377b6..3031a8e41b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,7 +48,7 @@ public A addAllToConditions(Collection items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -68,7 +68,7 @@ public A addToConditions(V1Condition... items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -79,12 +79,12 @@ public A addToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -232,7 +232,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -252,12 +252,12 @@ public A setToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableBuilder.java index 1405b4dee6..22bcb4ea6b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java index 5748e7c28f..67d8722be4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VariableFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java index 5c05d381fd..ef5ff94430 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java index 4c8dd9645e..8dc05f8a59 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java index 54d8f3e79f..9d13e8c537 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java index a0d659f262..4e7b778f0f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta1VolumeAttributesClass item : items) { V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta1VolumeAttributesClass... items) { } for (V1beta1VolumeAttributesClass item : items) { V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta1VolumeAttributesClass item) { this.items = new ArrayList(); } V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta1VolumeAttributesClassBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta1VolumeAttributesClass item) { this.items = new ArrayList(); } V1beta1VolumeAttributesClassBuilder builder = new V1beta1VolumeAttributesClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java index 93c4a6a8b0..03a1466b5b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java index 835188c915..01b3921d20 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -54,7 +54,7 @@ public A addAllToConditions(Collection items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -74,7 +74,7 @@ public A addToConditions(V1Condition... items) { } for (V1Condition item : items) { V1ConditionBuilder builder = new V1ConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -85,12 +85,12 @@ public A addToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -310,7 +310,7 @@ public A removeMatchingFromConditions(Predicate predicate) { return (A) this; } Iterator each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V1ConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -330,12 +330,12 @@ public A setToConditions(int index,V1Condition item) { this.conditions = new ArrayList(); } V1ConditionBuilder builder = new V1ConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java index 57ad66ccfd..35042af644 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java index c3b199dcbc..dccd3e6bc3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResultFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java index d6857ef978..e2662c9be6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java index 7783b2a28c..b36ca6e82a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelectorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java index 7816681b95..e75973f61d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java index cf9f201ee7..299b043508 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -82,7 +82,6 @@ public V1beta2CapacityRequestPolicyRange buildValidRange() { protected void copyInstance(V1beta2CapacityRequestPolicy instance) { instance = instance != null ? instance : new V1beta2CapacityRequestPolicy(); if (instance != null) { - this.withDefault(instance.getDefault()); this.withValidRange(instance.getValidRange()); this.withValidValues(instance.getValidValues()); } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java index 9905e04a96..e9c3d07e2f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java index 3552af390e..66dfde653b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRangeFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java index e82e48fb15..933b072085 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java index 104308102b..97233d72db 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirementsFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java index 7a0349b5d8..9f23ce26ed 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java index 9d6c02d96a..1104be7f09 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java index 91cdf7894c..95dac79a43 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java index edaf8f4b2c..2b30ada58e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSetFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java index 6d39cf4a95..cf45473f89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java index 156d195f79..d57dd87a91 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java index 7ecb820a35..4d77be936f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java index 7155d84d21..65355c35a5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResultFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -48,7 +48,7 @@ public A addAllToConfig(Collection items) } for (V1beta2DeviceAllocationConfiguration item : items) { V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -60,7 +60,7 @@ public A addAllToResults(Collection items) } for (V1beta2DeviceRequestAllocationResult item : items) { V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); - _visitables.get("results").add(builder); + this._visitables.get("results").add(builder); this.results.add(builder); } return (A) this; @@ -88,7 +88,7 @@ public A addToConfig(V1beta2DeviceAllocationConfiguration... items) { } for (V1beta2DeviceAllocationConfiguration item : items) { V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -99,12 +99,12 @@ public A addToConfig(int index,V1beta2DeviceAllocationConfiguration item) { this.config = new ArrayList(); } V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.add(index, builder); + this._visitables.get("config").add(builder); + this.config.add(index, builder); } return (A) this; } @@ -115,7 +115,7 @@ public A addToResults(V1beta2DeviceRequestAllocationResult... items) { } for (V1beta2DeviceRequestAllocationResult item : items) { V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); - _visitables.get("results").add(builder); + this._visitables.get("results").add(builder); this.results.add(builder); } return (A) this; @@ -126,12 +126,12 @@ public A addToResults(int index,V1beta2DeviceRequestAllocationResult item) { this.results = new ArrayList(); } V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { - _visitables.get("results").add(builder); - results.add(builder); + if (index < 0 || index >= this.results.size()) { + this._visitables.get("results").add(builder); + this.results.add(builder); } else { - _visitables.get("results").add(builder); - results.add(index, builder); + this._visitables.get("results").add(builder); + this.results.add(index, builder); } return (A) this; } @@ -369,7 +369,7 @@ public A removeMatchingFromConfig(Predicate each = config.iterator(); - List visitables = _visitables.get("config"); + List visitables = this._visitables.get("config"); while (each.hasNext()) { V1beta2DeviceAllocationConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -385,7 +385,7 @@ public A removeMatchingFromResults(Predicate each = results.iterator(); - List visitables = _visitables.get("results"); + List visitables = this._visitables.get("results"); while (each.hasNext()) { V1beta2DeviceRequestAllocationResultBuilder builder = each.next(); if (predicate.test(builder)) { @@ -409,12 +409,12 @@ public A setToConfig(int index,V1beta2DeviceAllocationConfiguration item) { this.config = new ArrayList(); } V1beta2DeviceAllocationConfigurationBuilder builder = new V1beta2DeviceAllocationConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.set(index, builder); + this._visitables.get("config").add(builder); + this.config.set(index, builder); } return (A) this; } @@ -424,12 +424,12 @@ public A setToResults(int index,V1beta2DeviceRequestAllocationResult item) { this.results = new ArrayList(); } V1beta2DeviceRequestAllocationResultBuilder builder = new V1beta2DeviceRequestAllocationResultBuilder(item); - if (index < 0 || index >= results.size()) { - _visitables.get("results").add(builder); - results.add(builder); + if (index < 0 || index >= this.results.size()) { + this._visitables.get("results").add(builder); + this.results.add(builder); } else { - _visitables.get("results").add(builder); - results.set(index, builder); + this._visitables.get("results").add(builder); + this.results.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java index 5b344d86f9..6cfb98f182 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -39,9 +39,13 @@ public V1beta2DeviceAttributeBuilder(V1beta2DeviceAttributeFluent fluent,V1be public V1beta2DeviceAttribute build() { V1beta2DeviceAttribute buildable = new V1beta2DeviceAttribute(); buildable.setBool(fluent.getBool()); + buildable.setBools(fluent.getBools()); buildable.setInt(fluent.getInt()); + buildable.setInts(fluent.getInts()); buildable.setString(fluent.getString()); + buildable.setStrings(fluent.getStrings()); buildable.setVersion(fluent.getVersion()); + buildable.setVersions(fluent.getVersions()); return buildable; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java index c4610851fa..397c29e580 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttributeFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -19,7 +19,11 @@ import java.lang.String; import java.lang.StringBuilder; import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.List; import java.util.Objects; +import java.util.function.Predicate; /** * Generated @@ -29,8 +33,12 @@ public class V1beta2DeviceAttributeFluent bools; + private List ints; private String string; + private List strings; private String version; + private List versions; public V1beta2DeviceAttributeFluent() { } @@ -39,13 +47,128 @@ public V1beta2DeviceAttributeFluent(V1beta2DeviceAttribute instance) { this.copyInstance(instance); } + public A addAllToBools(Collection items) { + if (this.bools == null) { + this.bools = new ArrayList(); + } + for (Boolean item : items) { + this.bools.add(item); + } + return (A) this; + } + + public A addAllToInts(Collection items) { + if (this.ints == null) { + this.ints = new ArrayList(); + } + for (Long item : items) { + this.ints.add(item); + } + return (A) this; + } + + public A addAllToStrings(Collection items) { + if (this.strings == null) { + this.strings = new ArrayList(); + } + for (String item : items) { + this.strings.add(item); + } + return (A) this; + } + + public A addAllToVersions(Collection items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (String item : items) { + this.versions.add(item); + } + return (A) this; + } + + public A addToBools(Boolean... items) { + if (this.bools == null) { + this.bools = new ArrayList(); + } + for (Boolean item : items) { + this.bools.add(item); + } + return (A) this; + } + + public A addToBools(int index,Boolean item) { + if (this.bools == null) { + this.bools = new ArrayList(); + } + this.bools.add(index, item); + return (A) this; + } + + public A addToInts(Long... items) { + if (this.ints == null) { + this.ints = new ArrayList(); + } + for (Long item : items) { + this.ints.add(item); + } + return (A) this; + } + + public A addToInts(int index,Long item) { + if (this.ints == null) { + this.ints = new ArrayList(); + } + this.ints.add(index, item); + return (A) this; + } + + public A addToStrings(String... items) { + if (this.strings == null) { + this.strings = new ArrayList(); + } + for (String item : items) { + this.strings.add(item); + } + return (A) this; + } + + public A addToStrings(int index,String item) { + if (this.strings == null) { + this.strings = new ArrayList(); + } + this.strings.add(index, item); + return (A) this; + } + + public A addToVersions(String... items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (String item : items) { + this.versions.add(item); + } + return (A) this; + } + + public A addToVersions(int index,String item) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + this.versions.add(index, item); + return (A) this; + } + protected void copyInstance(V1beta2DeviceAttribute instance) { instance = instance != null ? instance : new V1beta2DeviceAttribute(); if (instance != null) { this.withBool(instance.getBool()); - this.withInt(instance.getInt()); + this.withBools(instance.getBools()); + this.withInts(instance.getInts()); this.withString(instance.getString()); + this.withStrings(instance.getStrings()); this.withVersion(instance.getVersion()); + this.withVersions(instance.getVersions()); } } @@ -63,15 +186,27 @@ public boolean equals(Object o) { if (!(Objects.equals(bool, that.bool))) { return false; } + if (!(Objects.equals(bools, that.bools))) { + return false; + } if (!(Objects.equals(_int, that._int))) { return false; } + if (!(Objects.equals(ints, that.ints))) { + return false; + } if (!(Objects.equals(string, that.string))) { return false; } + if (!(Objects.equals(strings, that.strings))) { + return false; + } if (!(Objects.equals(version, that.version))) { return false; } + if (!(Objects.equals(versions, that.versions))) { + return false; + } return true; } @@ -79,36 +214,300 @@ public Boolean getBool() { return this.bool; } + public Boolean getBool(int index) { + return this.bools.get(index); + } + + public List getBools() { + return this.bools; + } + + public Boolean getFirstBool() { + return this.bools.get(0); + } + + public Long getFirstInt() { + return this.ints.get(0); + } + + public String getFirstString() { + return this.strings.get(0); + } + + public String getFirstVersion() { + return this.versions.get(0); + } + public Long getInt() { return this._int; } + public Long getInt(int index) { + return this.ints.get(index); + } + + public List getInts() { + return this.ints; + } + + public Boolean getLastBool() { + return this.bools.get(bools.size() - 1); + } + + public Long getLastInt() { + return this.ints.get(ints.size() - 1); + } + + public String getLastString() { + return this.strings.get(strings.size() - 1); + } + + public String getLastVersion() { + return this.versions.get(versions.size() - 1); + } + + public Boolean getMatchingBool(Predicate predicate) { + for (Boolean item : bools) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public Long getMatchingInt(Predicate predicate) { + for (Long item : ints) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingString(Predicate predicate) { + for (String item : strings) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingVersion(Predicate predicate) { + for (String item : versions) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + public String getString() { return this.string; } + public String getString(int index) { + return this.strings.get(index); + } + + public List getStrings() { + return this.strings; + } + public String getVersion() { return this.version; } + public String getVersion(int index) { + return this.versions.get(index); + } + + public List getVersions() { + return this.versions; + } + public boolean hasBool() { return this.bool != null; } + public boolean hasBools() { + return this.bools != null && !(this.bools.isEmpty()); + } + public boolean hasInt() { return this._int != null; } + public boolean hasInts() { + return this.ints != null && !(this.ints.isEmpty()); + } + + public boolean hasMatchingBool(Predicate predicate) { + for (Boolean item : bools) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingInt(Predicate predicate) { + for (Long item : ints) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingString(Predicate predicate) { + for (String item : strings) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVersion(Predicate predicate) { + for (String item : versions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + public boolean hasString() { return this.string != null; } + public boolean hasStrings() { + return this.strings != null && !(this.strings.isEmpty()); + } + public boolean hasVersion() { return this.version != null; } + public boolean hasVersions() { + return this.versions != null && !(this.versions.isEmpty()); + } + public int hashCode() { - return Objects.hash(bool, _int, string, version); + return Objects.hash(bool, bools, _int, ints, string, strings, version, versions); + } + + public A removeAllFromBools(Collection items) { + if (this.bools == null) { + return (A) this; + } + for (Boolean item : items) { + this.bools.remove(item); + } + return (A) this; + } + + public A removeAllFromInts(Collection items) { + if (this.ints == null) { + return (A) this; + } + for (Long item : items) { + this.ints.remove(item); + } + return (A) this; + } + + public A removeAllFromStrings(Collection items) { + if (this.strings == null) { + return (A) this; + } + for (String item : items) { + this.strings.remove(item); + } + return (A) this; + } + + public A removeAllFromVersions(Collection items) { + if (this.versions == null) { + return (A) this; + } + for (String item : items) { + this.versions.remove(item); + } + return (A) this; + } + + public A removeFromBools(Boolean... items) { + if (this.bools == null) { + return (A) this; + } + for (Boolean item : items) { + this.bools.remove(item); + } + return (A) this; + } + + public A removeFromInts(Long... items) { + if (this.ints == null) { + return (A) this; + } + for (Long item : items) { + this.ints.remove(item); + } + return (A) this; + } + + public A removeFromStrings(String... items) { + if (this.strings == null) { + return (A) this; + } + for (String item : items) { + this.strings.remove(item); + } + return (A) this; + } + + public A removeFromVersions(String... items) { + if (this.versions == null) { + return (A) this; + } + for (String item : items) { + this.versions.remove(item); + } + return (A) this; + } + + public A setToBools(int index,Boolean item) { + if (this.bools == null) { + this.bools = new ArrayList(); + } + this.bools.set(index, item); + return (A) this; + } + + public A setToInts(int index,Long item) { + if (this.ints == null) { + this.ints = new ArrayList(); + } + this.ints.set(index, item); + return (A) this; + } + + public A setToStrings(int index,String item) { + if (this.strings == null) { + this.strings = new ArrayList(); + } + this.strings.set(index, item); + return (A) this; + } + + public A setToVersions(int index,String item) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + this.versions.set(index, item); + return (A) this; } public String toString() { @@ -119,19 +518,39 @@ public String toString() { sb.append(bool); sb.append(","); } + if (!(bools == null) && !(bools.isEmpty())) { + sb.append("bools:"); + sb.append(bools); + sb.append(","); + } if (!(_int == null)) { sb.append("_int:"); sb.append(_int); sb.append(","); } + if (!(ints == null) && !(ints.isEmpty())) { + sb.append("ints:"); + sb.append(ints); + sb.append(","); + } if (!(string == null)) { sb.append("string:"); sb.append(string); sb.append(","); } + if (!(strings == null) && !(strings.isEmpty())) { + sb.append("strings:"); + sb.append(strings); + sb.append(","); + } if (!(version == null)) { sb.append("version:"); sb.append(version); + sb.append(","); + } + if (!(versions == null) && !(versions.isEmpty())) { + sb.append("versions:"); + sb.append(versions); } sb.append("}"); return sb.toString(); @@ -146,19 +565,119 @@ public A withBool(Boolean bool) { return (A) this; } + public A withBools(List bools) { + if (bools != null) { + this.bools = new ArrayList(); + for (Boolean item : bools) { + this.addToBools(item); + } + } else { + this.bools = null; + } + return (A) this; + } + + public A withBools(Boolean... bools) { + if (this.bools != null) { + this.bools.clear(); + _visitables.remove("bools"); + } + if (bools != null) { + for (Boolean item : bools) { + this.addToBools(item); + } + } + return (A) this; + } + public A withInt(Long _int) { this._int = _int; return (A) this; } + public A withInts(List ints) { + if (ints != null) { + this.ints = new ArrayList(); + for (Long item : ints) { + this.addToInts(item); + } + } else { + this.ints = null; + } + return (A) this; + } + + public A withInts(Long... ints) { + if (this.ints != null) { + this.ints.clear(); + _visitables.remove("ints"); + } + if (ints != null) { + for (Long item : ints) { + this.addToInts(item); + } + } + return (A) this; + } + public A withString(String string) { this.string = string; return (A) this; } + public A withStrings(List strings) { + if (strings != null) { + this.strings = new ArrayList(); + for (String item : strings) { + this.addToStrings(item); + } + } else { + this.strings = null; + } + return (A) this; + } + + public A withStrings(String... strings) { + if (this.strings != null) { + this.strings.clear(); + _visitables.remove("strings"); + } + if (strings != null) { + for (String item : strings) { + this.addToStrings(item); + } + } + return (A) this; + } + public A withVersion(String version) { this.version = version; return (A) this; } + public A withVersions(List versions) { + if (versions != null) { + this.versions = new ArrayList(); + for (String item : versions) { + this.addToVersions(item); + } + } else { + this.versions = null; + } + return (A) this; + } + + public A withVersions(String... versions) { + if (this.versions != null) { + this.versions.clear(); + _visitables.remove("versions"); + } + if (versions != null) { + for (String item : versions) { + this.addToVersions(item); + } + } + return (A) this; + } + } \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java index 3d93124b9b..739faf436c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -47,6 +47,7 @@ public V1beta2Device build() { buildable.setCapacity(fluent.getCapacity()); buildable.setConsumesCounters(fluent.buildConsumesCounters()); buildable.setName(fluent.getName()); + buildable.setNodeAllocatableResourceMappings(fluent.getNodeAllocatableResourceMappings()); buildable.setNodeName(fluent.getNodeName()); buildable.setNodeSelector(fluent.buildNodeSelector()); buildable.setTaints(fluent.buildTaints()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java index 7b644cca6e..dc0beec351 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java index a4d7d628bb..010166b8a3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacityFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java index 485f8c0b4d..58674f8443 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java index e9a258facb..f7ff829ddd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java index 842bf14c72..75cb75fee8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java index 21a9074ed8..531979aa51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ public A addAllToConfig(Collection items) { } for (V1beta2DeviceClaimConfiguration item : items) { V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -61,7 +61,7 @@ public A addAllToConstraints(Collection items) { } for (V1beta2DeviceConstraint item : items) { V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); - _visitables.get("constraints").add(builder); + this._visitables.get("constraints").add(builder); this.constraints.add(builder); } return (A) this; @@ -73,7 +73,7 @@ public A addAllToRequests(Collection items) { } for (V1beta2DeviceRequest item : items) { V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); - _visitables.get("requests").add(builder); + this._visitables.get("requests").add(builder); this.requests.add(builder); } return (A) this; @@ -109,7 +109,7 @@ public A addToConfig(V1beta2DeviceClaimConfiguration... items) { } for (V1beta2DeviceClaimConfiguration item : items) { V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -120,12 +120,12 @@ public A addToConfig(int index,V1beta2DeviceClaimConfiguration item) { this.config = new ArrayList(); } V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.add(index, builder); + this._visitables.get("config").add(builder); + this.config.add(index, builder); } return (A) this; } @@ -136,7 +136,7 @@ public A addToConstraints(V1beta2DeviceConstraint... items) { } for (V1beta2DeviceConstraint item : items) { V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); - _visitables.get("constraints").add(builder); + this._visitables.get("constraints").add(builder); this.constraints.add(builder); } return (A) this; @@ -147,12 +147,12 @@ public A addToConstraints(int index,V1beta2DeviceConstraint item) { this.constraints = new ArrayList(); } V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { - _visitables.get("constraints").add(builder); - constraints.add(builder); + if (index < 0 || index >= this.constraints.size()) { + this._visitables.get("constraints").add(builder); + this.constraints.add(builder); } else { - _visitables.get("constraints").add(builder); - constraints.add(index, builder); + this._visitables.get("constraints").add(builder); + this.constraints.add(index, builder); } return (A) this; } @@ -163,7 +163,7 @@ public A addToRequests(V1beta2DeviceRequest... items) { } for (V1beta2DeviceRequest item : items) { V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); - _visitables.get("requests").add(builder); + this._visitables.get("requests").add(builder); this.requests.add(builder); } return (A) this; @@ -174,12 +174,12 @@ public A addToRequests(int index,V1beta2DeviceRequest item) { this.requests = new ArrayList(); } V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { - _visitables.get("requests").add(builder); - requests.add(builder); + if (index < 0 || index >= this.requests.size()) { + this._visitables.get("requests").add(builder); + this.requests.add(builder); } else { - _visitables.get("requests").add(builder); - requests.add(index, builder); + this._visitables.get("requests").add(builder); + this.requests.add(index, builder); } return (A) this; } @@ -519,7 +519,7 @@ public A removeMatchingFromConfig(Predicate each = config.iterator(); - List visitables = _visitables.get("config"); + List visitables = this._visitables.get("config"); while (each.hasNext()) { V1beta2DeviceClaimConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -535,7 +535,7 @@ public A removeMatchingFromConstraints(Predicate return (A) this; } Iterator each = constraints.iterator(); - List visitables = _visitables.get("constraints"); + List visitables = this._visitables.get("constraints"); while (each.hasNext()) { V1beta2DeviceConstraintBuilder builder = each.next(); if (predicate.test(builder)) { @@ -551,7 +551,7 @@ public A removeMatchingFromRequests(Predicate predi return (A) this; } Iterator each = requests.iterator(); - List visitables = _visitables.get("requests"); + List visitables = this._visitables.get("requests"); while (each.hasNext()) { V1beta2DeviceRequestBuilder builder = each.next(); if (predicate.test(builder)) { @@ -579,12 +579,12 @@ public A setToConfig(int index,V1beta2DeviceClaimConfiguration item) { this.config = new ArrayList(); } V1beta2DeviceClaimConfigurationBuilder builder = new V1beta2DeviceClaimConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.set(index, builder); + this._visitables.get("config").add(builder); + this.config.set(index, builder); } return (A) this; } @@ -594,12 +594,12 @@ public A setToConstraints(int index,V1beta2DeviceConstraint item) { this.constraints = new ArrayList(); } V1beta2DeviceConstraintBuilder builder = new V1beta2DeviceConstraintBuilder(item); - if (index < 0 || index >= constraints.size()) { - _visitables.get("constraints").add(builder); - constraints.add(builder); + if (index < 0 || index >= this.constraints.size()) { + this._visitables.get("constraints").add(builder); + this.constraints.add(builder); } else { - _visitables.get("constraints").add(builder); - constraints.set(index, builder); + this._visitables.get("constraints").add(builder); + this.constraints.set(index, builder); } return (A) this; } @@ -609,12 +609,12 @@ public A setToRequests(int index,V1beta2DeviceRequest item) { this.requests = new ArrayList(); } V1beta2DeviceRequestBuilder builder = new V1beta2DeviceRequestBuilder(item); - if (index < 0 || index >= requests.size()) { - _visitables.get("requests").add(builder); - requests.add(builder); + if (index < 0 || index >= this.requests.size()) { + this._visitables.get("requests").add(builder); + this.requests.add(builder); } else { - _visitables.get("requests").add(builder); - requests.set(index, builder); + this._visitables.get("requests").add(builder); + this.requests.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java index 4bf11e2b13..532cf80e6d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java index 80a5bd9b89..849213fade 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java index cee1e68104..37ea504fb0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java index ebbab6829d..a5b9f62f7d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java index 5471ac1d97..2f3239f85f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java index 7b885d8174..63715d3c23 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta2DeviceClass item : items) { V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta2DeviceClass... items) { } for (V1beta2DeviceClass item : items) { V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta2DeviceClass item) { this.items = new ArrayList(); } V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicate) return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta2DeviceClassBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta2DeviceClass item) { this.items = new ArrayList(); } V1beta2DeviceClassBuilder builder = new V1beta2DeviceClassBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java index 9640acc2cb..15a82b70da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java index 4f45341d84..83e2cd7113 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -49,7 +49,7 @@ public A addAllToConfig(Collection items) { } for (V1beta2DeviceClassConfiguration item : items) { V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -61,7 +61,7 @@ public A addAllToSelectors(Collection items) { } for (V1beta2DeviceSelector item : items) { V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -89,7 +89,7 @@ public A addToConfig(V1beta2DeviceClassConfiguration... items) { } for (V1beta2DeviceClassConfiguration item : items) { V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); - _visitables.get("config").add(builder); + this._visitables.get("config").add(builder); this.config.add(builder); } return (A) this; @@ -100,12 +100,12 @@ public A addToConfig(int index,V1beta2DeviceClassConfiguration item) { this.config = new ArrayList(); } V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.add(index, builder); + this._visitables.get("config").add(builder); + this.config.add(index, builder); } return (A) this; } @@ -116,7 +116,7 @@ public A addToSelectors(V1beta2DeviceSelector... items) { } for (V1beta2DeviceSelector item : items) { V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -127,12 +127,12 @@ public A addToSelectors(int index,V1beta2DeviceSelector item) { this.selectors = new ArrayList(); } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.add(index, builder); } return (A) this; } @@ -382,7 +382,7 @@ public A removeMatchingFromConfig(Predicate each = config.iterator(); - List visitables = _visitables.get("config"); + List visitables = this._visitables.get("config"); while (each.hasNext()) { V1beta2DeviceClassConfigurationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -398,7 +398,7 @@ public A removeMatchingFromSelectors(Predicate pre return (A) this; } Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); + List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1beta2DeviceSelectorBuilder builder = each.next(); if (predicate.test(builder)) { @@ -422,12 +422,12 @@ public A setToConfig(int index,V1beta2DeviceClassConfiguration item) { this.config = new ArrayList(); } V1beta2DeviceClassConfigurationBuilder builder = new V1beta2DeviceClassConfigurationBuilder(item); - if (index < 0 || index >= config.size()) { - _visitables.get("config").add(builder); - config.add(builder); + if (index < 0 || index >= this.config.size()) { + this._visitables.get("config").add(builder); + this.config.add(builder); } else { - _visitables.get("config").add(builder); - config.set(index, builder); + this._visitables.get("config").add(builder); + this.config.set(index, builder); } return (A) this; } @@ -437,12 +437,12 @@ public A setToSelectors(int index,V1beta2DeviceSelector item) { this.selectors = new ArrayList(); } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java index a18057f068..44894a12bd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java index 25f4c3415b..eceaf31cef 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraintFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java index 6888d31102..d06a199458 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java index 8696bc7537..25e57c5d0b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumptionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java index 657b40d5e1..15d7bdcffd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -45,6 +45,7 @@ public class V1beta2DeviceFluent capacity; private ArrayList consumesCounters; private String name; + private Map nodeAllocatableResourceMappings; private String nodeName; private V1NodeSelectorBuilder nodeSelector; private ArrayList taints; @@ -82,7 +83,7 @@ public A addAllToConsumesCounters(Collection it } for (V1beta2DeviceCounterConsumption item : items) { V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").add(builder); + this._visitables.get("consumesCounters").add(builder); this.consumesCounters.add(builder); } return (A) this; @@ -94,7 +95,7 @@ public A addAllToTaints(Collection items) { } for (V1beta2DeviceTaint item : items) { V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); - _visitables.get("taints").add(builder); + this._visitables.get("taints").add(builder); this.taints.add(builder); } return (A) this; @@ -198,7 +199,7 @@ public A addToConsumesCounters(V1beta2DeviceCounterConsumption... items) { } for (V1beta2DeviceCounterConsumption item : items) { V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); - _visitables.get("consumesCounters").add(builder); + this._visitables.get("consumesCounters").add(builder); this.consumesCounters.add(builder); } return (A) this; @@ -209,12 +210,32 @@ public A addToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { this.consumesCounters = new ArrayList(); } V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); - if (index < 0 || index >= consumesCounters.size()) { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(builder); + if (index < 0 || index >= this.consumesCounters.size()) { + this._visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); } else { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(index, builder); + this._visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(index, builder); + } + return (A) this; + } + + public A addToNodeAllocatableResourceMappings(Map map) { + if (this.nodeAllocatableResourceMappings == null && map != null) { + this.nodeAllocatableResourceMappings = new LinkedHashMap(); + } + if (map != null) { + this.nodeAllocatableResourceMappings.putAll(map); + } + return (A) this; + } + + public A addToNodeAllocatableResourceMappings(String key,V1beta2NodeAllocatableResourceMapping value) { + if (this.nodeAllocatableResourceMappings == null && key != null && value != null) { + this.nodeAllocatableResourceMappings = new LinkedHashMap(); + } + if (key != null && value != null) { + this.nodeAllocatableResourceMappings.put(key, value); } return (A) this; } @@ -225,7 +246,7 @@ public A addToTaints(V1beta2DeviceTaint... items) { } for (V1beta2DeviceTaint item : items) { V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); - _visitables.get("taints").add(builder); + this._visitables.get("taints").add(builder); this.taints.add(builder); } return (A) this; @@ -236,12 +257,12 @@ public A addToTaints(int index,V1beta2DeviceTaint item) { this.taints = new ArrayList(); } V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); + if (index < 0 || index >= this.taints.size()) { + this._visitables.get("taints").add(builder); + this.taints.add(builder); } else { - _visitables.get("taints").add(builder); - taints.add(index, builder); + this._visitables.get("taints").add(builder); + this.taints.add(index, builder); } return (A) this; } @@ -312,6 +333,7 @@ protected void copyInstance(V1beta2Device instance) { this.withCapacity(instance.getCapacity()); this.withConsumesCounters(instance.getConsumesCounters()); this.withName(instance.getName()); + this.withNodeAllocatableResourceMappings(instance.getNodeAllocatableResourceMappings()); this.withNodeName(instance.getNodeName()); this.withNodeSelector(instance.getNodeSelector()); this.withTaints(instance.getTaints()); @@ -440,6 +462,9 @@ public boolean equals(Object o) { if (!(Objects.equals(name, that.name))) { return false; } + if (!(Objects.equals(nodeAllocatableResourceMappings, that.nodeAllocatableResourceMappings))) { + return false; + } if (!(Objects.equals(nodeName, that.nodeName))) { return false; } @@ -526,6 +551,10 @@ public String getName() { return this.name; } + public Map getNodeAllocatableResourceMappings() { + return this.nodeAllocatableResourceMappings; + } + public String getNodeName() { return this.nodeName; } @@ -602,6 +631,10 @@ public boolean hasName() { return this.name != null; } + public boolean hasNodeAllocatableResourceMappings() { + return this.nodeAllocatableResourceMappings != null; + } + public boolean hasNodeName() { return this.nodeName != null; } @@ -615,7 +648,7 @@ public boolean hasTaints() { } public int hashCode() { - return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeName, nodeSelector, taints); + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeAllocatableResourceMappings, nodeName, nodeSelector, taints); } public A removeAllFromBindingConditions(Collection items) { @@ -742,6 +775,30 @@ public A removeFromConsumesCounters(V1beta2DeviceCounterConsumption... items) { return (A) this; } + public A removeFromNodeAllocatableResourceMappings(String key) { + if (this.nodeAllocatableResourceMappings == null) { + return (A) this; + } + if (key != null && this.nodeAllocatableResourceMappings != null) { + this.nodeAllocatableResourceMappings.remove(key); + } + return (A) this; + } + + public A removeFromNodeAllocatableResourceMappings(Map map) { + if (this.nodeAllocatableResourceMappings == null) { + return (A) this; + } + if (map != null) { + for (Object key : map.keySet()) { + if (this.nodeAllocatableResourceMappings != null) { + this.nodeAllocatableResourceMappings.remove(key); + } + } + } + return (A) this; + } + public A removeFromTaints(V1beta2DeviceTaint... items) { if (this.taints == null) { return (A) this; @@ -759,7 +816,7 @@ public A removeMatchingFromConsumesCounters(Predicate each = consumesCounters.iterator(); - List visitables = _visitables.get("consumesCounters"); + List visitables = this._visitables.get("consumesCounters"); while (each.hasNext()) { V1beta2DeviceCounterConsumptionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -775,7 +832,7 @@ public A removeMatchingFromTaints(Predicate predicate return (A) this; } Iterator each = taints.iterator(); - List visitables = _visitables.get("taints"); + List visitables = this._visitables.get("taints"); while (each.hasNext()) { V1beta2DeviceTaintBuilder builder = each.next(); if (predicate.test(builder)) { @@ -815,12 +872,12 @@ public A setToConsumesCounters(int index,V1beta2DeviceCounterConsumption item) { this.consumesCounters = new ArrayList(); } V1beta2DeviceCounterConsumptionBuilder builder = new V1beta2DeviceCounterConsumptionBuilder(item); - if (index < 0 || index >= consumesCounters.size()) { - _visitables.get("consumesCounters").add(builder); - consumesCounters.add(builder); + if (index < 0 || index >= this.consumesCounters.size()) { + this._visitables.get("consumesCounters").add(builder); + this.consumesCounters.add(builder); } else { - _visitables.get("consumesCounters").add(builder); - consumesCounters.set(index, builder); + this._visitables.get("consumesCounters").add(builder); + this.consumesCounters.set(index, builder); } return (A) this; } @@ -830,12 +887,12 @@ public A setToTaints(int index,V1beta2DeviceTaint item) { this.taints = new ArrayList(); } V1beta2DeviceTaintBuilder builder = new V1beta2DeviceTaintBuilder(item); - if (index < 0 || index >= taints.size()) { - _visitables.get("taints").add(builder); - taints.add(builder); + if (index < 0 || index >= this.taints.size()) { + this._visitables.get("taints").add(builder); + this.taints.add(builder); } else { - _visitables.get("taints").add(builder); - taints.set(index, builder); + this._visitables.get("taints").add(builder); + this.taints.set(index, builder); } return (A) this; } @@ -888,6 +945,11 @@ public String toString() { sb.append(name); sb.append(","); } + if (!(nodeAllocatableResourceMappings == null) && !(nodeAllocatableResourceMappings.isEmpty())) { + sb.append("nodeAllocatableResourceMappings:"); + sb.append(nodeAllocatableResourceMappings); + sb.append(","); + } if (!(nodeName == null)) { sb.append("nodeName:"); sb.append(nodeName); @@ -1042,6 +1104,15 @@ public NodeSelectorNested withNewNodeSelectorLike(V1NodeSelector item) { return new NodeSelectorNested(item); } + public A withNodeAllocatableResourceMappings(Map nodeAllocatableResourceMappings) { + if (nodeAllocatableResourceMappings == null) { + this.nodeAllocatableResourceMappings = null; + } else { + this.nodeAllocatableResourceMappings = new LinkedHashMap(nodeAllocatableResourceMappings); + } + return (A) this; + } + public A withNodeName(String nodeName) { this.nodeName = nodeName; return (A) this; diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java index 7063d1856b..0c404fb8bc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java index 283c9e7594..974681f862 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResultFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -80,7 +80,7 @@ public A addAllToTolerations(Collection items) { } for (V1beta2DeviceToleration item : items) { V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -156,7 +156,7 @@ public A addToTolerations(V1beta2DeviceToleration... items) { } for (V1beta2DeviceToleration item : items) { V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -167,12 +167,12 @@ public A addToTolerations(int index,V1beta2DeviceToleration item) { this.tolerations = new ArrayList(); } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.add(index, builder); } return (A) this; } @@ -540,7 +540,7 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); + List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1beta2DeviceTolerationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -576,12 +576,12 @@ public A setToTolerations(int index,V1beta2DeviceToleration item) { this.tolerations = new ArrayList(); } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java index f3457b4dbd..368f1834da 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java index 437dafbc7f..abc057cbc5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -50,7 +50,7 @@ public A addAllToFirstAvailable(Collection items) { } for (V1beta2DeviceSubRequest item : items) { V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); - _visitables.get("firstAvailable").add(builder); + this._visitables.get("firstAvailable").add(builder); this.firstAvailable.add(builder); } return (A) this; @@ -70,7 +70,7 @@ public A addToFirstAvailable(V1beta2DeviceSubRequest... items) { } for (V1beta2DeviceSubRequest item : items) { V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); - _visitables.get("firstAvailable").add(builder); + this._visitables.get("firstAvailable").add(builder); this.firstAvailable.add(builder); } return (A) this; @@ -81,12 +81,12 @@ public A addToFirstAvailable(int index,V1beta2DeviceSubRequest item) { this.firstAvailable = new ArrayList(); } V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); - if (index < 0 || index >= firstAvailable.size()) { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(builder); + if (index < 0 || index >= this.firstAvailable.size()) { + this._visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(builder); } else { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(index, builder); + this._visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(index, builder); } return (A) this; } @@ -258,7 +258,7 @@ public A removeMatchingFromFirstAvailable(Predicate each = firstAvailable.iterator(); - List visitables = _visitables.get("firstAvailable"); + List visitables = this._visitables.get("firstAvailable"); while (each.hasNext()) { V1beta2DeviceSubRequestBuilder builder = each.next(); if (predicate.test(builder)) { @@ -278,12 +278,12 @@ public A setToFirstAvailable(int index,V1beta2DeviceSubRequest item) { this.firstAvailable = new ArrayList(); } V1beta2DeviceSubRequestBuilder builder = new V1beta2DeviceSubRequestBuilder(item); - if (index < 0 || index >= firstAvailable.size()) { - _visitables.get("firstAvailable").add(builder); - firstAvailable.add(builder); + if (index < 0 || index >= this.firstAvailable.size()) { + this._visitables.get("firstAvailable").add(builder); + this.firstAvailable.add(builder); } else { - _visitables.get("firstAvailable").add(builder); - firstAvailable.set(index, builder); + this._visitables.get("firstAvailable").add(builder); + this.firstAvailable.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java index f704f2ce92..487b0e3407 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java index 739b63eeef..be11bbc2b4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelectorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java index 8c48be3fe8..cccae37d52 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java index f2ef9198c7..425a39c1f2 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequestFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -55,7 +55,7 @@ public A addAllToSelectors(Collection items) { } for (V1beta2DeviceSelector item : items) { V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addAllToTolerations(Collection items) { } for (V1beta2DeviceToleration item : items) { V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -95,7 +95,7 @@ public A addToSelectors(V1beta2DeviceSelector... items) { } for (V1beta2DeviceSelector item : items) { V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -106,12 +106,12 @@ public A addToSelectors(int index,V1beta2DeviceSelector item) { this.selectors = new ArrayList(); } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.add(index, builder); } return (A) this; } @@ -122,7 +122,7 @@ public A addToTolerations(V1beta2DeviceToleration... items) { } for (V1beta2DeviceToleration item : items) { V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -133,12 +133,12 @@ public A addToTolerations(int index,V1beta2DeviceToleration item) { this.tolerations = new ArrayList(); } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.add(index, builder); } return (A) this; } @@ -448,7 +448,7 @@ public A removeMatchingFromSelectors(Predicate pre return (A) this; } Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); + List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1beta2DeviceSelectorBuilder builder = each.next(); if (predicate.test(builder)) { @@ -464,7 +464,7 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); + List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1beta2DeviceTolerationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -488,12 +488,12 @@ public A setToSelectors(int index,V1beta2DeviceSelector item) { this.selectors = new ArrayList(); } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.set(index, builder); } return (A) this; } @@ -503,12 +503,12 @@ public A setToTolerations(int index,V1beta2DeviceToleration item) { this.tolerations = new ArrayList(); } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java index 4e2e7d3dca..702e1b0a69 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java index adf56656a3..2502aeff6b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleBuilder.java new file mode 100644 index 0000000000..5014af3849 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleBuilder.java @@ -0,0 +1,49 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceTaintRuleBuilder extends V1beta2DeviceTaintRuleFluent implements VisitableBuilder{ + + V1beta2DeviceTaintRuleFluent fluent; + + public V1beta2DeviceTaintRuleBuilder() { + this(new V1beta2DeviceTaintRule()); + } + + public V1beta2DeviceTaintRuleBuilder(V1beta2DeviceTaintRuleFluent fluent) { + this(fluent, new V1beta2DeviceTaintRule()); + } + + public V1beta2DeviceTaintRuleBuilder(V1beta2DeviceTaintRule instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceTaintRuleBuilder(V1beta2DeviceTaintRuleFluent fluent,V1beta2DeviceTaintRule instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceTaintRule build() { + V1beta2DeviceTaintRule buildable = new V1beta2DeviceTaintRule(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setSpec(fluent.buildSpec()); + buildable.setStatus(fluent.buildStatus()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleFluent.java new file mode 100644 index 0000000000..c2dc923546 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleFluent.java @@ -0,0 +1,314 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceTaintRuleFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private V1beta2DeviceTaintRuleSpecBuilder spec; + private V1beta2DeviceTaintRuleStatusBuilder status; + + public V1beta2DeviceTaintRuleFluent() { + } + + public V1beta2DeviceTaintRuleFluent(V1beta2DeviceTaintRule instance) { + this.copyInstance(instance); + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V1beta2DeviceTaintRuleSpec buildSpec() { + return this.spec != null ? this.spec.build() : null; + } + + public V1beta2DeviceTaintRuleStatus buildStatus() { + return this.status != null ? this.status.build() : null; + } + + protected void copyInstance(V1beta2DeviceTaintRule instance) { + instance = instance != null ? instance : new V1beta2DeviceTaintRule(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withSpec(instance.getSpec()); + this.withStatus(instance.getStatus()); + } + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public SpecNested editOrNewSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(new V1beta2DeviceTaintRuleSpecBuilder().build())); + } + + public SpecNested editOrNewSpecLike(V1beta2DeviceTaintRuleSpec item) { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(item)); + } + + public StatusNested editOrNewStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(new V1beta2DeviceTaintRuleStatusBuilder().build())); + } + + public StatusNested editOrNewStatusLike(V1beta2DeviceTaintRuleStatus item) { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(item)); + } + + public SpecNested editSpec() { + return this.withNewSpecLike(Optional.ofNullable(this.buildSpec()).orElse(null)); + } + + public StatusNested editStatus() { + return this.withNewStatusLike(Optional.ofNullable(this.buildStatus()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceTaintRuleFluent that = (V1beta2DeviceTaintRuleFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(spec, that.spec))) { + return false; + } + if (!(Objects.equals(status, that.status))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasSpec() { + return this.spec != null; + } + + public boolean hasStatus() { + return this.status != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(spec == null)) { + sb.append("spec:"); + sb.append(spec); + sb.append(","); + } + if (!(status == null)) { + sb.append("status:"); + sb.append(status); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public SpecNested withNewSpec() { + return new SpecNested(null); + } + + public SpecNested withNewSpecLike(V1beta2DeviceTaintRuleSpec item) { + return new SpecNested(item); + } + + public StatusNested withNewStatus() { + return new StatusNested(null); + } + + public StatusNested withNewStatusLike(V1beta2DeviceTaintRuleStatus item) { + return new StatusNested(item); + } + + public A withSpec(V1beta2DeviceTaintRuleSpec spec) { + this._visitables.remove("spec"); + if (spec != null) { + this.spec = new V1beta2DeviceTaintRuleSpecBuilder(spec); + this._visitables.get("spec").add(this.spec); + } else { + this.spec = null; + this._visitables.get("spec").remove(this.spec); + } + return (A) this; + } + + public A withStatus(V1beta2DeviceTaintRuleStatus status) { + this._visitables.remove("status"); + if (status != null) { + this.status = new V1beta2DeviceTaintRuleStatusBuilder(status); + this._visitables.get("status").add(this.status); + } else { + this.status = null; + this._visitables.get("status").remove(this.status); + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceTaintRuleFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class SpecNested extends V1beta2DeviceTaintRuleSpecFluent> implements Nested{ + + V1beta2DeviceTaintRuleSpecBuilder builder; + + SpecNested(V1beta2DeviceTaintRuleSpec item) { + this.builder = new V1beta2DeviceTaintRuleSpecBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceTaintRuleFluent.this.withSpec(builder.build()); + } + + public N endSpec() { + return and(); + } + + } + public class StatusNested extends V1beta2DeviceTaintRuleStatusFluent> implements Nested{ + + V1beta2DeviceTaintRuleStatusBuilder builder; + + StatusNested(V1beta2DeviceTaintRuleStatus item) { + this.builder = new V1beta2DeviceTaintRuleStatusBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceTaintRuleFluent.this.withStatus(builder.build()); + } + + public N endStatus() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleListBuilder.java new file mode 100644 index 0000000000..15e44c1222 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleListBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceTaintRuleListBuilder extends V1beta2DeviceTaintRuleListFluent implements VisitableBuilder{ + + V1beta2DeviceTaintRuleListFluent fluent; + + public V1beta2DeviceTaintRuleListBuilder() { + this(new V1beta2DeviceTaintRuleList()); + } + + public V1beta2DeviceTaintRuleListBuilder(V1beta2DeviceTaintRuleListFluent fluent) { + this(fluent, new V1beta2DeviceTaintRuleList()); + } + + public V1beta2DeviceTaintRuleListBuilder(V1beta2DeviceTaintRuleList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceTaintRuleListBuilder(V1beta2DeviceTaintRuleListFluent fluent,V1beta2DeviceTaintRuleList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceTaintRuleList build() { + V1beta2DeviceTaintRuleList buildable = new V1beta2DeviceTaintRuleList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setItems(fluent.buildItems()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleListFluent.java new file mode 100644 index 0000000000..1b4ccda81d --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleListFluent.java @@ -0,0 +1,423 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceTaintRuleListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V1beta2DeviceTaintRuleListFluent() { + } + + public V1beta2DeviceTaintRuleListFluent(V1beta2DeviceTaintRuleList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta2DeviceTaintRule item : items) { + V1beta2DeviceTaintRuleBuilder builder = new V1beta2DeviceTaintRuleBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V1beta2DeviceTaintRule item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V1beta2DeviceTaintRule... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V1beta2DeviceTaintRule item : items) { + V1beta2DeviceTaintRuleBuilder builder = new V1beta2DeviceTaintRuleBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V1beta2DeviceTaintRule item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta2DeviceTaintRuleBuilder builder = new V1beta2DeviceTaintRuleBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.add(index, builder); + } + return (A) this; + } + + public V1beta2DeviceTaintRule buildFirstItem() { + return this.items.get(0).build(); + } + + public V1beta2DeviceTaintRule buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V1beta2DeviceTaintRule buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V1beta2DeviceTaintRule buildMatchingItem(Predicate predicate) { + for (V1beta2DeviceTaintRuleBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V1beta2DeviceTaintRuleList instance) { + instance = instance != null ? instance : new V1beta2DeviceTaintRuleList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withItems(instance.getItems()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceTaintRuleListFluent that = (V1beta2DeviceTaintRuleListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V1beta2DeviceTaintRuleBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V1beta2DeviceTaintRule item : items) { + V1beta2DeviceTaintRuleBuilder builder = new V1beta2DeviceTaintRuleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V1beta2DeviceTaintRule... items) { + if (this.items == null) { + return (A) this; + } + for (V1beta2DeviceTaintRule item : items) { + V1beta2DeviceTaintRuleBuilder builder = new V1beta2DeviceTaintRuleBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = this._visitables.get("items"); + while (each.hasNext()) { + V1beta2DeviceTaintRuleBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V1beta2DeviceTaintRule item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V1beta2DeviceTaintRule item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V1beta2DeviceTaintRuleBuilder builder = new V1beta2DeviceTaintRuleBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V1beta2DeviceTaintRule item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V1beta2DeviceTaintRule... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V1beta2DeviceTaintRule item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V1beta2DeviceTaintRuleFluent> implements Nested{ + + V1beta2DeviceTaintRuleBuilder builder; + int index; + + ItemsNested(int index,V1beta2DeviceTaintRule item) { + this.index = index; + this.builder = new V1beta2DeviceTaintRuleBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceTaintRuleListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceTaintRuleListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpecBuilder.java new file mode 100644 index 0000000000..c0af5329ea --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpecBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceTaintRuleSpecBuilder extends V1beta2DeviceTaintRuleSpecFluent implements VisitableBuilder{ + + V1beta2DeviceTaintRuleSpecFluent fluent; + + public V1beta2DeviceTaintRuleSpecBuilder() { + this(new V1beta2DeviceTaintRuleSpec()); + } + + public V1beta2DeviceTaintRuleSpecBuilder(V1beta2DeviceTaintRuleSpecFluent fluent) { + this(fluent, new V1beta2DeviceTaintRuleSpec()); + } + + public V1beta2DeviceTaintRuleSpecBuilder(V1beta2DeviceTaintRuleSpec instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceTaintRuleSpecBuilder(V1beta2DeviceTaintRuleSpecFluent fluent,V1beta2DeviceTaintRuleSpec instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceTaintRuleSpec build() { + V1beta2DeviceTaintRuleSpec buildable = new V1beta2DeviceTaintRuleSpec(); + buildable.setDeviceSelector(fluent.buildDeviceSelector()); + buildable.setTaint(fluent.buildTaint()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpecFluent.java new file mode 100644 index 0000000000..139fa7f2ca --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpecFluent.java @@ -0,0 +1,201 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; +import java.util.Optional; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceTaintRuleSpecFluent> extends BaseFluent{ + + private V1beta2DeviceTaintSelectorBuilder deviceSelector; + private V1beta2DeviceTaintBuilder taint; + + public V1beta2DeviceTaintRuleSpecFluent() { + } + + public V1beta2DeviceTaintRuleSpecFluent(V1beta2DeviceTaintRuleSpec instance) { + this.copyInstance(instance); + } + + public V1beta2DeviceTaintSelector buildDeviceSelector() { + return this.deviceSelector != null ? this.deviceSelector.build() : null; + } + + public V1beta2DeviceTaint buildTaint() { + return this.taint != null ? this.taint.build() : null; + } + + protected void copyInstance(V1beta2DeviceTaintRuleSpec instance) { + instance = instance != null ? instance : new V1beta2DeviceTaintRuleSpec(); + if (instance != null) { + this.withDeviceSelector(instance.getDeviceSelector()); + this.withTaint(instance.getTaint()); + } + } + + public DeviceSelectorNested editDeviceSelector() { + return this.withNewDeviceSelectorLike(Optional.ofNullable(this.buildDeviceSelector()).orElse(null)); + } + + public DeviceSelectorNested editOrNewDeviceSelector() { + return this.withNewDeviceSelectorLike(Optional.ofNullable(this.buildDeviceSelector()).orElse(new V1beta2DeviceTaintSelectorBuilder().build())); + } + + public DeviceSelectorNested editOrNewDeviceSelectorLike(V1beta2DeviceTaintSelector item) { + return this.withNewDeviceSelectorLike(Optional.ofNullable(this.buildDeviceSelector()).orElse(item)); + } + + public TaintNested editOrNewTaint() { + return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(new V1beta2DeviceTaintBuilder().build())); + } + + public TaintNested editOrNewTaintLike(V1beta2DeviceTaint item) { + return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(item)); + } + + public TaintNested editTaint() { + return this.withNewTaintLike(Optional.ofNullable(this.buildTaint()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceTaintRuleSpecFluent that = (V1beta2DeviceTaintRuleSpecFluent) o; + if (!(Objects.equals(deviceSelector, that.deviceSelector))) { + return false; + } + if (!(Objects.equals(taint, that.taint))) { + return false; + } + return true; + } + + public boolean hasDeviceSelector() { + return this.deviceSelector != null; + } + + public boolean hasTaint() { + return this.taint != null; + } + + public int hashCode() { + return Objects.hash(deviceSelector, taint); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(deviceSelector == null)) { + sb.append("deviceSelector:"); + sb.append(deviceSelector); + sb.append(","); + } + if (!(taint == null)) { + sb.append("taint:"); + sb.append(taint); + } + sb.append("}"); + return sb.toString(); + } + + public A withDeviceSelector(V1beta2DeviceTaintSelector deviceSelector) { + this._visitables.remove("deviceSelector"); + if (deviceSelector != null) { + this.deviceSelector = new V1beta2DeviceTaintSelectorBuilder(deviceSelector); + this._visitables.get("deviceSelector").add(this.deviceSelector); + } else { + this.deviceSelector = null; + this._visitables.get("deviceSelector").remove(this.deviceSelector); + } + return (A) this; + } + + public DeviceSelectorNested withNewDeviceSelector() { + return new DeviceSelectorNested(null); + } + + public DeviceSelectorNested withNewDeviceSelectorLike(V1beta2DeviceTaintSelector item) { + return new DeviceSelectorNested(item); + } + + public TaintNested withNewTaint() { + return new TaintNested(null); + } + + public TaintNested withNewTaintLike(V1beta2DeviceTaint item) { + return new TaintNested(item); + } + + public A withTaint(V1beta2DeviceTaint taint) { + this._visitables.remove("taint"); + if (taint != null) { + this.taint = new V1beta2DeviceTaintBuilder(taint); + this._visitables.get("taint").add(this.taint); + } else { + this.taint = null; + this._visitables.get("taint").remove(this.taint); + } + return (A) this; + } + public class DeviceSelectorNested extends V1beta2DeviceTaintSelectorFluent> implements Nested{ + + V1beta2DeviceTaintSelectorBuilder builder; + + DeviceSelectorNested(V1beta2DeviceTaintSelector item) { + this.builder = new V1beta2DeviceTaintSelectorBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceTaintRuleSpecFluent.this.withDeviceSelector(builder.build()); + } + + public N endDeviceSelector() { + return and(); + } + + } + public class TaintNested extends V1beta2DeviceTaintFluent> implements Nested{ + + V1beta2DeviceTaintBuilder builder; + + TaintNested(V1beta2DeviceTaint item) { + this.builder = new V1beta2DeviceTaintBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceTaintRuleSpecFluent.this.withTaint(builder.build()); + } + + public N endTaint() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatusBuilder.java new file mode 100644 index 0000000000..8ad1a570f2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatusBuilder.java @@ -0,0 +1,45 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceTaintRuleStatusBuilder extends V1beta2DeviceTaintRuleStatusFluent implements VisitableBuilder{ + + V1beta2DeviceTaintRuleStatusFluent fluent; + + public V1beta2DeviceTaintRuleStatusBuilder() { + this(new V1beta2DeviceTaintRuleStatus()); + } + + public V1beta2DeviceTaintRuleStatusBuilder(V1beta2DeviceTaintRuleStatusFluent fluent) { + this(fluent, new V1beta2DeviceTaintRuleStatus()); + } + + public V1beta2DeviceTaintRuleStatusBuilder(V1beta2DeviceTaintRuleStatus instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceTaintRuleStatusBuilder(V1beta2DeviceTaintRuleStatusFluent fluent,V1beta2DeviceTaintRuleStatus instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceTaintRuleStatus build() { + V1beta2DeviceTaintRuleStatus buildable = new V1beta2DeviceTaintRuleStatus(); + buildable.setConditions(fluent.buildConditions()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatusFluent.java new file mode 100644 index 0000000000..feebc99d90 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatusFluent.java @@ -0,0 +1,309 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceTaintRuleStatusFluent> extends BaseFluent{ + + private ArrayList conditions; + + public V1beta2DeviceTaintRuleStatusFluent() { + } + + public V1beta2DeviceTaintRuleStatusFluent(V1beta2DeviceTaintRuleStatus instance) { + this.copyInstance(instance); + } + + public A addAllToConditions(Collection items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public ConditionsNested addNewCondition() { + return new ConditionsNested(-1, null); + } + + public ConditionsNested addNewConditionLike(V1Condition item) { + return new ConditionsNested(-1, item); + } + + public A addToConditions(V1Condition... items) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } + return (A) this; + } + + public A addToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); + } + return (A) this; + } + + public V1Condition buildCondition(int index) { + return this.conditions.get(index).build(); + } + + public List buildConditions() { + return this.conditions != null ? build(conditions) : null; + } + + public V1Condition buildFirstCondition() { + return this.conditions.get(0).build(); + } + + public V1Condition buildLastCondition() { + return this.conditions.get(conditions.size() - 1).build(); + } + + public V1Condition buildMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + protected void copyInstance(V1beta2DeviceTaintRuleStatus instance) { + instance = instance != null ? instance : new V1beta2DeviceTaintRuleStatus(); + if (instance != null) { + this.withConditions(instance.getConditions()); + } + } + + public ConditionsNested editCondition(int index) { + if (conditions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editFirstCondition() { + if (conditions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(0, this.buildCondition(0)); + } + + public ConditionsNested editLastCondition() { + int index = conditions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public ConditionsNested editMatchingCondition(Predicate predicate) { + int index = -1; + for (int i = 0;i < conditions.size();i++) { + if (predicate.test(conditions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "conditions")); + } + return this.setNewConditionLike(index, this.buildCondition(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceTaintRuleStatusFluent that = (V1beta2DeviceTaintRuleStatusFluent) o; + if (!(Objects.equals(conditions, that.conditions))) { + return false; + } + return true; + } + + public boolean hasConditions() { + return this.conditions != null && !(this.conditions.isEmpty()); + } + + public boolean hasMatchingCondition(Predicate predicate) { + for (V1ConditionBuilder item : conditions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public int hashCode() { + return Objects.hash(conditions); + } + + public A removeAllFromConditions(Collection items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeFromConditions(V1Condition... items) { + if (this.conditions == null) { + return (A) this; + } + for (V1Condition item : items) { + V1ConditionBuilder builder = new V1ConditionBuilder(item); + _visitables.get("conditions").remove(builder); + this.conditions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromConditions(Predicate predicate) { + if (conditions == null) { + return (A) this; + } + Iterator each = conditions.iterator(); + List visitables = this._visitables.get("conditions"); + while (each.hasNext()) { + V1ConditionBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ConditionsNested setNewConditionLike(int index,V1Condition item) { + return new ConditionsNested(index, item); + } + + public A setToConditions(int index,V1Condition item) { + if (this.conditions == null) { + this.conditions = new ArrayList(); + } + V1ConditionBuilder builder = new V1ConditionBuilder(item); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); + } else { + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(conditions == null) && !(conditions.isEmpty())) { + sb.append("conditions:"); + sb.append(conditions); + } + sb.append("}"); + return sb.toString(); + } + + public A withConditions(List conditions) { + if (this.conditions != null) { + this._visitables.get("conditions").clear(); + } + if (conditions != null) { + this.conditions = new ArrayList(); + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } else { + this.conditions = null; + } + return (A) this; + } + + public A withConditions(V1Condition... conditions) { + if (this.conditions != null) { + this.conditions.clear(); + _visitables.remove("conditions"); + } + if (conditions != null) { + for (V1Condition item : conditions) { + this.addToConditions(item); + } + } + return (A) this; + } + public class ConditionsNested extends V1ConditionFluent> implements Nested{ + + V1ConditionBuilder builder; + int index; + + ConditionsNested(int index,V1Condition item) { + this.index = index; + this.builder = new V1ConditionBuilder(this, item); + } + + public N and() { + return (N) V1beta2DeviceTaintRuleStatusFluent.this.setToConditions(index, builder.build()); + } + + public N endCondition() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelectorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelectorBuilder.java new file mode 100644 index 0000000000..3d0df69ecd --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelectorBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2DeviceTaintSelectorBuilder extends V1beta2DeviceTaintSelectorFluent implements VisitableBuilder{ + + V1beta2DeviceTaintSelectorFluent fluent; + + public V1beta2DeviceTaintSelectorBuilder() { + this(new V1beta2DeviceTaintSelector()); + } + + public V1beta2DeviceTaintSelectorBuilder(V1beta2DeviceTaintSelectorFluent fluent) { + this(fluent, new V1beta2DeviceTaintSelector()); + } + + public V1beta2DeviceTaintSelectorBuilder(V1beta2DeviceTaintSelector instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2DeviceTaintSelectorBuilder(V1beta2DeviceTaintSelectorFluent fluent,V1beta2DeviceTaintSelector instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2DeviceTaintSelector build() { + V1beta2DeviceTaintSelector buildable = new V1beta2DeviceTaintSelector(); + buildable.setDevice(fluent.getDevice()); + buildable.setDriver(fluent.getDriver()); + buildable.setPool(fluent.getPool()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelectorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelectorFluent.java new file mode 100644 index 0000000000..dc8eb5f122 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelectorFluent.java @@ -0,0 +1,135 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2DeviceTaintSelectorFluent> extends BaseFluent{ + + private String device; + private String driver; + private String pool; + + public V1beta2DeviceTaintSelectorFluent() { + } + + public V1beta2DeviceTaintSelectorFluent(V1beta2DeviceTaintSelector instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta2DeviceTaintSelector instance) { + instance = instance != null ? instance : new V1beta2DeviceTaintSelector(); + if (instance != null) { + this.withDevice(instance.getDevice()); + this.withDriver(instance.getDriver()); + this.withPool(instance.getPool()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2DeviceTaintSelectorFluent that = (V1beta2DeviceTaintSelectorFluent) o; + if (!(Objects.equals(device, that.device))) { + return false; + } + if (!(Objects.equals(driver, that.driver))) { + return false; + } + if (!(Objects.equals(pool, that.pool))) { + return false; + } + return true; + } + + public String getDevice() { + return this.device; + } + + public String getDriver() { + return this.driver; + } + + public String getPool() { + return this.pool; + } + + public boolean hasDevice() { + return this.device != null; + } + + public boolean hasDriver() { + return this.driver != null; + } + + public boolean hasPool() { + return this.pool != null; + } + + public int hashCode() { + return Objects.hash(device, driver, pool); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(device == null)) { + sb.append("device:"); + sb.append(device); + sb.append(","); + } + if (!(driver == null)) { + sb.append("driver:"); + sb.append(driver); + sb.append(","); + } + if (!(pool == null)) { + sb.append("pool:"); + sb.append(pool); + } + sb.append("}"); + return sb.toString(); + } + + public A withDevice(String device) { + this.device = device; + return (A) this; + } + + public A withDriver(String driver) { + this.driver = driver; + return (A) this; + } + + public A withPool(String pool) { + this.pool = pool; + return (A) this; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java index bfd157605d..8a684999fb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java index 5ce08e5bb3..bc2584a62a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTolerationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java index d588bfdc3f..c77e750474 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java index f019f7a777..fc8fd651bb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequestFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -56,7 +56,7 @@ public A addAllToSelectors(Collection items) { } for (V1beta2DeviceSelector item : items) { V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -68,7 +68,7 @@ public A addAllToTolerations(Collection items) { } for (V1beta2DeviceToleration item : items) { V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -96,7 +96,7 @@ public A addToSelectors(V1beta2DeviceSelector... items) { } for (V1beta2DeviceSelector item : items) { V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - _visitables.get("selectors").add(builder); + this._visitables.get("selectors").add(builder); this.selectors.add(builder); } return (A) this; @@ -107,12 +107,12 @@ public A addToSelectors(int index,V1beta2DeviceSelector item) { this.selectors = new ArrayList(); } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.add(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.add(index, builder); } return (A) this; } @@ -123,7 +123,7 @@ public A addToTolerations(V1beta2DeviceToleration... items) { } for (V1beta2DeviceToleration item : items) { V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - _visitables.get("tolerations").add(builder); + this._visitables.get("tolerations").add(builder); this.tolerations.add(builder); } return (A) this; @@ -134,12 +134,12 @@ public A addToTolerations(int index,V1beta2DeviceToleration item) { this.tolerations = new ArrayList(); } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.add(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.add(index, builder); } return (A) this; } @@ -449,7 +449,7 @@ public A removeMatchingFromSelectors(Predicate pre return (A) this; } Iterator each = selectors.iterator(); - List visitables = _visitables.get("selectors"); + List visitables = this._visitables.get("selectors"); while (each.hasNext()) { V1beta2DeviceSelectorBuilder builder = each.next(); if (predicate.test(builder)) { @@ -465,7 +465,7 @@ public A removeMatchingFromTolerations(Predicate return (A) this; } Iterator each = tolerations.iterator(); - List visitables = _visitables.get("tolerations"); + List visitables = this._visitables.get("tolerations"); while (each.hasNext()) { V1beta2DeviceTolerationBuilder builder = each.next(); if (predicate.test(builder)) { @@ -489,12 +489,12 @@ public A setToSelectors(int index,V1beta2DeviceSelector item) { this.selectors = new ArrayList(); } V1beta2DeviceSelectorBuilder builder = new V1beta2DeviceSelectorBuilder(item); - if (index < 0 || index >= selectors.size()) { - _visitables.get("selectors").add(builder); - selectors.add(builder); + if (index < 0 || index >= this.selectors.size()) { + this._visitables.get("selectors").add(builder); + this.selectors.add(builder); } else { - _visitables.get("selectors").add(builder); - selectors.set(index, builder); + this._visitables.get("selectors").add(builder); + this.selectors.set(index, builder); } return (A) this; } @@ -504,12 +504,12 @@ public A setToTolerations(int index,V1beta2DeviceToleration item) { this.tolerations = new ArrayList(); } V1beta2DeviceTolerationBuilder builder = new V1beta2DeviceTolerationBuilder(item); - if (index < 0 || index >= tolerations.size()) { - _visitables.get("tolerations").add(builder); - tolerations.add(builder); + if (index < 0 || index >= this.tolerations.size()) { + this._visitables.get("tolerations").add(builder); + this.tolerations.add(builder); } else { - _visitables.get("tolerations").add(builder); - tolerations.set(index, builder); + this._visitables.get("tolerations").add(builder); + this.tolerations.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java index 5586e1826d..a9682ac984 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java index 5e35bdac64..0f744ca7b6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceDataFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMappingBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMappingBuilder.java new file mode 100644 index 0000000000..422f9cc22c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMappingBuilder.java @@ -0,0 +1,46 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V1beta2NodeAllocatableResourceMappingBuilder extends V1beta2NodeAllocatableResourceMappingFluent implements VisitableBuilder{ + + V1beta2NodeAllocatableResourceMappingFluent fluent; + + public V1beta2NodeAllocatableResourceMappingBuilder() { + this(new V1beta2NodeAllocatableResourceMapping()); + } + + public V1beta2NodeAllocatableResourceMappingBuilder(V1beta2NodeAllocatableResourceMappingFluent fluent) { + this(fluent, new V1beta2NodeAllocatableResourceMapping()); + } + + public V1beta2NodeAllocatableResourceMappingBuilder(V1beta2NodeAllocatableResourceMapping instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V1beta2NodeAllocatableResourceMappingBuilder(V1beta2NodeAllocatableResourceMappingFluent fluent,V1beta2NodeAllocatableResourceMapping instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V1beta2NodeAllocatableResourceMapping build() { + V1beta2NodeAllocatableResourceMapping buildable = new V1beta2NodeAllocatableResourceMapping(); + buildable.setAllocationMultiplier(fluent.getAllocationMultiplier()); + buildable.setCapacityKey(fluent.getCapacityKey()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMappingFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMappingFluent.java new file mode 100644 index 0000000000..57da55aa6a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMappingFluent.java @@ -0,0 +1,117 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.custom.Quantity; +import io.kubernetes.client.fluent.BaseFluent; +import java.lang.Object; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.Objects; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V1beta2NodeAllocatableResourceMappingFluent> extends BaseFluent{ + + private Quantity allocationMultiplier; + private String capacityKey; + + public V1beta2NodeAllocatableResourceMappingFluent() { + } + + public V1beta2NodeAllocatableResourceMappingFluent(V1beta2NodeAllocatableResourceMapping instance) { + this.copyInstance(instance); + } + + protected void copyInstance(V1beta2NodeAllocatableResourceMapping instance) { + instance = instance != null ? instance : new V1beta2NodeAllocatableResourceMapping(); + if (instance != null) { + this.withAllocationMultiplier(instance.getAllocationMultiplier()); + this.withCapacityKey(instance.getCapacityKey()); + } + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V1beta2NodeAllocatableResourceMappingFluent that = (V1beta2NodeAllocatableResourceMappingFluent) o; + if (!(Objects.equals(allocationMultiplier, that.allocationMultiplier))) { + return false; + } + if (!(Objects.equals(capacityKey, that.capacityKey))) { + return false; + } + return true; + } + + public Quantity getAllocationMultiplier() { + return this.allocationMultiplier; + } + + public String getCapacityKey() { + return this.capacityKey; + } + + public boolean hasAllocationMultiplier() { + return this.allocationMultiplier != null; + } + + public boolean hasCapacityKey() { + return this.capacityKey != null; + } + + public int hashCode() { + return Objects.hash(allocationMultiplier, capacityKey); + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(allocationMultiplier == null)) { + sb.append("allocationMultiplier:"); + sb.append(allocationMultiplier); + sb.append(","); + } + if (!(capacityKey == null)) { + sb.append("capacityKey:"); + sb.append(capacityKey); + } + sb.append("}"); + return sb.toString(); + } + + public A withAllocationMultiplier(Quantity allocationMultiplier) { + this.allocationMultiplier = allocationMultiplier; + return (A) this; + } + + public A withCapacityKey(String capacityKey) { + this.capacityKey = capacityKey; + return (A) this; + } + + public A withNewAllocationMultiplier(String value) { + return (A) this.withAllocationMultiplier(new Quantity(value)); + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java index b0c798c04d..6ecaf1409b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java index 0f7eee978d..df97929adb 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfigurationFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java index 1938a725af..6996210fc1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java index 74f46415d5..656bb8142f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java index 4aa4b63ae4..2f17d33324 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java index 947207e078..da5350d35e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java index 41e4f075dc..88e6045d7d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java index 27460a29d6..30a470971b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta2ResourceClaim item : items) { V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta2ResourceClaim... items) { } for (V1beta2ResourceClaim item : items) { V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta2ResourceClaim item) { this.items = new ArrayList(); } V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicat return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta2ResourceClaimBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta2ResourceClaim item) { this.items = new ArrayList(); } V1beta2ResourceClaimBuilder builder = new V1beta2ResourceClaimBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java index 9fc7f5144c..f671281561 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java index e06aead0e4..1f39da8971 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java index 02e61161ad..4bd2547530 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java index a69581f1bc..322199ba26 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -50,7 +50,7 @@ public A addAllToDevices(Collection items) { } for (V1beta2AllocatedDeviceStatus item : items) { V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").add(builder); + this._visitables.get("devices").add(builder); this.devices.add(builder); } return (A) this; @@ -62,7 +62,7 @@ public A addAllToReservedFor(Collection i } for (V1beta2ResourceClaimConsumerReference item : items) { V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); - _visitables.get("reservedFor").add(builder); + this._visitables.get("reservedFor").add(builder); this.reservedFor.add(builder); } return (A) this; @@ -90,7 +90,7 @@ public A addToDevices(V1beta2AllocatedDeviceStatus... items) { } for (V1beta2AllocatedDeviceStatus item : items) { V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); - _visitables.get("devices").add(builder); + this._visitables.get("devices").add(builder); this.devices.add(builder); } return (A) this; @@ -101,12 +101,12 @@ public A addToDevices(int index,V1beta2AllocatedDeviceStatus item) { this.devices = new ArrayList(); } V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); + if (index < 0 || index >= this.devices.size()) { + this._visitables.get("devices").add(builder); + this.devices.add(builder); } else { - _visitables.get("devices").add(builder); - devices.add(index, builder); + this._visitables.get("devices").add(builder); + this.devices.add(index, builder); } return (A) this; } @@ -117,7 +117,7 @@ public A addToReservedFor(V1beta2ResourceClaimConsumerReference... items) { } for (V1beta2ResourceClaimConsumerReference item : items) { V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); - _visitables.get("reservedFor").add(builder); + this._visitables.get("reservedFor").add(builder); this.reservedFor.add(builder); } return (A) this; @@ -128,12 +128,12 @@ public A addToReservedFor(int index,V1beta2ResourceClaimConsumerReference item) this.reservedFor = new ArrayList(); } V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { - _visitables.get("reservedFor").add(builder); - reservedFor.add(builder); + if (index < 0 || index >= this.reservedFor.size()) { + this._visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); } else { - _visitables.get("reservedFor").add(builder); - reservedFor.add(index, builder); + this._visitables.get("reservedFor").add(builder); + this.reservedFor.add(index, builder); } return (A) this; } @@ -395,7 +395,7 @@ public A removeMatchingFromDevices(Predicate each = devices.iterator(); - List visitables = _visitables.get("devices"); + List visitables = this._visitables.get("devices"); while (each.hasNext()) { V1beta2AllocatedDeviceStatusBuilder builder = each.next(); if (predicate.test(builder)) { @@ -411,7 +411,7 @@ public A removeMatchingFromReservedFor(Predicate each = reservedFor.iterator(); - List visitables = _visitables.get("reservedFor"); + List visitables = this._visitables.get("reservedFor"); while (each.hasNext()) { V1beta2ResourceClaimConsumerReferenceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -435,12 +435,12 @@ public A setToDevices(int index,V1beta2AllocatedDeviceStatus item) { this.devices = new ArrayList(); } V1beta2AllocatedDeviceStatusBuilder builder = new V1beta2AllocatedDeviceStatusBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); + if (index < 0 || index >= this.devices.size()) { + this._visitables.get("devices").add(builder); + this.devices.add(builder); } else { - _visitables.get("devices").add(builder); - devices.set(index, builder); + this._visitables.get("devices").add(builder); + this.devices.set(index, builder); } return (A) this; } @@ -450,12 +450,12 @@ public A setToReservedFor(int index,V1beta2ResourceClaimConsumerReference item) this.reservedFor = new ArrayList(); } V1beta2ResourceClaimConsumerReferenceBuilder builder = new V1beta2ResourceClaimConsumerReferenceBuilder(item); - if (index < 0 || index >= reservedFor.size()) { - _visitables.get("reservedFor").add(builder); - reservedFor.add(builder); + if (index < 0 || index >= this.reservedFor.size()) { + this._visitables.get("reservedFor").add(builder); + this.reservedFor.add(builder); } else { - _visitables.get("reservedFor").add(builder); - reservedFor.set(index, builder); + this._visitables.get("reservedFor").add(builder); + this.reservedFor.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java index bc6b1921a9..058d898eaf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java index 57b5f6024b..3bb6ac4d88 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java index 27e7c51f2a..f84c68bdfd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java index f2e661b8ce..eab1d0011a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta2ResourceClaimTemplate item : items) { V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta2ResourceClaimTemplate... items) { } for (V1beta2ResourceClaimTemplate item : items) { V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta2ResourceClaimTemplate item) { this.items = new ArrayList(); } V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta2ResourceClaimTemplateBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta2ResourceClaimTemplate item) { this.items = new ArrayList(); } V1beta2ResourceClaimTemplateBuilder builder = new V1beta2ResourceClaimTemplateBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java index d54c33bc29..d74d260da3 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java index ce986b25b9..6af846cc86 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java index fd02142320..ae02371e08 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java index 374a0d1b3d..a5d74fcb5b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePoolFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java index df6d08895e..16745e8977 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java index 909a8b1f6a..bda3f1b360 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java index 17d2434e6c..c0af79e66d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java index 245558ac36..6cbfaeecc7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V1beta2ResourceSlice item : items) { V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V1beta2ResourceSlice... items) { } for (V1beta2ResourceSlice item : items) { V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V1beta2ResourceSlice item) { this.items = new ArrayList(); } V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate predicat return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V1beta2ResourceSliceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V1beta2ResourceSlice item) { this.items = new ArrayList(); } V1beta2ResourceSliceBuilder builder = new V1beta2ResourceSliceBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java index 39c7631469..fd839d2b61 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java index 1e9c7c45af..063de908c4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -56,7 +56,7 @@ public A addAllToDevices(Collection items) { } for (V1beta2Device item : items) { V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); - _visitables.get("devices").add(builder); + this._visitables.get("devices").add(builder); this.devices.add(builder); } return (A) this; @@ -68,7 +68,7 @@ public A addAllToSharedCounters(Collection items) { } for (V1beta2CounterSet item : items) { V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); - _visitables.get("sharedCounters").add(builder); + this._visitables.get("sharedCounters").add(builder); this.sharedCounters.add(builder); } return (A) this; @@ -96,7 +96,7 @@ public A addToDevices(V1beta2Device... items) { } for (V1beta2Device item : items) { V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); - _visitables.get("devices").add(builder); + this._visitables.get("devices").add(builder); this.devices.add(builder); } return (A) this; @@ -107,12 +107,12 @@ public A addToDevices(int index,V1beta2Device item) { this.devices = new ArrayList(); } V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); + if (index < 0 || index >= this.devices.size()) { + this._visitables.get("devices").add(builder); + this.devices.add(builder); } else { - _visitables.get("devices").add(builder); - devices.add(index, builder); + this._visitables.get("devices").add(builder); + this.devices.add(index, builder); } return (A) this; } @@ -123,7 +123,7 @@ public A addToSharedCounters(V1beta2CounterSet... items) { } for (V1beta2CounterSet item : items) { V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); - _visitables.get("sharedCounters").add(builder); + this._visitables.get("sharedCounters").add(builder); this.sharedCounters.add(builder); } return (A) this; @@ -134,12 +134,12 @@ public A addToSharedCounters(int index,V1beta2CounterSet item) { this.sharedCounters = new ArrayList(); } V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); - if (index < 0 || index >= sharedCounters.size()) { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(builder); + if (index < 0 || index >= this.sharedCounters.size()) { + this._visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); } else { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(index, builder); + this._visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(index, builder); } return (A) this; } @@ -473,7 +473,7 @@ public A removeMatchingFromDevices(Predicate predicate) { return (A) this; } Iterator each = devices.iterator(); - List visitables = _visitables.get("devices"); + List visitables = this._visitables.get("devices"); while (each.hasNext()) { V1beta2DeviceBuilder builder = each.next(); if (predicate.test(builder)) { @@ -489,7 +489,7 @@ public A removeMatchingFromSharedCounters(Predicate pr return (A) this; } Iterator each = sharedCounters.iterator(); - List visitables = _visitables.get("sharedCounters"); + List visitables = this._visitables.get("sharedCounters"); while (each.hasNext()) { V1beta2CounterSetBuilder builder = each.next(); if (predicate.test(builder)) { @@ -513,12 +513,12 @@ public A setToDevices(int index,V1beta2Device item) { this.devices = new ArrayList(); } V1beta2DeviceBuilder builder = new V1beta2DeviceBuilder(item); - if (index < 0 || index >= devices.size()) { - _visitables.get("devices").add(builder); - devices.add(builder); + if (index < 0 || index >= this.devices.size()) { + this._visitables.get("devices").add(builder); + this.devices.add(builder); } else { - _visitables.get("devices").add(builder); - devices.set(index, builder); + this._visitables.get("devices").add(builder); + this.devices.set(index, builder); } return (A) this; } @@ -528,12 +528,12 @@ public A setToSharedCounters(int index,V1beta2CounterSet item) { this.sharedCounters = new ArrayList(); } V1beta2CounterSetBuilder builder = new V1beta2CounterSetBuilder(item); - if (index < 0 || index >= sharedCounters.size()) { - _visitables.get("sharedCounters").add(builder); - sharedCounters.add(builder); + if (index < 0 || index >= this.sharedCounters.size()) { + this._visitables.get("sharedCounters").add(builder); + this.sharedCounters.add(builder); } else { - _visitables.get("sharedCounters").add(builder); - sharedCounters.set(index, builder); + this._visitables.get("sharedCounters").add(builder); + this.sharedCounters.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryBuilder.java new file mode 100644 index 0000000000..43ff9b630e --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V2APIGroupDiscoveryBuilder extends V2APIGroupDiscoveryFluent implements VisitableBuilder{ + + V2APIGroupDiscoveryFluent fluent; + + public V2APIGroupDiscoveryBuilder() { + this(new V2APIGroupDiscovery()); + } + + public V2APIGroupDiscoveryBuilder(V2APIGroupDiscoveryFluent fluent) { + this(fluent, new V2APIGroupDiscovery()); + } + + public V2APIGroupDiscoveryBuilder(V2APIGroupDiscovery instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V2APIGroupDiscoveryBuilder(V2APIGroupDiscoveryFluent fluent,V2APIGroupDiscovery instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V2APIGroupDiscovery build() { + V2APIGroupDiscovery buildable = new V2APIGroupDiscovery(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setVersions(fluent.buildVersions()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryFluent.java new file mode 100644 index 0000000000..b228cbf4ff --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryFluent.java @@ -0,0 +1,423 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V2APIGroupDiscoveryFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private ArrayList versions; + + public V2APIGroupDiscoveryFluent() { + } + + public V2APIGroupDiscoveryFluent(V2APIGroupDiscovery instance) { + this.copyInstance(instance); + } + + public A addAllToVersions(Collection items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (V2APIVersionDiscovery item : items) { + V2APIVersionDiscoveryBuilder builder = new V2APIVersionDiscoveryBuilder(item); + this._visitables.get("versions").add(builder); + this.versions.add(builder); + } + return (A) this; + } + + public VersionsNested addNewVersion() { + return new VersionsNested(-1, null); + } + + public VersionsNested addNewVersionLike(V2APIVersionDiscovery item) { + return new VersionsNested(-1, item); + } + + public A addToVersions(V2APIVersionDiscovery... items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (V2APIVersionDiscovery item : items) { + V2APIVersionDiscoveryBuilder builder = new V2APIVersionDiscoveryBuilder(item); + this._visitables.get("versions").add(builder); + this.versions.add(builder); + } + return (A) this; + } + + public A addToVersions(int index,V2APIVersionDiscovery item) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + V2APIVersionDiscoveryBuilder builder = new V2APIVersionDiscoveryBuilder(item); + if (index < 0 || index >= this.versions.size()) { + this._visitables.get("versions").add(builder); + this.versions.add(builder); + } else { + this._visitables.get("versions").add(builder); + this.versions.add(index, builder); + } + return (A) this; + } + + public V2APIVersionDiscovery buildFirstVersion() { + return this.versions.get(0).build(); + } + + public V2APIVersionDiscovery buildLastVersion() { + return this.versions.get(versions.size() - 1).build(); + } + + public V2APIVersionDiscovery buildMatchingVersion(Predicate predicate) { + for (V2APIVersionDiscoveryBuilder item : versions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V2APIVersionDiscovery buildVersion(int index) { + return this.versions.get(index).build(); + } + + public List buildVersions() { + return this.versions != null ? build(versions) : null; + } + + protected void copyInstance(V2APIGroupDiscovery instance) { + instance = instance != null ? instance : new V2APIGroupDiscovery(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withVersions(instance.getVersions()); + } + } + + public VersionsNested editFirstVersion() { + if (versions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "versions")); + } + return this.setNewVersionLike(0, this.buildVersion(0)); + } + + public VersionsNested editLastVersion() { + int index = versions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); + } + + public VersionsNested editMatchingVersion(Predicate predicate) { + int index = -1; + for (int i = 0;i < versions.size();i++) { + if (predicate.test(versions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public VersionsNested editVersion(int index) { + if (versions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2APIGroupDiscoveryFluent that = (V2APIGroupDiscoveryFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(versions, that.versions))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingVersion(Predicate predicate) { + for (V2APIVersionDiscoveryBuilder item : versions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasVersions() { + return this.versions != null && !(this.versions.isEmpty()); + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, versions); + } + + public A removeAllFromVersions(Collection items) { + if (this.versions == null) { + return (A) this; + } + for (V2APIVersionDiscovery item : items) { + V2APIVersionDiscoveryBuilder builder = new V2APIVersionDiscoveryBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); + } + return (A) this; + } + + public A removeFromVersions(V2APIVersionDiscovery... items) { + if (this.versions == null) { + return (A) this; + } + for (V2APIVersionDiscovery item : items) { + V2APIVersionDiscoveryBuilder builder = new V2APIVersionDiscoveryBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromVersions(Predicate predicate) { + if (versions == null) { + return (A) this; + } + Iterator each = versions.iterator(); + List visitables = this._visitables.get("versions"); + while (each.hasNext()) { + V2APIVersionDiscoveryBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public VersionsNested setNewVersionLike(int index,V2APIVersionDiscovery item) { + return new VersionsNested(index, item); + } + + public A setToVersions(int index,V2APIVersionDiscovery item) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + V2APIVersionDiscoveryBuilder builder = new V2APIVersionDiscoveryBuilder(item); + if (index < 0 || index >= this.versions.size()) { + this._visitables.get("versions").add(builder); + this.versions.add(builder); + } else { + this._visitables.get("versions").add(builder); + this.versions.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(versions == null) && !(versions.isEmpty())) { + sb.append("versions:"); + sb.append(versions); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withVersions(List versions) { + if (this.versions != null) { + this._visitables.get("versions").clear(); + } + if (versions != null) { + this.versions = new ArrayList(); + for (V2APIVersionDiscovery item : versions) { + this.addToVersions(item); + } + } else { + this.versions = null; + } + return (A) this; + } + + public A withVersions(V2APIVersionDiscovery... versions) { + if (this.versions != null) { + this.versions.clear(); + _visitables.remove("versions"); + } + if (versions != null) { + for (V2APIVersionDiscovery item : versions) { + this.addToVersions(item); + } + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V2APIGroupDiscoveryFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class VersionsNested extends V2APIVersionDiscoveryFluent> implements Nested{ + + V2APIVersionDiscoveryBuilder builder; + int index; + + VersionsNested(int index,V2APIVersionDiscovery item) { + this.index = index; + this.builder = new V2APIVersionDiscoveryBuilder(this, item); + } + + public N and() { + return (N) V2APIGroupDiscoveryFluent.this.setToVersions(index, builder.build()); + } + + public N endVersion() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryListBuilder.java new file mode 100644 index 0000000000..3121a239c5 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryListBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V2APIGroupDiscoveryListBuilder extends V2APIGroupDiscoveryListFluent implements VisitableBuilder{ + + V2APIGroupDiscoveryListFluent fluent; + + public V2APIGroupDiscoveryListBuilder() { + this(new V2APIGroupDiscoveryList()); + } + + public V2APIGroupDiscoveryListBuilder(V2APIGroupDiscoveryListFluent fluent) { + this(fluent, new V2APIGroupDiscoveryList()); + } + + public V2APIGroupDiscoveryListBuilder(V2APIGroupDiscoveryList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V2APIGroupDiscoveryListBuilder(V2APIGroupDiscoveryListFluent fluent,V2APIGroupDiscoveryList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V2APIGroupDiscoveryList build() { + V2APIGroupDiscoveryList buildable = new V2APIGroupDiscoveryList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setItems(fluent.buildItems()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryListFluent.java new file mode 100644 index 0000000000..e9251e24df --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryListFluent.java @@ -0,0 +1,423 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V2APIGroupDiscoveryListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V2APIGroupDiscoveryListFluent() { + } + + public V2APIGroupDiscoveryListFluent(V2APIGroupDiscoveryList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V2APIGroupDiscovery item : items) { + V2APIGroupDiscoveryBuilder builder = new V2APIGroupDiscoveryBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V2APIGroupDiscovery item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V2APIGroupDiscovery... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V2APIGroupDiscovery item : items) { + V2APIGroupDiscoveryBuilder builder = new V2APIGroupDiscoveryBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V2APIGroupDiscovery item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V2APIGroupDiscoveryBuilder builder = new V2APIGroupDiscoveryBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.add(index, builder); + } + return (A) this; + } + + public V2APIGroupDiscovery buildFirstItem() { + return this.items.get(0).build(); + } + + public V2APIGroupDiscovery buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V2APIGroupDiscovery buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V2APIGroupDiscovery buildMatchingItem(Predicate predicate) { + for (V2APIGroupDiscoveryBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V2APIGroupDiscoveryList instance) { + instance = instance != null ? instance : new V2APIGroupDiscoveryList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withItems(instance.getItems()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2APIGroupDiscoveryListFluent that = (V2APIGroupDiscoveryListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V2APIGroupDiscoveryBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, items); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V2APIGroupDiscovery item : items) { + V2APIGroupDiscoveryBuilder builder = new V2APIGroupDiscoveryBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V2APIGroupDiscovery... items) { + if (this.items == null) { + return (A) this; + } + for (V2APIGroupDiscovery item : items) { + V2APIGroupDiscoveryBuilder builder = new V2APIGroupDiscoveryBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = this._visitables.get("items"); + while (each.hasNext()) { + V2APIGroupDiscoveryBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V2APIGroupDiscovery item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V2APIGroupDiscovery item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V2APIGroupDiscoveryBuilder builder = new V2APIGroupDiscoveryBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V2APIGroupDiscovery item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V2APIGroupDiscovery... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V2APIGroupDiscovery item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V2APIGroupDiscoveryFluent> implements Nested{ + + V2APIGroupDiscoveryBuilder builder; + int index; + + ItemsNested(int index,V2APIGroupDiscovery item) { + this.index = index; + this.builder = new V2APIGroupDiscoveryBuilder(this, item); + } + + public N and() { + return (N) V2APIGroupDiscoveryListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V2APIGroupDiscoveryListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscoveryBuilder.java new file mode 100644 index 0000000000..3d11bcc6d8 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscoveryBuilder.java @@ -0,0 +1,52 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V2APIResourceDiscoveryBuilder extends V2APIResourceDiscoveryFluent implements VisitableBuilder{ + + V2APIResourceDiscoveryFluent fluent; + + public V2APIResourceDiscoveryBuilder() { + this(new V2APIResourceDiscovery()); + } + + public V2APIResourceDiscoveryBuilder(V2APIResourceDiscoveryFluent fluent) { + this(fluent, new V2APIResourceDiscovery()); + } + + public V2APIResourceDiscoveryBuilder(V2APIResourceDiscovery instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V2APIResourceDiscoveryBuilder(V2APIResourceDiscoveryFluent fluent,V2APIResourceDiscovery instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V2APIResourceDiscovery build() { + V2APIResourceDiscovery buildable = new V2APIResourceDiscovery(); + buildable.setResource(fluent.getResource()); + buildable.setResponseKind(fluent.buildResponseKind()); + buildable.setScope(fluent.getScope()); + buildable.setSingularResource(fluent.getSingularResource()); + buildable.setVerbs(fluent.getVerbs()); + buildable.setShortNames(fluent.getShortNames()); + buildable.setCategories(fluent.getCategories()); + buildable.setSubresources(fluent.buildSubresources()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscoveryFluent.java new file mode 100644 index 0000000000..4c517f9a60 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscoveryFluent.java @@ -0,0 +1,833 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V2APIResourceDiscoveryFluent> extends BaseFluent{ + + private List categories; + private String resource; + private V1GroupVersionKindBuilder responseKind; + private String scope; + private List shortNames; + private String singularResource; + private ArrayList subresources; + private List verbs; + + public V2APIResourceDiscoveryFluent() { + } + + public V2APIResourceDiscoveryFluent(V2APIResourceDiscovery instance) { + this.copyInstance(instance); + } + + public A addAllToCategories(Collection items) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + for (String item : items) { + this.categories.add(item); + } + return (A) this; + } + + public A addAllToShortNames(Collection items) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + for (String item : items) { + this.shortNames.add(item); + } + return (A) this; + } + + public A addAllToSubresources(Collection items) { + if (this.subresources == null) { + this.subresources = new ArrayList(); + } + for (V2APISubresourceDiscovery item : items) { + V2APISubresourceDiscoveryBuilder builder = new V2APISubresourceDiscoveryBuilder(item); + this._visitables.get("subresources").add(builder); + this.subresources.add(builder); + } + return (A) this; + } + + public A addAllToVerbs(Collection items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; + } + + public SubresourcesNested addNewSubresource() { + return new SubresourcesNested(-1, null); + } + + public SubresourcesNested addNewSubresourceLike(V2APISubresourceDiscovery item) { + return new SubresourcesNested(-1, item); + } + + public A addToCategories(String... items) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + for (String item : items) { + this.categories.add(item); + } + return (A) this; + } + + public A addToCategories(int index,String item) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + this.categories.add(index, item); + return (A) this; + } + + public A addToShortNames(String... items) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + for (String item : items) { + this.shortNames.add(item); + } + return (A) this; + } + + public A addToShortNames(int index,String item) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + this.shortNames.add(index, item); + return (A) this; + } + + public A addToSubresources(V2APISubresourceDiscovery... items) { + if (this.subresources == null) { + this.subresources = new ArrayList(); + } + for (V2APISubresourceDiscovery item : items) { + V2APISubresourceDiscoveryBuilder builder = new V2APISubresourceDiscoveryBuilder(item); + this._visitables.get("subresources").add(builder); + this.subresources.add(builder); + } + return (A) this; + } + + public A addToSubresources(int index,V2APISubresourceDiscovery item) { + if (this.subresources == null) { + this.subresources = new ArrayList(); + } + V2APISubresourceDiscoveryBuilder builder = new V2APISubresourceDiscoveryBuilder(item); + if (index < 0 || index >= this.subresources.size()) { + this._visitables.get("subresources").add(builder); + this.subresources.add(builder); + } else { + this._visitables.get("subresources").add(builder); + this.subresources.add(index, builder); + } + return (A) this; + } + + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; + } + + public A addToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.add(index, item); + return (A) this; + } + + public V2APISubresourceDiscovery buildFirstSubresource() { + return this.subresources.get(0).build(); + } + + public V2APISubresourceDiscovery buildLastSubresource() { + return this.subresources.get(subresources.size() - 1).build(); + } + + public V2APISubresourceDiscovery buildMatchingSubresource(Predicate predicate) { + for (V2APISubresourceDiscoveryBuilder item : subresources) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1GroupVersionKind buildResponseKind() { + return this.responseKind != null ? this.responseKind.build() : null; + } + + public V2APISubresourceDiscovery buildSubresource(int index) { + return this.subresources.get(index).build(); + } + + public List buildSubresources() { + return this.subresources != null ? build(subresources) : null; + } + + protected void copyInstance(V2APIResourceDiscovery instance) { + instance = instance != null ? instance : new V2APIResourceDiscovery(); + if (instance != null) { + this.withResource(instance.getResource()); + this.withResponseKind(instance.getResponseKind()); + this.withScope(instance.getScope()); + this.withSingularResource(instance.getSingularResource()); + this.withVerbs(instance.getVerbs()); + this.withShortNames(instance.getShortNames()); + this.withCategories(instance.getCategories()); + this.withSubresources(instance.getSubresources()); + } + } + + public SubresourcesNested editFirstSubresource() { + if (subresources.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "subresources")); + } + return this.setNewSubresourceLike(0, this.buildSubresource(0)); + } + + public SubresourcesNested editLastSubresource() { + int index = subresources.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "subresources")); + } + return this.setNewSubresourceLike(index, this.buildSubresource(index)); + } + + public SubresourcesNested editMatchingSubresource(Predicate predicate) { + int index = -1; + for (int i = 0;i < subresources.size();i++) { + if (predicate.test(subresources.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "subresources")); + } + return this.setNewSubresourceLike(index, this.buildSubresource(index)); + } + + public ResponseKindNested editOrNewResponseKind() { + return this.withNewResponseKindLike(Optional.ofNullable(this.buildResponseKind()).orElse(new V1GroupVersionKindBuilder().build())); + } + + public ResponseKindNested editOrNewResponseKindLike(V1GroupVersionKind item) { + return this.withNewResponseKindLike(Optional.ofNullable(this.buildResponseKind()).orElse(item)); + } + + public ResponseKindNested editResponseKind() { + return this.withNewResponseKindLike(Optional.ofNullable(this.buildResponseKind()).orElse(null)); + } + + public SubresourcesNested editSubresource(int index) { + if (subresources.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subresources")); + } + return this.setNewSubresourceLike(index, this.buildSubresource(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2APIResourceDiscoveryFluent that = (V2APIResourceDiscoveryFluent) o; + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(responseKind, that.responseKind))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } + if (!(Objects.equals(singularResource, that.singularResource))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + if (!(Objects.equals(shortNames, that.shortNames))) { + return false; + } + if (!(Objects.equals(categories, that.categories))) { + return false; + } + if (!(Objects.equals(subresources, that.subresources))) { + return false; + } + return true; + } + + public List getCategories() { + return this.categories; + } + + public String getCategory(int index) { + return this.categories.get(index); + } + + public String getFirstCategory() { + return this.categories.get(0); + } + + public String getFirstShortName() { + return this.shortNames.get(0); + } + + public String getFirstVerb() { + return this.verbs.get(0); + } + + public String getLastCategory() { + return this.categories.get(categories.size() - 1); + } + + public String getLastShortName() { + return this.shortNames.get(shortNames.size() - 1); + } + + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + + public String getMatchingCategory(Predicate predicate) { + for (String item : categories) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingShortName(Predicate predicate) { + for (String item : shortNames) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getResource() { + return this.resource; + } + + public String getScope() { + return this.scope; + } + + public String getShortName(int index) { + return this.shortNames.get(index); + } + + public List getShortNames() { + return this.shortNames; + } + + public String getSingularResource() { + return this.singularResource; + } + + public String getVerb(int index) { + return this.verbs.get(index); + } + + public List getVerbs() { + return this.verbs; + } + + public boolean hasCategories() { + return this.categories != null && !(this.categories.isEmpty()); + } + + public boolean hasMatchingCategory(Predicate predicate) { + for (String item : categories) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingShortName(Predicate predicate) { + for (String item : shortNames) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSubresource(Predicate predicate) { + for (V2APISubresourceDiscoveryBuilder item : subresources) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResource() { + return this.resource != null; + } + + public boolean hasResponseKind() { + return this.responseKind != null; + } + + public boolean hasScope() { + return this.scope != null; + } + + public boolean hasShortNames() { + return this.shortNames != null && !(this.shortNames.isEmpty()); + } + + public boolean hasSingularResource() { + return this.singularResource != null; + } + + public boolean hasSubresources() { + return this.subresources != null && !(this.subresources.isEmpty()); + } + + public boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); + } + + public int hashCode() { + return Objects.hash(resource, responseKind, scope, singularResource, verbs, shortNames, categories, subresources); + } + + public A removeAllFromCategories(Collection items) { + if (this.categories == null) { + return (A) this; + } + for (String item : items) { + this.categories.remove(item); + } + return (A) this; + } + + public A removeAllFromShortNames(Collection items) { + if (this.shortNames == null) { + return (A) this; + } + for (String item : items) { + this.shortNames.remove(item); + } + return (A) this; + } + + public A removeAllFromSubresources(Collection items) { + if (this.subresources == null) { + return (A) this; + } + for (V2APISubresourceDiscovery item : items) { + V2APISubresourceDiscoveryBuilder builder = new V2APISubresourceDiscoveryBuilder(item); + _visitables.get("subresources").remove(builder); + this.subresources.remove(builder); + } + return (A) this; + } + + public A removeAllFromVerbs(Collection items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; + } + + public A removeFromCategories(String... items) { + if (this.categories == null) { + return (A) this; + } + for (String item : items) { + this.categories.remove(item); + } + return (A) this; + } + + public A removeFromShortNames(String... items) { + if (this.shortNames == null) { + return (A) this; + } + for (String item : items) { + this.shortNames.remove(item); + } + return (A) this; + } + + public A removeFromSubresources(V2APISubresourceDiscovery... items) { + if (this.subresources == null) { + return (A) this; + } + for (V2APISubresourceDiscovery item : items) { + V2APISubresourceDiscoveryBuilder builder = new V2APISubresourceDiscoveryBuilder(item); + _visitables.get("subresources").remove(builder); + this.subresources.remove(builder); + } + return (A) this; + } + + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; + } + + public A removeMatchingFromSubresources(Predicate predicate) { + if (subresources == null) { + return (A) this; + } + Iterator each = subresources.iterator(); + List visitables = this._visitables.get("subresources"); + while (each.hasNext()) { + V2APISubresourceDiscoveryBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public SubresourcesNested setNewSubresourceLike(int index,V2APISubresourceDiscovery item) { + return new SubresourcesNested(index, item); + } + + public A setToCategories(int index,String item) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + this.categories.set(index, item); + return (A) this; + } + + public A setToShortNames(int index,String item) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + this.shortNames.set(index, item); + return (A) this; + } + + public A setToSubresources(int index,V2APISubresourceDiscovery item) { + if (this.subresources == null) { + this.subresources = new ArrayList(); + } + V2APISubresourceDiscoveryBuilder builder = new V2APISubresourceDiscoveryBuilder(item); + if (index < 0 || index >= this.subresources.size()) { + this._visitables.get("subresources").add(builder); + this.subresources.add(builder); + } else { + this._visitables.get("subresources").add(builder); + this.subresources.set(index, builder); + } + return (A) this; + } + + public A setToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(responseKind == null)) { + sb.append("responseKind:"); + sb.append(responseKind); + sb.append(","); + } + if (!(scope == null)) { + sb.append("scope:"); + sb.append(scope); + sb.append(","); + } + if (!(singularResource == null)) { + sb.append("singularResource:"); + sb.append(singularResource); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + sb.append(","); + } + if (!(shortNames == null) && !(shortNames.isEmpty())) { + sb.append("shortNames:"); + sb.append(shortNames); + sb.append(","); + } + if (!(categories == null) && !(categories.isEmpty())) { + sb.append("categories:"); + sb.append(categories); + sb.append(","); + } + if (!(subresources == null) && !(subresources.isEmpty())) { + sb.append("subresources:"); + sb.append(subresources); + } + sb.append("}"); + return sb.toString(); + } + + public A withCategories(List categories) { + if (categories != null) { + this.categories = new ArrayList(); + for (String item : categories) { + this.addToCategories(item); + } + } else { + this.categories = null; + } + return (A) this; + } + + public A withCategories(String... categories) { + if (this.categories != null) { + this.categories.clear(); + _visitables.remove("categories"); + } + if (categories != null) { + for (String item : categories) { + this.addToCategories(item); + } + } + return (A) this; + } + + public ResponseKindNested withNewResponseKind() { + return new ResponseKindNested(null); + } + + public ResponseKindNested withNewResponseKindLike(V1GroupVersionKind item) { + return new ResponseKindNested(item); + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public A withResponseKind(V1GroupVersionKind responseKind) { + this._visitables.remove("responseKind"); + if (responseKind != null) { + this.responseKind = new V1GroupVersionKindBuilder(responseKind); + this._visitables.get("responseKind").add(this.responseKind); + } else { + this.responseKind = null; + this._visitables.get("responseKind").remove(this.responseKind); + } + return (A) this; + } + + public A withScope(String scope) { + this.scope = scope; + return (A) this; + } + + public A withShortNames(List shortNames) { + if (shortNames != null) { + this.shortNames = new ArrayList(); + for (String item : shortNames) { + this.addToShortNames(item); + } + } else { + this.shortNames = null; + } + return (A) this; + } + + public A withShortNames(String... shortNames) { + if (this.shortNames != null) { + this.shortNames.clear(); + _visitables.remove("shortNames"); + } + if (shortNames != null) { + for (String item : shortNames) { + this.addToShortNames(item); + } + } + return (A) this; + } + + public A withSingularResource(String singularResource) { + this.singularResource = singularResource; + return (A) this; + } + + public A withSubresources(List subresources) { + if (this.subresources != null) { + this._visitables.get("subresources").clear(); + } + if (subresources != null) { + this.subresources = new ArrayList(); + for (V2APISubresourceDiscovery item : subresources) { + this.addToSubresources(item); + } + } else { + this.subresources = null; + } + return (A) this; + } + + public A withSubresources(V2APISubresourceDiscovery... subresources) { + if (this.subresources != null) { + this.subresources.clear(); + _visitables.remove("subresources"); + } + if (subresources != null) { + for (V2APISubresourceDiscovery item : subresources) { + this.addToSubresources(item); + } + } + return (A) this; + } + + public A withVerbs(List verbs) { + if (verbs != null) { + this.verbs = new ArrayList(); + for (String item : verbs) { + this.addToVerbs(item); + } + } else { + this.verbs = null; + } + return (A) this; + } + + public A withVerbs(String... verbs) { + if (this.verbs != null) { + this.verbs.clear(); + _visitables.remove("verbs"); + } + if (verbs != null) { + for (String item : verbs) { + this.addToVerbs(item); + } + } + return (A) this; + } + public class ResponseKindNested extends V1GroupVersionKindFluent> implements Nested{ + + V1GroupVersionKindBuilder builder; + + ResponseKindNested(V1GroupVersionKind item) { + this.builder = new V1GroupVersionKindBuilder(this, item); + } + + public N and() { + return (N) V2APIResourceDiscoveryFluent.this.withResponseKind(builder.build()); + } + + public N endResponseKind() { + return and(); + } + + } + public class SubresourcesNested extends V2APISubresourceDiscoveryFluent> implements Nested{ + + V2APISubresourceDiscoveryBuilder builder; + int index; + + SubresourcesNested(int index,V2APISubresourceDiscovery item) { + this.index = index; + this.builder = new V2APISubresourceDiscoveryBuilder(this, item); + } + + public N and() { + return (N) V2APIResourceDiscoveryFluent.this.setToSubresources(index, builder.build()); + } + + public N endSubresource() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscoveryBuilder.java new file mode 100644 index 0000000000..7404702a78 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscoveryBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V2APISubresourceDiscoveryBuilder extends V2APISubresourceDiscoveryFluent implements VisitableBuilder{ + + V2APISubresourceDiscoveryFluent fluent; + + public V2APISubresourceDiscoveryBuilder() { + this(new V2APISubresourceDiscovery()); + } + + public V2APISubresourceDiscoveryBuilder(V2APISubresourceDiscoveryFluent fluent) { + this(fluent, new V2APISubresourceDiscovery()); + } + + public V2APISubresourceDiscoveryBuilder(V2APISubresourceDiscovery instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V2APISubresourceDiscoveryBuilder(V2APISubresourceDiscoveryFluent fluent,V2APISubresourceDiscovery instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V2APISubresourceDiscovery build() { + V2APISubresourceDiscovery buildable = new V2APISubresourceDiscovery(); + buildable.setSubresource(fluent.getSubresource()); + buildable.setResponseKind(fluent.buildResponseKind()); + buildable.setAcceptedTypes(fluent.buildAcceptedTypes()); + buildable.setVerbs(fluent.getVerbs()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscoveryFluent.java new file mode 100644 index 0000000000..d2b4fdf4dc --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscoveryFluent.java @@ -0,0 +1,529 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V2APISubresourceDiscoveryFluent> extends BaseFluent{ + + private ArrayList acceptedTypes; + private V1GroupVersionKindBuilder responseKind; + private String subresource; + private List verbs; + + public V2APISubresourceDiscoveryFluent() { + } + + public V2APISubresourceDiscoveryFluent(V2APISubresourceDiscovery instance) { + this.copyInstance(instance); + } + + public A addAllToAcceptedTypes(Collection items) { + if (this.acceptedTypes == null) { + this.acceptedTypes = new ArrayList(); + } + for (V1GroupVersionKind item : items) { + V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); + this._visitables.get("acceptedTypes").add(builder); + this.acceptedTypes.add(builder); + } + return (A) this; + } + + public A addAllToVerbs(Collection items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; + } + + public AcceptedTypesNested addNewAcceptedType() { + return new AcceptedTypesNested(-1, null); + } + + public AcceptedTypesNested addNewAcceptedTypeLike(V1GroupVersionKind item) { + return new AcceptedTypesNested(-1, item); + } + + public A addToAcceptedTypes(V1GroupVersionKind... items) { + if (this.acceptedTypes == null) { + this.acceptedTypes = new ArrayList(); + } + for (V1GroupVersionKind item : items) { + V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); + this._visitables.get("acceptedTypes").add(builder); + this.acceptedTypes.add(builder); + } + return (A) this; + } + + public A addToAcceptedTypes(int index,V1GroupVersionKind item) { + if (this.acceptedTypes == null) { + this.acceptedTypes = new ArrayList(); + } + V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); + if (index < 0 || index >= this.acceptedTypes.size()) { + this._visitables.get("acceptedTypes").add(builder); + this.acceptedTypes.add(builder); + } else { + this._visitables.get("acceptedTypes").add(builder); + this.acceptedTypes.add(index, builder); + } + return (A) this; + } + + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; + } + + public A addToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.add(index, item); + return (A) this; + } + + public V1GroupVersionKind buildAcceptedType(int index) { + return this.acceptedTypes.get(index).build(); + } + + public List buildAcceptedTypes() { + return this.acceptedTypes != null ? build(acceptedTypes) : null; + } + + public V1GroupVersionKind buildFirstAcceptedType() { + return this.acceptedTypes.get(0).build(); + } + + public V1GroupVersionKind buildLastAcceptedType() { + return this.acceptedTypes.get(acceptedTypes.size() - 1).build(); + } + + public V1GroupVersionKind buildMatchingAcceptedType(Predicate predicate) { + for (V1GroupVersionKindBuilder item : acceptedTypes) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1GroupVersionKind buildResponseKind() { + return this.responseKind != null ? this.responseKind.build() : null; + } + + protected void copyInstance(V2APISubresourceDiscovery instance) { + instance = instance != null ? instance : new V2APISubresourceDiscovery(); + if (instance != null) { + this.withSubresource(instance.getSubresource()); + this.withResponseKind(instance.getResponseKind()); + this.withAcceptedTypes(instance.getAcceptedTypes()); + this.withVerbs(instance.getVerbs()); + } + } + + public AcceptedTypesNested editAcceptedType(int index) { + if (acceptedTypes.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "acceptedTypes")); + } + return this.setNewAcceptedTypeLike(index, this.buildAcceptedType(index)); + } + + public AcceptedTypesNested editFirstAcceptedType() { + if (acceptedTypes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "acceptedTypes")); + } + return this.setNewAcceptedTypeLike(0, this.buildAcceptedType(0)); + } + + public AcceptedTypesNested editLastAcceptedType() { + int index = acceptedTypes.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "acceptedTypes")); + } + return this.setNewAcceptedTypeLike(index, this.buildAcceptedType(index)); + } + + public AcceptedTypesNested editMatchingAcceptedType(Predicate predicate) { + int index = -1; + for (int i = 0;i < acceptedTypes.size();i++) { + if (predicate.test(acceptedTypes.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "acceptedTypes")); + } + return this.setNewAcceptedTypeLike(index, this.buildAcceptedType(index)); + } + + public ResponseKindNested editOrNewResponseKind() { + return this.withNewResponseKindLike(Optional.ofNullable(this.buildResponseKind()).orElse(new V1GroupVersionKindBuilder().build())); + } + + public ResponseKindNested editOrNewResponseKindLike(V1GroupVersionKind item) { + return this.withNewResponseKindLike(Optional.ofNullable(this.buildResponseKind()).orElse(item)); + } + + public ResponseKindNested editResponseKind() { + return this.withNewResponseKindLike(Optional.ofNullable(this.buildResponseKind()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2APISubresourceDiscoveryFluent that = (V2APISubresourceDiscoveryFluent) o; + if (!(Objects.equals(subresource, that.subresource))) { + return false; + } + if (!(Objects.equals(responseKind, that.responseKind))) { + return false; + } + if (!(Objects.equals(acceptedTypes, that.acceptedTypes))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + return true; + } + + public String getFirstVerb() { + return this.verbs.get(0); + } + + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getSubresource() { + return this.subresource; + } + + public String getVerb(int index) { + return this.verbs.get(index); + } + + public List getVerbs() { + return this.verbs; + } + + public boolean hasAcceptedTypes() { + return this.acceptedTypes != null && !(this.acceptedTypes.isEmpty()); + } + + public boolean hasMatchingAcceptedType(Predicate predicate) { + for (V1GroupVersionKindBuilder item : acceptedTypes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResponseKind() { + return this.responseKind != null; + } + + public boolean hasSubresource() { + return this.subresource != null; + } + + public boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); + } + + public int hashCode() { + return Objects.hash(subresource, responseKind, acceptedTypes, verbs); + } + + public A removeAllFromAcceptedTypes(Collection items) { + if (this.acceptedTypes == null) { + return (A) this; + } + for (V1GroupVersionKind item : items) { + V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); + _visitables.get("acceptedTypes").remove(builder); + this.acceptedTypes.remove(builder); + } + return (A) this; + } + + public A removeAllFromVerbs(Collection items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; + } + + public A removeFromAcceptedTypes(V1GroupVersionKind... items) { + if (this.acceptedTypes == null) { + return (A) this; + } + for (V1GroupVersionKind item : items) { + V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); + _visitables.get("acceptedTypes").remove(builder); + this.acceptedTypes.remove(builder); + } + return (A) this; + } + + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; + } + + public A removeMatchingFromAcceptedTypes(Predicate predicate) { + if (acceptedTypes == null) { + return (A) this; + } + Iterator each = acceptedTypes.iterator(); + List visitables = this._visitables.get("acceptedTypes"); + while (each.hasNext()) { + V1GroupVersionKindBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public AcceptedTypesNested setNewAcceptedTypeLike(int index,V1GroupVersionKind item) { + return new AcceptedTypesNested(index, item); + } + + public A setToAcceptedTypes(int index,V1GroupVersionKind item) { + if (this.acceptedTypes == null) { + this.acceptedTypes = new ArrayList(); + } + V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); + if (index < 0 || index >= this.acceptedTypes.size()) { + this._visitables.get("acceptedTypes").add(builder); + this.acceptedTypes.add(builder); + } else { + this._visitables.get("acceptedTypes").add(builder); + this.acceptedTypes.set(index, builder); + } + return (A) this; + } + + public A setToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(subresource == null)) { + sb.append("subresource:"); + sb.append(subresource); + sb.append(","); + } + if (!(responseKind == null)) { + sb.append("responseKind:"); + sb.append(responseKind); + sb.append(","); + } + if (!(acceptedTypes == null) && !(acceptedTypes.isEmpty())) { + sb.append("acceptedTypes:"); + sb.append(acceptedTypes); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + } + sb.append("}"); + return sb.toString(); + } + + public A withAcceptedTypes(List acceptedTypes) { + if (this.acceptedTypes != null) { + this._visitables.get("acceptedTypes").clear(); + } + if (acceptedTypes != null) { + this.acceptedTypes = new ArrayList(); + for (V1GroupVersionKind item : acceptedTypes) { + this.addToAcceptedTypes(item); + } + } else { + this.acceptedTypes = null; + } + return (A) this; + } + + public A withAcceptedTypes(V1GroupVersionKind... acceptedTypes) { + if (this.acceptedTypes != null) { + this.acceptedTypes.clear(); + _visitables.remove("acceptedTypes"); + } + if (acceptedTypes != null) { + for (V1GroupVersionKind item : acceptedTypes) { + this.addToAcceptedTypes(item); + } + } + return (A) this; + } + + public ResponseKindNested withNewResponseKind() { + return new ResponseKindNested(null); + } + + public ResponseKindNested withNewResponseKindLike(V1GroupVersionKind item) { + return new ResponseKindNested(item); + } + + public A withResponseKind(V1GroupVersionKind responseKind) { + this._visitables.remove("responseKind"); + if (responseKind != null) { + this.responseKind = new V1GroupVersionKindBuilder(responseKind); + this._visitables.get("responseKind").add(this.responseKind); + } else { + this.responseKind = null; + this._visitables.get("responseKind").remove(this.responseKind); + } + return (A) this; + } + + public A withSubresource(String subresource) { + this.subresource = subresource; + return (A) this; + } + + public A withVerbs(List verbs) { + if (verbs != null) { + this.verbs = new ArrayList(); + for (String item : verbs) { + this.addToVerbs(item); + } + } else { + this.verbs = null; + } + return (A) this; + } + + public A withVerbs(String... verbs) { + if (this.verbs != null) { + this.verbs.clear(); + _visitables.remove("verbs"); + } + if (verbs != null) { + for (String item : verbs) { + this.addToVerbs(item); + } + } + return (A) this; + } + public class AcceptedTypesNested extends V1GroupVersionKindFluent> implements Nested{ + + V1GroupVersionKindBuilder builder; + int index; + + AcceptedTypesNested(int index,V1GroupVersionKind item) { + this.index = index; + this.builder = new V1GroupVersionKindBuilder(this, item); + } + + public N and() { + return (N) V2APISubresourceDiscoveryFluent.this.setToAcceptedTypes(index, builder.build()); + } + + public N endAcceptedType() { + return and(); + } + + } + public class ResponseKindNested extends V1GroupVersionKindFluent> implements Nested{ + + V1GroupVersionKindBuilder builder; + + ResponseKindNested(V1GroupVersionKind item) { + this.builder = new V1GroupVersionKindBuilder(this, item); + } + + public N and() { + return (N) V2APISubresourceDiscoveryFluent.this.withResponseKind(builder.build()); + } + + public N endResponseKind() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscoveryBuilder.java new file mode 100644 index 0000000000..a541c6341a --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscoveryBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V2APIVersionDiscoveryBuilder extends V2APIVersionDiscoveryFluent implements VisitableBuilder{ + + V2APIVersionDiscoveryFluent fluent; + + public V2APIVersionDiscoveryBuilder() { + this(new V2APIVersionDiscovery()); + } + + public V2APIVersionDiscoveryBuilder(V2APIVersionDiscoveryFluent fluent) { + this(fluent, new V2APIVersionDiscovery()); + } + + public V2APIVersionDiscoveryBuilder(V2APIVersionDiscovery instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V2APIVersionDiscoveryBuilder(V2APIVersionDiscoveryFluent fluent,V2APIVersionDiscovery instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V2APIVersionDiscovery build() { + V2APIVersionDiscovery buildable = new V2APIVersionDiscovery(); + buildable.setVersion(fluent.getVersion()); + buildable.setResources(fluent.buildResources()); + buildable.setFreshness(fluent.getFreshness()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscoveryFluent.java new file mode 100644 index 0000000000..2df6d1fbd2 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscoveryFluent.java @@ -0,0 +1,355 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V2APIVersionDiscoveryFluent> extends BaseFluent{ + + private String freshness; + private ArrayList resources; + private String version; + + public V2APIVersionDiscoveryFluent() { + } + + public V2APIVersionDiscoveryFluent(V2APIVersionDiscovery instance) { + this.copyInstance(instance); + } + + public A addAllToResources(Collection items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (V2APIResourceDiscovery item : items) { + V2APIResourceDiscoveryBuilder builder = new V2APIResourceDiscoveryBuilder(item); + this._visitables.get("resources").add(builder); + this.resources.add(builder); + } + return (A) this; + } + + public ResourcesNested addNewResource() { + return new ResourcesNested(-1, null); + } + + public ResourcesNested addNewResourceLike(V2APIResourceDiscovery item) { + return new ResourcesNested(-1, item); + } + + public A addToResources(V2APIResourceDiscovery... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (V2APIResourceDiscovery item : items) { + V2APIResourceDiscoveryBuilder builder = new V2APIResourceDiscoveryBuilder(item); + this._visitables.get("resources").add(builder); + this.resources.add(builder); + } + return (A) this; + } + + public A addToResources(int index,V2APIResourceDiscovery item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + V2APIResourceDiscoveryBuilder builder = new V2APIResourceDiscoveryBuilder(item); + if (index < 0 || index >= this.resources.size()) { + this._visitables.get("resources").add(builder); + this.resources.add(builder); + } else { + this._visitables.get("resources").add(builder); + this.resources.add(index, builder); + } + return (A) this; + } + + public V2APIResourceDiscovery buildFirstResource() { + return this.resources.get(0).build(); + } + + public V2APIResourceDiscovery buildLastResource() { + return this.resources.get(resources.size() - 1).build(); + } + + public V2APIResourceDiscovery buildMatchingResource(Predicate predicate) { + for (V2APIResourceDiscoveryBuilder item : resources) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V2APIResourceDiscovery buildResource(int index) { + return this.resources.get(index).build(); + } + + public List buildResources() { + return this.resources != null ? build(resources) : null; + } + + protected void copyInstance(V2APIVersionDiscovery instance) { + instance = instance != null ? instance : new V2APIVersionDiscovery(); + if (instance != null) { + this.withVersion(instance.getVersion()); + this.withResources(instance.getResources()); + this.withFreshness(instance.getFreshness()); + } + } + + public ResourcesNested editFirstResource() { + if (resources.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resources")); + } + return this.setNewResourceLike(0, this.buildResource(0)); + } + + public ResourcesNested editLastResource() { + int index = resources.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); + } + + public ResourcesNested editMatchingResource(Predicate predicate) { + int index = -1; + for (int i = 0;i < resources.size();i++) { + if (predicate.test(resources.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); + } + + public ResourcesNested editResource(int index) { + if (resources.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2APIVersionDiscoveryFluent that = (V2APIVersionDiscoveryFluent) o; + if (!(Objects.equals(version, that.version))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(freshness, that.freshness))) { + return false; + } + return true; + } + + public String getFreshness() { + return this.freshness; + } + + public String getVersion() { + return this.version; + } + + public boolean hasFreshness() { + return this.freshness != null; + } + + public boolean hasMatchingResource(Predicate predicate) { + for (V2APIResourceDiscoveryBuilder item : resources) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); + } + + public boolean hasVersion() { + return this.version != null; + } + + public int hashCode() { + return Objects.hash(version, resources, freshness); + } + + public A removeAllFromResources(Collection items) { + if (this.resources == null) { + return (A) this; + } + for (V2APIResourceDiscovery item : items) { + V2APIResourceDiscoveryBuilder builder = new V2APIResourceDiscoveryBuilder(item); + _visitables.get("resources").remove(builder); + this.resources.remove(builder); + } + return (A) this; + } + + public A removeFromResources(V2APIResourceDiscovery... items) { + if (this.resources == null) { + return (A) this; + } + for (V2APIResourceDiscovery item : items) { + V2APIResourceDiscoveryBuilder builder = new V2APIResourceDiscoveryBuilder(item); + _visitables.get("resources").remove(builder); + this.resources.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromResources(Predicate predicate) { + if (resources == null) { + return (A) this; + } + Iterator each = resources.iterator(); + List visitables = this._visitables.get("resources"); + while (each.hasNext()) { + V2APIResourceDiscoveryBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ResourcesNested setNewResourceLike(int index,V2APIResourceDiscovery item) { + return new ResourcesNested(index, item); + } + + public A setToResources(int index,V2APIResourceDiscovery item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + V2APIResourceDiscoveryBuilder builder = new V2APIResourceDiscoveryBuilder(item); + if (index < 0 || index >= this.resources.size()) { + this._visitables.get("resources").add(builder); + this.resources.add(builder); + } else { + this._visitables.get("resources").add(builder); + this.resources.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(freshness == null)) { + sb.append("freshness:"); + sb.append(freshness); + } + sb.append("}"); + return sb.toString(); + } + + public A withFreshness(String freshness) { + this.freshness = freshness; + return (A) this; + } + + public A withResources(List resources) { + if (this.resources != null) { + this._visitables.get("resources").clear(); + } + if (resources != null) { + this.resources = new ArrayList(); + for (V2APIResourceDiscovery item : resources) { + this.addToResources(item); + } + } else { + this.resources = null; + } + return (A) this; + } + + public A withResources(V2APIResourceDiscovery... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (V2APIResourceDiscovery item : resources) { + this.addToResources(item); + } + } + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + public class ResourcesNested extends V2APIResourceDiscoveryFluent> implements Nested{ + + V2APIResourceDiscoveryBuilder builder; + int index; + + ResourcesNested(int index,V2APIResourceDiscovery item) { + this.index = index; + this.builder = new V2APIResourceDiscoveryBuilder(this, item); + } + + public N and() { + return (N) V2APIVersionDiscoveryFluent.this.setToResources(index, builder.build()); + } + + public N endResource() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java index aae6a6559b..475c2e9877 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java index 5a0825ac8f..dc1246cd66 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java index 15889b13c3..8dedb8f90d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java index 4d1ea4e5ff..7cf6d1ac5f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java index 38469489f7..a63c162abf 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java index 9c47a3259a..8730ddd45d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReferenceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java index 76a1462a9f..85356398d5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java index 5edb449334..4ecf009377 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java index bf9a6b9134..9f45f348ee 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java index 7031e1e010..20a8959aad 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java index 97dfd2816d..d3ca2d4f6c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java index ea425c3528..1e4886991d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicyFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java index a1ab88f847..4783fe726d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java index 38ade67b7b..d0e507c0de 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRulesFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -52,7 +52,7 @@ public A addAllToPolicies(Collection items) { } for (V2HPAScalingPolicy item : items) { V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - _visitables.get("policies").add(builder); + this._visitables.get("policies").add(builder); this.policies.add(builder); } return (A) this; @@ -72,7 +72,7 @@ public A addToPolicies(V2HPAScalingPolicy... items) { } for (V2HPAScalingPolicy item : items) { V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - _visitables.get("policies").add(builder); + this._visitables.get("policies").add(builder); this.policies.add(builder); } return (A) this; @@ -83,12 +83,12 @@ public A addToPolicies(int index,V2HPAScalingPolicy item) { this.policies = new ArrayList(); } V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - if (index < 0 || index >= policies.size()) { - _visitables.get("policies").add(builder); - policies.add(builder); + if (index < 0 || index >= this.policies.size()) { + this._visitables.get("policies").add(builder); + this.policies.add(builder); } else { - _visitables.get("policies").add(builder); - policies.add(index, builder); + this._visitables.get("policies").add(builder); + this.policies.add(index, builder); } return (A) this; } @@ -260,7 +260,7 @@ public A removeMatchingFromPolicies(Predicate predica return (A) this; } Iterator each = policies.iterator(); - List visitables = _visitables.get("policies"); + List visitables = this._visitables.get("policies"); while (each.hasNext()) { V2HPAScalingPolicyBuilder builder = each.next(); if (predicate.test(builder)) { @@ -280,12 +280,12 @@ public A setToPolicies(int index,V2HPAScalingPolicy item) { this.policies = new ArrayList(); } V2HPAScalingPolicyBuilder builder = new V2HPAScalingPolicyBuilder(item); - if (index < 0 || index >= policies.size()) { - _visitables.get("policies").add(builder); - policies.add(builder); + if (index < 0 || index >= this.policies.size()) { + this._visitables.get("policies").add(builder); + this.policies.add(builder); } else { - _visitables.get("policies").add(builder); - policies.set(index, builder); + this._visitables.get("policies").add(builder); + this.policies.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java index 0a20cf5054..6393ff4197 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java index 24ce47f840..ccbc82c8c0 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehaviorFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java index 73a51cb19f..ffec42f665 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java index 35b571c4ef..57577c4e24 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java index 39fc523a39..287f5f6314 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerConditionFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java index f38bb8d8cc..c127afdd0f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java index 84932ddca8..53d6ac88e4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java index e4b52d63ba..05a65e8306 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerListFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -51,7 +51,7 @@ public A addAllToItems(Collection items) { } for (V2HorizontalPodAutoscaler item : items) { V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -71,7 +71,7 @@ public A addToItems(V2HorizontalPodAutoscaler... items) { } for (V2HorizontalPodAutoscaler item : items) { V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - _visitables.get("items").add(builder); + this._visitables.get("items").add(builder); this.items.add(builder); } return (A) this; @@ -82,12 +82,12 @@ public A addToItems(int index,V2HorizontalPodAutoscaler item) { this.items = new ArrayList(); } V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.add(index, builder); + this._visitables.get("items").add(builder); + this.items.add(index, builder); } return (A) this; } @@ -271,7 +271,7 @@ public A removeMatchingFromItems(Predicate pre return (A) this; } Iterator each = items.iterator(); - List visitables = _visitables.get("items"); + List visitables = this._visitables.get("items"); while (each.hasNext()) { V2HorizontalPodAutoscalerBuilder builder = each.next(); if (predicate.test(builder)) { @@ -291,12 +291,12 @@ public A setToItems(int index,V2HorizontalPodAutoscaler item) { this.items = new ArrayList(); } V2HorizontalPodAutoscalerBuilder builder = new V2HorizontalPodAutoscalerBuilder(item); - if (index < 0 || index >= items.size()) { - _visitables.get("items").add(builder); - items.add(builder); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); } else { - _visitables.get("items").add(builder); - items.set(index, builder); + this._visitables.get("items").add(builder); + this.items.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java index b4067b8dae..dec673debc 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java index 67616dd76f..baf67a6e89 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -53,7 +53,7 @@ public A addAllToMetrics(Collection items) { } for (V2MetricSpec item : items) { V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - _visitables.get("metrics").add(builder); + this._visitables.get("metrics").add(builder); this.metrics.add(builder); } return (A) this; @@ -73,7 +73,7 @@ public A addToMetrics(V2MetricSpec... items) { } for (V2MetricSpec item : items) { V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - _visitables.get("metrics").add(builder); + this._visitables.get("metrics").add(builder); this.metrics.add(builder); } return (A) this; @@ -84,12 +84,12 @@ public A addToMetrics(int index,V2MetricSpec item) { this.metrics = new ArrayList(); } V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - if (index < 0 || index >= metrics.size()) { - _visitables.get("metrics").add(builder); - metrics.add(builder); + if (index < 0 || index >= this.metrics.size()) { + this._visitables.get("metrics").add(builder); + this.metrics.add(builder); } else { - _visitables.get("metrics").add(builder); - metrics.add(index, builder); + this._visitables.get("metrics").add(builder); + this.metrics.add(index, builder); } return (A) this; } @@ -297,7 +297,7 @@ public A removeMatchingFromMetrics(Predicate predicate) { return (A) this; } Iterator each = metrics.iterator(); - List visitables = _visitables.get("metrics"); + List visitables = this._visitables.get("metrics"); while (each.hasNext()) { V2MetricSpecBuilder builder = each.next(); if (predicate.test(builder)) { @@ -317,12 +317,12 @@ public A setToMetrics(int index,V2MetricSpec item) { this.metrics = new ArrayList(); } V2MetricSpecBuilder builder = new V2MetricSpecBuilder(item); - if (index < 0 || index >= metrics.size()) { - _visitables.get("metrics").add(builder); - metrics.add(builder); + if (index < 0 || index >= this.metrics.size()) { + this._visitables.get("metrics").add(builder); + this.metrics.add(builder); } else { - _visitables.get("metrics").add(builder); - metrics.set(index, builder); + this._visitables.get("metrics").add(builder); + this.metrics.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java index ca3c3f529b..642b98eb3e 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java index 3315e93454..5068f4ca45 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -55,7 +55,7 @@ public A addAllToConditions(Collection items } for (V2HorizontalPodAutoscalerCondition item : items) { V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -67,7 +67,7 @@ public A addAllToCurrentMetrics(Collection items) { } for (V2MetricStatus item : items) { V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - _visitables.get("currentMetrics").add(builder); + this._visitables.get("currentMetrics").add(builder); this.currentMetrics.add(builder); } return (A) this; @@ -95,7 +95,7 @@ public A addToConditions(V2HorizontalPodAutoscalerCondition... items) { } for (V2HorizontalPodAutoscalerCondition item : items) { V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); - _visitables.get("conditions").add(builder); + this._visitables.get("conditions").add(builder); this.conditions.add(builder); } return (A) this; @@ -106,12 +106,12 @@ public A addToConditions(int index,V2HorizontalPodAutoscalerCondition item) { this.conditions = new ArrayList(); } V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.add(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.add(index, builder); } return (A) this; } @@ -122,7 +122,7 @@ public A addToCurrentMetrics(V2MetricStatus... items) { } for (V2MetricStatus item : items) { V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - _visitables.get("currentMetrics").add(builder); + this._visitables.get("currentMetrics").add(builder); this.currentMetrics.add(builder); } return (A) this; @@ -133,12 +133,12 @@ public A addToCurrentMetrics(int index,V2MetricStatus item) { this.currentMetrics = new ArrayList(); } V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - if (index < 0 || index >= currentMetrics.size()) { - _visitables.get("currentMetrics").add(builder); - currentMetrics.add(builder); + if (index < 0 || index >= this.currentMetrics.size()) { + this._visitables.get("currentMetrics").add(builder); + this.currentMetrics.add(builder); } else { - _visitables.get("currentMetrics").add(builder); - currentMetrics.add(index, builder); + this._visitables.get("currentMetrics").add(builder); + this.currentMetrics.add(index, builder); } return (A) this; } @@ -424,7 +424,7 @@ public A removeMatchingFromConditions(Predicate each = conditions.iterator(); - List visitables = _visitables.get("conditions"); + List visitables = this._visitables.get("conditions"); while (each.hasNext()) { V2HorizontalPodAutoscalerConditionBuilder builder = each.next(); if (predicate.test(builder)) { @@ -440,7 +440,7 @@ public A removeMatchingFromCurrentMetrics(Predicate predi return (A) this; } Iterator each = currentMetrics.iterator(); - List visitables = _visitables.get("currentMetrics"); + List visitables = this._visitables.get("currentMetrics"); while (each.hasNext()) { V2MetricStatusBuilder builder = each.next(); if (predicate.test(builder)) { @@ -464,12 +464,12 @@ public A setToConditions(int index,V2HorizontalPodAutoscalerCondition item) { this.conditions = new ArrayList(); } V2HorizontalPodAutoscalerConditionBuilder builder = new V2HorizontalPodAutoscalerConditionBuilder(item); - if (index < 0 || index >= conditions.size()) { - _visitables.get("conditions").add(builder); - conditions.add(builder); + if (index < 0 || index >= this.conditions.size()) { + this._visitables.get("conditions").add(builder); + this.conditions.add(builder); } else { - _visitables.get("conditions").add(builder); - conditions.set(index, builder); + this._visitables.get("conditions").add(builder); + this.conditions.set(index, builder); } return (A) this; } @@ -479,12 +479,12 @@ public A setToCurrentMetrics(int index,V2MetricStatus item) { this.currentMetrics = new ArrayList(); } V2MetricStatusBuilder builder = new V2MetricStatusBuilder(item); - if (index < 0 || index >= currentMetrics.size()) { - _visitables.get("currentMetrics").add(builder); - currentMetrics.add(builder); + if (index < 0 || index >= this.currentMetrics.size()) { + this._visitables.get("currentMetrics").add(builder); + this.currentMetrics.add(builder); } else { - _visitables.get("currentMetrics").add(builder); - currentMetrics.set(index, builder); + this._visitables.get("currentMetrics").add(builder); + this.currentMetrics.set(index, builder); } return (A) this; } diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java index 1288232fa1..9767f0c6c8 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java index fc2dda3f87..28e1ab7e51 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifierFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java index d7b80a421d..5ec9dd277f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java index 078895ab6a..b888ba31c7 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpecFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -66,7 +66,6 @@ protected void copyInstance(V2MetricSpec instance) { if (instance != null) { this.withContainerResource(instance.getContainerResource()); this.withExternal(instance.getExternal()); - this.withObject(instance.getObject()); this.withPods(instance.getPods()); this.withResource(instance.getResource()); this.withType(instance.getType()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java index 70e105cf3e..187532a78a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java index 99836acb34..cee852600d 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at @@ -66,7 +66,6 @@ protected void copyInstance(V2MetricStatus instance) { if (instance != null) { this.withContainerResource(instance.getContainerResource()); this.withExternal(instance.getExternal()); - this.withObject(instance.getObject()); this.withPods(instance.getPods()); this.withResource(instance.getResource()); this.withType(instance.getType()); diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java index 1d23ab32b2..cdeeeaed3b 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java index 5887c9f1a5..cff6d5307c 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricTargetFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java index 141e96a6a0..b376df3ea9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java index cc8dafd23f..55653adda5 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java index bb1a9cc1fd..08c6230dd4 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java index 9855a97c3b..2c6bac2654 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java index 26c114d7cb..faa76afadd 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java index 3e6a44031a..cdf8b32770 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java index a0ca564053..a4d65ed7d6 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java index 3d6a353e65..ba61b46b54 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java index 5007cc0e0e..386ad3f47a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java index 872a30dcd3..1508d71dc1 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java index 875a7983e6..a5aec44d1a 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java index 3622dd6305..3c658b7503 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSourceFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java index dddbdaa4c0..03b604dfc9 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java index 6cd159754f..c15878b09f 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatusFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryBuilder.java new file mode 100644 index 0000000000..0d70390966 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V2beta1APIGroupDiscoveryBuilder extends V2beta1APIGroupDiscoveryFluent implements VisitableBuilder{ + + V2beta1APIGroupDiscoveryFluent fluent; + + public V2beta1APIGroupDiscoveryBuilder() { + this(new V2beta1APIGroupDiscovery()); + } + + public V2beta1APIGroupDiscoveryBuilder(V2beta1APIGroupDiscoveryFluent fluent) { + this(fluent, new V2beta1APIGroupDiscovery()); + } + + public V2beta1APIGroupDiscoveryBuilder(V2beta1APIGroupDiscovery instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V2beta1APIGroupDiscoveryBuilder(V2beta1APIGroupDiscoveryFluent fluent,V2beta1APIGroupDiscovery instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V2beta1APIGroupDiscovery build() { + V2beta1APIGroupDiscovery buildable = new V2beta1APIGroupDiscovery(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setVersions(fluent.buildVersions()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryFluent.java new file mode 100644 index 0000000000..e097948bb0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryFluent.java @@ -0,0 +1,423 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V2beta1APIGroupDiscoveryFluent> extends BaseFluent{ + + private String apiVersion; + private String kind; + private V1ObjectMetaBuilder metadata; + private ArrayList versions; + + public V2beta1APIGroupDiscoveryFluent() { + } + + public V2beta1APIGroupDiscoveryFluent(V2beta1APIGroupDiscovery instance) { + this.copyInstance(instance); + } + + public A addAllToVersions(Collection items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (V2beta1APIVersionDiscovery item : items) { + V2beta1APIVersionDiscoveryBuilder builder = new V2beta1APIVersionDiscoveryBuilder(item); + this._visitables.get("versions").add(builder); + this.versions.add(builder); + } + return (A) this; + } + + public VersionsNested addNewVersion() { + return new VersionsNested(-1, null); + } + + public VersionsNested addNewVersionLike(V2beta1APIVersionDiscovery item) { + return new VersionsNested(-1, item); + } + + public A addToVersions(V2beta1APIVersionDiscovery... items) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + for (V2beta1APIVersionDiscovery item : items) { + V2beta1APIVersionDiscoveryBuilder builder = new V2beta1APIVersionDiscoveryBuilder(item); + this._visitables.get("versions").add(builder); + this.versions.add(builder); + } + return (A) this; + } + + public A addToVersions(int index,V2beta1APIVersionDiscovery item) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + V2beta1APIVersionDiscoveryBuilder builder = new V2beta1APIVersionDiscoveryBuilder(item); + if (index < 0 || index >= this.versions.size()) { + this._visitables.get("versions").add(builder); + this.versions.add(builder); + } else { + this._visitables.get("versions").add(builder); + this.versions.add(index, builder); + } + return (A) this; + } + + public V2beta1APIVersionDiscovery buildFirstVersion() { + return this.versions.get(0).build(); + } + + public V2beta1APIVersionDiscovery buildLastVersion() { + return this.versions.get(versions.size() - 1).build(); + } + + public V2beta1APIVersionDiscovery buildMatchingVersion(Predicate predicate) { + for (V2beta1APIVersionDiscoveryBuilder item : versions) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ObjectMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + public V2beta1APIVersionDiscovery buildVersion(int index) { + return this.versions.get(index).build(); + } + + public List buildVersions() { + return this.versions != null ? build(versions) : null; + } + + protected void copyInstance(V2beta1APIGroupDiscovery instance) { + instance = instance != null ? instance : new V2beta1APIGroupDiscovery(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withVersions(instance.getVersions()); + } + } + + public VersionsNested editFirstVersion() { + if (versions.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "versions")); + } + return this.setNewVersionLike(0, this.buildVersion(0)); + } + + public VersionsNested editLastVersion() { + int index = versions.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); + } + + public VersionsNested editMatchingVersion(Predicate predicate) { + int index = -1; + for (int i = 0;i < versions.size();i++) { + if (predicate.test(versions.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ObjectMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ObjectMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public VersionsNested editVersion(int index) { + if (versions.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "versions")); + } + return this.setNewVersionLike(index, this.buildVersion(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2beta1APIGroupDiscoveryFluent that = (V2beta1APIGroupDiscoveryFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(versions, that.versions))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingVersion(Predicate predicate) { + for (V2beta1APIVersionDiscoveryBuilder item : versions) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public boolean hasVersions() { + return this.versions != null && !(this.versions.isEmpty()); + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, versions); + } + + public A removeAllFromVersions(Collection items) { + if (this.versions == null) { + return (A) this; + } + for (V2beta1APIVersionDiscovery item : items) { + V2beta1APIVersionDiscoveryBuilder builder = new V2beta1APIVersionDiscoveryBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); + } + return (A) this; + } + + public A removeFromVersions(V2beta1APIVersionDiscovery... items) { + if (this.versions == null) { + return (A) this; + } + for (V2beta1APIVersionDiscovery item : items) { + V2beta1APIVersionDiscoveryBuilder builder = new V2beta1APIVersionDiscoveryBuilder(item); + _visitables.get("versions").remove(builder); + this.versions.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromVersions(Predicate predicate) { + if (versions == null) { + return (A) this; + } + Iterator each = versions.iterator(); + List visitables = this._visitables.get("versions"); + while (each.hasNext()) { + V2beta1APIVersionDiscoveryBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public VersionsNested setNewVersionLike(int index,V2beta1APIVersionDiscovery item) { + return new VersionsNested(index, item); + } + + public A setToVersions(int index,V2beta1APIVersionDiscovery item) { + if (this.versions == null) { + this.versions = new ArrayList(); + } + V2beta1APIVersionDiscoveryBuilder builder = new V2beta1APIVersionDiscoveryBuilder(item); + if (index < 0 || index >= this.versions.size()) { + this._visitables.get("versions").add(builder); + this.versions.add(builder); + } else { + this._visitables.get("versions").add(builder); + this.versions.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(versions == null) && !(versions.isEmpty())) { + sb.append("versions:"); + sb.append(versions); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ObjectMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ObjectMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ObjectMeta item) { + return new MetadataNested(item); + } + + public A withVersions(List versions) { + if (this.versions != null) { + this._visitables.get("versions").clear(); + } + if (versions != null) { + this.versions = new ArrayList(); + for (V2beta1APIVersionDiscovery item : versions) { + this.addToVersions(item); + } + } else { + this.versions = null; + } + return (A) this; + } + + public A withVersions(V2beta1APIVersionDiscovery... versions) { + if (this.versions != null) { + this.versions.clear(); + _visitables.remove("versions"); + } + if (versions != null) { + for (V2beta1APIVersionDiscovery item : versions) { + this.addToVersions(item); + } + } + return (A) this; + } + public class MetadataNested extends V1ObjectMetaFluent> implements Nested{ + + V1ObjectMetaBuilder builder; + + MetadataNested(V1ObjectMeta item) { + this.builder = new V1ObjectMetaBuilder(this, item); + } + + public N and() { + return (N) V2beta1APIGroupDiscoveryFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } + public class VersionsNested extends V2beta1APIVersionDiscoveryFluent> implements Nested{ + + V2beta1APIVersionDiscoveryBuilder builder; + int index; + + VersionsNested(int index,V2beta1APIVersionDiscovery item) { + this.index = index; + this.builder = new V2beta1APIVersionDiscoveryBuilder(this, item); + } + + public N and() { + return (N) V2beta1APIGroupDiscoveryFluent.this.setToVersions(index, builder.build()); + } + + public N endVersion() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryListBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryListBuilder.java new file mode 100644 index 0000000000..a5e1a81373 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryListBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V2beta1APIGroupDiscoveryListBuilder extends V2beta1APIGroupDiscoveryListFluent implements VisitableBuilder{ + + V2beta1APIGroupDiscoveryListFluent fluent; + + public V2beta1APIGroupDiscoveryListBuilder() { + this(new V2beta1APIGroupDiscoveryList()); + } + + public V2beta1APIGroupDiscoveryListBuilder(V2beta1APIGroupDiscoveryListFluent fluent) { + this(fluent, new V2beta1APIGroupDiscoveryList()); + } + + public V2beta1APIGroupDiscoveryListBuilder(V2beta1APIGroupDiscoveryList instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V2beta1APIGroupDiscoveryListBuilder(V2beta1APIGroupDiscoveryListFluent fluent,V2beta1APIGroupDiscoveryList instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V2beta1APIGroupDiscoveryList build() { + V2beta1APIGroupDiscoveryList buildable = new V2beta1APIGroupDiscoveryList(); + buildable.setApiVersion(fluent.getApiVersion()); + buildable.setKind(fluent.getKind()); + buildable.setMetadata(fluent.buildMetadata()); + buildable.setItems(fluent.buildItems()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryListFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryListFluent.java new file mode 100644 index 0000000000..a0e1eae4ac --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryListFluent.java @@ -0,0 +1,423 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V2beta1APIGroupDiscoveryListFluent> extends BaseFluent{ + + private String apiVersion; + private ArrayList items; + private String kind; + private V1ListMetaBuilder metadata; + + public V2beta1APIGroupDiscoveryListFluent() { + } + + public V2beta1APIGroupDiscoveryListFluent(V2beta1APIGroupDiscoveryList instance) { + this.copyInstance(instance); + } + + public A addAllToItems(Collection items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V2beta1APIGroupDiscovery item : items) { + V2beta1APIGroupDiscoveryBuilder builder = new V2beta1APIGroupDiscoveryBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public ItemsNested addNewItem() { + return new ItemsNested(-1, null); + } + + public ItemsNested addNewItemLike(V2beta1APIGroupDiscovery item) { + return new ItemsNested(-1, item); + } + + public A addToItems(V2beta1APIGroupDiscovery... items) { + if (this.items == null) { + this.items = new ArrayList(); + } + for (V2beta1APIGroupDiscovery item : items) { + V2beta1APIGroupDiscoveryBuilder builder = new V2beta1APIGroupDiscoveryBuilder(item); + this._visitables.get("items").add(builder); + this.items.add(builder); + } + return (A) this; + } + + public A addToItems(int index,V2beta1APIGroupDiscovery item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V2beta1APIGroupDiscoveryBuilder builder = new V2beta1APIGroupDiscoveryBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.add(index, builder); + } + return (A) this; + } + + public V2beta1APIGroupDiscovery buildFirstItem() { + return this.items.get(0).build(); + } + + public V2beta1APIGroupDiscovery buildItem(int index) { + return this.items.get(index).build(); + } + + public List buildItems() { + return this.items != null ? build(items) : null; + } + + public V2beta1APIGroupDiscovery buildLastItem() { + return this.items.get(items.size() - 1).build(); + } + + public V2beta1APIGroupDiscovery buildMatchingItem(Predicate predicate) { + for (V2beta1APIGroupDiscoveryBuilder item : items) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1ListMeta buildMetadata() { + return this.metadata != null ? this.metadata.build() : null; + } + + protected void copyInstance(V2beta1APIGroupDiscoveryList instance) { + instance = instance != null ? instance : new V2beta1APIGroupDiscoveryList(); + if (instance != null) { + this.withApiVersion(instance.getApiVersion()); + this.withKind(instance.getKind()); + this.withMetadata(instance.getMetadata()); + this.withItems(instance.getItems()); + } + } + + public ItemsNested editFirstItem() { + if (items.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "items")); + } + return this.setNewItemLike(0, this.buildItem(0)); + } + + public ItemsNested editItem(int index) { + if (items.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editLastItem() { + int index = items.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public ItemsNested editMatchingItem(Predicate predicate) { + int index = -1; + for (int i = 0;i < items.size();i++) { + if (predicate.test(items.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "items")); + } + return this.setNewItemLike(index, this.buildItem(index)); + } + + public MetadataNested editMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(null)); + } + + public MetadataNested editOrNewMetadata() { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(new V1ListMetaBuilder().build())); + } + + public MetadataNested editOrNewMetadataLike(V1ListMeta item) { + return this.withNewMetadataLike(Optional.ofNullable(this.buildMetadata()).orElse(item)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2beta1APIGroupDiscoveryListFluent that = (V2beta1APIGroupDiscoveryListFluent) o; + if (!(Objects.equals(apiVersion, that.apiVersion))) { + return false; + } + if (!(Objects.equals(kind, that.kind))) { + return false; + } + if (!(Objects.equals(metadata, that.metadata))) { + return false; + } + if (!(Objects.equals(items, that.items))) { + return false; + } + return true; + } + + public String getApiVersion() { + return this.apiVersion; + } + + public String getKind() { + return this.kind; + } + + public boolean hasApiVersion() { + return this.apiVersion != null; + } + + public boolean hasItems() { + return this.items != null && !(this.items.isEmpty()); + } + + public boolean hasKind() { + return this.kind != null; + } + + public boolean hasMatchingItem(Predicate predicate) { + for (V2beta1APIGroupDiscoveryBuilder item : items) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMetadata() { + return this.metadata != null; + } + + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, items); + } + + public A removeAllFromItems(Collection items) { + if (this.items == null) { + return (A) this; + } + for (V2beta1APIGroupDiscovery item : items) { + V2beta1APIGroupDiscoveryBuilder builder = new V2beta1APIGroupDiscoveryBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeFromItems(V2beta1APIGroupDiscovery... items) { + if (this.items == null) { + return (A) this; + } + for (V2beta1APIGroupDiscovery item : items) { + V2beta1APIGroupDiscoveryBuilder builder = new V2beta1APIGroupDiscoveryBuilder(item); + _visitables.get("items").remove(builder); + this.items.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromItems(Predicate predicate) { + if (items == null) { + return (A) this; + } + Iterator each = items.iterator(); + List visitables = this._visitables.get("items"); + while (each.hasNext()) { + V2beta1APIGroupDiscoveryBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ItemsNested setNewItemLike(int index,V2beta1APIGroupDiscovery item) { + return new ItemsNested(index, item); + } + + public A setToItems(int index,V2beta1APIGroupDiscovery item) { + if (this.items == null) { + this.items = new ArrayList(); + } + V2beta1APIGroupDiscoveryBuilder builder = new V2beta1APIGroupDiscoveryBuilder(item); + if (index < 0 || index >= this.items.size()) { + this._visitables.get("items").add(builder); + this.items.add(builder); + } else { + this._visitables.get("items").add(builder); + this.items.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(apiVersion == null)) { + sb.append("apiVersion:"); + sb.append(apiVersion); + sb.append(","); + } + if (!(kind == null)) { + sb.append("kind:"); + sb.append(kind); + sb.append(","); + } + if (!(metadata == null)) { + sb.append("metadata:"); + sb.append(metadata); + sb.append(","); + } + if (!(items == null) && !(items.isEmpty())) { + sb.append("items:"); + sb.append(items); + } + sb.append("}"); + return sb.toString(); + } + + public A withApiVersion(String apiVersion) { + this.apiVersion = apiVersion; + return (A) this; + } + + public A withItems(List items) { + if (this.items != null) { + this._visitables.get("items").clear(); + } + if (items != null) { + this.items = new ArrayList(); + for (V2beta1APIGroupDiscovery item : items) { + this.addToItems(item); + } + } else { + this.items = null; + } + return (A) this; + } + + public A withItems(V2beta1APIGroupDiscovery... items) { + if (this.items != null) { + this.items.clear(); + _visitables.remove("items"); + } + if (items != null) { + for (V2beta1APIGroupDiscovery item : items) { + this.addToItems(item); + } + } + return (A) this; + } + + public A withKind(String kind) { + this.kind = kind; + return (A) this; + } + + public A withMetadata(V1ListMeta metadata) { + this._visitables.remove("metadata"); + if (metadata != null) { + this.metadata = new V1ListMetaBuilder(metadata); + this._visitables.get("metadata").add(this.metadata); + } else { + this.metadata = null; + this._visitables.get("metadata").remove(this.metadata); + } + return (A) this; + } + + public MetadataNested withNewMetadata() { + return new MetadataNested(null); + } + + public MetadataNested withNewMetadataLike(V1ListMeta item) { + return new MetadataNested(item); + } + public class ItemsNested extends V2beta1APIGroupDiscoveryFluent> implements Nested{ + + V2beta1APIGroupDiscoveryBuilder builder; + int index; + + ItemsNested(int index,V2beta1APIGroupDiscovery item) { + this.index = index; + this.builder = new V2beta1APIGroupDiscoveryBuilder(this, item); + } + + public N and() { + return (N) V2beta1APIGroupDiscoveryListFluent.this.setToItems(index, builder.build()); + } + + public N endItem() { + return and(); + } + + } + public class MetadataNested extends V1ListMetaFluent> implements Nested{ + + V1ListMetaBuilder builder; + + MetadataNested(V1ListMeta item) { + this.builder = new V1ListMetaBuilder(this, item); + } + + public N and() { + return (N) V2beta1APIGroupDiscoveryListFluent.this.withMetadata(builder.build()); + } + + public N endMetadata() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscoveryBuilder.java new file mode 100644 index 0000000000..58ecbcfbaf --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscoveryBuilder.java @@ -0,0 +1,52 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V2beta1APIResourceDiscoveryBuilder extends V2beta1APIResourceDiscoveryFluent implements VisitableBuilder{ + + V2beta1APIResourceDiscoveryFluent fluent; + + public V2beta1APIResourceDiscoveryBuilder() { + this(new V2beta1APIResourceDiscovery()); + } + + public V2beta1APIResourceDiscoveryBuilder(V2beta1APIResourceDiscoveryFluent fluent) { + this(fluent, new V2beta1APIResourceDiscovery()); + } + + public V2beta1APIResourceDiscoveryBuilder(V2beta1APIResourceDiscovery instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V2beta1APIResourceDiscoveryBuilder(V2beta1APIResourceDiscoveryFluent fluent,V2beta1APIResourceDiscovery instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V2beta1APIResourceDiscovery build() { + V2beta1APIResourceDiscovery buildable = new V2beta1APIResourceDiscovery(); + buildable.setResource(fluent.getResource()); + buildable.setResponseKind(fluent.buildResponseKind()); + buildable.setScope(fluent.getScope()); + buildable.setSingularResource(fluent.getSingularResource()); + buildable.setVerbs(fluent.getVerbs()); + buildable.setShortNames(fluent.getShortNames()); + buildable.setCategories(fluent.getCategories()); + buildable.setSubresources(fluent.buildSubresources()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscoveryFluent.java new file mode 100644 index 0000000000..b1b23eb2c0 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscoveryFluent.java @@ -0,0 +1,833 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V2beta1APIResourceDiscoveryFluent> extends BaseFluent{ + + private List categories; + private String resource; + private V1GroupVersionKindBuilder responseKind; + private String scope; + private List shortNames; + private String singularResource; + private ArrayList subresources; + private List verbs; + + public V2beta1APIResourceDiscoveryFluent() { + } + + public V2beta1APIResourceDiscoveryFluent(V2beta1APIResourceDiscovery instance) { + this.copyInstance(instance); + } + + public A addAllToCategories(Collection items) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + for (String item : items) { + this.categories.add(item); + } + return (A) this; + } + + public A addAllToShortNames(Collection items) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + for (String item : items) { + this.shortNames.add(item); + } + return (A) this; + } + + public A addAllToSubresources(Collection items) { + if (this.subresources == null) { + this.subresources = new ArrayList(); + } + for (V2beta1APISubresourceDiscovery item : items) { + V2beta1APISubresourceDiscoveryBuilder builder = new V2beta1APISubresourceDiscoveryBuilder(item); + this._visitables.get("subresources").add(builder); + this.subresources.add(builder); + } + return (A) this; + } + + public A addAllToVerbs(Collection items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; + } + + public SubresourcesNested addNewSubresource() { + return new SubresourcesNested(-1, null); + } + + public SubresourcesNested addNewSubresourceLike(V2beta1APISubresourceDiscovery item) { + return new SubresourcesNested(-1, item); + } + + public A addToCategories(String... items) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + for (String item : items) { + this.categories.add(item); + } + return (A) this; + } + + public A addToCategories(int index,String item) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + this.categories.add(index, item); + return (A) this; + } + + public A addToShortNames(String... items) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + for (String item : items) { + this.shortNames.add(item); + } + return (A) this; + } + + public A addToShortNames(int index,String item) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + this.shortNames.add(index, item); + return (A) this; + } + + public A addToSubresources(V2beta1APISubresourceDiscovery... items) { + if (this.subresources == null) { + this.subresources = new ArrayList(); + } + for (V2beta1APISubresourceDiscovery item : items) { + V2beta1APISubresourceDiscoveryBuilder builder = new V2beta1APISubresourceDiscoveryBuilder(item); + this._visitables.get("subresources").add(builder); + this.subresources.add(builder); + } + return (A) this; + } + + public A addToSubresources(int index,V2beta1APISubresourceDiscovery item) { + if (this.subresources == null) { + this.subresources = new ArrayList(); + } + V2beta1APISubresourceDiscoveryBuilder builder = new V2beta1APISubresourceDiscoveryBuilder(item); + if (index < 0 || index >= this.subresources.size()) { + this._visitables.get("subresources").add(builder); + this.subresources.add(builder); + } else { + this._visitables.get("subresources").add(builder); + this.subresources.add(index, builder); + } + return (A) this; + } + + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; + } + + public A addToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.add(index, item); + return (A) this; + } + + public V2beta1APISubresourceDiscovery buildFirstSubresource() { + return this.subresources.get(0).build(); + } + + public V2beta1APISubresourceDiscovery buildLastSubresource() { + return this.subresources.get(subresources.size() - 1).build(); + } + + public V2beta1APISubresourceDiscovery buildMatchingSubresource(Predicate predicate) { + for (V2beta1APISubresourceDiscoveryBuilder item : subresources) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1GroupVersionKind buildResponseKind() { + return this.responseKind != null ? this.responseKind.build() : null; + } + + public V2beta1APISubresourceDiscovery buildSubresource(int index) { + return this.subresources.get(index).build(); + } + + public List buildSubresources() { + return this.subresources != null ? build(subresources) : null; + } + + protected void copyInstance(V2beta1APIResourceDiscovery instance) { + instance = instance != null ? instance : new V2beta1APIResourceDiscovery(); + if (instance != null) { + this.withResource(instance.getResource()); + this.withResponseKind(instance.getResponseKind()); + this.withScope(instance.getScope()); + this.withSingularResource(instance.getSingularResource()); + this.withVerbs(instance.getVerbs()); + this.withShortNames(instance.getShortNames()); + this.withCategories(instance.getCategories()); + this.withSubresources(instance.getSubresources()); + } + } + + public SubresourcesNested editFirstSubresource() { + if (subresources.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "subresources")); + } + return this.setNewSubresourceLike(0, this.buildSubresource(0)); + } + + public SubresourcesNested editLastSubresource() { + int index = subresources.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "subresources")); + } + return this.setNewSubresourceLike(index, this.buildSubresource(index)); + } + + public SubresourcesNested editMatchingSubresource(Predicate predicate) { + int index = -1; + for (int i = 0;i < subresources.size();i++) { + if (predicate.test(subresources.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "subresources")); + } + return this.setNewSubresourceLike(index, this.buildSubresource(index)); + } + + public ResponseKindNested editOrNewResponseKind() { + return this.withNewResponseKindLike(Optional.ofNullable(this.buildResponseKind()).orElse(new V1GroupVersionKindBuilder().build())); + } + + public ResponseKindNested editOrNewResponseKindLike(V1GroupVersionKind item) { + return this.withNewResponseKindLike(Optional.ofNullable(this.buildResponseKind()).orElse(item)); + } + + public ResponseKindNested editResponseKind() { + return this.withNewResponseKindLike(Optional.ofNullable(this.buildResponseKind()).orElse(null)); + } + + public SubresourcesNested editSubresource(int index) { + if (subresources.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "subresources")); + } + return this.setNewSubresourceLike(index, this.buildSubresource(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2beta1APIResourceDiscoveryFluent that = (V2beta1APIResourceDiscoveryFluent) o; + if (!(Objects.equals(resource, that.resource))) { + return false; + } + if (!(Objects.equals(responseKind, that.responseKind))) { + return false; + } + if (!(Objects.equals(scope, that.scope))) { + return false; + } + if (!(Objects.equals(singularResource, that.singularResource))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + if (!(Objects.equals(shortNames, that.shortNames))) { + return false; + } + if (!(Objects.equals(categories, that.categories))) { + return false; + } + if (!(Objects.equals(subresources, that.subresources))) { + return false; + } + return true; + } + + public List getCategories() { + return this.categories; + } + + public String getCategory(int index) { + return this.categories.get(index); + } + + public String getFirstCategory() { + return this.categories.get(0); + } + + public String getFirstShortName() { + return this.shortNames.get(0); + } + + public String getFirstVerb() { + return this.verbs.get(0); + } + + public String getLastCategory() { + return this.categories.get(categories.size() - 1); + } + + public String getLastShortName() { + return this.shortNames.get(shortNames.size() - 1); + } + + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + + public String getMatchingCategory(Predicate predicate) { + for (String item : categories) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingShortName(Predicate predicate) { + for (String item : shortNames) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getResource() { + return this.resource; + } + + public String getScope() { + return this.scope; + } + + public String getShortName(int index) { + return this.shortNames.get(index); + } + + public List getShortNames() { + return this.shortNames; + } + + public String getSingularResource() { + return this.singularResource; + } + + public String getVerb(int index) { + return this.verbs.get(index); + } + + public List getVerbs() { + return this.verbs; + } + + public boolean hasCategories() { + return this.categories != null && !(this.categories.isEmpty()); + } + + public boolean hasMatchingCategory(Predicate predicate) { + for (String item : categories) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingShortName(Predicate predicate) { + for (String item : shortNames) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingSubresource(Predicate predicate) { + for (V2beta1APISubresourceDiscoveryBuilder item : subresources) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResource() { + return this.resource != null; + } + + public boolean hasResponseKind() { + return this.responseKind != null; + } + + public boolean hasScope() { + return this.scope != null; + } + + public boolean hasShortNames() { + return this.shortNames != null && !(this.shortNames.isEmpty()); + } + + public boolean hasSingularResource() { + return this.singularResource != null; + } + + public boolean hasSubresources() { + return this.subresources != null && !(this.subresources.isEmpty()); + } + + public boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); + } + + public int hashCode() { + return Objects.hash(resource, responseKind, scope, singularResource, verbs, shortNames, categories, subresources); + } + + public A removeAllFromCategories(Collection items) { + if (this.categories == null) { + return (A) this; + } + for (String item : items) { + this.categories.remove(item); + } + return (A) this; + } + + public A removeAllFromShortNames(Collection items) { + if (this.shortNames == null) { + return (A) this; + } + for (String item : items) { + this.shortNames.remove(item); + } + return (A) this; + } + + public A removeAllFromSubresources(Collection items) { + if (this.subresources == null) { + return (A) this; + } + for (V2beta1APISubresourceDiscovery item : items) { + V2beta1APISubresourceDiscoveryBuilder builder = new V2beta1APISubresourceDiscoveryBuilder(item); + _visitables.get("subresources").remove(builder); + this.subresources.remove(builder); + } + return (A) this; + } + + public A removeAllFromVerbs(Collection items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; + } + + public A removeFromCategories(String... items) { + if (this.categories == null) { + return (A) this; + } + for (String item : items) { + this.categories.remove(item); + } + return (A) this; + } + + public A removeFromShortNames(String... items) { + if (this.shortNames == null) { + return (A) this; + } + for (String item : items) { + this.shortNames.remove(item); + } + return (A) this; + } + + public A removeFromSubresources(V2beta1APISubresourceDiscovery... items) { + if (this.subresources == null) { + return (A) this; + } + for (V2beta1APISubresourceDiscovery item : items) { + V2beta1APISubresourceDiscoveryBuilder builder = new V2beta1APISubresourceDiscoveryBuilder(item); + _visitables.get("subresources").remove(builder); + this.subresources.remove(builder); + } + return (A) this; + } + + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; + } + + public A removeMatchingFromSubresources(Predicate predicate) { + if (subresources == null) { + return (A) this; + } + Iterator each = subresources.iterator(); + List visitables = this._visitables.get("subresources"); + while (each.hasNext()) { + V2beta1APISubresourceDiscoveryBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public SubresourcesNested setNewSubresourceLike(int index,V2beta1APISubresourceDiscovery item) { + return new SubresourcesNested(index, item); + } + + public A setToCategories(int index,String item) { + if (this.categories == null) { + this.categories = new ArrayList(); + } + this.categories.set(index, item); + return (A) this; + } + + public A setToShortNames(int index,String item) { + if (this.shortNames == null) { + this.shortNames = new ArrayList(); + } + this.shortNames.set(index, item); + return (A) this; + } + + public A setToSubresources(int index,V2beta1APISubresourceDiscovery item) { + if (this.subresources == null) { + this.subresources = new ArrayList(); + } + V2beta1APISubresourceDiscoveryBuilder builder = new V2beta1APISubresourceDiscoveryBuilder(item); + if (index < 0 || index >= this.subresources.size()) { + this._visitables.get("subresources").add(builder); + this.subresources.add(builder); + } else { + this._visitables.get("subresources").add(builder); + this.subresources.set(index, builder); + } + return (A) this; + } + + public A setToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(resource == null)) { + sb.append("resource:"); + sb.append(resource); + sb.append(","); + } + if (!(responseKind == null)) { + sb.append("responseKind:"); + sb.append(responseKind); + sb.append(","); + } + if (!(scope == null)) { + sb.append("scope:"); + sb.append(scope); + sb.append(","); + } + if (!(singularResource == null)) { + sb.append("singularResource:"); + sb.append(singularResource); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + sb.append(","); + } + if (!(shortNames == null) && !(shortNames.isEmpty())) { + sb.append("shortNames:"); + sb.append(shortNames); + sb.append(","); + } + if (!(categories == null) && !(categories.isEmpty())) { + sb.append("categories:"); + sb.append(categories); + sb.append(","); + } + if (!(subresources == null) && !(subresources.isEmpty())) { + sb.append("subresources:"); + sb.append(subresources); + } + sb.append("}"); + return sb.toString(); + } + + public A withCategories(List categories) { + if (categories != null) { + this.categories = new ArrayList(); + for (String item : categories) { + this.addToCategories(item); + } + } else { + this.categories = null; + } + return (A) this; + } + + public A withCategories(String... categories) { + if (this.categories != null) { + this.categories.clear(); + _visitables.remove("categories"); + } + if (categories != null) { + for (String item : categories) { + this.addToCategories(item); + } + } + return (A) this; + } + + public ResponseKindNested withNewResponseKind() { + return new ResponseKindNested(null); + } + + public ResponseKindNested withNewResponseKindLike(V1GroupVersionKind item) { + return new ResponseKindNested(item); + } + + public A withResource(String resource) { + this.resource = resource; + return (A) this; + } + + public A withResponseKind(V1GroupVersionKind responseKind) { + this._visitables.remove("responseKind"); + if (responseKind != null) { + this.responseKind = new V1GroupVersionKindBuilder(responseKind); + this._visitables.get("responseKind").add(this.responseKind); + } else { + this.responseKind = null; + this._visitables.get("responseKind").remove(this.responseKind); + } + return (A) this; + } + + public A withScope(String scope) { + this.scope = scope; + return (A) this; + } + + public A withShortNames(List shortNames) { + if (shortNames != null) { + this.shortNames = new ArrayList(); + for (String item : shortNames) { + this.addToShortNames(item); + } + } else { + this.shortNames = null; + } + return (A) this; + } + + public A withShortNames(String... shortNames) { + if (this.shortNames != null) { + this.shortNames.clear(); + _visitables.remove("shortNames"); + } + if (shortNames != null) { + for (String item : shortNames) { + this.addToShortNames(item); + } + } + return (A) this; + } + + public A withSingularResource(String singularResource) { + this.singularResource = singularResource; + return (A) this; + } + + public A withSubresources(List subresources) { + if (this.subresources != null) { + this._visitables.get("subresources").clear(); + } + if (subresources != null) { + this.subresources = new ArrayList(); + for (V2beta1APISubresourceDiscovery item : subresources) { + this.addToSubresources(item); + } + } else { + this.subresources = null; + } + return (A) this; + } + + public A withSubresources(V2beta1APISubresourceDiscovery... subresources) { + if (this.subresources != null) { + this.subresources.clear(); + _visitables.remove("subresources"); + } + if (subresources != null) { + for (V2beta1APISubresourceDiscovery item : subresources) { + this.addToSubresources(item); + } + } + return (A) this; + } + + public A withVerbs(List verbs) { + if (verbs != null) { + this.verbs = new ArrayList(); + for (String item : verbs) { + this.addToVerbs(item); + } + } else { + this.verbs = null; + } + return (A) this; + } + + public A withVerbs(String... verbs) { + if (this.verbs != null) { + this.verbs.clear(); + _visitables.remove("verbs"); + } + if (verbs != null) { + for (String item : verbs) { + this.addToVerbs(item); + } + } + return (A) this; + } + public class ResponseKindNested extends V1GroupVersionKindFluent> implements Nested{ + + V1GroupVersionKindBuilder builder; + + ResponseKindNested(V1GroupVersionKind item) { + this.builder = new V1GroupVersionKindBuilder(this, item); + } + + public N and() { + return (N) V2beta1APIResourceDiscoveryFluent.this.withResponseKind(builder.build()); + } + + public N endResponseKind() { + return and(); + } + + } + public class SubresourcesNested extends V2beta1APISubresourceDiscoveryFluent> implements Nested{ + + V2beta1APISubresourceDiscoveryBuilder builder; + int index; + + SubresourcesNested(int index,V2beta1APISubresourceDiscovery item) { + this.index = index; + this.builder = new V2beta1APISubresourceDiscoveryBuilder(this, item); + } + + public N and() { + return (N) V2beta1APIResourceDiscoveryFluent.this.setToSubresources(index, builder.build()); + } + + public N endSubresource() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscoveryBuilder.java new file mode 100644 index 0000000000..8c40dc4b10 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscoveryBuilder.java @@ -0,0 +1,48 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V2beta1APISubresourceDiscoveryBuilder extends V2beta1APISubresourceDiscoveryFluent implements VisitableBuilder{ + + V2beta1APISubresourceDiscoveryFluent fluent; + + public V2beta1APISubresourceDiscoveryBuilder() { + this(new V2beta1APISubresourceDiscovery()); + } + + public V2beta1APISubresourceDiscoveryBuilder(V2beta1APISubresourceDiscoveryFluent fluent) { + this(fluent, new V2beta1APISubresourceDiscovery()); + } + + public V2beta1APISubresourceDiscoveryBuilder(V2beta1APISubresourceDiscovery instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V2beta1APISubresourceDiscoveryBuilder(V2beta1APISubresourceDiscoveryFluent fluent,V2beta1APISubresourceDiscovery instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V2beta1APISubresourceDiscovery build() { + V2beta1APISubresourceDiscovery buildable = new V2beta1APISubresourceDiscovery(); + buildable.setSubresource(fluent.getSubresource()); + buildable.setResponseKind(fluent.buildResponseKind()); + buildable.setVerbs(fluent.getVerbs()); + buildable.setAcceptedTypes(fluent.buildAcceptedTypes()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscoveryFluent.java new file mode 100644 index 0000000000..ee2d08462c --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscoveryFluent.java @@ -0,0 +1,529 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.Optional; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V2beta1APISubresourceDiscoveryFluent> extends BaseFluent{ + + private ArrayList acceptedTypes; + private V1GroupVersionKindBuilder responseKind; + private String subresource; + private List verbs; + + public V2beta1APISubresourceDiscoveryFluent() { + } + + public V2beta1APISubresourceDiscoveryFluent(V2beta1APISubresourceDiscovery instance) { + this.copyInstance(instance); + } + + public A addAllToAcceptedTypes(Collection items) { + if (this.acceptedTypes == null) { + this.acceptedTypes = new ArrayList(); + } + for (V1GroupVersionKind item : items) { + V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); + this._visitables.get("acceptedTypes").add(builder); + this.acceptedTypes.add(builder); + } + return (A) this; + } + + public A addAllToVerbs(Collection items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; + } + + public AcceptedTypesNested addNewAcceptedType() { + return new AcceptedTypesNested(-1, null); + } + + public AcceptedTypesNested addNewAcceptedTypeLike(V1GroupVersionKind item) { + return new AcceptedTypesNested(-1, item); + } + + public A addToAcceptedTypes(V1GroupVersionKind... items) { + if (this.acceptedTypes == null) { + this.acceptedTypes = new ArrayList(); + } + for (V1GroupVersionKind item : items) { + V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); + this._visitables.get("acceptedTypes").add(builder); + this.acceptedTypes.add(builder); + } + return (A) this; + } + + public A addToAcceptedTypes(int index,V1GroupVersionKind item) { + if (this.acceptedTypes == null) { + this.acceptedTypes = new ArrayList(); + } + V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); + if (index < 0 || index >= this.acceptedTypes.size()) { + this._visitables.get("acceptedTypes").add(builder); + this.acceptedTypes.add(builder); + } else { + this._visitables.get("acceptedTypes").add(builder); + this.acceptedTypes.add(index, builder); + } + return (A) this; + } + + public A addToVerbs(String... items) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + for (String item : items) { + this.verbs.add(item); + } + return (A) this; + } + + public A addToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.add(index, item); + return (A) this; + } + + public V1GroupVersionKind buildAcceptedType(int index) { + return this.acceptedTypes.get(index).build(); + } + + public List buildAcceptedTypes() { + return this.acceptedTypes != null ? build(acceptedTypes) : null; + } + + public V1GroupVersionKind buildFirstAcceptedType() { + return this.acceptedTypes.get(0).build(); + } + + public V1GroupVersionKind buildLastAcceptedType() { + return this.acceptedTypes.get(acceptedTypes.size() - 1).build(); + } + + public V1GroupVersionKind buildMatchingAcceptedType(Predicate predicate) { + for (V1GroupVersionKindBuilder item : acceptedTypes) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V1GroupVersionKind buildResponseKind() { + return this.responseKind != null ? this.responseKind.build() : null; + } + + protected void copyInstance(V2beta1APISubresourceDiscovery instance) { + instance = instance != null ? instance : new V2beta1APISubresourceDiscovery(); + if (instance != null) { + this.withSubresource(instance.getSubresource()); + this.withResponseKind(instance.getResponseKind()); + this.withVerbs(instance.getVerbs()); + this.withAcceptedTypes(instance.getAcceptedTypes()); + } + } + + public AcceptedTypesNested editAcceptedType(int index) { + if (acceptedTypes.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "acceptedTypes")); + } + return this.setNewAcceptedTypeLike(index, this.buildAcceptedType(index)); + } + + public AcceptedTypesNested editFirstAcceptedType() { + if (acceptedTypes.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "acceptedTypes")); + } + return this.setNewAcceptedTypeLike(0, this.buildAcceptedType(0)); + } + + public AcceptedTypesNested editLastAcceptedType() { + int index = acceptedTypes.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "acceptedTypes")); + } + return this.setNewAcceptedTypeLike(index, this.buildAcceptedType(index)); + } + + public AcceptedTypesNested editMatchingAcceptedType(Predicate predicate) { + int index = -1; + for (int i = 0;i < acceptedTypes.size();i++) { + if (predicate.test(acceptedTypes.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "acceptedTypes")); + } + return this.setNewAcceptedTypeLike(index, this.buildAcceptedType(index)); + } + + public ResponseKindNested editOrNewResponseKind() { + return this.withNewResponseKindLike(Optional.ofNullable(this.buildResponseKind()).orElse(new V1GroupVersionKindBuilder().build())); + } + + public ResponseKindNested editOrNewResponseKindLike(V1GroupVersionKind item) { + return this.withNewResponseKindLike(Optional.ofNullable(this.buildResponseKind()).orElse(item)); + } + + public ResponseKindNested editResponseKind() { + return this.withNewResponseKindLike(Optional.ofNullable(this.buildResponseKind()).orElse(null)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2beta1APISubresourceDiscoveryFluent that = (V2beta1APISubresourceDiscoveryFluent) o; + if (!(Objects.equals(subresource, that.subresource))) { + return false; + } + if (!(Objects.equals(responseKind, that.responseKind))) { + return false; + } + if (!(Objects.equals(verbs, that.verbs))) { + return false; + } + if (!(Objects.equals(acceptedTypes, that.acceptedTypes))) { + return false; + } + return true; + } + + public String getFirstVerb() { + return this.verbs.get(0); + } + + public String getLastVerb() { + return this.verbs.get(verbs.size() - 1); + } + + public String getMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return item; + } + } + return null; + } + + public String getSubresource() { + return this.subresource; + } + + public String getVerb(int index) { + return this.verbs.get(index); + } + + public List getVerbs() { + return this.verbs; + } + + public boolean hasAcceptedTypes() { + return this.acceptedTypes != null && !(this.acceptedTypes.isEmpty()); + } + + public boolean hasMatchingAcceptedType(Predicate predicate) { + for (V1GroupVersionKindBuilder item : acceptedTypes) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasMatchingVerb(Predicate predicate) { + for (String item : verbs) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResponseKind() { + return this.responseKind != null; + } + + public boolean hasSubresource() { + return this.subresource != null; + } + + public boolean hasVerbs() { + return this.verbs != null && !(this.verbs.isEmpty()); + } + + public int hashCode() { + return Objects.hash(subresource, responseKind, verbs, acceptedTypes); + } + + public A removeAllFromAcceptedTypes(Collection items) { + if (this.acceptedTypes == null) { + return (A) this; + } + for (V1GroupVersionKind item : items) { + V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); + _visitables.get("acceptedTypes").remove(builder); + this.acceptedTypes.remove(builder); + } + return (A) this; + } + + public A removeAllFromVerbs(Collection items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; + } + + public A removeFromAcceptedTypes(V1GroupVersionKind... items) { + if (this.acceptedTypes == null) { + return (A) this; + } + for (V1GroupVersionKind item : items) { + V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); + _visitables.get("acceptedTypes").remove(builder); + this.acceptedTypes.remove(builder); + } + return (A) this; + } + + public A removeFromVerbs(String... items) { + if (this.verbs == null) { + return (A) this; + } + for (String item : items) { + this.verbs.remove(item); + } + return (A) this; + } + + public A removeMatchingFromAcceptedTypes(Predicate predicate) { + if (acceptedTypes == null) { + return (A) this; + } + Iterator each = acceptedTypes.iterator(); + List visitables = this._visitables.get("acceptedTypes"); + while (each.hasNext()) { + V1GroupVersionKindBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public AcceptedTypesNested setNewAcceptedTypeLike(int index,V1GroupVersionKind item) { + return new AcceptedTypesNested(index, item); + } + + public A setToAcceptedTypes(int index,V1GroupVersionKind item) { + if (this.acceptedTypes == null) { + this.acceptedTypes = new ArrayList(); + } + V1GroupVersionKindBuilder builder = new V1GroupVersionKindBuilder(item); + if (index < 0 || index >= this.acceptedTypes.size()) { + this._visitables.get("acceptedTypes").add(builder); + this.acceptedTypes.add(builder); + } else { + this._visitables.get("acceptedTypes").add(builder); + this.acceptedTypes.set(index, builder); + } + return (A) this; + } + + public A setToVerbs(int index,String item) { + if (this.verbs == null) { + this.verbs = new ArrayList(); + } + this.verbs.set(index, item); + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(subresource == null)) { + sb.append("subresource:"); + sb.append(subresource); + sb.append(","); + } + if (!(responseKind == null)) { + sb.append("responseKind:"); + sb.append(responseKind); + sb.append(","); + } + if (!(verbs == null) && !(verbs.isEmpty())) { + sb.append("verbs:"); + sb.append(verbs); + sb.append(","); + } + if (!(acceptedTypes == null) && !(acceptedTypes.isEmpty())) { + sb.append("acceptedTypes:"); + sb.append(acceptedTypes); + } + sb.append("}"); + return sb.toString(); + } + + public A withAcceptedTypes(List acceptedTypes) { + if (this.acceptedTypes != null) { + this._visitables.get("acceptedTypes").clear(); + } + if (acceptedTypes != null) { + this.acceptedTypes = new ArrayList(); + for (V1GroupVersionKind item : acceptedTypes) { + this.addToAcceptedTypes(item); + } + } else { + this.acceptedTypes = null; + } + return (A) this; + } + + public A withAcceptedTypes(V1GroupVersionKind... acceptedTypes) { + if (this.acceptedTypes != null) { + this.acceptedTypes.clear(); + _visitables.remove("acceptedTypes"); + } + if (acceptedTypes != null) { + for (V1GroupVersionKind item : acceptedTypes) { + this.addToAcceptedTypes(item); + } + } + return (A) this; + } + + public ResponseKindNested withNewResponseKind() { + return new ResponseKindNested(null); + } + + public ResponseKindNested withNewResponseKindLike(V1GroupVersionKind item) { + return new ResponseKindNested(item); + } + + public A withResponseKind(V1GroupVersionKind responseKind) { + this._visitables.remove("responseKind"); + if (responseKind != null) { + this.responseKind = new V1GroupVersionKindBuilder(responseKind); + this._visitables.get("responseKind").add(this.responseKind); + } else { + this.responseKind = null; + this._visitables.get("responseKind").remove(this.responseKind); + } + return (A) this; + } + + public A withSubresource(String subresource) { + this.subresource = subresource; + return (A) this; + } + + public A withVerbs(List verbs) { + if (verbs != null) { + this.verbs = new ArrayList(); + for (String item : verbs) { + this.addToVerbs(item); + } + } else { + this.verbs = null; + } + return (A) this; + } + + public A withVerbs(String... verbs) { + if (this.verbs != null) { + this.verbs.clear(); + _visitables.remove("verbs"); + } + if (verbs != null) { + for (String item : verbs) { + this.addToVerbs(item); + } + } + return (A) this; + } + public class AcceptedTypesNested extends V1GroupVersionKindFluent> implements Nested{ + + V1GroupVersionKindBuilder builder; + int index; + + AcceptedTypesNested(int index,V1GroupVersionKind item) { + this.index = index; + this.builder = new V1GroupVersionKindBuilder(this, item); + } + + public N and() { + return (N) V2beta1APISubresourceDiscoveryFluent.this.setToAcceptedTypes(index, builder.build()); + } + + public N endAcceptedType() { + return and(); + } + + } + public class ResponseKindNested extends V1GroupVersionKindFluent> implements Nested{ + + V1GroupVersionKindBuilder builder; + + ResponseKindNested(V1GroupVersionKind item) { + this.builder = new V1GroupVersionKindBuilder(this, item); + } + + public N and() { + return (N) V2beta1APISubresourceDiscoveryFluent.this.withResponseKind(builder.build()); + } + + public N endResponseKind() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscoveryBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscoveryBuilder.java new file mode 100644 index 0000000000..1dc95566ca --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscoveryBuilder.java @@ -0,0 +1,47 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.VisitableBuilder; +import java.lang.Object; +public class V2beta1APIVersionDiscoveryBuilder extends V2beta1APIVersionDiscoveryFluent implements VisitableBuilder{ + + V2beta1APIVersionDiscoveryFluent fluent; + + public V2beta1APIVersionDiscoveryBuilder() { + this(new V2beta1APIVersionDiscovery()); + } + + public V2beta1APIVersionDiscoveryBuilder(V2beta1APIVersionDiscoveryFluent fluent) { + this(fluent, new V2beta1APIVersionDiscovery()); + } + + public V2beta1APIVersionDiscoveryBuilder(V2beta1APIVersionDiscovery instance) { + this.fluent = this; + this.copyInstance(instance); + } + + public V2beta1APIVersionDiscoveryBuilder(V2beta1APIVersionDiscoveryFluent fluent,V2beta1APIVersionDiscovery instance) { + this.fluent = fluent; + fluent.copyInstance(instance); + } + + public V2beta1APIVersionDiscovery build() { + V2beta1APIVersionDiscovery buildable = new V2beta1APIVersionDiscovery(); + buildable.setVersion(fluent.getVersion()); + buildable.setResources(fluent.buildResources()); + buildable.setFreshness(fluent.getFreshness()); + return buildable; + } + +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscoveryFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscoveryFluent.java new file mode 100644 index 0000000000..a39c63c864 --- /dev/null +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscoveryFluent.java @@ -0,0 +1,355 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import io.kubernetes.client.fluent.BaseFluent; +import io.kubernetes.client.fluent.Nested; +import java.lang.Object; +import java.lang.RuntimeException; +import java.lang.String; +import java.lang.StringBuilder; +import java.lang.SuppressWarnings; +import java.util.ArrayList; +import java.util.Collection; +import java.util.Iterator; +import java.util.List; +import java.util.Objects; +import java.util.function.Predicate; + +/** + * Generated + */ +@SuppressWarnings("unchecked") +public class V2beta1APIVersionDiscoveryFluent> extends BaseFluent{ + + private String freshness; + private ArrayList resources; + private String version; + + public V2beta1APIVersionDiscoveryFluent() { + } + + public V2beta1APIVersionDiscoveryFluent(V2beta1APIVersionDiscovery instance) { + this.copyInstance(instance); + } + + public A addAllToResources(Collection items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (V2beta1APIResourceDiscovery item : items) { + V2beta1APIResourceDiscoveryBuilder builder = new V2beta1APIResourceDiscoveryBuilder(item); + this._visitables.get("resources").add(builder); + this.resources.add(builder); + } + return (A) this; + } + + public ResourcesNested addNewResource() { + return new ResourcesNested(-1, null); + } + + public ResourcesNested addNewResourceLike(V2beta1APIResourceDiscovery item) { + return new ResourcesNested(-1, item); + } + + public A addToResources(V2beta1APIResourceDiscovery... items) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + for (V2beta1APIResourceDiscovery item : items) { + V2beta1APIResourceDiscoveryBuilder builder = new V2beta1APIResourceDiscoveryBuilder(item); + this._visitables.get("resources").add(builder); + this.resources.add(builder); + } + return (A) this; + } + + public A addToResources(int index,V2beta1APIResourceDiscovery item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + V2beta1APIResourceDiscoveryBuilder builder = new V2beta1APIResourceDiscoveryBuilder(item); + if (index < 0 || index >= this.resources.size()) { + this._visitables.get("resources").add(builder); + this.resources.add(builder); + } else { + this._visitables.get("resources").add(builder); + this.resources.add(index, builder); + } + return (A) this; + } + + public V2beta1APIResourceDiscovery buildFirstResource() { + return this.resources.get(0).build(); + } + + public V2beta1APIResourceDiscovery buildLastResource() { + return this.resources.get(resources.size() - 1).build(); + } + + public V2beta1APIResourceDiscovery buildMatchingResource(Predicate predicate) { + for (V2beta1APIResourceDiscoveryBuilder item : resources) { + if (predicate.test(item)) { + return item.build(); + } + } + return null; + } + + public V2beta1APIResourceDiscovery buildResource(int index) { + return this.resources.get(index).build(); + } + + public List buildResources() { + return this.resources != null ? build(resources) : null; + } + + protected void copyInstance(V2beta1APIVersionDiscovery instance) { + instance = instance != null ? instance : new V2beta1APIVersionDiscovery(); + if (instance != null) { + this.withVersion(instance.getVersion()); + this.withResources(instance.getResources()); + this.withFreshness(instance.getFreshness()); + } + } + + public ResourcesNested editFirstResource() { + if (resources.size() == 0) { + throw new RuntimeException(String.format("Can't edit first %s. The list is empty.", "resources")); + } + return this.setNewResourceLike(0, this.buildResource(0)); + } + + public ResourcesNested editLastResource() { + int index = resources.size() - 1; + if (index < 0) { + throw new RuntimeException(String.format("Can't edit last %s. The list is empty.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); + } + + public ResourcesNested editMatchingResource(Predicate predicate) { + int index = -1; + for (int i = 0;i < resources.size();i++) { + if (predicate.test(resources.get(i))) { + index = i; + break; + } + } + if (index < 0) { + throw new RuntimeException(String.format("Can't edit matching %s. No match found.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); + } + + public ResourcesNested editResource(int index) { + if (resources.size() <= index) { + throw new RuntimeException(String.format("Can't edit %s. Index exceeds size.", "resources")); + } + return this.setNewResourceLike(index, this.buildResource(index)); + } + + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || this.getClass() != o.getClass()) { + return false; + } + if (!(super.equals(o))) { + return false; + } + V2beta1APIVersionDiscoveryFluent that = (V2beta1APIVersionDiscoveryFluent) o; + if (!(Objects.equals(version, that.version))) { + return false; + } + if (!(Objects.equals(resources, that.resources))) { + return false; + } + if (!(Objects.equals(freshness, that.freshness))) { + return false; + } + return true; + } + + public String getFreshness() { + return this.freshness; + } + + public String getVersion() { + return this.version; + } + + public boolean hasFreshness() { + return this.freshness != null; + } + + public boolean hasMatchingResource(Predicate predicate) { + for (V2beta1APIResourceDiscoveryBuilder item : resources) { + if (predicate.test(item)) { + return true; + } + } + return false; + } + + public boolean hasResources() { + return this.resources != null && !(this.resources.isEmpty()); + } + + public boolean hasVersion() { + return this.version != null; + } + + public int hashCode() { + return Objects.hash(version, resources, freshness); + } + + public A removeAllFromResources(Collection items) { + if (this.resources == null) { + return (A) this; + } + for (V2beta1APIResourceDiscovery item : items) { + V2beta1APIResourceDiscoveryBuilder builder = new V2beta1APIResourceDiscoveryBuilder(item); + _visitables.get("resources").remove(builder); + this.resources.remove(builder); + } + return (A) this; + } + + public A removeFromResources(V2beta1APIResourceDiscovery... items) { + if (this.resources == null) { + return (A) this; + } + for (V2beta1APIResourceDiscovery item : items) { + V2beta1APIResourceDiscoveryBuilder builder = new V2beta1APIResourceDiscoveryBuilder(item); + _visitables.get("resources").remove(builder); + this.resources.remove(builder); + } + return (A) this; + } + + public A removeMatchingFromResources(Predicate predicate) { + if (resources == null) { + return (A) this; + } + Iterator each = resources.iterator(); + List visitables = this._visitables.get("resources"); + while (each.hasNext()) { + V2beta1APIResourceDiscoveryBuilder builder = each.next(); + if (predicate.test(builder)) { + visitables.remove(builder); + each.remove(); + } + } + return (A) this; + } + + public ResourcesNested setNewResourceLike(int index,V2beta1APIResourceDiscovery item) { + return new ResourcesNested(index, item); + } + + public A setToResources(int index,V2beta1APIResourceDiscovery item) { + if (this.resources == null) { + this.resources = new ArrayList(); + } + V2beta1APIResourceDiscoveryBuilder builder = new V2beta1APIResourceDiscoveryBuilder(item); + if (index < 0 || index >= this.resources.size()) { + this._visitables.get("resources").add(builder); + this.resources.add(builder); + } else { + this._visitables.get("resources").add(builder); + this.resources.set(index, builder); + } + return (A) this; + } + + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("{"); + if (!(version == null)) { + sb.append("version:"); + sb.append(version); + sb.append(","); + } + if (!(resources == null) && !(resources.isEmpty())) { + sb.append("resources:"); + sb.append(resources); + sb.append(","); + } + if (!(freshness == null)) { + sb.append("freshness:"); + sb.append(freshness); + } + sb.append("}"); + return sb.toString(); + } + + public A withFreshness(String freshness) { + this.freshness = freshness; + return (A) this; + } + + public A withResources(List resources) { + if (this.resources != null) { + this._visitables.get("resources").clear(); + } + if (resources != null) { + this.resources = new ArrayList(); + for (V2beta1APIResourceDiscovery item : resources) { + this.addToResources(item); + } + } else { + this.resources = null; + } + return (A) this; + } + + public A withResources(V2beta1APIResourceDiscovery... resources) { + if (this.resources != null) { + this.resources.clear(); + _visitables.remove("resources"); + } + if (resources != null) { + for (V2beta1APIResourceDiscovery item : resources) { + this.addToResources(item); + } + } + return (A) this; + } + + public A withVersion(String version) { + this.version = version; + return (A) this; + } + public class ResourcesNested extends V2beta1APIResourceDiscoveryFluent> implements Nested{ + + V2beta1APIResourceDiscoveryBuilder builder; + int index; + + ResourcesNested(int index,V2beta1APIResourceDiscovery item) { + this.index = index; + this.builder = new V2beta1APIResourceDiscoveryBuilder(this, item); + } + + public N and() { + return (N) V2beta1APIVersionDiscoveryFluent.this.setToResources(index, builder.build()); + } + + public N endResource() { + return and(); + } + + } +} \ No newline at end of file diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java index 2daa4d82a4..24f4930629 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoBuilder.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java index 2ad0807f35..3e9b2cc601 100644 --- a/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java +++ b/fluent/src/main/java/io/kubernetes/client/openapi/models/VersionInfoFluent.java @@ -1,5 +1,5 @@ /* -Copyright 2020 The Kubernetes Authors. +Copyright 2026 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/kubernetes/.github/workflows/maven.yml b/kubernetes/.github/workflows/maven.yml index d477f8fd78..2bdb7b6d47 100644 --- a/kubernetes/.github/workflows/maven.yml +++ b/kubernetes/.github/workflows/maven.yml @@ -19,9 +19,9 @@ jobs: matrix: java: [ 17, 21 ] steps: - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + - uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@c1e323688fd81a25caa38c78aa6df2d33d3e20d9 # v4 + uses: actions/setup-java@v4 with: java-version: ${{ matrix.java }} distribution: 'temurin' diff --git a/kubernetes/.openapi-generator/FILES b/kubernetes/.openapi-generator/FILES index 067ed495fb..c29871a8c9 100644 --- a/kubernetes/.openapi-generator/FILES +++ b/kubernetes/.openapi-generator/FILES @@ -75,7 +75,7 @@ docs/ResourceV1beta1Api.md docs/ResourceV1beta2Api.md docs/SchedulingApi.md docs/SchedulingV1Api.md -docs/SchedulingV1alpha1Api.md +docs/SchedulingV1alpha2Api.md docs/StorageApi.md docs/StorageV1Api.md docs/StorageV1TokenRequest.md @@ -98,6 +98,7 @@ docs/V1AggregationRule.md docs/V1AllocatedDeviceStatus.md docs/V1AllocationResult.md docs/V1AppArmorProfile.md +docs/V1ApplyConfiguration.md docs/V1AttachedVolume.md docs/V1AuditAnnotation.md docs/V1AzureDiskVolumeSource.md @@ -262,6 +263,7 @@ docs/V1GlusterfsVolumeSource.md docs/V1GroupResource.md docs/V1GroupSubject.md docs/V1GroupVersionForDiscovery.md +docs/V1GroupVersionKind.md docs/V1HTTPGetAction.md docs/V1HTTPHeader.md docs/V1HTTPIngressPath.md @@ -280,6 +282,7 @@ docs/V1IPBlock.md docs/V1ISCSIPersistentVolumeSource.md docs/V1ISCSIVolumeSource.md docs/V1ImageVolumeSource.md +docs/V1ImageVolumeStatus.md docs/V1Ingress.md docs/V1IngressBackend.md docs/V1IngressClass.md @@ -295,6 +298,7 @@ docs/V1IngressServiceBackend.md docs/V1IngressSpec.md docs/V1IngressStatus.md docs/V1IngressTLS.md +docs/V1JSONPatch.md docs/V1JSONSchemaProps.md docs/V1Job.md docs/V1JobCondition.md @@ -328,9 +332,16 @@ docs/V1ManagedFieldsEntry.md docs/V1MatchCondition.md docs/V1MatchResources.md docs/V1ModifyVolumeStatus.md +docs/V1MutatingAdmissionPolicy.md +docs/V1MutatingAdmissionPolicyBinding.md +docs/V1MutatingAdmissionPolicyBindingList.md +docs/V1MutatingAdmissionPolicyBindingSpec.md +docs/V1MutatingAdmissionPolicyList.md +docs/V1MutatingAdmissionPolicySpec.md docs/V1MutatingWebhook.md docs/V1MutatingWebhookConfiguration.md docs/V1MutatingWebhookConfigurationList.md +docs/V1Mutation.md docs/V1NFSVolumeSource.md docs/V1NamedRuleWithOperations.md docs/V1Namespace.md @@ -349,6 +360,8 @@ docs/V1NetworkPolicySpec.md docs/V1Node.md docs/V1NodeAddress.md docs/V1NodeAffinity.md +docs/V1NodeAllocatableResourceClaimStatus.md +docs/V1NodeAllocatableResourceMapping.md docs/V1NodeCondition.md docs/V1NodeConfigSource.md docs/V1NodeConfigStatus.md @@ -412,6 +425,7 @@ docs/V1PodReadinessGate.md docs/V1PodResourceClaim.md docs/V1PodResourceClaimStatus.md docs/V1PodSchedulingGate.md +docs/V1PodSchedulingGroup.md docs/V1PodSecurityContext.md docs/V1PodSpec.md docs/V1PodStatus.md @@ -522,6 +536,7 @@ docs/V1ServicePort.md docs/V1ServiceSpec.md docs/V1ServiceStatus.md docs/V1SessionAffinityConfig.md +docs/V1ShardInfo.md docs/V1SleepAction.md docs/V1StatefulSet.md docs/V1StatefulSetCondition.md @@ -591,17 +606,16 @@ docs/V1VolumeNodeAffinity.md docs/V1VolumeNodeResources.md docs/V1VolumeProjection.md docs/V1VolumeResourceRequirements.md +docs/V1VolumeStatus.md docs/V1VsphereVirtualDiskVolumeSource.md docs/V1WatchEvent.md docs/V1WebhookConversion.md docs/V1WeightedPodAffinityTerm.md docs/V1WindowsSecurityContextOptions.md -docs/V1WorkloadReference.md docs/V1alpha1ApplyConfiguration.md docs/V1alpha1ClusterTrustBundle.md docs/V1alpha1ClusterTrustBundleList.md docs/V1alpha1ClusterTrustBundleSpec.md -docs/V1alpha1GangSchedulingPolicy.md docs/V1alpha1JSONPatch.md docs/V1alpha1MatchCondition.md docs/V1alpha1MatchResources.md @@ -615,27 +629,43 @@ docs/V1alpha1Mutation.md docs/V1alpha1NamedRuleWithOperations.md docs/V1alpha1ParamKind.md docs/V1alpha1ParamRef.md -docs/V1alpha1PodGroup.md -docs/V1alpha1PodGroupPolicy.md docs/V1alpha1ServerStorageVersion.md docs/V1alpha1StorageVersion.md docs/V1alpha1StorageVersionCondition.md docs/V1alpha1StorageVersionList.md docs/V1alpha1StorageVersionStatus.md -docs/V1alpha1TypedLocalObjectReference.md docs/V1alpha1Variable.md -docs/V1alpha1Workload.md -docs/V1alpha1WorkloadList.md -docs/V1alpha1WorkloadSpec.md +docs/V1alpha2GangSchedulingPolicy.md docs/V1alpha2LeaseCandidate.md docs/V1alpha2LeaseCandidateList.md docs/V1alpha2LeaseCandidateSpec.md +docs/V1alpha2PodGroup.md +docs/V1alpha2PodGroupList.md +docs/V1alpha2PodGroupResourceClaim.md +docs/V1alpha2PodGroupResourceClaimStatus.md +docs/V1alpha2PodGroupSchedulingConstraints.md +docs/V1alpha2PodGroupSchedulingPolicy.md +docs/V1alpha2PodGroupSpec.md +docs/V1alpha2PodGroupStatus.md +docs/V1alpha2PodGroupTemplate.md +docs/V1alpha2PodGroupTemplateReference.md +docs/V1alpha2TopologyConstraint.md +docs/V1alpha2TypedLocalObjectReference.md +docs/V1alpha2Workload.md +docs/V1alpha2WorkloadList.md +docs/V1alpha2WorkloadPodGroupTemplateReference.md +docs/V1alpha2WorkloadSpec.md docs/V1alpha3DeviceTaint.md docs/V1alpha3DeviceTaintRule.md docs/V1alpha3DeviceTaintRuleList.md docs/V1alpha3DeviceTaintRuleSpec.md docs/V1alpha3DeviceTaintRuleStatus.md docs/V1alpha3DeviceTaintSelector.md +docs/V1alpha3PoolStatus.md +docs/V1alpha3ResourcePoolStatusRequest.md +docs/V1alpha3ResourcePoolStatusRequestList.md +docs/V1alpha3ResourcePoolStatusRequestSpec.md +docs/V1alpha3ResourcePoolStatusRequestStatus.md docs/V1beta1AllocatedDeviceStatus.md docs/V1beta1AllocationResult.md docs/V1beta1ApplyConfiguration.md @@ -686,6 +716,7 @@ docs/V1beta1MutatingAdmissionPolicySpec.md docs/V1beta1Mutation.md docs/V1beta1NamedRuleWithOperations.md docs/V1beta1NetworkDeviceData.md +docs/V1beta1NodeAllocatableResourceMapping.md docs/V1beta1OpaqueDeviceConfiguration.md docs/V1beta1ParamKind.md docs/V1beta1ParamRef.md @@ -743,9 +774,15 @@ docs/V1beta2DeviceRequestAllocationResult.md docs/V1beta2DeviceSelector.md docs/V1beta2DeviceSubRequest.md docs/V1beta2DeviceTaint.md +docs/V1beta2DeviceTaintRule.md +docs/V1beta2DeviceTaintRuleList.md +docs/V1beta2DeviceTaintRuleSpec.md +docs/V1beta2DeviceTaintRuleStatus.md +docs/V1beta2DeviceTaintSelector.md docs/V1beta2DeviceToleration.md docs/V1beta2ExactDeviceRequest.md docs/V1beta2NetworkDeviceData.md +docs/V1beta2NodeAllocatableResourceMapping.md docs/V1beta2OpaqueDeviceConfiguration.md docs/V1beta2ResourceClaim.md docs/V1beta2ResourceClaimConsumerReference.md @@ -759,6 +796,11 @@ docs/V1beta2ResourcePool.md docs/V1beta2ResourceSlice.md docs/V1beta2ResourceSliceList.md docs/V1beta2ResourceSliceSpec.md +docs/V2APIGroupDiscovery.md +docs/V2APIGroupDiscoveryList.md +docs/V2APIResourceDiscovery.md +docs/V2APISubresourceDiscovery.md +docs/V2APIVersionDiscovery.md docs/V2ContainerResourceMetricSource.md docs/V2ContainerResourceMetricStatus.md docs/V2CrossVersionObjectReference.md @@ -783,6 +825,11 @@ docs/V2PodsMetricSource.md docs/V2PodsMetricStatus.md docs/V2ResourceMetricSource.md docs/V2ResourceMetricStatus.md +docs/V2beta1APIGroupDiscovery.md +docs/V2beta1APIGroupDiscoveryList.md +docs/V2beta1APIResourceDiscovery.md +docs/V2beta1APISubresourceDiscovery.md +docs/V2beta1APIVersionDiscovery.md docs/VersionApi.md docs/VersionInfo.md docs/WellKnownApi.md @@ -859,7 +906,7 @@ src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java src/main/java/io/kubernetes/client/openapi/apis/SchedulingApi.java src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java -src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha1Api.java +src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha2Api.java src/main/java/io/kubernetes/client/openapi/apis/StorageApi.java src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java @@ -907,6 +954,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java +src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java @@ -1071,6 +1119,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1GroupResource.java src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java +src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKind.java src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java @@ -1089,6 +1138,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java +src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatus.java src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java @@ -1104,6 +1154,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java +src/main/java/io/kubernetes/client/openapi/models/V1JSONPatch.java src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java src/main/java/io/kubernetes/client/openapi/models/V1Job.java src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java @@ -1137,9 +1188,16 @@ src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBinding.java +src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingList.java +src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyList.java +src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpec.java src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java +src/main/java/io/kubernetes/client/openapi/models/V1Mutation.java src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java @@ -1158,6 +1216,8 @@ src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java src/main/java/io/kubernetes/client/openapi/models/V1Node.java src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMapping.java src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java @@ -1221,6 +1281,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java +src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroup.java src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java @@ -1331,6 +1392,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java +src/main/java/io/kubernetes/client/openapi/models/V1ShardInfo.java src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java @@ -1400,17 +1462,16 @@ src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java +src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatus.java src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java -src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReference.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicy.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java @@ -1424,27 +1485,43 @@ src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroup.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicy.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypedLocalObjectReference.java src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1Workload.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadList.java -src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicy.java src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroup.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaim.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraints.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicy.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplate.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReference.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraint.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReference.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2Workload.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReference.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpec.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatus.java src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequest.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestList.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatus.java src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java @@ -1495,6 +1572,7 @@ src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java +src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMapping.java src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java @@ -1552,9 +1630,15 @@ src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocation src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRule.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleList.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpec.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatus.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelector.java src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java +src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMapping.java src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java @@ -1568,6 +1652,11 @@ src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java +src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscovery.java +src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryList.java +src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscovery.java +src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscovery.java +src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscovery.java src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java @@ -1592,4 +1681,9 @@ src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java +src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscovery.java +src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryList.java +src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscovery.java +src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscovery.java +src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscovery.java src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java diff --git a/kubernetes/.openapi-generator/swagger.json-default.sha256 b/kubernetes/.openapi-generator/swagger.json-default.sha256 index ca16f1f7a5..c1142dc0be 100644 --- a/kubernetes/.openapi-generator/swagger.json-default.sha256 +++ b/kubernetes/.openapi-generator/swagger.json-default.sha256 @@ -1 +1 @@ -2d596aae9025285daf9d10a1906d6e64ea830397be7af642c90f2df86707cf48 \ No newline at end of file +a8141d8bcefffd44bfac51ca1224da97448638191872f8a40ded9f8d6f7b258a \ No newline at end of file diff --git a/kubernetes/api/openapi.yaml b/kubernetes/api/openapi.yaml index 0bbb34b500..221bf5cef4 100644 --- a/kubernetes/api/openapi.yaml +++ b/kubernetes/api/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.1 info: title: Kubernetes - version: release-1.35 + version: release-1.36 servers: - url: / security: @@ -147,6 +147,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -335,6 +362,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -474,6 +528,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -613,6 +694,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -752,6 +860,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -891,6 +1026,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -1308,6 +1470,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -1442,6 +1631,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -2156,6 +2372,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -2290,6 +2533,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -3004,6 +3274,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -3138,6 +3435,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -3852,6 +4176,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -3986,6 +4337,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -4700,6 +5078,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -4834,6 +5239,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -5830,6 +6262,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -5964,6 +6423,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -8872,6 +9358,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -9006,6 +9519,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -9720,6 +10260,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -9854,6 +10421,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -11132,6 +11726,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -11266,6 +11887,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -12262,6 +12910,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -12396,6 +13071,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -13110,6 +13812,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -13244,6 +13973,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -14083,6 +14839,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -14217,6 +15000,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -16607,6 +17417,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -16735,6 +17572,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -18170,6 +19034,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -18350,6 +19241,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -18478,6 +19396,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -19379,6 +20324,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -19518,6 +20490,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -19657,6 +20656,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -19796,6 +20822,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -19935,6 +20988,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -20074,6 +21154,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -20213,6 +21320,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -20392,10 +21526,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations: + /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies: delete: - description: delete collection of MutatingWebhookConfiguration - operationId: deleteCollectionMutatingWebhookConfiguration + description: delete collection of MutatingAdmissionPolicy + operationId: deleteCollectionMutatingAdmissionPolicy parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -20517,6 +21651,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -20553,7 +21714,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingWebhookConfiguration + kind: MutatingAdmissionPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -20563,8 +21724,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind MutatingWebhookConfiguration - operationId: listMutatingWebhookConfiguration + description: list or watch objects of kind MutatingAdmissionPolicy + operationId: listMutatingAdmissionPolicy parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -20645,6 +21806,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -20662,25 +21850,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyList" application/yaml: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyList" application/cbor: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyList" description: OK "401": content: {} @@ -20690,7 +21878,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingWebhookConfiguration + kind: MutatingAdmissionPolicy version: v1 x-accepts: - application/cbor @@ -20701,8 +21889,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a MutatingWebhookConfiguration - operationId: createMutatingWebhookConfiguration + description: create a MutatingAdmissionPolicy + operationId: createMutatingAdmissionPolicy parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -20747,53 +21935,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" description: Accepted "401": content: {} @@ -20803,7 +21991,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingWebhookConfiguration + kind: MutatingAdmissionPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -20812,12 +22000,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}: + /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies/{name}: delete: - description: delete a MutatingWebhookConfiguration - operationId: deleteMutatingWebhookConfiguration + description: delete a MutatingAdmissionPolicy + operationId: deleteMutatingAdmissionPolicy parameters: - - description: name of the MutatingWebhookConfiguration + - description: name of the MutatingAdmissionPolicy in: path name: name required: true @@ -20926,7 +22114,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingWebhookConfiguration + kind: MutatingAdmissionPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -20936,10 +22124,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified MutatingWebhookConfiguration - operationId: readMutatingWebhookConfiguration + description: read the specified MutatingAdmissionPolicy + operationId: readMutatingAdmissionPolicy parameters: - - description: name of the MutatingWebhookConfiguration + - description: name of the MutatingAdmissionPolicy in: path name: name required: true @@ -20957,16 +22145,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" description: OK "401": content: {} @@ -20976,7 +22164,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingWebhookConfiguration + kind: MutatingAdmissionPolicy version: v1 x-accepts: - application/cbor @@ -20984,10 +22172,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified MutatingWebhookConfiguration - operationId: patchMutatingWebhookConfiguration + description: partially update the specified MutatingAdmissionPolicy + operationId: patchMutatingAdmissionPolicy parameters: - - description: name of the MutatingWebhookConfiguration + - description: name of the MutatingAdmissionPolicy in: path name: name required: true @@ -21052,31 +22240,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" description: Created "401": content: {} @@ -21086,7 +22274,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingWebhookConfiguration + kind: MutatingAdmissionPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -21096,10 +22284,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified MutatingWebhookConfiguration - operationId: replaceMutatingWebhookConfiguration + description: replace the specified MutatingAdmissionPolicy + operationId: replaceMutatingAdmissionPolicy parameters: - - description: name of the MutatingWebhookConfiguration + - description: name of the MutatingAdmissionPolicy in: path name: name required: true @@ -21148,38 +22336,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" description: Created "401": content: {} @@ -21189,7 +22377,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingWebhookConfiguration + kind: MutatingAdmissionPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -21198,10 +22386,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies: + /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings: delete: - description: delete collection of ValidatingAdmissionPolicy - operationId: deleteCollectionValidatingAdmissionPolicy + description: delete collection of MutatingAdmissionPolicyBinding + operationId: deleteCollectionMutatingAdmissionPolicyBinding parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -21323,6 +22511,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -21359,7 +22574,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicyBinding version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -21369,8 +22584,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ValidatingAdmissionPolicy - operationId: listValidatingAdmissionPolicy + description: list or watch objects of kind MutatingAdmissionPolicyBinding + operationId: listMutatingAdmissionPolicyBinding parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -21451,6 +22666,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -21468,25 +22710,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBindingList" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBindingList" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBindingList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBindingList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBindingList" description: OK "401": content: {} @@ -21496,7 +22738,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicyBinding version: v1 x-accepts: - application/cbor @@ -21507,8 +22749,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ValidatingAdmissionPolicy - operationId: createValidatingAdmissionPolicy + description: create a MutatingAdmissionPolicyBinding + operationId: createMutatingAdmissionPolicyBinding parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -21553,53 +22795,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" description: Accepted "401": content: {} @@ -21609,7 +22851,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicyBinding version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -21618,12 +22860,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}: + /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings/{name}: delete: - description: delete a ValidatingAdmissionPolicy - operationId: deleteValidatingAdmissionPolicy + description: delete a MutatingAdmissionPolicyBinding + operationId: deleteMutatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the MutatingAdmissionPolicyBinding in: path name: name required: true @@ -21732,270 +22974,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: read the specified ValidatingAdmissionPolicy - operationId: readValidatingAdmissionPolicy - parameters: - - description: name of the ValidatingAdmissionPolicy - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - application/yaml: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - application/cbor: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - admissionregistration_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update the specified ValidatingAdmissionPolicy - operationId: patchValidatingAdmissionPolicy - parameters: - - description: name of the ValidatingAdmissionPolicy - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Patch" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - application/yaml: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - application/cbor: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - application/yaml: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - application/cbor: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - admissionregistration_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace the specified ValidatingAdmissionPolicy - operationId: replaceValidatingAdmissionPolicy - parameters: - - description: name of the ValidatingAdmissionPolicy - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - application/yaml: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - application/cbor: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - application/yaml: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - application/cbor: - schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - admissionregistration_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicyBinding version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -22004,12 +22983,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status: get: - description: read status of the specified ValidatingAdmissionPolicy - operationId: readValidatingAdmissionPolicyStatus + description: read the specified MutatingAdmissionPolicyBinding + operationId: readMutatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the MutatingAdmissionPolicyBinding in: path name: name required: true @@ -22027,16 +23005,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" description: OK "401": content: {} @@ -22046,7 +23024,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicyBinding version: v1 x-accepts: - application/cbor @@ -22054,10 +23032,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified ValidatingAdmissionPolicy - operationId: patchValidatingAdmissionPolicyStatus + description: partially update the specified MutatingAdmissionPolicyBinding + operationId: patchMutatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the MutatingAdmissionPolicyBinding in: path name: name required: true @@ -22122,31 +23100,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" description: Created "401": content: {} @@ -22156,7 +23134,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicyBinding version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -22166,10 +23144,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified ValidatingAdmissionPolicy - operationId: replaceValidatingAdmissionPolicyStatus + description: replace the specified MutatingAdmissionPolicyBinding + operationId: replaceMutatingAdmissionPolicyBinding parameters: - - description: name of the ValidatingAdmissionPolicy + - description: name of the MutatingAdmissionPolicyBinding in: path name: name required: true @@ -22218,38 +23196,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" description: Created "401": content: {} @@ -22259,7 +23237,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicy + kind: MutatingAdmissionPolicyBinding version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -22268,10 +23246,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings: + /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations: delete: - description: delete collection of ValidatingAdmissionPolicyBinding - operationId: deleteCollectionValidatingAdmissionPolicyBinding + description: delete collection of MutatingWebhookConfiguration + operationId: deleteCollectionMutatingWebhookConfiguration parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -22393,6 +23371,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -22429,7 +23434,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingWebhookConfiguration version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -22439,8 +23444,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ValidatingAdmissionPolicyBinding - operationId: listValidatingAdmissionPolicyBinding + description: list or watch objects of kind MutatingWebhookConfiguration + operationId: listMutatingWebhookConfiguration parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -22521,6 +23526,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -22538,25 +23570,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1.MutatingWebhookConfigurationList" description: OK "401": content: {} @@ -22566,7 +23598,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingWebhookConfiguration version: v1 x-accepts: - application/cbor @@ -22577,8 +23609,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ValidatingAdmissionPolicyBinding - operationId: createValidatingAdmissionPolicyBinding + description: create a MutatingWebhookConfiguration + operationId: createMutatingWebhookConfiguration parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -22623,53 +23655,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: Accepted "401": content: {} @@ -22679,7 +23711,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingWebhookConfiguration version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -22688,12 +23720,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}: + /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}: delete: - description: delete a ValidatingAdmissionPolicyBinding - operationId: deleteValidatingAdmissionPolicyBinding + description: delete a MutatingWebhookConfiguration + operationId: deleteMutatingWebhookConfiguration parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the MutatingWebhookConfiguration in: path name: name required: true @@ -22802,7 +23834,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingWebhookConfiguration version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -22812,10 +23844,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ValidatingAdmissionPolicyBinding - operationId: readValidatingAdmissionPolicyBinding + description: read the specified MutatingWebhookConfiguration + operationId: readMutatingWebhookConfiguration parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the MutatingWebhookConfiguration in: path name: name required: true @@ -22833,16 +23865,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: OK "401": content: {} @@ -22852,7 +23884,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingWebhookConfiguration version: v1 x-accepts: - application/cbor @@ -22860,10 +23892,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ValidatingAdmissionPolicyBinding - operationId: patchValidatingAdmissionPolicyBinding + description: partially update the specified MutatingWebhookConfiguration + operationId: patchMutatingWebhookConfiguration parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the MutatingWebhookConfiguration in: path name: name required: true @@ -22928,31 +23960,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: Created "401": content: {} @@ -22962,7 +23994,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingWebhookConfiguration version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -22972,10 +24004,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ValidatingAdmissionPolicyBinding - operationId: replaceValidatingAdmissionPolicyBinding + description: replace the specified MutatingWebhookConfiguration + operationId: replaceMutatingWebhookConfiguration parameters: - - description: name of the ValidatingAdmissionPolicyBinding + - description: name of the MutatingWebhookConfiguration in: path name: name required: true @@ -23024,38 +24056,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.MutatingWebhookConfiguration" description: Created "401": content: {} @@ -23065,7 +24097,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingAdmissionPolicyBinding + kind: MutatingWebhookConfiguration version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -23074,10 +24106,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations: + /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies: delete: - description: delete collection of ValidatingWebhookConfiguration - operationId: deleteCollectionValidatingWebhookConfiguration + description: delete collection of ValidatingAdmissionPolicy + operationId: deleteCollectionValidatingAdmissionPolicy parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -23199,6 +24231,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -23235,7 +24294,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration + kind: ValidatingAdmissionPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -23245,8 +24304,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ValidatingWebhookConfiguration - operationId: listValidatingWebhookConfiguration + description: list or watch objects of kind ValidatingAdmissionPolicy + operationId: listValidatingAdmissionPolicy parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -23327,6 +24386,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -23344,25 +24430,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyList" description: OK "401": content: {} @@ -23372,7 +24458,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration + kind: ValidatingAdmissionPolicy version: v1 x-accepts: - application/cbor @@ -23383,8 +24469,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ValidatingWebhookConfiguration - operationId: createValidatingWebhookConfiguration + description: create a ValidatingAdmissionPolicy + operationId: createValidatingAdmissionPolicy parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -23429,53 +24515,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Accepted "401": content: {} @@ -23485,7 +24571,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration + kind: ValidatingAdmissionPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -23494,12 +24580,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}: + /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}: delete: - description: delete a ValidatingWebhookConfiguration - operationId: deleteValidatingWebhookConfiguration + description: delete a ValidatingAdmissionPolicy + operationId: deleteValidatingAdmissionPolicy parameters: - - description: name of the ValidatingWebhookConfiguration + - description: name of the ValidatingAdmissionPolicy in: path name: name required: true @@ -23608,7 +24694,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration + kind: ValidatingAdmissionPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -23618,10 +24704,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ValidatingWebhookConfiguration - operationId: readValidatingWebhookConfiguration + description: read the specified ValidatingAdmissionPolicy + operationId: readValidatingAdmissionPolicy parameters: - - description: name of the ValidatingWebhookConfiguration + - description: name of the ValidatingAdmissionPolicy in: path name: name required: true @@ -23639,16 +24725,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: OK "401": content: {} @@ -23658,7 +24744,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration + kind: ValidatingAdmissionPolicy version: v1 x-accepts: - application/cbor @@ -23666,10 +24752,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ValidatingWebhookConfiguration - operationId: patchValidatingWebhookConfiguration + description: partially update the specified ValidatingAdmissionPolicy + operationId: patchValidatingAdmissionPolicy parameters: - - description: name of the ValidatingWebhookConfiguration + - description: name of the ValidatingAdmissionPolicy in: path name: name required: true @@ -23734,31 +24820,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Created "401": content: {} @@ -23768,7 +24854,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration + kind: ValidatingAdmissionPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -23778,10 +24864,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ValidatingWebhookConfiguration - operationId: replaceValidatingWebhookConfiguration + description: replace the specified ValidatingAdmissionPolicy + operationId: replaceValidatingAdmissionPolicy parameters: - - description: name of the ValidatingWebhookConfiguration + - description: name of the ValidatingAdmissionPolicy in: path name: name required: true @@ -23830,38 +24916,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: Created "401": content: {} @@ -23871,7 +24957,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: ValidatingWebhookConfiguration + kind: ValidatingAdmissionPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -23880,48 +24966,274 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations: {} - /apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations/{name}: {} - /apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicies: {} - /apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicies/{name}: {} - /apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicybindings: {} - /apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicybindings/{name}: {} - /apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations: {} - /apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations/{name}: {} - /apis/admissionregistration.k8s.io/v1alpha1/: + /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status: get: - description: get available resources - operationId: getAPIResources + description: read status of the specified ValidatingAdmissionPolicy + operationId: readValidatingAdmissionPolicyStatus + parameters: + - description: name of the ValidatingAdmissionPolicy + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies: + patch: + description: partially update status of the specified ValidatingAdmissionPolicy + operationId: patchValidatingAdmissionPolicyStatus + parameters: + - description: name of the ValidatingAdmissionPolicy + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - admissionregistration_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified ValidatingAdmissionPolicy + operationId: replaceValidatingAdmissionPolicyStatus + parameters: + - description: name of the ValidatingAdmissionPolicy + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicy" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - admissionregistration_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: admissionregistration.k8s.io + kind: ValidatingAdmissionPolicy + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings: delete: - description: delete collection of MutatingAdmissionPolicy - operationId: deleteCollectionMutatingAdmissionPolicy + description: delete collection of ValidatingAdmissionPolicyBinding + operationId: deleteCollectionValidatingAdmissionPolicyBinding parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -24043,6 +25355,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -24075,12 +25414,12 @@ paths: content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicy - version: v1alpha1 + kind: ValidatingAdmissionPolicyBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -24089,8 +25428,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind MutatingAdmissionPolicy - operationId: listMutatingAdmissionPolicy + description: list or watch objects of kind ValidatingAdmissionPolicyBinding + operationId: listValidatingAdmissionPolicyBinding parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -24171,6 +25510,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -24188,36 +25554,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingList" description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicy - version: v1alpha1 + kind: ValidatingAdmissionPolicyBinding + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -24227,8 +25593,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a MutatingAdmissionPolicy - operationId: createMutatingAdmissionPolicy + description: create a ValidatingAdmissionPolicyBinding + operationId: createValidatingAdmissionPolicyBinding parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -24273,64 +25639,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: Accepted "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicy - version: v1alpha1 + kind: ValidatingAdmissionPolicyBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -24338,12 +25704,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name}: + /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}: delete: - description: delete a MutatingAdmissionPolicy - operationId: deleteMutatingAdmissionPolicy + description: delete a ValidatingAdmissionPolicyBinding + operationId: deleteValidatingAdmissionPolicyBinding parameters: - - description: name of the MutatingAdmissionPolicy + - description: name of the ValidatingAdmissionPolicyBinding in: path name: name required: true @@ -24448,12 +25814,12 @@ paths: content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicy - version: v1alpha1 + kind: ValidatingAdmissionPolicyBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -24462,10 +25828,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified MutatingAdmissionPolicy - operationId: readMutatingAdmissionPolicy + description: read the specified ValidatingAdmissionPolicyBinding + operationId: readValidatingAdmissionPolicyBinding parameters: - - description: name of the MutatingAdmissionPolicy + - description: name of the ValidatingAdmissionPolicyBinding in: path name: name required: true @@ -24483,37 +25849,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicy - version: v1alpha1 + kind: ValidatingAdmissionPolicyBinding + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified MutatingAdmissionPolicy - operationId: patchMutatingAdmissionPolicy + description: partially update the specified ValidatingAdmissionPolicyBinding + operationId: patchValidatingAdmissionPolicyBinding parameters: - - description: name of the MutatingAdmissionPolicy + - description: name of the ValidatingAdmissionPolicyBinding in: path name: name required: true @@ -24578,42 +25944,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicy - version: v1alpha1 + kind: ValidatingAdmissionPolicyBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -24622,10 +25988,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified MutatingAdmissionPolicy - operationId: replaceMutatingAdmissionPolicy + description: replace the specified ValidatingAdmissionPolicyBinding + operationId: replaceValidatingAdmissionPolicyBinding parameters: - - description: name of the MutatingAdmissionPolicy + - description: name of the ValidatingAdmissionPolicyBinding in: path name: name required: true @@ -24674,49 +26040,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBinding" description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicy - version: v1alpha1 + kind: ValidatingAdmissionPolicyBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -24724,10 +26090,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings: + /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations: delete: - description: delete collection of MutatingAdmissionPolicyBinding - operationId: deleteCollectionMutatingAdmissionPolicyBinding + description: delete collection of ValidatingWebhookConfiguration + operationId: deleteCollectionValidatingWebhookConfiguration parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -24849,6 +26215,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -24881,12 +26274,12 @@ paths: content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicyBinding - version: v1alpha1 + kind: ValidatingWebhookConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -24895,8 +26288,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind MutatingAdmissionPolicyBinding - operationId: listMutatingAdmissionPolicyBinding + description: list or watch objects of kind ValidatingWebhookConfiguration + operationId: listValidatingWebhookConfiguration parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -24977,6 +26370,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -24994,36 +26414,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1.ValidatingWebhookConfigurationList" description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicyBinding - version: v1alpha1 + kind: ValidatingWebhookConfiguration + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -25033,8 +26453,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a MutatingAdmissionPolicyBinding - operationId: createMutatingAdmissionPolicyBinding + description: create a ValidatingWebhookConfiguration + operationId: createValidatingWebhookConfiguration parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -25079,64 +26499,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: Accepted "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicyBinding - version: v1alpha1 + kind: ValidatingWebhookConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -25144,12 +26564,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name}: + /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}: delete: - description: delete a MutatingAdmissionPolicyBinding - operationId: deleteMutatingAdmissionPolicyBinding + description: delete a ValidatingWebhookConfiguration + operationId: deleteValidatingWebhookConfiguration parameters: - - description: name of the MutatingAdmissionPolicyBinding + - description: name of the ValidatingWebhookConfiguration in: path name: name required: true @@ -25254,12 +26674,12 @@ paths: content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicyBinding - version: v1alpha1 + kind: ValidatingWebhookConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -25268,10 +26688,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified MutatingAdmissionPolicyBinding - operationId: readMutatingAdmissionPolicyBinding + description: read the specified ValidatingWebhookConfiguration + operationId: readValidatingWebhookConfiguration parameters: - - description: name of the MutatingAdmissionPolicyBinding + - description: name of the ValidatingWebhookConfiguration in: path name: name required: true @@ -25289,37 +26709,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicyBinding - version: v1alpha1 + kind: ValidatingWebhookConfiguration + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified MutatingAdmissionPolicyBinding - operationId: patchMutatingAdmissionPolicyBinding + description: partially update the specified ValidatingWebhookConfiguration + operationId: patchValidatingWebhookConfiguration parameters: - - description: name of the MutatingAdmissionPolicyBinding + - description: name of the ValidatingWebhookConfiguration in: path name: name required: true @@ -25384,42 +26804,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicyBinding - version: v1alpha1 + kind: ValidatingWebhookConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -25428,10 +26848,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified MutatingAdmissionPolicyBinding - operationId: replaceMutatingAdmissionPolicyBinding + description: replace the specified ValidatingWebhookConfiguration + operationId: replaceValidatingWebhookConfiguration parameters: - - description: name of the MutatingAdmissionPolicyBinding + - description: name of the ValidatingWebhookConfiguration in: path name: name required: true @@ -25480,49 +26900,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1.ValidatingWebhookConfiguration" description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1alpha1 + - admissionregistration_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io - kind: MutatingAdmissionPolicyBinding - version: v1alpha1 + kind: ValidatingWebhookConfiguration + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -25530,11 +26950,19 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicies: {} - /apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicies/{name}: {} - /apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicybindings: {} - /apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicybindings/{name}: {} - /apis/admissionregistration.k8s.io/v1beta1/: + /apis/admissionregistration.k8s.io/v1/watch/mutatingadmissionpolicies: {} + /apis/admissionregistration.k8s.io/v1/watch/mutatingadmissionpolicies/{name}: {} + /apis/admissionregistration.k8s.io/v1/watch/mutatingadmissionpolicybindings: {} + /apis/admissionregistration.k8s.io/v1/watch/mutatingadmissionpolicybindings/{name}: {} + /apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations: {} + /apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations/{name}: {} + /apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicies: {} + /apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicies/{name}: {} + /apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicybindings: {} + /apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicybindings/{name}: {} + /apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations: {} + /apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations/{name}: {} + /apis/admissionregistration.k8s.io/v1alpha1/: get: description: get available resources operationId: getAPIResources @@ -25558,13 +26986,13 @@ paths: content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies: + /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies: delete: description: delete collection of MutatingAdmissionPolicy operationId: deleteCollectionMutatingAdmissionPolicy @@ -25689,6 +27117,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -25721,12 +27176,12 @@ paths: content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io kind: MutatingAdmissionPolicy - version: v1beta1 + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -25817,6 +27272,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -25834,36 +27316,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyList" description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io kind: MutatingAdmissionPolicy - version: v1beta1 + version: v1alpha1 x-accepts: - application/cbor - application/cbor-seq @@ -25919,64 +27401,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: Accepted "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io kind: MutatingAdmissionPolicy - version: v1beta1 + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -25984,7 +27466,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}: + /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name}: delete: description: delete a MutatingAdmissionPolicy operationId: deleteMutatingAdmissionPolicy @@ -26094,12 +27576,12 @@ paths: content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io kind: MutatingAdmissionPolicy - version: v1beta1 + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -26129,27 +27611,27 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io kind: MutatingAdmissionPolicy - version: v1beta1 + version: v1alpha1 x-accepts: - application/cbor - application/json @@ -26224,42 +27706,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io kind: MutatingAdmissionPolicy - version: v1beta1 + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -26320,49 +27802,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicy" description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io kind: MutatingAdmissionPolicy - version: v1beta1 + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -26370,7 +27852,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings: + /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings: delete: description: delete collection of MutatingAdmissionPolicyBinding operationId: deleteCollectionMutatingAdmissionPolicyBinding @@ -26495,6 +27977,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -26527,12 +28036,12 @@ paths: content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: admissionregistration.k8s.io kind: MutatingAdmissionPolicyBinding - version: v1beta1 + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -26623,6 +28132,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -26640,36 +28176,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBindingList" description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: admissionregistration.k8s.io kind: MutatingAdmissionPolicyBinding - version: v1beta1 + version: v1alpha1 x-accepts: - application/cbor - application/cbor-seq @@ -26725,64 +28261,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: Accepted "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: admissionregistration.k8s.io kind: MutatingAdmissionPolicyBinding - version: v1beta1 + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -26790,7 +28326,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}: + /apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name}: delete: description: delete a MutatingAdmissionPolicyBinding operationId: deleteMutatingAdmissionPolicyBinding @@ -26900,12 +28436,12 @@ paths: content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: admissionregistration.k8s.io kind: MutatingAdmissionPolicyBinding - version: v1beta1 + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -26935,27 +28471,27 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: OK "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: admissionregistration.k8s.io kind: MutatingAdmissionPolicyBinding - version: v1beta1 + version: v1alpha1 x-accepts: - application/cbor - application/json @@ -27030,42 +28566,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: admissionregistration.k8s.io kind: MutatingAdmissionPolicyBinding - version: v1beta1 + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -27126,49 +28662,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + $ref: "#/components/schemas/v1alpha1.MutatingAdmissionPolicyBinding" description: Created "401": content: {} description: Unauthorized tags: - - admissionregistration_v1beta1 + - admissionregistration_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: admissionregistration.k8s.io kind: MutatingAdmissionPolicyBinding - version: v1beta1 + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -27176,37 +28712,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicies: {} - /apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicies/{name}: {} - /apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicybindings: {} - /apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicybindings/{name}: {} - /apis/apiextensions.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIGroup" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - apiextensions - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/apiextensions.k8s.io/v1/: + /apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicies: {} + /apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicies/{name}: {} + /apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicybindings: {} + /apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicybindings/{name}: {} + /apis/admissionregistration.k8s.io/v1beta1/: get: description: get available resources operationId: getAPIResources @@ -27230,16 +28740,16 @@ paths: content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apiextensions.k8s.io/v1/customresourcedefinitions: + /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies: delete: - description: delete collection of CustomResourceDefinition - operationId: deleteCollectionCustomResourceDefinition + description: delete collection of MutatingAdmissionPolicy + operationId: deleteCollectionMutatingAdmissionPolicy parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -27361,6 +28871,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -27393,12 +28930,12 @@ paths: content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicy + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -27407,8 +28944,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind CustomResourceDefinition - operationId: listCustomResourceDefinition + description: list or watch objects of kind MutatingAdmissionPolicy + operationId: listMutatingAdmissionPolicy parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -27489,6 +29026,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -27506,36 +29070,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinitionList" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/yaml: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinitionList" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinitionList" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/cbor: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinitionList" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinitionList" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinitionList" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinitionList" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyList" description: OK "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicy + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -27545,8 +29109,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a CustomResourceDefinition - operationId: createCustomResourceDefinition + description: create a MutatingAdmissionPolicy + operationId: createMutatingAdmissionPolicy parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -27591,64 +29155,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: Accepted "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicy + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -27656,12 +29220,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}: + /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}: delete: - description: delete a CustomResourceDefinition - operationId: deleteCustomResourceDefinition + description: delete a MutatingAdmissionPolicy + operationId: deleteMutatingAdmissionPolicy parameters: - - description: name of the CustomResourceDefinition + - description: name of the MutatingAdmissionPolicy in: path name: name required: true @@ -27766,12 +29330,12 @@ paths: content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicy + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -27780,10 +29344,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified CustomResourceDefinition - operationId: readCustomResourceDefinition + description: read the specified MutatingAdmissionPolicy + operationId: readMutatingAdmissionPolicy parameters: - - description: name of the CustomResourceDefinition + - description: name of the MutatingAdmissionPolicy in: path name: name required: true @@ -27801,37 +29365,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: OK "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicy + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified CustomResourceDefinition - operationId: patchCustomResourceDefinition + description: partially update the specified MutatingAdmissionPolicy + operationId: patchMutatingAdmissionPolicy parameters: - - description: name of the CustomResourceDefinition + - description: name of the MutatingAdmissionPolicy in: path name: name required: true @@ -27896,42 +29460,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: Created "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicy + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -27940,10 +29504,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified CustomResourceDefinition - operationId: replaceCustomResourceDefinition + description: replace the specified MutatingAdmissionPolicy + operationId: replaceMutatingAdmissionPolicy parameters: - - description: name of the CustomResourceDefinition + - description: name of the MutatingAdmissionPolicy in: path name: name required: true @@ -27992,49 +29556,246 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicy" description: Created "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicy + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings: + delete: + description: delete collection of MutatingAdmissionPolicyBinding + operationId: deleteCollectionMutatingAdmissionPolicyBinding + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - admissionregistration_v1beta1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyBinding + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -28042,12 +29803,411 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status: get: - description: read status of the specified CustomResourceDefinition - operationId: readCustomResourceDefinitionStatus + description: list or watch objects of kind MutatingAdmissionPolicyBinding + operationId: listMutatingAdmissionPolicyBinding parameters: - - description: name of the CustomResourceDefinition + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBindingList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - admissionregistration_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyBinding + version: v1beta1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + post: + description: create a MutatingAdmissionPolicyBinding + operationId: createMutatingAdmissionPolicyBinding + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - admissionregistration_v1beta1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyBinding + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}: + delete: + description: delete a MutatingAdmissionPolicyBinding + operationId: deleteMutatingAdmissionPolicyBinding + parameters: + - description: name of the MutatingAdmissionPolicyBinding + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: OK + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - admissionregistration_v1beta1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyBinding + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified MutatingAdmissionPolicyBinding + operationId: readMutatingAdmissionPolicyBinding + parameters: + - description: name of the MutatingAdmissionPolicyBinding in: path name: name required: true @@ -28065,37 +30225,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: OK "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyBinding + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified CustomResourceDefinition - operationId: patchCustomResourceDefinitionStatus + description: partially update the specified MutatingAdmissionPolicyBinding + operationId: patchMutatingAdmissionPolicyBinding parameters: - - description: name of the CustomResourceDefinition + - description: name of the MutatingAdmissionPolicyBinding in: path name: name required: true @@ -28160,42 +30320,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: Created "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyBinding + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -28204,10 +30364,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified CustomResourceDefinition - operationId: replaceCustomResourceDefinitionStatus + description: replace the specified MutatingAdmissionPolicyBinding + operationId: replaceMutatingAdmissionPolicyBinding parameters: - - description: name of the CustomResourceDefinition + - description: name of the MutatingAdmissionPolicyBinding in: path name: name required: true @@ -28256,49 +30416,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.CustomResourceDefinition" + $ref: "#/components/schemas/v1beta1.MutatingAdmissionPolicyBinding" description: Created "401": content: {} description: Unauthorized tags: - - apiextensions_v1 + - admissionregistration_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: apiextensions.k8s.io - kind: CustomResourceDefinition - version: v1 + group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyBinding + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -28306,9 +30466,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions: {} - /apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name}: {} - /apis/apiregistration.k8s.io/: + /apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicies: {} + /apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicies/{name}: {} + /apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicybindings: {} + /apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicybindings/{name}: {} + /apis/apiextensions.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -28329,12 +30491,12 @@ paths: content: {} description: Unauthorized tags: - - apiregistration + - apiextensions x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apiregistration.k8s.io/v1/: + /apis/apiextensions.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -28358,16 +30520,16 @@ paths: content: {} description: Unauthorized tags: - - apiregistration_v1 + - apiextensions_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apiregistration.k8s.io/v1/apiservices: + /apis/apiextensions.k8s.io/v1/customresourcedefinitions: delete: - description: delete collection of APIService - operationId: deleteCollectionAPIService + description: delete collection of CustomResourceDefinition + operationId: deleteCollectionCustomResourceDefinition parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -28489,6 +30651,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -28521,11 +30710,11 @@ paths: content: {} description: Unauthorized tags: - - apiregistration_v1 + - apiextensions_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -28535,8 +30724,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind APIService - operationId: listAPIService + description: list or watch objects of kind CustomResourceDefinition + operationId: listCustomResourceDefinition parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -28617,6 +30806,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -28634,35 +30850,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.APIServiceList" + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/yaml: schema: - $ref: "#/components/schemas/v1.APIServiceList" + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIServiceList" + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/cbor: schema: - $ref: "#/components/schemas/v1.APIServiceList" + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.APIServiceList" + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.APIServiceList" + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.APIServiceList" + $ref: "#/components/schemas/v1.CustomResourceDefinitionList" description: OK "401": content: {} description: Unauthorized tags: - - apiregistration_v1 + - apiextensions_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-accepts: - application/cbor @@ -28673,8 +30889,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an APIService - operationId: createAPIService + description: create a CustomResourceDefinition + operationId: createCustomResourceDefinition parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -28719,63 +30935,63 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Accepted "401": content: {} description: Unauthorized tags: - - apiregistration_v1 + - apiextensions_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -28784,12 +31000,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apiregistration.k8s.io/v1/apiservices/{name}: + /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}: delete: - description: delete an APIService - operationId: deleteAPIService + description: delete a CustomResourceDefinition + operationId: deleteCustomResourceDefinition parameters: - - description: name of the APIService + - description: name of the CustomResourceDefinition in: path name: name required: true @@ -28894,11 +31110,11 @@ paths: content: {} description: Unauthorized tags: - - apiregistration_v1 + - apiextensions_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -28908,10 +31124,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified APIService - operationId: readAPIService + description: read the specified CustomResourceDefinition + operationId: readCustomResourceDefinition parameters: - - description: name of the APIService + - description: name of the CustomResourceDefinition in: path name: name required: true @@ -28929,26 +31145,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "401": content: {} description: Unauthorized tags: - - apiregistration_v1 + - apiextensions_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-accepts: - application/cbor @@ -28956,10 +31172,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified APIService - operationId: patchAPIService + description: partially update the specified CustomResourceDefinition + operationId: patchCustomResourceDefinition parameters: - - description: name of the APIService + - description: name of the CustomResourceDefinition in: path name: name required: true @@ -29024,41 +31240,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Created "401": content: {} description: Unauthorized tags: - - apiregistration_v1 + - apiextensions_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -29068,10 +31284,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified APIService - operationId: replaceAPIService + description: replace the specified CustomResourceDefinition + operationId: replaceCustomResourceDefinition parameters: - - description: name of the APIService + - description: name of the CustomResourceDefinition in: path name: name required: true @@ -29120,48 +31336,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Created "401": content: {} description: Unauthorized tags: - - apiregistration_v1 + - apiextensions_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -29170,12 +31386,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apiregistration.k8s.io/v1/apiservices/{name}/status: + /apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status: get: - description: read status of the specified APIService - operationId: readAPIServiceStatus + description: read status of the specified CustomResourceDefinition + operationId: readCustomResourceDefinitionStatus parameters: - - description: name of the APIService + - description: name of the CustomResourceDefinition in: path name: name required: true @@ -29193,26 +31409,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "401": content: {} description: Unauthorized tags: - - apiregistration_v1 + - apiextensions_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-accepts: - application/cbor @@ -29220,10 +31436,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified APIService - operationId: patchAPIServiceStatus + description: partially update status of the specified CustomResourceDefinition + operationId: patchCustomResourceDefinitionStatus parameters: - - description: name of the APIService + - description: name of the CustomResourceDefinition in: path name: name required: true @@ -29288,41 +31504,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Created "401": content: {} description: Unauthorized tags: - - apiregistration_v1 + - apiextensions_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -29332,10 +31548,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified APIService - operationId: replaceAPIServiceStatus + description: replace status of the specified CustomResourceDefinition + operationId: replaceCustomResourceDefinitionStatus parameters: - - description: name of the APIService + - description: name of the CustomResourceDefinition in: path name: name required: true @@ -29384,48 +31600,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/yaml: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" application/cbor: schema: - $ref: "#/components/schemas/v1.APIService" + $ref: "#/components/schemas/v1.CustomResourceDefinition" description: Created "401": content: {} description: Unauthorized tags: - - apiregistration_v1 + - apiextensions_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: apiregistration.k8s.io - kind: APIService + group: apiextensions.k8s.io + kind: CustomResourceDefinition version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -29434,9 +31650,9 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apiregistration.k8s.io/v1/watch/apiservices: {} - /apis/apiregistration.k8s.io/v1/watch/apiservices/{name}: {} - /apis/apps/: + /apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions: {} + /apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name}: {} + /apis/apiregistration.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -29457,12 +31673,12 @@ paths: content: {} description: Unauthorized tags: - - apps + - apiregistration x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/: + /apis/apiregistration.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -29486,27 +31702,24 @@ paths: content: {} description: Unauthorized tags: - - apps_v1 + - apiregistration_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/controllerrevisions: - get: - description: list or watch objects of kind ControllerRevision - operationId: listControllerRevisionForAllNamespaces + /apis/apiregistration.k8s.io/v1/apiservices: + delete: + description: delete collection of APIService + operationId: deleteCollectionAPIService parameters: - - description: "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." + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: allowWatchBookmarks + name: pretty schema: - type: boolean + type: string - description: |- 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". @@ -29515,19 +31728,51 @@ paths: name: continue schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: fieldSelector + name: dryRun schema: type: string - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. + fields. Defaults to everything. in: query - name: labelSelector + name: fieldSelector schema: type: string - - description: |- + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- 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. @@ -29535,11 +31780,23 @@ paths: name: limit schema: type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query - name: pretty + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy schema: type: string - description: |- @@ -29576,66 +31833,89 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ControllerRevisionList" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.ControllerRevisionList" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ControllerRevisionList" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.ControllerRevisionList" - application/json;stream=watch: - schema: - $ref: "#/components/schemas/v1.ControllerRevisionList" - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: "#/components/schemas/v1.ControllerRevisionList" - application/cbor-seq: - schema: - $ref: "#/components/schemas/v1.ControllerRevisionList" + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 - x-kubernetes-action: list + - apiregistration_v1 + x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision + group: apiregistration.k8s.io + kind: APIService version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/apps/v1/daemonsets: get: - description: list or watch objects of kind DaemonSet - operationId: listDaemonSetForAllNamespaces + description: list or watch objects of kind APIService + operationId: listAPIService parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string - description: "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\ @@ -29674,13 +31954,6 @@ paths: name: limit schema: type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - description: |- 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. @@ -29715,6 +31988,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -29732,35 +32032,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.DaemonSetList" + $ref: "#/components/schemas/v1.APIServiceList" application/yaml: schema: - $ref: "#/components/schemas/v1.DaemonSetList" + $ref: "#/components/schemas/v1.APIServiceList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DaemonSetList" + $ref: "#/components/schemas/v1.APIServiceList" application/cbor: schema: - $ref: "#/components/schemas/v1.DaemonSetList" + $ref: "#/components/schemas/v1.APIServiceList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.DaemonSetList" + $ref: "#/components/schemas/v1.APIServiceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.DaemonSetList" + $ref: "#/components/schemas/v1.APIServiceList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.DaemonSetList" + $ref: "#/components/schemas/v1.APIServiceList" description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiregistration_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: apps - kind: DaemonSet + group: apiregistration.k8s.io + kind: APIService version: v1 x-accepts: - application/cbor @@ -29770,49 +32070,10 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/apps/v1/deployments: - get: - description: list or watch objects of kind Deployment - operationId: listDeploymentForAllNamespaces + post: + description: create an APIService + operationId: createAPIService parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -29820,103 +32081,115 @@ paths: name: pretty schema: type: string - - description: |- - 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 + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - 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 + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: watch + name: fieldValidation schema: - type: boolean + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIService" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.DeploymentList" + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: "#/components/schemas/v1.DeploymentList" + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DeploymentList" + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: "#/components/schemas/v1.DeploymentList" - application/json;stream=watch: + $ref: "#/components/schemas/v1.APIService" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/v1.DeploymentList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/v1.APIService" + application/yaml: schema: - $ref: "#/components/schemas/v1.DeploymentList" - application/cbor-seq: + $ref: "#/components/schemas/v1.APIService" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DeploymentList" - description: OK + $ref: "#/components/schemas/v1.APIService" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIService" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIService" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIService" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIService" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIService" + description: Accepted "401": content: {} description: Unauthorized tags: - - apps_v1 - x-kubernetes-action: list + - apiregistration_v1 + x-kubernetes-action: post x-kubernetes-group-version-kind: - group: apps - kind: Deployment + group: apiregistration.k8s.io + kind: APIService version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/apps/v1/namespaces/{namespace}/controllerrevisions: + /apis/apiregistration.k8s.io/v1/apiservices/{name}: delete: - description: delete collection of ControllerRevision - operationId: deleteCollectionNamespacedControllerRevision + description: delete an APIService + operationId: deleteAPIService parameters: - - description: "object name and auth scope, such as for teams and projects" + - description: name of the APIService in: path - name: namespace + name: name required: true schema: type: string @@ -29927,14 +32200,6 @@ paths: name: pretty schema: type: string - - description: |- - 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. - in: query - name: continue - schema: - type: string - description: "When present, indicates that modifications should not be persisted.\ \ An invalid or unrecognized dryRun directive will result in an error response\ \ and no further processing of the request. Valid values are: - All: all\ @@ -29943,12 +32208,6 @@ paths: name: dryRun schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - description: "The duration in seconds before the object should be deleted.\ \ Value must be non-negative integer. The value zero indicates delete immediately.\ \ If this value is nil, the default grace period for the specified type\ @@ -29973,20 +32232,6 @@ paths: name: ignoreStoreReadErrorWithClusterBreakingPotential schema: type: boolean - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - description: "Deprecated: please use the PropagationPolicy, this field will\ \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ @@ -30006,46 +32251,6 @@ paths: name: propagationPolicy schema: type: string - - description: |- - 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 - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer requestBody: content: application/json: @@ -30068,15 +32273,30 @@ paths: schema: $ref: "#/components/schemas/v1.Status" description: OK + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: Accepted "401": content: {} description: Unauthorized tags: - - apps_v1 - x-kubernetes-action: deletecollection + - apiregistration_v1 + x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision + group: apiregistration.k8s.io + kind: APIService version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -30086,12 +32306,12 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ControllerRevision - operationId: listNamespacedControllerRevision + description: read the specified APIService + operationId: readAPIService parameters: - - description: "object name and auth scope, such as for teams and projects" + - description: name of the APIService in: path - name: namespace + name: name required: true schema: type: string @@ -30102,140 +32322,44 @@ paths: name: pretty schema: type: string - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - - description: |- - 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 - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ControllerRevisionList" + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: "#/components/schemas/v1.ControllerRevisionList" + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ControllerRevisionList" + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: "#/components/schemas/v1.ControllerRevisionList" - application/json;stream=watch: - schema: - $ref: "#/components/schemas/v1.ControllerRevisionList" - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: "#/components/schemas/v1.ControllerRevisionList" - application/cbor-seq: - schema: - $ref: "#/components/schemas/v1.ControllerRevisionList" + $ref: "#/components/schemas/v1.APIService" description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 - x-kubernetes-action: list + - apiregistration_v1 + x-kubernetes-action: get x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision + group: apiregistration.k8s.io + kind: APIService version: v1 x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - post: - description: create a ControllerRevision - operationId: createNamespacedControllerRevision + patch: + description: partially update the specified APIService + operationId: patchAPIService parameters: - - description: "object name and auth scope, such as for teams and projects" + - description: name of the APIService in: path - name: namespace + name: name required: true schema: type: string @@ -30256,7 +32380,9 @@ paths: type: string - description: "fieldManager is a name associated with the actor or entity that\ \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: @@ -30278,67 +32404,59 @@ paths: name: fieldValidation schema: type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" description: Created - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.ControllerRevision" - application/yaml: - schema: - $ref: "#/components/schemas/v1.ControllerRevision" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.ControllerRevision" - application/cbor: - schema: - $ref: "#/components/schemas/v1.ControllerRevision" - description: Accepted "401": content: {} description: Unauthorized tags: - - apps_v1 - x-kubernetes-action: post + - apiregistration_v1 + x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision + group: apiregistration.k8s.io + kind: APIService version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -30347,23 +32465,16 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}: - delete: - description: delete a ControllerRevision - operationId: deleteNamespacedControllerRevision + put: + description: replace the specified APIService + operationId: replaceAPIService parameters: - - description: name of the ControllerRevision + - description: name of the APIService in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -30379,95 +32490,76 @@ paths: name: dryRun schema: type: string - - description: "The duration in seconds before the object should be deleted.\ - \ Value must be non-negative integer. The value zero indicates delete immediately.\ - \ If this value is nil, the default grace period for the specified type\ - \ will be used. Defaults to a per object value if not specified. zero means\ - \ delete immediately." - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: "if set to true, it will trigger an unsafe deletion of the resource\ - \ in case the normal deletion flow fails with a corrupt object error. A\ - \ resource is considered corrupt if it can not be retrieved from the underlying\ - \ storage successfully because of a) its data can not be transformed e.g.\ - \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ - \ deletion ignores finalizer constraints, skips precondition checks, and\ - \ removes the object from the storage. WARNING: This may potentially break\ - \ the cluster if the workload associated with the resource being unsafe-deleted\ - \ relies on normal deletion flow. Use only if you REALLY know what you are\ - \ doing. The default value is false, and the user must opt in to enable\ - \ it" - in: query - name: ignoreStoreReadErrorWithClusterBreakingPotential - schema: - type: boolean - - description: "Deprecated: please use the PropagationPolicy, this field will\ - \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ - \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ - \ list. Either this field or PropagationPolicy may be set, but not both." + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: orphanDependents + name: fieldManager schema: - type: boolean - - description: "Whether and how garbage collection will be performed. Either\ - \ this field or OrphanDependents may be set, but not both. The default policy\ - \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy. Acceptable values are: 'Orphan'\ - \ - orphan the dependents; 'Background' - allow the garbage collector to\ - \ delete the dependents in the background; 'Foreground' - a cascading policy\ - \ that deletes all dependents in the foreground." + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: propagationPolicy + name: fieldValidation schema: type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.DeleteOptions" - required: false + $ref: "#/components/schemas/v1.APIService" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.APIService" description: OK - "202": + "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" - description: Accepted + $ref: "#/components/schemas/v1.APIService" + description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 - x-kubernetes-action: delete + - apiregistration_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision + group: apiregistration.k8s.io + kind: APIService version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -30476,22 +32568,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml + /apis/apiregistration.k8s.io/v1/apiservices/{name}/status: get: - description: read the specified ControllerRevision - operationId: readNamespacedControllerRevision + description: read status of the specified APIService + operationId: readAPIServiceStatus parameters: - - description: name of the ControllerRevision + - description: name of the APIService in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -30504,26 +32591,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiregistration_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision + group: apiregistration.k8s.io + kind: APIService version: v1 x-accepts: - application/cbor @@ -30531,21 +32618,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ControllerRevision - operationId: patchNamespacedControllerRevision + description: partially update status of the specified APIService + operationId: patchAPIServiceStatus parameters: - - description: name of the ControllerRevision + - description: name of the APIService in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -30605,41 +32686,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiregistration_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision + group: apiregistration.k8s.io + kind: APIService version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -30649,21 +32730,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ControllerRevision - operationId: replaceNamespacedControllerRevision + description: replace status of the specified APIService + operationId: replaceAPIServiceStatus parameters: - - description: name of the ControllerRevision + - description: name of the APIService in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -30707,48 +32782,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/yaml: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" application/cbor: schema: - $ref: "#/components/schemas/v1.ControllerRevision" + $ref: "#/components/schemas/v1.APIService" description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - apiregistration_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: apps - kind: ControllerRevision + group: apiregistration.k8s.io + kind: APIService version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -30757,24 +32832,79 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/namespaces/{namespace}/daemonsets: - delete: - description: delete collection of DaemonSet - operationId: deleteCollectionNamespacedDaemonSet + /apis/apiregistration.k8s.io/v1/watch/apiservices: {} + /apis/apiregistration.k8s.io/v1/watch/apiservices/{name}: {} + /apis/apps/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/apps/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/apps/v1/controllerrevisions: + get: + description: list or watch objects of kind ControllerRevision + operationId: listControllerRevisionForAllNamespaces parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." + - description: "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." in: query - name: pretty + name: allowWatchBookmarks schema: - type: string + type: boolean - description: |- 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". @@ -30783,44 +32913,12 @@ paths: name: continue schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - description: A selector to restrict the list of returned objects by their fields. Defaults to everything. in: query name: fieldSelector schema: type: string - - description: "The duration in seconds before the object should be deleted.\ - \ Value must be non-negative integer. The value zero indicates delete immediately.\ - \ If this value is nil, the default grace period for the specified type\ - \ will be used. Defaults to a per object value if not specified. zero means\ - \ delete immediately." - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: "if set to true, it will trigger an unsafe deletion of the resource\ - \ in case the normal deletion flow fails with a corrupt object error. A\ - \ resource is considered corrupt if it can not be retrieved from the underlying\ - \ storage successfully because of a) its data can not be transformed e.g.\ - \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ - \ deletion ignores finalizer constraints, skips precondition checks, and\ - \ removes the object from the storage. WARNING: This may potentially break\ - \ the cluster if the workload associated with the resource being unsafe-deleted\ - \ relies on normal deletion flow. Use only if you REALLY know what you are\ - \ doing. The default value is false, and the user must opt in to enable\ - \ it" - in: query - name: ignoreStoreReadErrorWithClusterBreakingPotential - schema: - type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -30835,23 +32933,11 @@ paths: name: limit schema: type: integer - - description: "Deprecated: please use the PropagationPolicy, this field will\ - \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ - \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ - \ list. Either this field or PropagationPolicy may be set, but not both." - in: query - name: orphanDependents - schema: - type: boolean - - description: "Whether and how garbage collection will be performed. Either\ - \ this field or OrphanDependents may be set, but not both. The default policy\ - \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy. Acceptable values are: 'Orphan'\ - \ - orphan the dependents; 'Background' - allow the garbage collector to\ - \ delete the dependents in the background; 'Foreground' - a cascading policy\ - \ that deletes all dependents in the foreground." + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: propagationPolicy + name: pretty schema: type: string - description: |- @@ -30888,68 +32974,93 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.DeleteOptions" - required: false + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.ControllerRevisionList" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.ControllerRevisionList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.ControllerRevisionList" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.ControllerRevisionList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.ControllerRevisionList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.ControllerRevisionList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ControllerRevisionList" description: OK "401": content: {} description: Unauthorized tags: - apps_v1 - x-kubernetes-action: deletecollection + x-kubernetes-action: list x-kubernetes-group-version-kind: group: apps - kind: DaemonSet + kind: ControllerRevision version: v1 - x-codegen-request-body-name: body - x-content-type: application/json x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml + /apis/apps/v1/daemonsets: get: description: list or watch objects of kind DaemonSet - operationId: listNamespacedDaemonSet + operationId: listDaemonSetForAllNamespaces parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - description: "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\ @@ -30988,6 +33099,13 @@ paths: name: limit schema: type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string - description: |- 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. @@ -31022,6 +33140,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -31077,16 +33222,49 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - post: - description: create a DaemonSet - operationId: createNamespacedDaemonSet - parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true + /apis/apps/v1/deployments: + get: + description: list or watch objects of kind Deployment + operationId: listDeploymentForAllNamespaces + parameters: + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue schema: type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -31094,118 +33272,127 @@ paths: name: pretty schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" + - description: |- + 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 in: query - name: dryRun + name: resourceVersion schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: |- + 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 in: query - name: fieldManager + name: resourceVersionMatch schema: type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: fieldValidation + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector schema: type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.DaemonSet" - required: true + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.DaemonSet" - application/yaml: - schema: - $ref: "#/components/schemas/v1.DaemonSet" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.DaemonSet" - application/cbor: - schema: - $ref: "#/components/schemas/v1.DaemonSet" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.DeploymentList" application/yaml: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.DeploymentList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.DeploymentList" application/cbor: schema: - $ref: "#/components/schemas/v1.DaemonSet" - description: Created - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.DaemonSet" - application/yaml: + $ref: "#/components/schemas/v1.DeploymentList" + application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.DaemonSet" - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1.DeploymentList" + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.DaemonSet" - application/cbor: + $ref: "#/components/schemas/v1.DeploymentList" + application/cbor-seq: schema: - $ref: "#/components/schemas/v1.DaemonSet" - description: Accepted + $ref: "#/components/schemas/v1.DeploymentList" + description: OK "401": content: {} description: Unauthorized tags: - apps_v1 - x-kubernetes-action: post + x-kubernetes-action: list x-kubernetes-group-version-kind: group: apps - kind: DaemonSet + kind: Deployment version: v1 - x-codegen-request-body-name: body - x-content-type: application/json x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}: + /apis/apps/v1/namespaces/{namespace}/controllerrevisions: delete: - description: delete a DaemonSet - operationId: deleteNamespacedDaemonSet + description: delete collection of ControllerRevision + operationId: deleteCollectionNamespacedControllerRevision parameters: - - description: name of the DaemonSet - in: path - name: name - required: true - schema: - type: string - description: "object name and auth scope, such as for teams and projects" in: path name: namespace @@ -31219,6 +33406,14 @@ paths: name: pretty schema: type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string - description: "When present, indicates that modifications should not be persisted.\ \ An invalid or unrecognized dryRun directive will result in an error response\ \ and no further processing of the request. Valid values are: - All: all\ @@ -31227,6 +33422,12 @@ paths: name: dryRun schema: type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string - description: "The duration in seconds before the object should be deleted.\ \ Value must be non-negative integer. The value zero indicates delete immediately.\ \ If this value is nil, the default grace period for the specified type\ @@ -31251,6 +33452,20 @@ paths: name: ignoreStoreReadErrorWithClusterBreakingPotential schema: type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer - description: "Deprecated: please use the PropagationPolicy, this field will\ \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ @@ -31270,6 +33485,73 @@ paths: name: propagationPolicy schema: type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer requestBody: content: application/json: @@ -31292,30 +33574,15 @@ paths: schema: $ref: "#/components/schemas/v1.Status" description: OK - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Status" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Status" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Status" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Status" - description: Accepted "401": content: {} description: Unauthorized tags: - apps_v1 - x-kubernetes-action: delete + x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: apps - kind: DaemonSet + kind: ControllerRevision version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -31325,15 +33592,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified DaemonSet - operationId: readNamespacedDaemonSet + description: list or watch objects of kind ControllerRevision + operationId: listNamespacedControllerRevision parameters: - - description: name of the DaemonSet - in: path - name: name - required: true - schema: - type: string - description: "object name and auth scope, such as for teams and projects" in: path name: namespace @@ -31347,47 +33608,164 @@ paths: name: pretty schema: type: string + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevisionList" application/yaml: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevisionList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevisionList" application/cbor: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevisionList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.ControllerRevisionList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.ControllerRevisionList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ControllerRevisionList" description: OK "401": content: {} description: Unauthorized tags: - apps_v1 - x-kubernetes-action: get + x-kubernetes-action: list x-kubernetes-group-version-kind: group: apps - kind: DaemonSet + kind: ControllerRevision version: v1 x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - patch: - description: partially update the specified DaemonSet - operationId: patchNamespacedDaemonSet + post: + description: create a ControllerRevision + operationId: createNamespacedControllerRevision parameters: - - description: name of the DaemonSet - in: path - name: name - required: true - schema: - type: string - description: "object name and auth scope, such as for teams and projects" in: path name: namespace @@ -31411,9 +33789,7 @@ paths: type: string - description: "fieldManager is a name associated with the actor or entity that\ \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: @@ -31435,59 +33811,67 @@ paths: name: fieldValidation schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.Patch" + $ref: "#/components/schemas/v1.ControllerRevision" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/cbor: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/cbor: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ControllerRevision" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ControllerRevision" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ControllerRevision" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ControllerRevision" + description: Accepted "401": content: {} description: Unauthorized tags: - apps_v1 - x-kubernetes-action: patch + x-kubernetes-action: post x-kubernetes-group-version-kind: group: apps - kind: DaemonSet + kind: ControllerRevision version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -31496,11 +33880,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace the specified DaemonSet - operationId: replaceNamespacedDaemonSet + /apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}: + delete: + description: delete a ControllerRevision + operationId: deleteNamespacedControllerRevision parameters: - - description: name of the DaemonSet + - description: name of the ControllerRevision in: path name: name required: true @@ -31527,76 +33912,95 @@ paths: name: dryRun schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query - name: fieldManager + name: gracePeriodSeconds schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" in: query - name: fieldValidation + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy schema: type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.DaemonSet" - required: true + $ref: "#/components/schemas/v1.DeleteOptions" + required: false responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.Status" description: OK - "201": + "202": content: application/json: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.DaemonSet" - description: Created + $ref: "#/components/schemas/v1.Status" + description: Accepted "401": content: {} description: Unauthorized tags: - apps_v1 - x-kubernetes-action: put + x-kubernetes-action: delete x-kubernetes-group-version-kind: group: apps - kind: DaemonSet + kind: ControllerRevision version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -31605,12 +34009,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status: get: - description: read status of the specified DaemonSet - operationId: readNamespacedDaemonSetStatus + description: read the specified ControllerRevision + operationId: readNamespacedControllerRevision parameters: - - description: name of the DaemonSet + - description: name of the ControllerRevision in: path name: name required: true @@ -31634,16 +34037,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/cbor: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" description: OK "401": content: {} @@ -31653,7 +34056,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: apps - kind: DaemonSet + kind: ControllerRevision version: v1 x-accepts: - application/cbor @@ -31661,10 +34064,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified DaemonSet - operationId: patchNamespacedDaemonSetStatus + description: partially update the specified ControllerRevision + operationId: patchNamespacedControllerRevision parameters: - - description: name of the DaemonSet + - description: name of the ControllerRevision in: path name: name required: true @@ -31735,31 +34138,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/cbor: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/cbor: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" description: Created "401": content: {} @@ -31769,7 +34172,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: apps - kind: DaemonSet + kind: ControllerRevision version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -31779,10 +34182,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified DaemonSet - operationId: replaceNamespacedDaemonSetStatus + description: replace the specified ControllerRevision + operationId: replaceNamespacedControllerRevision parameters: - - description: name of the DaemonSet + - description: name of the ControllerRevision in: path name: name required: true @@ -31837,38 +34240,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/cbor: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/yaml: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" application/cbor: schema: - $ref: "#/components/schemas/v1.DaemonSet" + $ref: "#/components/schemas/v1.ControllerRevision" description: Created "401": content: {} @@ -31878,7 +34281,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: apps - kind: DaemonSet + kind: ControllerRevision version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -31887,10 +34290,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/namespaces/{namespace}/deployments: + /apis/apps/v1/namespaces/{namespace}/daemonsets: delete: - description: delete collection of Deployment - operationId: deleteCollectionNamespacedDeployment + description: delete collection of DaemonSet + operationId: deleteCollectionNamespacedDaemonSet parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -32018,6 +34421,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -32054,7 +34484,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: DaemonSet version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -32064,8 +34494,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Deployment - operationId: listNamespacedDeployment + description: list or watch objects of kind DaemonSet + operationId: listNamespacedDaemonSet parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -32152,6 +34582,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -32169,25 +34626,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.DeploymentList" + $ref: "#/components/schemas/v1.DaemonSetList" application/yaml: schema: - $ref: "#/components/schemas/v1.DeploymentList" + $ref: "#/components/schemas/v1.DaemonSetList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DeploymentList" + $ref: "#/components/schemas/v1.DaemonSetList" application/cbor: schema: - $ref: "#/components/schemas/v1.DeploymentList" + $ref: "#/components/schemas/v1.DaemonSetList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.DeploymentList" + $ref: "#/components/schemas/v1.DaemonSetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.DeploymentList" + $ref: "#/components/schemas/v1.DaemonSetList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.DeploymentList" + $ref: "#/components/schemas/v1.DaemonSetList" description: OK "401": content: {} @@ -32197,7 +34654,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: DaemonSet version: v1 x-accepts: - application/cbor @@ -32208,8 +34665,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a Deployment - operationId: createNamespacedDeployment + description: create a DaemonSet + operationId: createNamespacedDaemonSet parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -32260,53 +34717,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" description: Accepted "401": content: {} @@ -32316,7 +34773,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: DaemonSet version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -32325,12 +34782,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/namespaces/{namespace}/deployments/{name}: + /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}: delete: - description: delete a Deployment - operationId: deleteNamespacedDeployment + description: delete a DaemonSet + operationId: deleteNamespacedDaemonSet parameters: - - description: name of the Deployment + - description: name of the DaemonSet in: path name: name required: true @@ -32445,7 +34902,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: DaemonSet version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -32455,10 +34912,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified Deployment - operationId: readNamespacedDeployment + description: read the specified DaemonSet + operationId: readNamespacedDaemonSet parameters: - - description: name of the Deployment + - description: name of the DaemonSet in: path name: name required: true @@ -32482,16 +34939,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" description: OK "401": content: {} @@ -32501,7 +34958,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: DaemonSet version: v1 x-accepts: - application/cbor @@ -32509,10 +34966,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified Deployment - operationId: patchNamespacedDeployment + description: partially update the specified DaemonSet + operationId: patchNamespacedDaemonSet parameters: - - description: name of the Deployment + - description: name of the DaemonSet in: path name: name required: true @@ -32583,31 +35040,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" description: Created "401": content: {} @@ -32617,7 +35074,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: DaemonSet version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -32627,10 +35084,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Deployment - operationId: replaceNamespacedDeployment + description: replace the specified DaemonSet + operationId: replaceNamespacedDaemonSet parameters: - - description: name of the Deployment + - description: name of the DaemonSet in: path name: name required: true @@ -32685,38 +35142,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" description: Created "401": content: {} @@ -32726,289 +35183,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: apps - kind: Deployment - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale: - get: - description: read scale of the specified Deployment - operationId: readNamespacedDeploymentScale - parameters: - - description: name of the Scale - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Scale" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Scale" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Scale" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Scale" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - apps_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: autoscaling - kind: Scale - version: v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update scale of the specified Deployment - operationId: patchNamespacedDeploymentScale - parameters: - - description: name of the Scale - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Patch" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Scale" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Scale" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Scale" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Scale" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Scale" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Scale" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Scale" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Scale" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - apps_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: autoscaling - kind: Scale - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace scale of the specified Deployment - operationId: replaceNamespacedDeploymentScale - parameters: - - description: name of the Scale - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Scale" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Scale" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Scale" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Scale" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Scale" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Scale" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Scale" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Scale" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Scale" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - apps_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: autoscaling - kind: Scale + kind: DaemonSet version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -33017,12 +35192,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/namespaces/{namespace}/deployments/{name}/status: + /apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status: get: - description: read status of the specified Deployment - operationId: readNamespacedDeploymentStatus + description: read status of the specified DaemonSet + operationId: readNamespacedDaemonSetStatus parameters: - - description: name of the Deployment + - description: name of the DaemonSet in: path name: name required: true @@ -33046,16 +35221,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" description: OK "401": content: {} @@ -33065,7 +35240,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: DaemonSet version: v1 x-accepts: - application/cbor @@ -33073,10 +35248,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified Deployment - operationId: patchNamespacedDeploymentStatus + description: partially update status of the specified DaemonSet + operationId: patchNamespacedDaemonSetStatus parameters: - - description: name of the Deployment + - description: name of the DaemonSet in: path name: name required: true @@ -33147,31 +35322,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" description: Created "401": content: {} @@ -33181,7 +35356,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: DaemonSet version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -33191,10 +35366,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified Deployment - operationId: replaceNamespacedDeploymentStatus + description: replace status of the specified DaemonSet + operationId: replaceNamespacedDaemonSetStatus parameters: - - description: name of the Deployment + - description: name of the DaemonSet in: path name: name required: true @@ -33249,38 +35424,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/yaml: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" application/cbor: schema: - $ref: "#/components/schemas/v1.Deployment" + $ref: "#/components/schemas/v1.DaemonSet" description: Created "401": content: {} @@ -33290,7 +35465,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: apps - kind: Deployment + kind: DaemonSet version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -33299,10 +35474,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/namespaces/{namespace}/replicasets: + /apis/apps/v1/namespaces/{namespace}/deployments: delete: - description: delete collection of ReplicaSet - operationId: deleteCollectionNamespacedReplicaSet + description: delete collection of Deployment + operationId: deleteCollectionNamespacedDeployment parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -33430,6 +35605,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -33466,7 +35668,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: apps - kind: ReplicaSet + kind: Deployment version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -33476,8 +35678,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ReplicaSet - operationId: listNamespacedReplicaSet + description: list or watch objects of kind Deployment + operationId: listNamespacedDeployment parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -33564,6 +35766,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -33581,25 +35810,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSetList" + $ref: "#/components/schemas/v1.DeploymentList" application/yaml: schema: - $ref: "#/components/schemas/v1.ReplicaSetList" + $ref: "#/components/schemas/v1.DeploymentList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ReplicaSetList" + $ref: "#/components/schemas/v1.DeploymentList" application/cbor: schema: - $ref: "#/components/schemas/v1.ReplicaSetList" + $ref: "#/components/schemas/v1.DeploymentList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.ReplicaSetList" + $ref: "#/components/schemas/v1.DeploymentList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.ReplicaSetList" + $ref: "#/components/schemas/v1.DeploymentList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.ReplicaSetList" + $ref: "#/components/schemas/v1.DeploymentList" description: OK "401": content: {} @@ -33609,7 +35838,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: apps - kind: ReplicaSet + kind: Deployment version: v1 x-accepts: - application/cbor @@ -33620,8 +35849,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ReplicaSet - operationId: createNamespacedReplicaSet + description: create a Deployment + operationId: createNamespacedDeployment parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -33672,53 +35901,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" description: Accepted "401": content: {} @@ -33728,7 +35957,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: apps - kind: ReplicaSet + kind: Deployment version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -33737,12 +35966,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/namespaces/{namespace}/replicasets/{name}: + /apis/apps/v1/namespaces/{namespace}/deployments/{name}: delete: - description: delete a ReplicaSet - operationId: deleteNamespacedReplicaSet + description: delete a Deployment + operationId: deleteNamespacedDeployment parameters: - - description: name of the ReplicaSet + - description: name of the Deployment in: path name: name required: true @@ -33857,7 +36086,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: apps - kind: ReplicaSet + kind: Deployment version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -33867,10 +36096,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ReplicaSet - operationId: readNamespacedReplicaSet + description: read the specified Deployment + operationId: readNamespacedDeployment parameters: - - description: name of the ReplicaSet + - description: name of the Deployment in: path name: name required: true @@ -33894,16 +36123,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" application/yaml: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" application/cbor: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Deployment" description: OK "401": content: {} @@ -33913,7 +36142,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: apps - kind: ReplicaSet + kind: Deployment version: v1 x-accepts: - application/cbor @@ -33921,10 +36150,574 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ReplicaSet - operationId: patchNamespacedReplicaSet + description: partially update the specified Deployment + operationId: patchNamespacedDeployment parameters: - - description: name of the ReplicaSet + - description: name of the Deployment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: apps + kind: Deployment + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified Deployment + operationId: replaceNamespacedDeployment + parameters: + - description: name of the Deployment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Deployment" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: apps + kind: Deployment + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale: + get: + description: read scale of the specified Deployment + operationId: readNamespacedDeploymentScale + parameters: + - description: name of the Scale + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Scale" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: autoscaling + kind: Scale + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update scale of the specified Deployment + operationId: patchNamespacedDeploymentScale + parameters: + - description: name of the Scale + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Scale" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Scale" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: autoscaling + kind: Scale + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace scale of the specified Deployment + operationId: replaceNamespacedDeploymentScale + parameters: + - description: name of the Scale + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Scale" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Scale" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: autoscaling + kind: Scale + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/apps/v1/namespaces/{namespace}/deployments/{name}/status: + get: + description: read status of the specified Deployment + operationId: readNamespacedDeploymentStatus + parameters: + - description: name of the Deployment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: apps + kind: Deployment + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified Deployment + operationId: patchNamespacedDeploymentStatus + parameters: + - description: name of the Deployment in: path name: name required: true @@ -33977,59 +36770,4957 @@ paths: name: fieldValidation schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: apps + kind: Deployment + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified Deployment + operationId: replaceNamespacedDeploymentStatus + parameters: + - description: name of the Deployment + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Deployment" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Deployment" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Deployment" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: apps + kind: Deployment + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/apps/v1/namespaces/{namespace}/replicasets: + delete: + description: delete collection of ReplicaSet + operationId: deleteCollectionNamespacedReplicaSet + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: apps + kind: ReplicaSet + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind ReplicaSet + operationId: listNamespacedReplicaSet + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: apps + kind: ReplicaSet + version: v1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + post: + description: create a ReplicaSet + operationId: createNamespacedReplicaSet + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: apps + kind: ReplicaSet + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/apps/v1/namespaces/{namespace}/replicasets/{name}: + delete: + description: delete a ReplicaSet + operationId: deleteNamespacedReplicaSet + parameters: + - description: name of the ReplicaSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: OK + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: apps + kind: ReplicaSet + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified ReplicaSet + operationId: readNamespacedReplicaSet + parameters: + - description: name of the ReplicaSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: apps + kind: ReplicaSet + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified ReplicaSet + operationId: patchNamespacedReplicaSet + parameters: + - description: name of the ReplicaSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: apps + kind: ReplicaSet + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified ReplicaSet + operationId: replaceNamespacedReplicaSet + parameters: + - description: name of the ReplicaSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: apps + kind: ReplicaSet + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale: + get: + description: read scale of the specified ReplicaSet + operationId: readNamespacedReplicaSetScale + parameters: + - description: name of the Scale + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Scale" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: autoscaling + kind: Scale + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update scale of the specified ReplicaSet + operationId: patchNamespacedReplicaSetScale + parameters: + - description: name of the Scale + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Scale" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Scale" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: autoscaling + kind: Scale + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace scale of the specified ReplicaSet + operationId: replaceNamespacedReplicaSetScale + parameters: + - description: name of the Scale + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Scale" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Scale" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: autoscaling + kind: Scale + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status: + get: + description: read status of the specified ReplicaSet + operationId: readNamespacedReplicaSetStatus + parameters: + - description: name of the ReplicaSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: apps + kind: ReplicaSet + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified ReplicaSet + operationId: patchNamespacedReplicaSetStatus + parameters: + - description: name of the ReplicaSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: apps + kind: ReplicaSet + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified ReplicaSet + operationId: replaceNamespacedReplicaSetStatus + parameters: + - description: name of the ReplicaSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSet" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: apps + kind: ReplicaSet + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/apps/v1/namespaces/{namespace}/statefulsets: + delete: + description: delete collection of StatefulSet + operationId: deleteCollectionNamespacedStatefulSet + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: apps + kind: StatefulSet + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind StatefulSet + operationId: listNamespacedStatefulSet + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: apps + kind: StatefulSet + version: v1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + post: + description: create a StatefulSet + operationId: createNamespacedStatefulSet + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: apps + kind: StatefulSet + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}: + delete: + description: delete a StatefulSet + operationId: deleteNamespacedStatefulSet + parameters: + - description: name of the StatefulSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: OK + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: apps + kind: StatefulSet + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified StatefulSet + operationId: readNamespacedStatefulSet + parameters: + - description: name of the StatefulSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: apps + kind: StatefulSet + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified StatefulSet + operationId: patchNamespacedStatefulSet + parameters: + - description: name of the StatefulSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: apps + kind: StatefulSet + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified StatefulSet + operationId: replaceNamespacedStatefulSet + parameters: + - description: name of the StatefulSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: apps + kind: StatefulSet + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale: + get: + description: read scale of the specified StatefulSet + operationId: readNamespacedStatefulSetScale + parameters: + - description: name of the Scale + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Scale" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: autoscaling + kind: Scale + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update scale of the specified StatefulSet + operationId: patchNamespacedStatefulSetScale + parameters: + - description: name of the Scale + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Scale" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Scale" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: autoscaling + kind: Scale + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace scale of the specified StatefulSet + operationId: replaceNamespacedStatefulSetScale + parameters: + - description: name of the Scale + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Scale" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Scale" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Scale" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Scale" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Scale" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: autoscaling + kind: Scale + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status: + get: + description: read status of the specified StatefulSet + operationId: readNamespacedStatefulSetStatus + parameters: + - description: name of the StatefulSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: apps + kind: StatefulSet + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified StatefulSet + operationId: patchNamespacedStatefulSetStatus + parameters: + - description: name of the StatefulSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: apps + kind: StatefulSet + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified StatefulSet + operationId: replaceNamespacedStatefulSetStatus + parameters: + - description: name of the StatefulSet + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSet" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: apps + kind: StatefulSet + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/apps/v1/replicasets: + get: + description: list or watch objects of kind ReplicaSet + operationId: listReplicaSetForAllNamespaces + parameters: + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ReplicaSetList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: apps + kind: ReplicaSet + version: v1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/apps/v1/statefulsets: + get: + description: list or watch objects of kind StatefulSet + operationId: listStatefulSetForAllNamespaces + parameters: + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.StatefulSetList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - apps_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: apps + kind: StatefulSet + version: v1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/apps/v1/watch/controllerrevisions: {} + /apis/apps/v1/watch/daemonsets: {} + /apis/apps/v1/watch/deployments: {} + /apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions: {} + /apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}: {} + /apis/apps/v1/watch/namespaces/{namespace}/daemonsets: {} + /apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}: {} + /apis/apps/v1/watch/namespaces/{namespace}/deployments: {} + /apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}: {} + /apis/apps/v1/watch/namespaces/{namespace}/replicasets: {} + /apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}: {} + /apis/apps/v1/watch/namespaces/{namespace}/statefulsets: {} + /apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}: {} + /apis/apps/v1/watch/replicasets: {} + /apis/apps/v1/watch/statefulsets: {} + /apis/authentication.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - authentication + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/authentication.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - authentication_v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/authentication.k8s.io/v1/selfsubjectreviews: + post: + description: create a SelfSubjectReview + operationId: createSelfSubjectReview + parameters: + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectReview" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - authentication_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: authentication.k8s.io + kind: SelfSubjectReview + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/authentication.k8s.io/v1/tokenreviews: + post: + description: create a TokenReview + operationId: createTokenReview + parameters: + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.TokenReview" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.TokenReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.TokenReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.TokenReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.TokenReview" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.TokenReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.TokenReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.TokenReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.TokenReview" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.TokenReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.TokenReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.TokenReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.TokenReview" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - authentication_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: authentication.k8s.io + kind: TokenReview + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/authorization.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - authorization + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/authorization.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - authorization_v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews: + post: + description: create a LocalSubjectAccessReview + operationId: createNamespacedLocalSubjectAccessReview + parameters: + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - authorization_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: authorization.k8s.io + kind: LocalSubjectAccessReview + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/authorization.k8s.io/v1/selfsubjectaccessreviews: + post: + description: create a SelfSubjectAccessReview + operationId: createSelfSubjectAccessReview + parameters: + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - authorization_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: authorization.k8s.io + kind: SelfSubjectAccessReview + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/authorization.k8s.io/v1/selfsubjectrulesreviews: + post: + description: create a SelfSubjectRulesReview + operationId: createSelfSubjectRulesReview + parameters: + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - authorization_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: authorization.k8s.io + kind: SelfSubjectRulesReview + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/authorization.k8s.io/v1/subjectaccessreviews: + post: + description: create a SubjectAccessReview + operationId: createSubjectAccessReview + parameters: + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SubjectAccessReview" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SubjectAccessReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.SubjectAccessReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.SubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SubjectAccessReview" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SubjectAccessReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.SubjectAccessReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.SubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SubjectAccessReview" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.SubjectAccessReview" + application/yaml: + schema: + $ref: "#/components/schemas/v1.SubjectAccessReview" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.SubjectAccessReview" + application/cbor: + schema: + $ref: "#/components/schemas/v1.SubjectAccessReview" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - authorization_v1 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: authorization.k8s.io + kind: SubjectAccessReview + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/autoscaling/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - autoscaling + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/autoscaling/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - autoscaling_v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/autoscaling/v1/horizontalpodautoscalers: + get: + description: list or watch objects of kind HorizontalPodAutoscaler + operationId: listHorizontalPodAutoscalerForAllNamespaces + parameters: + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - autoscaling_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: autoscaling + kind: HorizontalPodAutoscaler + version: v1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers: + delete: + description: delete collection of HorizontalPodAutoscaler + operationId: deleteCollectionNamespacedHorizontalPodAutoscaler + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - autoscaling_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: autoscaling + kind: HorizontalPodAutoscaler + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind HorizontalPodAutoscaler + operationId: listNamespacedHorizontalPodAutoscaler + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - autoscaling_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: autoscaling + kind: HorizontalPodAutoscaler + version: v1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + post: + description: create a HorizontalPodAutoscaler + operationId: createNamespacedHorizontalPodAutoscaler + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.Patch" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/yaml: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + application/cbor: + schema: + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + description: Accepted "401": content: {} description: Unauthorized tags: - - apps_v1 - x-kubernetes-action: patch + - autoscaling_v1 + x-kubernetes-action: post x-kubernetes-group-version-kind: - group: apps - kind: ReplicaSet + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -34038,11 +41729,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace the specified ReplicaSet - operationId: replaceNamespacedReplicaSet + /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}: + delete: + description: delete a HorizontalPodAutoscaler + operationId: deleteNamespacedHorizontalPodAutoscaler parameters: - - description: name of the ReplicaSet + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -34069,76 +41761,95 @@ paths: name: dryRun schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query - name: fieldManager + name: gracePeriodSeconds schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" in: query - name: fieldValidation + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy schema: type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" - required: true + $ref: "#/components/schemas/v1.DeleteOptions" + required: false responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Status" description: OK - "201": + "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.ReplicaSet" - description: Created + $ref: "#/components/schemas/v1.Status" + description: Accepted "401": content: {} description: Unauthorized tags: - - apps_v1 - x-kubernetes-action: put + - autoscaling_v1 + x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: apps - kind: ReplicaSet + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -34147,12 +41858,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale: get: - description: read scale of the specified ReplicaSet - operationId: readNamespacedReplicaSetScale + description: read the specified HorizontalPodAutoscaler + operationId: readNamespacedHorizontalPodAutoscaler parameters: - - description: name of the Scale + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -34176,26 +41886,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: autoscaling - kind: Scale + kind: HorizontalPodAutoscaler version: v1 x-accepts: - application/cbor @@ -34203,10 +41913,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update scale of the specified ReplicaSet - operationId: patchNamespacedReplicaSetScale + description: partially update the specified HorizontalPodAutoscaler + operationId: patchNamespacedHorizontalPodAutoscaler parameters: - - description: name of the Scale + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -34277,41 +41987,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: autoscaling - kind: Scale + kind: HorizontalPodAutoscaler version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -34321,10 +42031,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace scale of the specified ReplicaSet - operationId: replaceNamespacedReplicaSetScale + description: replace the specified HorizontalPodAutoscaler + operationId: replaceNamespacedHorizontalPodAutoscaler parameters: - - description: name of the Scale + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -34379,48 +42089,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: autoscaling - kind: Scale + kind: HorizontalPodAutoscaler version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -34429,12 +42139,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status: + /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status: get: - description: read status of the specified ReplicaSet - operationId: readNamespacedReplicaSetStatus + description: read status of the specified HorizontalPodAutoscaler + operationId: readNamespacedHorizontalPodAutoscalerStatus parameters: - - description: name of the ReplicaSet + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -34458,26 +42168,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: apps - kind: ReplicaSet + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-accepts: - application/cbor @@ -34485,10 +42195,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified ReplicaSet - operationId: patchNamespacedReplicaSetStatus + description: partially update status of the specified HorizontalPodAutoscaler + operationId: patchNamespacedHorizontalPodAutoscalerStatus parameters: - - description: name of the ReplicaSet + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -34559,41 +42269,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: apps - kind: ReplicaSet + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -34603,10 +42313,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified ReplicaSet - operationId: replaceNamespacedReplicaSetStatus + description: replace status of the specified HorizontalPodAutoscaler + operationId: replaceNamespacedHorizontalPodAutoscalerStatus parameters: - - description: name of the ReplicaSet + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -34661,48 +42371,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.ReplicaSet" + $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: apps - kind: ReplicaSet + group: autoscaling + kind: HorizontalPodAutoscaler version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -34711,10 +42421,209 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/namespaces/{namespace}/statefulsets: + /apis/autoscaling/v1/watch/horizontalpodautoscalers: {} + /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers: {} + /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}: {} + /apis/autoscaling/v2/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - autoscaling_v2 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/autoscaling/v2/horizontalpodautoscalers: + get: + description: list or watch objects of kind HorizontalPodAutoscaler + operationId: listHorizontalPodAutoscalerForAllNamespaces + parameters: + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + application/yaml: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + application/cbor: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - autoscaling_v2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers: delete: - description: delete collection of StatefulSet - operationId: deleteCollectionNamespacedStatefulSet + description: delete collection of HorizontalPodAutoscaler + operationId: deleteCollectionNamespacedHorizontalPodAutoscaler parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -34842,6 +42751,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -34874,12 +42810,12 @@ paths: content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: apps - kind: StatefulSet - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -34888,8 +42824,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind StatefulSet - operationId: listNamespacedStatefulSet + description: list or watch objects of kind HorizontalPodAutoscaler + operationId: listNamespacedHorizontalPodAutoscaler parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -34976,6 +42912,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -34993,36 +42956,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.StatefulSetList" + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/yaml: schema: - $ref: "#/components/schemas/v1.StatefulSetList" + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StatefulSetList" + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/cbor: schema: - $ref: "#/components/schemas/v1.StatefulSetList" + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.StatefulSetList" + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.StatefulSetList" + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.StatefulSetList" + $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: apps - kind: StatefulSet - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-accepts: - application/cbor - application/cbor-seq @@ -35032,8 +42995,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a StatefulSet - operationId: createNamespacedStatefulSet + description: create a HorizontalPodAutoscaler + operationId: createNamespacedHorizontalPodAutoscaler parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -35084,64 +43047,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Accepted "401": content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v2 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: apps - kind: StatefulSet - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -35149,12 +43112,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}: + /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}: delete: - description: delete a StatefulSet - operationId: deleteNamespacedStatefulSet + description: delete a HorizontalPodAutoscaler + operationId: deleteNamespacedHorizontalPodAutoscaler parameters: - - description: name of the StatefulSet + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -35265,12 +43228,12 @@ paths: content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v2 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: apps - kind: StatefulSet - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -35279,10 +43242,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified StatefulSet - operationId: readNamespacedStatefulSet + description: read the specified HorizontalPodAutoscaler + operationId: readNamespacedHorizontalPodAutoscaler parameters: - - description: name of the StatefulSet + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -35306,37 +43269,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v2 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: apps - kind: StatefulSet - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified StatefulSet - operationId: patchNamespacedStatefulSet + description: partially update the specified HorizontalPodAutoscaler + operationId: patchNamespacedHorizontalPodAutoscaler parameters: - - description: name of the StatefulSet + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -35407,42 +43370,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: apps - kind: StatefulSet - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -35451,10 +43414,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified StatefulSet - operationId: replaceNamespacedStatefulSet + description: replace the specified HorizontalPodAutoscaler + operationId: replaceNamespacedHorizontalPodAutoscaler parameters: - - description: name of the StatefulSet + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -35509,49 +43472,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: apps - kind: StatefulSet - version: v1 + group: autoscaling + kind: HorizontalPodAutoscaler + version: v2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -35559,12 +43522,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale: + /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status: get: - description: read scale of the specified StatefulSet - operationId: readNamespacedStatefulSetScale + description: read status of the specified HorizontalPodAutoscaler + operationId: readNamespacedHorizontalPodAutoscalerStatus parameters: - - description: name of the Scale + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -35588,37 +43551,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v2 x-kubernetes-action: get x-kubernetes-group-version-kind: group: autoscaling - kind: Scale - version: v1 + kind: HorizontalPodAutoscaler + version: v2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update scale of the specified StatefulSet - operationId: patchNamespacedStatefulSetScale + description: partially update status of the specified HorizontalPodAutoscaler + operationId: patchNamespacedHorizontalPodAutoscalerStatus parameters: - - description: name of the Scale + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -35689,42 +43652,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v2 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: autoscaling - kind: Scale - version: v1 + kind: HorizontalPodAutoscaler + version: v2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -35733,10 +43696,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace scale of the specified StatefulSet - operationId: replaceNamespacedStatefulSetScale + description: replace status of the specified HorizontalPodAutoscaler + operationId: replaceNamespacedHorizontalPodAutoscalerStatus parameters: - - description: name of the Scale + - description: name of the HorizontalPodAutoscaler in: path name: name required: true @@ -35791,49 +43754,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/yaml: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" application/cbor: schema: - $ref: "#/components/schemas/v1.Scale" + $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" description: Created "401": content: {} description: Unauthorized tags: - - apps_v1 + - autoscaling_v2 x-kubernetes-action: put x-kubernetes-group-version-kind: group: autoscaling - kind: Scale - version: v1 + kind: HorizontalPodAutoscaler + version: v2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -35841,77 +43804,108 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status: + /apis/autoscaling/v2/watch/horizontalpodautoscalers: {} + /apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers: {} + /apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}: {} + /apis/batch/: get: - description: read status of the specified StatefulSet - operationId: readNamespacedStatefulSetStatus - parameters: - - description: name of the StatefulSet - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v1.APIGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - batch + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/batch/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: apps - kind: StatefulSet - version: v1 + - batch_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - patch: - description: partially update status of the specified StatefulSet - operationId: patchNamespacedStatefulSetStatus + /apis/batch/v1/cronjobs: + get: + description: list or watch objects of kind CronJob + operationId: listCronJobForAllNamespaces parameters: - - description: name of the StatefulSet - in: path - name: name - required: true + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector schema: type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -35919,117 +43913,165 @@ paths: name: pretty schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" + - description: |- + 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 in: query - name: dryRun + name: resourceVersion schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + - description: |- + 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 in: query - name: fieldManager + name: resourceVersionMatch schema: type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: fieldValidation + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query - name: force + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch schema: type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Patch" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v1.CronJobList" application/yaml: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v1.CronJobList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v1.CronJobList" application/cbor: schema: - $ref: "#/components/schemas/v1.StatefulSet" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.StatefulSet" - application/yaml: + $ref: "#/components/schemas/v1.CronJobList" + application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.StatefulSet" - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1.CronJobList" + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.StatefulSet" - application/cbor: + $ref: "#/components/schemas/v1.CronJobList" + application/cbor-seq: schema: - $ref: "#/components/schemas/v1.StatefulSet" - description: Created + $ref: "#/components/schemas/v1.CronJobList" + description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 - x-kubernetes-action: patch + - batch_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: apps - kind: StatefulSet + group: batch + kind: CronJob version: v1 - x-codegen-request-body-name: body - x-content-type: application/json x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - put: - description: replace status of the specified StatefulSet - operationId: replaceNamespacedStatefulSetStatus + /apis/batch/v1/jobs: + get: + description: list or watch objects of kind Job + operationId: listJobForAllNamespaces parameters: - - description: name of the StatefulSet - in: path - name: name - required: true + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector schema: type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -36037,107 +44079,140 @@ paths: name: pretty schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" + - description: |- + 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 in: query - name: dryRun + name: resourceVersion schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: |- + 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 in: query - name: fieldManager + name: resourceVersionMatch schema: type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: fieldValidation + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector schema: type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.StatefulSet" - required: true + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v1.JobList" application/yaml: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v1.JobList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StatefulSet" + $ref: "#/components/schemas/v1.JobList" application/cbor: schema: - $ref: "#/components/schemas/v1.StatefulSet" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.StatefulSet" - application/yaml: + $ref: "#/components/schemas/v1.JobList" + application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.StatefulSet" - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1.JobList" + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.StatefulSet" - application/cbor: + $ref: "#/components/schemas/v1.JobList" + application/cbor-seq: schema: - $ref: "#/components/schemas/v1.StatefulSet" - description: Created + $ref: "#/components/schemas/v1.JobList" + description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 - x-kubernetes-action: put + - batch_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: apps - kind: StatefulSet + group: batch + kind: Job version: v1 - x-codegen-request-body-name: body - x-content-type: application/json x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/apps/v1/replicasets: - get: - description: list or watch objects of kind ReplicaSet - operationId: listReplicaSetForAllNamespaces + /apis/batch/v1/namespaces/{namespace}/cronjobs: + delete: + description: delete collection of CronJob + operationId: deleteCollectionNamespacedCronJob parameters: - - description: "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." + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: allowWatchBookmarks + name: pretty schema: - type: boolean + type: string - description: |- 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". @@ -36146,12 +44221,44 @@ paths: name: continue schema: type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string - description: A selector to restrict the list of returned objects by their fields. Defaults to everything. in: query name: fieldSelector schema: type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean - description: A selector to restrict the list of returned objects by their labels. Defaults to everything. in: query @@ -36166,11 +44273,23 @@ paths: name: limit schema: type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query - name: pretty + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy schema: type: string - description: |- @@ -36207,66 +44326,95 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query name: timeoutSeconds schema: type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ReplicaSetList" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.ReplicaSetList" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ReplicaSetList" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.ReplicaSetList" - application/json;stream=watch: - schema: - $ref: "#/components/schemas/v1.ReplicaSetList" - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: "#/components/schemas/v1.ReplicaSetList" - application/cbor-seq: - schema: - $ref: "#/components/schemas/v1.ReplicaSetList" + $ref: "#/components/schemas/v1.Status" description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 - x-kubernetes-action: list + - batch_v1 + x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: apps - kind: ReplicaSet + group: batch + kind: CronJob version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/apps/v1/statefulsets: get: - description: list or watch objects of kind StatefulSet - operationId: listStatefulSetForAllNamespaces + description: list or watch objects of kind CronJob + operationId: listNamespacedCronJob parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string - description: "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\ @@ -36305,13 +44453,6 @@ paths: name: limit schema: type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - description: |- 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. @@ -36346,6 +44487,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -36363,35 +44531,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.StatefulSetList" + $ref: "#/components/schemas/v1.CronJobList" application/yaml: schema: - $ref: "#/components/schemas/v1.StatefulSetList" + $ref: "#/components/schemas/v1.CronJobList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.StatefulSetList" + $ref: "#/components/schemas/v1.CronJobList" application/cbor: schema: - $ref: "#/components/schemas/v1.StatefulSetList" + $ref: "#/components/schemas/v1.CronJobList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.StatefulSetList" + $ref: "#/components/schemas/v1.CronJobList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.StatefulSetList" + $ref: "#/components/schemas/v1.CronJobList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.StatefulSetList" + $ref: "#/components/schemas/v1.CronJobList" description: OK "401": content: {} description: Unauthorized tags: - - apps_v1 + - batch_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: apps - kind: StatefulSet + group: batch + kind: CronJob version: v1 x-accepts: - application/cbor @@ -36401,82 +44569,23 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/apps/v1/watch/controllerrevisions: {} - /apis/apps/v1/watch/daemonsets: {} - /apis/apps/v1/watch/deployments: {} - /apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions: {} - /apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}: {} - /apis/apps/v1/watch/namespaces/{namespace}/daemonsets: {} - /apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}: {} - /apis/apps/v1/watch/namespaces/{namespace}/deployments: {} - /apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}: {} - /apis/apps/v1/watch/namespaces/{namespace}/replicasets: {} - /apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}: {} - /apis/apps/v1/watch/namespaces/{namespace}/statefulsets: {} - /apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}: {} - /apis/apps/v1/watch/replicasets: {} - /apis/apps/v1/watch/statefulsets: {} - /apis/authentication.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIGroup" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - authentication - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/authentication.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - authentication_v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/authentication.k8s.io/v1/selfsubjectreviews: post: - description: create a SelfSubjectReview - operationId: createSelfSubjectReview + description: create a CronJob + operationId: createNamespacedCronJob parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string - description: "When present, indicates that modifications should not be persisted.\ \ An invalid or unrecognized dryRun directive will result in an error response\ \ and no further processing of the request. Valid values are: - All: all\ @@ -36509,74 +44618,67 @@ paths: name: fieldValidation schema: type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.SelfSubjectReview" + $ref: "#/components/schemas/v1.CronJob" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.SelfSubjectReview" + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: "#/components/schemas/v1.SelfSubjectReview" + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.SelfSubjectReview" + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: "#/components/schemas/v1.SelfSubjectReview" + $ref: "#/components/schemas/v1.CronJob" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.SelfSubjectReview" + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: "#/components/schemas/v1.SelfSubjectReview" + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.SelfSubjectReview" + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: "#/components/schemas/v1.SelfSubjectReview" + $ref: "#/components/schemas/v1.CronJob" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.SelfSubjectReview" + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: "#/components/schemas/v1.SelfSubjectReview" + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.SelfSubjectReview" + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: "#/components/schemas/v1.SelfSubjectReview" + $ref: "#/components/schemas/v1.CronJob" description: Accepted "401": content: {} description: Unauthorized tags: - - authentication_v1 + - batch_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: authentication.k8s.io - kind: SelfSubjectReview + group: batch + kind: CronJob version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -36585,11 +44687,30 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/authentication.k8s.io/v1/tokenreviews: - post: - description: create a TokenReview - operationId: createTokenReview + /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}: + delete: + description: delete a CronJob + operationId: deleteNamespacedCronJob parameters: + - description: name of the CronJob + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string - description: "When present, indicates that modifications should not be persisted.\ \ An invalid or unrecognized dryRun directive will result in an error response\ \ and no further processing of the request. Valid values are: - All: all\ @@ -36598,98 +44719,95 @@ paths: name: dryRun schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query - name: fieldManager + name: gracePeriodSeconds schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" in: query - name: fieldValidation + name: ignoreStoreReadErrorWithClusterBreakingPotential schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query - name: pretty + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy schema: type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.TokenReview" - required: true + $ref: "#/components/schemas/v1.DeleteOptions" + required: false responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.TokenReview" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.TokenReview" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.TokenReview" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.TokenReview" + $ref: "#/components/schemas/v1.Status" description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.TokenReview" - application/yaml: - schema: - $ref: "#/components/schemas/v1.TokenReview" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.TokenReview" - application/cbor: - schema: - $ref: "#/components/schemas/v1.TokenReview" - description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.TokenReview" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.TokenReview" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.TokenReview" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.TokenReview" + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} description: Unauthorized tags: - - authentication_v1 - x-kubernetes-action: post + - batch_v1 + x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: authentication.k8s.io - kind: TokenReview + group: batch + kind: CronJob version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -36698,67 +44816,83 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/authorization.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIGroup" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - authorization - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/authorization.k8s.io/v1/: get: - description: get available resources - operationId: getAPIResources + description: read the specified CronJob + operationId: readNamespacedCronJob + parameters: + - description: name of the CronJob + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.CronJob" description: OK "401": content: {} description: Unauthorized tags: - - authorization_v1 + - batch_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: batch + kind: CronJob + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews: - post: - description: create a LocalSubjectAccessReview - operationId: createNamespacedLocalSubjectAccessReview + patch: + description: partially update the specified CronJob + operationId: patchNamespacedCronJob parameters: + - description: name of the CronJob + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string - description: "When present, indicates that modifications should not be persisted.\ \ An invalid or unrecognized dryRun directive will result in an error response\ \ and no further processing of the request. Valid values are: - All: all\ @@ -36769,7 +44903,9 @@ paths: type: string - description: "fieldManager is a name associated with the actor or entity that\ \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: @@ -36791,80 +44927,59 @@ paths: name: fieldValidation schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: pretty + name: force schema: - type: string + type: boolean requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: "#/components/schemas/v1.LocalSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" description: Created - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.LocalSubjectAccessReview" - application/yaml: - schema: - $ref: "#/components/schemas/v1.LocalSubjectAccessReview" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.LocalSubjectAccessReview" - application/cbor: - schema: - $ref: "#/components/schemas/v1.LocalSubjectAccessReview" - description: Accepted "401": content: {} description: Unauthorized tags: - - authorization_v1 - x-kubernetes-action: post + - batch_v1 + x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: authorization.k8s.io - kind: LocalSubjectAccessReview + group: batch + kind: CronJob version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -36873,11 +44988,29 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/authorization.k8s.io/v1/selfsubjectaccessreviews: - post: - description: create a SelfSubjectAccessReview - operationId: createSelfSubjectAccessReview + put: + description: replace the specified CronJob + operationId: replaceNamespacedCronJob parameters: + - description: name of the CronJob + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string - description: "When present, indicates that modifications should not be persisted.\ \ An invalid or unrecognized dryRun directive will result in an error response\ \ and no further processing of the request. Valid values are: - All: all\ @@ -36910,87 +45043,138 @@ paths: name: fieldValidation schema: type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" description: Created - "202": + "401": + content: {} + description: Unauthorized + tags: + - batch_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: batch + kind: CronJob + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status: + get: + description: read status of the specified CronJob + operationId: readNamespacedCronJobStatus + parameters: + - description: name of the CronJob + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": content: application/json: schema: - $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.SelfSubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: "#/components/schemas/v1.SelfSubjectAccessReview" - description: Accepted + $ref: "#/components/schemas/v1.CronJob" + description: OK "401": content: {} description: Unauthorized tags: - - authorization_v1 - x-kubernetes-action: post + - batch_v1 + x-kubernetes-action: get x-kubernetes-group-version-kind: - group: authorization.k8s.io - kind: SelfSubjectAccessReview + group: batch + kind: CronJob version: v1 - x-codegen-request-body-name: body - x-content-type: application/json x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/authorization.k8s.io/v1/selfsubjectrulesreviews: - post: - description: create a SelfSubjectRulesReview - operationId: createSelfSubjectRulesReview + patch: + description: partially update status of the specified CronJob + operationId: patchNamespacedCronJobStatus parameters: + - description: name of the CronJob + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string - description: "When present, indicates that modifications should not be persisted.\ \ An invalid or unrecognized dryRun directive will result in an error response\ \ and no further processing of the request. Valid values are: - All: all\ @@ -37001,7 +45185,9 @@ paths: type: string - description: "fieldManager is a name associated with the actor or entity that\ \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query name: fieldManager schema: @@ -37023,74 +45209,59 @@ paths: name: fieldValidation schema: type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: pretty + name: force schema: - type: string + type: boolean requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + $ref: "#/components/schemas/v1.CronJob" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: "#/components/schemas/v1.SelfSubjectRulesReview" + $ref: "#/components/schemas/v1.CronJob" description: Created - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.SelfSubjectRulesReview" - application/yaml: - schema: - $ref: "#/components/schemas/v1.SelfSubjectRulesReview" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.SelfSubjectRulesReview" - application/cbor: - schema: - $ref: "#/components/schemas/v1.SelfSubjectRulesReview" - description: Accepted "401": content: {} description: Unauthorized tags: - - authorization_v1 - x-kubernetes-action: post + - batch_v1 + x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: authorization.k8s.io - kind: SelfSubjectRulesReview + group: batch + kind: CronJob version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -37099,11 +45270,29 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/authorization.k8s.io/v1/subjectaccessreviews: - post: - description: create a SubjectAccessReview - operationId: createSubjectAccessReview + put: + description: replace status of the specified CronJob + operationId: replaceNamespacedCronJobStatus parameters: + - description: name of the CronJob + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string - description: "When present, indicates that modifications should not be persisted.\ \ An invalid or unrecognized dryRun directive will result in an error response\ \ and no further processing of the request. Valid values are: - All: all\ @@ -37136,74 +45325,52 @@ paths: name: fieldValidation schema: type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.SubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.SubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: "#/components/schemas/v1.SubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.SubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: "#/components/schemas/v1.SubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.SubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/yaml: schema: - $ref: "#/components/schemas/v1.SubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.SubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" application/cbor: schema: - $ref: "#/components/schemas/v1.SubjectAccessReview" + $ref: "#/components/schemas/v1.CronJob" description: Created - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.SubjectAccessReview" - application/yaml: - schema: - $ref: "#/components/schemas/v1.SubjectAccessReview" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.SubjectAccessReview" - application/cbor: - schema: - $ref: "#/components/schemas/v1.SubjectAccessReview" - description: Accepted "401": content: {} description: Unauthorized tags: - - authorization_v1 - x-kubernetes-action: post + - batch_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: authorization.k8s.io - kind: SubjectAccessReview + group: batch + kind: CronJob version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -37212,205 +45379,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/autoscaling/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIGroup" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - autoscaling - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/autoscaling/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - autoscaling_v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/autoscaling/v1/horizontalpodautoscalers: - get: - description: list or watch objects of kind HorizontalPodAutoscaler - operationId: listHorizontalPodAutoscalerForAllNamespaces - parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" - application/json;stream=watch: - schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" - application/cbor-seq: - schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - autoscaling_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v1 - x-accepts: - - application/cbor - - application/cbor-seq - - application/json - - application/json;stream=watch - - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - - application/yaml - /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers: + /apis/batch/v1/namespaces/{namespace}/jobs: delete: - description: delete collection of HorizontalPodAutoscaler - operationId: deleteCollectionNamespacedHorizontalPodAutoscaler + description: delete collection of Job + operationId: deleteCollectionNamespacedJob parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -37538,6 +45510,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -37570,11 +45569,11 @@ paths: content: {} description: Unauthorized tags: - - autoscaling_v1 + - batch_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: batch + kind: Job version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -37584,8 +45583,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind HorizontalPodAutoscaler - operationId: listNamespacedHorizontalPodAutoscaler + description: list or watch objects of kind Job + operationId: listNamespacedJob parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -37672,6 +45671,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -37689,35 +45715,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.JobList" application/yaml: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.JobList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.JobList" application/cbor: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.JobList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.JobList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.JobList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.JobList" description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - batch_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: batch + kind: Job version: v1 x-accepts: - application/cbor @@ -37728,8 +45754,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a HorizontalPodAutoscaler - operationId: createNamespacedHorizontalPodAutoscaler + description: create a Job + operationId: createNamespacedJob parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -37780,63 +45806,63 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" description: Accepted "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - batch_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: batch + kind: Job version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -37845,12 +45871,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}: + /apis/batch/v1/namespaces/{namespace}/jobs/{name}: delete: - description: delete a HorizontalPodAutoscaler - operationId: deleteNamespacedHorizontalPodAutoscaler + description: delete a Job + operationId: deleteNamespacedJob parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the Job in: path name: name required: true @@ -37961,11 +45987,11 @@ paths: content: {} description: Unauthorized tags: - - autoscaling_v1 + - batch_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: batch + kind: Job version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -37975,10 +46001,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified HorizontalPodAutoscaler - operationId: readNamespacedHorizontalPodAutoscaler + description: read the specified Job + operationId: readNamespacedJob parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the Job in: path name: name required: true @@ -38002,26 +46028,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - batch_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: batch + kind: Job version: v1 x-accepts: - application/cbor @@ -38029,10 +46055,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified HorizontalPodAutoscaler - operationId: patchNamespacedHorizontalPodAutoscaler + description: partially update the specified Job + operationId: patchNamespacedJob parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the Job in: path name: name required: true @@ -38103,41 +46129,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - batch_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: batch + kind: Job version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -38147,10 +46173,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified HorizontalPodAutoscaler - operationId: replaceNamespacedHorizontalPodAutoscaler + description: replace the specified Job + operationId: replaceNamespacedJob parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the Job in: path name: name required: true @@ -38205,48 +46231,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - batch_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: batch + kind: Job version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -38255,12 +46281,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status: + /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status: get: - description: read status of the specified HorizontalPodAutoscaler - operationId: readNamespacedHorizontalPodAutoscalerStatus + description: read status of the specified Job + operationId: readNamespacedJobStatus parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the Job in: path name: name required: true @@ -38284,26 +46310,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - batch_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: batch + kind: Job version: v1 x-accepts: - application/cbor @@ -38311,10 +46337,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified HorizontalPodAutoscaler - operationId: patchNamespacedHorizontalPodAutoscalerStatus + description: partially update status of the specified Job + operationId: patchNamespacedJobStatus parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the Job in: path name: name required: true @@ -38385,41 +46411,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - batch_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: batch + kind: Job version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -38429,10 +46455,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified HorizontalPodAutoscaler - operationId: replaceNamespacedHorizontalPodAutoscalerStatus + description: replace status of the specified Job + operationId: replaceNamespacedJobStatus parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the Job in: path name: name required: true @@ -38487,48 +46513,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/yaml: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" application/cbor: schema: - $ref: "#/components/schemas/v1.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.Job" description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v1 + - batch_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler + group: batch + kind: Job version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -38537,189 +46563,73 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/autoscaling/v1/watch/horizontalpodautoscalers: {} - /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers: {} - /apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}: {} - /apis/autoscaling/v2/: + /apis/batch/v1/watch/cronjobs: {} + /apis/batch/v1/watch/jobs: {} + /apis/batch/v1/watch/namespaces/{namespace}/cronjobs: {} + /apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}: {} + /apis/batch/v1/watch/namespaces/{namespace}/jobs: {} + /apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}: {} + /apis/certificates.k8s.io/: get: - description: get available resources - operationId: getAPIResources + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2 + - certificates x-accepts: - - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/autoscaling/v2/horizontalpodautoscalers: + /apis/certificates.k8s.io/v1/: get: - description: list or watch objects of kind HorizontalPodAutoscaler - operationId: listHorizontalPodAutoscalerForAllNamespaces - parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" - application/json;stream=watch: - schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" - application/cbor-seq: - schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + - certificates_v1 x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers: + /apis/certificates.k8s.io/v1/certificatesigningrequests: delete: - description: delete collection of HorizontalPodAutoscaler - operationId: deleteCollectionNamespacedHorizontalPodAutoscaler + description: delete collection of CertificateSigningRequest + operationId: deleteCollectionCertificateSigningRequest parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -38840,6 +46750,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -38872,12 +46809,12 @@ paths: content: {} description: Unauthorized tags: - - autoscaling_v2 + - certificates_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -38886,15 +46823,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind HorizontalPodAutoscaler - operationId: listNamespacedHorizontalPodAutoscaler + description: list or watch objects of kind CertificateSigningRequest + operationId: listCertificateSigningRequest parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -38974,6 +46905,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -38991,36 +46949,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/yaml: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/cbor: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.CertificateSigningRequestList" application/cbor-seq: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscalerList" + $ref: "#/components/schemas/v1.CertificateSigningRequestList" description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2 + - certificates_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -39030,15 +46988,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a HorizontalPodAutoscaler - operationId: createNamespacedHorizontalPodAutoscaler + description: create a CertificateSigningRequest + operationId: createCertificateSigningRequest parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -39082,64 +47034,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Accepted "401": content: {} description: Unauthorized tags: - - autoscaling_v2 + - certificates_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -39147,23 +47099,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}: + /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}: delete: - description: delete a HorizontalPodAutoscaler - operationId: deleteNamespacedHorizontalPodAutoscaler + description: delete a CertificateSigningRequest + operationId: deleteCertificateSigningRequest parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -39263,12 +47209,12 @@ paths: content: {} description: Unauthorized tags: - - autoscaling_v2 + - certificates_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -39277,21 +47223,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified HorizontalPodAutoscaler - operationId: readNamespacedHorizontalPodAutoscaler + description: read the specified CertificateSigningRequest + operationId: readCertificateSigningRequest parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -39304,48 +47244,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2 + - certificates_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified HorizontalPodAutoscaler - operationId: patchNamespacedHorizontalPodAutoscaler + description: partially update the specified CertificateSigningRequest + operationId: patchCertificateSigningRequest parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -39405,42 +47339,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v2 + - certificates_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -39449,21 +47383,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified HorizontalPodAutoscaler - operationId: replaceNamespacedHorizontalPodAutoscaler + description: replace the specified CertificateSigningRequest + operationId: replaceCertificateSigningRequest parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -39507,49 +47435,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v2 + - certificates_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -39557,23 +47485,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status: + /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval: get: - description: read status of the specified HorizontalPodAutoscaler - operationId: readNamespacedHorizontalPodAutoscalerStatus + description: read approval of the specified CertificateSigningRequest + operationId: readCertificateSigningRequestApproval parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -39586,48 +47508,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "401": content: {} description: Unauthorized tags: - - autoscaling_v2 + - certificates_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified HorizontalPodAutoscaler - operationId: patchNamespacedHorizontalPodAutoscalerStatus + description: partially update approval of the specified CertificateSigningRequest + operationId: patchCertificateSigningRequestApproval parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -39687,42 +47603,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v2 + - certificates_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -39731,21 +47647,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified HorizontalPodAutoscaler - operationId: replaceNamespacedHorizontalPodAutoscalerStatus + description: replace approval of the specified CertificateSigningRequest + operationId: replaceCertificateSigningRequestApproval parameters: - - description: name of the HorizontalPodAutoscaler + - description: name of the CertificateSigningRequest in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -39789,49 +47699,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v2.HorizontalPodAutoscaler" + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: Created "401": content: {} description: Unauthorized tags: - - autoscaling_v2 + - certificates_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: autoscaling - kind: HorizontalPodAutoscaler - version: v2 + group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -39839,108 +47749,65 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/autoscaling/v2/watch/horizontalpodautoscalers: {} - /apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers: {} - /apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}: {} - /apis/batch/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIGroup" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - batch - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/batch/v1/: + /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status: get: - description: get available resources - operationId: getAPIResources + description: read status of the specified CertificateSigningRequest + operationId: readCertificateSigningRequestStatus + parameters: + - description: name of the CertificateSigningRequest + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.CertificateSigningRequest" description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: certificates.k8s.io + kind: CertificateSigningRequest + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/batch/v1/cronjobs: - get: - description: list or watch objects of kind CronJob - operationId: listCronJobForAllNamespaces + patch: + description: partially update status of the specified CertificateSigningRequest + operationId: patchCertificateSigningRequestStatus parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + - description: name of the CertificateSigningRequest + in: path + name: name + required: true schema: type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -39948,138 +47815,111 @@ paths: name: pretty schema: type: string - - description: |- - 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 + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - 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 + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: timeoutSeconds + name: fieldValidation schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: watch + name: force schema: type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CronJobList" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.CronJobList" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CronJobList" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.CronJobList" - application/json;stream=watch: + $ref: "#/components/schemas/v1.CertificateSigningRequest" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/v1.CronJobList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/yaml: schema: - $ref: "#/components/schemas/v1.CronJobList" - application/cbor-seq: + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CronJobList" - description: OK + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequest" + description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 - x-kubernetes-action: list + - certificates_v1 + x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: batch - kind: CronJob + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/batch/v1/jobs: - get: - description: list or watch objects of kind Job - operationId: listJobForAllNamespaces + put: + description: replace status of the specified CertificateSigningRequest + operationId: replaceCertificateSigningRequestStatus parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + - description: name of the CertificateSigningRequest + in: path + name: name + required: true schema: type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -40087,106 +47927,129 @@ paths: name: pretty schema: type: string - - description: |- - 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 - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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 + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersionMatch + name: dryRun schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: watch + name: fieldValidation schema: - type: boolean + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequest" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.JobList" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.JobList" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.JobList" + $ref: "#/components/schemas/v1.CertificateSigningRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.JobList" - application/json;stream=watch: + $ref: "#/components/schemas/v1.CertificateSigningRequest" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/v1.JobList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/yaml: schema: - $ref: "#/components/schemas/v1.JobList" - application/cbor-seq: + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.JobList" - description: OK + $ref: "#/components/schemas/v1.CertificateSigningRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CertificateSigningRequest" + description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 - x-kubernetes-action: list + - certificates_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: batch - kind: Job + group: certificates.k8s.io + kind: CertificateSigningRequest version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/batch/v1/namespaces/{namespace}/cronjobs: + /apis/certificates.k8s.io/v1/watch/certificatesigningrequests: {} + /apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}: {} + /apis/certificates.k8s.io/v1alpha1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - certificates_v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/certificates.k8s.io/v1alpha1/clustertrustbundles: delete: - description: delete collection of CronJob - operationId: deleteCollectionNamespacedCronJob + description: delete collection of ClusterTrustBundle + operationId: deleteCollectionClusterTrustBundle parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -40307,6 +48170,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -40339,12 +48229,12 @@ paths: content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -40353,15 +48243,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind CronJob - operationId: listNamespacedCronJob + description: list or watch objects of kind ClusterTrustBundle + operationId: listClusterTrustBundle parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -40441,6 +48325,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -40458,36 +48369,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CronJobList" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/yaml: schema: - $ref: "#/components/schemas/v1.CronJobList" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CronJobList" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/cbor: schema: - $ref: "#/components/schemas/v1.CronJobList" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.CronJobList" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.CronJobList" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.CronJobList" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1alpha1 x-accepts: - application/cbor - application/cbor-seq @@ -40497,15 +48408,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a CronJob - operationId: createNamespacedCronJob + description: create a ClusterTrustBundle + operationId: createClusterTrustBundle parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -40549,64 +48454,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: Accepted "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -40614,23 +48519,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}: + /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}: delete: - description: delete a CronJob - operationId: deleteNamespacedCronJob + description: delete a ClusterTrustBundle + operationId: deleteClusterTrustBundle parameters: - - description: name of the CronJob + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -40730,12 +48629,12 @@ paths: content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1alpha1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -40744,21 +48643,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified CronJob - operationId: readNamespacedCronJob + description: read the specified ClusterTrustBundle + operationId: readClusterTrustBundle parameters: - - description: name of the CronJob + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -40771,48 +48664,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1alpha1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified CronJob - operationId: patchNamespacedCronJob + description: partially update the specified ClusterTrustBundle + operationId: patchClusterTrustBundle parameters: - - description: name of the CronJob + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -40872,42 +48759,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -40916,21 +48803,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified CronJob - operationId: replaceNamespacedCronJob + description: replace the specified ClusterTrustBundle + operationId: replaceClusterTrustBundle parameters: - - description: name of the CronJob + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -40974,49 +48855,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -41024,299 +48905,43 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status: + /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles: {} + /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles/{name}: {} + /apis/certificates.k8s.io/v1beta1/: get: - description: read status of the specified CronJob - operationId: readNamespacedCronJobStatus - parameters: - - description: name of the CronJob - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.CronJob" - application/yaml: - schema: - $ref: "#/components/schemas/v1.CronJob" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.CronJob" - application/cbor: - schema: - $ref: "#/components/schemas/v1.CronJob" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - batch_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update status of the specified CronJob - operationId: patchNamespacedCronJobStatus - parameters: - - description: name of the CronJob - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Patch" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.CronJob" - application/yaml: - schema: - $ref: "#/components/schemas/v1.CronJob" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.CronJob" - application/cbor: - schema: - $ref: "#/components/schemas/v1.CronJob" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.CronJob" - application/yaml: - schema: - $ref: "#/components/schemas/v1.CronJob" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.CronJob" - application/cbor: - schema: - $ref: "#/components/schemas/v1.CronJob" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - batch_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace status of the specified CronJob - operationId: replaceNamespacedCronJobStatus - parameters: - - description: name of the CronJob - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.CronJob" - required: true + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: "#/components/schemas/v1.CronJob" + $ref: "#/components/schemas/v1.APIResourceList" description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.CronJob" - application/yaml: - schema: - $ref: "#/components/schemas/v1.CronJob" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.CronJob" - application/cbor: - schema: - $ref: "#/components/schemas/v1.CronJob" - description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: batch - kind: CronJob - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json + - certificates_v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/batch/v1/namespaces/{namespace}/jobs: + /apis/certificates.k8s.io/v1beta1/clustertrustbundles: delete: - description: delete collection of Job - operationId: deleteCollectionNamespacedJob + description: delete collection of ClusterTrustBundle + operationId: deleteCollectionClusterTrustBundle parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -41437,6 +49062,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -41469,12 +49121,12 @@ paths: content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -41483,15 +49135,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Job - operationId: listNamespacedJob + description: list or watch objects of kind ClusterTrustBundle + operationId: listClusterTrustBundle parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -41571,6 +49217,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -41588,36 +49261,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.JobList" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/yaml: schema: - $ref: "#/components/schemas/v1.JobList" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.JobList" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/cbor: schema: - $ref: "#/components/schemas/v1.JobList" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.JobList" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.JobList" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.JobList" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -41627,15 +49300,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a Job - operationId: createNamespacedJob + description: create a ClusterTrustBundle + operationId: createClusterTrustBundle parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -41679,64 +49346,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: Accepted "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -41744,23 +49411,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/batch/v1/namespaces/{namespace}/jobs/{name}: + /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}: delete: - description: delete a Job - operationId: deleteNamespacedJob + description: delete a ClusterTrustBundle + operationId: deleteClusterTrustBundle parameters: - - description: name of the Job + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -41783,370 +49444,89 @@ paths: \ delete immediately." in: query name: gracePeriodSeconds - schema: - type: integer - - description: "if set to true, it will trigger an unsafe deletion of the resource\ - \ in case the normal deletion flow fails with a corrupt object error. A\ - \ resource is considered corrupt if it can not be retrieved from the underlying\ - \ storage successfully because of a) its data can not be transformed e.g.\ - \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ - \ deletion ignores finalizer constraints, skips precondition checks, and\ - \ removes the object from the storage. WARNING: This may potentially break\ - \ the cluster if the workload associated with the resource being unsafe-deleted\ - \ relies on normal deletion flow. Use only if you REALLY know what you are\ - \ doing. The default value is false, and the user must opt in to enable\ - \ it" - in: query - name: ignoreStoreReadErrorWithClusterBreakingPotential - schema: - type: boolean - - description: "Deprecated: please use the PropagationPolicy, this field will\ - \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ - \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ - \ list. Either this field or PropagationPolicy may be set, but not both." - in: query - name: orphanDependents - schema: - type: boolean - - description: "Whether and how garbage collection will be performed. Either\ - \ this field or OrphanDependents may be set, but not both. The default policy\ - \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy. Acceptable values are: 'Orphan'\ - \ - orphan the dependents; 'Background' - allow the garbage collector to\ - \ delete the dependents in the background; 'Foreground' - a cascading policy\ - \ that deletes all dependents in the foreground." - in: query - name: propagationPolicy - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.DeleteOptions" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Status" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Status" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Status" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Status" - description: OK - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Status" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Status" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Status" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Status" - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - batch_v1 - x-kubernetes-action: delete - x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: read the specified Job - operationId: readNamespacedJob - parameters: - - description: name of the Job - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Job" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Job" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Job" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Job" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - batch_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update the specified Job - operationId: patchNamespacedJob - parameters: - - description: name of the Job - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Patch" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Job" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Job" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Job" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Job" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Job" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Job" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Job" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Job" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - batch_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace the specified Job - operationId: replaceNamespacedJob - parameters: - - description: name of the Job - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" in: query - name: dryRun + name: ignoreStoreReadErrorWithClusterBreakingPotential schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." in: query - name: fieldManager + name: orphanDependents schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." in: query - name: fieldValidation + name: propagationPolicy schema: type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.Job" - required: true + $ref: "#/components/schemas/v1.DeleteOptions" + required: false responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1.Status" description: OK - "201": + "202": content: application/json: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.Job" - description: Created + $ref: "#/components/schemas/v1.Status" + description: Accepted "401": content: {} description: Unauthorized tags: - - batch_v1 - x-kubernetes-action: put + - certificates_v1beta1 + x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -42154,23 +49534,16 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/batch/v1/namespaces/{namespace}/jobs/{name}/status: get: - description: read status of the specified Job - operationId: readNamespacedJobStatus + description: read the specified ClusterTrustBundle + operationId: readClusterTrustBundle parameters: - - description: name of the Job + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -42183,48 +49556,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: OK "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified Job - operationId: patchNamespacedJobStatus + description: partially update the specified ClusterTrustBundle + operationId: patchClusterTrustBundle parameters: - - description: name of the Job + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -42284,42 +49651,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -42328,21 +49695,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified Job - operationId: replaceNamespacedJobStatus + description: replace the specified ClusterTrustBundle + operationId: replaceClusterTrustBundle parameters: - - description: name of the Job + - description: name of the ClusterTrustBundle in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -42386,49 +49747,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/yaml: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" application/cbor: schema: - $ref: "#/components/schemas/v1.Job" + $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" description: Created "401": content: {} description: Unauthorized tags: - - batch_v1 + - certificates_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: batch - kind: Job - version: v1 + group: certificates.k8s.io + kind: ClusterTrustBundle + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -42436,73 +49797,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/batch/v1/watch/cronjobs: {} - /apis/batch/v1/watch/jobs: {} - /apis/batch/v1/watch/namespaces/{namespace}/cronjobs: {} - /apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}: {} - /apis/batch/v1/watch/namespaces/{namespace}/jobs: {} - /apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}: {} - /apis/certificates.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIGroup" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - certificates - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/certificates.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - certificates_v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/certificates.k8s.io/v1/certificatesigningrequests: + /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests: delete: - description: delete collection of CertificateSigningRequest - operationId: deleteCollectionCertificateSigningRequest + description: delete collection of PodCertificateRequest + operationId: deleteCollectionNamespacedPodCertificateRequest parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -42623,6 +49928,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -42655,12 +49987,12 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1 + - certificates_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: CertificateSigningRequest - version: v1 + kind: PodCertificateRequest + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -42669,9 +50001,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind CertificateSigningRequest - operationId: listCertificateSigningRequest + description: list or watch objects of kind PodCertificateRequest + operationId: listNamespacedPodCertificateRequest parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -42751,6 +50089,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -42768,36 +50133,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequestList" + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequestList" + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequestList" + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequestList" + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequestList" + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequestList" + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequestList" + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 + - certificates_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: CertificateSigningRequest - version: v1 + kind: PodCertificateRequest + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -42807,9 +50172,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a CertificateSigningRequest - operationId: createCertificateSigningRequest + description: create a PodCertificateRequest + operationId: createNamespacedPodCertificateRequest parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -42853,64 +50224,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: Accepted "401": content: {} description: Unauthorized tags: - - certificates_v1 + - certificates_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: CertificateSigningRequest - version: v1 + kind: PodCertificateRequest + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -42918,17 +50289,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}: + /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}: delete: - description: delete a CertificateSigningRequest - operationId: deleteCertificateSigningRequest + description: delete a PodCertificateRequest + operationId: deleteNamespacedPodCertificateRequest parameters: - - description: name of the CertificateSigningRequest + - description: name of the PodCertificateRequest in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -43028,12 +50405,12 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1 + - certificates_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: CertificateSigningRequest - version: v1 + kind: PodCertificateRequest + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -43042,15 +50419,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified CertificateSigningRequest - operationId: readCertificateSigningRequest + description: read the specified PodCertificateRequest + operationId: readNamespacedPodCertificateRequest parameters: - - description: name of the CertificateSigningRequest + - description: name of the PodCertificateRequest in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -43063,42 +50446,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 + - certificates_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: CertificateSigningRequest - version: v1 + kind: PodCertificateRequest + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified CertificateSigningRequest - operationId: patchCertificateSigningRequest + description: partially update the specified PodCertificateRequest + operationId: patchNamespacedPodCertificateRequest parameters: - - description: name of the CertificateSigningRequest + - description: name of the PodCertificateRequest in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -43158,42 +50547,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1 + - certificates_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: CertificateSigningRequest - version: v1 + kind: PodCertificateRequest + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -43202,15 +50591,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified CertificateSigningRequest - operationId: replaceCertificateSigningRequest + description: replace the specified PodCertificateRequest + operationId: replaceNamespacedPodCertificateRequest parameters: - - description: name of the CertificateSigningRequest + - description: name of the PodCertificateRequest in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -43254,49 +50649,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1 + - certificates_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: CertificateSigningRequest - version: v1 + kind: PodCertificateRequest + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -43304,17 +50699,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval: + /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status: get: - description: read approval of the specified CertificateSigningRequest - operationId: readCertificateSigningRequestApproval + description: read status of the specified PodCertificateRequest + operationId: readNamespacedPodCertificateRequestStatus parameters: - - description: name of the CertificateSigningRequest + - description: name of the PodCertificateRequest in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -43327,42 +50728,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 + - certificates_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: CertificateSigningRequest - version: v1 + kind: PodCertificateRequest + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update approval of the specified CertificateSigningRequest - operationId: patchCertificateSigningRequestApproval + description: partially update status of the specified PodCertificateRequest + operationId: patchNamespacedPodCertificateRequestStatus parameters: - - description: name of the CertificateSigningRequest + - description: name of the PodCertificateRequest in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -43422,42 +50829,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1 + - certificates_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: CertificateSigningRequest - version: v1 + kind: PodCertificateRequest + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -43466,15 +50873,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace approval of the specified CertificateSigningRequest - operationId: replaceCertificateSigningRequestApproval + description: replace status of the specified PodCertificateRequest + operationId: replaceNamespacedPodCertificateRequestStatus parameters: - - description: name of the CertificateSigningRequest + - description: name of the PodCertificateRequest in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -43518,49 +50931,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequest" description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1 + - certificates_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: CertificateSigningRequest - version: v1 + kind: PodCertificateRequest + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -43568,17 +50981,49 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status: + /apis/certificates.k8s.io/v1beta1/podcertificaterequests: get: - description: read status of the specified CertificateSigningRequest - operationId: readCertificateSigningRequestStatus + description: list or watch objects of kind PodCertificateRequest + operationId: listPodCertificateRequestForAllNamespaces parameters: - - description: name of the CertificateSigningRequest - in: path - name: name - required: true + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector schema: type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -43586,159 +51031,226 @@ paths: name: pretty schema: type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 - x-kubernetes-action: get + - certificates_v1beta1 + x-kubernetes-action: list x-kubernetes-group-version-kind: group: certificates.k8s.io - kind: CertificateSigningRequest - version: v1 + kind: PodCertificateRequest + version: v1beta1 x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - patch: - description: partially update status of the specified CertificateSigningRequest - operationId: patchCertificateSigningRequestStatus - parameters: - - description: name of the CertificateSigningRequest - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Patch" - required: true + /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles: {} + /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}: {} + /apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests: {} + /apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests/{name}: {} + /apis/certificates.k8s.io/v1beta1/watch/podcertificaterequests: {} + /apis/coordination.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" - application/cbor: - schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1.APIGroup" description: OK - "201": + "401": + content: {} + description: Unauthorized + tags: + - coordination + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/coordination.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" - description: Created + $ref: "#/components/schemas/v1.APIResourceList" + description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json + - coordination_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace status of the specified CertificateSigningRequest - operationId: replaceCertificateSigningRequestStatus + /apis/coordination.k8s.io/v1/leases: + get: + description: list or watch objects of kind Lease + operationId: listLeaseForAllNamespaces parameters: - - description: name of the CertificateSigningRequest - in: path - name: name - required: true + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector schema: type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -43746,129 +51258,133 @@ paths: name: pretty schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" + - description: |- + 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 in: query - name: dryRun + name: resourceVersion schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: |- + 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 in: query - name: fieldManager + name: resourceVersionMatch schema: type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: fieldValidation + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector schema: type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" - required: true + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1.LeaseList" application/yaml: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1.LeaseList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" + $ref: "#/components/schemas/v1.LeaseList" application/cbor: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" - application/yaml: + $ref: "#/components/schemas/v1.LeaseList" + application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1.LeaseList" + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" - application/cbor: + $ref: "#/components/schemas/v1.LeaseList" + application/cbor-seq: schema: - $ref: "#/components/schemas/v1.CertificateSigningRequest" - description: Created + $ref: "#/components/schemas/v1.LeaseList" + description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1 - x-kubernetes-action: put + - coordination_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: CertificateSigningRequest + group: coordination.k8s.io + kind: Lease version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/certificates.k8s.io/v1/watch/certificatesigningrequests: {} - /apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}: {} - /apis/certificates.k8s.io/v1alpha1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - certificates_v1alpha1 x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/certificates.k8s.io/v1alpha1/clustertrustbundles: + /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases: delete: - description: delete collection of ClusterTrustBundle - operationId: deleteCollectionClusterTrustBundle + description: delete collection of Lease + operationId: deleteCollectionNamespacedLease parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -43989,6 +51505,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -44021,12 +51564,12 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - coordination_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + group: coordination.k8s.io + kind: Lease + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -44035,9 +51578,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ClusterTrustBundle - operationId: listClusterTrustBundle + description: list or watch objects of kind Lease + operationId: listNamespacedLease parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -44117,6 +51666,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -44134,36 +51710,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.LeaseList" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.LeaseList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.LeaseList" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.LeaseList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.LeaseList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.LeaseList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1.LeaseList" description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - coordination_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + group: coordination.k8s.io + kind: Lease + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -44173,9 +51749,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ClusterTrustBundle - operationId: createClusterTrustBundle + description: create a Lease + operationId: createNamespacedLease parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -44219,64 +51801,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" description: Accepted "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - coordination_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + group: coordination.k8s.io + kind: Lease + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -44284,17 +51866,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}: + /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}: delete: - description: delete a ClusterTrustBundle - operationId: deleteClusterTrustBundle + description: delete a Lease + operationId: deleteNamespacedLease parameters: - - description: name of the ClusterTrustBundle + - description: name of the Lease in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -44394,12 +51982,12 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - coordination_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + group: coordination.k8s.io + kind: Lease + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -44408,15 +51996,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ClusterTrustBundle - operationId: readClusterTrustBundle + description: read the specified Lease + operationId: readNamespacedLease parameters: - - description: name of the ClusterTrustBundle + - description: name of the Lease in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -44429,42 +52023,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - coordination_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + group: coordination.k8s.io + kind: Lease + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ClusterTrustBundle - operationId: patchClusterTrustBundle + description: partially update the specified Lease + operationId: patchNamespacedLease parameters: - - description: name of the ClusterTrustBundle + - description: name of the Lease in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -44524,42 +52124,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - coordination_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + group: coordination.k8s.io + kind: Lease + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -44568,15 +52168,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ClusterTrustBundle - operationId: replaceClusterTrustBundle + description: replace the specified Lease + operationId: replaceNamespacedLease parameters: - - description: name of the ClusterTrustBundle + - description: name of the Lease in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -44620,49 +52226,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.ClusterTrustBundle" + $ref: "#/components/schemas/v1.Lease" description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1alpha1 + - coordination_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1alpha1 + group: coordination.k8s.io + kind: Lease + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -44670,9 +52276,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles: {} - /apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles/{name}: {} - /apis/certificates.k8s.io/v1beta1/: + /apis/coordination.k8s.io/v1/watch/leases: {} + /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases: {} + /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}: {} + /apis/coordination.k8s.io/v1alpha2/: get: description: get available resources operationId: getAPIResources @@ -44696,17 +52303,189 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1beta1 + - coordination_v1alpha2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1beta1/clustertrustbundles: + /apis/coordination.k8s.io/v1alpha2/leasecandidates: + get: + description: list or watch objects of kind LeaseCandidate + operationId: listLeaseCandidateForAllNamespaces + parameters: + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - coordination_v1alpha2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates: delete: - description: delete collection of ClusterTrustBundle - operationId: deleteCollectionClusterTrustBundle + description: delete collection of LeaseCandidate + operationId: deleteCollectionNamespacedLeaseCandidate parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -44827,6 +52606,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -44859,12 +52665,12 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1beta1 + - coordination_v1alpha2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -44873,9 +52679,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ClusterTrustBundle - operationId: listClusterTrustBundle + description: list or watch objects of kind LeaseCandidate + operationId: listNamespacedLeaseCandidate parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -44955,6 +52767,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -44972,36 +52811,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundleList" + $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - coordination_v1alpha2 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-accepts: - application/cbor - application/cbor-seq @@ -45011,9 +52850,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ClusterTrustBundle - operationId: createClusterTrustBundle + description: create a LeaseCandidate + operationId: createNamespacedLeaseCandidate parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -45057,64 +52902,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: Accepted "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - coordination_v1alpha2 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -45122,17 +52967,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}: + /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}: delete: - description: delete a ClusterTrustBundle - operationId: deleteClusterTrustBundle + description: delete a LeaseCandidate + operationId: deleteNamespacedLeaseCandidate parameters: - - description: name of the ClusterTrustBundle + - description: name of the LeaseCandidate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -45232,12 +53083,12 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1beta1 + - coordination_v1alpha2 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -45246,15 +53097,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ClusterTrustBundle - operationId: readClusterTrustBundle + description: read the specified LeaseCandidate + operationId: readNamespacedLeaseCandidate parameters: - - description: name of the ClusterTrustBundle + - description: name of the LeaseCandidate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -45267,42 +53124,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - coordination_v1alpha2 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ClusterTrustBundle - operationId: patchClusterTrustBundle + description: partially update the specified LeaseCandidate + operationId: patchNamespacedLeaseCandidate parameters: - - description: name of the ClusterTrustBundle + - description: name of the LeaseCandidate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -45362,42 +53225,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - coordination_v1alpha2 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -45406,15 +53269,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ClusterTrustBundle - operationId: replaceClusterTrustBundle + description: replace the specified LeaseCandidate + operationId: replaceNamespacedLeaseCandidate parameters: - - description: name of the ClusterTrustBundle + - description: name of the LeaseCandidate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -45458,49 +53327,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ClusterTrustBundle" + $ref: "#/components/schemas/v1alpha2.LeaseCandidate" description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - coordination_v1alpha2 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: ClusterTrustBundle - version: v1beta1 + group: coordination.k8s.io + kind: LeaseCandidate + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -45508,10 +53377,209 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests: + /apis/coordination.k8s.io/v1alpha2/watch/leasecandidates: {} + /apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates: {} + /apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates/{name}: {} + /apis/coordination.k8s.io/v1beta1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - coordination_v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/coordination.k8s.io/v1beta1/leasecandidates: + get: + description: list or watch objects of kind LeaseCandidate + operationId: listLeaseCandidateForAllNamespaces + parameters: + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - coordination_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: coordination.k8s.io + kind: LeaseCandidate + version: v1beta1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates: delete: - description: delete collection of PodCertificateRequest - operationId: deleteCollectionNamespacedPodCertificateRequest + description: delete collection of LeaseCandidate + operationId: deleteCollectionNamespacedLeaseCandidate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -45639,6 +53707,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -45671,11 +53766,11 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1beta1 + - coordination_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: PodCertificateRequest + group: coordination.k8s.io + kind: LeaseCandidate version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -45685,8 +53780,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PodCertificateRequest - operationId: listNamespacedPodCertificateRequest + description: list or watch objects of kind LeaseCandidate + operationId: listNamespacedLeaseCandidate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -45773,6 +53868,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -45790,35 +53912,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" + $ref: "#/components/schemas/v1beta1.LeaseCandidateList" description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - coordination_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: PodCertificateRequest + group: coordination.k8s.io + kind: LeaseCandidate version: v1beta1 x-accepts: - application/cbor @@ -45829,8 +53951,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PodCertificateRequest - operationId: createNamespacedPodCertificateRequest + description: create a LeaseCandidate + operationId: createNamespacedLeaseCandidate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -45881,63 +54003,63 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: Accepted "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - coordination_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: PodCertificateRequest + group: coordination.k8s.io + kind: LeaseCandidate version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -45946,12 +54068,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}: + /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}: delete: - description: delete a PodCertificateRequest - operationId: deleteNamespacedPodCertificateRequest + description: delete a LeaseCandidate + operationId: deleteNamespacedLeaseCandidate parameters: - - description: name of the PodCertificateRequest + - description: name of the LeaseCandidate in: path name: name required: true @@ -46062,292 +54184,11 @@ paths: content: {} description: Unauthorized tags: - - certificates_v1beta1 + - coordination_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: PodCertificateRequest - version: v1beta1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: read the specified PodCertificateRequest - operationId: readNamespacedPodCertificateRequest - parameters: - - description: name of the PodCertificateRequest - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - certificates_v1beta1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: PodCertificateRequest - version: v1beta1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update the specified PodCertificateRequest - operationId: patchNamespacedPodCertificateRequest - parameters: - - description: name of the PodCertificateRequest - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Patch" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - certificates_v1beta1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: PodCertificateRequest - version: v1beta1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace the specified PodCertificateRequest - operationId: replaceNamespacedPodCertificateRequest - parameters: - - description: name of the PodCertificateRequest - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - certificates_v1beta1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: PodCertificateRequest + group: coordination.k8s.io + kind: LeaseCandidate version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -46356,12 +54197,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status: get: - description: read status of the specified PodCertificateRequest - operationId: readNamespacedPodCertificateRequestStatus + description: read the specified LeaseCandidate + operationId: readNamespacedLeaseCandidate parameters: - - description: name of the PodCertificateRequest + - description: name of the LeaseCandidate in: path name: name required: true @@ -46385,26 +54225,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: OK "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - coordination_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: PodCertificateRequest + group: coordination.k8s.io + kind: LeaseCandidate version: v1beta1 x-accepts: - application/cbor @@ -46412,10 +54252,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified PodCertificateRequest - operationId: patchNamespacedPodCertificateRequestStatus + description: partially update the specified LeaseCandidate + operationId: patchNamespacedLeaseCandidate parameters: - - description: name of the PodCertificateRequest + - description: name of the LeaseCandidate in: path name: name required: true @@ -46486,41 +54326,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - coordination_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: PodCertificateRequest + group: coordination.k8s.io + kind: LeaseCandidate version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -46530,10 +54370,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified PodCertificateRequest - operationId: replaceNamespacedPodCertificateRequestStatus + description: replace the specified LeaseCandidate + operationId: replaceNamespacedLeaseCandidate parameters: - - description: name of the PodCertificateRequest + - description: name of the LeaseCandidate in: path name: name required: true @@ -46588,48 +54428,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequest" + $ref: "#/components/schemas/v1beta1.LeaseCandidate" description: Created "401": content: {} description: Unauthorized tags: - - certificates_v1beta1 + - coordination_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: PodCertificateRequest + group: coordination.k8s.io + kind: LeaseCandidate version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -46638,151 +54478,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/certificates.k8s.io/v1beta1/podcertificaterequests: - get: - description: list or watch objects of kind PodCertificateRequest - operationId: listPodCertificateRequestForAllNamespaces - parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" - application/json;stream=watch: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" - application/cbor-seq: - schema: - $ref: "#/components/schemas/v1beta1.PodCertificateRequestList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - certificates_v1beta1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: certificates.k8s.io - kind: PodCertificateRequest - version: v1beta1 - x-accepts: - - application/cbor - - application/cbor-seq - - application/json - - application/json;stream=watch - - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - - application/yaml - /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles: {} - /apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}: {} - /apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests: {} - /apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests/{name}: {} - /apis/certificates.k8s.io/v1beta1/watch/podcertificaterequests: {} - /apis/coordination.k8s.io/: + /apis/coordination.k8s.io/v1beta1/watch/leasecandidates: {} + /apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates: {} + /apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates/{name}: {} + /apis/discovery.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -46803,12 +54502,12 @@ paths: content: {} description: Unauthorized tags: - - coordination + - discovery x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1/: + /apis/discovery.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -46832,16 +54531,16 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1 + - discovery_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1/leases: + /apis/discovery.k8s.io/v1/endpointslices: get: - description: list or watch objects of kind Lease - operationId: listLeaseForAllNamespaces + description: list or watch objects of kind EndpointSlice + operationId: listEndpointSliceForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -46922,6 +54621,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -46939,35 +54665,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.LeaseList" + $ref: "#/components/schemas/v1.EndpointSliceList" application/yaml: schema: - $ref: "#/components/schemas/v1.LeaseList" + $ref: "#/components/schemas/v1.EndpointSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.LeaseList" + $ref: "#/components/schemas/v1.EndpointSliceList" application/cbor: schema: - $ref: "#/components/schemas/v1.LeaseList" + $ref: "#/components/schemas/v1.EndpointSliceList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.LeaseList" + $ref: "#/components/schemas/v1.EndpointSliceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.LeaseList" + $ref: "#/components/schemas/v1.EndpointSliceList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.LeaseList" + $ref: "#/components/schemas/v1.EndpointSliceList" description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - discovery_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-accepts: - application/cbor @@ -46977,10 +54703,10 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases: + /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices: delete: - description: delete collection of Lease - operationId: deleteCollectionNamespacedLease + description: delete collection of EndpointSlice + operationId: deleteCollectionNamespacedEndpointSlice parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -47108,6 +54834,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -47140,11 +54893,11 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1 + - discovery_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -47154,8 +54907,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Lease - operationId: listNamespacedLease + description: list or watch objects of kind EndpointSlice + operationId: listNamespacedEndpointSlice parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -47242,6 +54995,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -47259,35 +55039,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.LeaseList" + $ref: "#/components/schemas/v1.EndpointSliceList" application/yaml: schema: - $ref: "#/components/schemas/v1.LeaseList" + $ref: "#/components/schemas/v1.EndpointSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.LeaseList" + $ref: "#/components/schemas/v1.EndpointSliceList" application/cbor: schema: - $ref: "#/components/schemas/v1.LeaseList" + $ref: "#/components/schemas/v1.EndpointSliceList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.LeaseList" + $ref: "#/components/schemas/v1.EndpointSliceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.LeaseList" + $ref: "#/components/schemas/v1.EndpointSliceList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.LeaseList" + $ref: "#/components/schemas/v1.EndpointSliceList" description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - discovery_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-accepts: - application/cbor @@ -47298,8 +55078,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a Lease - operationId: createNamespacedLease + description: create an EndpointSlice + operationId: createNamespacedEndpointSlice parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -47350,63 +55130,63 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" description: Accepted "401": content: {} description: Unauthorized tags: - - coordination_v1 + - discovery_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -47415,12 +55195,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}: + /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}: delete: - description: delete a Lease - operationId: deleteNamespacedLease + description: delete an EndpointSlice + operationId: deleteNamespacedEndpointSlice parameters: - - description: name of the Lease + - description: name of the EndpointSlice in: path name: name required: true @@ -47531,11 +55311,11 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1 + - discovery_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -47545,10 +55325,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified Lease - operationId: readNamespacedLease + description: read the specified EndpointSlice + operationId: readNamespacedEndpointSlice parameters: - - description: name of the Lease + - description: name of the EndpointSlice in: path name: name required: true @@ -47572,26 +55352,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1 + - discovery_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-accepts: - application/cbor @@ -47599,10 +55379,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified Lease - operationId: patchNamespacedLease + description: partially update the specified EndpointSlice + operationId: patchNamespacedEndpointSlice parameters: - - description: name of the Lease + - description: name of the EndpointSlice in: path name: name required: true @@ -47673,41 +55453,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1 + - discovery_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -47717,10 +55497,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Lease - operationId: replaceNamespacedLease + description: replace the specified EndpointSlice + operationId: replaceNamespacedEndpointSlice parameters: - - description: name of the Lease + - description: name of the EndpointSlice in: path name: name required: true @@ -47775,48 +55555,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.Lease" + $ref: "#/components/schemas/v1.EndpointSlice" description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1 + - discovery_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: Lease + group: discovery.k8s.io + kind: EndpointSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -47825,10 +55605,36 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1/watch/leases: {} - /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases: {} - /apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}: {} - /apis/coordination.k8s.io/v1alpha2/: + /apis/discovery.k8s.io/v1/watch/endpointslices: {} + /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices: {} + /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}: {} + /apis/events.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - events + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/events.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -47852,16 +55658,16 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - events_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1alpha2/leasecandidates: + /apis/events.k8s.io/v1/events: get: - description: list or watch objects of kind LeaseCandidate - operationId: listLeaseCandidateForAllNamespaces + description: list or watch objects of kind Event + operationId: listEventForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -47942,6 +55748,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -47959,36 +55792,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + $ref: "#/components/schemas/events.v1.EventList" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + $ref: "#/components/schemas/events.v1.EventList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + $ref: "#/components/schemas/events.v1.EventList" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + $ref: "#/components/schemas/events.v1.EventList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + $ref: "#/components/schemas/events.v1.EventList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + $ref: "#/components/schemas/events.v1.EventList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + $ref: "#/components/schemas/events.v1.EventList" description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - events_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + group: events.k8s.io + kind: Event + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -47997,10 +55830,10 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates: + /apis/events.k8s.io/v1/namespaces/{namespace}/events: delete: - description: delete collection of LeaseCandidate - operationId: deleteCollectionNamespacedLeaseCandidate + description: delete collection of Event + operationId: deleteCollectionNamespacedEvent parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -48128,6 +55961,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -48160,12 +56020,12 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - events_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + group: events.k8s.io + kind: Event + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48174,8 +56034,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind LeaseCandidate - operationId: listNamespacedLeaseCandidate + description: list or watch objects of kind Event + operationId: listNamespacedEvent parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -48262,6 +56122,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -48279,36 +56166,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + $ref: "#/components/schemas/events.v1.EventList" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + $ref: "#/components/schemas/events.v1.EventList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + $ref: "#/components/schemas/events.v1.EventList" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + $ref: "#/components/schemas/events.v1.EventList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + $ref: "#/components/schemas/events.v1.EventList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + $ref: "#/components/schemas/events.v1.EventList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidateList" + $ref: "#/components/schemas/events.v1.EventList" description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - events_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + group: events.k8s.io + kind: Event + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -48318,8 +56205,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a LeaseCandidate - operationId: createNamespacedLeaseCandidate + description: create an Event + operationId: createNamespacedEvent parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -48370,64 +56257,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" description: Accepted "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - events_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + group: events.k8s.io + kind: Event + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48435,12 +56322,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}: + /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}: delete: - description: delete a LeaseCandidate - operationId: deleteNamespacedLeaseCandidate + description: delete an Event + operationId: deleteNamespacedEvent parameters: - - description: name of the LeaseCandidate + - description: name of the Event in: path name: name required: true @@ -48551,12 +56438,12 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - events_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + group: events.k8s.io + kind: Event + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48565,10 +56452,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified LeaseCandidate - operationId: readNamespacedLeaseCandidate + description: read the specified Event + operationId: readNamespacedEvent parameters: - - description: name of the LeaseCandidate + - description: name of the Event in: path name: name required: true @@ -48592,37 +56479,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - events_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + group: events.k8s.io + kind: Event + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified LeaseCandidate - operationId: patchNamespacedLeaseCandidate + description: partially update the specified Event + operationId: patchNamespacedEvent parameters: - - description: name of the LeaseCandidate + - description: name of the Event in: path name: name required: true @@ -48693,42 +56580,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - events_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + group: events.k8s.io + kind: Event + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48737,10 +56624,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified LeaseCandidate - operationId: replaceNamespacedLeaseCandidate + description: replace the specified Event + operationId: replaceNamespacedEvent parameters: - - description: name of the LeaseCandidate + - description: name of the Event in: path name: name required: true @@ -48795,49 +56682,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/yaml: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" application/cbor: schema: - $ref: "#/components/schemas/v1alpha2.LeaseCandidate" + $ref: "#/components/schemas/events.v1.Event" description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1alpha2 + - events_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1alpha2 + group: events.k8s.io + kind: Event + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -48845,189 +56732,70 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1alpha2/watch/leasecandidates: {} - /apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates: {} - /apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates/{name}: {} - /apis/coordination.k8s.io/v1beta1/: + /apis/events.k8s.io/v1/watch/events: {} + /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events: {} + /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}: {} + /apis/flowcontrol.apiserver.k8s.io/: get: - description: get available resources - operationId: getAPIResources + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1beta1 + - flowcontrolApiserver x-accepts: - - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1beta1/leasecandidates: + /apis/flowcontrol.apiserver.k8s.io/v1/: get: - description: list or watch objects of kind LeaseCandidate - operationId: listLeaseCandidateForAllNamespaces - parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidateList" - application/json;stream=watch: - schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidateList" - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidateList" - application/cbor-seq: - schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1beta1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1beta1 + - flowcontrolApiserver_v1 x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates: + /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas: delete: - description: delete collection of LeaseCandidate - operationId: deleteCollectionNamespacedLeaseCandidate + description: delete collection of FlowSchema + operationId: deleteCollectionFlowSchema parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -49148,6 +56916,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -49180,12 +56975,12 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1beta1 + - flowcontrolApiserver_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49194,15 +56989,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind LeaseCandidate - operationId: listNamespacedLeaseCandidate + description: list or watch objects of kind FlowSchema + operationId: listFlowSchema parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -49282,6 +57071,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -49299,36 +57115,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + $ref: "#/components/schemas/v1.FlowSchemaList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + $ref: "#/components/schemas/v1.FlowSchemaList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + $ref: "#/components/schemas/v1.FlowSchemaList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + $ref: "#/components/schemas/v1.FlowSchemaList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + $ref: "#/components/schemas/v1.FlowSchemaList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + $ref: "#/components/schemas/v1.FlowSchemaList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidateList" + $ref: "#/components/schemas/v1.FlowSchemaList" description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1beta1 + - flowcontrolApiserver_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -49338,15 +57154,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a LeaseCandidate - operationId: createNamespacedLeaseCandidate + description: create a FlowSchema + operationId: createFlowSchema parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -49390,64 +57200,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" description: Accepted "401": content: {} description: Unauthorized tags: - - coordination_v1beta1 + - flowcontrolApiserver_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49455,23 +57265,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}: + /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}: delete: - description: delete a LeaseCandidate - operationId: deleteNamespacedLeaseCandidate + description: delete a FlowSchema + operationId: deleteFlowSchema parameters: - - description: name of the LeaseCandidate + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -49571,12 +57375,12 @@ paths: content: {} description: Unauthorized tags: - - coordination_v1beta1 + - flowcontrolApiserver_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49585,21 +57389,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified LeaseCandidate - operationId: readNamespacedLeaseCandidate + description: read the specified FlowSchema + operationId: readFlowSchema parameters: - - description: name of the LeaseCandidate + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -49612,48 +57410,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" description: OK "401": content: {} description: Unauthorized tags: - - coordination_v1beta1 + - flowcontrolApiserver_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified LeaseCandidate - operationId: patchNamespacedLeaseCandidate + description: partially update the specified FlowSchema + operationId: patchFlowSchema parameters: - - description: name of the LeaseCandidate + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -49713,42 +57505,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1beta1 + - flowcontrolApiserver_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49757,21 +57549,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified LeaseCandidate - operationId: replaceNamespacedLeaseCandidate + description: replace the specified FlowSchema + operationId: replaceFlowSchema parameters: - - description: name of the LeaseCandidate + - description: name of the FlowSchema in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -49815,49 +57601,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.LeaseCandidate" + $ref: "#/components/schemas/v1.FlowSchema" description: Created "401": content: {} description: Unauthorized tags: - - coordination_v1beta1 + - flowcontrolApiserver_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: coordination.k8s.io - kind: LeaseCandidate - version: v1beta1 + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -49865,108 +57651,177 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/coordination.k8s.io/v1beta1/watch/leasecandidates: {} - /apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates: {} - /apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates/{name}: {} - /apis/discovery.k8s.io/: + /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status: get: - description: get information of a group - operationId: getAPIGroup + description: read status of the specified FlowSchema + operationId: readFlowSchemaStatus + parameters: + - description: name of the FlowSchema + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.APIGroup" + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: "#/components/schemas/v1.APIGroup" + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIGroup" + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" description: OK "401": content: {} description: Unauthorized tags: - - discovery + - flowcontrolApiserver_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/discovery.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources + patch: + description: partially update status of the specified FlowSchema + operationId: patchFlowSchemaStatus + parameters: + - description: name of the FlowSchema + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.FlowSchema" description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.FlowSchema" + application/yaml: + schema: + $ref: "#/components/schemas/v1.FlowSchema" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" + description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/discovery.k8s.io/v1/endpointslices: - get: - description: list or watch objects of kind EndpointSlice - operationId: listEndpointSliceForAllNamespaces + put: + description: replace status of the specified FlowSchema + operationId: replaceFlowSchemaStatus parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + - description: name of the FlowSchema + in: path + name: name + required: true schema: type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -49974,106 +57829,97 @@ paths: name: pretty schema: type: string - - description: |- - 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 - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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 + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersionMatch + name: dryRun schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: watch + name: fieldValidation schema: - type: boolean + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.FlowSchema" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.EndpointSliceList" + $ref: "#/components/schemas/v1.FlowSchema" application/yaml: schema: - $ref: "#/components/schemas/v1.EndpointSliceList" + $ref: "#/components/schemas/v1.FlowSchema" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.EndpointSliceList" + $ref: "#/components/schemas/v1.FlowSchema" application/cbor: schema: - $ref: "#/components/schemas/v1.EndpointSliceList" - application/json;stream=watch: + $ref: "#/components/schemas/v1.FlowSchema" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/v1.EndpointSliceList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/v1.FlowSchema" + application/yaml: schema: - $ref: "#/components/schemas/v1.EndpointSliceList" - application/cbor-seq: + $ref: "#/components/schemas/v1.FlowSchema" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.EndpointSliceList" - description: OK + $ref: "#/components/schemas/v1.FlowSchema" + application/cbor: + schema: + $ref: "#/components/schemas/v1.FlowSchema" + description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 - x-kubernetes-action: list + - flowcontrolApiserver_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: flowcontrol.apiserver.k8s.io + kind: FlowSchema version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices: + /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations: delete: - description: delete collection of EndpointSlice - operationId: deleteCollectionNamespacedEndpointSlice + description: delete collection of PriorityLevelConfiguration + operationId: deleteCollectionPriorityLevelConfiguration parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -50194,6 +58040,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -50226,11 +58099,11 @@ paths: content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -50240,15 +58113,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind EndpointSlice - operationId: listNamespacedEndpointSlice + description: list or watch objects of kind PriorityLevelConfiguration + operationId: listPriorityLevelConfiguration parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -50328,6 +58195,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -50345,35 +58239,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.EndpointSliceList" + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/yaml: schema: - $ref: "#/components/schemas/v1.EndpointSliceList" + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.EndpointSliceList" + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/cbor: schema: - $ref: "#/components/schemas/v1.EndpointSliceList" + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.EndpointSliceList" + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.EndpointSliceList" + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.EndpointSliceList" + $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-accepts: - application/cbor @@ -50384,15 +58278,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an EndpointSlice - operationId: createNamespacedEndpointSlice + description: create a PriorityLevelConfiguration + operationId: createPriorityLevelConfiguration parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -50436,63 +58324,63 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Accepted "401": content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -50501,23 +58389,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}: + /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}: delete: - description: delete an EndpointSlice - operationId: deleteNamespacedEndpointSlice + description: delete a PriorityLevelConfiguration + operationId: deletePriorityLevelConfiguration parameters: - - description: name of the EndpointSlice + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -50617,11 +58499,11 @@ paths: content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -50631,21 +58513,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified EndpointSlice - operationId: readNamespacedEndpointSlice + description: read the specified PriorityLevelConfiguration + operationId: readPriorityLevelConfiguration parameters: - - description: name of the EndpointSlice + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -50658,26 +58534,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "401": content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-accepts: - application/cbor @@ -50685,21 +58561,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified EndpointSlice - operationId: patchNamespacedEndpointSlice + description: partially update the specified PriorityLevelConfiguration + operationId: patchPriorityLevelConfiguration parameters: - - description: name of the EndpointSlice + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -50759,41 +58629,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -50803,21 +58673,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified EndpointSlice - operationId: replaceNamespacedEndpointSlice + description: replace the specified PriorityLevelConfiguration + operationId: replacePriorityLevelConfiguration parameters: - - description: name of the EndpointSlice + - description: name of the PriorityLevelConfiguration in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -50861,48 +58725,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.EndpointSlice" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: Created "401": content: {} description: Unauthorized tags: - - discovery_v1 + - flowcontrolApiserver_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: discovery.k8s.io - kind: EndpointSlice + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -50911,108 +58775,177 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/discovery.k8s.io/v1/watch/endpointslices: {} - /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices: {} - /apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}: {} - /apis/events.k8s.io/: + /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status: get: - description: get information of a group - operationId: getAPIGroup + description: read status of the specified PriorityLevelConfiguration + operationId: readPriorityLevelConfigurationStatus + parameters: + - description: name of the PriorityLevelConfiguration + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.APIGroup" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.APIGroup" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIGroup" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK "401": content: {} description: Unauthorized tags: - - events + - flowcontrolApiserver_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 x-accepts: + - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/events.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources + patch: + description: partially update status of the specified PriorityLevelConfiguration + operationId: patchPriorityLevelConfigurationStatus + parameters: + - description: name of the PriorityLevelConfiguration + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + description: Created "401": content: {} description: Unauthorized tags: - - events_v1 + - flowcontrolApiserver_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/events.k8s.io/v1/events: - get: - description: list or watch objects of kind Event - operationId: listEventForAllNamespaces + put: + description: replace status of the specified PriorityLevelConfiguration + operationId: replacePriorityLevelConfigurationStatus parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + - description: name of the PriorityLevelConfiguration + in: path + name: name + required: true schema: type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51020,106 +58953,157 @@ paths: name: pretty schema: type: string - - description: |- - 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 + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - 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 + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: watch + name: fieldValidation schema: - type: boolean + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/events.v1.EventList" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/yaml: schema: - $ref: "#/components/schemas/events.v1.EventList" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/events.v1.EventList" + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" application/cbor: schema: - $ref: "#/components/schemas/events.v1.EventList" - application/json;stream=watch: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/events.v1.EventList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/yaml: schema: - $ref: "#/components/schemas/events.v1.EventList" - application/cbor-seq: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/events.v1.EventList" - description: OK + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + description: Created "401": content: {} description: Unauthorized tags: - - events_v1 - x-kubernetes-action: list + - flowcontrolApiserver_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event + group: flowcontrol.apiserver.k8s.io + kind: PriorityLevelConfiguration version: v1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/events.k8s.io/v1/namespaces/{namespace}/events: + /apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas: {} + /apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}: {} + /apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations: {} + /apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}: {} + /apis/internal.apiserver.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - internalApiserver + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/internal.apiserver.k8s.io/v1alpha1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - internalApiserver_v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions: delete: - description: delete collection of Event - operationId: deleteCollectionNamespacedEvent + description: delete collection of StorageVersion + operationId: deleteCollectionStorageVersion parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51240,6 +59224,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -51272,12 +59283,12 @@ paths: content: {} description: Unauthorized tags: - - events_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -51286,15 +59297,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Event - operationId: listNamespacedEvent + description: list or watch objects of kind StorageVersion + operationId: listStorageVersion parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51374,6 +59379,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -51391,36 +59423,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/events.v1.EventList" + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/yaml: schema: - $ref: "#/components/schemas/events.v1.EventList" + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/events.v1.EventList" + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/cbor: schema: - $ref: "#/components/schemas/events.v1.EventList" + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/json;stream=watch: schema: - $ref: "#/components/schemas/events.v1.EventList" + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/events.v1.EventList" + $ref: "#/components/schemas/v1alpha1.StorageVersionList" application/cbor-seq: schema: - $ref: "#/components/schemas/events.v1.EventList" + $ref: "#/components/schemas/v1alpha1.StorageVersionList" description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-accepts: - application/cbor - application/cbor-seq @@ -51430,15 +59462,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an Event - operationId: createNamespacedEvent + description: create a StorageVersion + operationId: createStorageVersion parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51482,64 +59508,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: Accepted "401": content: {} description: Unauthorized tags: - - events_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -51547,23 +59573,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}: + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}: delete: - description: delete an Event - operationId: deleteNamespacedEvent + description: delete a StorageVersion + operationId: deleteStorageVersion parameters: - - description: name of the Event + - description: name of the StorageVersion in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51600,75 +59620,338 @@ paths: \ doing. The default value is false, and the user must opt in to enable\ \ it" in: query - name: ignoreStoreReadErrorWithClusterBreakingPotential + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: OK + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - internalApiserver_v1alpha1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified StorageVersion + operationId: readStorageVersion + parameters: + - description: name of the StorageVersion + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - internalApiserver_v1alpha1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified StorageVersion + operationId: patchStorageVersion + parameters: + - description: name of the StorageVersion + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha1.StorageVersion" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - internalApiserver_v1alpha1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified StorageVersion + operationId: replaceStorageVersion + parameters: + - description: name of the StorageVersion + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty schema: - type: boolean - - description: "Deprecated: please use the PropagationPolicy, this field will\ - \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ - \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ - \ list. Either this field or PropagationPolicy may be set, but not both." + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: orphanDependents + name: dryRun schema: - type: boolean - - description: "Whether and how garbage collection will be performed. Either\ - \ this field or OrphanDependents may be set, but not both. The default policy\ - \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy. Acceptable values are: 'Orphan'\ - \ - orphan the dependents; 'Background' - allow the garbage collector to\ - \ delete the dependents in the background; 'Foreground' - a cascading policy\ - \ that deletes all dependents in the foreground." + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: propagationPolicy + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation schema: type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.DeleteOptions" - required: false + $ref: "#/components/schemas/v1alpha1.StorageVersion" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK - "202": + "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" - description: Accepted + $ref: "#/components/schemas/v1alpha1.StorageVersion" + description: Created "401": content: {} description: Unauthorized tags: - - events_v1 - x-kubernetes-action: delete + - internalApiserver_v1alpha1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -51676,22 +59959,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml + /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status: get: - description: read the specified Event - operationId: readNamespacedEvent + description: read status of the specified StorageVersion + operationId: readStorageVersionStatus parameters: - - description: name of the Event + - description: name of the StorageVersion in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51704,48 +59982,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK "401": content: {} description: Unauthorized tags: - - events_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified Event - operationId: patchNamespacedEvent + description: partially update status of the specified StorageVersion + operationId: patchStorageVersionStatus parameters: - - description: name of the Event + - description: name of the StorageVersion in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51805,42 +60077,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: Created "401": content: {} description: Unauthorized tags: - - events_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -51849,21 +60121,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Event - operationId: replaceNamespacedEvent + description: replace status of the specified StorageVersion + operationId: replaceStorageVersionStatus parameters: - - description: name of the Event + - description: name of the StorageVersion in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -51907,49 +60173,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/yaml: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" application/cbor: schema: - $ref: "#/components/schemas/events.v1.Event" + $ref: "#/components/schemas/v1alpha1.StorageVersion" description: Created "401": content: {} description: Unauthorized tags: - - events_v1 + - internalApiserver_v1alpha1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: events.k8s.io - kind: Event - version: v1 + group: internal.apiserver.k8s.io + kind: StorageVersion + version: v1alpha1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -51957,10 +60223,9 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/events.k8s.io/v1/watch/events: {} - /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events: {} - /apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}: {} - /apis/flowcontrol.apiserver.k8s.io/: + /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions: {} + /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}: {} + /apis/networking.k8s.io/: get: description: get information of a group operationId: getAPIGroup @@ -51981,12 +60246,12 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver + - networking x-accepts: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/: + /apis/networking.k8s.io/v1/: get: description: get available resources operationId: getAPIResources @@ -52010,16 +60275,16 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - networking_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas: + /apis/networking.k8s.io/v1/ingressclasses: delete: - description: delete collection of FlowSchema - operationId: deleteCollectionFlowSchema + description: delete collection of IngressClass + operationId: deleteCollectionIngressClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -52141,6 +60406,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -52173,11 +60465,11 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - networking_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: networking.k8s.io + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -52187,8 +60479,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind FlowSchema - operationId: listFlowSchema + description: list or watch objects of kind IngressClass + operationId: listIngressClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -52269,6 +60561,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -52286,35 +60605,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.FlowSchemaList" + $ref: "#/components/schemas/v1.IngressClassList" application/yaml: schema: - $ref: "#/components/schemas/v1.FlowSchemaList" + $ref: "#/components/schemas/v1.IngressClassList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.FlowSchemaList" + $ref: "#/components/schemas/v1.IngressClassList" application/cbor: schema: - $ref: "#/components/schemas/v1.FlowSchemaList" + $ref: "#/components/schemas/v1.IngressClassList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.FlowSchemaList" + $ref: "#/components/schemas/v1.IngressClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.FlowSchemaList" + $ref: "#/components/schemas/v1.IngressClassList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.FlowSchemaList" + $ref: "#/components/schemas/v1.IngressClassList" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - networking_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: networking.k8s.io + kind: IngressClass version: v1 x-accepts: - application/cbor @@ -52325,8 +60644,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a FlowSchema - operationId: createFlowSchema + description: create an IngressClass + operationId: createIngressClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -52371,63 +60690,63 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - networking_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: networking.k8s.io + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -52436,12 +60755,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}: + /apis/networking.k8s.io/v1/ingressclasses/{name}: delete: - description: delete a FlowSchema - operationId: deleteFlowSchema + description: delete an IngressClass + operationId: deleteIngressClass parameters: - - description: name of the FlowSchema + - description: name of the IngressClass in: path name: name required: true @@ -52546,11 +60865,11 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - networking_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: networking.k8s.io + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -52560,10 +60879,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified FlowSchema - operationId: readFlowSchema + description: read the specified IngressClass + operationId: readIngressClass parameters: - - description: name of the FlowSchema + - description: name of the IngressClass in: path name: name required: true @@ -52581,26 +60900,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: networking.k8s.io + kind: IngressClass version: v1 x-accepts: - application/cbor @@ -52608,10 +60927,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified FlowSchema - operationId: patchFlowSchema + description: partially update the specified IngressClass + operationId: patchIngressClass parameters: - - description: name of the FlowSchema + - description: name of the IngressClass in: path name: name required: true @@ -52676,41 +60995,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: networking.k8s.io + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -52720,10 +61039,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified FlowSchema - operationId: replaceFlowSchema + description: replace the specified IngressClass + operationId: replaceIngressClass parameters: - - description: name of the FlowSchema + - description: name of the IngressClass in: path name: name required: true @@ -52772,48 +61091,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/yaml: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" application/cbor: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressClass" description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: networking.k8s.io + kind: IngressClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -52822,65 +61141,49 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status: + /apis/networking.k8s.io/v1/ingresses: get: - description: read status of the specified FlowSchema - operationId: readFlowSchemaStatus + description: list or watch objects of kind Ingress + operationId: listIngressForAllNamespaces parameters: - - description: name of the FlowSchema - in: path - name: name - required: true + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue schema: type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: pretty + name: fieldSelector schema: type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.FlowSchema" - application/yaml: - schema: - $ref: "#/components/schemas/v1.FlowSchema" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.FlowSchema" - application/cbor: - schema: - $ref: "#/components/schemas/v1.FlowSchema" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update status of the specified FlowSchema - operationId: patchFlowSchemaStatus - parameters: - - description: name of the FlowSchema - in: path - name: name - required: true + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector schema: type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -52888,208 +61191,126 @@ paths: name: pretty schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + - description: |- + 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 in: query - name: fieldManager + name: resourceVersion schema: type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + - description: |- + 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 in: query - name: fieldValidation + name: resourceVersionMatch schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: force + name: sendInitialEvents schema: type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Patch" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.FlowSchema" - application/yaml: - schema: - $ref: "#/components/schemas/v1.FlowSchema" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.FlowSchema" - application/cbor: - schema: - $ref: "#/components/schemas/v1.FlowSchema" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.FlowSchema" - application/yaml: - schema: - $ref: "#/components/schemas/v1.FlowSchema" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.FlowSchema" - application/cbor: - schema: - $ref: "#/components/schemas/v1.FlowSchema" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace status of the specified FlowSchema - operationId: replaceFlowSchemaStatus - parameters: - - description: name of the FlowSchema - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. in: query - name: dryRun + name: shardSelector schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query - name: fieldManager + name: timeoutSeconds schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query - name: fieldValidation + name: watch schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.FlowSchema" - required: true + type: boolean responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressList" application/yaml: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.FlowSchema" + $ref: "#/components/schemas/v1.IngressList" application/cbor: schema: - $ref: "#/components/schemas/v1.FlowSchema" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.FlowSchema" - application/yaml: + $ref: "#/components/schemas/v1.IngressList" + application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.FlowSchema" - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1.IngressList" + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.FlowSchema" - application/cbor: + $ref: "#/components/schemas/v1.IngressList" + application/cbor-seq: schema: - $ref: "#/components/schemas/v1.FlowSchema" - description: Created + $ref: "#/components/schemas/v1.IngressList" + description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: put + - networking_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: FlowSchema + group: networking.k8s.io + kind: Ingress version: v1 - x-codegen-request-body-name: body - x-content-type: application/json x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations: + /apis/networking.k8s.io/v1/ipaddresses: delete: - description: delete collection of PriorityLevelConfiguration - operationId: deleteCollectionPriorityLevelConfiguration + description: delete collection of IPAddress + operationId: deleteCollectionIPAddress parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -53211,6 +61432,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -53243,11 +61491,11 @@ paths: content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - networking_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: networking.k8s.io + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -53257,8 +61505,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PriorityLevelConfiguration - operationId: listPriorityLevelConfiguration + description: list or watch objects of kind IPAddress + operationId: listIPAddress parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -53339,6 +61587,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -53356,35 +61631,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" + $ref: "#/components/schemas/v1.IPAddressList" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" + $ref: "#/components/schemas/v1.IPAddressList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" + $ref: "#/components/schemas/v1.IPAddressList" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" + $ref: "#/components/schemas/v1.IPAddressList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" + $ref: "#/components/schemas/v1.IPAddressList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" + $ref: "#/components/schemas/v1.IPAddressList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfigurationList" + $ref: "#/components/schemas/v1.IPAddressList" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - networking_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: networking.k8s.io + kind: IPAddress version: v1 x-accepts: - application/cbor @@ -53395,8 +61670,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PriorityLevelConfiguration - operationId: createPriorityLevelConfiguration + description: create an IPAddress + operationId: createIPAddress parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -53441,346 +61716,63 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - application/yaml: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - application/cbor: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - application/yaml: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - application/cbor: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - description: Created - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - application/yaml: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - application/cbor: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}: - delete: - description: delete a PriorityLevelConfiguration - operationId: deletePriorityLevelConfiguration - parameters: - - description: name of the PriorityLevelConfiguration - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "The duration in seconds before the object should be deleted.\ - \ Value must be non-negative integer. The value zero indicates delete immediately.\ - \ If this value is nil, the default grace period for the specified type\ - \ will be used. Defaults to a per object value if not specified. zero means\ - \ delete immediately." - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: "if set to true, it will trigger an unsafe deletion of the resource\ - \ in case the normal deletion flow fails with a corrupt object error. A\ - \ resource is considered corrupt if it can not be retrieved from the underlying\ - \ storage successfully because of a) its data can not be transformed e.g.\ - \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ - \ deletion ignores finalizer constraints, skips precondition checks, and\ - \ removes the object from the storage. WARNING: This may potentially break\ - \ the cluster if the workload associated with the resource being unsafe-deleted\ - \ relies on normal deletion flow. Use only if you REALLY know what you are\ - \ doing. The default value is false, and the user must opt in to enable\ - \ it" - in: query - name: ignoreStoreReadErrorWithClusterBreakingPotential - schema: - type: boolean - - description: "Deprecated: please use the PropagationPolicy, this field will\ - \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ - \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ - \ list. Either this field or PropagationPolicy may be set, but not both." - in: query - name: orphanDependents - schema: - type: boolean - - description: "Whether and how garbage collection will be performed. Either\ - \ this field or OrphanDependents may be set, but not both. The default policy\ - \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy. Acceptable values are: 'Orphan'\ - \ - orphan the dependents; 'Background' - allow the garbage collector to\ - \ delete the dependents in the background; 'Foreground' - a cascading policy\ - \ that deletes all dependents in the foreground." - in: query - name: propagationPolicy - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.DeleteOptions" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Status" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Status" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Status" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Status" - description: OK - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Status" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Status" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Status" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Status" - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: delete - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: read the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfiguration - parameters: - - description: name of the PriorityLevelConfiguration - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - application/yaml: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - application/cbor: - schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration - version: v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfiguration - parameters: - - description: name of the PriorityLevelConfiguration - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Patch" + $ref: "#/components/schemas/v1.IPAddress" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.IPAddress" + application/yaml: + schema: + $ref: "#/components/schemas/v1.IPAddress" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.IPAddress" + application/cbor: + schema: + $ref: "#/components/schemas/v1.IPAddress" + description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: patch + - networking_v1 + x-kubernetes-action: post x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: networking.k8s.io + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -53789,11 +61781,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfiguration + /apis/networking.k8s.io/v1/ipaddresses/{name}: + delete: + description: delete an IPAddress + operationId: deleteIPAddress parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the IPAddress in: path name: name required: true @@ -53814,76 +61807,95 @@ paths: name: dryRun schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query - name: fieldManager + name: gracePeriodSeconds schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" in: query - name: fieldValidation + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy schema: type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - required: true + $ref: "#/components/schemas/v1.DeleteOptions" + required: false responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.Status" description: OK - "201": + "202": content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" - description: Created + $ref: "#/components/schemas/v1.Status" + description: Accepted "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 - x-kubernetes-action: put + - networking_v1 + x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: networking.k8s.io + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -53892,12 +61904,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status: get: - description: read status of the specified PriorityLevelConfiguration - operationId: readPriorityLevelConfigurationStatus + description: read the specified IPAddress + operationId: readIPAddress parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the IPAddress in: path name: name required: true @@ -53915,26 +61926,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" description: OK "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: networking.k8s.io + kind: IPAddress version: v1 x-accepts: - application/cbor @@ -53942,10 +61953,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified PriorityLevelConfiguration - operationId: patchPriorityLevelConfigurationStatus + description: partially update the specified IPAddress + operationId: patchIPAddress parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the IPAddress in: path name: name required: true @@ -54010,41 +62021,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: networking.k8s.io + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -54054,10 +62065,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified PriorityLevelConfiguration - operationId: replacePriorityLevelConfigurationStatus + description: replace the specified IPAddress + operationId: replaceIPAddress parameters: - - description: name of the PriorityLevelConfiguration + - description: name of the IPAddress in: path name: name required: true @@ -54106,48 +62117,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityLevelConfiguration" + $ref: "#/components/schemas/v1.IPAddress" description: Created "401": content: {} description: Unauthorized tags: - - flowcontrolApiserver_v1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: flowcontrol.apiserver.k8s.io - kind: PriorityLevelConfiguration + group: networking.k8s.io + kind: IPAddress version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -54156,71 +62167,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas: {} - /apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}: {} - /apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations: {} - /apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}: {} - /apis/internal.apiserver.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIGroup" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - internalApiserver - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - internalApiserver_v1alpha1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses: delete: - description: delete collection of StorageVersion - operationId: deleteCollectionStorageVersion + description: delete collection of Ingress + operationId: deleteCollectionNamespacedIngress parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54341,6 +62298,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -54373,12 +62357,12 @@ paths: content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: networking.k8s.io + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54387,9 +62371,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind StorageVersion - operationId: listStorageVersion + description: list or watch objects of kind Ingress + operationId: listNamespacedIngress parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54469,6 +62459,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -54486,36 +62503,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersionList" + $ref: "#/components/schemas/v1.IngressList" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersionList" + $ref: "#/components/schemas/v1.IngressList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersionList" + $ref: "#/components/schemas/v1.IngressList" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersionList" + $ref: "#/components/schemas/v1.IngressList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersionList" + $ref: "#/components/schemas/v1.IngressList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersionList" + $ref: "#/components/schemas/v1.IngressList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersionList" + $ref: "#/components/schemas/v1.IngressList" description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: networking.k8s.io + kind: Ingress + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -54525,9 +62542,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a StorageVersion - operationId: createStorageVersion + description: create an Ingress + operationId: createNamespacedIngress parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54571,64 +62594,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" description: Accepted "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: networking.k8s.io + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54636,17 +62659,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}: delete: - description: delete a StorageVersion - operationId: deleteStorageVersion + description: delete an Ingress + operationId: deleteNamespacedIngress parameters: - - description: name of the StorageVersion + - description: name of the Ingress in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54746,12 +62775,12 @@ paths: content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: networking.k8s.io + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54760,15 +62789,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified StorageVersion - operationId: readStorageVersion + description: read the specified Ingress + operationId: readNamespacedIngress parameters: - - description: name of the StorageVersion + - description: name of the Ingress in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54781,42 +62816,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: networking.k8s.io + kind: Ingress + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified StorageVersion - operationId: patchStorageVersion + description: partially update the specified Ingress + operationId: patchNamespacedIngress parameters: - - description: name of the StorageVersion + - description: name of the Ingress in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54876,42 +62917,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: networking.k8s.io + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -54920,15 +62961,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified StorageVersion - operationId: replaceStorageVersion + description: replace the specified Ingress + operationId: replaceNamespacedIngress parameters: - - description: name of the StorageVersion + - description: name of the Ingress in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -54972,49 +63019,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: networking.k8s.io + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -55022,17 +63069,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status: + /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status: get: - description: read status of the specified StorageVersion - operationId: readStorageVersionStatus + description: read status of the specified Ingress + operationId: readNamespacedIngressStatus parameters: - - description: name of the StorageVersion + - description: name of the Ingress in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55045,42 +63098,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" description: OK "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: networking.k8s.io + kind: Ingress + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified StorageVersion - operationId: patchStorageVersionStatus + description: partially update status of the specified Ingress + operationId: patchNamespacedIngressStatus parameters: - - description: name of the StorageVersion + - description: name of the Ingress in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55140,42 +63199,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: networking.k8s.io + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -55184,15 +63243,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified StorageVersion - operationId: replaceStorageVersionStatus + description: replace status of the specified Ingress + operationId: replaceNamespacedIngressStatus parameters: - - description: name of the StorageVersion + - description: name of the Ingress in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55236,49 +63301,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.StorageVersion" + $ref: "#/components/schemas/v1.Ingress" description: Created "401": content: {} description: Unauthorized tags: - - internalApiserver_v1alpha1 + - networking_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io - kind: StorageVersion - version: v1alpha1 + group: networking.k8s.io + kind: Ingress + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -55286,69 +63351,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions: {} - /apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}: {} - /apis/networking.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIGroup" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/networking.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/networking.k8s.io/v1/ingressclasses: + /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies: delete: - description: delete collection of IngressClass - operationId: deleteCollectionIngressClass + description: delete collection of NetworkPolicy + operationId: deleteCollectionNamespacedNetworkPolicy parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55469,134 +63482,194 @@ paths: name: sendInitialEvents schema: type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.DeleteOptions" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Status" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Status" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Status" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Status" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: deletecollection - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IngressClass - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: list or watch objects of kind IngressClass - operationId: listIngressClass - parameters: - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - description: |- - 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". + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: NetworkPolicy + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind NetworkPolicy + operationId: listNamespacedNetworkPolicy + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - 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. + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - 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. - in: query - name: limit - schema: - type: integer - - description: |- - 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. + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. in: query - name: sendInitialEvents + name: shardSelector schema: - type: boolean + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -55614,25 +63687,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IngressClassList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/yaml: schema: - $ref: "#/components/schemas/v1.IngressClassList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IngressClassList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/cbor: schema: - $ref: "#/components/schemas/v1.IngressClassList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.IngressClassList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.IngressClassList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.IngressClassList" + $ref: "#/components/schemas/v1.NetworkPolicyList" description: OK "401": content: {} @@ -55642,7 +63715,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IngressClass + kind: NetworkPolicy version: v1 x-accepts: - application/cbor @@ -55653,9 +63726,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an IngressClass - operationId: createIngressClass + description: create a NetworkPolicy + operationId: createNamespacedNetworkPolicy parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55699,53 +63778,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" description: Accepted "401": content: {} @@ -55755,7 +63834,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IngressClass + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -55764,17 +63843,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/ingressclasses/{name}: + /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}: delete: - description: delete an IngressClass - operationId: deleteIngressClass + description: delete a NetworkPolicy + operationId: deleteNamespacedNetworkPolicy parameters: - - description: name of the IngressClass + - description: name of the NetworkPolicy in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55878,7 +63963,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IngressClass + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -55888,15 +63973,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified IngressClass - operationId: readIngressClass + description: read the specified NetworkPolicy + operationId: readNamespacedNetworkPolicy parameters: - - description: name of the IngressClass + - description: name of the NetworkPolicy in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -55909,16 +64000,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" description: OK "401": content: {} @@ -55928,7 +64019,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IngressClass + kind: NetworkPolicy version: v1 x-accepts: - application/cbor @@ -55936,15 +64027,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified IngressClass - operationId: patchIngressClass + description: partially update the specified NetworkPolicy + operationId: patchNamespacedNetworkPolicy parameters: - - description: name of the IngressClass + - description: name of the NetworkPolicy in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -56004,31 +64101,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" description: Created "401": content: {} @@ -56038,7 +64135,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IngressClass + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -56048,15 +64145,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified IngressClass - operationId: replaceIngressClass + description: replace the specified NetworkPolicy + operationId: replaceNamespacedNetworkPolicy parameters: - - description: name of the IngressClass + - description: name of the NetworkPolicy in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -56100,38 +64203,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/yaml: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" application/cbor: schema: - $ref: "#/components/schemas/v1.IngressClass" + $ref: "#/components/schemas/v1.NetworkPolicy" description: Created "401": content: {} @@ -56141,7 +64244,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IngressClass + kind: NetworkPolicy version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -56150,10 +64253,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/ingresses: + /apis/networking.k8s.io/v1/networkpolicies: get: - description: list or watch objects of kind Ingress - operationId: listIngressForAllNamespaces + description: list or watch objects of kind NetworkPolicy + operationId: listNetworkPolicyForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -56234,6 +64337,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -56251,25 +64381,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/yaml: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/cbor: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1.NetworkPolicyList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1.NetworkPolicyList" description: OK "401": content: {} @@ -56279,7 +64409,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress + kind: NetworkPolicy version: v1 x-accepts: - application/cbor @@ -56289,10 +64419,10 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/networking.k8s.io/v1/ipaddresses: + /apis/networking.k8s.io/v1/servicecidrs: delete: - description: delete collection of IPAddress - operationId: deleteCollectionIPAddress + description: delete collection of ServiceCIDR + operationId: deleteCollectionServiceCIDR parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -56414,6 +64544,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -56450,7 +64607,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -56460,8 +64617,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind IPAddress - operationId: listIPAddress + description: list or watch objects of kind ServiceCIDR + operationId: listServiceCIDR parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -56542,6 +64699,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -56559,25 +64743,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddressList" + $ref: "#/components/schemas/v1.ServiceCIDRList" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddressList" + $ref: "#/components/schemas/v1.ServiceCIDRList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddressList" + $ref: "#/components/schemas/v1.ServiceCIDRList" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddressList" + $ref: "#/components/schemas/v1.ServiceCIDRList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.IPAddressList" + $ref: "#/components/schemas/v1.ServiceCIDRList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.IPAddressList" + $ref: "#/components/schemas/v1.ServiceCIDRList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.IPAddressList" + $ref: "#/components/schemas/v1.ServiceCIDRList" description: OK "401": content: {} @@ -56587,7 +64771,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: ServiceCIDR version: v1 x-accepts: - application/cbor @@ -56598,8 +64782,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an IPAddress - operationId: createIPAddress + description: create a ServiceCIDR + operationId: createServiceCIDR parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -56644,53 +64828,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" description: Accepted "401": content: {} @@ -56700,7 +64884,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -56709,12 +64893,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/ipaddresses/{name}: + /apis/networking.k8s.io/v1/servicecidrs/{name}: delete: - description: delete an IPAddress - operationId: deleteIPAddress + description: delete a ServiceCIDR + operationId: deleteServiceCIDR parameters: - - description: name of the IPAddress + - description: name of the ServiceCIDR in: path name: name required: true @@ -56823,7 +65007,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -56833,10 +65017,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified IPAddress - operationId: readIPAddress + description: read the specified ServiceCIDR + operationId: readServiceCIDR parameters: - - description: name of the IPAddress + - description: name of the ServiceCIDR in: path name: name required: true @@ -56854,16 +65038,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "401": content: {} @@ -56873,7 +65057,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: ServiceCIDR version: v1 x-accepts: - application/cbor @@ -56881,10 +65065,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified IPAddress - operationId: patchIPAddress + description: partially update the specified ServiceCIDR + operationId: patchServiceCIDR parameters: - - description: name of the IPAddress + - description: name of the ServiceCIDR in: path name: name required: true @@ -56949,31 +65133,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" description: Created "401": content: {} @@ -56983,7 +65167,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -56993,10 +65177,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified IPAddress - operationId: replaceIPAddress + description: replace the specified ServiceCIDR + operationId: replaceServiceCIDR parameters: - - description: name of the IPAddress + - description: name of the ServiceCIDR in: path name: name required: true @@ -57045,38 +65229,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.IPAddress" + $ref: "#/components/schemas/v1.ServiceCIDR" description: Created "401": content: {} @@ -57086,7 +65270,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: IPAddress + kind: ServiceCIDR version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -57095,17 +65279,317 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses: - delete: - description: delete collection of Ingress - operationId: deleteCollectionNamespacedIngress + /apis/networking.k8s.io/v1/servicecidrs/{name}/status: + get: + description: read status of the specified ServiceCIDR + operationId: readServiceCIDRStatus parameters: - - description: "object name and auth scope, such as for teams and projects" + - description: name of the ServiceCIDR in: path - name: namespace + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified ServiceCIDR + operationId: patchServiceCIDRStatus + parameters: + - description: name of the ServiceCIDR + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified ServiceCIDR + operationId: replaceServiceCIDRStatus + parameters: + - description: name of the ServiceCIDR + in: path + name: name required: true schema: type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ServiceCIDR" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - networking_v1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/networking.k8s.io/v1/watch/ingressclasses: {} + /apis/networking.k8s.io/v1/watch/ingressclasses/{name}: {} + /apis/networking.k8s.io/v1/watch/ingresses: {} + /apis/networking.k8s.io/v1/watch/ipaddresses: {} + /apis/networking.k8s.io/v1/watch/ipaddresses/{name}: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies: {} + /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}: {} + /apis/networking.k8s.io/v1/watch/networkpolicies: {} + /apis/networking.k8s.io/v1/watch/servicecidrs: {} + /apis/networking.k8s.io/v1/watch/servicecidrs/{name}: {} + /apis/networking.k8s.io/v1beta1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/networking.k8s.io/v1beta1/ipaddresses: + delete: + description: delete collection of IPAddress + operationId: deleteCollectionIPAddress + parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57226,6 +65710,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -57258,12 +65769,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - networking_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress - version: v1 + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -57272,15 +65783,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Ingress - operationId: listNamespacedIngress + description: list or watch objects of kind IPAddress + operationId: listIPAddress parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57360,6 +65865,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -57377,36 +65909,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1beta1.IPAddressList" application/yaml: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1beta1.IPAddressList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1beta1.IPAddressList" application/cbor: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1beta1.IPAddressList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1beta1.IPAddressList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1beta1.IPAddressList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.IngressList" + $ref: "#/components/schemas/v1beta1.IPAddressList" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - networking_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress - version: v1 + kind: IPAddress + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -57416,15 +65948,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an Ingress - operationId: createNamespacedIngress + description: create an IPAddress + operationId: createIPAddress parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57468,64 +65994,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - networking_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress - version: v1 + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -57533,23 +66059,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}: + /apis/networking.k8s.io/v1beta1/ipaddresses/{name}: delete: - description: delete an Ingress - operationId: deleteNamespacedIngress + description: delete an IPAddress + operationId: deleteIPAddress parameters: - - description: name of the Ingress + - description: name of the IPAddress in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57649,293 +66169,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - networking_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: read the specified Ingress - operationId: readNamespacedIngress - parameters: - - description: name of the Ingress - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Ingress" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Ingress" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Ingress" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Ingress" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update the specified Ingress - operationId: patchNamespacedIngress - parameters: - - description: name of the Ingress - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Patch" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Ingress" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Ingress" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Ingress" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Ingress" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Ingress" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Ingress" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Ingress" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Ingress" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace the specified Ingress - operationId: replaceNamespacedIngress - parameters: - - description: name of the Ingress - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Ingress" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Ingress" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Ingress" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Ingress" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Ingress" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Ingress" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Ingress" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Ingress" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Ingress" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: Ingress - version: v1 + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -57943,23 +66182,16 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status: get: - description: read status of the specified Ingress - operationId: readNamespacedIngressStatus + description: read the specified IPAddress + operationId: readIPAddress parameters: - - description: name of the Ingress + - description: name of the IPAddress in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -57972,48 +66204,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - networking_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress - version: v1 + kind: IPAddress + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified Ingress - operationId: patchNamespacedIngressStatus + description: partially update the specified IPAddress + operationId: patchIPAddress parameters: - - description: name of the Ingress + - description: name of the IPAddress in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58073,42 +66299,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - networking_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress - version: v1 + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -58117,21 +66343,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified Ingress - operationId: replaceNamespacedIngressStatus + description: replace the specified IPAddress + operationId: replaceIPAddress parameters: - - description: name of the Ingress + - description: name of the IPAddress in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58175,49 +66395,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/yaml: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" application/cbor: schema: - $ref: "#/components/schemas/v1.Ingress" + $ref: "#/components/schemas/v1beta1.IPAddress" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - networking_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: Ingress - version: v1 + kind: IPAddress + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -58225,17 +66445,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies: + /apis/networking.k8s.io/v1beta1/servicecidrs: delete: - description: delete collection of NetworkPolicy - operationId: deleteCollectionNamespacedNetworkPolicy + description: delete collection of ServiceCIDR + operationId: deleteCollectionServiceCIDR parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58356,6 +66570,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -58388,12 +66629,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - networking_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy - version: v1 + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -58402,15 +66643,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind NetworkPolicy - operationId: listNamespacedNetworkPolicy + description: list or watch objects of kind ServiceCIDR + operationId: listServiceCIDR parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58490,6 +66725,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -58507,36 +66769,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.NetworkPolicyList" + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/yaml: schema: - $ref: "#/components/schemas/v1.NetworkPolicyList" + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.NetworkPolicyList" + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/cbor: schema: - $ref: "#/components/schemas/v1.NetworkPolicyList" + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.NetworkPolicyList" + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.NetworkPolicyList" + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.NetworkPolicyList" + $ref: "#/components/schemas/v1beta1.ServiceCIDRList" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - networking_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy - version: v1 + kind: ServiceCIDR + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -58546,15 +66808,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a NetworkPolicy - operationId: createNamespacedNetworkPolicy + description: create a ServiceCIDR + operationId: createServiceCIDR parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58598,64 +66854,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - networking_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy - version: v1 + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -58663,23 +66919,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}: + /apis/networking.k8s.io/v1beta1/servicecidrs/{name}: delete: - description: delete a NetworkPolicy - operationId: deleteNamespacedNetworkPolicy + description: delete a ServiceCIDR + operationId: deleteServiceCIDR parameters: - - description: name of the NetworkPolicy + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58779,12 +67029,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - networking_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy - version: v1 + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -58793,21 +67043,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified NetworkPolicy - operationId: readNamespacedNetworkPolicy + description: read the specified ServiceCIDR + operationId: readServiceCIDR parameters: - - description: name of the NetworkPolicy + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58820,48 +67064,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - networking_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy - version: v1 + kind: ServiceCIDR + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified NetworkPolicy - operationId: patchNamespacedNetworkPolicy + description: partially update the specified ServiceCIDR + operationId: patchServiceCIDR parameters: - - description: name of the NetworkPolicy + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -58921,42 +67159,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - networking_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy - version: v1 + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -58965,21 +67203,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified NetworkPolicy - operationId: replaceNamespacedNetworkPolicy + description: replace the specified ServiceCIDR + operationId: replaceServiceCIDR parameters: - - description: name of the NetworkPolicy + - description: name of the ServiceCIDR in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -59023,49 +67255,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.NetworkPolicy" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - networking_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy - version: v1 + kind: ServiceCIDR + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -59073,49 +67305,177 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/networkpolicies: + /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status: get: - description: list or watch objects of kind NetworkPolicy - operationId: listNetworkPolicyForAllNamespaces + description: read status of the specified ServiceCIDR + operationId: readServiceCIDRStatus parameters: - - description: "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." + - description: name of the ServiceCIDR + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: allowWatchBookmarks + name: pretty schema: - type: boolean - - description: |- - 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. + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - networking_v1beta1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified ServiceCIDR + operationId: patchServiceCIDRStatus + parameters: + - description: name of the ServiceCIDR + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: continue + name: pretty schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: fieldSelector + name: dryRun schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query - name: labelSelector + name: fieldManager schema: type: string - - description: |- - 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. + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: limit + name: fieldValidation schema: - type: integer + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - networking_v1beta1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: networking.k8s.io + kind: ServiceCIDR + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified ServiceCIDR + operationId: replaceServiceCIDRStatus + parameters: + - description: name of the ServiceCIDR + in: path + name: name + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -59123,99 +67483,156 @@ paths: name: pretty schema: type: string - - description: |- - 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 + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - 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 + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: watch + name: fieldValidation schema: - type: boolean + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.NetworkPolicyList" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/yaml: schema: - $ref: "#/components/schemas/v1.NetworkPolicyList" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.NetworkPolicyList" + $ref: "#/components/schemas/v1beta1.ServiceCIDR" application/cbor: schema: - $ref: "#/components/schemas/v1.NetworkPolicyList" - application/json;stream=watch: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/v1.NetworkPolicyList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/yaml: schema: - $ref: "#/components/schemas/v1.NetworkPolicyList" - application/cbor-seq: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.NetworkPolicyList" - description: OK + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ServiceCIDR" + description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 - x-kubernetes-action: list + - networking_v1beta1 + x-kubernetes-action: put x-kubernetes-group-version-kind: group: networking.k8s.io - kind: NetworkPolicy - version: v1 + kind: ServiceCIDR + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/networking.k8s.io/v1/servicecidrs: + /apis/networking.k8s.io/v1beta1/watch/ipaddresses: {} + /apis/networking.k8s.io/v1beta1/watch/ipaddresses/{name}: {} + /apis/networking.k8s.io/v1beta1/watch/servicecidrs: {} + /apis/networking.k8s.io/v1beta1/watch/servicecidrs/{name}: {} + /apis/node.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - node + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/node.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - node_v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/node.k8s.io/v1/runtimeclasses: delete: - description: delete collection of ServiceCIDR - operationId: deleteCollectionServiceCIDR + description: delete collection of RuntimeClass + operationId: deleteCollectionRuntimeClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -59337,6 +67754,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -59369,11 +67813,11 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - node_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -59383,8 +67827,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ServiceCIDR - operationId: listServiceCIDR + description: list or watch objects of kind RuntimeClass + operationId: listRuntimeClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -59465,6 +67909,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -59482,35 +67953,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDRList" + $ref: "#/components/schemas/v1.RuntimeClassList" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDRList" + $ref: "#/components/schemas/v1.RuntimeClassList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDRList" + $ref: "#/components/schemas/v1.RuntimeClassList" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDRList" + $ref: "#/components/schemas/v1.RuntimeClassList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.ServiceCIDRList" + $ref: "#/components/schemas/v1.RuntimeClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.ServiceCIDRList" + $ref: "#/components/schemas/v1.RuntimeClassList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.ServiceCIDRList" + $ref: "#/components/schemas/v1.RuntimeClassList" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - node_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR + group: node.k8s.io + kind: RuntimeClass version: v1 x-accepts: - application/cbor @@ -59521,8 +67992,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ServiceCIDR - operationId: createServiceCIDR + description: create a RuntimeClass + operationId: createRuntimeClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -59567,63 +68038,63 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1 + - node_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -59632,12 +68103,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/servicecidrs/{name}: + /apis/node.k8s.io/v1/runtimeclasses/{name}: delete: - description: delete a ServiceCIDR - operationId: deleteServiceCIDR + description: delete a RuntimeClass + operationId: deleteRuntimeClass parameters: - - description: name of the ServiceCIDR + - description: name of the RuntimeClass in: path name: name required: true @@ -59742,274 +68213,11 @@ paths: content: {} description: Unauthorized tags: - - networking_v1 + - node_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: read the specified ServiceCIDR - operationId: readServiceCIDR - parameters: - - description: name of the ServiceCIDR - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - application/yaml: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - application/cbor: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update the specified ServiceCIDR - operationId: patchServiceCIDR - parameters: - - description: name of the ServiceCIDR - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Patch" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - application/yaml: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - application/cbor: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - application/yaml: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - application/cbor: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace the specified ServiceCIDR - operationId: replaceServiceCIDR - parameters: - - description: name of the ServiceCIDR - in: path - name: name - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - application/yaml: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - application/cbor: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - application/yaml: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - application/cbor: - schema: - $ref: "#/components/schemas/v1.ServiceCIDR" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - networking_v1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -60018,12 +68226,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/servicecidrs/{name}/status: get: - description: read status of the specified ServiceCIDR - operationId: readServiceCIDRStatus + description: read the specified RuntimeClass + operationId: readRuntimeClass parameters: - - description: name of the ServiceCIDR + - description: name of the RuntimeClass in: path name: name required: true @@ -60041,26 +68248,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1 + - node_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR + group: node.k8s.io + kind: RuntimeClass version: v1 x-accepts: - application/cbor @@ -60068,10 +68275,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified ServiceCIDR - operationId: patchServiceCIDRStatus + description: partially update the specified RuntimeClass + operationId: patchRuntimeClass parameters: - - description: name of the ServiceCIDR + - description: name of the RuntimeClass in: path name: name required: true @@ -60136,41 +68343,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - node_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -60180,10 +68387,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified ServiceCIDR - operationId: replaceServiceCIDRStatus + description: replace the specified RuntimeClass + operationId: replaceRuntimeClass parameters: - - description: name of the ServiceCIDR + - description: name of the RuntimeClass in: path name: name required: true @@ -60232,48 +68439,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ServiceCIDR" + $ref: "#/components/schemas/v1.RuntimeClass" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1 + - node_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR + group: node.k8s.io + kind: RuntimeClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -60282,19 +68489,35 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1/watch/ingressclasses: {} - /apis/networking.k8s.io/v1/watch/ingressclasses/{name}: {} - /apis/networking.k8s.io/v1/watch/ingresses: {} - /apis/networking.k8s.io/v1/watch/ipaddresses: {} - /apis/networking.k8s.io/v1/watch/ipaddresses/{name}: {} - /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses: {} - /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}: {} - /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies: {} - /apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}: {} - /apis/networking.k8s.io/v1/watch/networkpolicies: {} - /apis/networking.k8s.io/v1/watch/servicecidrs: {} - /apis/networking.k8s.io/v1/watch/servicecidrs/{name}: {} - /apis/networking.k8s.io/v1beta1/: + /apis/node.k8s.io/v1/watch/runtimeclasses: {} + /apis/node.k8s.io/v1/watch/runtimeclasses/{name}: {} + /apis/policy/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - policy + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/policy/v1/: get: description: get available resources operationId: getAPIResources @@ -60318,17 +68541,23 @@ paths: content: {} description: Unauthorized tags: - - networking_v1beta1 + - policy_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/ipaddresses: + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets: delete: - description: delete collection of IPAddress - operationId: deleteCollectionIPAddress + description: delete collection of PodDisruptionBudget + operationId: deleteCollectionNamespacedPodDisruptionBudget parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -60449,6 +68678,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -60481,12 +68737,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1beta1 + - policy_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddress - version: v1beta1 + group: policy + kind: PodDisruptionBudget + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -60495,9 +68751,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind IPAddress - operationId: listIPAddress + description: list or watch objects of kind PodDisruptionBudget + operationId: listNamespacedPodDisruptionBudget parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -60577,6 +68839,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -60594,36 +68883,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddressList" + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddressList" + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddressList" + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddressList" + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.IPAddressList" + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.IPAddressList" + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.IPAddressList" + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - policy_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddress - version: v1beta1 + group: policy + kind: PodDisruptionBudget + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -60633,9 +68922,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create an IPAddress - operationId: createIPAddress + description: create a PodDisruptionBudget + operationId: createNamespacedPodDisruptionBudget parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -60679,64 +68974,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - policy_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddress - version: v1beta1 + group: policy + kind: PodDisruptionBudget + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -60744,17 +69039,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/ipaddresses/{name}: + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}: delete: - description: delete an IPAddress - operationId: deleteIPAddress + description: delete a PodDisruptionBudget + operationId: deleteNamespacedPodDisruptionBudget parameters: - - description: name of the IPAddress + - description: name of the PodDisruptionBudget in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -60854,12 +69155,12 @@ paths: content: {} description: Unauthorized tags: - - networking_v1beta1 + - policy_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddress - version: v1beta1 + group: policy + kind: PodDisruptionBudget + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -60868,15 +69169,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified IPAddress - operationId: readIPAddress + description: read the specified PodDisruptionBudget + operationId: readNamespacedPodDisruptionBudget parameters: - - description: name of the IPAddress + - description: name of the PodDisruptionBudget in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -60889,42 +69196,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - policy_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddress - version: v1beta1 + group: policy + kind: PodDisruptionBudget + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified IPAddress - operationId: patchIPAddress + description: partially update the specified PodDisruptionBudget + operationId: patchNamespacedPodDisruptionBudget parameters: - - description: name of the IPAddress + - description: name of the PodDisruptionBudget in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -60984,42 +69297,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - policy_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddress - version: v1beta1 + group: policy + kind: PodDisruptionBudget + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -61028,15 +69341,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified IPAddress - operationId: replaceIPAddress + description: replace the specified PodDisruptionBudget + operationId: replaceNamespacedPodDisruptionBudget parameters: - - description: name of the IPAddress + - description: name of the PodDisruptionBudget in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -61080,49 +69399,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.IPAddress" + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - policy_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: IPAddress - version: v1beta1 + group: policy + kind: PodDisruptionBudget + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -61130,11 +69449,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/servicecidrs: - delete: - description: delete collection of ServiceCIDR - operationId: deleteCollectionServiceCIDR + /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status: + get: + description: read status of the specified PodDisruptionBudget + operationId: readNamespacedPodDisruptionBudgetStatus parameters: + - description: name of the PodDisruptionBudget + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -61142,12 +69473,58 @@ paths: name: pretty schema: type: string - - description: |- - 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. + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - policy_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: policy + kind: PodDisruptionBudget + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified PodDisruptionBudget + operationId: patchNamespacedPodDisruptionBudgetStatus + parameters: + - description: name of the PodDisruptionBudget + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: continue + name: pretty schema: type: string - description: "When present, indicates that modifications should not be persisted.\ @@ -61158,141 +69535,195 @@ paths: name: dryRun schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query - name: fieldSelector + name: fieldManager schema: type: string - - description: "The duration in seconds before the object should be deleted.\ - \ Value must be non-negative integer. The value zero indicates delete immediately.\ - \ If this value is nil, the default grace period for the specified type\ - \ will be used. Defaults to a per object value if not specified. zero means\ - \ delete immediately." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: gracePeriodSeconds + name: fieldValidation schema: - type: integer - - description: "if set to true, it will trigger an unsafe deletion of the resource\ - \ in case the normal deletion flow fails with a corrupt object error. A\ - \ resource is considered corrupt if it can not be retrieved from the underlying\ - \ storage successfully because of a) its data can not be transformed e.g.\ - \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ - \ deletion ignores finalizer constraints, skips precondition checks, and\ - \ removes the object from the storage. WARNING: This may potentially break\ - \ the cluster if the workload associated with the resource being unsafe-deleted\ - \ relies on normal deletion flow. Use only if you REALLY know what you are\ - \ doing. The default value is false, and the user must opt in to enable\ - \ it" + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: ignoreStoreReadErrorWithClusterBreakingPotential + name: force schema: type: boolean - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - policy_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: policy + kind: PodDisruptionBudget + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified PodDisruptionBudget + operationId: replaceNamespacedPodDisruptionBudgetStatus + parameters: + - description: name of the PodDisruptionBudget + in: path + name: name + required: true schema: type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - - description: "Deprecated: please use the PropagationPolicy, this field will\ - \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ - \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ - \ list. Either this field or PropagationPolicy may be set, but not both." - in: query - name: orphanDependents - schema: - type: boolean - - description: "Whether and how garbage collection will be performed. Either\ - \ this field or OrphanDependents may be set, but not both. The default policy\ - \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy. Acceptable values are: 'Orphan'\ - \ - orphan the dependents; 'Background' - allow the garbage collector to\ - \ delete the dependents in the background; 'Foreground' - a cascading policy\ - \ that deletes all dependents in the foreground." - in: query - name: propagationPolicy + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true schema: type: string - - description: |- - 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 + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: resourceVersion + name: pretty schema: type: string - - description: |- - 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 + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersionMatch + name: dryRun schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: sendInitialEvents + name: fieldManager schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: timeoutSeconds + name: fieldValidation schema: - type: integer + type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.DeleteOptions" - required: false + $ref: "#/components/schemas/v1.PodDisruptionBudget" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.PodDisruptionBudget" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.PodDisruptionBudget" description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/yaml: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + application/cbor: + schema: + $ref: "#/components/schemas/v1.PodDisruptionBudget" + description: Created "401": content: {} description: Unauthorized tags: - - networking_v1beta1 - x-kubernetes-action: deletecollection + - policy_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + group: policy + kind: PodDisruptionBudget + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -61300,17 +69731,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml + /apis/policy/v1/poddisruptionbudgets: get: - description: list or watch objects of kind ServiceCIDR - operationId: listServiceCIDR + description: list or watch objects of kind PodDisruptionBudget + operationId: listPodDisruptionBudgetForAllNamespaces parameters: - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - description: "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\ @@ -61349,6 +69774,13 @@ paths: name: limit schema: type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string - description: |- 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. @@ -61383,6 +69815,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -61400,36 +69859,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDRList" + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDRList" + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDRList" + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDRList" + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDRList" + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDRList" + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDRList" + $ref: "#/components/schemas/v1.PodDisruptionBudgetList" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - policy_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + group: policy + kind: PodDisruptionBudget + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -61438,129 +69897,70 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - post: - description: create a ServiceCIDR - operationId: createServiceCIDR - parameters: - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" - required: true + /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets: {} + /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}: {} + /apis/policy/v1/watch/poddisruptionbudgets: {} + /apis/rbac.authorization.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.APIGroup" description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" - description: Created - "202": + "401": + content: {} + description: Unauthorized + tags: + - rbacAuthorization + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/rbac.authorization.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" - description: Accepted + $ref: "#/components/schemas/v1.APIResourceList" + description: OK "401": content: {} description: Unauthorized tags: - - networking_v1beta1 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 - x-codegen-request-body-name: body - x-content-type: application/json + - rbacAuthorization_v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/servicecidrs/{name}: + /apis/rbac.authorization.k8s.io/v1/clusterrolebindings: delete: - description: delete a ServiceCIDR - operationId: deleteServiceCIDR + description: delete collection of ClusterRoleBinding + operationId: deleteCollectionClusterRoleBinding parameters: - - description: name of the ServiceCIDR - in: path - name: name - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -61568,6 +69968,14 @@ paths: name: pretty schema: type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string - description: "When present, indicates that modifications should not be persisted.\ \ An invalid or unrecognized dryRun directive will result in an error response\ \ and no further processing of the request. Valid values are: - All: all\ @@ -61576,6 +69984,12 @@ paths: name: dryRun schema: type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string - description: "The duration in seconds before the object should be deleted.\ \ Value must be non-negative integer. The value zero indicates delete immediately.\ \ If this value is nil, the default grace period for the specified type\ @@ -61600,137 +70014,314 @@ paths: name: ignoreStoreReadErrorWithClusterBreakingPotential schema: type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer - description: "Deprecated: please use the PropagationPolicy, this field will\ \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ \ list. Either this field or PropagationPolicy may be set, but not both." in: query - name: orphanDependents + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - rbacAuthorization_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind ClusterRoleBinding + operationId: listClusterRoleBinding + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents schema: type: boolean - - description: "Whether and how garbage collection will be performed. Either\ - \ this field or OrphanDependents may be set, but not both. The default policy\ - \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy. Acceptable values are: 'Orphan'\ - \ - orphan the dependents; 'Background' - allow the garbage collector to\ - \ delete the dependents in the background; 'Foreground' - a cascading policy\ - \ that deletes all dependents in the foreground." + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. in: query - name: propagationPolicy + name: shardSelector schema: type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.DeleteOptions" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Status" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Status" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Status" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Status" - description: OK - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Status" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Status" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Status" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Status" - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - networking_v1beta1 - x-kubernetes-action: delete - x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: read the specified ServiceCIDR - operationId: readServiceCIDR - parameters: - - description: name of the ServiceCIDR - in: path - name: name - required: true + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query - name: pretty + name: watch schema: - type: string + type: boolean responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBindingList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBindingList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBindingList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.ClusterRoleBindingList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.ClusterRoleBindingList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.ClusterRoleBindingList" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1beta1 - x-kubernetes-action: get + - rbacAuthorization_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - patch: - description: partially update the specified ServiceCIDR - operationId: patchServiceCIDR + post: + description: create a ClusterRoleBinding + operationId: createClusterRoleBinding parameters: - - description: name of the ServiceCIDR - in: path - name: name - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -61748,9 +70339,7 @@ paths: type: string - description: "fieldManager is a name associated with the actor or entity that\ \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: @@ -61772,60 +70361,68 @@ paths: name: fieldValidation schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.Patch" + $ref: "#/components/schemas/v1.ClusterRoleBinding" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.ClusterRoleBinding" + application/yaml: + schema: + $ref: "#/components/schemas/v1.ClusterRoleBinding" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.ClusterRoleBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.ClusterRoleBinding" + description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1beta1 - x-kubernetes-action: patch + - rbacAuthorization_v1 + x-kubernetes-action: post x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -61833,11 +70430,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace the specified ServiceCIDR - operationId: replaceServiceCIDR + /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}: + delete: + description: delete a ClusterRoleBinding + operationId: deleteClusterRoleBinding parameters: - - description: name of the ServiceCIDR + - description: name of the ClusterRoleBinding in: path name: name required: true @@ -61858,77 +70456,96 @@ paths: name: dryRun schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query - name: fieldManager + name: gracePeriodSeconds schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" in: query - name: fieldValidation + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy schema: type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" - required: true + $ref: "#/components/schemas/v1.DeleteOptions" + required: false responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.Status" description: OK - "201": + "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" - description: Created + $ref: "#/components/schemas/v1.Status" + description: Accepted "401": content: {} description: Unauthorized tags: - - networking_v1beta1 - x-kubernetes-action: put + - rbacAuthorization_v1 + x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -61936,12 +70553,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/servicecidrs/{name}/status: get: - description: read status of the specified ServiceCIDR - operationId: readServiceCIDRStatus + description: read the specified ClusterRoleBinding + operationId: readClusterRoleBinding parameters: - - description: name of the ServiceCIDR + - description: name of the ClusterRoleBinding in: path name: name required: true @@ -61959,37 +70575,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: OK "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified ServiceCIDR - operationId: patchServiceCIDRStatus + description: partially update the specified ClusterRoleBinding + operationId: patchClusterRoleBinding parameters: - - description: name of the ServiceCIDR + - description: name of the ClusterRoleBinding in: path name: name required: true @@ -62054,42 +70670,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -62098,10 +70714,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified ServiceCIDR - operationId: replaceServiceCIDRStatus + description: replace the specified ClusterRoleBinding + operationId: replaceClusterRoleBinding parameters: - - description: name of the ServiceCIDR + - description: name of the ClusterRoleBinding in: path name: name required: true @@ -62150,49 +70766,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ServiceCIDR" + $ref: "#/components/schemas/v1.ClusterRoleBinding" description: Created "401": content: {} description: Unauthorized tags: - - networking_v1beta1 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: networking.k8s.io - kind: ServiceCIDR - version: v1beta1 + group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -62200,70 +70816,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/networking.k8s.io/v1beta1/watch/ipaddresses: {} - /apis/networking.k8s.io/v1beta1/watch/ipaddresses/{name}: {} - /apis/networking.k8s.io/v1beta1/watch/servicecidrs: {} - /apis/networking.k8s.io/v1beta1/watch/servicecidrs/{name}: {} - /apis/node.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIGroup" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - node - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/node.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - node_v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/node.k8s.io/v1/runtimeclasses: + /apis/rbac.authorization.k8s.io/v1/clusterroles: delete: - description: delete collection of RuntimeClass - operationId: deleteCollectionRuntimeClass + description: delete collection of ClusterRole + operationId: deleteCollectionClusterRole parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -62385,6 +70941,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -62417,11 +71000,11 @@ paths: content: {} description: Unauthorized tags: - - node_v1 + - rbacAuthorization_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -62431,8 +71014,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind RuntimeClass - operationId: listRuntimeClass + description: list or watch objects of kind ClusterRole + operationId: listClusterRole parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -62513,6 +71096,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -62530,35 +71140,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClassList" + $ref: "#/components/schemas/v1.ClusterRoleList" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClassList" + $ref: "#/components/schemas/v1.ClusterRoleList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClassList" + $ref: "#/components/schemas/v1.ClusterRoleList" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClassList" + $ref: "#/components/schemas/v1.ClusterRoleList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.RuntimeClassList" + $ref: "#/components/schemas/v1.ClusterRoleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.RuntimeClassList" + $ref: "#/components/schemas/v1.ClusterRoleList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.RuntimeClassList" + $ref: "#/components/schemas/v1.ClusterRoleList" description: OK "401": content: {} description: Unauthorized tags: - - node_v1 + - rbacAuthorization_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-accepts: - application/cbor @@ -62569,8 +71179,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a RuntimeClass - operationId: createRuntimeClass + description: create a ClusterRole + operationId: createClusterRole parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -62615,63 +71225,63 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" description: Accepted "401": content: {} description: Unauthorized tags: - - node_v1 + - rbacAuthorization_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -62680,12 +71290,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/node.k8s.io/v1/runtimeclasses/{name}: + /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}: delete: - description: delete a RuntimeClass - operationId: deleteRuntimeClass + description: delete a ClusterRole + operationId: deleteClusterRole parameters: - - description: name of the RuntimeClass + - description: name of the ClusterRole in: path name: name required: true @@ -62790,11 +71400,11 @@ paths: content: {} description: Unauthorized tags: - - node_v1 + - rbacAuthorization_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -62804,10 +71414,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified RuntimeClass - operationId: readRuntimeClass + description: read the specified ClusterRole + operationId: readClusterRole parameters: - - description: name of the RuntimeClass + - description: name of the ClusterRole in: path name: name required: true @@ -62825,26 +71435,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" description: OK "401": content: {} description: Unauthorized tags: - - node_v1 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-accepts: - application/cbor @@ -62852,10 +71462,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified RuntimeClass - operationId: patchRuntimeClass + description: partially update the specified ClusterRole + operationId: patchClusterRole parameters: - - description: name of the RuntimeClass + - description: name of the ClusterRole in: path name: name required: true @@ -62920,41 +71530,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" description: Created "401": content: {} description: Unauthorized tags: - - node_v1 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -62964,10 +71574,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified RuntimeClass - operationId: replaceRuntimeClass + description: replace the specified ClusterRole + operationId: replaceClusterRole parameters: - - description: name of the RuntimeClass + - description: name of the ClusterRole in: path name: name required: true @@ -63016,48 +71626,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/yaml: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" application/cbor: schema: - $ref: "#/components/schemas/v1.RuntimeClass" + $ref: "#/components/schemas/v1.ClusterRole" description: Created "401": content: {} description: Unauthorized tags: - - node_v1 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: node.k8s.io - kind: RuntimeClass + group: rbac.authorization.k8s.io + kind: ClusterRole version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -63066,68 +71676,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/node.k8s.io/v1/watch/runtimeclasses: {} - /apis/node.k8s.io/v1/watch/runtimeclasses/{name}: {} - /apis/policy/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIGroup" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/policy/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy_v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings: delete: - description: delete collection of PodDisruptionBudget - operationId: deleteCollectionNamespacedPodDisruptionBudget + description: delete collection of RoleBinding + operationId: deleteCollectionNamespacedRoleBinding parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -63255,6 +71807,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -63287,11 +71866,11 @@ paths: content: {} description: Unauthorized tags: - - policy_v1 + - rbacAuthorization_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -63301,8 +71880,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PodDisruptionBudget - operationId: listNamespacedPodDisruptionBudget + description: list or watch objects of kind RoleBinding + operationId: listNamespacedRoleBinding parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -63389,6 +71968,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -63406,355 +72012,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" - application/json;stream=watch: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" - application/cbor-seq: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1 - x-accepts: - - application/cbor - - application/cbor-seq - - application/json - - application/json;stream=watch - - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - - application/yaml - post: - description: create a PodDisruptionBudget - operationId: createNamespacedPodDisruptionBudget - parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - application/yaml: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - application/cbor: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - application/yaml: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - application/cbor: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - description: Created - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - application/yaml: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - application/cbor: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - policy_v1 - x-kubernetes-action: post - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}: - delete: - description: delete a PodDisruptionBudget - operationId: deleteNamespacedPodDisruptionBudget - parameters: - - description: name of the PodDisruptionBudget - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "The duration in seconds before the object should be deleted.\ - \ Value must be non-negative integer. The value zero indicates delete immediately.\ - \ If this value is nil, the default grace period for the specified type\ - \ will be used. Defaults to a per object value if not specified. zero means\ - \ delete immediately." - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: "if set to true, it will trigger an unsafe deletion of the resource\ - \ in case the normal deletion flow fails with a corrupt object error. A\ - \ resource is considered corrupt if it can not be retrieved from the underlying\ - \ storage successfully because of a) its data can not be transformed e.g.\ - \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ - \ deletion ignores finalizer constraints, skips precondition checks, and\ - \ removes the object from the storage. WARNING: This may potentially break\ - \ the cluster if the workload associated with the resource being unsafe-deleted\ - \ relies on normal deletion flow. Use only if you REALLY know what you are\ - \ doing. The default value is false, and the user must opt in to enable\ - \ it" - in: query - name: ignoreStoreReadErrorWithClusterBreakingPotential - schema: - type: boolean - - description: "Deprecated: please use the PropagationPolicy, this field will\ - \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ - \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ - \ list. Either this field or PropagationPolicy may be set, but not both." - in: query - name: orphanDependents - schema: - type: boolean - - description: "Whether and how garbage collection will be performed. Either\ - \ this field or OrphanDependents may be set, but not both. The default policy\ - \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy. Acceptable values are: 'Orphan'\ - \ - orphan the dependents; 'Background' - allow the garbage collector to\ - \ delete the dependents in the background; 'Foreground' - a cascading policy\ - \ that deletes all dependents in the foreground." - in: query - name: propagationPolicy - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.DeleteOptions" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Status" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Status" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Status" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Status" - description: OK - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.RoleBindingList" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.RoleBindingList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.RoleBindingList" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - policy_v1 - x-kubernetes-action: delete - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: read the specified PodDisruptionBudget - operationId: readNamespacedPodDisruptionBudget - parameters: - - description: name of the PodDisruptionBudget - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - application/yaml: + $ref: "#/components/schemas/v1.RoleBindingList" + application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1.RoleBindingList" + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - application/cbor: + $ref: "#/components/schemas/v1.RoleBindingList" + application/cbor-seq: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBindingList" description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 - x-kubernetes-action: get + - rbacAuthorization_v1 + x-kubernetes-action: list x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - patch: - description: partially update the specified PodDisruptionBudget - operationId: patchNamespacedPodDisruptionBudget + post: + description: create a RoleBinding + operationId: createNamespacedRoleBinding parameters: - - description: name of the PodDisruptionBudget - in: path - name: name - required: true - schema: - type: string - description: "object name and auth scope, such as for teams and projects" in: path name: namespace @@ -63778,9 +72077,7 @@ paths: type: string - description: "fieldManager is a name associated with the actor or entity that\ \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query name: fieldManager schema: @@ -63802,59 +72099,67 @@ paths: name: fieldValidation schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.Patch" + $ref: "#/components/schemas/v1.RoleBinding" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.RoleBinding" + application/yaml: + schema: + $ref: "#/components/schemas/v1.RoleBinding" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.RoleBinding" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RoleBinding" + description: Accepted "401": content: {} description: Unauthorized tags: - - policy_v1 - x-kubernetes-action: patch + - rbacAuthorization_v1 + x-kubernetes-action: post x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -63863,11 +72168,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - put: - description: replace the specified PodDisruptionBudget - operationId: replaceNamespacedPodDisruptionBudget + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}: + delete: + description: delete a RoleBinding + operationId: deleteNamespacedRoleBinding parameters: - - description: name of the PodDisruptionBudget + - description: name of the RoleBinding in: path name: name required: true @@ -63894,76 +72200,95 @@ paths: name: dryRun schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." in: query - name: fieldManager + name: gracePeriodSeconds schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" in: query - name: fieldValidation + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy schema: type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - required: true + $ref: "#/components/schemas/v1.DeleteOptions" + required: false responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.Status" description: OK - "201": + "202": content: application/json: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" - description: Created + $ref: "#/components/schemas/v1.Status" + description: Accepted "401": content: {} description: Unauthorized tags: - - policy_v1 - x-kubernetes-action: put + - rbacAuthorization_v1 + x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -63972,12 +72297,11 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/policy/v1/namespaces/{namespace}/poddisruptionbudgets/{name}/status: get: - description: read status of the specified PodDisruptionBudget - operationId: readNamespacedPodDisruptionBudgetStatus + description: read the specified RoleBinding + operationId: readNamespacedRoleBinding parameters: - - description: name of the PodDisruptionBudget + - description: name of the RoleBinding in: path name: name required: true @@ -64001,26 +72325,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" description: OK "401": content: {} description: Unauthorized tags: - - policy_v1 + - rbacAuthorization_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-accepts: - application/cbor @@ -64028,10 +72352,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified PodDisruptionBudget - operationId: patchNamespacedPodDisruptionBudgetStatus + description: partially update the specified RoleBinding + operationId: patchNamespacedRoleBinding parameters: - - description: name of the PodDisruptionBudget + - description: name of the RoleBinding in: path name: name required: true @@ -64102,41 +72426,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" description: Created "401": content: {} description: Unauthorized tags: - - policy_v1 + - rbacAuthorization_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -64146,10 +72470,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified PodDisruptionBudget - operationId: replaceNamespacedPodDisruptionBudgetStatus + description: replace the specified RoleBinding + operationId: replaceNamespacedRoleBinding parameters: - - description: name of the PodDisruptionBudget + - description: name of the RoleBinding in: path name: name required: true @@ -64204,48 +72528,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/yaml: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" application/cbor: schema: - $ref: "#/components/schemas/v1.PodDisruptionBudget" + $ref: "#/components/schemas/v1.RoleBinding" description: Created "401": content: {} description: Unauthorized tags: - - policy_v1 + - rbacAuthorization_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget + group: rbac.authorization.k8s.io + kind: RoleBinding version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -64254,209 +72578,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/policy/v1/poddisruptionbudgets: - get: - description: list or watch objects of kind PodDisruptionBudget - operationId: listPodDisruptionBudgetForAllNamespaces + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles: + delete: + description: delete collection of Role + operationId: deleteCollectionNamespacedRole parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersionMatch + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" - application/json;stream=watch: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" - application/cbor-seq: - schema: - $ref: "#/components/schemas/v1.PodDisruptionBudgetList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - policy_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: policy - kind: PodDisruptionBudget - version: v1 - x-accepts: - - application/cbor - - application/cbor-seq - - application/json - - application/json;stream=watch - - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - - application/yaml - /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets: {} - /apis/policy/v1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}: {} - /apis/policy/v1/watch/poddisruptionbudgets: {} - /apis/rbac.authorization.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIGroup" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - rbacAuthorization - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/rbac.authorization.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - rbacAuthorization_v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/rbac.authorization.k8s.io/v1/clusterrolebindings: - delete: - description: delete collection of ClusterRoleBinding - operationId: deleteCollectionClusterRoleBinding - parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -64577,6 +72709,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -64613,7 +72772,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + kind: Role version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -64623,9 +72782,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ClusterRoleBinding - operationId: listClusterRoleBinding + description: list or watch objects of kind Role + operationId: listNamespacedRole parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -64705,6 +72870,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -64722,25 +72914,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRoleBindingList" + $ref: "#/components/schemas/v1.RoleList" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRoleBindingList" + $ref: "#/components/schemas/v1.RoleList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRoleBindingList" + $ref: "#/components/schemas/v1.RoleList" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRoleBindingList" + $ref: "#/components/schemas/v1.RoleList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.ClusterRoleBindingList" + $ref: "#/components/schemas/v1.RoleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.ClusterRoleBindingList" + $ref: "#/components/schemas/v1.RoleList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.ClusterRoleBindingList" + $ref: "#/components/schemas/v1.RoleList" description: OK "401": content: {} @@ -64750,7 +72942,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + kind: Role version: v1 x-accepts: - application/cbor @@ -64761,9 +72953,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ClusterRoleBinding - operationId: createClusterRoleBinding + description: create a Role + operationId: createNamespacedRole parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -64807,53 +73005,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" description: Accepted "401": content: {} @@ -64863,7 +73061,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + kind: Role version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -64872,17 +73070,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}: + /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}: delete: - description: delete a ClusterRoleBinding - operationId: deleteClusterRoleBinding + description: delete a Role + operationId: deleteNamespacedRole parameters: - - description: name of the ClusterRoleBinding + - description: name of the Role in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -64986,7 +73190,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + kind: Role version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -64996,15 +73200,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ClusterRoleBinding - operationId: readClusterRoleBinding + description: read the specified Role + operationId: readNamespacedRole parameters: - - description: name of the ClusterRoleBinding + - description: name of the Role in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -65017,16 +73227,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" description: OK "401": content: {} @@ -65036,7 +73246,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + kind: Role version: v1 x-accepts: - application/cbor @@ -65044,15 +73254,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ClusterRoleBinding - operationId: patchClusterRoleBinding + description: partially update the specified Role + operationId: patchNamespacedRole parameters: - - description: name of the ClusterRoleBinding + - description: name of the Role in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -65112,31 +73328,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" description: Created "401": content: {} @@ -65146,7 +73362,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + kind: Role version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -65156,15 +73372,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ClusterRoleBinding - operationId: replaceClusterRoleBinding + description: replace the specified Role + operationId: replaceNamespacedRole parameters: - - description: name of the ClusterRoleBinding + - description: name of the Role in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -65208,38 +73430,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRoleBinding" + $ref: "#/components/schemas/v1.Role" description: Created "401": content: {} @@ -65249,7 +73471,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: rbac.authorization.k8s.io - kind: ClusterRoleBinding + kind: Role version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -65258,10 +73480,408 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/clusterroles: + /apis/rbac.authorization.k8s.io/v1/rolebindings: + get: + description: list or watch objects of kind RoleBinding + operationId: listRoleBindingForAllNamespaces + parameters: + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.RoleBindingList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.RoleBindingList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.RoleBindingList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RoleBindingList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.RoleBindingList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.RoleBindingList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.RoleBindingList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - rbacAuthorization_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: rbac.authorization.k8s.io + kind: RoleBinding + version: v1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/rbac.authorization.k8s.io/v1/roles: + get: + description: list or watch objects of kind Role + operationId: listRoleForAllNamespaces + parameters: + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.RoleList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.RoleList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.RoleList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.RoleList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.RoleList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.RoleList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.RoleList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - rbacAuthorization_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: rbac.authorization.k8s.io + kind: Role + version: v1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings: {} + /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/clusterroles: {} + /apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles: {} + /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}: {} + /apis/rbac.authorization.k8s.io/v1/watch/rolebindings: {} + /apis/rbac.authorization.k8s.io/v1/watch/roles: {} + /apis/resource.k8s.io/: + get: + description: get information of a group + operationId: getAPIGroup + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource + x-accepts: + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1/deviceclasses: delete: - description: delete collection of ClusterRole - operationId: deleteCollectionClusterRole + description: delete collection of DeviceClass + operationId: deleteCollectionDeviceClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -65383,6 +74003,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -65415,11 +74062,11 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: resource.k8s.io + kind: DeviceClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -65429,8 +74076,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ClusterRole - operationId: listClusterRole + description: list or watch objects of kind DeviceClass + operationId: listDeviceClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -65511,6 +74158,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -65528,35 +74202,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRoleList" + $ref: "#/components/schemas/v1.DeviceClassList" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRoleList" + $ref: "#/components/schemas/v1.DeviceClassList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRoleList" + $ref: "#/components/schemas/v1.DeviceClassList" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRoleList" + $ref: "#/components/schemas/v1.DeviceClassList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.ClusterRoleList" + $ref: "#/components/schemas/v1.DeviceClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.ClusterRoleList" + $ref: "#/components/schemas/v1.DeviceClassList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.ClusterRoleList" + $ref: "#/components/schemas/v1.DeviceClassList" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: resource.k8s.io + kind: DeviceClass version: v1 x-accepts: - application/cbor @@ -65567,8 +74241,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ClusterRole - operationId: createClusterRole + description: create a DeviceClass + operationId: createDeviceClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -65613,63 +74287,63 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: resource.k8s.io + kind: DeviceClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -65678,12 +74352,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/clusterroles/{name}: + /apis/resource.k8s.io/v1/deviceclasses/{name}: delete: - description: delete a ClusterRole - operationId: deleteClusterRole + description: delete a DeviceClass + operationId: deleteDeviceClass parameters: - - description: name of the ClusterRole + - description: name of the DeviceClass in: path name: name required: true @@ -65758,41 +74432,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.DeviceClass" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.DeviceClass" description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: resource.k8s.io + kind: DeviceClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -65802,10 +74476,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ClusterRole - operationId: readClusterRole + description: read the specified DeviceClass + operationId: readDeviceClass parameters: - - description: name of the ClusterRole + - description: name of the DeviceClass in: path name: name required: true @@ -65823,26 +74497,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: resource.k8s.io + kind: DeviceClass version: v1 x-accepts: - application/cbor @@ -65850,10 +74524,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ClusterRole - operationId: patchClusterRole + description: partially update the specified DeviceClass + operationId: patchDeviceClass parameters: - - description: name of the ClusterRole + - description: name of the DeviceClass in: path name: name required: true @@ -65918,41 +74592,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: resource.k8s.io + kind: DeviceClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -65962,10 +74636,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ClusterRole - operationId: replaceClusterRole + description: replace the specified DeviceClass + operationId: replaceDeviceClass parameters: - - description: name of the ClusterRole + - description: name of the DeviceClass in: path name: name required: true @@ -66014,48 +74688,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ClusterRole" + $ref: "#/components/schemas/v1.DeviceClass" description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: ClusterRole + group: resource.k8s.io + kind: DeviceClass version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -66064,10 +74738,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings: + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims: delete: - description: delete collection of RoleBinding - operationId: deleteCollectionNamespacedRoleBinding + description: delete collection of ResourceClaim + operationId: deleteCollectionNamespacedResourceClaim parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -66195,6 +74869,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -66227,11 +74928,11 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: resource.k8s.io + kind: ResourceClaim version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -66241,8 +74942,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind RoleBinding - operationId: listNamespacedRoleBinding + description: list or watch objects of kind ResourceClaim + operationId: listNamespacedResourceClaim parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -66329,6 +75030,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -66346,35 +75074,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RoleBindingList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/yaml: schema: - $ref: "#/components/schemas/v1.RoleBindingList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RoleBindingList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/cbor: schema: - $ref: "#/components/schemas/v1.RoleBindingList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.RoleBindingList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.RoleBindingList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.RoleBindingList" + $ref: "#/components/schemas/v1.ResourceClaimList" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: resource.k8s.io + kind: ResourceClaim version: v1 x-accepts: - application/cbor @@ -66385,8 +75113,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a RoleBinding - operationId: createNamespacedRoleBinding + description: create a ResourceClaim + operationId: createNamespacedResourceClaim parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -66437,63 +75165,63 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: resource.k8s.io + kind: ResourceClaim version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -66502,12 +75230,312 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}: + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}: delete: - description: delete a RoleBinding - operationId: deleteNamespacedRoleBinding + description: delete a ResourceClaim + operationId: deleteNamespacedResourceClaim parameters: - - description: name of the RoleBinding + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/yaml: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + description: OK + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/yaml: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified ResourceClaim + operationId: readNamespacedResourceClaim + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/yaml: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified ResourceClaim + operationId: patchNamespacedResourceClaim + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/yaml: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/yaml: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/resource.v1.ResourceClaim" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified ResourceClaim + operationId: replaceNamespacedResourceClaim + parameters: + - description: name of the ResourceClaim in: path name: name required: true @@ -66534,95 +75562,76 @@ paths: name: dryRun schema: type: string - - description: "The duration in seconds before the object should be deleted.\ - \ Value must be non-negative integer. The value zero indicates delete immediately.\ - \ If this value is nil, the default grace period for the specified type\ - \ will be used. Defaults to a per object value if not specified. zero means\ - \ delete immediately." - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: "if set to true, it will trigger an unsafe deletion of the resource\ - \ in case the normal deletion flow fails with a corrupt object error. A\ - \ resource is considered corrupt if it can not be retrieved from the underlying\ - \ storage successfully because of a) its data can not be transformed e.g.\ - \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ - \ deletion ignores finalizer constraints, skips precondition checks, and\ - \ removes the object from the storage. WARNING: This may potentially break\ - \ the cluster if the workload associated with the resource being unsafe-deleted\ - \ relies on normal deletion flow. Use only if you REALLY know what you are\ - \ doing. The default value is false, and the user must opt in to enable\ - \ it" - in: query - name: ignoreStoreReadErrorWithClusterBreakingPotential - schema: - type: boolean - - description: "Deprecated: please use the PropagationPolicy, this field will\ - \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ - \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ - \ list. Either this field or PropagationPolicy may be set, but not both." + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: orphanDependents + name: fieldManager schema: - type: boolean - - description: "Whether and how garbage collection will be performed. Either\ - \ this field or OrphanDependents may be set, but not both. The default policy\ - \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy. Acceptable values are: 'Orphan'\ - \ - orphan the dependents; 'Background' - allow the garbage collector to\ - \ delete the dependents in the background; 'Foreground' - a cascading policy\ - \ that deletes all dependents in the foreground." + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: propagationPolicy + name: fieldValidation schema: type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.DeleteOptions" - required: false + $ref: "#/components/schemas/resource.v1.ResourceClaim" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK - "202": + "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" - description: Accepted + $ref: "#/components/schemas/resource.v1.ResourceClaim" + description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 - x-kubernetes-action: delete + - resource_v1 + x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: resource.k8s.io + kind: ResourceClaim version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -66631,11 +75640,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status: get: - description: read the specified RoleBinding - operationId: readNamespacedRoleBinding + description: read status of the specified ResourceClaim + operationId: readNamespacedResourceClaimStatus parameters: - - description: name of the RoleBinding + - description: name of the ResourceClaim in: path name: name required: true @@ -66659,26 +75669,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: resource.k8s.io + kind: ResourceClaim version: v1 x-accepts: - application/cbor @@ -66686,10 +75696,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified RoleBinding - operationId: patchNamespacedRoleBinding + description: partially update status of the specified ResourceClaim + operationId: patchNamespacedResourceClaimStatus parameters: - - description: name of the RoleBinding + - description: name of the ResourceClaim in: path name: name required: true @@ -66760,41 +75770,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: resource.k8s.io + kind: ResourceClaim version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -66804,10 +75814,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified RoleBinding - operationId: replaceNamespacedRoleBinding + description: replace status of the specified ResourceClaim + operationId: replaceNamespacedResourceClaimStatus parameters: - - description: name of the RoleBinding + - description: name of the ResourceClaim in: path name: name required: true @@ -66862,48 +75872,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1.RoleBinding" + $ref: "#/components/schemas/resource.v1.ResourceClaim" description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: resource.k8s.io + kind: ResourceClaim version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -66912,10 +75922,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles: + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates: delete: - description: delete collection of Role - operationId: deleteCollectionNamespacedRole + description: delete collection of ResourceClaimTemplate + operationId: deleteCollectionNamespacedResourceClaimTemplate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -67043,6 +76053,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -67075,11 +76112,11 @@ paths: content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: resource.k8s.io + kind: ResourceClaimTemplate version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -67089,8 +76126,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind Role - operationId: listNamespacedRole + description: list or watch objects of kind ResourceClaimTemplate + operationId: listNamespacedResourceClaimTemplate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -67177,6 +76214,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -67194,35 +76258,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RoleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/yaml: schema: - $ref: "#/components/schemas/v1.RoleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RoleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/cbor: schema: - $ref: "#/components/schemas/v1.RoleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.RoleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.RoleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.RoleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: resource.k8s.io + kind: ResourceClaimTemplate version: v1 x-accepts: - application/cbor @@ -67233,8 +76297,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a Role - operationId: createNamespacedRole + description: create a ResourceClaimTemplate + operationId: createNamespacedResourceClaimTemplate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -67285,63 +76349,63 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: resource.k8s.io + kind: ResourceClaimTemplate version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -67350,12 +76414,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}: + /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}: delete: - description: delete a Role - operationId: deleteNamespacedRole + description: delete a ResourceClaimTemplate + operationId: deleteNamespacedResourceClaimTemplate parameters: - - description: name of the Role + - description: name of the ResourceClaimTemplate in: path name: name required: true @@ -67436,41 +76500,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.Status" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Accepted "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: resource.k8s.io + kind: ResourceClaimTemplate version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -67480,10 +76544,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified Role - operationId: readNamespacedRole + description: read the specified ResourceClaimTemplate + operationId: readNamespacedResourceClaimTemplate parameters: - - description: name of the Role + - description: name of the ResourceClaimTemplate in: path name: name required: true @@ -67507,26 +76571,26 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: resource.k8s.io + kind: ResourceClaimTemplate version: v1 x-accepts: - application/cbor @@ -67534,10 +76598,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified Role - operationId: patchNamespacedRole + description: partially update the specified ResourceClaimTemplate + operationId: patchNamespacedResourceClaimTemplate parameters: - - description: name of the Role + - description: name of the ResourceClaimTemplate in: path name: name required: true @@ -67608,41 +76672,41 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: resource.k8s.io + kind: ResourceClaimTemplate version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -67652,10 +76716,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified Role - operationId: replaceNamespacedRole + description: replace the specified ResourceClaimTemplate + operationId: replaceNamespacedResourceClaimTemplate parameters: - - description: name of the Role + - description: name of the ResourceClaimTemplate in: path name: name required: true @@ -67710,48 +76774,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1.Role" + $ref: "#/components/schemas/v1.ResourceClaimTemplate" description: Created "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: resource.k8s.io + kind: ResourceClaimTemplate version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -67760,10 +76824,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/rbac.authorization.k8s.io/v1/rolebindings: + /apis/resource.k8s.io/v1/resourceclaims: get: - description: list or watch objects of kind RoleBinding - operationId: listRoleBindingForAllNamespaces + description: list or watch objects of kind ResourceClaim + operationId: listResourceClaimForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -67844,6 +76908,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -67861,35 +76952,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RoleBindingList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/yaml: schema: - $ref: "#/components/schemas/v1.RoleBindingList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RoleBindingList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/cbor: schema: - $ref: "#/components/schemas/v1.RoleBindingList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.RoleBindingList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.RoleBindingList" + $ref: "#/components/schemas/v1.ResourceClaimList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.RoleBindingList" + $ref: "#/components/schemas/v1.ResourceClaimList" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: RoleBinding + group: resource.k8s.io + kind: ResourceClaim version: v1 x-accepts: - application/cbor @@ -67899,10 +76990,10 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/rbac.authorization.k8s.io/v1/roles: + /apis/resource.k8s.io/v1/resourceclaimtemplates: get: - description: list or watch objects of kind Role - operationId: listRoleForAllNamespaces + description: list or watch objects of kind ResourceClaimTemplate + operationId: listResourceClaimTemplateForAllNamespaces parameters: - description: "allowWatchBookmarks requests watch events with type \"BOOKMARK\"\ . Servers that do not implement bookmarks may ignore this flag and bookmarks\ @@ -67983,6 +77074,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -68000,35 +77118,35 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.RoleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/yaml: schema: - $ref: "#/components/schemas/v1.RoleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.RoleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/cbor: schema: - $ref: "#/components/schemas/v1.RoleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.RoleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.RoleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.RoleList" + $ref: "#/components/schemas/v1.ResourceClaimTemplateList" description: OK "401": content: {} description: Unauthorized tags: - - rbacAuthorization_v1 + - resource_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: rbac.authorization.k8s.io - kind: Role + group: resource.k8s.io + kind: ResourceClaimTemplate version: v1 x-accepts: - application/cbor @@ -68038,76 +77156,10 @@ paths: - application/vnd.kubernetes.protobuf - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings: {} - /apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/clusterroles: {} - /apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles: {} - /apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}: {} - /apis/rbac.authorization.k8s.io/v1/watch/rolebindings: {} - /apis/rbac.authorization.k8s.io/v1/watch/roles: {} - /apis/resource.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIGroup" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/resource.k8s.io/v1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/resource.k8s.io/v1/deviceclasses: + /apis/resource.k8s.io/v1/resourceslices: delete: - description: delete collection of DeviceClass - operationId: deleteCollectionDeviceClass + description: delete collection of ResourceSlice + operationId: deleteCollectionResourceSlice parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -68229,134 +77281,188 @@ paths: name: sendInitialEvents schema: type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.DeleteOptions" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Status" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Status" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Status" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Status" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1 - x-kubernetes-action: deletecollection - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceClass - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: list or watch objects of kind DeviceClass - operationId: listDeviceClass - parameters: - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - description: |- - 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". + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceSlice + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind ResourceSlice + operationId: listResourceSlice + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - 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. + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - 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. - in: query - name: limit - schema: - type: integer - - description: |- - 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. + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. in: query - name: sendInitialEvents + name: shardSelector schema: - type: boolean + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -68374,25 +77480,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.DeviceClassList" + $ref: "#/components/schemas/v1.ResourceSliceList" application/yaml: schema: - $ref: "#/components/schemas/v1.DeviceClassList" + $ref: "#/components/schemas/v1.ResourceSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DeviceClassList" + $ref: "#/components/schemas/v1.ResourceSliceList" application/cbor: schema: - $ref: "#/components/schemas/v1.DeviceClassList" + $ref: "#/components/schemas/v1.ResourceSliceList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.DeviceClassList" + $ref: "#/components/schemas/v1.ResourceSliceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.DeviceClassList" + $ref: "#/components/schemas/v1.ResourceSliceList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.DeviceClassList" + $ref: "#/components/schemas/v1.ResourceSliceList" description: OK "401": content: {} @@ -68402,7 +77508,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceSlice version: v1 x-accepts: - application/cbor @@ -68413,8 +77519,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a DeviceClass - operationId: createDeviceClass + description: create a ResourceSlice + operationId: createResourceSlice parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -68459,53 +77565,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" description: Accepted "401": content: {} @@ -68515,7 +77621,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -68524,12 +77630,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/deviceclasses/{name}: + /apis/resource.k8s.io/v1/resourceslices/{name}: delete: - description: delete a DeviceClass - operationId: deleteDeviceClass + description: delete a ResourceSlice + operationId: deleteResourceSlice parameters: - - description: name of the DeviceClass + - description: name of the ResourceSlice in: path name: name required: true @@ -68604,31 +77710,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" description: Accepted "401": content: {} @@ -68638,7 +77744,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -68648,10 +77754,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified DeviceClass - operationId: readDeviceClass + description: read the specified ResourceSlice + operationId: readResourceSlice parameters: - - description: name of the DeviceClass + - description: name of the ResourceSlice in: path name: name required: true @@ -68669,16 +77775,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "401": content: {} @@ -68688,7 +77794,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceSlice version: v1 x-accepts: - application/cbor @@ -68696,10 +77802,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified DeviceClass - operationId: patchDeviceClass + description: partially update the specified ResourceSlice + operationId: patchResourceSlice parameters: - - description: name of the DeviceClass + - description: name of the ResourceSlice in: path name: name required: true @@ -68764,31 +77870,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" description: Created "401": content: {} @@ -68798,7 +77904,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -68808,10 +77914,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified DeviceClass - operationId: replaceDeviceClass + description: replace the specified ResourceSlice + operationId: replaceResourceSlice parameters: - - description: name of the DeviceClass + - description: name of the ResourceSlice in: path name: name required: true @@ -68860,38 +77966,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1.DeviceClass" + $ref: "#/components/schemas/v1.ResourceSlice" description: Created "401": content: {} @@ -68901,7 +78007,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceSlice version: v1 x-codegen-request-body-name: body x-content-type: application/json @@ -68910,17 +78016,51 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims: + /apis/resource.k8s.io/v1/watch/deviceclasses: {} + /apis/resource.k8s.io/v1/watch/deviceclasses/{name}: {} + /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims: {} + /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims/{name}: {} + /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} + /apis/resource.k8s.io/v1/watch/resourceclaims: {} + /apis/resource.k8s.io/v1/watch/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1/watch/resourceslices: {} + /apis/resource.k8s.io/v1/watch/resourceslices/{name}: {} + /apis/resource.k8s.io/v1alpha3/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1alpha3/devicetaintrules: delete: - description: delete collection of ResourceClaim - operationId: deleteCollectionNamespacedResourceClaim + description: delete collection of DeviceTaintRule + operationId: deleteCollectionDeviceTaintRule parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -69041,6 +78181,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -69073,12 +78240,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1alpha3 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1 + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69087,15 +78254,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceClaim - operationId: listNamespacedResourceClaim + description: list or watch objects of kind DeviceTaintRule + operationId: listDeviceTaintRule parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -69175,6 +78336,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -69192,36 +78380,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1alpha3 x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1 + kind: DeviceTaintRule + version: v1alpha3 x-accepts: - application/cbor - application/cbor-seq @@ -69231,15 +78419,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceClaim - operationId: createNamespacedResourceClaim + description: create a DeviceTaintRule + operationId: createDeviceTaintRule parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -69283,64 +78465,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1alpha3 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1 + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69348,23 +78530,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}: + /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}: delete: - description: delete a ResourceClaim - operationId: deleteNamespacedResourceClaim + description: delete a DeviceTaintRule + operationId: deleteDeviceTaintRule parameters: - - description: name of the ResourceClaim + - description: name of the DeviceTaintRule in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -69434,42 +78610,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1alpha3 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1 + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69478,21 +78654,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClaim - operationId: readNamespacedResourceClaim + description: read the specified DeviceTaintRule + operationId: readDeviceTaintRule parameters: - - description: name of the ResourceClaim + - description: name of the DeviceTaintRule in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -69505,48 +78675,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1 + kind: DeviceTaintRule + version: v1alpha3 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClaim - operationId: patchNamespacedResourceClaim + description: partially update the specified DeviceTaintRule + operationId: patchDeviceTaintRule parameters: - - description: name of the ResourceClaim + - description: name of the DeviceTaintRule in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -69606,42 +78770,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1alpha3 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1 + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69650,21 +78814,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceClaim - operationId: replaceNamespacedResourceClaim + description: replace the specified DeviceTaintRule + operationId: replaceDeviceTaintRule parameters: - - description: name of the ResourceClaim + - description: name of the DeviceTaintRule in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -69708,49 +78866,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1 + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -69758,23 +78916,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status: + /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status: get: - description: read status of the specified ResourceClaim - operationId: readNamespacedResourceClaimStatus + description: read status of the specified DeviceTaintRule + operationId: readDeviceTaintRuleStatus parameters: - - description: name of the ResourceClaim + - description: name of the DeviceTaintRule in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -69787,48 +78939,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1 + kind: DeviceTaintRule + version: v1alpha3 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified ResourceClaim - operationId: patchNamespacedResourceClaimStatus + description: partially update status of the specified DeviceTaintRule + operationId: patchDeviceTaintRuleStatus parameters: - - description: name of the ResourceClaim + - description: name of the DeviceTaintRule in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -69870,169 +79016,60 @@ paths: name: fieldValidation schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Patch" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - application/yaml: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - application/cbor: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - application/yaml: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - application/cbor: - schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace status of the specified ResourceClaim - operationId: replaceNamespacedResourceClaimStatus - parameters: - - description: name of the ResourceClaim - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean requestBody: content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/resource.v1.ResourceClaim" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1 - x-kubernetes-action: put + - resource_v1alpha3 + x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1 + kind: DeviceTaintRule + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -70040,17 +79077,114 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates: - delete: - description: delete collection of ResourceClaimTemplate - operationId: deleteCollectionNamespacedResourceClaimTemplate + put: + description: replace status of the specified DeviceTaintRule + operationId: replaceDeviceTaintRuleStatus parameters: - - description: "object name and auth scope, such as for teams and projects" + - description: name of the DeviceTaintRule in: path - name: namespace + name: name required: true schema: type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests: + delete: + description: delete collection of ResourcePoolStatusRequest + operationId: deleteCollectionResourcePoolStatusRequest + parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70171,6 +79305,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -70203,12 +79364,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1alpha3 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1 + kind: ResourcePoolStatusRequest + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -70217,15 +79378,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceClaimTemplate - operationId: listNamespacedResourceClaimTemplate + description: list or watch objects of kind ResourcePoolStatusRequest + operationId: listResourcePoolStatusRequest parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70305,6 +79460,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -70322,36 +79504,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestList" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1alpha3 x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1 + kind: ResourcePoolStatusRequest + version: v1alpha3 x-accepts: - application/cbor - application/cbor-seq @@ -70361,15 +79543,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceClaimTemplate - operationId: createNamespacedResourceClaimTemplate + description: create a ResourcePoolStatusRequest + operationId: createResourcePoolStatusRequest parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70413,64 +79589,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1alpha3 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1 + kind: ResourcePoolStatusRequest + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -70478,23 +79654,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}: + /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}: delete: - description: delete a ResourceClaimTemplate - operationId: deleteNamespacedResourceClaimTemplate + description: delete a ResourcePoolStatusRequest + operationId: deleteResourcePoolStatusRequest parameters: - - description: name of the ResourceClaimTemplate + - description: name of the ResourcePoolStatusRequest in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70564,42 +79734,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1alpha3 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1 + kind: ResourcePoolStatusRequest + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -70608,21 +79778,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClaimTemplate - operationId: readNamespacedResourceClaimTemplate + description: read the specified ResourcePoolStatusRequest + operationId: readResourcePoolStatusRequest parameters: - - description: name of the ResourceClaimTemplate + - description: name of the ResourcePoolStatusRequest in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70635,48 +79799,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1alpha3 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1 + kind: ResourcePoolStatusRequest + version: v1alpha3 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClaimTemplate - operationId: patchNamespacedResourceClaimTemplate + description: partially update the specified ResourcePoolStatusRequest + operationId: patchResourcePoolStatusRequest parameters: - - description: name of the ResourceClaimTemplate + - description: name of the ResourcePoolStatusRequest in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70736,42 +79894,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1alpha3 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1 + kind: ResourcePoolStatusRequest + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -70780,21 +79938,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceClaimTemplate - operationId: replaceNamespacedResourceClaimTemplate + description: replace the specified ResourcePoolStatusRequest + operationId: replaceResourcePoolStatusRequest parameters: - - description: name of the ResourceClaimTemplate + - description: name of the ResourcePoolStatusRequest in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70838,49 +79990,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1alpha3 x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1 + kind: ResourcePoolStatusRequest + version: v1alpha3 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -70888,49 +80040,65 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/resourceclaims: + /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status: get: - description: list or watch objects of kind ResourceClaim - operationId: listResourceClaimForAllNamespaces + description: read status of the specified ResourcePoolStatusRequest + operationId: readResourcePoolStatusRequestStatus parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue + - description: name of the ResourcePoolStatusRequest + in: path + name: name + required: true schema: type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." in: query - name: fieldSelector + name: pretty schema: type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1alpha3 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourcePoolStatusRequest + version: v1alpha3 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update status of the specified ResourcePoolStatusRequest + operationId: patchResourcePoolStatusRequestStatus + parameters: + - description: name of the ResourcePoolStatusRequest + in: path + name: name + required: true schema: type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -70938,138 +80106,111 @@ paths: name: pretty schema: type: string - - description: |- - 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 + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - 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 + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: timeoutSeconds + name: fieldValidation schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: watch + name: force schema: type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" - application/json;stream=watch: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" - application/cbor-seq: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimList" - description: OK + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + description: Created "401": content: {} description: Unauthorized tags: - - resource_v1 - x-kubernetes-action: list + - resource_v1alpha3 + x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1 + kind: ResourcePoolStatusRequest + version: v1alpha3 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1/resourceclaimtemplates: - get: - description: list or watch objects of kind ResourceClaimTemplate - operationId: listResourceClaimTemplateForAllNamespaces + put: + description: replace status of the specified ResourcePoolStatusRequest + operationId: replaceResourcePoolStatusRequestStatus parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + - description: name of the ResourcePoolStatusRequest + in: path + name: name + required: true schema: type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -71077,99 +80218,130 @@ paths: name: pretty schema: type: string - - description: |- - 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 + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - 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 + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: watch + name: fieldValidation schema: - type: boolean + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" - application/json;stream=watch: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" - application/cbor-seq: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceClaimTemplateList" - description: OK + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" + description: Created "401": content: {} description: Unauthorized tags: - - resource_v1 - x-kubernetes-action: list + - resource_v1alpha3 + x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1 + kind: ResourcePoolStatusRequest + version: v1alpha3 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1/resourceslices: + /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules: {} + /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{name}: {} + /apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests: {} + /apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests/{name}: {} + /apis/resource.k8s.io/v1beta1/: + get: + description: get available resources + operationId: getAPIResources + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.APIResourceList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1beta1/deviceclasses: delete: - description: delete collection of ResourceSlice - operationId: deleteCollectionResourceSlice + description: delete collection of DeviceClass + operationId: deleteCollectionDeviceClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -71291,6 +80463,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -71323,12 +80522,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1 + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71337,8 +80536,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceSlice - operationId: listResourceSlice + description: list or watch objects of kind DeviceClass + operationId: listDeviceClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -71419,6 +80618,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -71436,36 +80662,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSliceList" + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSliceList" + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSliceList" + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSliceList" + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.ResourceSliceList" + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.ResourceSliceList" + $ref: "#/components/schemas/v1beta1.DeviceClassList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.ResourceSliceList" + $ref: "#/components/schemas/v1beta1.DeviceClassList" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1 + kind: DeviceClass + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -71475,8 +80701,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceSlice - operationId: createResourceSlice + description: create a DeviceClass + operationId: createDeviceClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -71521,64 +80747,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1 + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71586,12 +80812,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/resourceslices/{name}: + /apis/resource.k8s.io/v1beta1/deviceclasses/{name}: delete: - description: delete a ResourceSlice - operationId: deleteResourceSlice + description: delete a DeviceClass + operationId: deleteDeviceClass parameters: - - description: name of the ResourceSlice + - description: name of the DeviceClass in: path name: name required: true @@ -71666,42 +80892,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1 + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71710,10 +80936,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceSlice - operationId: readResourceSlice + description: read the specified DeviceClass + operationId: readDeviceClass parameters: - - description: name of the ResourceSlice + - description: name of the DeviceClass in: path name: name required: true @@ -71731,37 +80957,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1 + kind: DeviceClass + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceSlice - operationId: patchResourceSlice + description: partially update the specified DeviceClass + operationId: patchDeviceClass parameters: - - description: name of the ResourceSlice + - description: name of the DeviceClass in: path name: name required: true @@ -71826,42 +81052,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1 + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71870,10 +81096,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceSlice - operationId: replaceResourceSlice + description: replace the specified DeviceClass + operationId: replaceDeviceClass parameters: - - description: name of the ResourceSlice + - description: name of the DeviceClass in: path name: name required: true @@ -71922,49 +81148,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1.ResourceSlice" + $ref: "#/components/schemas/v1beta1.DeviceClass" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1 + - resource_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1 + kind: DeviceClass + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -71972,51 +81198,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1/watch/deviceclasses: {} - /apis/resource.k8s.io/v1/watch/deviceclasses/{name}: {} - /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims: {} - /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaims/{name}: {} - /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} - /apis/resource.k8s.io/v1/watch/resourceclaims: {} - /apis/resource.k8s.io/v1/watch/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1/watch/resourceslices: {} - /apis/resource.k8s.io/v1/watch/resourceslices/{name}: {} - /apis/resource.k8s.io/v1alpha3/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1alpha3 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/resource.k8s.io/v1alpha3/devicetaintrules: + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims: delete: - description: delete collection of DeviceTaintRule - operationId: deleteCollectionDeviceTaintRule + description: delete collection of ResourceClaim + operationId: deleteCollectionNamespacedResourceClaim parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -72137,6 +81329,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -72169,12 +81388,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1beta1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72183,9 +81402,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind DeviceTaintRule - operationId: listDeviceTaintRule + description: list or watch objects of kind ResourceClaim + operationId: listNamespacedResourceClaim parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -72265,6 +81490,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -72282,36 +81534,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" + $ref: "#/components/schemas/v1beta1.ResourceClaimList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleList" + $ref: "#/components/schemas/v1beta1.ResourceClaimList" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1beta1 x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceClaim + version: v1beta1 x-accepts: - application/cbor - application/cbor-seq @@ -72321,9 +81573,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a DeviceTaintRule - operationId: createDeviceTaintRule + description: create a ResourceClaim + operationId: createNamespacedResourceClaim parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -72367,64 +81625,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1beta1 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72432,17 +81690,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}: + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}: delete: - description: delete a DeviceTaintRule - operationId: deleteDeviceTaintRule + description: delete a ResourceClaim + operationId: deleteNamespacedResourceClaim parameters: - - description: name of the DeviceTaintRule + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -72512,42 +81776,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1beta1 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72556,15 +81820,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified DeviceTaintRule - operationId: readDeviceTaintRule + description: read the specified ResourceClaim + operationId: readNamespacedResourceClaim parameters: - - description: name of the DeviceTaintRule + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -72577,42 +81847,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceClaim + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified DeviceTaintRule - operationId: patchDeviceTaintRule + description: partially update the specified ResourceClaim + operationId: patchNamespacedResourceClaim parameters: - - description: name of the DeviceTaintRule + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -72672,42 +81948,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72716,15 +81992,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified DeviceTaintRule - operationId: replaceDeviceTaintRule + description: replace the specified ResourceClaim + operationId: replaceNamespacedResourceClaim parameters: - - description: name of the DeviceTaintRule + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -72768,49 +82050,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72818,17 +82100,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status: + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status: get: - description: read status of the specified DeviceTaintRule - operationId: readDeviceTaintRuleStatus + description: read status of the specified ResourceClaim + operationId: readNamespacedResourceClaimStatus parameters: - - description: name of the DeviceTaintRule + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -72841,42 +82129,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1beta1 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceClaim + version: v1beta1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update status of the specified DeviceTaintRule - operationId: patchDeviceTaintRuleStatus + description: partially update status of the specified ResourceClaim + operationId: patchNamespacedResourceClaimStatus parameters: - - description: name of the DeviceTaintRule + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -72936,42 +82230,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1beta1 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -72980,15 +82274,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace status of the specified DeviceTaintRule - operationId: replaceDeviceTaintRuleStatus + description: replace status of the specified ResourceClaim + operationId: replaceNamespacedResourceClaimStatus parameters: - - description: name of the DeviceTaintRule + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -73032,49 +82332,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1beta1.ResourceClaim" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1alpha3 + - resource_v1beta1 x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceTaintRule - version: v1alpha3 + kind: ResourceClaim + version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -73082,43 +82382,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules: {} - /apis/resource.k8s.io/v1alpha3/watch/devicetaintrules/{name}: {} - /apis/resource.k8s.io/v1beta1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1beta1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/resource.k8s.io/v1beta1/deviceclasses: + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates: delete: - description: delete collection of DeviceClass - operationId: deleteCollectionDeviceClass + description: delete collection of ResourceClaimTemplate + operationId: deleteCollectionNamespacedResourceClaimTemplate parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -73239,6 +82513,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -73275,7 +82576,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaimTemplate version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -73285,9 +82586,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind DeviceClass - operationId: listDeviceClass + description: list or watch objects of kind ResourceClaimTemplate + operationId: listNamespacedResourceClaimTemplate parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -73367,6 +82674,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -73384,25 +82718,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClassList" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClassList" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClassList" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClassList" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.DeviceClassList" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.DeviceClassList" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.DeviceClassList" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" description: OK "401": content: {} @@ -73412,7 +82746,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaimTemplate version: v1beta1 x-accepts: - application/cbor @@ -73423,9 +82757,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a DeviceClass - operationId: createDeviceClass + description: create a ResourceClaimTemplate + operationId: createNamespacedResourceClaimTemplate parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -73469,53 +82809,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Accepted "401": content: {} @@ -73525,7 +82865,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaimTemplate version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -73534,17 +82874,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/deviceclasses/{name}: + /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}: delete: - description: delete a DeviceClass - operationId: deleteDeviceClass + description: delete a ResourceClaimTemplate + operationId: deleteNamespacedResourceClaimTemplate parameters: - - description: name of the DeviceClass + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -73614,31 +82960,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Accepted "401": content: {} @@ -73648,7 +82994,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaimTemplate version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -73658,15 +83004,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified DeviceClass - operationId: readDeviceClass + description: read the specified ResourceClaimTemplate + operationId: readNamespacedResourceClaimTemplate parameters: - - description: name of the DeviceClass + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -73679,16 +83031,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "401": content: {} @@ -73698,7 +83050,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaimTemplate version: v1beta1 x-accepts: - application/cbor @@ -73706,15 +83058,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified DeviceClass - operationId: patchDeviceClass + description: partially update the specified ResourceClaimTemplate + operationId: patchNamespacedResourceClaimTemplate parameters: - - description: name of the DeviceClass + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -73774,31 +83132,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" description: Created "401": content: {} @@ -73808,7 +83166,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaimTemplate version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -73818,119 +83176,451 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified DeviceClass - operationId: replaceDeviceClass + description: replace the specified ResourceClaimTemplate + operationId: replaceNamespacedResourceClaimTemplate parameters: - - description: name of the DeviceClass + - description: name of the ResourceClaimTemplate in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaimTemplate + version: v1beta1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1beta1/resourceclaims: + get: + description: list or watch objects of kind ResourceClaim + operationId: listResourceClaimForAllNamespaces + parameters: + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1beta1.ResourceClaimList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/resource.k8s.io/v1beta1/resourceclaimtemplates: + get: + description: list or watch objects of kind ResourceClaimTemplate + operationId: listResourceClaimTemplateForAllNamespaces + parameters: + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." in: query - name: pretty + name: pretty + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. in: query - name: dryRun + name: shardSelector schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query - name: fieldManager + name: timeoutSeconds schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." in: query - name: fieldValidation + name: watch schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" - required: true + type: boolean responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" - application/yaml: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" - application/cbor: + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.DeviceClass" - description: Created + $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + description: OK "401": content: {} description: Unauthorized tags: - resource_v1beta1 - x-kubernetes-action: put + x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaimTemplate version: v1beta1 - x-codegen-request-body-name: body - x-content-type: application/json x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims: + /apis/resource.k8s.io/v1beta1/resourceslices: delete: - description: delete collection of ResourceClaim - operationId: deleteCollectionNamespacedResourceClaim + description: delete collection of ResourceSlice + operationId: deleteCollectionResourceSlice parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -74051,6 +83741,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -74087,7 +83804,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: ResourceSlice version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -74097,15 +83814,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceClaim - operationId: listNamespacedResourceClaim + description: list or watch objects of kind ResourceSlice + operationId: listResourceSlice parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -74185,6 +83896,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -74202,25 +83940,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.ResourceSliceList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta1.ResourceSliceList" description: OK "401": content: {} @@ -74230,7 +83968,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: ResourceSlice version: v1beta1 x-accepts: - application/cbor @@ -74241,15 +83979,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceClaim - operationId: createNamespacedResourceClaim + description: create a ResourceSlice + operationId: createResourceSlice parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -74293,53 +84025,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Accepted "401": content: {} @@ -74349,7 +84081,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: ResourceSlice version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -74358,23 +84090,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}: + /apis/resource.k8s.io/v1beta1/resourceslices/{name}: delete: - description: delete a ResourceClaim - operationId: deleteNamespacedResourceClaim + description: delete a ResourceSlice + operationId: deleteResourceSlice parameters: - - description: name of the ResourceClaim + - description: name of the ResourceSlice in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -74444,31 +84170,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Accepted "401": content: {} @@ -74478,7 +84204,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: ResourceSlice version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -74488,21 +84214,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClaim - operationId: readNamespacedResourceClaim + description: read the specified ResourceSlice + operationId: readResourceSlice parameters: - - description: name of the ResourceClaim + - description: name of the ResourceSlice in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -74515,16 +84235,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "401": content: {} @@ -74534,7 +84254,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: ResourceSlice version: v1beta1 x-accepts: - application/cbor @@ -74542,21 +84262,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClaim - operationId: patchNamespacedResourceClaim + description: partially update the specified ResourceSlice + operationId: patchResourceSlice parameters: - - description: name of the ResourceClaim + - description: name of the ResourceSlice in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -74616,31 +84330,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Created "401": content: {} @@ -74650,7 +84364,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: ResourceSlice version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -74660,21 +84374,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceClaim - operationId: replaceNamespacedResourceClaim + description: replace the specified ResourceSlice + operationId: replaceResourceSlice parameters: - - description: name of the ResourceClaim + - description: name of the ResourceSlice in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -74718,38 +84426,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1beta1.ResourceSlice" description: Created "401": content: {} @@ -74759,7 +84467,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: ResourceSlice version: v1beta1 x-codegen-request-body-name: body x-content-type: application/json @@ -74768,299 +84476,51 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaims/{name}/status: + /apis/resource.k8s.io/v1beta1/watch/deviceclasses: {} + /apis/resource.k8s.io/v1beta1/watch/deviceclasses/{name}: {} + /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims: {} + /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims/{name}: {} + /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} + /apis/resource.k8s.io/v1beta1/watch/resourceclaims: {} + /apis/resource.k8s.io/v1beta1/watch/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1beta1/watch/resourceslices: {} + /apis/resource.k8s.io/v1beta1/watch/resourceslices/{name}: {} + /apis/resource.k8s.io/v1beta2/: get: - description: read status of the specified ResourceClaim - operationId: readNamespacedResourceClaimStatus - parameters: - - description: name of the ResourceClaim - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1beta1 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1beta1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update status of the specified ResourceClaim - operationId: patchNamespacedResourceClaimStatus - parameters: - - description: name of the ResourceClaim - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Patch" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1beta1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1beta1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace status of the specified ResourceClaim - operationId: replaceNamespacedResourceClaimStatus - parameters: - - description: name of the ResourceClaim - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - required: true + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" + $ref: "#/components/schemas/v1.APIResourceList" description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaim" - description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1beta1 - x-codegen-request-body-name: body - x-content-type: application/json + - resource_v1beta2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates: + /apis/resource.k8s.io/v1beta2/deviceclasses: delete: - description: delete collection of ResourceClaimTemplate - operationId: deleteCollectionNamespacedResourceClaimTemplate + description: delete collection of DeviceClass + operationId: deleteCollectionDeviceClass parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -75181,6 +84641,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -75213,12 +84700,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1beta2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 + kind: DeviceClass + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -75227,15 +84714,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceClaimTemplate - operationId: listNamespacedResourceClaimTemplate + description: list or watch objects of kind DeviceClass + operationId: listDeviceClass parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -75315,6 +84796,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -75332,36 +84840,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.DeviceClassList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.DeviceClassList" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1beta2 x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 + kind: DeviceClass + version: v1beta2 x-accepts: - application/cbor - application/cbor-seq @@ -75371,15 +84879,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceClaimTemplate - operationId: createNamespacedResourceClaimTemplate + description: create a DeviceClass + operationId: createDeviceClass parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -75423,64 +84925,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1beta2 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 + kind: DeviceClass + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -75488,23 +84990,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/namespaces/{namespace}/resourceclaimtemplates/{name}: + /apis/resource.k8s.io/v1beta2/deviceclasses/{name}: delete: - description: delete a ResourceClaimTemplate - operationId: deleteNamespacedResourceClaimTemplate + description: delete a DeviceClass + operationId: deleteDeviceClass parameters: - - description: name of the ResourceClaimTemplate + - description: name of the DeviceClass in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -75574,42 +85070,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1beta2 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 + kind: DeviceClass + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -75618,21 +85114,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClaimTemplate - operationId: readNamespacedResourceClaimTemplate + description: read the specified DeviceClass + operationId: readDeviceClass parameters: - - description: name of the ResourceClaimTemplate + - description: name of the DeviceClass in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -75645,441 +85135,154 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.DeviceClass" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1beta2 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 + kind: DeviceClass + version: v1beta2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClaimTemplate - operationId: patchNamespacedResourceClaimTemplate - parameters: - - description: name of the ResourceClaimTemplate - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. - in: query - name: force - schema: - type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Patch" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1beta1 - x-kubernetes-action: patch - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - put: - description: replace the specified ResourceClaimTemplate - operationId: replaceNamespacedResourceClaimTemplate + description: partially update the specified DeviceClass + operationId: patchDeviceClass parameters: - - description: name of the ResourceClaimTemplate + - description: name of the DeviceClass in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." - in: query - name: fieldManager - schema: - type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." - in: query - name: fieldValidation - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - required: true - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplate" - description: Created - "401": - content: {} - description: Unauthorized - tags: - - resource_v1beta1 - x-kubernetes-action: put - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/resource.k8s.io/v1beta1/resourceclaims: - get: - description: list or watch objects of kind ResourceClaim - operationId: listResourceClaimForAllNamespaces - parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." in: query - name: pretty - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersion + name: pretty schema: type: string - - description: |- - 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 + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersionMatch + name: dryRun schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." in: query - name: sendInitialEvents + name: fieldManager schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: timeoutSeconds + name: fieldValidation schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. in: query - name: watch + name: force schema: type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" - application/json;stream=watch: + $ref: "#/components/schemas/v1beta2.DeviceClass" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" - application/cbor-seq: + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimList" - description: OK + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceClass" + description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 - x-kubernetes-action: list + - resource_v1beta2 + x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim - version: v1beta1 + kind: DeviceClass + version: v1beta2 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1beta1/resourceclaimtemplates: - get: - description: list or watch objects of kind ResourceClaimTemplate - operationId: listResourceClaimTemplateForAllNamespaces + put: + description: replace the specified DeviceClass + operationId: replaceDeviceClass parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector + - description: name of the DeviceClass + in: path + name: name + required: true schema: type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -76087,99 +85290,96 @@ paths: name: pretty schema: type: string - - description: |- - 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 + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" in: query - name: resourceVersion + name: dryRun schema: type: string - - description: |- - 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 + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: resourceVersionMatch + name: fieldManager schema: type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: watch + name: fieldValidation schema: - type: boolean + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.DeviceClass" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.DeviceClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" - application/json;stream=watch: + $ref: "#/components/schemas/v1beta2.DeviceClass" + description: OK + "201": + content: + application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" - application/vnd.kubernetes.protobuf;stream=watch: + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" - application/cbor-seq: + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceClaimTemplateList" - description: OK + $ref: "#/components/schemas/v1beta2.DeviceClass" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceClass" + description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 - x-kubernetes-action: list + - resource_v1beta2 + x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta1 + kind: DeviceClass + version: v1beta2 + x-codegen-request-body-name: body + x-content-type: application/json x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1beta1/resourceslices: + /apis/resource.k8s.io/v1beta2/devicetaintrules: delete: - description: delete collection of ResourceSlice - operationId: deleteCollectionResourceSlice + description: delete collection of DeviceTaintRule + operationId: deleteCollectionDeviceTaintRule parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -76301,6 +85501,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -76333,12 +85560,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1beta2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1beta1 + kind: DeviceTaintRule + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -76347,8 +85574,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceSlice - operationId: listResourceSlice + description: list or watch objects of kind DeviceTaintRule + operationId: listDeviceTaintRule parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -76429,6 +85656,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -76446,36 +85700,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSliceList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSliceList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSliceList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSliceList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ResourceSliceList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta1.ResourceSliceList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta1.ResourceSliceList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleList" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1beta2 x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1beta1 + kind: DeviceTaintRule + version: v1beta2 x-accepts: - application/cbor - application/cbor-seq @@ -76485,8 +85739,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceSlice - operationId: createResourceSlice + description: create a DeviceTaintRule + operationId: createDeviceTaintRule parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -76531,64 +85785,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1beta2 x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1beta1 + kind: DeviceTaintRule + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -76596,12 +85850,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/resourceslices/{name}: + /apis/resource.k8s.io/v1beta2/devicetaintrules/{name}: delete: - description: delete a ResourceSlice - operationId: deleteResourceSlice + description: delete a DeviceTaintRule + operationId: deleteDeviceTaintRule parameters: - - description: name of the ResourceSlice + - description: name of the DeviceTaintRule in: path name: name required: true @@ -76676,42 +85930,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1beta2 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1beta1 + kind: DeviceTaintRule + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -76720,10 +85974,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceSlice - operationId: readResourceSlice + description: read the specified DeviceTaintRule + operationId: readDeviceTaintRule parameters: - - description: name of the ResourceSlice + - description: name of the DeviceTaintRule in: path name: name required: true @@ -76741,37 +85995,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1beta2 x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1beta1 + kind: DeviceTaintRule + version: v1beta2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceSlice - operationId: patchResourceSlice + description: partially update the specified DeviceTaintRule + operationId: patchDeviceTaintRule parameters: - - description: name of the ResourceSlice + - description: name of the DeviceTaintRule in: path name: name required: true @@ -76836,42 +86090,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1beta2 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1beta1 + kind: DeviceTaintRule + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -76880,10 +86134,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceSlice - operationId: replaceResourceSlice + description: replace the specified DeviceTaintRule + operationId: replaceDeviceTaintRule parameters: - - description: name of the ResourceSlice + - description: name of the DeviceTaintRule in: path name: name required: true @@ -76932,49 +86186,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1beta1.ResourceSlice" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta1 + - resource_v1beta2 x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceSlice - version: v1beta1 + kind: DeviceTaintRule + version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -76982,51 +86236,281 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta1/watch/deviceclasses: {} - /apis/resource.k8s.io/v1beta1/watch/deviceclasses/{name}: {} - /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims: {} - /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims/{name}: {} - /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} - /apis/resource.k8s.io/v1beta1/watch/resourceclaims: {} - /apis/resource.k8s.io/v1beta1/watch/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1beta1/watch/resourceslices: {} - /apis/resource.k8s.io/v1beta1/watch/resourceslices/{name}: {} - /apis/resource.k8s.io/v1beta2/: + /apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status: get: - description: get available resources - operationId: getAPIResources + description: read status of the specified DeviceTaintRule + operationId: readDeviceTaintRuleStatus + parameters: + - description: name of the DeviceTaintRule + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/yaml: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" application/cbor: schema: - $ref: "#/components/schemas/v1.APIResourceList" + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" description: OK "401": content: {} description: Unauthorized tags: - resource_v1beta2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceTaintRule + version: v1beta2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/deviceclasses: + patch: + description: partially update status of the specified DeviceTaintRule + operationId: patchDeviceTaintRuleStatus + parameters: + - description: name of the DeviceTaintRule + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceTaintRule + version: v1beta2 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace status of the specified DeviceTaintRule + operationId: replaceDeviceTaintRuleStatus + parameters: + - description: name of the DeviceTaintRule + in: path + name: name + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: put + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: DeviceTaintRule + version: v1beta2 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims: delete: - description: delete collection of DeviceClass - operationId: deleteCollectionDeviceClass + description: delete collection of ResourceClaim + operationId: deleteCollectionNamespacedResourceClaim parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -77147,6 +86631,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -77183,7 +86694,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaim version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -77193,9 +86704,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind DeviceClass - operationId: listDeviceClass + description: list or watch objects of kind ResourceClaim + operationId: listNamespacedResourceClaim parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -77275,6 +86792,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -77292,25 +86836,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClassList" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClassList" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClassList" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClassList" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.DeviceClassList" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.DeviceClassList" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta2.DeviceClassList" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" description: OK "401": content: {} @@ -77320,7 +86864,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaim version: v1beta2 x-accepts: - application/cbor @@ -77331,9 +86875,15 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a DeviceClass - operationId: createDeviceClass + description: create a ResourceClaim + operationId: createNamespacedResourceClaim parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -77377,63 +86927,364 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}: + delete: + description: delete a ResourceClaim + operationId: deleteNamespacedResourceClaim + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + description: OK + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified ResourceClaim + operationId: readNamespacedResourceClaim + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/yaml: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + application/cbor: + schema: + $ref: "#/components/schemas/v1beta2.ResourceClaim" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - resource_v1beta2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: resource.k8s.io + kind: ResourceClaim + version: v1beta2 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified ResourceClaim + operationId: patchNamespacedResourceClaim + parameters: + - description: name of the ResourceClaim + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: Created - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" - description: Accepted "401": content: {} description: Unauthorized tags: - resource_v1beta2 - x-kubernetes-action: post + x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaim version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -77442,17 +87293,22 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/deviceclasses/{name}: - delete: - description: delete a DeviceClass - operationId: deleteDeviceClass + put: + description: replace the specified ResourceClaim + operationId: replaceNamespacedResourceClaim parameters: - - description: name of the DeviceClass + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -77468,95 +87324,76 @@ paths: name: dryRun schema: type: string - - description: "The duration in seconds before the object should be deleted.\ - \ Value must be non-negative integer. The value zero indicates delete immediately.\ - \ If this value is nil, the default grace period for the specified type\ - \ will be used. Defaults to a per object value if not specified. zero means\ - \ delete immediately." - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: "if set to true, it will trigger an unsafe deletion of the resource\ - \ in case the normal deletion flow fails with a corrupt object error. A\ - \ resource is considered corrupt if it can not be retrieved from the underlying\ - \ storage successfully because of a) its data can not be transformed e.g.\ - \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ - \ deletion ignores finalizer constraints, skips precondition checks, and\ - \ removes the object from the storage. WARNING: This may potentially break\ - \ the cluster if the workload associated with the resource being unsafe-deleted\ - \ relies on normal deletion flow. Use only if you REALLY know what you are\ - \ doing. The default value is false, and the user must opt in to enable\ - \ it" - in: query - name: ignoreStoreReadErrorWithClusterBreakingPotential - schema: - type: boolean - - description: "Deprecated: please use the PropagationPolicy, this field will\ - \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ - \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ - \ list. Either this field or PropagationPolicy may be set, but not both." + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." in: query - name: orphanDependents + name: fieldManager schema: - type: boolean - - description: "Whether and how garbage collection will be performed. Either\ - \ this field or OrphanDependents may be set, but not both. The default policy\ - \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy. Acceptable values are: 'Orphan'\ - \ - orphan the dependents; 'Background' - allow the garbage collector to\ - \ delete the dependents in the background; 'Foreground' - a cascading policy\ - \ that deletes all dependents in the foreground." + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." in: query - name: propagationPolicy + name: fieldValidation schema: type: string requestBody: content: application/json: schema: - $ref: "#/components/schemas/v1.DeleteOptions" - required: false + $ref: "#/components/schemas/v1beta2.ResourceClaim" + required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK - "202": + "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" - description: Accepted + $ref: "#/components/schemas/v1beta2.ResourceClaim" + description: Created "401": content: {} description: Unauthorized tags: - resource_v1beta2 - x-kubernetes-action: delete + x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaim version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -77565,16 +87402,23 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status: get: - description: read the specified DeviceClass - operationId: readDeviceClass + description: read status of the specified ResourceClaim + operationId: readNamespacedResourceClaimStatus parameters: - - description: name of the DeviceClass + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -77587,16 +87431,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "401": content: {} @@ -77606,7 +87450,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaim version: v1beta2 x-accepts: - application/cbor @@ -77614,15 +87458,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified DeviceClass - operationId: patchDeviceClass + description: partially update status of the specified ResourceClaim + operationId: patchNamespacedResourceClaimStatus parameters: - - description: name of the DeviceClass + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -77682,31 +87532,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: Created "401": content: {} @@ -77716,7 +87566,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaim version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -77726,15 +87576,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified DeviceClass - operationId: replaceDeviceClass + description: replace status of the specified ResourceClaim + operationId: replaceNamespacedResourceClaimStatus parameters: - - description: name of the DeviceClass + - description: name of the ResourceClaim in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -77778,38 +87634,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.DeviceClass" + $ref: "#/components/schemas/v1beta2.ResourceClaim" description: Created "401": content: {} @@ -77819,7 +87675,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: DeviceClass + kind: ResourceClaim version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -77828,10 +87684,10 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims: + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates: delete: - description: delete collection of ResourceClaim - operationId: deleteCollectionNamespacedResourceClaim + description: delete collection of ResourceClaimTemplate + operationId: deleteCollectionNamespacedResourceClaimTemplate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -77959,6 +87815,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -77995,7 +87878,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: ResourceClaimTemplate version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -78005,8 +87888,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceClaim - operationId: listNamespacedResourceClaim + description: list or watch objects of kind ResourceClaimTemplate + operationId: listNamespacedResourceClaimTemplate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -78093,6 +87976,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -78110,25 +88020,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" description: OK "401": content: {} @@ -78138,7 +88048,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: ResourceClaimTemplate version: v1beta2 x-accepts: - application/cbor @@ -78149,8 +88059,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceClaim - operationId: createNamespacedResourceClaim + description: create a ResourceClaimTemplate + operationId: createNamespacedResourceClaimTemplate parameters: - description: "object name and auth scope, such as for teams and projects" in: path @@ -78201,53 +88111,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: Accepted "401": content: {} @@ -78257,7 +88167,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: ResourceClaimTemplate version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -78266,12 +88176,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}: + /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}: delete: - description: delete a ResourceClaim - operationId: deleteNamespacedResourceClaim + description: delete a ResourceClaimTemplate + operationId: deleteNamespacedResourceClaimTemplate parameters: - - description: name of the ResourceClaim + - description: name of the ResourceClaimTemplate in: path name: name required: true @@ -78352,31 +88262,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: Accepted "401": content: {} @@ -78386,7 +88296,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: ResourceClaimTemplate version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -78396,10 +88306,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClaim - operationId: readNamespacedResourceClaim + description: read the specified ResourceClaimTemplate + operationId: readNamespacedResourceClaimTemplate parameters: - - description: name of the ResourceClaim + - description: name of the ResourceClaimTemplate in: path name: name required: true @@ -78423,16 +88333,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: OK "401": content: {} @@ -78442,7 +88352,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: ResourceClaimTemplate version: v1beta2 x-accepts: - application/cbor @@ -78450,10 +88360,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClaim - operationId: patchNamespacedResourceClaim + description: partially update the specified ResourceClaimTemplate + operationId: patchNamespacedResourceClaimTemplate parameters: - - description: name of the ResourceClaim + - description: name of the ResourceClaimTemplate in: path name: name required: true @@ -78524,31 +88434,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: Created "401": content: {} @@ -78558,7 +88468,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: ResourceClaimTemplate version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -78568,10 +88478,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceClaim - operationId: replaceNamespacedResourceClaim + description: replace the specified ResourceClaimTemplate + operationId: replaceNamespacedResourceClaimTemplate parameters: - - description: name of the ResourceClaim + - description: name of the ResourceClaimTemplate in: path name: name required: true @@ -78626,38 +88536,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" description: Created "401": content: {} @@ -78667,7 +88577,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: ResourceClaimTemplate version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -78676,77 +88586,49 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status: + /apis/resource.k8s.io/v1beta2/resourceclaims: get: - description: read status of the specified ResourceClaim - operationId: readNamespacedResourceClaimStatus + description: list or watch objects of kind ResourceClaim + operationId: listResourceClaimForAllNamespaces parameters: - - description: name of the ResourceClaim - in: path - name: name - required: true + - description: "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." + in: query + name: allowWatchBookmarks schema: - type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true + type: boolean + - description: |- + 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. + in: query + name: continue schema: type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. in: query - name: pretty + name: fieldSelector schema: type: string - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" - application/yaml: - schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - resource_v1beta2 - x-kubernetes-action: get - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1beta2 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - patch: - description: partially update status of the specified ResourceClaim - operationId: patchNamespacedResourceClaimStatus - parameters: - - description: name of the ResourceClaim - in: path - name: name - required: true + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true + - description: |- + 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. + in: query + name: limit schema: - type: string + type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -78754,117 +88636,165 @@ paths: name: pretty schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" + - description: |- + 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 in: query - name: dryRun + name: resourceVersion schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ - \ This field is required for apply requests (application/apply-patch) but\ - \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + - description: |- + 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 in: query - name: fieldManager + name: resourceVersionMatch schema: type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: fieldValidation + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector schema: type: string - - description: Force is going to "force" Apply requests. It means user will - re-acquire conflicting fields owned by other people. Force flag must be - unset for non-apply patch requests. + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." in: query - name: force + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch schema: type: boolean - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Patch" - required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimList" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" - application/yaml: + $ref: "#/components/schemas/v1beta2.ResourceClaimList" + application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1beta2.ResourceClaimList" + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" - application/cbor: + $ref: "#/components/schemas/v1beta2.ResourceClaimList" + application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" - description: Created + $ref: "#/components/schemas/v1beta2.ResourceClaimList" + description: OK "401": content: {} description: Unauthorized tags: - resource_v1beta2 - x-kubernetes-action: patch + x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io kind: ResourceClaim version: v1beta2 - x-codegen-request-body-name: body - x-content-type: application/json x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - put: - description: replace status of the specified ResourceClaim - operationId: replaceNamespacedResourceClaimStatus + /apis/resource.k8s.io/v1beta2/resourceclaimtemplates: + get: + description: list or watch objects of kind ResourceClaimTemplate + operationId: listResourceClaimTemplateForAllNamespaces parameters: - - description: name of the ResourceClaim - in: path - name: name - required: true + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector schema: type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -78872,103 +88802,127 @@ paths: name: pretty schema: type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" + - description: |- + 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 in: query - name: dryRun + name: resourceVersion schema: type: string - - description: "fieldManager is a name associated with the actor or entity that\ - \ is making these changes. The value must be less than or 128 characters\ - \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + - description: |- + 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 in: query - name: fieldManager + name: resourceVersionMatch schema: type: string - - description: "fieldValidation instructs the server on how to handle objects\ - \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ - \ Valid values are: - Ignore: This will ignore any unknown fields that are\ - \ silently dropped from the object, and will ignore all but the last duplicate\ - \ field that the decoder encounters. This is the default behavior prior\ - \ to v1.23. - Warn: This will send a warning via the standard warning response\ - \ header for each unknown field that is dropped from the object, and for\ - \ each duplicate field that is encountered. The request will still succeed\ - \ if there are no other errors, and will only persist the last of any duplicate\ - \ fields. This is the default in v1.23+ - Strict: This will fail the request\ - \ with a BadRequest error if any unknown fields would be dropped from the\ - \ object, or if any duplicate fields are present. The error returned from\ - \ the server will contain all unknown and duplicate fields encountered." + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. in: query - name: fieldValidation + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector schema: type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" - required: true + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" - description: OK - "201": - content: - application/json: - schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" - application/yaml: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" - application/vnd.kubernetes.protobuf: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" - application/cbor: + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaim" - description: Created + $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + description: OK "401": content: {} description: Unauthorized tags: - resource_v1beta2 - x-kubernetes-action: put + x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaim + kind: ResourceClaimTemplate version: v1beta2 - x-codegen-request-body-name: body - x-content-type: application/json x-accepts: - application/cbor + - application/cbor-seq - application/json + - application/json;stream=watch - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates: + /apis/resource.k8s.io/v1beta2/resourceslices: delete: - description: delete collection of ResourceClaimTemplate - operationId: deleteCollectionNamespacedResourceClaimTemplate + description: delete collection of ResourceSlice + operationId: deleteCollectionResourceSlice parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -79089,6 +89043,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -79125,7 +89106,7 @@ paths: x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceSlice version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -79135,15 +89116,9 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceClaimTemplate - operationId: listNamespacedResourceClaimTemplate + description: list or watch objects of kind ResourceSlice + operationId: listResourceSlice parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -79223,6 +89198,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -79240,25 +89242,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.ResourceSliceList" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.ResourceSliceList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.ResourceSliceList" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.ResourceSliceList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.ResourceSliceList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.ResourceSliceList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1beta2.ResourceSliceList" description: OK "401": content: {} @@ -79268,7 +89270,7 @@ paths: x-kubernetes-action: list x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceSlice version: v1beta2 x-accepts: - application/cbor @@ -79279,15 +89281,9 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceClaimTemplate - operationId: createNamespacedResourceClaimTemplate + description: create a ResourceSlice + operationId: createResourceSlice parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -79331,53 +89327,53 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: Accepted "401": content: {} @@ -79387,7 +89383,7 @@ paths: x-kubernetes-action: post x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceSlice version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -79396,23 +89392,17 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}: + /apis/resource.k8s.io/v1beta2/resourceslices/{name}: delete: - description: delete a ResourceClaimTemplate - operationId: deleteNamespacedResourceClaimTemplate + description: delete a ResourceSlice + operationId: deleteResourceSlice parameters: - - description: name of the ResourceClaimTemplate + - description: name of the ResourceSlice in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -79482,31 +89472,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: Accepted "401": content: {} @@ -79516,7 +89506,7 @@ paths: x-kubernetes-action: delete x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceSlice version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -79526,18 +89516,12 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceClaimTemplate - operationId: readNamespacedResourceClaimTemplate + description: read the specified ResourceSlice + operationId: readResourceSlice parameters: - - description: name of the ResourceClaimTemplate - in: path - name: name - required: true - schema: - type: string - - description: "object name and auth scope, such as for teams and projects" + - description: name of the ResourceSlice in: path - name: namespace + name: name required: true schema: type: string @@ -79553,16 +89537,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: OK "401": content: {} @@ -79572,7 +89556,7 @@ paths: x-kubernetes-action: get x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceSlice version: v1beta2 x-accepts: - application/cbor @@ -79580,21 +89564,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceClaimTemplate - operationId: patchNamespacedResourceClaimTemplate + description: partially update the specified ResourceSlice + operationId: patchResourceSlice parameters: - - description: name of the ResourceClaimTemplate + - description: name of the ResourceSlice in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -79654,31 +89632,31 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: Created "401": content: {} @@ -79688,7 +89666,7 @@ paths: x-kubernetes-action: patch x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceSlice version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -79698,21 +89676,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceClaimTemplate - operationId: replaceNamespacedResourceClaimTemplate + description: replace the specified ResourceSlice + operationId: replaceResourceSlice parameters: - - description: name of the ResourceClaimTemplate + - description: name of the ResourceSlice in: path name: name required: true schema: type: string - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -79756,38 +89728,38 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplate" + $ref: "#/components/schemas/v1beta2.ResourceSlice" description: Created "401": content: {} @@ -79797,7 +89769,7 @@ paths: x-kubernetes-action: put x-kubernetes-group-version-kind: group: resource.k8s.io - kind: ResourceClaimTemplate + kind: ResourceSlice version: v1beta2 x-codegen-request-body-name: body x-content-type: application/json @@ -79806,288 +89778,78 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/resourceclaims: + /apis/resource.k8s.io/v1beta2/watch/deviceclasses: {} + /apis/resource.k8s.io/v1beta2/watch/deviceclasses/{name}: {} + /apis/resource.k8s.io/v1beta2/watch/devicetaintrules: {} + /apis/resource.k8s.io/v1beta2/watch/devicetaintrules/{name}: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims/{name}: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} + /apis/resource.k8s.io/v1beta2/watch/resourceclaims: {} + /apis/resource.k8s.io/v1beta2/watch/resourceclaimtemplates: {} + /apis/resource.k8s.io/v1beta2/watch/resourceslices: {} + /apis/resource.k8s.io/v1beta2/watch/resourceslices/{name}: {} + /apis/scheduling.k8s.io/: get: - description: list or watch objects of kind ResourceClaim - operationId: listResourceClaimForAllNamespaces - parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean + description: get information of a group + operationId: getAPIGroup responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1.APIGroup" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1.APIGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" - application/cbor: - schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" - application/json;stream=watch: - schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" - application/cbor-seq: - schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimList" + $ref: "#/components/schemas/v1.APIGroup" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta2 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaim - version: v1beta2 + - scheduling x-accepts: - - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1beta2/resourceclaimtemplates: + /apis/scheduling.k8s.io/v1/: get: - description: list or watch objects of kind ResourceClaimTemplate - operationId: listResourceClaimTemplateForAllNamespaces - parameters: - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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 - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. - - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. - - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. - in: query - name: sendInitialEvents - schema: - type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean + description: get available resources + operationId: getAPIResources responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1.APIResourceList" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1.APIResourceList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1.APIResourceList" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" - application/json;stream=watch: - schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" - application/cbor-seq: - schema: - $ref: "#/components/schemas/v1beta2.ResourceClaimTemplateList" + $ref: "#/components/schemas/v1.APIResourceList" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta2 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceClaimTemplate - version: v1beta2 + - scheduling_v1 x-accepts: - application/cbor - - application/cbor-seq - application/json - - application/json;stream=watch - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - application/yaml - /apis/resource.k8s.io/v1beta2/resourceslices: + /apis/scheduling.k8s.io/v1/priorityclasses: delete: - description: delete collection of ResourceSlice - operationId: deleteCollectionResourceSlice + description: delete collection of PriorityClass + operationId: deleteCollectionPriorityClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -80209,6 +89971,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -80241,12 +90030,12 @@ paths: content: {} description: Unauthorized tags: - - resource_v1beta2 + - scheduling_v1 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceSlice - version: v1beta2 + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -80255,8 +90044,8 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind ResourceSlice - operationId: listResourceSlice + description: list or watch objects of kind PriorityClass + operationId: listPriorityClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -80337,6 +90126,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -80354,36 +90170,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceSliceList" + $ref: "#/components/schemas/v1.PriorityClassList" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceSliceList" + $ref: "#/components/schemas/v1.PriorityClassList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceSliceList" + $ref: "#/components/schemas/v1.PriorityClassList" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceSliceList" + $ref: "#/components/schemas/v1.PriorityClassList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.ResourceSliceList" + $ref: "#/components/schemas/v1.PriorityClassList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1beta2.ResourceSliceList" + $ref: "#/components/schemas/v1.PriorityClassList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1beta2.ResourceSliceList" + $ref: "#/components/schemas/v1.PriorityClassList" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta2 + - scheduling_v1 x-kubernetes-action: list x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceSlice - version: v1beta2 + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-accepts: - application/cbor - application/cbor-seq @@ -80393,8 +90209,8 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a ResourceSlice - operationId: createResourceSlice + description: create a PriorityClass + operationId: createPriorityClass parameters: - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ @@ -80439,64 +90255,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta2 + - scheduling_v1 x-kubernetes-action: post x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceSlice - version: v1beta2 + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -80504,12 +90320,12 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/resourceslices/{name}: + /apis/scheduling.k8s.io/v1/priorityclasses/{name}: delete: - description: delete a ResourceSlice - operationId: deleteResourceSlice + description: delete a PriorityClass + operationId: deletePriorityClass parameters: - - description: name of the ResourceSlice + - description: name of the PriorityClass in: path name: name required: true @@ -80584,42 +90400,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.Status" description: OK "202": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.Status" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.Status" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.Status" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.Status" description: Accepted "401": content: {} description: Unauthorized tags: - - resource_v1beta2 + - scheduling_v1 x-kubernetes-action: delete x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceSlice - version: v1beta2 + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -80628,10 +90444,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: read the specified ResourceSlice - operationId: readResourceSlice + description: read the specified PriorityClass + operationId: readPriorityClass parameters: - - description: name of the ResourceSlice + - description: name of the PriorityClass in: path name: name required: true @@ -80649,37 +90465,37 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" description: OK "401": content: {} description: Unauthorized tags: - - resource_v1beta2 + - scheduling_v1 x-kubernetes-action: get x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceSlice - version: v1beta2 + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified ResourceSlice - operationId: patchResourceSlice + description: partially update the specified PriorityClass + operationId: patchPriorityClass parameters: - - description: name of the ResourceSlice + - description: name of the PriorityClass in: path name: name required: true @@ -80744,42 +90560,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta2 + - scheduling_v1 x-kubernetes-action: patch x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceSlice - version: v1beta2 + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -80788,10 +90604,10 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified ResourceSlice - operationId: replaceResourceSlice + description: replace the specified PriorityClass + operationId: replacePriorityClass parameters: - - description: name of the ResourceSlice + - description: name of the PriorityClass in: path name: name required: true @@ -80840,49 +90656,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/yaml: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" application/cbor: schema: - $ref: "#/components/schemas/v1beta2.ResourceSlice" + $ref: "#/components/schemas/v1.PriorityClass" description: Created "401": content: {} description: Unauthorized tags: - - resource_v1beta2 + - scheduling_v1 x-kubernetes-action: put x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: ResourceSlice - version: v1beta2 + group: scheduling.k8s.io + kind: PriorityClass + version: v1 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -80890,43 +90706,9 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/resource.k8s.io/v1beta2/watch/deviceclasses: {} - /apis/resource.k8s.io/v1beta2/watch/deviceclasses/{name}: {} - /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims: {} - /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims/{name}: {} - /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}: {} - /apis/resource.k8s.io/v1beta2/watch/resourceclaims: {} - /apis/resource.k8s.io/v1beta2/watch/resourceclaimtemplates: {} - /apis/resource.k8s.io/v1beta2/watch/resourceslices: {} - /apis/resource.k8s.io/v1beta2/watch/resourceslices/{name}: {} - /apis/scheduling.k8s.io/: - get: - description: get information of a group - operationId: getAPIGroup - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIGroup" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIGroup" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - scheduling - x-accepts: - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/scheduling.k8s.io/v1/: + /apis/scheduling.k8s.io/v1/watch/priorityclasses: {} + /apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}: {} + /apis/scheduling.k8s.io/v1alpha2/: get: description: get available resources operationId: getAPIResources @@ -80950,17 +90732,23 @@ paths: content: {} description: Unauthorized tags: - - scheduling_v1 + - scheduling_v1alpha2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1/priorityclasses: + /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups: delete: - description: delete collection of PriorityClass - operationId: deleteCollectionPriorityClass + description: delete collection of PodGroup + operationId: deleteCollectionNamespacedPodGroup parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -81081,6 +90869,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -81113,12 +90928,12 @@ paths: content: {} description: Unauthorized tags: - - scheduling_v1 + - scheduling_v1alpha2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PriorityClass - version: v1 + kind: PodGroup + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -81127,9 +90942,15 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml get: - description: list or watch objects of kind PriorityClass - operationId: listPriorityClass + description: list or watch objects of kind PodGroup + operationId: listNamespacedPodGroup parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -81209,6 +91030,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -81226,36 +91074,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityClassList" + $ref: "#/components/schemas/v1alpha2.PodGroupList" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityClassList" + $ref: "#/components/schemas/v1alpha2.PodGroupList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityClassList" + $ref: "#/components/schemas/v1alpha2.PodGroupList" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityClassList" + $ref: "#/components/schemas/v1alpha2.PodGroupList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1.PriorityClassList" + $ref: "#/components/schemas/v1alpha2.PodGroupList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1.PriorityClassList" + $ref: "#/components/schemas/v1alpha2.PodGroupList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1.PriorityClassList" + $ref: "#/components/schemas/v1alpha2.PodGroupList" description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - scheduling_v1alpha2 x-kubernetes-action: list x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PriorityClass - version: v1 + kind: PodGroup + version: v1alpha2 x-accepts: - application/cbor - application/cbor-seq @@ -81265,9 +91113,440 @@ paths: - application/vnd.kubernetes.protobuf;stream=watch - application/yaml post: - description: create a PriorityClass - operationId: createPriorityClass + description: create a PodGroup + operationId: createNamespacedPodGroup + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + description: Created + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1alpha2 + x-kubernetes-action: post + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PodGroup + version: v1alpha2 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}: + delete: + description: delete a PodGroup + operationId: deleteNamespacedPodGroup + parameters: + - description: name of the PodGroup + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: OK + "202": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: Accepted + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1alpha2 + x-kubernetes-action: delete + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PodGroup + version: v1alpha2 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: read the specified PodGroup + operationId: readNamespacedPodGroup + parameters: + - description: name of the PodGroup + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1alpha2 + x-kubernetes-action: get + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PodGroup + version: v1alpha2 + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + patch: + description: partially update the specified PodGroup + operationId: patchNamespacedPodGroup + parameters: + - description: name of the PodGroup + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: "fieldManager is a name associated with the actor or entity that\ + \ is making these changes. The value must be less than or 128 characters\ + \ long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.\ + \ This field is required for apply requests (application/apply-patch) but\ + \ optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch)." + in: query + name: fieldManager + schema: + type: string + - description: "fieldValidation instructs the server on how to handle objects\ + \ in the request (POST/PUT/PATCH) containing unknown or duplicate fields.\ + \ Valid values are: - Ignore: This will ignore any unknown fields that are\ + \ silently dropped from the object, and will ignore all but the last duplicate\ + \ field that the decoder encounters. This is the default behavior prior\ + \ to v1.23. - Warn: This will send a warning via the standard warning response\ + \ header for each unknown field that is dropped from the object, and for\ + \ each duplicate field that is encountered. The request will still succeed\ + \ if there are no other errors, and will only persist the last of any duplicate\ + \ fields. This is the default in v1.23+ - Strict: This will fail the request\ + \ with a BadRequest error if any unknown fields would be dropped from the\ + \ object, or if any duplicate fields are present. The error returned from\ + \ the server will contain all unknown and duplicate fields encountered." + in: query + name: fieldValidation + schema: + type: string + - description: Force is going to "force" Apply requests. It means user will + re-acquire conflicting fields owned by other people. Force flag must be + unset for non-apply patch requests. + in: query + name: force + schema: + type: boolean + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Patch" + required: true + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + description: OK + "201": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroup" + description: Created + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1alpha2 + x-kubernetes-action: patch + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PodGroup + version: v1alpha2 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + put: + description: replace the specified PodGroup + operationId: replaceNamespacedPodGroup parameters: + - description: name of the PodGroup + in: path + name: name + required: true + schema: + type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -81311,64 +91590,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" description: Created - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.PriorityClass" - application/yaml: - schema: - $ref: "#/components/schemas/v1.PriorityClass" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.PriorityClass" - application/cbor: - schema: - $ref: "#/components/schemas/v1.PriorityClass" - description: Accepted "401": content: {} description: Unauthorized tags: - - scheduling_v1 - x-kubernetes-action: post + - scheduling_v1alpha2 + x-kubernetes-action: put x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PriorityClass - version: v1 + kind: PodGroup + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -81376,136 +91640,20 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1/priorityclasses/{name}: - delete: - description: delete a PriorityClass - operationId: deletePriorityClass + /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status: + get: + description: read status of the specified PodGroup + operationId: readNamespacedPodGroupStatus parameters: - - description: name of the PriorityClass + - description: name of the PodGroup in: path name: name required: true schema: type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: "The duration in seconds before the object should be deleted.\ - \ Value must be non-negative integer. The value zero indicates delete immediately.\ - \ If this value is nil, the default grace period for the specified type\ - \ will be used. Defaults to a per object value if not specified. zero means\ - \ delete immediately." - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: "if set to true, it will trigger an unsafe deletion of the resource\ - \ in case the normal deletion flow fails with a corrupt object error. A\ - \ resource is considered corrupt if it can not be retrieved from the underlying\ - \ storage successfully because of a) its data can not be transformed e.g.\ - \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ - \ deletion ignores finalizer constraints, skips precondition checks, and\ - \ removes the object from the storage. WARNING: This may potentially break\ - \ the cluster if the workload associated with the resource being unsafe-deleted\ - \ relies on normal deletion flow. Use only if you REALLY know what you are\ - \ doing. The default value is false, and the user must opt in to enable\ - \ it" - in: query - name: ignoreStoreReadErrorWithClusterBreakingPotential - schema: - type: boolean - - description: "Deprecated: please use the PropagationPolicy, this field will\ - \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ - \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ - \ list. Either this field or PropagationPolicy may be set, but not both." - in: query - name: orphanDependents - schema: - type: boolean - - description: "Whether and how garbage collection will be performed. Either\ - \ this field or OrphanDependents may be set, but not both. The default policy\ - \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy. Acceptable values are: 'Orphan'\ - \ - orphan the dependents; 'Background' - allow the garbage collector to\ - \ delete the dependents in the background; 'Foreground' - a cascading policy\ - \ that deletes all dependents in the foreground." - in: query - name: propagationPolicy - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.DeleteOptions" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Status" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Status" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Status" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Status" - description: OK - "202": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Status" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Status" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Status" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Status" - description: Accepted - "401": - content: {} - description: Unauthorized - tags: - - scheduling_v1 - x-kubernetes-action: delete - x-kubernetes-group-version-kind: - group: scheduling.k8s.io - kind: PriorityClass - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: read the specified PriorityClass - operationId: readPriorityClass - parameters: - - description: name of the PriorityClass + - description: "object name and auth scope, such as for teams and projects" in: path - name: name + name: namespace required: true schema: type: string @@ -81521,42 +91669,48 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - scheduling_v1alpha2 x-kubernetes-action: get x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PriorityClass - version: v1 + kind: PodGroup + version: v1alpha2 x-accepts: - application/cbor - application/json - application/vnd.kubernetes.protobuf - application/yaml patch: - description: partially update the specified PriorityClass - operationId: patchPriorityClass + description: partially update status of the specified PodGroup + operationId: patchNamespacedPodGroupStatus parameters: - - description: name of the PriorityClass + - description: name of the PodGroup in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -81616,42 +91770,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - scheduling_v1alpha2 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PriorityClass - version: v1 + kind: PodGroup + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -81660,15 +91814,21 @@ paths: - application/vnd.kubernetes.protobuf - application/yaml put: - description: replace the specified PriorityClass - operationId: replacePriorityClass + description: replace status of the specified PodGroup + operationId: replaceNamespacedPodGroupStatus parameters: - - description: name of the PriorityClass + - description: name of the PodGroup in: path name: name required: true schema: type: string + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ \ and wget)." @@ -81712,49 +91872,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/yaml: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" application/cbor: schema: - $ref: "#/components/schemas/v1.PriorityClass" + $ref: "#/components/schemas/v1alpha2.PodGroup" description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1 + - scheduling_v1alpha2 x-kubernetes-action: put x-kubernetes-group-version-kind: group: scheduling.k8s.io - kind: PriorityClass - version: v1 + kind: PodGroup + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -81762,39 +91922,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1/watch/priorityclasses: {} - /apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}: {} - /apis/scheduling.k8s.io/v1alpha1/: - get: - description: get available resources - operationId: getAPIResources - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.APIResourceList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - scheduling_v1alpha1 - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads: + /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads: delete: description: delete collection of Workload operationId: deleteCollectionNamespacedWorkload @@ -81925,6 +92053,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -81957,12 +92112,12 @@ paths: content: {} description: Unauthorized tags: - - scheduling_v1alpha1 + - scheduling_v1alpha2 x-kubernetes-action: deletecollection x-kubernetes-group-version-kind: group: scheduling.k8s.io kind: Workload - version: v1alpha1 + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -82059,6 +92214,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -82076,36 +92258,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.WorkloadList" + $ref: "#/components/schemas/v1alpha2.WorkloadList" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.WorkloadList" + $ref: "#/components/schemas/v1alpha2.WorkloadList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.WorkloadList" + $ref: "#/components/schemas/v1alpha2.WorkloadList" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.WorkloadList" + $ref: "#/components/schemas/v1alpha2.WorkloadList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1alpha1.WorkloadList" + $ref: "#/components/schemas/v1alpha2.WorkloadList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1alpha1.WorkloadList" + $ref: "#/components/schemas/v1alpha2.WorkloadList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1alpha1.WorkloadList" + $ref: "#/components/schemas/v1alpha2.WorkloadList" description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha1 + - scheduling_v1alpha2 x-kubernetes-action: list x-kubernetes-group-version-kind: group: scheduling.k8s.io kind: Workload - version: v1alpha1 + version: v1alpha2 x-accepts: - application/cbor - application/cbor-seq @@ -82167,64 +92349,64 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" description: Created "202": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" description: Accepted "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha1 + - scheduling_v1alpha2 x-kubernetes-action: post x-kubernetes-group-version-kind: group: scheduling.k8s.io kind: Workload - version: v1alpha1 + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -82232,7 +92414,7 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name}: + /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}: delete: description: delete a Workload operationId: deleteNamespacedWorkload @@ -82348,12 +92530,12 @@ paths: content: {} description: Unauthorized tags: - - scheduling_v1alpha1 + - scheduling_v1alpha2 x-kubernetes-action: delete x-kubernetes-group-version-kind: group: scheduling.k8s.io kind: Workload - version: v1alpha1 + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -82389,27 +92571,27 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha1 + - scheduling_v1alpha2 x-kubernetes-action: get x-kubernetes-group-version-kind: group: scheduling.k8s.io kind: Workload - version: v1alpha1 + version: v1alpha2 x-accepts: - application/cbor - application/json @@ -82490,42 +92672,42 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha1 + - scheduling_v1alpha2 x-kubernetes-action: patch x-kubernetes-group-version-kind: group: scheduling.k8s.io kind: Workload - version: v1alpha1 + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -82592,49 +92774,49 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" required: true responses: "200": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" description: OK "201": content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" description: Created "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha1 + - scheduling_v1alpha2 x-kubernetes-action: put x-kubernetes-group-version-kind: group: scheduling.k8s.io kind: Workload - version: v1alpha1 + version: v1alpha2 x-codegen-request-body-name: body x-content-type: application/json x-accepts: @@ -82642,10 +92824,179 @@ paths: - application/json - application/vnd.kubernetes.protobuf - application/yaml - /apis/scheduling.k8s.io/v1alpha1/watch/namespaces/{namespace}/workloads: {} - /apis/scheduling.k8s.io/v1alpha1/watch/namespaces/{namespace}/workloads/{name}: {} - /apis/scheduling.k8s.io/v1alpha1/watch/workloads: {} - /apis/scheduling.k8s.io/v1alpha1/workloads: + /apis/scheduling.k8s.io/v1alpha2/podgroups: + get: + description: list or watch objects of kind PodGroup + operationId: listPodGroupForAllNamespaces + parameters: + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroupList" + application/yaml: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroupList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroupList" + application/cbor: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroupList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroupList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroupList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1alpha2.PodGroupList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - scheduling_v1alpha2 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: scheduling.k8s.io + kind: PodGroup + version: v1alpha2 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/podgroups: {} + /apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/podgroups/{name}: {} + /apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/workloads: {} + /apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/workloads/{name}: {} + /apis/scheduling.k8s.io/v1alpha2/watch/podgroups: {} + /apis/scheduling.k8s.io/v1alpha2/watch/workloads: {} + /apis/scheduling.k8s.io/v1alpha2/workloads: get: description: list or watch objects of kind Workload operationId: listWorkloadForAllNamespaces @@ -82729,6 +93080,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -82746,36 +93124,36 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/v1alpha1.WorkloadList" + $ref: "#/components/schemas/v1alpha2.WorkloadList" application/yaml: schema: - $ref: "#/components/schemas/v1alpha1.WorkloadList" + $ref: "#/components/schemas/v1alpha2.WorkloadList" application/vnd.kubernetes.protobuf: schema: - $ref: "#/components/schemas/v1alpha1.WorkloadList" + $ref: "#/components/schemas/v1alpha2.WorkloadList" application/cbor: schema: - $ref: "#/components/schemas/v1alpha1.WorkloadList" + $ref: "#/components/schemas/v1alpha2.WorkloadList" application/json;stream=watch: schema: - $ref: "#/components/schemas/v1alpha1.WorkloadList" + $ref: "#/components/schemas/v1alpha2.WorkloadList" application/vnd.kubernetes.protobuf;stream=watch: schema: - $ref: "#/components/schemas/v1alpha1.WorkloadList" + $ref: "#/components/schemas/v1alpha2.WorkloadList" application/cbor-seq: schema: - $ref: "#/components/schemas/v1alpha1.WorkloadList" + $ref: "#/components/schemas/v1alpha2.WorkloadList" description: OK "401": content: {} description: Unauthorized tags: - - scheduling_v1alpha1 + - scheduling_v1alpha2 x-kubernetes-action: list x-kubernetes-group-version-kind: group: scheduling.k8s.io kind: Workload - version: v1alpha1 + version: v1alpha2 x-accepts: - application/cbor - application/cbor-seq @@ -82965,134 +93343,188 @@ paths: name: sendInitialEvents schema: type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.DeleteOptions" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Status" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Status" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Status" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Status" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: deletecollection - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIDriver - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: list or watch objects of kind CSIDriver - operationId: listCSIDriver - parameters: - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - description: |- - 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. + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIDriver + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind CSIDriver + operationId: listCSIDriver + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: - 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. - in: query - name: limit - schema: - type: integer - - description: |- - 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. + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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. + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. in: query - name: sendInitialEvents + name: shardSelector schema: - type: boolean + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -83771,134 +94203,188 @@ paths: name: sendInitialEvents schema: type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - requestBody: - content: - application/json: - schema: - $ref: "#/components/schemas/v1.DeleteOptions" - required: false - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.Status" - application/yaml: - schema: - $ref: "#/components/schemas/v1.Status" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.Status" - application/cbor: - schema: - $ref: "#/components/schemas/v1.Status" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: deletecollection - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSINode - version: v1 - x-codegen-request-body-name: body - x-content-type: application/json - x-accepts: - - application/cbor - - application/json - - application/vnd.kubernetes.protobuf - - application/yaml - get: - description: list or watch objects of kind CSINode - operationId: listCSINode - parameters: - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - - description: "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." - in: query - name: allowWatchBookmarks - schema: - type: boolean - - description: |- - 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. - in: query - name: continue - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - description: |- - 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. + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + requestBody: + content: + application/json: + schema: + $ref: "#/components/schemas/v1.DeleteOptions" + required: false + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.Status" + application/yaml: + schema: + $ref: "#/components/schemas/v1.Status" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.Status" + application/cbor: + schema: + $ref: "#/components/schemas/v1.Status" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: deletecollection + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSINode + version: v1 + x-codegen-request-body-name: body + x-content-type: application/json + x-accepts: + - application/cbor + - application/json + - application/vnd.kubernetes.protobuf + - application/yaml + get: + description: list or watch objects of kind CSINode + operationId: listCSINode + parameters: + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: "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." + in: query + name: allowWatchBookmarks + schema: + type: boolean + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: - 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. - in: query - name: limit - schema: - type: integer - - description: |- - 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. + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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. + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. in: query - name: sendInitialEvents + name: shardSelector schema: - type: boolean + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -84536,192 +95022,246 @@ paths: name: sendInitialEvents schema: type: boolean - - description: "Timeout for the list/watch call. This limits the duration of\ - \ the call, regardless of any activity or inactivity." - in: query - name: timeoutSeconds - schema: - type: integer - - description: "Watch for changes to the described resources and return them\ - \ as a stream of add, update, and remove notifications. Specify resourceVersion." - in: query - name: watch - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" - application/yaml: - schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" - application/vnd.kubernetes.protobuf: - schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" - application/cbor: - schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" - application/json;stream=watch: - schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" - application/vnd.kubernetes.protobuf;stream=watch: - schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" - application/cbor-seq: - schema: - $ref: "#/components/schemas/v1.CSIStorageCapacityList" - description: OK - "401": - content: {} - description: Unauthorized - tags: - - storage_v1 - x-kubernetes-action: list - x-kubernetes-group-version-kind: - group: storage.k8s.io - kind: CSIStorageCapacity - version: v1 - x-accepts: - - application/cbor - - application/cbor-seq - - application/json - - application/json;stream=watch - - application/vnd.kubernetes.protobuf - - application/vnd.kubernetes.protobuf;stream=watch - - application/yaml - /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities: - delete: - description: delete collection of CSIStorageCapacity - operationId: deleteCollectionNamespacedCSIStorageCapacity - parameters: - - description: "object name and auth scope, such as for teams and projects" - in: path - name: namespace - required: true - schema: - type: string - - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ - \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ - \ and wget)." - in: query - name: pretty - schema: - type: string - description: |- - 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". + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string + - description: "Timeout for the list/watch call. This limits the duration of\ + \ the call, regardless of any activity or inactivity." + in: query + name: timeoutSeconds + schema: + type: integer + - description: "Watch for changes to the described resources and return them\ + \ as a stream of add, update, and remove notifications. Specify resourceVersion." + in: query + name: watch + schema: + type: boolean + responses: + "200": + content: + application/json: + schema: + $ref: "#/components/schemas/v1.CSIStorageCapacityList" + application/yaml: + schema: + $ref: "#/components/schemas/v1.CSIStorageCapacityList" + application/vnd.kubernetes.protobuf: + schema: + $ref: "#/components/schemas/v1.CSIStorageCapacityList" + application/cbor: + schema: + $ref: "#/components/schemas/v1.CSIStorageCapacityList" + application/json;stream=watch: + schema: + $ref: "#/components/schemas/v1.CSIStorageCapacityList" + application/vnd.kubernetes.protobuf;stream=watch: + schema: + $ref: "#/components/schemas/v1.CSIStorageCapacityList" + application/cbor-seq: + schema: + $ref: "#/components/schemas/v1.CSIStorageCapacityList" + description: OK + "401": + content: {} + description: Unauthorized + tags: + - storage_v1 + x-kubernetes-action: list + x-kubernetes-group-version-kind: + group: storage.k8s.io + kind: CSIStorageCapacity + version: v1 + x-accepts: + - application/cbor + - application/cbor-seq + - application/json + - application/json;stream=watch + - application/vnd.kubernetes.protobuf + - application/vnd.kubernetes.protobuf;stream=watch + - application/yaml + /apis/storage.k8s.io/v1/namespaces/{namespace}/csistoragecapacities: + delete: + description: delete collection of CSIStorageCapacity + operationId: deleteCollectionNamespacedCSIStorageCapacity + parameters: + - description: "object name and auth scope, such as for teams and projects" + in: path + name: namespace + required: true + schema: + type: string + - description: "If 'true', then the output is pretty printed. Defaults to 'false'\ + \ unless the user-agent indicates a browser or command-line HTTP tool (curl\ + \ and wget)." + in: query + name: pretty + schema: + type: string + - description: |- + 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. + in: query + name: continue + schema: + type: string + - description: "When present, indicates that modifications should not be persisted.\ + \ An invalid or unrecognized dryRun directive will result in an error response\ + \ and no further processing of the request. Valid values are: - All: all\ + \ dry run stages will be processed" + in: query + name: dryRun + schema: + type: string + - description: A selector to restrict the list of returned objects by their + fields. Defaults to everything. + in: query + name: fieldSelector + schema: + type: string + - description: "The duration in seconds before the object should be deleted.\ + \ Value must be non-negative integer. The value zero indicates delete immediately.\ + \ If this value is nil, the default grace period for the specified type\ + \ will be used. Defaults to a per object value if not specified. zero means\ + \ delete immediately." + in: query + name: gracePeriodSeconds + schema: + type: integer + - description: "if set to true, it will trigger an unsafe deletion of the resource\ + \ in case the normal deletion flow fails with a corrupt object error. A\ + \ resource is considered corrupt if it can not be retrieved from the underlying\ + \ storage successfully because of a) its data can not be transformed e.g.\ + \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ + \ deletion ignores finalizer constraints, skips precondition checks, and\ + \ removes the object from the storage. WARNING: This may potentially break\ + \ the cluster if the workload associated with the resource being unsafe-deleted\ + \ relies on normal deletion flow. Use only if you REALLY know what you are\ + \ doing. The default value is false, and the user must opt in to enable\ + \ it" + in: query + name: ignoreStoreReadErrorWithClusterBreakingPotential + schema: + type: boolean + - description: A selector to restrict the list of returned objects by their + labels. Defaults to everything. + in: query + name: labelSelector + schema: + type: string + - description: |- + 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. + in: query + name: limit + schema: + type: integer + - description: "Deprecated: please use the PropagationPolicy, this field will\ + \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ + \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ + \ list. Either this field or PropagationPolicy may be set, but not both." + in: query + name: orphanDependents + schema: + type: boolean + - description: "Whether and how garbage collection will be performed. Either\ + \ this field or OrphanDependents may be set, but not both. The default policy\ + \ is decided by the existing finalizer set in the metadata.finalizers and\ + \ the resource-specific default policy. Acceptable values are: 'Orphan'\ + \ - orphan the dependents; 'Background' - allow the garbage collector to\ + \ delete the dependents in the background; 'Foreground' - a cascading policy\ + \ that deletes all dependents in the foreground." + in: query + name: propagationPolicy + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersion + schema: + type: string + - description: |- + 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 + in: query + name: resourceVersionMatch + schema: + type: string + - description: |- + `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + + When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan + is interpreted as "data at least as new as the provided `resourceVersion`" + and the bookmark event is send when the state is synced + to a `resourceVersion` at least as fresh as the one provided by the ListOptions. + If `resourceVersion` is unset, this is interpreted as "consistent read" and the + bookmark event is send when the state is synced at least to the moment + when request started being processed. + - `resourceVersionMatch` set to any other value or unset + Invalid error is returned. + + Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + in: query + name: sendInitialEvents + schema: + type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: - 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. - in: query - name: continue - schema: - type: string - - description: "When present, indicates that modifications should not be persisted.\ - \ An invalid or unrecognized dryRun directive will result in an error response\ - \ and no further processing of the request. Valid values are: - All: all\ - \ dry run stages will be processed" - in: query - name: dryRun - schema: - type: string - - description: A selector to restrict the list of returned objects by their - fields. Defaults to everything. - in: query - name: fieldSelector - schema: - type: string - - description: "The duration in seconds before the object should be deleted.\ - \ Value must be non-negative integer. The value zero indicates delete immediately.\ - \ If this value is nil, the default grace period for the specified type\ - \ will be used. Defaults to a per object value if not specified. zero means\ - \ delete immediately." - in: query - name: gracePeriodSeconds - schema: - type: integer - - description: "if set to true, it will trigger an unsafe deletion of the resource\ - \ in case the normal deletion flow fails with a corrupt object error. A\ - \ resource is considered corrupt if it can not be retrieved from the underlying\ - \ storage successfully because of a) its data can not be transformed e.g.\ - \ decryption failure, or b) it fails to decode into an object. NOTE: unsafe\ - \ deletion ignores finalizer constraints, skips precondition checks, and\ - \ removes the object from the storage. WARNING: This may potentially break\ - \ the cluster if the workload associated with the resource being unsafe-deleted\ - \ relies on normal deletion flow. Use only if you REALLY know what you are\ - \ doing. The default value is false, and the user must opt in to enable\ - \ it" - in: query - name: ignoreStoreReadErrorWithClusterBreakingPotential - schema: - type: boolean - - description: A selector to restrict the list of returned objects by their - labels. Defaults to everything. - in: query - name: labelSelector - schema: - type: string - - description: |- - 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. - in: query - name: limit - schema: - type: integer - - description: "Deprecated: please use the PropagationPolicy, this field will\ - \ be deprecated in 1.7. Should the dependent objects be orphaned. If true/false,\ - \ the \"orphan\" finalizer will be added to/removed from the object's finalizers\ - \ list. Either this field or PropagationPolicy may be set, but not both." - in: query - name: orphanDependents - schema: - type: boolean - - description: "Whether and how garbage collection will be performed. Either\ - \ this field or OrphanDependents may be set, but not both. The default policy\ - \ is decided by the existing finalizer set in the metadata.finalizers and\ - \ the resource-specific default policy. Acceptable values are: 'Orphan'\ - \ - orphan the dependents; 'Background' - allow the garbage collector to\ - \ delete the dependents in the background; 'Foreground' - a cascading policy\ - \ that deletes all dependents in the foreground." - in: query - name: propagationPolicy - schema: - type: string - - description: |- - 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. + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') - Defaults to unset - in: query - name: resourceVersion - schema: - type: string - - description: |- - 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. + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace - Defaults to unset - in: query - name: resourceVersionMatch - schema: - type: string - - description: |- - `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic "Bookmark" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `"k8s.io/initial-events-end": "true"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. - When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan - is interpreted as "data at least as new as the provided `resourceVersion`" - and the bookmark event is send when the state is synced - to a `resourceVersion` at least as fresh as the one provided by the ListOptions. - If `resourceVersion` is unset, this is interpreted as "consistent read" and the - bookmark event is send when the state is synced at least to the moment - when request started being processed. - - `resourceVersionMatch` set to any other value or unset - Invalid error is returned. + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') - Defaults to true if `resourceVersion=""` or `resourceVersion="0"` (for backward compatibility reasons) and to false otherwise. + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. in: query - name: sendInitialEvents + name: shardSelector schema: - type: boolean + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -84856,6 +95396,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -85564,6 +96131,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -85692,6 +96286,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -86370,6 +96991,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -86498,6 +97146,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -87440,6 +98115,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -87568,6 +98270,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -88289,6 +99018,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -88417,6 +99173,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -89153,6 +99936,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -89281,6 +100091,33 @@ paths: name: sendInitialEvents schema: type: boolean + - description: |- + shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: + + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') + shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + + Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"), NOT the fieldSelector format ("metadata.uid"). Currently supported paths: + - object.metadata.uid + - object.metadata.namespace + + hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. + + Examples: + 2-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') + shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') + 4-shard split: + shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') + shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') + shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') + shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') + + This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + in: query + name: shardSelector + schema: + type: string - description: "Timeout for the list/watch call. This limits the duration of\ \ the call, regardless of any activity or inactivity." in: query @@ -92647,6 +103484,46 @@ paths: - application/jwk-set+json components: schemas: + v1.ApplyConfiguration: + description: ApplyConfiguration defines the desired configuration values of + an object. + example: + expression: expression + properties: + expression: + description: "expression will be evaluated by CEL to create an apply configuration.\ + \ ref: https://github.com/google/cel-spec\n\nApply configurations are\ + \ declared in CEL using object initialization. For example, this CEL expression\ + \ returns an apply configuration to set a single field:\n\n\tObject{\n\ + \t spec: Object.spec{\n\t serviceAccountName: \"example\"\n\t }\n\ + \t}\n\nApply configurations may not modify atomic structs, maps or arrays\ + \ due to the risk of accidental deletion of values not included in the\ + \ apply configuration.\n\nCEL expressions have access to the object types\ + \ needed to create apply configurations:\n\n- 'Object' - CEL type of the\ + \ resource object. - 'Object.' - CEL type of object field (such\ + \ as 'Object.spec') - 'Object.....`\ + \ - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL\ + \ expressions have access to the contents of the API request, organized\ + \ into CEL variables as well as some other useful variables:\n\n- 'object'\ + \ - The object from the incoming request. The value is null for DELETE\ + \ requests. - 'oldObject' - The existing object. The value is null for\ + \ CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).\ + \ - 'params' - Parameter resource referred to by the policy binding being\ + \ evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject'\ + \ - The namespace object that the incoming object belongs to. The value\ + \ is null for cluster-scoped resources. - 'variables' - Map of composited\ + \ variables, from its name to its lazily evaluated value.\n For example,\ + \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ + \ - A CEL Authorizer. May be used to perform authorization checks for\ + \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ + - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ + \ the 'authorizer' and configured with the\n request resource.\n\nThe\ + \ `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are\ + \ always accessible from the root of the object. No other metadata properties\ + \ are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*`\ + \ are accessible. Required." + type: string + type: object v1.AuditAnnotation: description: AuditAnnotation describes how to produce an audit annotation for an API request. @@ -92654,212 +103531,1726 @@ components: valueExpression: valueExpression key: key properties: - key: - description: |- - key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. - - The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". - - If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. - - Required. + key: + description: |- + key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. + + The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: "{ValidatingAdmissionPolicy name}/{key}". + + If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. + + Required. + type: string + valueExpression: + description: |- + valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. + + If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. + + Required. + type: string + required: + - key + - valueExpression + type: object + v1.ExpressionWarning: + description: ExpressionWarning is a warning information that targets a specific + expression. + example: + fieldRef: fieldRef + warning: warning + properties: + fieldRef: + description: "fieldRef is the path to the field that refers to the expression.\ + \ For example, the reference to the expression of the first item of validations\ + \ is \"spec.validations[0].expression\"" + type: string + warning: + description: "warning contains the content of type checking information\ + \ in a human-readable form. Each line of the warning contains the type\ + \ that the expression is checked against, followed by the type check error\ + \ from the compiler." + type: string + required: + - fieldRef + - warning + type: object + v1.JSONPatch: + description: JSONPatch defines a JSON Patch. + example: + expression: expression + properties: + expression: + description: "expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).\ + \ ref: https://github.com/google/cel-spec\n\nexpression must return an\ + \ array of JSONPatch values.\n\nFor example, this CEL expression returns\ + \ a JSON patch to conditionally modify a value:\n\n\t [\n\t JSONPatch{op:\ + \ \"test\", path: \"/spec/example\", value: \"Red\"},\n\t JSONPatch{op:\ + \ \"replace\", path: \"/spec/example\", value: \"Green\"}\n\t ]\n\nTo\ + \ define an object for the patch value, use Object types. For example:\n\ + \n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/spec/selector\"\ + ,\n\t value: Object.spec.selector{matchLabels: {\"environment\":\ + \ \"test\"}}\n\t }\n\t ]\n\nTo use strings containing '/' and '~'\ + \ as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example:\n\n\ + \t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/metadata/labels/\"\ + \ + jsonpatch.escapeKey(\"example.com/environment\"),\n\t value:\ + \ \"test\"\n\t },\n\t ]\n\nCEL expressions have access to the types\ + \ needed to create JSON patches and objects:\n\n- 'JSONPatch' - CEL type\ + \ of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path'\ + \ and 'value'.\n See [JSON patch](https://jsonpatch.com/) for more details.\ + \ The 'value' field may be set to any of: string,\n integer, array, map\ + \ or object. If set, the 'path' and 'from' fields must be set to a\n\ + \ [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string,\ + \ where the 'jsonpatch.escapeKey()' CEL\n function may be used to escape\ + \ path keys containing '/' and '~'.\n- 'Object' - CEL type of the resource\ + \ object. - 'Object.' - CEL type of object field (such as 'Object.spec')\ + \ - 'Object.....` - CEL type of nested\ + \ field (such as 'Object.spec.containers')\n\nCEL expressions have access\ + \ to the contents of the API request, organized into CEL variables as\ + \ well as some other useful variables:\n\n- 'object' - The object from\ + \ the incoming request. The value is null for DELETE requests. - 'oldObject'\ + \ - The existing object. The value is null for CREATE requests. - 'request'\ + \ - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).\ + \ - 'params' - Parameter resource referred to by the policy binding being\ + \ evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject'\ + \ - The namespace object that the incoming object belongs to. The value\ + \ is null for cluster-scoped resources. - 'variables' - Map of composited\ + \ variables, from its name to its lazily evaluated value.\n For example,\ + \ a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer'\ + \ - A CEL Authorizer. May be used to perform authorization checks for\ + \ the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n\ + - 'authorizer.requestResource' - A CEL ResourceCheck constructed from\ + \ the 'authorizer' and configured with the\n request resource.\n\nCEL\ + \ expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)\ + \ as well as:\n\n- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping.\ + \ '~' and '/' are escaped as '~0' and `~1' respectively).\n\nOnly property\ + \ names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required." + type: string + type: object + v1.MatchCondition: + description: MatchCondition represents a condition which must by fulfilled for + a request to be sent to a webhook. + example: + expression: expression + name: name + properties: + expression: + description: |- + expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: + + 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. + See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz + 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the + request resource. + Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ + + Required. + type: string + name: + description: |- + name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') + + Required. + type: string + required: + - expression + - name + type: object + v1.MatchResources: + description: "MatchResources decides whether to run the admission control policy\ + \ on an object based on whether it meets the match criteria. The exclude rules\ + \ take precedence over include rules (if a resource matches both, it is excluded)" + example: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + excludeResourceRules: + description: "excludeResourceRules describes what operations on what resources/subresources\ + \ the ValidatingAdmissionPolicy should not care about. The exclude rules\ + \ take precedence over include rules (if a resource matches both, it is\ + \ excluded)" + items: + $ref: "#/components/schemas/v1.NamedRuleWithOperations" + type: array + x-kubernetes-list-type: atomic + matchPolicy: + description: |- + matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". + + - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. + + - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. + + Defaults to "Equivalent" + type: string + namespaceSelector: + $ref: "#/components/schemas/v1.LabelSelector" + objectSelector: + $ref: "#/components/schemas/v1.LabelSelector" + resourceRules: + description: resourceRules describes what operations on what resources/subresources + the ValidatingAdmissionPolicy matches. The policy cares about an operation + if it matches _any_ Rule. + items: + $ref: "#/components/schemas/v1.NamedRuleWithOperations" + type: array + x-kubernetes-list-type: atomic + type: object + x-kubernetes-map-type: atomic + v1.MutatingAdmissionPolicy: + description: MutatingAdmissionPolicy describes the definition of an admission + mutation policy that mutates the object coming into admission chain. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + reinvocationPolicy: reinvocationPolicy + variables: + - expression: expression + name: name + - expression: expression + name: name + mutations: + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + paramKind: + apiVersion: apiVersion + kind: kind + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + properties: + apiVersion: + description: "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" + type: string + kind: + description: "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" + type: string + metadata: + $ref: "#/components/schemas/v1.ObjectMeta" + spec: + $ref: "#/components/schemas/v1.MutatingAdmissionPolicySpec" + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicy + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.MutatingAdmissionPolicyBinding: + description: |- + MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters. + + For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). + + Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + apiVersion: + description: "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" + type: string + kind: + description: "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" + type: string + metadata: + $ref: "#/components/schemas/v1.ObjectMeta" + spec: + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBindingSpec" + type: object + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyBinding + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1.MutatingAdmissionPolicyBindingList: + description: MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + properties: + apiVersion: + description: "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" type: string - valueExpression: - description: |- - valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. - - If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. - - Required. + items: + description: List of PolicyBinding. + items: + $ref: "#/components/schemas/v1.MutatingAdmissionPolicyBinding" + type: array + kind: + description: "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" type: string + metadata: + $ref: "#/components/schemas/v1.ListMeta" required: - - key - - valueExpression + - items type: object - v1.ExpressionWarning: - description: ExpressionWarning is a warning information that targets a specific - expression. + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyBindingList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.MutatingAdmissionPolicyBindingSpec: + description: MutatingAdmissionPolicyBindingSpec defines the specification of + the MutatingAdmissionPolicyBinding. example: - fieldRef: fieldRef - warning: warning + paramRef: + name: name + namespace: namespace + selector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + parameterNotFoundAction: parameterNotFoundAction + policyName: policyName + matchResources: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels properties: - fieldRef: - description: "The path to the field that refers the expression. For example,\ - \ the reference to the expression of the first item of validations is\ - \ \"spec.validations[0].expression\"" + matchResources: + $ref: "#/components/schemas/v1.MatchResources" + paramRef: + $ref: "#/components/schemas/v1.ParamRef" + policyName: + description: "policyName references a MutatingAdmissionPolicy name which\ + \ the MutatingAdmissionPolicyBinding binds to. If the referenced resource\ + \ does not exist, this binding is considered invalid and will be ignored\ + \ Required." type: string - warning: - description: "The content of type checking information in a human-readable\ - \ form. Each line of the warning contains the type that the expression\ - \ is checked against, followed by the type check error from the compiler." + type: object + v1.MutatingAdmissionPolicyList: + description: MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + reinvocationPolicy: reinvocationPolicy + variables: + - expression: expression + name: name + - expression: expression + name: name + mutations: + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + paramKind: + apiVersion: apiVersion + kind: kind + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + reinvocationPolicy: reinvocationPolicy + variables: + - expression: expression + name: name + - expression: expression + name: name + mutations: + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + paramKind: + apiVersion: apiVersion + kind: kind + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy + properties: + apiVersion: + description: "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" + type: string + items: + description: List of ValidatingAdmissionPolicy. + items: + $ref: "#/components/schemas/v1.MutatingAdmissionPolicy" + type: array + kind: + description: "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" type: string + metadata: + $ref: "#/components/schemas/v1.ListMeta" required: - - fieldRef - - warning + - items type: object - v1.MatchCondition: - description: MatchCondition represents a condition which must by fulfilled for - a request to be sent to a webhook. + x-kubernetes-group-version-kind: + - group: admissionregistration.k8s.io + kind: MutatingAdmissionPolicyList + version: v1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1.MutatingAdmissionPolicySpec: + description: MutatingAdmissionPolicySpec defines the desired behavior of the + admission policy. example: - expression: expression - name: name + reinvocationPolicy: reinvocationPolicy + variables: + - expression: expression + name: name + - expression: expression + name: name + mutations: + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + - patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + paramKind: + apiVersion: apiVersion + kind: kind + matchConditions: + - expression: expression + name: name + - expression: expression + name: name + matchConstraints: + matchPolicy: matchPolicy + resourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + excludeResourceRules: + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + - resourceNames: + - resourceNames + - resourceNames + operations: + - operations + - operations + apiVersions: + - apiVersions + - apiVersions + scope: scope + resources: + - resources + - resources + apiGroups: + - apiGroups + - apiGroups + namespaceSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + objectSelector: + matchExpressions: + - values: + - values + - values + key: key + operator: operator + - values: + - values + - values + key: key + operator: operator + matchLabels: + key: matchLabels + failurePolicy: failurePolicy properties: - expression: + failurePolicy: description: |- - Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: + failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. - 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. - See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the - request resource. - Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ + A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. - Required. + failurePolicy does not define how validations that evaluate to false are handled. + + Allowed values are Ignore or Fail. Defaults to Fail. type: string - name: + matchConditions: description: |- - Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') + matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. - Required. - type: string - required: - - expression - - name - type: object - v1.MatchResources: - description: "MatchResources decides whether to run the admission control policy\ - \ on an object based on whether it meets the match criteria. The exclude rules\ - \ take precedence over include rules (if a resource matches both, it is excluded)" - example: - matchPolicy: matchPolicy - resourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - excludeResourceRules: - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - - resourceNames: - - resourceNames - - resourceNames - operations: - - operations - - operations - apiVersions: - - apiVersions - - apiVersions - scope: scope - resources: - - resources - - resources - apiGroups: - - apiGroups - - apiGroups - namespaceSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - objectSelector: - matchExpressions: - - values: - - values - - values - key: key - operator: operator - - values: - - values - - values - key: key - operator: operator - matchLabels: - key: matchLabels - properties: - excludeResourceRules: - description: "ExcludeResourceRules describes what operations on what resources/subresources\ - \ the ValidatingAdmissionPolicy should not care about. The exclude rules\ - \ take precedence over include rules (if a resource matches both, it is\ - \ excluded)" + If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. + + The exact matching logic is (in order): + 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. + 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. + 3. If any matchCondition evaluates to an error (but none are FALSE): + - If failurePolicy=Fail, reject the request + - If failurePolicy=Ignore, the policy is skipped items: - $ref: "#/components/schemas/v1.NamedRuleWithOperations" + $ref: "#/components/schemas/v1.MatchCondition" + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + matchConstraints: + $ref: "#/components/schemas/v1.MatchResources" + mutations: + description: "mutations contain operations to perform on matching objects.\ + \ mutations may not be empty; a minimum of one mutation is required. mutations\ + \ are evaluated in order, and are reinvoked according to the reinvocationPolicy.\ + \ The mutations of a policy are invoked for each binding of this policy\ + \ and reinvocation of mutations occurs on a per binding basis." + items: + $ref: "#/components/schemas/v1.Mutation" type: array x-kubernetes-list-type: atomic - matchPolicy: + paramKind: + $ref: "#/components/schemas/v1.ParamKind" + reinvocationPolicy: description: |- - matchPolicy defines how the "MatchResources" list is used to match incoming requests. Allowed values are "Exact" or "Equivalent". - - - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. + reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are "Never" and "IfNeeded". - - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. + Never: These mutations will not be called more than once per binding in a single admission evaluation. - Defaults to "Equivalent" + IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required. type: string - namespaceSelector: - $ref: "#/components/schemas/v1.LabelSelector" - objectSelector: - $ref: "#/components/schemas/v1.LabelSelector" - resourceRules: - description: ResourceRules describes what operations on what resources/subresources - the ValidatingAdmissionPolicy matches. The policy cares about an operation - if it matches _any_ Rule. + variables: + description: |- + variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy. + + The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic. items: - $ref: "#/components/schemas/v1.NamedRuleWithOperations" + $ref: "#/components/schemas/v1.Variable" type: array x-kubernetes-list-type: atomic type: object - x-kubernetes-map-type: atomic v1.MutatingWebhook: description: MutatingWebhook describes an admission webhook and the resources and operations it applies to. @@ -92943,7 +105334,7 @@ components: sideEffects: sideEffects properties: admissionReviewVersions: - description: "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`\ + description: "admissionReviewVersions is an ordered list of preferred `AdmissionReview`\ \ versions the Webhook expects. API server will try to use first version\ \ in the list which it supports. If none of the versions specified in\ \ this list supported by API server, validation will fail for this object.\ @@ -92957,13 +105348,13 @@ components: clientConfig: $ref: "#/components/schemas/admissionregistration.v1.WebhookClientConfig" failurePolicy: - description: FailurePolicy defines how unrecognized errors from the admission + description: failurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. type: string matchConditions: description: |- - MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + matchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. @@ -92990,9 +105381,10 @@ components: Defaults to "Equivalent" type: string name: - description: "The name of the admission webhook. Name should be fully qualified,\ - \ e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of\ - \ the webhook, and kubernetes.io is the name of the organization. Required." + description: "name is the name of the admission webhook. Name should be\ + \ fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\"\ + \ is the name of the webhook, and kubernetes.io is the name of the organization.\ + \ Required." type: string namespaceSelector: $ref: "#/components/schemas/v1.LabelSelector" @@ -93009,7 +105401,7 @@ components: Defaults to "Never". type: string rules: - description: "Rules describes what operations on what resources/subresources\ + description: "rules describes what operations on what resources/subresources\ \ the webhook cares about. The webhook cares about an operation if it\ \ matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks\ \ and MutatingAdmissionWebhooks from putting the cluster in a state which\ @@ -93022,7 +105414,7 @@ components: type: array x-kubernetes-list-type: atomic sideEffects: - description: "SideEffects states whether this webhook has side effects.\ + description: "sideEffects states whether this webhook has side 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\ @@ -93031,7 +105423,7 @@ components: \ they match a webhook with sideEffects == Unknown or Some." type: string timeoutSeconds: - description: "TimeoutSeconds specifies the timeout for this webhook. After\ + description: "timeoutSeconds specifies the timeout for this webhook. After\ \ the timeout passes, the webhook call will be ignored or the API call\ \ will fail based on the failure policy. The timeout value must be between\ \ 1 and 30 seconds. Default to 10 seconds." @@ -93264,7 +105656,7 @@ components: metadata: $ref: "#/components/schemas/v1.ObjectMeta" webhooks: - description: Webhooks is a list of webhooks and the affected resources and + description: webhooks is a list of webhooks and the affected resources and operations. items: $ref: "#/components/schemas/v1.MutatingWebhook" @@ -93288,6 +105680,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -93725,6 +106119,27 @@ components: version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject + v1.Mutation: + description: Mutation specifies the CEL expression which is used to apply the + Mutation. + example: + patchType: patchType + applyConfiguration: + expression: expression + jsonPatch: + expression: expression + properties: + applyConfiguration: + $ref: "#/components/schemas/v1.ApplyConfiguration" + jsonPatch: + $ref: "#/components/schemas/v1.JSONPatch" + patchType: + description: patchType indicates the patch strategy used. Allowed values + are "ApplyConfiguration" and "JSONPatch". Required. + type: string + required: + - patchType + type: object v1.NamedRuleWithOperations: description: NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. @@ -93747,7 +106162,7 @@ components: - apiGroups properties: apiGroups: - description: "APIGroups is the API groups the resources belong to. '*' is\ + description: "apiGroups is the API groups the resources belong to. '*' is\ \ all groups. If '*' is present, the length of the slice must be one.\ \ Required." items: @@ -93755,7 +106170,7 @@ components: type: array x-kubernetes-list-type: atomic apiVersions: - description: "APIVersions is the API versions the resources belong to. '*'\ + description: "apiVersions is the API versions the resources belong to. '*'\ \ is all versions. If '*' is present, the length of the slice must be\ \ one. Required." items: @@ -93763,7 +106178,7 @@ components: type: array x-kubernetes-list-type: atomic operations: - description: "Operations is the operations the admission hook cares about\ + description: "operations is the operations the admission hook cares about\ \ - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and\ \ any future admission operations that are added. If '*' is present, the\ \ length of the slice must be one. Required." @@ -93772,7 +106187,7 @@ components: type: array x-kubernetes-list-type: atomic resourceNames: - description: ResourceNames is an optional white list of names that the rule + description: resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. items: type: string @@ -93780,7 +106195,7 @@ components: x-kubernetes-list-type: atomic resources: description: |- - Resources is a list of resources this rule applies to. + resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. @@ -93808,11 +106223,11 @@ components: kind: kind properties: apiVersion: - description: APIVersion is the API group version the resources belong to. + description: apiVersion is the API group version the resources belong to. In format of "group/version". Required. type: string kind: - description: Kind is the API kind the resources belong to. Required. + description: kind is the API kind the resources belong to. Required. type: string type: object x-kubernetes-map-type: atomic @@ -93858,7 +106273,7 @@ components: type: string parameterNotFoundAction: description: |- - `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. + parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` @@ -93887,7 +106302,7 @@ components: - apiGroups properties: apiGroups: - description: "APIGroups is the API groups the resources belong to. '*' is\ + description: "apiGroups is the API groups the resources belong to. '*' is\ \ all groups. If '*' is present, the length of the slice must be one.\ \ Required." items: @@ -93895,7 +106310,7 @@ components: type: array x-kubernetes-list-type: atomic apiVersions: - description: "APIVersions is the API versions the resources belong to. '*'\ + description: "apiVersions is the API versions the resources belong to. '*'\ \ is all versions. If '*' is present, the length of the slice must be\ \ one. Required." items: @@ -93903,7 +106318,7 @@ components: type: array x-kubernetes-list-type: atomic operations: - description: "Operations is the operations the admission hook cares about\ + description: "operations is the operations the admission hook cares about\ \ - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and\ \ any future admission operations that are added. If '*' is present, the\ \ length of the slice must be one. Required." @@ -93913,7 +106328,7 @@ components: x-kubernetes-list-type: atomic resources: description: |- - Resources is a list of resources this rule applies to. + resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. @@ -93942,19 +106357,19 @@ components: namespace: namespace properties: name: - description: '`name` is the name of the service. Required' + description: name is the name of the service. Required type: string namespace: - description: '`namespace` is the namespace of the service. Required' + description: namespace is the namespace of the service. Required type: string path: - description: '`path` is an optional URL path which will be sent in any request - to this service.' + description: path is an optional URL path which will be sent in any request + to this service. type: string port: - description: "If specified, the port on the service that hosting webhook.\ - \ Default to 443 for backward compatibility. `port` should be a valid\ - \ port number (1-65535, inclusive)." + description: "port is the port on the service that hosts the webhook. Default\ + \ to 443 for backward compatibility. `port` should be a valid port number\ + \ (1-65535, inclusive)." format: int32 type: integer required: @@ -93972,7 +106387,8 @@ components: warning: warning properties: expressionWarnings: - description: The type checking warnings for each expression. + description: expressionWarnings contains the type checking warnings for + each expression. items: $ref: "#/components/schemas/v1.ExpressionWarning" type: array @@ -94390,6 +106806,8 @@ components: $ref: "#/components/schemas/v1.ObjectMeta" spec: $ref: "#/components/schemas/v1.ValidatingAdmissionPolicyBindingSpec" + required: + - spec type: object x-kubernetes-group-version-kind: - group: admissionregistration.k8s.io @@ -94404,6 +106822,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -94897,7 +107317,7 @@ components: paramRef: $ref: "#/components/schemas/v1.ParamRef" policyName: - description: "PolicyName references a ValidatingAdmissionPolicy name which\ + description: "policyName references a ValidatingAdmissionPolicy name which\ \ the ValidatingAdmissionPolicyBinding binds to. If the referenced resource\ \ does not exist, this binding is considered invalid and will be ignored\ \ Required." @@ -94927,6 +107347,9 @@ components: type: string type: array x-kubernetes-list-type: set + required: + - policyName + - validationActions type: object v1.ValidatingAdmissionPolicyList: description: ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. @@ -94935,6 +107358,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -95506,7 +107931,7 @@ components: type: string matchConditions: description: |- - MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. @@ -95529,7 +107954,7 @@ components: paramKind: $ref: "#/components/schemas/v1.ParamKind" validations: - description: Validations contain CEL expressions which is used to apply + description: validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. items: @@ -95538,7 +107963,7 @@ components: x-kubernetes-list-type: atomic variables: description: |- - Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. + variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. items: @@ -95576,8 +108001,8 @@ components: observedGeneration: 0 properties: conditions: - description: The conditions represent the latest available observations - of a policy's current state. + description: conditions represent the latest available observations of a + policy's current state. items: $ref: "#/components/schemas/v1.Condition" type: array @@ -95585,7 +108010,7 @@ components: x-kubernetes-list-map-keys: - type observedGeneration: - description: The generation observed by the controller. + description: observedGeneration is the generation observed by the controller. format: int64 type: integer typeChecking: @@ -95673,7 +108098,7 @@ components: sideEffects: sideEffects properties: admissionReviewVersions: - description: "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`\ + description: "admissionReviewVersions is an ordered list of preferred `AdmissionReview`\ \ versions the Webhook expects. API server will try to use first version\ \ in the list which it supports. If none of the versions specified in\ \ this list supported by API server, validation will fail for this object.\ @@ -95687,13 +108112,13 @@ components: clientConfig: $ref: "#/components/schemas/admissionregistration.v1.WebhookClientConfig" failurePolicy: - description: FailurePolicy defines how unrecognized errors from the admission + description: failurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. type: string matchConditions: description: |- - MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. + matchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. @@ -95720,16 +108145,17 @@ components: Defaults to "Equivalent" type: string name: - description: "The name of the admission webhook. Name should be fully qualified,\ - \ e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of\ - \ the webhook, and kubernetes.io is the name of the organization. Required." + description: "name is the name of the admission webhook. Name should be\ + \ fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\"\ + \ is the name of the webhook, and kubernetes.io is the name of the organization.\ + \ Required." type: string namespaceSelector: $ref: "#/components/schemas/v1.LabelSelector" objectSelector: $ref: "#/components/schemas/v1.LabelSelector" rules: - description: "Rules describes what operations on what resources/subresources\ + description: "rules describes what operations on what resources/subresources\ \ the webhook cares about. The webhook cares about an operation if it\ \ matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks\ \ and MutatingAdmissionWebhooks from putting the cluster in a state which\ @@ -95742,7 +108168,7 @@ components: type: array x-kubernetes-list-type: atomic sideEffects: - description: "SideEffects states whether this webhook has side effects.\ + description: "sideEffects states whether this webhook has side 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\ @@ -95751,7 +108177,7 @@ components: \ they match a webhook with sideEffects == Unknown or Some." type: string timeoutSeconds: - description: "TimeoutSeconds specifies the timeout for this webhook. After\ + description: "timeoutSeconds specifies the timeout for this webhook. After\ \ the timeout passes, the webhook call will be ignored or the API call\ \ will fail based on the failure policy. The timeout value must be between\ \ 1 and 30 seconds. Default to 10 seconds." @@ -95982,7 +108408,7 @@ components: metadata: $ref: "#/components/schemas/v1.ObjectMeta" webhooks: - description: Webhooks is a list of webhooks and the affected resources and + description: webhooks is a list of webhooks and the affected resources and operations. items: $ref: "#/components/schemas/v1.ValidatingWebhook" @@ -96006,6 +108432,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -96449,7 +108877,7 @@ components: message: message properties: expression: - description: "Expression represents the expression which will be evaluated\ + description: "expression represents the expression which will be evaluated\ \ by CEL. ref: https://github.com/google/cel-spec CEL expressions have\ \ access to the contents of the API request/response, organized into CEL\ \ variables as well as some other useful variables:\n\n- 'object' - The\ @@ -96493,7 +108921,7 @@ components: \ partial order.\nRequired." type: string message: - description: "Message represents the message displayed when validation fails.\ + description: "message represents the message displayed when validation fails.\ \ The message is required if the Expression contains line breaks. The\ \ message must not contain line breaks. If unset, the message is \"failed\ \ rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\"\ @@ -96519,7 +108947,7 @@ components: object.x must be less than max (\"+string(params.max)+\")\"" type: string reason: - description: "Reason represents a machine-readable description of why this\ + description: "reason represents a machine-readable description of why this\ \ validation failed. If this is the first validation in the list to fail,\ \ this reason, as well as the corresponding HTTP response code, are used\ \ in the HTTP response to the client. The currently supported reasons\ @@ -96537,12 +108965,12 @@ components: name: name properties: expression: - description: Expression is the expression that will be evaluated as the + description: expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. type: string name: - description: "Name is the name of the variable. The name must be a valid\ + description: "name is the name of the variable. The name must be a valid\ \ CEL identifier and unique among all variables. The variable can be accessed\ \ in other expressions through `variables` For example, if name is \"\ foo\", the variable will be available as `variables.foo`" @@ -96565,7 +108993,7 @@ components: url: url properties: caBundle: - description: "`caBundle` is a PEM encoded CA bundle which will be used to\ + description: "caBundle is a PEM encoded CA bundle which will be used to\ \ validate the webhook's server certificate. If unspecified, system trust\ \ roots on the apiserver are used." format: byte @@ -96575,7 +109003,7 @@ components: $ref: "#/components/schemas/admissionregistration.v1.ServiceReference" url: description: |- - `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. + url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. @@ -96687,7 +109115,7 @@ components: properties: expression: description: |- - Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: + expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz @@ -96699,7 +109127,7 @@ components: type: string name: description: |- - Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') + name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. type: string @@ -96809,7 +109237,7 @@ components: key: matchLabels properties: excludeResourceRules: - description: "ExcludeResourceRules describes what operations on what resources/subresources\ + description: "excludeResourceRules describes what operations on what resources/subresources\ \ the policy should not care about. The exclude rules take precedence\ \ over include rules (if a resource matches both, it is excluded)" items: @@ -96831,7 +109259,7 @@ components: objectSelector: $ref: "#/components/schemas/v1.LabelSelector" resourceRules: - description: ResourceRules describes what operations on what resources/subresources + description: resourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule. items: @@ -97238,6 +109666,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -97735,6 +110165,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -98340,7 +110772,7 @@ components: - apiGroups properties: apiGroups: - description: "APIGroups is the API groups the resources belong to. '*' is\ + description: "apiGroups is the API groups the resources belong to. '*' is\ \ all groups. If '*' is present, the length of the slice must be one.\ \ Required." items: @@ -98348,7 +110780,7 @@ components: type: array x-kubernetes-list-type: atomic apiVersions: - description: "APIVersions is the API versions the resources belong to. '*'\ + description: "apiVersions is the API versions the resources belong to. '*'\ \ is all versions. If '*' is present, the length of the slice must be\ \ one. Required." items: @@ -98356,7 +110788,7 @@ components: type: array x-kubernetes-list-type: atomic operations: - description: "Operations is the operations the admission hook cares about\ + description: "operations is the operations the admission hook cares about\ \ - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and\ \ any future admission operations that are added. If '*' is present, the\ \ length of the slice must be one. Required." @@ -98365,7 +110797,7 @@ components: type: array x-kubernetes-list-type: atomic resourceNames: - description: ResourceNames is an optional white list of names that the rule + description: resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. items: type: string @@ -98373,7 +110805,7 @@ components: x-kubernetes-list-type: atomic resources: description: |- - Resources is a list of resources this rule applies to. + resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. @@ -98401,11 +110833,11 @@ components: kind: kind properties: apiVersion: - description: APIVersion is the API group version the resources belong to. + description: apiVersion is the API group version the resources belong to. In format of "group/version". Required. type: string kind: - description: Kind is the API kind the resources belong to. Required. + description: kind is the API kind the resources belong to. Required. type: string type: object x-kubernetes-map-type: atomic @@ -98433,7 +110865,7 @@ components: properties: name: description: |- - `name` is the name of the resource being referenced. + name is the name of the resource being referenced. `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. type: string @@ -98449,7 +110881,7 @@ components: type: string parameterNotFoundAction: description: |- - `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. + parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Default to `Deny` type: string @@ -98464,12 +110896,12 @@ components: name: name properties: expression: - description: Expression is the expression that will be evaluated as the + description: expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. type: string name: - description: "Name is the name of the variable. The name must be a valid\ + description: "name is the name of the variable. The name must be a valid\ \ CEL identifier and unique among all variables. The variable can be accessed\ \ in other expressions through `variables` For example, if name is \"\ foo\", the variable will be available as `variables.foo`" @@ -98579,7 +111011,7 @@ components: properties: expression: description: |- - Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: + expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz @@ -98591,7 +111023,7 @@ components: type: string name: description: |- - Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') + name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. type: string @@ -98701,7 +111133,7 @@ components: key: matchLabels properties: excludeResourceRules: - description: "ExcludeResourceRules describes what operations on what resources/subresources\ + description: "excludeResourceRules describes what operations on what resources/subresources\ \ the ValidatingAdmissionPolicy should not care about. The exclude rules\ \ take precedence over include rules (if a resource matches both, it is\ \ excluded)" @@ -98724,7 +111156,7 @@ components: objectSelector: $ref: "#/components/schemas/v1.LabelSelector" resourceRules: - description: ResourceRules describes what operations on what resources/subresources + description: resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. items: @@ -99131,6 +111563,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -99628,6 +112062,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -100233,7 +112669,7 @@ components: - apiGroups properties: apiGroups: - description: "APIGroups is the API groups the resources belong to. '*' is\ + description: "apiGroups is the API groups the resources belong to. '*' is\ \ all groups. If '*' is present, the length of the slice must be one.\ \ Required." items: @@ -100241,7 +112677,7 @@ components: type: array x-kubernetes-list-type: atomic apiVersions: - description: "APIVersions is the API versions the resources belong to. '*'\ + description: "apiVersions is the API versions the resources belong to. '*'\ \ is all versions. If '*' is present, the length of the slice must be\ \ one. Required." items: @@ -100249,7 +112685,7 @@ components: type: array x-kubernetes-list-type: atomic operations: - description: "Operations is the operations the admission hook cares about\ + description: "operations is the operations the admission hook cares about\ \ - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and\ \ any future admission operations that are added. If '*' is present, the\ \ length of the slice must be one. Required." @@ -100258,7 +112694,7 @@ components: type: array x-kubernetes-list-type: atomic resourceNames: - description: ResourceNames is an optional white list of names that the rule + description: resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. items: type: string @@ -100266,7 +112702,7 @@ components: x-kubernetes-list-type: atomic resources: description: |- - Resources is a list of resources this rule applies to. + resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources. @@ -100294,11 +112730,11 @@ components: kind: kind properties: apiVersion: - description: APIVersion is the API group version the resources belong to. + description: apiVersion is the API group version the resources belong to. In format of "group/version". Required. type: string kind: - description: Kind is the API kind the resources belong to. Required. + description: kind is the API kind the resources belong to. Required. type: string type: object x-kubernetes-map-type: atomic @@ -100344,7 +112780,7 @@ components: type: string parameterNotFoundAction: description: |- - `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. + parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` @@ -100362,12 +112798,12 @@ components: name: name properties: expression: - description: Expression is the expression that will be evaluated as the + description: expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. type: string name: - description: "Name is the name of the variable. The name must be a valid\ + description: "name is the name of the variable. The name must be a valid\ \ CEL identifier and unique among all variables. The variable can be accessed\ \ in other expressions through `variables` For example, if name is \"\ foo\", the variable will be available as `variables.foo`" @@ -100391,26 +112827,31 @@ components: - servedVersions properties: apiServerID: - description: The ID of the reporting API server. + description: apiServerID is the ID of the reporting API server. type: string decodableVersions: - description: The API server can decode objects encoded in these versions. - The encodingVersion must be included in the decodableVersions. + description: decodableVersions are the encoding versions the API server + can handle to decode. The API server can decode objects encoded in these + versions. The encodingVersion must be included in the decodableVersions. items: type: string type: array x-kubernetes-list-type: set encodingVersion: - description: "The API server encodes the object to this version when persisting\ - \ it in the backend (e.g., etcd)." + description: "encodingVersion the API server encodes the object to when\ + \ persisting it in the backend (e.g., etcd)." type: string servedVersions: - description: The API server can serve these versions. DecodableVersions - must include all ServedVersions. + description: servedVersions lists all versions the API server can serve. + DecodableVersions must include all ServedVersions. items: type: string type: array x-kubernetes-list-type: set + required: + - apiServerID + - decodableVersions + - encodingVersion type: object v1alpha1.StorageVersion: description: Storage version of a specific resource. @@ -100510,15 +112951,14 @@ components: metadata: $ref: "#/components/schemas/v1.ObjectMeta" spec: - description: Spec is an empty spec. It is here to comply with Kubernetes + description: spec is an empty spec. It is here to comply with Kubernetes API style. properties: {} type: object status: $ref: "#/components/schemas/v1alpha1.StorageVersionStatus" required: - - spec - - status + - metadata type: object x-kubernetes-group-version-kind: - group: internal.apiserver.k8s.io @@ -100537,25 +112977,27 @@ components: status: status properties: lastTransitionTime: - description: Last time the condition transitioned from one status to another. + description: lastTransitionTime is the last time the condition transitioned + from one status to another. format: date-time type: string message: - description: A human readable message indicating details about the transition. + description: message is a human readable string indicating details about + the transition. type: string observedGeneration: - description: "If set, this represents the .metadata.generation that the\ - \ condition was set based upon." + description: "observedGeneration represents the .metadata.generation that\ + \ the condition was set based upon, if field is set." format: int64 type: integer reason: - description: The reason for the condition's last transition. + description: reason for the condition's last transition. type: string status: - description: "Status of the condition, one of True, False, Unknown." + description: "status of the condition, one of True, False, Unknown." type: string type: - description: Type of the condition. + description: type of the condition. type: string required: - message @@ -100570,6 +113012,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -100800,14 +113244,15 @@ components: - servedVersions properties: commonEncodingVersion: - description: "If all API server instances agree on the same encoding storage\ - \ version, then this field is set to that version. Otherwise this field\ - \ is left empty. API servers should finish updating its storageVersionStatus\ - \ entry before serving write operations, so that this field will be in\ - \ sync with the reality." + description: "commonEncodingVersion is set to an encoding storage version\ + \ if all API server instances share that same version. If they don't share\ + \ one storage version, this field is left empty. API servers should finish\ + \ updating its storageVersionStatus entry before serving write operations,\ + \ so that this field will be in sync with the reality." type: string conditions: - description: The latest available observations of the storageVersion's state. + description: conditions lists the latest available observations of the storageVersion's + state. items: $ref: "#/components/schemas/v1alpha1.StorageVersionCondition" type: array @@ -100815,7 +113260,8 @@ components: x-kubernetes-list-map-keys: - type storageVersions: - description: The reported versions per API server instance. + description: storageVersions lists the reported versions per API server + instance. items: $ref: "#/components/schemas/v1alpha1.ServerStorageVersion" type: array @@ -100924,6 +113370,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -101226,10 +113674,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -101247,6 +113691,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -104455,6 +116901,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -104627,10 +117075,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -104648,6 +117092,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -107963,10 +120409,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -107984,6 +120426,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -111280,10 +123724,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -111301,6 +123741,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -114726,10 +127168,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -114747,6 +127185,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -117964,6 +130404,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -118136,10 +130578,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -118157,6 +130595,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -121476,10 +133916,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -121497,6 +133933,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -124798,10 +137236,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -124819,6 +137253,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -128257,10 +140693,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -128278,6 +140710,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -131479,6 +143913,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -131651,10 +144087,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -131672,6 +144104,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -134979,10 +147413,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -135000,6 +147430,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -138288,10 +150720,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -138309,6 +150737,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -141759,10 +154189,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -141780,6 +154206,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -145221,6 +157649,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -145393,10 +157823,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -145414,6 +157840,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -148962,10 +161390,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -148983,6 +161407,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -152548,10 +164974,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -152569,6 +164991,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -156102,16 +168526,16 @@ components: name: name properties: apiVersion: - description: API version of the referent. + description: apiVersion is API version of the referent. type: string kind: - description: Kind of the referent. Valid kinds are 'Pod' and 'Secret'. + description: kind of the referent. Valid kinds are 'Pod' and 'Secret'. type: string name: - description: Name of the referent. + description: name of the referent. type: string uid: - description: UID of the referent. + description: uid of the referent. type: string type: object v1.SelfSubjectReview: @@ -156301,8 +168725,6 @@ components: $ref: "#/components/schemas/v1.TokenRequestSpec" status: $ref: "#/components/schemas/v1.TokenRequestStatus" - required: - - spec type: object x-kubernetes-group-version-kind: - group: authentication.k8s.io @@ -156325,7 +168747,7 @@ components: - audiences properties: audiences: - description: "Audiences are the intendend audiences of the token. A recipient\ + description: "audiences are the intendend audiences of the token. A recipient\ \ of a token must identify themself with an identifier in the list of\ \ audiences of the token, and otherwise should reject the token. A token\ \ issued for multiple audiences may be used to authenticate against any\ @@ -156338,13 +168760,11 @@ components: boundObjectRef: $ref: "#/components/schemas/v1.BoundObjectReference" expirationSeconds: - description: ExpirationSeconds is the requested duration of validity of + description: expirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. format: int64 type: integer - required: - - audiences type: object v1.TokenRequestStatus: description: TokenRequestStatus is the result of a token request. @@ -156353,16 +168773,13 @@ components: token: token properties: expirationTimestamp: - description: ExpirationTimestamp is the time of expiration of the returned + description: expirationTimestamp is the time of expiration of the returned token. format: date-time type: string token: - description: Token is the opaque bearer token. + description: token is the opaque bearer token. type: string - required: - - expirationTimestamp - - token type: object v1.TokenReview: description: "TokenReview attempts to authenticate a token to a known user.\ @@ -156473,7 +168890,7 @@ components: token: token properties: audiences: - description: "Audiences is a list of the identifiers that the resource server\ + description: "audiences is a list of the identifiers that the resource server\ \ presented with the token identifies as. Audience-aware token authenticators\ \ will verify that the token was intended for at least one of the audiences\ \ in this list. If no audiences are provided, the audience will default\ @@ -156483,8 +168900,10 @@ components: type: array x-kubernetes-list-type: atomic token: - description: Token is the opaque bearer token. + description: token is the opaque bearer token. type: string + required: + - token type: object v1.TokenReviewStatus: description: TokenReviewStatus is the result of the token authentication request. @@ -156506,7 +168925,7 @@ components: username: username properties: audiences: - description: "Audiences are audience identifiers chosen by the authenticator\ + description: "audiences are audience identifiers chosen by the authenticator\ \ that are compatible with both the TokenReview and token. An identifier\ \ is any identifier in the intersection of the TokenReviewSpec audiences\ \ and the token's audiences. A client of the TokenReview API that sets\ @@ -156520,11 +168939,11 @@ components: type: array x-kubernetes-list-type: atomic authenticated: - description: Authenticated indicates that the token was associated with + description: authenticated indicates that the token was associated with a known user. type: boolean error: - description: Error indicates that the token couldn't be checked + description: error indicates that the token couldn't be checked type: string user: $ref: "#/components/schemas/v1.UserInfo" @@ -156548,22 +168967,22 @@ components: items: type: string type: array - description: Any additional information provided by the authenticator. + description: extra is any additional information provided by the authenticator. type: object groups: - description: The names of groups this user is a part of. + description: groups is the names of groups this user is a part of. items: type: string type: array x-kubernetes-list-type: atomic uid: - description: "A unique value that identifies this user across time. If this\ - \ user is deleted and another user by the same name is added, they will\ - \ have different UIDs." + description: "uid is a unique value that identifies this user across time.\ + \ If this user is deleted and another user by the same name is added,\ + \ they will have different UIDs." type: string username: - description: The name that uniquely identifies this user among all active - users. + description: username is the name that uniquely identifies this user among + all active users. type: string type: object v1.FieldSelectorAttributes: @@ -156796,10 +169215,10 @@ components: verb: verb properties: path: - description: Path is the URL path of the request + description: path is the URL path of the request type: string verb: - description: Verb is the standard HTTP verb + description: verb is the standard HTTP verb type: string type: object v1.NonResourceRule: @@ -156814,7 +169233,7 @@ components: - nonResourceURLs properties: nonResourceURLs: - description: "NonResourceURLs is a set of partial urls that a user should\ + description: "nonResourceURLs is a set of partial urls that a user should\ \ have access to. *s are allowed, but only as the full, final step in\ \ the path. \"*\" means all." items: @@ -156822,7 +169241,7 @@ components: type: array x-kubernetes-list-type: atomic verbs: - description: "Verb is a list of kubernetes non-resource API verbs, like:\ + description: "verbs is a list of kubernetes non-resource API verbs, like:\ \ get, post, put, delete, patch, head, options. \"*\" means all." items: type: string @@ -156872,35 +169291,35 @@ components: fieldSelector: $ref: "#/components/schemas/v1.FieldSelectorAttributes" group: - description: Group is the API Group of the Resource. "*" means all. + description: group is the API Group of the Resource. "*" means all. type: string labelSelector: $ref: "#/components/schemas/v1.LabelSelectorAttributes" name: - description: Name is the name of the resource being requested for a "get" + description: name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all. type: string namespace: - description: "Namespace is the namespace of the action being requested.\ + description: "namespace is the namespace of the action being requested.\ \ Currently, there is no distinction between no namespace and all namespaces\ \ \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty)\ \ is empty for cluster-scoped resources \"\" (empty) means \"all\" for\ \ namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview" type: string resource: - description: Resource is one of the existing resource types. "*" means + description: resource is one of the existing resource types. "*" means all. type: string subresource: - description: Subresource is one of the existing resource types. "" means + description: subresource is one of the existing resource types. "" means none. type: string verb: - description: "Verb is a kubernetes resource API verb, like: get, list, watch,\ + description: "verb is a kubernetes resource API verb, like: get, list, watch,\ \ create, update, delete, proxy. \"*\" means all." type: string version: - description: Version is the API Version of the Resource. "*" means all. + description: version is the API Version of the Resource. "*" means all. type: string type: object v1.ResourceRule: @@ -156922,7 +169341,7 @@ components: - apiGroups properties: apiGroups: - description: "APIGroups is the name of the APIGroup that contains the resources.\ + description: "apiGroups is the name of the APIGroup that contains the resources.\ \ If multiple API groups are specified, any action requested against\ \ one of the enumerated resources in any API group will be allowed. \"\ *\" means all." @@ -156931,7 +169350,7 @@ components: type: array x-kubernetes-list-type: atomic resourceNames: - description: ResourceNames is an optional white list of names that the rule + description: resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all. items: @@ -156940,14 +169359,14 @@ components: x-kubernetes-list-type: atomic resources: description: |- - Resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. + resources is a list of resources this rule applies to. "*" means all in the specified apiGroups. "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups. items: type: string type: array x-kubernetes-list-type: atomic verbs: - description: "Verb is a list of kubernetes resource API verbs, like: get,\ + description: "verbs is a list of kubernetes resource API verbs, like: get,\ \ list, watch, create, update, delete, proxy. \"*\" means all." items: type: string @@ -157081,8 +169500,7 @@ components: - io.kubernetes.client.common.KubernetesObject v1.SelfSubjectAccessReviewSpec: description: SelfSubjectAccessReviewSpec is a description of the access request. Exactly - one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes - must be set + one of resourceAttributes and nonResourceAttributes must be set example: nonResourceAttributes: path: path @@ -157261,7 +169679,7 @@ components: namespace: namespace properties: namespace: - description: Namespace to evaluate rules for. Required. + description: namespace to evaluate rules for. Required. type: string type: object v1.SubjectAccessReview: @@ -157396,8 +169814,7 @@ components: - io.kubernetes.client.common.KubernetesObject v1.SubjectAccessReviewSpec: description: SubjectAccessReviewSpec is a description of the access request. Exactly - one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes - must be set + one of resourceAttributes and nonResourceAttributes must be set example: uid: uid nonResourceAttributes: @@ -157451,12 +169868,12 @@ components: items: type: string type: array - description: Extra corresponds to the user.Info.GetExtra() method from the + description: extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. type: object groups: - description: Groups is the groups you're testing for. + description: groups is the groups you're testing for. items: type: string type: array @@ -157466,10 +169883,10 @@ components: resourceAttributes: $ref: "#/components/schemas/v1.ResourceAttributes" uid: - description: UID information about the requesting user. + description: uid information about the requesting user. type: string user: - description: "User is the user you're testing for. If you specify \"User\"\ + description: "user is the user you're testing for. If you specify \"User\"\ \ but not \"Groups\", then is it interpreted as \"What if User were not\ \ a member of any groups" type: string @@ -157483,24 +169900,24 @@ components: denied: true properties: allowed: - description: "Allowed is required. True if the action would be allowed,\ + description: "allowed is required. True if the action would be allowed,\ \ false otherwise." type: boolean denied: - description: "Denied is optional. True if the action would be denied, otherwise\ + description: "denied is optional. True if the action would be denied, otherwise\ \ false. If both allowed is false and denied is false, then the authorizer\ \ has no opinion on whether to authorize the action. Denied may not be\ \ true if Allowed is true." type: boolean evaluationError: - description: "EvaluationError is an indication that some error occurred\ + description: "evaluationError is an indication that some error occurred\ \ during the authorization check. It is entirely possible to get an error\ \ and be able to continue determine authorization status in spite of it.\ \ For instance, RBAC can be missing a role, but enough roles are still\ \ present and bound to reason about the request." type: string reason: - description: Reason is optional. It indicates why a request was allowed + description: reason is optional. It indicates why a request was allowed or denied. type: string required: @@ -157555,18 +169972,18 @@ components: evaluationError: evaluationError properties: evaluationError: - description: "EvaluationError can appear in combination with Rules. It indicates\ + description: "evaluationError can appear in combination with Rules. It indicates\ \ an error occurred during rule evaluation, such as an authorizer that\ \ doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules\ \ may be incomplete." type: string incomplete: - description: "Incomplete is true when the rules returned by this call are\ + description: "incomplete is true when the rules returned by this call are\ \ incomplete. This is most commonly encountered when an authorizer, such\ \ as an external authorizer, doesn't support rules evaluation." type: boolean nonResourceRules: - description: "NonResourceRules is the list of actions the subject is allowed\ + description: "nonResourceRules is the list of actions the subject is allowed\ \ to perform on non-resources. The list ordering isn't significant, may\ \ contain duplicates, and possibly be incomplete." items: @@ -157574,7 +169991,7 @@ components: type: array x-kubernetes-list-type: atomic resourceRules: - description: "ResourceRules is the list of actions the subject is allowed\ + description: "resourceRules is the list of actions the subject is allowed\ \ to perform on resources. The list ordering isn't significant, may contain\ \ duplicates, and possibly be incomplete." items: @@ -157690,6 +170107,8 @@ components: $ref: "#/components/schemas/v1.HorizontalPodAutoscalerSpec" status: $ref: "#/components/schemas/v1.HorizontalPodAutoscalerStatus" + required: + - spec type: object x-kubernetes-group-version-kind: - group: autoscaling @@ -157704,6 +170123,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -158757,6 +171178,8 @@ components: $ref: "#/components/schemas/v2.HorizontalPodAutoscalerSpec" status: $ref: "#/components/schemas/v2.HorizontalPodAutoscalerStatus" + required: + - spec type: object x-kubernetes-group-version-kind: - group: autoscaling @@ -158837,6 +171260,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -161043,10 +173468,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -161064,6 +173485,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -164266,6 +176689,8 @@ components: $ref: "#/components/schemas/v1.CronJobSpec" status: $ref: "#/components/schemas/v1.CronJobStatus" + required: + - spec type: object x-kubernetes-group-version-kind: - group: batch @@ -164280,6 +176705,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -164503,10 +176930,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -164524,6 +176947,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -167928,10 +180353,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -167949,6 +180370,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -171335,10 +183758,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -171356,6 +183775,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -174781,10 +187202,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -174802,6 +187219,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -178059,6 +190478,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -178232,10 +190653,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -178253,6 +190670,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -181614,10 +194033,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -181635,6 +194050,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -184977,10 +197394,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -184998,6 +197411,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -188566,10 +200981,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -188587,6 +200998,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -192167,6 +204580,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -192617,6 +205032,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -192869,6 +205286,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -193087,6 +205506,7 @@ components: kind: kind spec: nodeName: nodeName + stubPKCS10Request: stubPKCS10Request pkixPublicKey: pkixPublicKey podUID: podUID serviceAccountName: serviceAccountName @@ -193150,6 +205570,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -193204,6 +205626,7 @@ components: kind: kind spec: nodeName: nodeName + stubPKCS10Request: stubPKCS10Request pkixPublicKey: pkixPublicKey podUID: podUID serviceAccountName: serviceAccountName @@ -193283,6 +205706,7 @@ components: kind: kind spec: nodeName: nodeName + stubPKCS10Request: stubPKCS10Request pkixPublicKey: pkixPublicKey podUID: podUID serviceAccountName: serviceAccountName @@ -193344,6 +205768,7 @@ components: fields are immutable after creation. example: nodeName: nodeName + stubPKCS10Request: stubPKCS10Request pkixPublicKey: pkixPublicKey podUID: podUID serviceAccountName: serviceAccountName @@ -193373,11 +205798,13 @@ components: type: string pkixPublicKey: description: |- - pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to. + The PKIX-serialized public key the signer will issue the certificate to. The key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of "Denied" and a reason of "UnsupportedKeyType". It may also suggest a key type that it does support in the message field. + + Deprecated: This field is replaced by StubPKCS10Request. If StubPKCS10Request is set, this field must be empty. Signer implementations should extract the public key from the StubPKCS10Request field. format: byte pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" type: string @@ -193391,7 +205818,7 @@ components: type: string proofOfPossession: description: |- - proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey. + A proof that the requesting kubelet holds the private key corresponding to pkixPublicKey. It is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`. @@ -193402,6 +205829,8 @@ components: If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1) If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign). + + Deprecated: This field is replaced by StubPKCS10Request. If StubPKCS10Request is set, this field must be empty. format: byte pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" type: string @@ -193419,6 +205848,18 @@ components: All signer names beginning with `kubernetes.io` are reserved for use by the Kubernetes project. There is currently one well-known signer documented by the Kubernetes project, `kubernetes.io/kube-apiserver-client-pod`, which will issue client certificates understood by kube-apiserver. It is currently unimplemented. type: string + stubPKCS10Request: + description: |- + A PKCS#10 certificate signing request (DER-serialized) generated by Kubelet using the subject private key. + + Most signer implementations will ignore the contents of the CSR except to extract the subject public key. The API server automatically verifies the CSR signature during admission, so the signer does not need to repeat the verification. CSRs generated by kubelet are completely empty. + + The subject public key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. + + Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of "Denied" and a reason of "UnsupportedKeyType". It may also suggest a key type that it does support in the message field. + format: byte + pattern: "^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$" + type: string unverifiedUserAnnotations: additionalProperties: type: string @@ -193432,13 +205873,12 @@ components: required: - nodeName - nodeUID - - pkixPublicKey - podName - podUID - - proofOfPossession - serviceAccountName - serviceAccountUID - signerName + - stubPKCS10Request type: object v1beta1.PodCertificateRequestStatus: description: "PodCertificateRequestStatus describes the status of the request,\ @@ -193602,6 +206042,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -193868,6 +206310,8 @@ components: $ref: "#/components/schemas/v1.ObjectMeta" spec: $ref: "#/components/schemas/v1alpha2.LeaseCandidateSpec" + required: + - spec type: object x-kubernetes-group-version-kind: - group: coordination.k8s.io @@ -193882,6 +206326,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -194150,6 +206596,8 @@ components: $ref: "#/components/schemas/v1.ObjectMeta" spec: $ref: "#/components/schemas/v1beta1.LeaseCandidateSpec" + required: + - spec type: object x-kubernetes-group-version-kind: - group: coordination.k8s.io @@ -194164,6 +206612,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -195490,6 +207940,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -195787,6 +208239,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -196780,14 +209234,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -196820,10 +209278,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -197500,6 +209964,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -198679,6 +211145,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -199496,6 +211964,19 @@ components: \ and StatefulSets." type: string type: object + v1.ImageVolumeStatus: + description: ImageVolumeStatus represents the image-based volume status. + example: + imageRef: imageRef + properties: + imageRef: + description: "ImageRef is the digest of the image used for this volume.\ + \ It should have a value that's similar to the pod's status.containerStatuses[i].imageID.\ + \ The ImageRef length should not exceed 256 characters." + type: string + required: + - imageRef + type: object v1.KeyToPath: description: Maps a string key to a path within a volume. example: @@ -199776,6 +212257,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -200304,6 +212787,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -200839,6 +213324,38 @@ components: requiredDuringSchedulingIgnoredDuringExecution: $ref: "#/components/schemas/v1.NodeSelector" type: object + v1.NodeAllocatableResourceClaimStatus: + description: NodeAllocatableResourceClaimStatus describes the status of node + allocatable resources allocated via DRA. + example: + resourceClaimName: resourceClaimName + resources: + key: null + containers: + - containers + - containers + properties: + containers: + description: Containers lists the names of all containers in this pod that + reference the claim. + items: + type: string + type: array + x-kubernetes-list-type: set + resourceClaimName: + description: ResourceClaimName is the resource claim referenced by the pod + that resulted in this node allocatable resource allocation. + type: string + resources: + additionalProperties: + $ref: "#/components/schemas/resource.Quantity" + description: Resources is a map of the node-allocatable resource name to + the aggregate quantity allocated to the claim. + type: object + required: + - resourceClaimName + - resources + type: object v1.NodeCondition: description: NodeCondition contains condition information for a node. example: @@ -200969,6 +213486,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -202386,6 +214905,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -202968,6 +215489,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -204097,10 +216620,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -204118,6 +216637,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -207237,14 +219758,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -207277,10 +219802,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -207314,14 +219845,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -207354,10 +219889,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -207387,6 +219928,19 @@ components: - 8 - 8 hostIP: hostIP + nodeAllocatableResourceClaimStatuses: + - resourceClaimName: resourceClaimName + resources: + key: null + containers: + - containers + - containers + - resourceClaimName: resourceClaimName + resources: + key: null + containers: + - containers + - containers extendedResourceClaimStatus: resourceClaimName: resourceClaimName requestMappings: @@ -207420,14 +219974,214 @@ components: resources: - resourceID: resourceID health: health + message: message + - resourceID: resourceID + health: health + message: message + - name: name + resources: + - resourceID: resourceID + health: health + message: message + - resourceID: resourceID + health: health + message: message + image: image + imageID: imageID + restartCount: 0 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 6 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + volumeStatus: + image: + imageRef: imageRef + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + volumeStatus: + image: + imageRef: imageRef + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 6 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + message: message + - resourceID: resourceID + health: health + message: message + - name: name + resources: + - resourceID: resourceID + health: health + message: message + - resourceID: resourceID + health: health + message: message + image: image + imageID: imageID + restartCount: 0 + resources: + claims: + - request: request + name: name + - request: request + name: name + requests: + key: null + limits: + key: null + started: true + lastState: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 6 + finishedAt: 2000-01-23T04:56:07.000+00:00 + volumeMounts: + - mountPath: mountPath + name: name + readOnly: true + volumeStatus: + image: + imageRef: imageRef + recursiveReadOnly: recursiveReadOnly + - mountPath: mountPath + name: name + readOnly: true + volumeStatus: + image: + imageRef: imageRef + recursiveReadOnly: recursiveReadOnly + allocatedResources: + key: null + ready: true + name: name + state: + running: + startedAt: 2000-01-23T04:56:07.000+00:00 + waiting: + reason: reason + message: message + terminated: + reason: reason + exitCode: 7 + startedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + message: message + signal: 6 + finishedAt: 2000-01-23T04:56:07.000+00:00 + containerID: containerID + stopSignal: stopSignal + user: + linux: + uid: 7 + gid: 4 + supplementalGroups: + - 8 + - 8 + hostIPs: + - ip: ip + - ip: ip + resize: resize + startTime: 2000-01-23T04:56:07.000+00:00 + qosClass: qosClass + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 0 + lastProbeTime: 2000-01-23T04:56:07.000+00:00 + status: status + initContainerStatuses: + - allocatedResourcesStatus: + - name: name + resources: + - resourceID: resourceID + health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -207460,10 +220214,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -207497,190 +220257,18 @@ components: resources: - resourceID: resourceID health: health - - resourceID: resourceID - health: health - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 7 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 6 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 7 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID message: message - signal: 6 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - stopSignal: stopSignal - user: - linux: - uid: 7 - gid: 4 - supplementalGroups: - - 8 - - 8 - hostIPs: - - ip: ip - - ip: ip - resize: resize - startTime: 2000-01-23T04:56:07.000+00:00 - qosClass: qosClass - conditions: - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - - reason: reason - lastTransitionTime: 2000-01-23T04:56:07.000+00:00 - message: message - type: type - observedGeneration: 0 - lastProbeTime: 2000-01-23T04:56:07.000+00:00 - status: status - initContainerStatuses: - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - - name: name - resources: - resourceID: resourceID health: health - - resourceID: resourceID - health: health - image: image - imageID: imageID - restartCount: 0 - resources: - claims: - - request: request - name: name - - request: request - name: name - requests: - key: null - limits: - key: null - started: true - lastState: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 7 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - message: message - signal: 6 - finishedAt: 2000-01-23T04:56:07.000+00:00 - volumeMounts: - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - - mountPath: mountPath - name: name - readOnly: true - recursiveReadOnly: recursiveReadOnly - allocatedResources: - key: null - ready: true - name: name - state: - running: - startedAt: 2000-01-23T04:56:07.000+00:00 - waiting: - reason: reason - message: message - terminated: - reason: reason - exitCode: 7 - startedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID message: message - signal: 6 - finishedAt: 2000-01-23T04:56:07.000+00:00 - containerID: containerID - stopSignal: stopSignal - user: - linux: - uid: 7 - gid: 4 - supplementalGroups: - - 8 - - 8 - - allocatedResourcesStatus: - - name: name - resources: - - resourceID: resourceID - health: health - - resourceID: resourceID - health: health - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -207713,10 +220301,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -208343,8 +220937,7 @@ components: type: string observedGeneration: description: "If set, this represents the .metadata.generation that the\ - \ pod condition was set based upon. The PodObservedGenerationTracking\ - \ feature gate must be enabled to use this field." + \ pod condition was set based upon." format: int64 type: integer reason: @@ -208464,6 +221057,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -208588,10 +221183,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -208609,6 +221200,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -211728,14 +224321,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -211768,10 +224365,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -211805,14 +224408,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -211845,10 +224452,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -211878,6 +224491,19 @@ components: - 8 - 8 hostIP: hostIP + nodeAllocatableResourceClaimStatuses: + - resourceClaimName: resourceClaimName + resources: + key: null + containers: + - containers + - containers + - resourceClaimName: resourceClaimName + resources: + key: null + containers: + - containers + - containers extendedResourceClaimStatus: resourceClaimName: resourceClaimName requestMappings: @@ -211911,14 +224537,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -211951,10 +224581,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -211988,14 +224624,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -212028,10 +224668,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -212087,14 +224733,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -212127,10 +224777,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -212164,14 +224820,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -212204,10 +224864,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -212357,10 +225023,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -212378,6 +225040,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -215497,14 +228161,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -215537,10 +228205,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -215574,14 +228248,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -215614,10 +228292,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -215647,6 +228331,19 @@ components: - 8 - 8 hostIP: hostIP + nodeAllocatableResourceClaimStatuses: + - resourceClaimName: resourceClaimName + resources: + key: null + containers: + - containers + - containers + - resourceClaimName: resourceClaimName + resources: + key: null + containers: + - containers + - containers extendedResourceClaimStatus: resourceClaimName: resourceClaimName requestMappings: @@ -215680,14 +228377,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -215720,10 +228421,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -215757,14 +228464,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -215797,10 +228508,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -215856,14 +228573,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -215896,10 +228617,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -215933,14 +228660,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -215973,10 +228704,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -216065,6 +228802,8 @@ components: PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. + + When the DRAWorkloadResourceClaims feature gate is enabled and this Pod belongs to a PodGroup, a PodResourceClaim is matched to a PodGroupResourceClaim if all of their fields are equal (Name, ResourceClaimName, and ResourceClaimTemplateName). A matched claim references a single ResourceClaim shared across all Pods in the PodGroup, reserved for the PodGroup in ResourceClaimStatus.ReservedFor rather than for individual Pods. example: resourceClaimName: resourceClaimName name: name @@ -216086,6 +228825,8 @@ components: The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + When the DRAWorkloadResourceClaims feature gate is enabled and the pod belongs to a PodGroup that defines a PodGroupResourceClaim with the same Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the ResourceClaim generated for the PodGroup. All pods in the group that define an equivalent PodResourceClaim matching the PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same generated ResourceClaim. ResourceClaims generated for a PodGroup are owned by the PodGroup and their lifecycles are tied to the PodGroup instead of any individual pod. + This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. @@ -216107,10 +228848,12 @@ components: \ implies that the string must be a DNS_LABEL." type: string resourceClaimName: - description: "ResourceClaimName is the name of the ResourceClaim that was\ - \ generated for the Pod in the namespace of the Pod. If this is unset,\ - \ then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims\ - \ entry can be ignored in this case." + description: |- + ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. + + When the DRAWorkloadResourceClaims feature is enabled and the corresponding PodResourceClaim matches a PodGroupResourceClaim made by the Pod's PodGroup, then this is the name of the ResourceClaim generated and reserved for the PodGroup. + + If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. type: string required: - name @@ -216127,6 +228870,22 @@ components: required: - name type: object + v1.PodSchedulingGroup: + description: PodSchedulingGroup identifies the runtime scheduling group instance + that a Pod belongs to. The scheduler uses this information to apply workload-aware + scheduling semantics. Exactly one field must be specified. + example: + podGroupName: podGroupName + properties: + podGroupName: + description: PodGroupName specifies the name of the standalone PodGroup + object that represents the runtime instance of this group. Must be a DNS + subdomain. + type: string + type: object + x-kubernetes-unions: + - fields-to-discriminateBy: + podGroupName: PodGroupName v1.PodSecurityContext: description: PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field @@ -216333,10 +229092,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -216354,6 +229109,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -219545,8 +232302,7 @@ components: \ When set to false, a new userns is created for the pod. Setting false\ \ is useful for mitigating container breakout vulnerabilities even allowing\ \ users to run their containers as root without actually having root privileges\ - \ on the host. This field is alpha-level and is only honored by servers\ - \ that enable the UserNamespacesSupport feature." + \ on the host." type: boolean hostname: description: "Specifies the hostname of the Pod If not specified, the pod's\ @@ -219700,6 +232456,8 @@ components: x-kubernetes-list-map-keys: - name x-kubernetes-patch-merge-key: name + schedulingGroup: + $ref: "#/components/schemas/v1.PodSchedulingGroup" securityContext: $ref: "#/components/schemas/v1.PodSecurityContext" serviceAccount: @@ -219773,8 +232531,6 @@ components: x-kubernetes-list-map-keys: - name x-kubernetes-patch-merge-key: name - workloadRef: - $ref: "#/components/schemas/v1.WorkloadReference" required: - containers type: object @@ -219796,14 +232552,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -219836,10 +232596,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -219873,14 +232639,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -219913,10 +232683,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -219946,6 +232722,19 @@ components: - 8 - 8 hostIP: hostIP + nodeAllocatableResourceClaimStatuses: + - resourceClaimName: resourceClaimName + resources: + key: null + containers: + - containers + - containers + - resourceClaimName: resourceClaimName + resources: + key: null + containers: + - containers + - containers extendedResourceClaimStatus: resourceClaimName: resourceClaimName requestMappings: @@ -219979,14 +232768,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -220019,10 +232812,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -220056,14 +232855,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -220096,10 +232899,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -220155,14 +232964,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -220195,10 +233008,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -220232,14 +233051,18 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message - name: name resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message image: image imageID: imageID restartCount: 0 @@ -220272,10 +233095,16 @@ components: - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly - mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly allocatedResources: key: null @@ -220383,6 +233212,16 @@ components: description: A human readable message indicating details about why the pod is in this condition. type: string + nodeAllocatableResourceClaimStatuses: + description: "NodeAllocatableResourceClaimStatuses contains the status of\ + \ node-allocatable resources that were allocated for this pod through\ + \ DRA claims. This includes resources currently reported in v1.Node `status.allocatable`\ + \ that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).\ + \ Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages." + items: + $ref: "#/components/schemas/v1.NodeAllocatableResourceClaimStatus" + type: array + x-kubernetes-list-type: atomic nominatedNodeName: description: "nominatedNodeName is set only when this pod preempts other\ \ pods on the node, but it cannot be scheduled right away as preemption\ @@ -220585,10 +233424,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -220606,6 +233441,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -223788,6 +236625,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -223911,10 +236750,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -223932,6 +236767,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -227204,10 +240041,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -227225,6 +240058,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -230527,10 +243362,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -230548,6 +243379,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -234312,10 +247145,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -234333,6 +247162,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -237521,6 +250352,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -237693,10 +250526,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -237714,6 +250543,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -241008,10 +253839,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -241029,6 +253856,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -244305,10 +257134,6 @@ components: key: nodeSelector hostname: hostname runtimeClassName: runtimeClassName - workloadRef: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey tolerations: - effect: effect tolerationSeconds: 6 @@ -244326,6 +257151,8 @@ components: - name: name schedulerName: schedulerName activeDeadlineSeconds: 0 + schedulingGroup: + podGroupName: podGroupName os: name: name setHostnameAsFQDN: true @@ -247602,6 +260429,7 @@ components: example: resourceID: resourceID health: health + message: message properties: health: description: |- @@ -247615,6 +260443,12 @@ components: In future we may want to introduce the PermanentlyUnhealthy Status. type: string + message: + description: "Message provides human-readable context for Health (e.g. \"\ + ECC error count exceeded threshold\"). This field is populated by the\ + \ kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin\ + \ returns a message, and is null otherwise." + type: string resourceID: description: ResourceID is the unique identifier of the resource. See the ResourceID type for more information. @@ -247727,6 +260561,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -248009,8 +260845,10 @@ components: resources: - resourceID: resourceID health: health + message: message - resourceID: resourceID health: health + message: message properties: name: description: "Name of the resource. Must be unique within the pod and in\ @@ -248410,6 +261248,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -248707,9 +261547,8 @@ components: procMount: description: procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults - for readonly paths and masked paths. This requires the ProcMountType feature - flag to be enabled. Note that this field cannot be set when spec.os.name - is windows. + for readonly paths and masked paths. Note that this field cannot be set + when spec.os.name is windows. type: string readOnlyRootFilesystem: description: Whether this container has a read-only root filesystem. Default @@ -249037,6 +261876,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -249241,6 +262082,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -250874,6 +263717,9 @@ components: mountPath: mountPath name: name readOnly: true + volumeStatus: + image: + imageRef: imageRef recursiveReadOnly: recursiveReadOnly properties: mountPath: @@ -250890,6 +263736,8 @@ components: \ (for non-readonly mounts). An IfPossible value in the original VolumeMount\ \ must be translated to Disabled or Enabled, depending on the mount result." type: string + volumeStatus: + $ref: "#/components/schemas/v1.VolumeStatus" required: - mountPath - name @@ -251062,6 +263910,16 @@ components: \ value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/" type: object type: object + v1.VolumeStatus: + description: VolumeStatus represents the status of a mounted volume. At most + one of its members must be specified. + example: + image: + imageRef: imageRef + properties: + image: + $ref: "#/components/schemas/v1.ImageVolumeStatus" + type: object v1.VsphereVirtualDiskVolumeSource: description: Represents a vSphere volume resource. example: @@ -251178,38 +264036,6 @@ components: \ precedence." type: string type: object - v1.WorkloadReference: - description: WorkloadReference identifies the Workload object and PodGroup membership - that a Pod belongs to. The scheduler uses this information to apply workload-aware - scheduling semantics. - example: - podGroup: podGroup - name: name - podGroupReplicaKey: podGroupReplicaKey - properties: - name: - description: "Name defines the name of the Workload object this Pod belongs\ - \ to. Workload must be in the same namespace as the Pod. If it doesn't\ - \ match any existing Workload, the Pod will remain unschedulable until\ - \ a Workload object is created and observed by the kube-scheduler. It\ - \ must be a DNS subdomain." - type: string - podGroup: - description: "PodGroup is the name of the PodGroup within the Workload that\ - \ this Pod belongs to. If it doesn't match any existing PodGroup within\ - \ the Workload, the Pod will remain unschedulable until the Workload object\ - \ is recreated and observed by the kube-scheduler. It must be a DNS label." - type: string - podGroupReplicaKey: - description: "PodGroupReplicaKey specifies the replica key of the PodGroup\ - \ to which this Pod belongs. It is used to distinguish pods belonging\ - \ to different replicas of the same pod group. The pod group policy is\ - \ applied separately to each replica. When set, it must be a DNS label." - type: string - required: - - name - - podGroup - type: object v1.Endpoint: description: Endpoint represents a single logical "backend" implementing a service. example: @@ -251546,7 +264372,6 @@ components: x-kubernetes-list-type: atomic required: - addressType - - endpoints type: object x-kubernetes-group-version-kind: - group: discovery.k8s.io @@ -251561,6 +264386,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -252016,6 +264843,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -252517,6 +265346,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -253445,6 +266276,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -254041,6 +266874,8 @@ components: $ref: "#/components/schemas/v1.ObjectMeta" spec: $ref: "#/components/schemas/v1.IPAddressSpec" + required: + - spec type: object x-kubernetes-group-version-kind: - group: networking.k8s.io @@ -254055,6 +266890,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -254521,6 +267358,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -254727,6 +267566,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -255977,6 +268818,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -257316,6 +270159,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -257604,6 +270449,8 @@ components: $ref: "#/components/schemas/v1.ObjectMeta" spec: $ref: "#/components/schemas/v1beta1.IPAddressSpec" + required: + - spec type: object x-kubernetes-group-version-kind: - group: networking.k8s.io @@ -257618,6 +270465,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -257897,6 +270746,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -258238,6 +271089,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -258648,6 +271501,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -258989,11 +271844,6 @@ components: equals to PDB's object generation. format: int64 type: integer - required: - - currentHealthy - - desiredHealthy - - disruptionsAllowed - - expectedPods type: object v1.AggregationRule: description: AggregationRule describes how to locate ClusterRoles to aggregate @@ -259278,6 +272128,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -259438,6 +272290,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -259962,6 +272816,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -260122,6 +272978,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -260328,7 +273186,6 @@ components: description: Name is the name of resource being referenced type: string required: - - apiGroup - kind - name type: object @@ -260565,7 +273422,7 @@ components: description: |- AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. format: date-time type: string devices: @@ -260610,6 +273467,10 @@ components: cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool) + When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: + + device.attributes["dra.example.com"].models.includes("some-model") + The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. type: string required: @@ -260931,16 +273792,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -260951,7 +273802,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -261013,6 +273863,33 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true properties: allNodes: description: |- @@ -261042,7 +273919,7 @@ components: The conditions must be a valid condition type string. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. items: type: string type: array @@ -261055,7 +273932,7 @@ components: The conditions must be a valid condition type string. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. items: type: string type: array @@ -261064,7 +273941,7 @@ components: description: |- BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. type: boolean capacity: additionalProperties: @@ -261089,6 +273966,21 @@ components: description: Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. type: string + nodeAllocatableResourceMappings: + additionalProperties: + $ref: "#/components/schemas/v1.NodeAllocatableResourceMapping" + description: "NodeAllocatableResourceMappings defines the mapping of node\ + \ resources that are managed by the DRA driver exposing this device. This\ + \ includes resources currently reported in v1.Node `status.allocatable`\ + \ that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).\ + \ Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages.\ + \ In addition to standard requests made through the Pod `spec`, these\ + \ resources can also be requested through claims and allocated by the\ + \ DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs\ + \ or auxiliary node memory dependencies of an accelerator device. The\ + \ keys of this map are the node-allocatable resource names (e.g., \"cpu\"\ + , \"memory\"). Extended resource names are not permitted as keys." + type: object nodeName: description: |- NodeName identifies the node where the device is available. @@ -261103,7 +273995,7 @@ components: The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. - This is an alpha field and requires enabling the DRADeviceTaints feature gate. + This is a beta field and requires enabling the DRADeviceTaints feature gate. items: $ref: "#/components/schemas/v1.DeviceTaint" type: array @@ -261230,25 +274122,71 @@ components: v1.DeviceAttribute: description: DeviceAttribute must have exactly one field set. example: + bools: + - true + - true bool: true string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions version: version int: 0 properties: bool: description: BoolValue is a true/false value. type: boolean + bools: + description: BoolValues is a non-empty list of true/false values. + items: + type: boolean + type: array + x-kubernetes-list-type: atomic int: description: IntValue is a number. format: int64 type: integer + ints: + description: |- + IntValues is a non-empty list of numbers. + + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + format: int64 + type: integer + type: array + x-kubernetes-list-type: atomic string: description: StringValue is a string. Must not be longer than 64 characters. type: string + strings: + description: |- + StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. + + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + type: string + type: array + x-kubernetes-list-type: atomic version: description: VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. type: string + versions: + description: |- + VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. + + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + type: string + type: array + x-kubernetes-list-type: atomic type: object v1.DeviceCapacity: description: DeviceCapacity describes a quantity associated with a device. @@ -261527,10 +274465,9 @@ components: x-kubernetes-list-type: atomic type: object v1.DeviceClass: - description: |- - DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. - - This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + description: DeviceClass is a vendor- or admin-provided resource that contains + device configuration and selectors. It can be referenced in the device requests + of a claim to apply these presets. Cluster scoped. example: metadata: generation: 6 @@ -261635,6 +274572,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -261821,7 +274760,7 @@ components: description: |- ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. - This is an alpha field. + This is a beta field. type: string selectors: description: Each selector must be satisfied by a device which is claimed @@ -261844,6 +274783,8 @@ components: description: |- DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. + When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. + This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. @@ -261856,6 +274797,8 @@ components: For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. + When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as single-element lists for backward compatibility. + Must include the domain qualifier. type: string requests: @@ -262028,13 +274971,13 @@ components: description: |- AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. - This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + Admin access is disabled if this field is unset or set to false, otherwise it is enabled. type: boolean bindingConditions: description: |- BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. items: type: string type: array @@ -262043,7 +274986,7 @@ components: description: |- BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. items: type: string type: array @@ -262092,7 +275035,7 @@ components: The maximum number of tolerations is 16. - This is an alpha field and requires enabling the DRADeviceTaints feature gate. + This is a beta field and requires enabling the DRADeviceTaints feature gate. items: $ref: "#/components/schemas/v1.DeviceToleration" type: array @@ -262198,7 +275141,7 @@ components: The maximum number of tolerations is 16. - This is an alpha field and requires enabling the DRADeviceTaints feature gate. + This is a beta field and requires enabling the DRADeviceTaints feature gate. items: $ref: "#/components/schemas/v1.DeviceToleration" type: array @@ -262227,8 +275170,10 @@ components: description: The taint key to be applied to a device. Must be a label name. type: string timeAdded: - description: TimeAdded represents the time at which the taint was added. - Added automatically during create or update if not set. + description: |- + TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. + + In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). format: date-time type: string value: @@ -262314,7 +275259,7 @@ components: description: |- AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. - This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + Admin access is disabled if this field is unset or set to false, otherwise it is enabled. type: boolean allocationMode: description: |- @@ -262367,7 +275312,7 @@ components: The maximum number of tolerations is 16. - This is an alpha field and requires enabling the DRADeviceTaints feature gate. + This is a beta field and requires enabling the DRADeviceTaints feature gate. items: $ref: "#/components/schemas/v1.DeviceToleration" type: array @@ -262390,13 +275335,13 @@ components: description: |- HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. - Must not be longer than 128 characters. + Must not be longer than 128 bytes. type: string interfaceName: description: |- InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. - Must not be longer than 256 characters. + Must not be longer than 256 bytes. type: string ips: description: "IPs lists the network addresses assigned to the device's network\ @@ -262409,6 +275354,66 @@ components: type: array x-kubernetes-list-type: atomic type: object + v1.NodeAllocatableResourceMapping: + description: NodeAllocatableResourceMapping defines the translation between + the DRA device/capacity units requested to the corresponding quantity of the + node allocatable resource. + example: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + properties: + allocationMultiplier: + description: "Quantity is a fixed-point representation of a number. It provides\ + \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ + \ String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo matter which\ + \ of the three exponent forms is used, no quantity may represent a number\ + \ greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\ + \ places. Numbers larger or more precise will be capped or rounded up.\ + \ (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future\ + \ if we require larger or smaller quantities.\n\nWhen a Quantity is parsed\ + \ from a string, it will remember the type of suffix it had, and will\ + \ use the same type again when it is serialized.\n\nBefore serializing,\ + \ Quantity will be put in \"canonical form\". This means that Exponent/suffix\ + \ will be adjusted up or down (with a corresponding increase or decrease\ + \ in Mantissa) such that:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-canonical values will still parse as long as they are well formed,\ + \ but will be re-emitted in their canonical form. (So always use canonical\ + \ form, or don't diff.)\n\nThis format is intended to make it difficult\ + \ to use these numbers without writing some sort of special handling code\ + \ in the hopes that that will cause implementors to also use a fixed point\ + \ implementation." + format: quantity + type: string + capacityKey: + description: "CapacityKey references a capacity name defined as a key in\ + \ the `spec.devices[*].capacity` map. When this field is set, the value\ + \ associated with this key in the `status.allocation.devices.results[*].consumedCapacity`\ + \ map (for a specific claim allocation) determines the base quantity for\ + \ the node allocatable resource. If `allocationMultiplier` is also set,\ + \ it is multiplied with the base quantity. For example, if `spec.devices[*].capacity`\ + \ has an entry \"dra.example.com/memory\": \"128Gi\", and this field is\ + \ set to \"dra.example.com/memory\", then for a claim allocation that\ + \ consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for\ + \ the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier`\ + \ should be omitted or set to \"1\"." + type: string + type: object v1.OpaqueDeviceConfiguration: description: OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. @@ -262436,10 +275441,11 @@ components: - parameters type: object resource.v1.ResourceClaim: - description: |- - ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. - - This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + description: "ResourceClaim describes a request for access to resources in the\ + \ cluster, for use by workloads. For example, if a workload needs an accelerator\ + \ device with specific properties, this is how that request is expressed.\ + \ The status stanza tracks whether this claim has been satisfied and what\ + \ specific resources have been allocated." example: metadata: generation: 6 @@ -262897,6 +275903,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -264104,10 +277112,7 @@ components: x-kubernetes-patch-merge-key: uid type: object v1.ResourceClaimTemplate: - description: |- - ResourceClaimTemplate is used to produce ResourceClaim objects. - - This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + description: ResourceClaimTemplate is used to produce ResourceClaim objects. example: metadata: generation: 6 @@ -264406,6 +277411,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -265201,8 +278208,8 @@ components: v1.ResourcePool: description: ResourcePool describes the pool that ResourceSlices belong to. example: - generation: 6 - resourceSliceCount: 1 + generation: 1 + resourceSliceCount: 5 name: name properties: generation: @@ -265241,8 +278248,6 @@ components: When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. - - This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. example: metadata: generation: 6 @@ -265308,16 +278313,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -265328,7 +278323,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -265390,6 +278384,33 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true - nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -265401,16 +278422,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -265421,7 +278432,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -265483,9 +278493,36 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true pool: - generation: 6 - resourceSliceCount: 1 + generation: 1 + resourceSliceCount: 5 name: name sharedCounters: - counters: @@ -265574,6 +278611,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -265642,16 +278681,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -265662,7 +278691,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -265724,6 +278752,33 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true - nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -265735,16 +278790,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -265755,7 +278800,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -265817,9 +278861,36 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true pool: - generation: 6 - resourceSliceCount: 1 + generation: 1 + resourceSliceCount: 5 name: name sharedCounters: - counters: @@ -265941,16 +279012,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -265961,7 +279022,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -266023,6 +279083,33 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true - nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -266034,16 +279121,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -266054,7 +279131,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -266116,9 +279192,36 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true pool: - generation: 6 - resourceSliceCount: 1 + generation: 1 + resourceSliceCount: 5 name: name sharedCounters: - counters: @@ -266222,16 +279325,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -266242,7 +279335,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -266304,6 +279396,33 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true - nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -266315,16 +279434,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -266335,7 +279444,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -266397,9 +279505,36 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true pool: - generation: 6 - resourceSliceCount: 1 + generation: 1 + resourceSliceCount: 5 name: name sharedCounters: - counters: @@ -266536,8 +279671,10 @@ components: description: The taint key to be applied to a device. Must be a label name. type: string timeAdded: - description: TimeAdded represents the time at which the taint was added. - Added automatically during create or update if not set. + description: |- + TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. + + In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). format: date-time type: string value: @@ -266639,25 +279776,492 @@ components: metadata: $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleSpec" + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleSpec" + status: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleStatus" + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: resource.k8s.io + kind: DeviceTaintRule + version: v1alpha3 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1alpha3.DeviceTaintRuleList: + description: DeviceTaintRuleList is a collection of DeviceTaintRules. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + driver: driver + pool: pool + device: device + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + driver: driver + pool: pool + device: device + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + apiVersion: + description: "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" + type: string + items: + description: Items is the list of DeviceTaintRules. + items: + $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + type: array + kind: + description: "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" + type: string + metadata: + $ref: "#/components/schemas/v1.ListMeta" + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: resource.k8s.io + kind: DeviceTaintRuleList + version: v1alpha3 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1alpha3.DeviceTaintRuleSpec: + description: DeviceTaintRuleSpec specifies the selector and one taint. + example: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + driver: driver + pool: pool + device: device + properties: + deviceSelector: + $ref: "#/components/schemas/v1alpha3.DeviceTaintSelector" + taint: + $ref: "#/components/schemas/v1alpha3.DeviceTaint" + required: + - taint + type: object + v1alpha3.DeviceTaintRuleStatus: + description: DeviceTaintRuleStatus provides information about an on-going pod + eviction. + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + conditions: + description: |- + Conditions provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format. + + The following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise + (includes the effects which don't cause eviction). + - Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods + in a human-readable format, updated periodically, may change + + For `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status. + + Must have 8 or fewer entries. + items: + $ref: "#/components/schemas/v1.Condition" + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + v1alpha3.DeviceTaintSelector: + description: "DeviceTaintSelector defines which device(s) a DeviceTaintRule\ + \ applies to. The empty selector matches all devices. Without a selector,\ + \ no devices are matched." + example: + driver: driver + pool: pool + device: device + properties: + device: + description: |- + If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. + + Setting also driver and pool may be required to avoid ambiguity, but is not required. + type: string + driver: + description: "If driver is set, only devices from that driver are selected.\ + \ This fields corresponds to slice.spec.driver." + type: string + pool: + description: |- + If pool is set, only devices in that pool are selected. + + Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name. + type: string + type: object + v1alpha3.PoolStatus: + description: PoolStatus contains status information for a single resource pool. + example: + generation: 5 + nodeName: nodeName + resourceSliceCount: 2 + driver: driver + totalDevices: 7 + availableDevices: 5 + allocatedDevices: 1 + unavailableDevices: 9 + validationError: validationError + poolName: poolName + properties: + allocatedDevices: + description: AllocatedDevices is the number of devices currently allocated + to claims. A value of 0 means no devices are allocated. May be unset when + validationError is set. + format: int32 + type: integer + availableDevices: + description: AvailableDevices is the number of devices available for allocation. + This equals TotalDevices - AllocatedDevices - UnavailableDevices. A value + of 0 means no devices are currently available. May be unset when validationError + is set. + format: int32 + type: integer + driver: + description: "Driver is the DRA driver name for this pool. Must be a DNS\ + \ subdomain (e.g., \"gpu.example.com\")." + type: string + generation: + description: "Generation is the pool generation observed across all ResourceSlices\ + \ in this pool. Only the latest generation is reported. During a generation\ + \ rollout, if not all slices at the latest generation have been published,\ + \ the pool is included with a validationError and device counts unset." + format: int64 + type: integer + nodeName: + description: "NodeName is the node this pool is associated with. When omitted,\ + \ the pool is not associated with a specific node. Must be a valid DNS\ + \ subdomain name (RFC1123)." + type: string + poolName: + description: PoolName is the name of the pool. Must be a valid resource + pool name (DNS subdomains separated by "/"). + type: string + resourceSliceCount: + description: ResourceSliceCount is the number of ResourceSlices that make + up this pool. May be unset when validationError is set. + format: int32 + type: integer + totalDevices: + description: TotalDevices is the total number of devices in the pool across + all slices. A value of 0 means the pool has no devices. May be unset when + validationError is set. + format: int32 + type: integer + unavailableDevices: + description: "UnavailableDevices is the number of devices that are not available\ + \ due to taints or other conditions, but are not allocated. A value of\ + \ 0 means all unallocated devices are available. May be unset when validationError\ + \ is set." + format: int32 + type: integer + validationError: + description: "ValidationError is set when the pool's data could not be fully\ + \ validated (e.g., incomplete slice publication). When set, device count\ + \ fields and ResourceSliceCount may be unset." + type: string + required: + - driver + - generation + - poolName + type: object + v1alpha3.ResourcePoolStatusRequest: + description: "ResourcePoolStatusRequest triggers a one-time calculation of resource\ + \ pool status based on the provided filters. Once status is set, the request\ + \ is considered complete and will not be reprocessed. Users should delete\ + \ and recreate requests to get updated information." + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + driver: driver + limit: 0 + poolName: poolName + status: + poolCount: 6 + pools: + - generation: 5 + nodeName: nodeName + resourceSliceCount: 2 + driver: driver + totalDevices: 7 + availableDevices: 5 + allocatedDevices: 1 + unavailableDevices: 9 + validationError: validationError + poolName: poolName + - generation: 5 + nodeName: nodeName + resourceSliceCount: 2 + driver: driver + totalDevices: 7 + availableDevices: 5 + allocatedDevices: 1 + unavailableDevices: 9 + validationError: validationError + poolName: poolName + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + apiVersion: + description: "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" + type: string + kind: + description: "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" + type: string + metadata: + $ref: "#/components/schemas/v1.ObjectMeta" + spec: + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestSpec" status: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRuleStatus" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequestStatus" required: + - metadata - spec type: object x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceTaintRule + kind: ResourcePoolStatusRequest version: v1alpha3 x-implements: - io.kubernetes.client.common.KubernetesObject - v1alpha3.DeviceTaintRuleList: - description: DeviceTaintRuleList is a collection of DeviceTaintRules. + v1alpha3.ResourcePoolStatusRequestList: + description: ResourcePoolStatusRequestList is a collection of ResourcePoolStatusRequests. example: metadata: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -266711,16 +280315,32 @@ components: apiVersion: apiVersion kind: kind spec: - taint: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - deviceSelector: - driver: driver - pool: pool - device: device + driver: driver + limit: 0 + poolName: poolName status: + poolCount: 6 + pools: + - generation: 5 + nodeName: nodeName + resourceSliceCount: 2 + driver: driver + totalDevices: 7 + availableDevices: 5 + allocatedDevices: 1 + unavailableDevices: 9 + validationError: validationError + poolName: poolName + - generation: 5 + nodeName: nodeName + resourceSliceCount: 2 + driver: driver + totalDevices: 7 + availableDevices: 5 + allocatedDevices: 1 + unavailableDevices: 9 + validationError: validationError + poolName: poolName conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -266783,16 +280403,32 @@ components: apiVersion: apiVersion kind: kind spec: - taint: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - deviceSelector: - driver: driver - pool: pool - device: device + driver: driver + limit: 0 + poolName: poolName status: + poolCount: 6 + pools: + - generation: 5 + nodeName: nodeName + resourceSliceCount: 2 + driver: driver + totalDevices: 7 + availableDevices: 5 + allocatedDevices: 1 + unavailableDevices: 9 + validationError: validationError + poolName: poolName + - generation: 5 + nodeName: nodeName + resourceSliceCount: 2 + driver: driver + totalDevices: 7 + availableDevices: 5 + allocatedDevices: 1 + unavailableDevices: 9 + validationError: validationError + poolName: poolName conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -266813,9 +280449,9 @@ components: \ internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources" type: string items: - description: Items is the list of DeviceTaintRules. + description: Items is the list of ResourcePoolStatusRequests. items: - $ref: "#/components/schemas/v1alpha3.DeviceTaintRule" + $ref: "#/components/schemas/v1alpha3.ResourcePoolStatusRequest" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -266829,34 +280465,65 @@ components: type: object x-kubernetes-group-version-kind: - group: resource.k8s.io - kind: DeviceTaintRuleList + kind: ResourcePoolStatusRequestList version: v1alpha3 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1alpha3.DeviceTaintRuleSpec: - description: DeviceTaintRuleSpec specifies the selector and one taint. + v1alpha3.ResourcePoolStatusRequestSpec: + description: ResourcePoolStatusRequestSpec defines the filters for the pool + status request. example: - taint: - timeAdded: 2000-01-23T04:56:07.000+00:00 - effect: effect - value: value - key: key - deviceSelector: - driver: driver - pool: pool - device: device + driver: driver + limit: 0 + poolName: poolName properties: - deviceSelector: - $ref: "#/components/schemas/v1alpha3.DeviceTaintSelector" - taint: - $ref: "#/components/schemas/v1alpha3.DeviceTaint" + driver: + description: "Driver specifies the DRA driver name to filter pools. Only\ + \ pools from ResourceSlices with this driver will be included. Must be\ + \ a DNS subdomain (e.g., \"gpu.example.com\")." + type: string + limit: + description: |- + Limit optionally specifies the maximum number of pools to return in the status. If more pools match the filter criteria, the response will be truncated (i.e., len(status.pools) < status.poolCount). + + Default: 100 Minimum: 1 Maximum: 1000 + format: int32 + type: integer + poolName: + description: "PoolName optionally filters to a specific pool name. If not\ + \ specified, all pools from the specified driver are included. When specified,\ + \ must be a non-empty valid resource pool name (DNS subdomains separated\ + \ by \"/\")." + type: string required: - - taint + - driver type: object - v1alpha3.DeviceTaintRuleStatus: - description: DeviceTaintRuleStatus provides information about an on-going pod - eviction. + v1alpha3.ResourcePoolStatusRequestStatus: + description: ResourcePoolStatusRequestStatus contains the calculated pool status + information. example: + poolCount: 6 + pools: + - generation: 5 + nodeName: nodeName + resourceSliceCount: 2 + driver: driver + totalDevices: 7 + availableDevices: 5 + allocatedDevices: 1 + unavailableDevices: 9 + validationError: validationError + poolName: poolName + - generation: 5 + nodeName: nodeName + resourceSliceCount: 2 + driver: driver + totalDevices: 7 + availableDevices: 5 + allocatedDevices: 1 + unavailableDevices: 9 + validationError: validationError + poolName: poolName conditions: - reason: reason lastTransitionTime: 2000-01-23T04:56:07.000+00:00 @@ -266873,16 +280540,9 @@ components: properties: conditions: description: |- - Conditions provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format. - - The following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise - (includes the effects which don't cause eviction). - - Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods - in a human-readable format, updated periodically, may change - - For `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status. + Conditions provide information about the state of the request. A condition with type=Complete or type=Failed will always be set when the status is populated. - Must have 8 or fewer entries. + Known condition types: - "Complete": True when the request has been processed successfully - "Failed": True when the request could not be processed items: $ref: "#/components/schemas/v1.Condition" type: array @@ -266891,32 +280551,23 @@ components: x-kubernetes-list-map-keys: - type x-kubernetes-patch-merge-key: type - type: object - v1alpha3.DeviceTaintSelector: - description: "DeviceTaintSelector defines which device(s) a DeviceTaintRule\ - \ applies to. The empty selector matches all devices. Without a selector,\ - \ no devices are matched." - example: - driver: driver - pool: pool - device: device - properties: - device: - description: |- - If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. - - Setting also driver and pool may be required to avoid ambiguity, but is not required. - type: string - driver: - description: "If driver is set, only devices from that driver are selected.\ - \ This fields corresponds to slice.spec.driver." - type: string - pool: - description: |- - If pool is set, only devices in that pool are selected. - - Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name. - type: string + poolCount: + description: "PoolCount is the total number of pools that matched the filter\ + \ criteria, regardless of truncation. This helps users understand how\ + \ many pools exist even when the response is truncated. A value of 0 means\ + \ no pools matched the filter criteria." + format: int32 + type: integer + pools: + description: "Pools contains the first `spec.limit` matching pools, sorted\ + \ by driver then pool name. If `len(pools) < poolCount`, the list was\ + \ truncated. When omitted, no pools matched the request filters." + items: + $ref: "#/components/schemas/v1alpha3.PoolStatus" + type: array + x-kubernetes-list-type: atomic + required: + - poolCount type: object v1beta1.AllocatedDeviceStatus: description: |- @@ -267116,7 +280767,7 @@ components: description: |- AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. format: date-time type: string devices: @@ -267127,6 +280778,10 @@ components: v1beta1.BasicDevice: description: BasicDevice defines one device instance. example: + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -267143,8 +280798,20 @@ components: - bindingFailureConditions attributes: key: + bools: + - true + - true bool: true string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions version: version int: 0 taints: @@ -267248,7 +280915,7 @@ components: The conditions must be a valid condition type string. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. items: type: string type: array @@ -267261,7 +280928,7 @@ components: The conditions must be a valid condition type string. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. items: type: string type: array @@ -267270,7 +280937,7 @@ components: description: |- BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. type: boolean capacity: additionalProperties: @@ -267291,6 +280958,21 @@ components: $ref: "#/components/schemas/v1beta1.DeviceCounterConsumption" type: array x-kubernetes-list-type: atomic + nodeAllocatableResourceMappings: + additionalProperties: + $ref: "#/components/schemas/v1beta1.NodeAllocatableResourceMapping" + description: "NodeAllocatableResourceMappings defines the mapping of node\ + \ resources that are managed by the DRA driver exposing this device. This\ + \ includes resources currently reported in v1.Node `status.allocatable`\ + \ that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).\ + \ Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages.\ + \ In addition to standard requests made through the Pod `spec`, these\ + \ resources can also be requested through claims and allocated by the\ + \ DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs\ + \ or auxiliary node memory dependencies of an accelerator device. The\ + \ keys of this map are the node-allocatable resource names (e.g., \"cpu\"\ + , \"memory\"). Extended resource names are not permitted as keys." + type: object nodeName: description: |- NodeName identifies the node where the device is available. @@ -267305,7 +280987,7 @@ components: The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. - This is an alpha field and requires enabling the DRADeviceTaints feature gate. + This is a beta field and requires enabling the DRADeviceTaints feature gate. items: $ref: "#/components/schemas/v1beta1.DeviceTaint" type: array @@ -267348,6 +281030,10 @@ components: cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool) + When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: + + device.attributes["dra.example.com"].models.includes("some-model") + The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. type: string required: @@ -267660,6 +281346,10 @@ components: example: name: name basic: + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -267676,8 +281366,20 @@ components: - bindingFailureConditions attributes: key: + bools: + - true + - true bool: true string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions version: version int: 0 taints: @@ -267881,25 +281583,71 @@ components: v1beta1.DeviceAttribute: description: DeviceAttribute must have exactly one field set. example: + bools: + - true + - true bool: true string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions version: version int: 0 properties: bool: description: BoolValue is a true/false value. type: boolean + bools: + description: BoolValues is a non-empty list of true/false values. + items: + type: boolean + type: array + x-kubernetes-list-type: atomic int: description: IntValue is a number. format: int64 type: integer + ints: + description: |- + IntValues is a non-empty list of numbers. + + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + format: int64 + type: integer + type: array + x-kubernetes-list-type: atomic string: description: StringValue is a string. Must not be longer than 64 characters. type: string + strings: + description: |- + StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. + + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + type: string + type: array + x-kubernetes-list-type: atomic version: description: VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. type: string + versions: + description: |- + VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. + + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + type: string + type: array + x-kubernetes-list-type: atomic type: object v1beta1.DeviceCapacity: description: DeviceCapacity describes a quantity associated with a device. @@ -268284,6 +282032,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -268470,7 +282220,7 @@ components: description: |- ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. - This is an alpha field. + This is a beta field. type: string selectors: description: Each selector must be satisfied by a device which is claimed @@ -268493,6 +282243,8 @@ components: description: |- DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. + When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. + This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. @@ -268505,6 +282257,8 @@ components: For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. + When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as singleton sets for backward compatibility. + Must include the domain qualifier. type: string requests: @@ -268701,7 +282455,7 @@ components: This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. - This is an alpha field and requires enabling the DRADeviceTaints feature gate. + This is a beta field and requires enabling the DRADeviceTaints feature gate. items: $ref: "#/components/schemas/v1beta1.DeviceToleration" type: array @@ -268749,7 +282503,7 @@ components: description: |- BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. items: type: string type: array @@ -268758,7 +282512,7 @@ components: description: |- BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. items: type: string type: array @@ -268807,7 +282561,7 @@ components: The maximum number of tolerations is 16. - This is an alpha field and requires enabling the DRADeviceTaints feature gate. + This is a beta field and requires enabling the DRADeviceTaints feature gate. items: $ref: "#/components/schemas/v1beta1.DeviceToleration" type: array @@ -268913,7 +282667,7 @@ components: The maximum number of tolerations is 16. - This is an alpha field and requires enabling the DRADeviceTaints feature gate. + This is a beta field and requires enabling the DRADeviceTaints feature gate. items: $ref: "#/components/schemas/v1beta1.DeviceToleration" type: array @@ -268942,8 +282696,10 @@ components: description: The taint key to be applied to a device. Must be a label name. type: string timeAdded: - description: TimeAdded represents the time at which the taint was added. - Added automatically during create or update if not set. + description: |- + TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. + + In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). format: date-time type: string value: @@ -269013,13 +282769,13 @@ components: description: |- HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. - Must not be longer than 128 characters. + Must not be longer than 128 bytes. type: string interfaceName: description: |- InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. - Must not be longer than 256 characters. + Must not be longer than 256 bytes. type: string ips: description: |- @@ -269031,6 +282787,66 @@ components: type: array x-kubernetes-list-type: atomic type: object + v1beta1.NodeAllocatableResourceMapping: + description: NodeAllocatableResourceMapping defines the translation between + the DRA device/capacity units requested to the corresponding quantity of the + node allocatable resource. + example: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + properties: + allocationMultiplier: + description: "Quantity is a fixed-point representation of a number. It provides\ + \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ + \ String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo matter which\ + \ of the three exponent forms is used, no quantity may represent a number\ + \ greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\ + \ places. Numbers larger or more precise will be capped or rounded up.\ + \ (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future\ + \ if we require larger or smaller quantities.\n\nWhen a Quantity is parsed\ + \ from a string, it will remember the type of suffix it had, and will\ + \ use the same type again when it is serialized.\n\nBefore serializing,\ + \ Quantity will be put in \"canonical form\". This means that Exponent/suffix\ + \ will be adjusted up or down (with a corresponding increase or decrease\ + \ in Mantissa) such that:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-canonical values will still parse as long as they are well formed,\ + \ but will be re-emitted in their canonical form. (So always use canonical\ + \ form, or don't diff.)\n\nThis format is intended to make it difficult\ + \ to use these numbers without writing some sort of special handling code\ + \ in the hopes that that will cause implementors to also use a fixed point\ + \ implementation." + format: quantity + type: string + capacityKey: + description: "CapacityKey references a capacity name defined as a key in\ + \ the `spec.devices[*].capacity` map. When this field is set, the value\ + \ associated with this key in the `status.allocation.devices.results[*].consumedCapacity`\ + \ map (for a specific claim allocation) determines the base quantity for\ + \ the node allocatable resource. If `allocationMultiplier` is also set,\ + \ it is multiplied with the base quantity. For example, if `spec.devices[*].capacity`\ + \ has an entry \"dra.example.com/memory\": \"128Gi\", and this field is\ + \ set to \"dra.example.com/memory\", then for a claim allocation that\ + \ consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for\ + \ the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier`\ + \ should be omitted or set to \"1\"." + type: string + type: object v1beta1.OpaqueDeviceConfiguration: description: OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. @@ -269517,6 +283333,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -271018,6 +284836,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -271807,8 +285627,8 @@ components: v1beta1.ResourcePool: description: ResourcePool describes the pool that ResourceSlices belong to. example: - generation: 6 - resourceSliceCount: 1 + generation: 1 + resourceSliceCount: 5 name: name properties: generation: @@ -271905,6 +285725,10 @@ components: devices: - name: name basic: + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -271921,8 +285745,20 @@ components: - bindingFailureConditions attributes: key: + bools: + - true + - true bool: true string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions version: version int: 0 taints: @@ -271999,6 +285835,10 @@ components: operator: operator - name: name basic: + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -272015,8 +285855,20 @@ components: - bindingFailureConditions attributes: key: + bools: + - true + - true bool: true string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions version: version int: 0 taints: @@ -272092,8 +285944,8 @@ components: key: key operator: operator pool: - generation: 6 - resourceSliceCount: 1 + generation: 1 + resourceSliceCount: 5 name: name sharedCounters: - counters: @@ -272182,6 +286034,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -272241,6 +286095,10 @@ components: devices: - name: name basic: + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -272257,8 +286115,20 @@ components: - bindingFailureConditions attributes: key: + bools: + - true + - true bool: true string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions version: version int: 0 taints: @@ -272335,6 +286205,10 @@ components: operator: operator - name: name basic: + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -272351,8 +286225,20 @@ components: - bindingFailureConditions attributes: key: + bools: + - true + - true bool: true string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions version: version int: 0 taints: @@ -272428,8 +286314,8 @@ components: key: key operator: operator pool: - generation: 6 - resourceSliceCount: 1 + generation: 1 + resourceSliceCount: 5 name: name sharedCounters: - counters: @@ -272542,6 +286428,10 @@ components: devices: - name: name basic: + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -272558,8 +286448,20 @@ components: - bindingFailureConditions attributes: key: + bools: + - true + - true bool: true string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions version: version int: 0 taints: @@ -272636,6 +286538,10 @@ components: operator: operator - name: name basic: + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -272652,8 +286558,20 @@ components: - bindingFailureConditions attributes: key: + bools: + - true + - true bool: true string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions version: version int: 0 taints: @@ -272729,8 +286647,8 @@ components: key: key operator: operator pool: - generation: 6 - resourceSliceCount: 1 + generation: 1 + resourceSliceCount: 5 name: name sharedCounters: - counters: @@ -272825,6 +286743,10 @@ components: devices: - name: name basic: + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -272841,8 +286763,20 @@ components: - bindingFailureConditions attributes: key: + bools: + - true + - true bool: true string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions version: version int: 0 taints: @@ -272919,6 +286853,10 @@ components: operator: operator - name: name basic: + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -272935,8 +286873,20 @@ components: - bindingFailureConditions attributes: key: + bools: + - true + - true bool: true string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions version: version int: 0 taints: @@ -273012,8 +286962,8 @@ components: key: key operator: operator pool: - generation: 6 - resourceSliceCount: 1 + generation: 1 + resourceSliceCount: 5 name: name sharedCounters: - counters: @@ -273328,7 +287278,7 @@ components: description: |- AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. format: date-time type: string devices: @@ -273373,6 +287323,10 @@ components: cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool) + When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: + + device.attributes["dra.example.com"].models.includes("some-model") + The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. type: string required: @@ -273694,16 +287648,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -273714,7 +287658,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -273776,6 +287719,33 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true properties: allNodes: description: |- @@ -273805,7 +287775,7 @@ components: The conditions must be a valid condition type string. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. items: type: string type: array @@ -273818,7 +287788,7 @@ components: The conditions must be a valid condition type string. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. items: type: string type: array @@ -273827,7 +287797,7 @@ components: description: |- BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. type: boolean capacity: additionalProperties: @@ -273852,6 +287822,21 @@ components: description: Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. type: string + nodeAllocatableResourceMappings: + additionalProperties: + $ref: "#/components/schemas/v1beta2.NodeAllocatableResourceMapping" + description: "NodeAllocatableResourceMappings defines the mapping of node\ + \ resources that are managed by the DRA driver exposing this device. This\ + \ includes resources currently reported in v1.Node `status.allocatable`\ + \ that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).\ + \ Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages.\ + \ In addition to standard requests made through the Pod `spec`, these\ + \ resources can also be requested through claims and allocated by the\ + \ DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs\ + \ or auxiliary node memory dependencies of an accelerator device. The\ + \ keys of this map are the node-allocatable resource names (e.g., \"cpu\"\ + , \"memory\"). Extended resource names are not permitted as keys." + type: object nodeName: description: |- NodeName identifies the node where the device is available. @@ -273866,7 +287851,7 @@ components: The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. - This is an alpha field and requires enabling the DRADeviceTaints feature gate. + This is a beta field and requires enabling the DRADeviceTaints feature gate. items: $ref: "#/components/schemas/v1beta2.DeviceTaint" type: array @@ -273993,25 +287978,71 @@ components: v1beta2.DeviceAttribute: description: DeviceAttribute must have exactly one field set. example: + bools: + - true + - true bool: true string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions version: version int: 0 properties: bool: description: BoolValue is a true/false value. type: boolean + bools: + description: BoolValues is a non-empty list of true/false values. + items: + type: boolean + type: array + x-kubernetes-list-type: atomic int: description: IntValue is a number. format: int64 type: integer + ints: + description: |- + IntValues is a non-empty list of numbers. + + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + format: int64 + type: integer + type: array + x-kubernetes-list-type: atomic string: description: StringValue is a string. Must not be longer than 64 characters. type: string + strings: + description: |- + StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. + + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + type: string + type: array + x-kubernetes-list-type: atomic version: description: VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. type: string + versions: + description: |- + VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. + + This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + items: + type: string + type: array + x-kubernetes-list-type: atomic type: object v1beta2.DeviceCapacity: description: DeviceCapacity describes a quantity associated with a device. @@ -274398,6 +288429,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -274584,7 +288617,7 @@ components: description: |- ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. - This is an alpha field. + This is a beta field. type: string selectors: description: Each selector must be satisfied by a device which is claimed @@ -274607,6 +288640,8 @@ components: description: |- DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. + When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. + This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. @@ -274619,6 +288654,8 @@ components: For example, if you specified "dra.example.com/numa" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. + When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as singleton sets for backward compatibility. + Must include the domain qualifier. type: string requests: @@ -274797,7 +288834,7 @@ components: description: |- BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. items: type: string type: array @@ -274806,7 +288843,7 @@ components: description: |- BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. - This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. items: type: string type: array @@ -274855,7 +288892,7 @@ components: The maximum number of tolerations is 16. - This is an alpha field and requires enabling the DRADeviceTaints feature gate. + This is a beta field and requires enabling the DRADeviceTaints feature gate. items: $ref: "#/components/schemas/v1beta2.DeviceToleration" type: array @@ -274961,7 +288998,7 @@ components: The maximum number of tolerations is 16. - This is an alpha field and requires enabling the DRADeviceTaints feature gate. + This is a beta field and requires enabling the DRADeviceTaints feature gate. items: $ref: "#/components/schemas/v1beta2.DeviceToleration" type: array @@ -274990,8 +289027,10 @@ components: description: The taint key to be applied to a device. Must be a label name. type: string timeAdded: - description: TimeAdded represents the time at which the taint was added. - Added automatically during create or update if not set. + description: |- + TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. + + In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). format: date-time type: string value: @@ -275002,6 +289041,378 @@ components: - effect - key type: object + v1beta2.DeviceTaintRule: + description: DeviceTaintRule adds one taint to all devices which match the selector. + This has the same effect as if the taint was specified directly in the ResourceSlice + by the DRA driver. + example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + driver: driver + pool: pool + device: device + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + apiVersion: + description: "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" + type: string + kind: + description: "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" + type: string + metadata: + $ref: "#/components/schemas/v1.ObjectMeta" + spec: + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleSpec" + status: + $ref: "#/components/schemas/v1beta2.DeviceTaintRuleStatus" + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: resource.k8s.io + kind: DeviceTaintRule + version: v1beta2 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1beta2.DeviceTaintRuleList: + description: DeviceTaintRuleList is a collection of DeviceTaintRules. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + driver: driver + pool: pool + device: device + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + driver: driver + pool: pool + device: device + status: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + apiVersion: + description: "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" + type: string + items: + description: Items is the list of DeviceTaintRules. + items: + $ref: "#/components/schemas/v1beta2.DeviceTaintRule" + type: array + kind: + description: "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" + type: string + metadata: + $ref: "#/components/schemas/v1.ListMeta" + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: resource.k8s.io + kind: DeviceTaintRuleList + version: v1beta2 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1beta2.DeviceTaintRuleSpec: + description: DeviceTaintRuleSpec specifies the selector and one taint. + example: + taint: + timeAdded: 2000-01-23T04:56:07.000+00:00 + effect: effect + value: value + key: key + deviceSelector: + driver: driver + pool: pool + device: device + properties: + deviceSelector: + $ref: "#/components/schemas/v1beta2.DeviceTaintSelector" + taint: + $ref: "#/components/schemas/v1beta2.DeviceTaint" + required: + - taint + type: object + v1beta2.DeviceTaintRuleStatus: + description: DeviceTaintRuleStatus provides information about an on-going pod + eviction. + example: + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + conditions: + description: |- + Conditions provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format. + + The following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise + (includes the effects which don't cause eviction). + - Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods + in a human-readable format, updated periodically, may change + + For `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status. + + Must have 8 or fewer entries. + items: + $ref: "#/components/schemas/v1.Condition" + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + type: object + v1beta2.DeviceTaintSelector: + description: "DeviceTaintSelector defines which device(s) a DeviceTaintRule\ + \ applies to. The empty selector matches all devices. Without a selector,\ + \ no devices are matched." + example: + driver: driver + pool: pool + device: device + properties: + device: + description: |- + If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. + + Setting also driver and pool may be required to avoid ambiguity, but is not required. + type: string + driver: + description: "If driver is set, only devices from that driver are selected.\ + \ This fields corresponds to slice.spec.driver." + type: string + pool: + description: |- + If pool is set, only devices in that pool are selected. + + Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name. + type: string + type: object v1beta2.DeviceToleration: description: "The ResourceClaim this DeviceToleration is attached to tolerates\ \ any taint that matches the triple using the matching\ @@ -275130,7 +289541,7 @@ components: The maximum number of tolerations is 16. - This is an alpha field and requires enabling the DRADeviceTaints feature gate. + This is a beta field and requires enabling the DRADeviceTaints feature gate. items: $ref: "#/components/schemas/v1beta2.DeviceToleration" type: array @@ -275153,13 +289564,13 @@ components: description: |- HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. - Must not be longer than 128 characters. + Must not be longer than 128 bytes. type: string interfaceName: description: |- InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. - Must not be longer than 256 characters. + Must not be longer than 256 bytes. type: string ips: description: "IPs lists the network addresses assigned to the device's network\ @@ -275172,6 +289583,66 @@ components: type: array x-kubernetes-list-type: atomic type: object + v1beta2.NodeAllocatableResourceMapping: + description: NodeAllocatableResourceMapping defines the translation between + the DRA device/capacity units requested to the corresponding quantity of the + node allocatable resource. + example: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + properties: + allocationMultiplier: + description: "Quantity is a fixed-point representation of a number. It provides\ + \ convenient marshaling/unmarshaling in JSON and YAML, in addition to\ + \ String() and AsInt64() accessors.\n\nThe serialization format is:\n\n\ + ``` ::= \n\n\t(Note that \ + \ may be empty, from the \"\" case in .)\n\n \ + \ ::= 0 | 1 | ... | 9 ::= | \ + \ ::= | . | . | .\ + \ ::= \"+\" | \"-\" ::= |\ + \ ::= | \ + \ | ::= Ki | Mi | Gi | Ti | Pi | Ei\n\n\t\ + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n\ + \n ::= m | \"\" | k | M | G | T | P | E\n\n\t(Note that\ + \ 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n\n\ + \ ::= \"e\" | \"E\" ```\n\nNo matter which\ + \ of the three exponent forms is used, no quantity may represent a number\ + \ greater than 2^63-1 in magnitude, nor may it have more than 3 decimal\ + \ places. Numbers larger or more precise will be capped or rounded up.\ + \ (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future\ + \ if we require larger or smaller quantities.\n\nWhen a Quantity is parsed\ + \ from a string, it will remember the type of suffix it had, and will\ + \ use the same type again when it is serialized.\n\nBefore serializing,\ + \ Quantity will be put in \"canonical form\". This means that Exponent/suffix\ + \ will be adjusted up or down (with a corresponding increase or decrease\ + \ in Mantissa) such that:\n\n- No precision is lost - No fractional digits\ + \ will be emitted - The exponent (or suffix) is as large as possible.\n\ + \nThe sign will be omitted unless the number is negative.\n\nExamples:\n\ + \n- 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as\ + \ \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented\ + \ by a floating point number. That is the whole point of this exercise.\n\ + \nNon-canonical values will still parse as long as they are well formed,\ + \ but will be re-emitted in their canonical form. (So always use canonical\ + \ form, or don't diff.)\n\nThis format is intended to make it difficult\ + \ to use these numbers without writing some sort of special handling code\ + \ in the hopes that that will cause implementors to also use a fixed point\ + \ implementation." + format: quantity + type: string + capacityKey: + description: "CapacityKey references a capacity name defined as a key in\ + \ the `spec.devices[*].capacity` map. When this field is set, the value\ + \ associated with this key in the `status.allocation.devices.results[*].consumedCapacity`\ + \ map (for a specific claim allocation) determines the base quantity for\ + \ the node allocatable resource. If `allocationMultiplier` is also set,\ + \ it is multiplied with the base quantity. For example, if `spec.devices[*].capacity`\ + \ has an entry \"dra.example.com/memory\": \"128Gi\", and this field is\ + \ set to \"dra.example.com/memory\", then for a claim allocation that\ + \ consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for\ + \ the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier`\ + \ should be omitted or set to \"1\"." + type: string + type: object v1beta2.OpaqueDeviceConfiguration: description: OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. @@ -275660,6 +290131,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -277169,6 +291642,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -277964,8 +292439,8 @@ components: v1beta2.ResourcePool: description: ResourcePool describes the pool that ResourceSlices belong to. example: - generation: 6 - resourceSliceCount: 1 + generation: 1 + resourceSliceCount: 5 name: name properties: generation: @@ -278071,16 +292546,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -278091,7 +292556,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -278153,6 +292617,33 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true - nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -278164,16 +292655,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -278184,7 +292665,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -278246,9 +292726,36 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true pool: - generation: 6 - resourceSliceCount: 1 + generation: 1 + resourceSliceCount: 5 name: name sharedCounters: - counters: @@ -278337,6 +292844,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -278405,16 +292914,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -278425,7 +292924,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -278487,6 +292985,33 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true - nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -278498,16 +293023,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -278518,7 +293033,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -278580,9 +293094,36 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true pool: - generation: 6 - resourceSliceCount: 1 + generation: 1 + resourceSliceCount: 5 name: name sharedCounters: - counters: @@ -278704,16 +293245,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -278724,7 +293255,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -278786,6 +293316,33 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true - nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -278797,16 +293354,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -278817,7 +293364,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -278879,9 +293425,36 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true pool: - generation: 6 - resourceSliceCount: 1 + generation: 1 + resourceSliceCount: 5 name: name sharedCounters: - counters: @@ -278985,16 +293558,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -279005,7 +293568,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -279067,6 +293629,33 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true - nodeName: nodeName allowMultipleAllocations: true consumesCounters: @@ -279078,16 +293667,6 @@ components: key: value: value counterSet: counterSet - bindingFailureConditions: - - bindingFailureConditions - - bindingFailureConditions - name: name - attributes: - key: - bool: true - string: string - version: version - int: 0 taints: - timeAdded: 2000-01-23T04:56:07.000+00:00 effect: effect @@ -279098,7 +293677,6 @@ components: value: value key: key allNodes: true - bindsToNode: true bindingConditions: - bindingConditions - bindingConditions @@ -279160,9 +293738,36 @@ components: - values key: key operator: operator + nodeAllocatableResourceMappings: + key: + allocationMultiplier: allocationMultiplier + capacityKey: capacityKey + bindingFailureConditions: + - bindingFailureConditions + - bindingFailureConditions + name: name + attributes: + key: + bools: + - true + - true + bool: true + string: string + strings: + - strings + - strings + ints: + - 6 + - 6 + versions: + - versions + - versions + version: version + int: 0 + bindsToNode: true pool: - generation: 6 - resourceSliceCount: 1 + generation: 1 + resourceSliceCount: 5 name: name sharedCounters: - counters: @@ -279371,8 +293976,6 @@ components: of this class in their pod spec. format: int32 type: integer - required: - - value type: object x-kubernetes-group-version-kind: - group: scheduling.k8s.io @@ -279387,6 +293990,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -279522,10 +294127,10 @@ components: version: v1 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1alpha1.GangSchedulingPolicy: + v1alpha2.GangSchedulingPolicy: description: GangSchedulingPolicy defines the parameters for gang scheduling. example: - minCount: 0 + minCount: 6 properties: minCount: description: MinCount is the minimum number of pods that must be schedulable @@ -279536,30 +294141,426 @@ components: required: - minCount type: object - v1alpha1.PodGroup: - description: PodGroup represents a set of pods with a common scheduling policy. + v1alpha2.PodGroup: + description: "PodGroup represents a runtime instance of pods grouped together.\ + \ PodGroups are created by workload controllers (Job, LWS, JobSet, etc...)\ + \ from Workload.podGroupTemplates. PodGroup API enablement is toggled by the\ + \ GenericWorkload feature gate." example: + metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + podGroupTemplateRef: + workload: + podGroupTemplateName: podGroupTemplateName + workloadName: workloadName + priorityClassName: priorityClassName + schedulingConstraints: + topology: + - key: key + - key: key + priority: 0 + disruptionMode: disruptionMode + schedulingPolicy: + gang: + minCount: 6 + basic: "{}" + status: + resourceClaimStatuses: + - resourceClaimName: resourceClaimName + name: name + - resourceClaimName: resourceClaimName + name: name + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + apiVersion: + description: "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" + type: string + kind: + description: "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" + type: string + metadata: + $ref: "#/components/schemas/v1.ObjectMeta" + spec: + $ref: "#/components/schemas/v1alpha2.PodGroupSpec" + status: + $ref: "#/components/schemas/v1alpha2.PodGroupStatus" + required: + - spec + type: object + x-kubernetes-group-version-kind: + - group: scheduling.k8s.io + kind: PodGroup + version: v1alpha2 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v1alpha2.PodGroupList: + description: PodGroupList contains a list of PodGroup resources. + example: + metadata: + remainingItemCount: 1 + continue: continue + resourceVersion: resourceVersion + shardInfo: + selector: selector + selfLink: selfLink + apiVersion: apiVersion + kind: kind + items: + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + podGroupTemplateRef: + workload: + podGroupTemplateName: podGroupTemplateName + workloadName: workloadName + priorityClassName: priorityClassName + schedulingConstraints: + topology: + - key: key + - key: key + priority: 0 + disruptionMode: disruptionMode + schedulingPolicy: + gang: + minCount: 6 + basic: "{}" + status: + resourceClaimStatuses: + - resourceClaimName: resourceClaimName + name: name + - resourceClaimName: resourceClaimName + name: name + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - metadata: + generation: 6 + finalizers: + - finalizers + - finalizers + resourceVersion: resourceVersion + annotations: + key: annotations + generateName: generateName + deletionTimestamp: 2000-01-23T04:56:07.000+00:00 + labels: + key: labels + ownerReferences: + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + - uid: uid + controller: true + apiVersion: apiVersion + kind: kind + name: name + blockOwnerDeletion: true + selfLink: selfLink + deletionGracePeriodSeconds: 0 + uid: uid + managedFields: + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + - apiVersion: apiVersion + fieldsV1: "{}" + manager: manager + subresource: subresource + time: 2000-01-23T04:56:07.000+00:00 + operation: operation + fieldsType: fieldsType + creationTimestamp: 2000-01-23T04:56:07.000+00:00 + name: name + namespace: namespace + apiVersion: apiVersion + kind: kind + spec: + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + podGroupTemplateRef: + workload: + podGroupTemplateName: podGroupTemplateName + workloadName: workloadName + priorityClassName: priorityClassName + schedulingConstraints: + topology: + - key: key + - key: key + priority: 0 + disruptionMode: disruptionMode + schedulingPolicy: + gang: + minCount: 6 + basic: "{}" + status: + resourceClaimStatuses: + - resourceClaimName: resourceClaimName + name: name + - resourceClaimName: resourceClaimName + name: name + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + apiVersion: + description: "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" + type: string + items: + description: Items is the list of PodGroups. + items: + $ref: "#/components/schemas/v1alpha2.PodGroup" + type: array + kind: + description: "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" + type: string + metadata: + $ref: "#/components/schemas/v1.ListMeta" + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: scheduling.k8s.io + kind: PodGroupList + version: v1alpha2 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v1alpha2.PodGroupResourceClaim: + description: |- + PodGroupResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the PodGroup. + + It adds a name to it that uniquely identifies the ResourceClaim inside the PodGroup. Pods that need access to the ResourceClaim define a matching reference in its own Spec.ResourceClaims. The Pod's claim must match all fields of the PodGroup's claim exactly. + example: + resourceClaimName: resourceClaimName name: name - policy: - gang: - minCount: 0 - basic: "{}" + resourceClaimTemplateName: resourceClaimTemplateName properties: name: - description: Name is a unique identifier for the PodGroup within the Workload. - It must be a DNS label. This field is immutable. + description: Name uniquely identifies this resource claim inside the PodGroup. + This must be a DNS_LABEL. + type: string + resourceClaimName: + description: |- + ResourceClaimName is the name of a ResourceClaim object in the same namespace as this PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods. + + Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. + type: string + resourceClaimTemplateName: + description: |- + ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this PodGroup. + + The template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in podgroup.status.resourceClaimStatuses. + + This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. + + Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. type: string - policy: - $ref: "#/components/schemas/v1alpha1.PodGroupPolicy" required: - name - - policy type: object - v1alpha1.PodGroupPolicy: - description: PodGroupPolicy defines the scheduling configuration for a PodGroup. + v1alpha2.PodGroupResourceClaimStatus: + description: PodGroupResourceClaimStatus is stored in the PodGroupStatus for + each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores + the generated name for the corresponding ResourceClaim. + example: + resourceClaimName: resourceClaimName + name: name + properties: + name: + description: "Name uniquely identifies this resource claim inside the PodGroup.\ + \ This must match the name of an entry in podgroup.spec.resourceClaims,\ + \ which implies that the string must be a DNS_LABEL." + type: string + resourceClaimName: + description: "ResourceClaimName is the name of the ResourceClaim that was\ + \ generated for the PodGroup in the namespace of the PodGroup. If this\ + \ is unset, then generating a ResourceClaim was not necessary. The podgroup.spec.resourceClaims\ + \ entry can be ignored in this case." + type: string + required: + - name + type: object + v1alpha2.PodGroupSchedulingConstraints: + description: PodGroupSchedulingConstraints defines scheduling constraints (e.g. + topology) for a PodGroup. + example: + topology: + - key: key + - key: key + properties: + topology: + description: Topology defines the topology constraints for the pod group. + Currently only a single topology constraint can be specified. This may + change in the future. + items: + $ref: "#/components/schemas/v1alpha2.TopologyConstraint" + type: array + x-kubernetes-list-type: atomic + type: object + v1alpha2.PodGroupSchedulingPolicy: + description: PodGroupSchedulingPolicy defines the scheduling configuration for + a PodGroup. Exactly one policy must be set. example: gang: - minCount: 0 + minCount: 6 basic: "{}" properties: basic: @@ -279568,9 +294569,248 @@ components: properties: {} type: object gang: - $ref: "#/components/schemas/v1alpha1.GangSchedulingPolicy" + $ref: "#/components/schemas/v1alpha2.GangSchedulingPolicy" + type: object + x-kubernetes-unions: + - fields-to-discriminateBy: + basic: Basic + gang: Gang + v1alpha2.PodGroupSpec: + description: PodGroupSpec defines the desired state of a PodGroup. + example: + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + podGroupTemplateRef: + workload: + podGroupTemplateName: podGroupTemplateName + workloadName: workloadName + priorityClassName: priorityClassName + schedulingConstraints: + topology: + - key: key + - key: key + priority: 0 + disruptionMode: disruptionMode + schedulingPolicy: + gang: + minCount: 6 + basic: "{}" + properties: + disruptionMode: + description: "DisruptionMode defines the mode in which a given PodGroup\ + \ can be disrupted. Controllers are expected to fill this field by copying\ + \ it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if\ + \ unset. This field is immutable. This field is available only when the\ + \ WorkloadAwarePreemption feature gate is enabled." + type: string + podGroupTemplateRef: + $ref: "#/components/schemas/v1alpha2.PodGroupTemplateReference" + priority: + description: "Priority is the value of priority of this pod group. Various\ + \ system components use this field to find the priority of the pod group.\ + \ When Priority Admission Controller is enabled, it prevents users from\ + \ setting this field. The admission controller populates this field from\ + \ PriorityClassName. The higher the value, the higher the priority. This\ + \ field is immutable. This field is available only when the WorkloadAwarePreemption\ + \ feature gate is enabled." + format: int32 + type: integer + priorityClassName: + description: "PriorityClassName defines the priority that should be considered\ + \ when scheduling this pod group. Controllers are expected to fill this\ + \ field by copying it from a PodGroupTemplate. Otherwise, it is validated\ + \ and resolved similarly to the PriorityClassName on PodGroupTemplate\ + \ (i.e. if no priority class is specified, admission control can set this\ + \ to the global default priority class if it exists. Otherwise, the pod\ + \ group's priority will be zero). This field is immutable. This field\ + \ is available only when the WorkloadAwarePreemption feature gate is enabled." + type: string + resourceClaims: + description: |- + ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. + + This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. + + This field is immutable. + items: + $ref: "#/components/schemas/v1alpha2.PodGroupResourceClaim" + type: array + x-kubernetes-patch-strategy: "merge,retainKeys" + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + schedulingConstraints: + $ref: "#/components/schemas/v1alpha2.PodGroupSchedulingConstraints" + schedulingPolicy: + $ref: "#/components/schemas/v1alpha2.PodGroupSchedulingPolicy" + required: + - schedulingPolicy + type: object + v1alpha2.PodGroupStatus: + description: PodGroupStatus represents information about the status of a pod + group. + example: + resourceClaimStatuses: + - resourceClaimName: resourceClaimName + name: name + - resourceClaimName: resourceClaimName + name: name + conditions: + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + - reason: reason + lastTransitionTime: 2000-01-23T04:56:07.000+00:00 + message: message + type: type + observedGeneration: 5 + status: status + properties: + conditions: + description: |- + Conditions represent the latest observations of the PodGroup's state. + + Known condition types: - "PodGroupScheduled": Indicates whether the scheduling requirement has been satisfied. - "DisruptionTarget": Indicates whether the PodGroup is about to be terminated + due to disruption such as preemption. + + Known reasons for the PodGroupScheduled condition: - "Unschedulable": The PodGroup cannot be scheduled due to resource constraints, + affinity/anti-affinity rules, or insufficient capacity for the gang. + - "SchedulerError": The PodGroup cannot be scheduled due to some internal error + that happened during scheduling, for example due to nodeAffinity parsing errors. + + Known reasons for the DisruptionTarget condition: - "PreemptionByScheduler": The PodGroup was preempted by the scheduler to make room for + higher-priority PodGroups or Pods. + items: + $ref: "#/components/schemas/v1.Condition" + type: array + x-kubernetes-patch-strategy: merge + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - type + x-kubernetes-patch-merge-key: type + resourceClaimStatuses: + description: Status of resource claims. + items: + $ref: "#/components/schemas/v1alpha2.PodGroupResourceClaimStatus" + type: array + x-kubernetes-patch-strategy: "merge,retainKeys" + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + type: object + v1alpha2.PodGroupTemplate: + description: PodGroupTemplate represents a template for a set of pods with a + scheduling policy. + example: + resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + name: name + priorityClassName: priorityClassName + schedulingConstraints: + topology: + - key: key + - key: key + priority: 0 + disruptionMode: disruptionMode + schedulingPolicy: + gang: + minCount: 6 + basic: "{}" + properties: + disruptionMode: + description: "DisruptionMode defines the mode in which a given PodGroup\ + \ can be disrupted. One of Pod, PodGroup. This field is available only\ + \ when the WorkloadAwarePreemption feature gate is enabled." + type: string + name: + description: Name is a unique identifier for the PodGroupTemplate within + the Workload. It must be a DNS label. This field is immutable. + type: string + priority: + description: "Priority is the value of priority of pod groups created from\ + \ this template. Various system components use this field to find the\ + \ priority of the pod group. When Priority Admission Controller is enabled,\ + \ it prevents users from setting this field. The admission controller\ + \ populates this field from PriorityClassName. The higher the value, the\ + \ higher the priority. This field is available only when the WorkloadAwarePreemption\ + \ feature gate is enabled." + format: int32 + type: integer + priorityClassName: + description: "PriorityClassName indicates the priority that should be considered\ + \ when scheduling a pod group created from this template. If no priority\ + \ class is specified, admission control can set this to the global default\ + \ priority class if it exists. Otherwise, pod groups created from this\ + \ template will have the priority set to zero. This field is available\ + \ only when the WorkloadAwarePreemption feature gate is enabled." + type: string + resourceClaims: + description: |- + ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. + + This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. + + This field is immutable. + items: + $ref: "#/components/schemas/v1alpha2.PodGroupResourceClaim" + type: array + x-kubernetes-patch-strategy: "merge,retainKeys" + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - name + x-kubernetes-patch-merge-key: name + schedulingConstraints: + $ref: "#/components/schemas/v1alpha2.PodGroupSchedulingConstraints" + schedulingPolicy: + $ref: "#/components/schemas/v1alpha2.PodGroupSchedulingPolicy" + required: + - name + - schedulingPolicy type: object - v1alpha1.TypedLocalObjectReference: + v1alpha2.PodGroupTemplateReference: + description: PodGroupTemplateReference references a PodGroup template defined + in some object (e.g. Workload). Exactly one reference must be set. + example: + workload: + podGroupTemplateName: podGroupTemplateName + workloadName: workloadName + properties: + workload: + $ref: "#/components/schemas/v1alpha2.WorkloadPodGroupTemplateReference" + type: object + x-kubernetes-unions: + - fields-to-discriminateBy: + workload: Workload + v1alpha2.TopologyConstraint: + description: TopologyConstraint defines a topology constraint for a PodGroup. + example: + key: key + properties: + key: + description: "Key specifies the key of the node label representing the topology\ + \ domain. All pods within the PodGroup must be colocated within the same\ + \ domain instance. Different PodGroups can land on different domain instances\ + \ even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\"" + type: string + required: + - key + type: object + v1alpha2.TypedLocalObjectReference: description: TypedLocalObjectReference allows to reference typed object inside the same namespace. example: @@ -279596,10 +294836,11 @@ components: - kind - name type: object - v1alpha1.Workload: + v1alpha2.Workload: description: "Workload allows for expressing scheduling constraints that should\ - \ be used when managing lifecycle of workloads from scheduling perspective,\ - \ including scheduling, preemption, eviction and other phases." + \ be used when managing the lifecycle of workloads from the scheduling perspective,\ + \ including scheduling, preemption, eviction and other phases. Workload API\ + \ enablement is toggled by the GenericWorkload feature gate." example: metadata: generation: 6 @@ -279654,16 +294895,44 @@ components: apiGroup: apiGroup kind: kind name: name - podGroups: - - name: name - policy: + podGroupTemplates: + - resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + name: name + priorityClassName: priorityClassName + schedulingConstraints: + topology: + - key: key + - key: key + priority: 0 + disruptionMode: disruptionMode + schedulingPolicy: gang: - minCount: 0 + minCount: 6 basic: "{}" - - name: name - policy: + - resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + name: name + priorityClassName: priorityClassName + schedulingConstraints: + topology: + - key: key + - key: key + priority: 0 + disruptionMode: disruptionMode + schedulingPolicy: gang: - minCount: 0 + minCount: 6 basic: "{}" properties: apiVersion: @@ -279679,23 +294948,25 @@ components: metadata: $ref: "#/components/schemas/v1.ObjectMeta" spec: - $ref: "#/components/schemas/v1alpha1.WorkloadSpec" + $ref: "#/components/schemas/v1alpha2.WorkloadSpec" required: - spec type: object x-kubernetes-group-version-kind: - group: scheduling.k8s.io kind: Workload - version: v1alpha1 + version: v1alpha2 x-implements: - io.kubernetes.client.common.KubernetesObject - v1alpha1.WorkloadList: + v1alpha2.WorkloadList: description: WorkloadList contains a list of Workload resources. example: metadata: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -279753,16 +295024,44 @@ components: apiGroup: apiGroup kind: kind name: name - podGroups: - - name: name - policy: + podGroupTemplates: + - resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + name: name + priorityClassName: priorityClassName + schedulingConstraints: + topology: + - key: key + - key: key + priority: 0 + disruptionMode: disruptionMode + schedulingPolicy: gang: - minCount: 0 + minCount: 6 basic: "{}" - - name: name - policy: + - resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + name: name + priorityClassName: priorityClassName + schedulingConstraints: + topology: + - key: key + - key: key + priority: 0 + disruptionMode: disruptionMode + schedulingPolicy: gang: - minCount: 0 + minCount: 6 basic: "{}" - metadata: generation: 6 @@ -279817,16 +295116,44 @@ components: apiGroup: apiGroup kind: kind name: name - podGroups: - - name: name - policy: + podGroupTemplates: + - resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + name: name + priorityClassName: priorityClassName + schedulingConstraints: + topology: + - key: key + - key: key + priority: 0 + disruptionMode: disruptionMode + schedulingPolicy: gang: - minCount: 0 + minCount: 6 basic: "{}" - - name: name - policy: + - resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + name: name + priorityClassName: priorityClassName + schedulingConstraints: + topology: + - key: key + - key: key + priority: 0 + disruptionMode: disruptionMode + schedulingPolicy: gang: - minCount: 0 + minCount: 6 basic: "{}" properties: apiVersion: @@ -279837,7 +295164,7 @@ components: items: description: Items is the list of Workloads. items: - $ref: "#/components/schemas/v1alpha1.Workload" + $ref: "#/components/schemas/v1alpha2.Workload" type: array kind: description: "Kind is a string value representing the REST resource this\ @@ -279852,41 +295179,87 @@ components: x-kubernetes-group-version-kind: - group: scheduling.k8s.io kind: WorkloadList - version: v1alpha1 + version: v1alpha2 x-implements: - io.kubernetes.client.common.KubernetesListObject - v1alpha1.WorkloadSpec: + v1alpha2.WorkloadPodGroupTemplateReference: + description: WorkloadPodGroupTemplateReference references the PodGroupTemplate + within the Workload object. + example: + podGroupTemplateName: podGroupTemplateName + workloadName: workloadName + properties: + podGroupTemplateName: + description: PodGroupTemplateName defines the PodGroupTemplate name within + the Workload object. + type: string + workloadName: + description: WorkloadName defines the name of the Workload object. + type: string + required: + - podGroupTemplateName + - workloadName + type: object + v1alpha2.WorkloadSpec: description: WorkloadSpec defines the desired state of a Workload. example: controllerRef: apiGroup: apiGroup kind: kind name: name - podGroups: - - name: name - policy: + podGroupTemplates: + - resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + name: name + priorityClassName: priorityClassName + schedulingConstraints: + topology: + - key: key + - key: key + priority: 0 + disruptionMode: disruptionMode + schedulingPolicy: gang: - minCount: 0 + minCount: 6 basic: "{}" - - name: name - policy: + - resourceClaims: + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + - resourceClaimName: resourceClaimName + name: name + resourceClaimTemplateName: resourceClaimTemplateName + name: name + priorityClassName: priorityClassName + schedulingConstraints: + topology: + - key: key + - key: key + priority: 0 + disruptionMode: disruptionMode + schedulingPolicy: gang: - minCount: 0 + minCount: 6 basic: "{}" properties: controllerRef: - $ref: "#/components/schemas/v1alpha1.TypedLocalObjectReference" - podGroups: - description: PodGroups is the list of pod groups that make up the Workload. - The maximum number of pod groups is 8. This field is immutable. + $ref: "#/components/schemas/v1alpha2.TypedLocalObjectReference" + podGroupTemplates: + description: PodGroupTemplates is the list of templates that make up the + Workload. The maximum number of templates is 8. This field is immutable. items: - $ref: "#/components/schemas/v1alpha1.PodGroup" + $ref: "#/components/schemas/v1alpha2.PodGroupTemplate" type: array x-kubernetes-list-type: map x-kubernetes-list-map-keys: - name required: - - podGroups + - podGroupTemplates type: object v1.CSIDriver: description: CSIDriver captures information about a Container Storage Interface @@ -279946,6 +295319,7 @@ components: spec: nodeAllocatableUpdatePeriodSeconds: 0 fsGroupPolicy: fsGroupPolicy + preventPodSchedulingIfMissing: true serviceAccountTokenInSecrets: true attachRequired: true requiresRepublish: true @@ -279991,6 +295365,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -280046,6 +295422,7 @@ components: spec: nodeAllocatableUpdatePeriodSeconds: 0 fsGroupPolicy: fsGroupPolicy + preventPodSchedulingIfMissing: true serviceAccountTokenInSecrets: true attachRequired: true requiresRepublish: true @@ -280111,6 +295488,7 @@ components: spec: nodeAllocatableUpdatePeriodSeconds: 0 fsGroupPolicy: fsGroupPolicy + preventPodSchedulingIfMissing: true serviceAccountTokenInSecrets: true attachRequired: true requiresRepublish: true @@ -280157,6 +295535,7 @@ components: example: nodeAllocatableUpdatePeriodSeconds: 0 fsGroupPolicy: fsGroupPolicy + preventPodSchedulingIfMissing: true serviceAccountTokenInSecrets: true attachRequired: true requiresRepublish: true @@ -280190,7 +295569,7 @@ components: description: |- nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. - This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. + This feature requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. format: int64 @@ -280208,6 +295587,16 @@ components: This field was immutable in Kubernetes < 1.29 and now is mutable. type: boolean + preventPodSchedulingIfMissing: + description: |- + PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod scheduling if the CSI driver on the node is missing. + + Enabling this option will prevent the scheduler (or any other component which embeds default scheduler such as cluster-autoscaler) from scheduling pods to nodes where CSI driver is not installed. + + For components(such as cluster-autoscaler) that embed the scheduler and run pod placement simulations using scheduler plugins, they MUST be aware of CSI driver registration information via CSINode object. They must create simulated CSINode objects in addition to Node objects during scheduling simulation, otherwise if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any newly created node may be rejected by the scheduler because of missing CSI driver information from the node. + + This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled. Default is "false". + type: boolean requiresRepublish: description: |- requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. @@ -280429,6 +295818,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -280814,6 +296205,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -281127,6 +296520,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -281674,6 +297069,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -282971,6 +298368,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -283115,7 +298514,7 @@ components: description: |- errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. - This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. + This field requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. format: int32 type: integer message: @@ -283242,6 +298641,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -283478,6 +298879,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -284158,6 +299561,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -286620,12 +302025,6 @@ components: - group: autoscaling kind: DeleteOptions version: v2 - - group: autoscaling - kind: DeleteOptions - version: v2beta1 - - group: autoscaling - kind: DeleteOptions - version: v2beta2 - group: batch kind: DeleteOptions version: v1 @@ -286730,7 +302129,7 @@ components: version: v1 - group: scheduling.k8s.io kind: DeleteOptions - version: v1alpha1 + version: v1alpha2 - group: scheduling.k8s.io kind: DeleteOptions version: v1beta1 @@ -286886,6 +302285,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink properties: continue: @@ -286922,6 +302323,8 @@ components: description: "Deprecated: selfLink is a legacy read-only field that is no\ \ longer populated by the system." type: string + shardInfo: + $ref: "#/components/schemas/v1.ShardInfo" type: object v1.ManagedFieldsEntry: description: "ManagedFieldsEntry is a workflow-id, a FieldSet and the group\ @@ -287228,6 +302631,21 @@ components: - clientCIDR - serverAddress type: object + v1.ShardInfo: + description: ShardInfo describes the shard selector that was applied to produce + a list response. Its presence on a list response indicates the list is a filtered + subset. + example: + selector: selector + properties: + selector: + description: "selector is the shard selector string from the request, echoed\ + \ back so clients can verify which shard they received and merge responses\ + \ from multiple shards." + type: string + required: + - selector + type: object v1.Status: description: Status is a return value for calls that don't return other objects. example: @@ -287236,6 +302654,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion code: 0 @@ -287447,12 +302867,6 @@ components: - group: autoscaling kind: WatchEvent version: v2 - - group: autoscaling - kind: WatchEvent - version: v2beta1 - - group: autoscaling - kind: WatchEvent - version: v2beta2 - group: batch kind: WatchEvent version: v1 @@ -287557,7 +302971,7 @@ components: version: v1 - group: scheduling.k8s.io kind: WatchEvent - version: v1alpha1 + version: v1alpha2 - group: scheduling.k8s.io kind: WatchEvent version: v1beta1 @@ -287781,6 +303195,8 @@ components: remainingItemCount: 1 continue: continue resourceVersion: resourceVersion + shardInfo: + selector: selector selfLink: selfLink apiVersion: apiVersion kind: kind @@ -288072,6 +303488,309 @@ components: format: int32 type: integer type: object + v2beta1.APIGroupDiscoveryList: + description: "APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery.\ + \ This is one of the types able to be returned from the /api and /apis endpoint\ + \ and contains an aggregated list of API resources (built-ins, Custom Resource\ + \ Definitions, resources from aggregated servers) that a cluster supports." + properties: + apiVersion: + type: string + kind: + type: string + metadata: + $ref: "#/components/schemas/v1.ListMeta" + items: + items: + $ref: "#/components/schemas/v2beta1.APIGroupDiscovery" + type: array + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: apidiscovery.k8s.io + kind: APIGroupDiscoveryList + version: v2beta1 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v2beta1.APIGroupDiscovery: + description: "APIGroupDiscovery holds information about which resources are\ + \ being served for all version of the API Group. It contains a list of APIVersionDiscovery\ + \ that holds a list of APIResourceDiscovery types served for a version. Versions\ + \ are in descending order of preference, with the first version being the\ + \ preferred entry." + properties: + apiVersion: + type: string + kind: + type: string + metadata: + $ref: "#/components/schemas/v1.ObjectMeta" + versions: + items: + $ref: "#/components/schemas/v2beta1.APIVersionDiscovery" + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - version + type: object + x-kubernetes-group-version-kind: + - group: apidiscovery.k8s.io + kind: APIGroupDiscovery + version: v2beta1 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v2beta1.APIVersionDiscovery: + description: APIVersionDiscovery holds a list of APIResourceDiscovery types + that are served for a particular version within an API Group. + properties: + version: + description: version is the name of the version within a group version. + type: string + resources: + items: + $ref: "#/components/schemas/v2beta1.APIResourceDiscovery" + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - resource + freshness: + description: freshness marks whether a group version's discovery document + is up to date. + type: string + required: + - version + type: object + v2beta1.APIResourceDiscovery: + description: APIResourceDiscovery provides information about an API resource + for discovery. + properties: + resource: + description: resource is the plural name of the resource. + type: string + responseKind: + $ref: "#/components/schemas/v1.GroupVersionKind" + scope: + description: "scope indicates the scope of a resource, either Cluster or\ + \ Namespaced" + type: string + singularResource: + description: singularResource is the singular name of the resource. + type: string + verbs: + description: verbs is a list of supported API operation types + items: + type: string + type: array + shortNames: + description: shortNames is a list of suggested short names of the resource. + items: + type: string + type: array + categories: + description: categories is a list of the grouped resources this resource + belongs to. + items: + type: string + type: array + subresources: + items: + $ref: "#/components/schemas/v2beta1.APISubresourceDiscovery" + type: array + required: + - resource + - scope + - singularResource + - verbs + type: object + v2beta1.APISubresourceDiscovery: + description: APISubresourceDiscovery provides information about an API subresource + for discovery. + properties: + subresource: + description: subresource is the name of the subresource. + type: string + responseKind: + $ref: "#/components/schemas/v1.GroupVersionKind" + verbs: + description: verbs is a list of supported API operation types + items: + type: string + type: array + acceptedTypes: + items: + $ref: "#/components/schemas/v1.GroupVersionKind" + type: array + required: + - subresource + - verbs + type: object + v2.APIGroupDiscoveryList: + description: "APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery.\ + \ This is one of the types able to be returned from the /api and /apis endpoint\ + \ and contains an aggregated list of API resources (built-ins, Custom Resource\ + \ Definitions, resources from aggregated servers) that a cluster supports." + properties: + apiVersion: + type: string + kind: + type: string + metadata: + $ref: "#/components/schemas/v1.ListMeta" + items: + items: + $ref: "#/components/schemas/v2.APIGroupDiscovery" + type: array + required: + - items + type: object + x-kubernetes-group-version-kind: + - group: apidiscovery.k8s.io + kind: APIGroupDiscoveryList + version: v2 + x-implements: + - io.kubernetes.client.common.KubernetesListObject + v2.APIGroupDiscovery: + description: "APIGroupDiscovery holds information about which resources are\ + \ being served for all version of the API Group. It contains a list of APIVersionDiscovery\ + \ that holds a list of APIResourceDiscovery types served for a version. Versions\ + \ are in descending order of preference, with the first version being the\ + \ preferred entry." + properties: + apiVersion: + type: string + kind: + type: string + metadata: + $ref: "#/components/schemas/v1.ObjectMeta" + versions: + items: + $ref: "#/components/schemas/v2.APIVersionDiscovery" + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - version + type: object + x-kubernetes-group-version-kind: + - group: apidiscovery.k8s.io + kind: APIGroupDiscovery + version: v2 + x-implements: + - io.kubernetes.client.common.KubernetesObject + v2.APIVersionDiscovery: + description: APIVersionDiscovery holds a list of APIResourceDiscovery types + that are served for a particular version within an API Group. + properties: + version: + description: version is the name of the version within a group version. + type: string + resources: + items: + $ref: "#/components/schemas/v2.APIResourceDiscovery" + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - resource + freshness: + description: freshness marks whether a group version's discovery document + is up to date. + type: string + required: + - version + type: object + v2.APIResourceDiscovery: + description: APIResourceDiscovery provides information about an API resource + for discovery. + properties: + resource: + description: resource is the plural name of the resource. + type: string + responseKind: + $ref: "#/components/schemas/v1.GroupVersionKind" + scope: + description: "scope indicates the scope of a resource, either Cluster or\ + \ Namespaced" + type: string + singularResource: + description: singularResource is the singular name of the resource. + type: string + verbs: + description: verbs is a list of supported API operation types + items: + type: string + type: array + x-kubernetes-list-type: set + shortNames: + description: shortNames is a list of suggested short names of the resource. + items: + type: string + type: array + x-kubernetes-list-type: set + categories: + description: categories is a list of the grouped resources this resource + belongs to. + items: + type: string + type: array + x-kubernetes-list-type: set + subresources: + items: + $ref: "#/components/schemas/v2.APISubresourceDiscovery" + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - subresource + required: + - resource + - scope + - singularResource + - verbs + type: object + v2.APISubresourceDiscovery: + description: APISubresourceDiscovery provides information about an API subresource + for discovery. + properties: + subresource: + description: subresource is the name of the subresource. + type: string + responseKind: + $ref: "#/components/schemas/v1.GroupVersionKind" + acceptedTypes: + items: + $ref: "#/components/schemas/v1.GroupVersionKind" + type: array + x-kubernetes-list-type: map + x-kubernetes-list-map-keys: + - group + - version + - kind + verbs: + description: verbs is a list of supported API operation types + items: + type: string + type: array + x-kubernetes-list-type: set + required: + - subresource + - verbs + type: object + v1.GroupVersionKind: + description: GroupVersionKind unambiguously identifies a kind. + properties: + group: + description: group is the group part of the GroupVersionKind. + type: string + kind: + description: kind is the kind part of the GroupVersionKind. + type: string + version: + description: version is the version part of the GroupVersionKind. + type: string + required: + - group + - kind + - version + type: object securitySchemes: BearerToken: description: Bearer Token authentication diff --git a/kubernetes/docs/AdmissionregistrationV1Api.md b/kubernetes/docs/AdmissionregistrationV1Api.md index 8573fa2923..e0aa484ebc 100644 --- a/kubernetes/docs/AdmissionregistrationV1Api.md +++ b/kubernetes/docs/AdmissionregistrationV1Api.md @@ -4,33 +4,47 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| +| [**createMutatingAdmissionPolicy**](AdmissionregistrationV1Api.md#createMutatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies | | +| [**createMutatingAdmissionPolicyBinding**](AdmissionregistrationV1Api.md#createMutatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings | | | [**createMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#createMutatingWebhookConfiguration) | **POST** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations | | | [**createValidatingAdmissionPolicy**](AdmissionregistrationV1Api.md#createValidatingAdmissionPolicy) | **POST** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies | | | [**createValidatingAdmissionPolicyBinding**](AdmissionregistrationV1Api.md#createValidatingAdmissionPolicyBinding) | **POST** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings | | | [**createValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#createValidatingWebhookConfiguration) | **POST** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations | | +| [**deleteCollectionMutatingAdmissionPolicy**](AdmissionregistrationV1Api.md#deleteCollectionMutatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies | | +| [**deleteCollectionMutatingAdmissionPolicyBinding**](AdmissionregistrationV1Api.md#deleteCollectionMutatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings | | | [**deleteCollectionMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#deleteCollectionMutatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations | | | [**deleteCollectionValidatingAdmissionPolicy**](AdmissionregistrationV1Api.md#deleteCollectionValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies | | | [**deleteCollectionValidatingAdmissionPolicyBinding**](AdmissionregistrationV1Api.md#deleteCollectionValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings | | | [**deleteCollectionValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#deleteCollectionValidatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations | | +| [**deleteMutatingAdmissionPolicy**](AdmissionregistrationV1Api.md#deleteMutatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies/{name} | | +| [**deleteMutatingAdmissionPolicyBinding**](AdmissionregistrationV1Api.md#deleteMutatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings/{name} | | | [**deleteMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#deleteMutatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} | | | [**deleteValidatingAdmissionPolicy**](AdmissionregistrationV1Api.md#deleteValidatingAdmissionPolicy) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name} | | | [**deleteValidatingAdmissionPolicyBinding**](AdmissionregistrationV1Api.md#deleteValidatingAdmissionPolicyBinding) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name} | | | [**deleteValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#deleteValidatingWebhookConfiguration) | **DELETE** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | | | [**getAPIResources**](AdmissionregistrationV1Api.md#getAPIResources) | **GET** /apis/admissionregistration.k8s.io/v1/ | | +| [**listMutatingAdmissionPolicy**](AdmissionregistrationV1Api.md#listMutatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies | | +| [**listMutatingAdmissionPolicyBinding**](AdmissionregistrationV1Api.md#listMutatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings | | | [**listMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#listMutatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations | | | [**listValidatingAdmissionPolicy**](AdmissionregistrationV1Api.md#listValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies | | | [**listValidatingAdmissionPolicyBinding**](AdmissionregistrationV1Api.md#listValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings | | | [**listValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#listValidatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations | | +| [**patchMutatingAdmissionPolicy**](AdmissionregistrationV1Api.md#patchMutatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies/{name} | | +| [**patchMutatingAdmissionPolicyBinding**](AdmissionregistrationV1Api.md#patchMutatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings/{name} | | | [**patchMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#patchMutatingWebhookConfiguration) | **PATCH** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} | | | [**patchValidatingAdmissionPolicy**](AdmissionregistrationV1Api.md#patchValidatingAdmissionPolicy) | **PATCH** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name} | | | [**patchValidatingAdmissionPolicyBinding**](AdmissionregistrationV1Api.md#patchValidatingAdmissionPolicyBinding) | **PATCH** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name} | | | [**patchValidatingAdmissionPolicyStatus**](AdmissionregistrationV1Api.md#patchValidatingAdmissionPolicyStatus) | **PATCH** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status | | | [**patchValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#patchValidatingWebhookConfiguration) | **PATCH** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | | +| [**readMutatingAdmissionPolicy**](AdmissionregistrationV1Api.md#readMutatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies/{name} | | +| [**readMutatingAdmissionPolicyBinding**](AdmissionregistrationV1Api.md#readMutatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings/{name} | | | [**readMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#readMutatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} | | | [**readValidatingAdmissionPolicy**](AdmissionregistrationV1Api.md#readValidatingAdmissionPolicy) | **GET** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name} | | | [**readValidatingAdmissionPolicyBinding**](AdmissionregistrationV1Api.md#readValidatingAdmissionPolicyBinding) | **GET** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name} | | | [**readValidatingAdmissionPolicyStatus**](AdmissionregistrationV1Api.md#readValidatingAdmissionPolicyStatus) | **GET** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status | | | [**readValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#readValidatingWebhookConfiguration) | **GET** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | | +| [**replaceMutatingAdmissionPolicy**](AdmissionregistrationV1Api.md#replaceMutatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies/{name} | | +| [**replaceMutatingAdmissionPolicyBinding**](AdmissionregistrationV1Api.md#replaceMutatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings/{name} | | | [**replaceMutatingWebhookConfiguration**](AdmissionregistrationV1Api.md#replaceMutatingWebhookConfiguration) | **PUT** /apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name} | | | [**replaceValidatingAdmissionPolicy**](AdmissionregistrationV1Api.md#replaceValidatingAdmissionPolicy) | **PUT** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name} | | | [**replaceValidatingAdmissionPolicyBinding**](AdmissionregistrationV1Api.md#replaceValidatingAdmissionPolicyBinding) | **PUT** /apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name} | | @@ -38,6 +52,176 @@ All URIs are relative to *http://localhost* | [**replaceValidatingWebhookConfiguration**](AdmissionregistrationV1Api.md#replaceValidatingWebhookConfiguration) | **PUT** /apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name} | | + +# **createMutatingAdmissionPolicy** +> V1MutatingAdmissionPolicy createMutatingAdmissionPolicy(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a MutatingAdmissionPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + V1MutatingAdmissionPolicy body = new V1MutatingAdmissionPolicy(); // V1MutatingAdmissionPolicy | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1MutatingAdmissionPolicy result = apiInstance.createMutatingAdmissionPolicy(body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#createMutatingAdmissionPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1MutatingAdmissionPolicy**](V1MutatingAdmissionPolicy.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1MutatingAdmissionPolicy**](V1MutatingAdmissionPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **createMutatingAdmissionPolicyBinding** +> V1MutatingAdmissionPolicyBinding createMutatingAdmissionPolicyBinding(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a MutatingAdmissionPolicyBinding + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + V1MutatingAdmissionPolicyBinding body = new V1MutatingAdmissionPolicyBinding(); // V1MutatingAdmissionPolicyBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1MutatingAdmissionPolicyBinding result = apiInstance.createMutatingAdmissionPolicyBinding(body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#createMutatingAdmissionPolicyBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1MutatingAdmissionPolicyBinding**](V1MutatingAdmissionPolicyBinding.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1MutatingAdmissionPolicyBinding**](V1MutatingAdmissionPolicyBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + # **createMutatingWebhookConfiguration** > V1MutatingWebhookConfiguration createMutatingWebhookConfiguration(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); @@ -378,13 +562,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteCollectionMutatingWebhookConfiguration** -> V1Status deleteCollectionMutatingWebhookConfiguration().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionMutatingAdmissionPolicy** +> V1Status deleteCollectionMutatingAdmissionPolicy().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of MutatingWebhookConfiguration +delete collection of MutatingAdmissionPolicy ### Example ```java @@ -421,10 +605,11 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionMutatingWebhookConfiguration() + V1Status result = apiInstance.deleteCollectionMutatingAdmissionPolicy() .pretty(pretty) ._continue(_continue) .dryRun(dryRun) @@ -438,12 +623,13 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#deleteCollectionMutatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteCollectionMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -470,6 +656,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -492,13 +679,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteCollectionValidatingAdmissionPolicy** -> V1Status deleteCollectionValidatingAdmissionPolicy().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionMutatingAdmissionPolicyBinding** +> V1Status deleteCollectionMutatingAdmissionPolicyBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of ValidatingAdmissionPolicy +delete collection of MutatingAdmissionPolicyBinding ### Example ```java @@ -535,10 +722,11 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionValidatingAdmissionPolicy() + V1Status result = apiInstance.deleteCollectionMutatingAdmissionPolicyBinding() .pretty(pretty) ._continue(_continue) .dryRun(dryRun) @@ -552,12 +740,13 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#deleteCollectionValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteCollectionMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -584,6 +773,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -606,13 +796,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteCollectionValidatingAdmissionPolicyBinding** -> V1Status deleteCollectionValidatingAdmissionPolicyBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionMutatingWebhookConfiguration** +> V1Status deleteCollectionMutatingWebhookConfiguration().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of ValidatingAdmissionPolicyBinding +delete collection of MutatingWebhookConfiguration ### Example ```java @@ -649,10 +839,11 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionValidatingAdmissionPolicyBinding() + V1Status result = apiInstance.deleteCollectionMutatingWebhookConfiguration() .pretty(pretty) ._continue(_continue) .dryRun(dryRun) @@ -666,12 +857,13 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#deleteCollectionValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteCollectionMutatingWebhookConfiguration"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -698,6 +890,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -720,13 +913,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteCollectionValidatingWebhookConfiguration** -> V1Status deleteCollectionValidatingWebhookConfiguration().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionValidatingAdmissionPolicy** +> V1Status deleteCollectionValidatingAdmissionPolicy().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of ValidatingWebhookConfiguration +delete collection of ValidatingAdmissionPolicy ### Example ```java @@ -763,10 +956,11 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionValidatingWebhookConfiguration() + V1Status result = apiInstance.deleteCollectionValidatingAdmissionPolicy() .pretty(pretty) ._continue(_continue) .dryRun(dryRun) @@ -780,12 +974,13 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#deleteCollectionValidatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteCollectionValidatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -812,6 +1007,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -834,13 +1030,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteMutatingWebhookConfiguration** -> V1Status deleteMutatingWebhookConfiguration(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteCollectionValidatingAdmissionPolicyBinding** +> V1Status deleteCollectionValidatingAdmissionPolicyBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete a MutatingWebhookConfiguration +delete collection of ValidatingAdmissionPolicyBinding ### Example ```java @@ -864,27 +1060,44 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String name = "name_example"; // String | name of the MutatingWebhookConfiguration String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | 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. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteMutatingWebhookConfiguration(name) + V1Status result = apiInstance.deleteCollectionValidatingAdmissionPolicyBinding() .pretty(pretty) + ._continue(_continue) .dryRun(dryRun) + .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#deleteMutatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteCollectionValidatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -898,13 +1111,21 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the MutatingWebhookConfiguration | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| 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. | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | | **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | | **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | | **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | | **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type @@ -924,16 +1145,15 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteValidatingAdmissionPolicy** -> V1Status deleteValidatingAdmissionPolicy(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteCollectionValidatingWebhookConfiguration** +> V1Status deleteCollectionValidatingWebhookConfiguration().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete a ValidatingAdmissionPolicy +delete collection of ValidatingWebhookConfiguration ### Example ```java @@ -957,27 +1177,44 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | 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. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteValidatingAdmissionPolicy(name) + V1Status result = apiInstance.deleteCollectionValidatingWebhookConfiguration() .pretty(pretty) + ._continue(_continue) .dryRun(dryRun) + .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#deleteValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteCollectionValidatingWebhookConfiguration"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -991,16 +1228,24 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicy | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| 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. | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | | **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | | **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | | **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | | **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | -| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | - -### Return type +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type [**V1Status**](V1Status.md) @@ -1017,16 +1262,15 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteValidatingAdmissionPolicyBinding** -> V1Status deleteValidatingAdmissionPolicyBinding(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteMutatingAdmissionPolicy** +> V1Status deleteMutatingAdmissionPolicy(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ValidatingAdmissionPolicyBinding +delete a MutatingAdmissionPolicy ### Example ```java @@ -1050,7 +1294,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding + String name = "name_example"; // String | name of the MutatingAdmissionPolicy String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. @@ -1059,7 +1303,7 @@ public class Example { String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteValidatingAdmissionPolicyBinding(name) + V1Status result = apiInstance.deleteMutatingAdmissionPolicy(name) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) @@ -1070,7 +1314,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#deleteValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1084,7 +1328,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | +| **name** | **String**| name of the MutatingAdmissionPolicy | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | | **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | @@ -1113,13 +1357,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteValidatingWebhookConfiguration** -> V1Status deleteValidatingWebhookConfiguration(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteMutatingAdmissionPolicyBinding** +> V1Status deleteMutatingAdmissionPolicyBinding(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ValidatingWebhookConfiguration +delete a MutatingAdmissionPolicyBinding ### Example ```java @@ -1143,7 +1387,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingWebhookConfiguration + String name = "name_example"; // String | name of the MutatingAdmissionPolicyBinding String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. @@ -1152,7 +1396,7 @@ public class Example { String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteValidatingWebhookConfiguration(name) + V1Status result = apiInstance.deleteMutatingAdmissionPolicyBinding(name) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) @@ -1163,7 +1407,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#deleteValidatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1177,7 +1421,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingWebhookConfiguration | | +| **name** | **String**| name of the MutatingAdmissionPolicyBinding | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | | **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | @@ -1206,13 +1450,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **getAPIResources** -> V1APIResourceList getAPIResources().execute(); + +# **deleteMutatingWebhookConfiguration** +> V1Status deleteMutatingWebhookConfiguration(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -get available resources +delete a MutatingWebhookConfiguration ### Example ```java @@ -1236,12 +1480,27 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the MutatingWebhookConfiguration + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1APIResourceList result = apiInstance.getAPIResources() + V1Status result = apiInstance.deleteMutatingWebhookConfiguration(name) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#getAPIResources"); + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteMutatingWebhookConfiguration"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1252,11 +1511,21 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the MutatingWebhookConfiguration | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**V1Status**](V1Status.md) ### Authorization @@ -1264,22 +1533,23 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **202** | Accepted | - | | **401** | Unauthorized | - | - -# **listMutatingWebhookConfiguration** -> V1MutatingWebhookConfigurationList listMutatingWebhookConfiguration().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **deleteValidatingAdmissionPolicy** +> V1Status deleteValidatingAdmissionPolicy(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -list or watch objects of kind MutatingWebhookConfiguration +delete a ValidatingAdmissionPolicy ### Example ```java @@ -1303,34 +1573,27 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the ValidatingAdmissionPolicy String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - Boolean allowWatchBookmarks = true; // Boolean | 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. - String _continue = "_continue_example"; // String | 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | 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. - String resourceVersion = "resourceVersion_example"; // String | 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 - String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1MutatingWebhookConfigurationList result = apiInstance.listMutatingWebhookConfiguration() + V1Status result = apiInstance.deleteValidatingAdmissionPolicy(name) .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#listMutatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteValidatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1344,21 +1607,18 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingAdmissionPolicy | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | -| **_continue** | **String**| 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. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| 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. | [optional] | -| **resourceVersion** | **String**| 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 | [optional] | -| **resourceVersionMatch** | **String**| 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 | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type -[**V1MutatingWebhookConfigurationList**](V1MutatingWebhookConfigurationList.md) +[**V1Status**](V1Status.md) ### Authorization @@ -1366,22 +1626,23 @@ public class Example { ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **202** | Accepted | - | | **401** | Unauthorized | - | - -# **listValidatingAdmissionPolicy** -> V1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **deleteValidatingAdmissionPolicyBinding** +> V1Status deleteValidatingAdmissionPolicyBinding(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -list or watch objects of kind ValidatingAdmissionPolicy +delete a ValidatingAdmissionPolicyBinding ### Example ```java @@ -1405,34 +1666,27 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - Boolean allowWatchBookmarks = true; // Boolean | 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. - String _continue = "_continue_example"; // String | 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | 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. - String resourceVersion = "resourceVersion_example"; // String | 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 - String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1ValidatingAdmissionPolicyList result = apiInstance.listValidatingAdmissionPolicy() + V1Status result = apiInstance.deleteValidatingAdmissionPolicyBinding(name) .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#listValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteValidatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1446,21 +1700,18 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | -| **_continue** | **String**| 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. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| 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. | [optional] | -| **resourceVersion** | **String**| 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 | [optional] | -| **resourceVersionMatch** | **String**| 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 | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type -[**V1ValidatingAdmissionPolicyList**](V1ValidatingAdmissionPolicyList.md) +[**V1Status**](V1Status.md) ### Authorization @@ -1468,22 +1719,23 @@ public class Example { ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **202** | Accepted | - | | **401** | Unauthorized | - | - -# **listValidatingAdmissionPolicyBinding** -> V1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicyBinding().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **deleteValidatingWebhookConfiguration** +> V1Status deleteValidatingWebhookConfiguration(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -list or watch objects of kind ValidatingAdmissionPolicyBinding +delete a ValidatingWebhookConfiguration ### Example ```java @@ -1507,34 +1759,27 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the ValidatingWebhookConfiguration String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - Boolean allowWatchBookmarks = true; // Boolean | 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. - String _continue = "_continue_example"; // String | 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | 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. - String resourceVersion = "resourceVersion_example"; // String | 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 - String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1ValidatingAdmissionPolicyBindingList result = apiInstance.listValidatingAdmissionPolicyBinding() + V1Status result = apiInstance.deleteValidatingWebhookConfiguration(name) .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#listValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1Api#deleteValidatingWebhookConfiguration"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1548,21 +1793,191 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingWebhookConfiguration | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | -| **_continue** | **String**| 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. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| 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. | [optional] | -| **resourceVersion** | **String**| 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 | [optional] | -| **resourceVersionMatch** | **String**| 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 | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources().execute(); + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listMutatingAdmissionPolicy** +> V1MutatingAdmissionPolicyList listMutatingAdmissionPolicy().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind MutatingAdmissionPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | 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. + String _continue = "_continue_example"; // String | 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1MutatingAdmissionPolicyList result = apiInstance.listMutatingAdmissionPolicy() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#listMutatingAdmissionPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type -[**V1ValidatingAdmissionPolicyBindingList**](V1ValidatingAdmissionPolicyBindingList.md) +[**V1MutatingAdmissionPolicyList**](V1MutatingAdmissionPolicyList.md) ### Authorization @@ -1579,13 +1994,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listValidatingWebhookConfiguration** -> V1ValidatingWebhookConfigurationList listValidatingWebhookConfiguration().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listMutatingAdmissionPolicyBinding** +> V1MutatingAdmissionPolicyBindingList listMutatingAdmissionPolicyBinding().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind ValidatingWebhookConfiguration +list or watch objects of kind MutatingAdmissionPolicyBinding ### Example ```java @@ -1618,10 +2033,11 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1ValidatingWebhookConfigurationList result = apiInstance.listValidatingWebhookConfiguration() + V1MutatingAdmissionPolicyBindingList result = apiInstance.listMutatingAdmissionPolicyBinding() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -1631,12 +2047,13 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#listValidatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#listMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1659,12 +2076,788 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type -[**V1ValidatingWebhookConfigurationList**](V1ValidatingWebhookConfigurationList.md) +[**V1MutatingAdmissionPolicyBindingList**](V1MutatingAdmissionPolicyBindingList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listMutatingWebhookConfiguration** +> V1MutatingWebhookConfigurationList listMutatingWebhookConfiguration().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind MutatingWebhookConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | 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. + String _continue = "_continue_example"; // String | 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1MutatingWebhookConfigurationList result = apiInstance.listMutatingWebhookConfiguration() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#listMutatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1MutatingWebhookConfigurationList**](V1MutatingWebhookConfigurationList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listValidatingAdmissionPolicy** +> V1ValidatingAdmissionPolicyList listValidatingAdmissionPolicy().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ValidatingAdmissionPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | 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. + String _continue = "_continue_example"; // String | 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ValidatingAdmissionPolicyList result = apiInstance.listValidatingAdmissionPolicy() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#listValidatingAdmissionPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1ValidatingAdmissionPolicyList**](V1ValidatingAdmissionPolicyList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listValidatingAdmissionPolicyBinding** +> V1ValidatingAdmissionPolicyBindingList listValidatingAdmissionPolicyBinding().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ValidatingAdmissionPolicyBinding + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | 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. + String _continue = "_continue_example"; // String | 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ValidatingAdmissionPolicyBindingList result = apiInstance.listValidatingAdmissionPolicyBinding() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#listValidatingAdmissionPolicyBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1ValidatingAdmissionPolicyBindingList**](V1ValidatingAdmissionPolicyBindingList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listValidatingWebhookConfiguration** +> V1ValidatingWebhookConfigurationList listValidatingWebhookConfiguration().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ValidatingWebhookConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | 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. + String _continue = "_continue_example"; // String | 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ValidatingWebhookConfigurationList result = apiInstance.listValidatingWebhookConfiguration() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#listValidatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1ValidatingWebhookConfigurationList**](V1ValidatingWebhookConfigurationList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **patchMutatingAdmissionPolicy** +> V1MutatingAdmissionPolicy patchMutatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified MutatingAdmissionPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the MutatingAdmissionPolicy + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1MutatingAdmissionPolicy result = apiInstance.patchMutatingAdmissionPolicy(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#patchMutatingAdmissionPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the MutatingAdmissionPolicy | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1MutatingAdmissionPolicy**](V1MutatingAdmissionPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchMutatingAdmissionPolicyBinding** +> V1MutatingAdmissionPolicyBinding patchMutatingAdmissionPolicyBinding(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified MutatingAdmissionPolicyBinding + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the MutatingAdmissionPolicyBinding + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1MutatingAdmissionPolicyBinding result = apiInstance.patchMutatingAdmissionPolicyBinding(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#patchMutatingAdmissionPolicyBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the MutatingAdmissionPolicyBinding | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1MutatingAdmissionPolicyBinding**](V1MutatingAdmissionPolicyBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchMutatingWebhookConfiguration** +> V1MutatingWebhookConfiguration patchMutatingWebhookConfiguration(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified MutatingWebhookConfiguration + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the MutatingWebhookConfiguration + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1MutatingWebhookConfiguration result = apiInstance.patchMutatingWebhookConfiguration(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#patchMutatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the MutatingWebhookConfiguration | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1MutatingWebhookConfiguration**](V1MutatingWebhookConfiguration.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchValidatingAdmissionPolicy** +> V1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified ValidatingAdmissionPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the ValidatingAdmissionPolicy + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ValidatingAdmissionPolicy result = apiInstance.patchValidatingAdmissionPolicy(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#patchValidatingAdmissionPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ValidatingAdmissionPolicy | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1ValidatingAdmissionPolicy**](V1ValidatingAdmissionPolicy.md) ### Authorization @@ -1672,22 +2865,23 @@ public class Example { ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **patchMutatingWebhookConfiguration** -> V1MutatingWebhookConfiguration patchMutatingWebhookConfiguration(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchValidatingAdmissionPolicyBinding** +> V1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBinding(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified MutatingWebhookConfiguration +partially update the specified ValidatingAdmissionPolicyBinding ### Example ```java @@ -1711,7 +2905,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String name = "name_example"; // String | name of the MutatingWebhookConfiguration + String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding V1Patch body = new V1Patch(); // V1Patch | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1719,7 +2913,7 @@ public class Example { String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1MutatingWebhookConfiguration result = apiInstance.patchMutatingWebhookConfiguration(name, body) + V1ValidatingAdmissionPolicyBinding result = apiInstance.patchValidatingAdmissionPolicyBinding(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1728,7 +2922,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#patchMutatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#patchValidatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1742,7 +2936,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the MutatingWebhookConfiguration | | +| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | | **body** | **V1Patch**| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | @@ -1752,7 +2946,7 @@ public class Example { ### Return type -[**V1MutatingWebhookConfiguration**](V1MutatingWebhookConfiguration.md) +[**V1ValidatingAdmissionPolicyBinding**](V1ValidatingAdmissionPolicyBinding.md) ### Authorization @@ -1770,13 +2964,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicy** -> V1ValidatingAdmissionPolicy patchValidatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchValidatingAdmissionPolicyStatus** +> V1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified ValidatingAdmissionPolicy +partially update status of the specified ValidatingAdmissionPolicy ### Example ```java @@ -1808,7 +3002,7 @@ public class Example { String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1ValidatingAdmissionPolicy result = apiInstance.patchValidatingAdmissionPolicy(name, body) + V1ValidatingAdmissionPolicy result = apiInstance.patchValidatingAdmissionPolicyStatus(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1817,7 +3011,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#patchValidatingAdmissionPolicy"); + System.err.println("Exception when calling AdmissionregistrationV1Api#patchValidatingAdmissionPolicyStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1859,13 +3053,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicyBinding** -> V1ValidatingAdmissionPolicyBinding patchValidatingAdmissionPolicyBinding(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchValidatingWebhookConfiguration** +> V1ValidatingWebhookConfiguration patchValidatingWebhookConfiguration(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified ValidatingAdmissionPolicyBinding +partially update the specified ValidatingWebhookConfiguration ### Example ```java @@ -1889,7 +3083,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicyBinding + String name = "name_example"; // String | name of the ValidatingWebhookConfiguration V1Patch body = new V1Patch(); // V1Patch | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -1897,7 +3091,7 @@ public class Example { String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1ValidatingAdmissionPolicyBinding result = apiInstance.patchValidatingAdmissionPolicyBinding(name, body) + V1ValidatingWebhookConfiguration result = apiInstance.patchValidatingWebhookConfiguration(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -1906,7 +3100,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#patchValidatingAdmissionPolicyBinding"); + System.err.println("Exception when calling AdmissionregistrationV1Api#patchValidatingWebhookConfiguration"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1920,7 +3114,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicyBinding | | +| **name** | **String**| name of the ValidatingWebhookConfiguration | | | **body** | **V1Patch**| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | @@ -1930,7 +3124,7 @@ public class Example { ### Return type -[**V1ValidatingAdmissionPolicyBinding**](V1ValidatingAdmissionPolicyBinding.md) +[**V1ValidatingWebhookConfiguration**](V1ValidatingWebhookConfiguration.md) ### Authorization @@ -1948,13 +3142,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchValidatingAdmissionPolicyStatus** -> V1ValidatingAdmissionPolicy patchValidatingAdmissionPolicyStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readMutatingAdmissionPolicy** +> V1MutatingAdmissionPolicy readMutatingAdmissionPolicy(name).pretty(pretty).execute(); -partially update status of the specified ValidatingAdmissionPolicy +read the specified MutatingAdmissionPolicy ### Example ```java @@ -1978,24 +3172,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingAdmissionPolicy - V1Patch body = new V1Patch(); // V1Patch | + String name = "name_example"; // String | name of the MutatingAdmissionPolicy String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1ValidatingAdmissionPolicy result = apiInstance.patchValidatingAdmissionPolicyStatus(name, body) + V1MutatingAdmissionPolicy result = apiInstance.readMutatingAdmissionPolicy(name) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#patchValidatingAdmissionPolicyStatus"); + System.err.println("Exception when calling AdmissionregistrationV1Api#readMutatingAdmissionPolicy"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2009,17 +3194,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingAdmissionPolicy | | -| **body** | **V1Patch**| | | +| **name** | **String**| name of the MutatingAdmissionPolicy | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type -[**V1ValidatingAdmissionPolicy**](V1ValidatingAdmissionPolicy.md) +[**V1MutatingAdmissionPolicy**](V1MutatingAdmissionPolicy.md) ### Authorization @@ -2027,23 +3207,22 @@ public class Example { ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **201** | Created | - | | **401** | Unauthorized | - | - -# **patchValidatingWebhookConfiguration** -> V1ValidatingWebhookConfiguration patchValidatingWebhookConfiguration(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readMutatingAdmissionPolicyBinding** +> V1MutatingAdmissionPolicyBinding readMutatingAdmissionPolicyBinding(name).pretty(pretty).execute(); -partially update the specified ValidatingWebhookConfiguration +read the specified MutatingAdmissionPolicyBinding ### Example ```java @@ -2067,24 +3246,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); - String name = "name_example"; // String | name of the ValidatingWebhookConfiguration - V1Patch body = new V1Patch(); // V1Patch | + String name = "name_example"; // String | name of the MutatingAdmissionPolicyBinding String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1ValidatingWebhookConfiguration result = apiInstance.patchValidatingWebhookConfiguration(name, body) + V1MutatingAdmissionPolicyBinding result = apiInstance.readMutatingAdmissionPolicyBinding(name) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1Api#patchValidatingWebhookConfiguration"); + System.err.println("Exception when calling AdmissionregistrationV1Api#readMutatingAdmissionPolicyBinding"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2098,17 +3268,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ValidatingWebhookConfiguration | | -| **body** | **V1Patch**| | | +| **name** | **String**| name of the MutatingAdmissionPolicyBinding | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type -[**V1ValidatingWebhookConfiguration**](V1ValidatingWebhookConfiguration.md) +[**V1MutatingAdmissionPolicyBinding**](V1MutatingAdmissionPolicyBinding.md) ### Authorization @@ -2116,14 +3281,13 @@ public class Example { ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **201** | Created | - | | **401** | Unauthorized | - | @@ -2496,6 +3660,178 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | + +# **replaceMutatingAdmissionPolicy** +> V1MutatingAdmissionPolicy replaceMutatingAdmissionPolicy(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified MutatingAdmissionPolicy + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the MutatingAdmissionPolicy + V1MutatingAdmissionPolicy body = new V1MutatingAdmissionPolicy(); // V1MutatingAdmissionPolicy | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1MutatingAdmissionPolicy result = apiInstance.replaceMutatingAdmissionPolicy(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#replaceMutatingAdmissionPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the MutatingAdmissionPolicy | | +| **body** | [**V1MutatingAdmissionPolicy**](V1MutatingAdmissionPolicy.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1MutatingAdmissionPolicy**](V1MutatingAdmissionPolicy.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **replaceMutatingAdmissionPolicyBinding** +> V1MutatingAdmissionPolicyBinding replaceMutatingAdmissionPolicyBinding(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified MutatingAdmissionPolicyBinding + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.AdmissionregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1Api apiInstance = new AdmissionregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the MutatingAdmissionPolicyBinding + V1MutatingAdmissionPolicyBinding body = new V1MutatingAdmissionPolicyBinding(); // V1MutatingAdmissionPolicyBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1MutatingAdmissionPolicyBinding result = apiInstance.replaceMutatingAdmissionPolicyBinding(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1Api#replaceMutatingAdmissionPolicyBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the MutatingAdmissionPolicyBinding | | +| **body** | [**V1MutatingAdmissionPolicyBinding**](V1MutatingAdmissionPolicyBinding.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1MutatingAdmissionPolicyBinding**](V1MutatingAdmissionPolicyBinding.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + # **replaceMutatingWebhookConfiguration** > V1MutatingWebhookConfiguration replaceMutatingWebhookConfiguration(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); diff --git a/kubernetes/docs/AdmissionregistrationV1ServiceReference.md b/kubernetes/docs/AdmissionregistrationV1ServiceReference.md index 3e28304b08..4eac61b223 100644 --- a/kubernetes/docs/AdmissionregistrationV1ServiceReference.md +++ b/kubernetes/docs/AdmissionregistrationV1ServiceReference.md @@ -8,10 +8,10 @@ ServiceReference holds a reference to Service.legacy.k8s.io | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**name** | **String** | `name` is the name of the service. Required | | -|**namespace** | **String** | `namespace` is the namespace of the service. Required | | -|**path** | **String** | `path` is an optional URL path which will be sent in any request to this service. | [optional] | -|**port** | **Integer** | If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] | +|**name** | **String** | name is the name of the service. Required | | +|**namespace** | **String** | namespace is the namespace of the service. Required | | +|**path** | **String** | path is an optional URL path which will be sent in any request to this service. | [optional] | +|**port** | **Integer** | port is the port on the service that hosts the webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] | diff --git a/kubernetes/docs/AdmissionregistrationV1WebhookClientConfig.md b/kubernetes/docs/AdmissionregistrationV1WebhookClientConfig.md index 7adc391d30..0de747d1d2 100644 --- a/kubernetes/docs/AdmissionregistrationV1WebhookClientConfig.md +++ b/kubernetes/docs/AdmissionregistrationV1WebhookClientConfig.md @@ -8,9 +8,9 @@ WebhookClientConfig contains the information to make a TLS connection with the w | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**caBundle** | **byte[]** | `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. | [optional] | +|**caBundle** | **byte[]** | caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. | [optional] | |**service** | [**AdmissionregistrationV1ServiceReference**](AdmissionregistrationV1ServiceReference.md) | | [optional] | -|**url** | **String** | `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. | [optional] | +|**url** | **String** | url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. | [optional] | diff --git a/kubernetes/docs/AdmissionregistrationV1alpha1Api.md b/kubernetes/docs/AdmissionregistrationV1alpha1Api.md index a0bfd9740d..2456342ae5 100644 --- a/kubernetes/docs/AdmissionregistrationV1alpha1Api.md +++ b/kubernetes/docs/AdmissionregistrationV1alpha1Api.md @@ -193,7 +193,7 @@ public class Example { # **deleteCollectionMutatingAdmissionPolicy** -> V1Status deleteCollectionMutatingAdmissionPolicy().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionMutatingAdmissionPolicy().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -234,6 +234,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -251,6 +252,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -283,6 +285,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -307,7 +310,7 @@ public class Example { # **deleteCollectionMutatingAdmissionPolicyBinding** -> V1Status deleteCollectionMutatingAdmissionPolicyBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionMutatingAdmissionPolicyBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -348,6 +351,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -365,6 +369,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -397,6 +402,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -674,7 +680,7 @@ This endpoint does not need any parameter. # **listMutatingAdmissionPolicy** -> V1alpha1MutatingAdmissionPolicyList listMutatingAdmissionPolicy().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1alpha1MutatingAdmissionPolicyList listMutatingAdmissionPolicy().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -711,6 +717,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -724,6 +731,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -752,6 +760,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -776,7 +785,7 @@ public class Example { # **listMutatingAdmissionPolicyBinding** -> V1alpha1MutatingAdmissionPolicyBindingList listMutatingAdmissionPolicyBinding().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1alpha1MutatingAdmissionPolicyBindingList listMutatingAdmissionPolicyBinding().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -813,6 +822,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -826,6 +836,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -854,6 +865,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/AdmissionregistrationV1beta1Api.md b/kubernetes/docs/AdmissionregistrationV1beta1Api.md index 1137db74cd..74bb19dfb6 100644 --- a/kubernetes/docs/AdmissionregistrationV1beta1Api.md +++ b/kubernetes/docs/AdmissionregistrationV1beta1Api.md @@ -193,7 +193,7 @@ public class Example { # **deleteCollectionMutatingAdmissionPolicy** -> V1Status deleteCollectionMutatingAdmissionPolicy().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionMutatingAdmissionPolicy().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -234,6 +234,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -251,6 +252,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -283,6 +285,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -307,7 +310,7 @@ public class Example { # **deleteCollectionMutatingAdmissionPolicyBinding** -> V1Status deleteCollectionMutatingAdmissionPolicyBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionMutatingAdmissionPolicyBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -348,6 +351,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -365,6 +369,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -397,6 +402,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -674,7 +680,7 @@ This endpoint does not need any parameter. # **listMutatingAdmissionPolicy** -> V1beta1MutatingAdmissionPolicyList listMutatingAdmissionPolicy().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1MutatingAdmissionPolicyList listMutatingAdmissionPolicy().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -711,6 +717,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -724,6 +731,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -752,6 +760,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -776,7 +785,7 @@ public class Example { # **listMutatingAdmissionPolicyBinding** -> V1beta1MutatingAdmissionPolicyBindingList listMutatingAdmissionPolicyBinding().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1MutatingAdmissionPolicyBindingList listMutatingAdmissionPolicyBinding().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -813,6 +822,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -826,6 +836,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -854,6 +865,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/ApiextensionsV1Api.md b/kubernetes/docs/ApiextensionsV1Api.md index bf92f74c0f..9467b86126 100644 --- a/kubernetes/docs/ApiextensionsV1Api.md +++ b/kubernetes/docs/ApiextensionsV1Api.md @@ -104,7 +104,7 @@ public class Example { # **deleteCollectionCustomResourceDefinition** -> V1Status deleteCollectionCustomResourceDefinition().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionCustomResourceDefinition().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -145,6 +145,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -162,6 +163,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -194,6 +196,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -378,7 +381,7 @@ This endpoint does not need any parameter. # **listCustomResourceDefinition** -> V1CustomResourceDefinitionList listCustomResourceDefinition().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1CustomResourceDefinitionList listCustomResourceDefinition().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -415,6 +418,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -428,6 +432,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -456,6 +461,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/ApiregistrationV1Api.md b/kubernetes/docs/ApiregistrationV1Api.md index 1e23b4b827..5850a295b1 100644 --- a/kubernetes/docs/ApiregistrationV1Api.md +++ b/kubernetes/docs/ApiregistrationV1Api.md @@ -197,7 +197,7 @@ public class Example { # **deleteCollectionAPIService** -> V1Status deleteCollectionAPIService().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionAPIService().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -238,6 +238,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -255,6 +256,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -287,6 +289,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -378,7 +381,7 @@ This endpoint does not need any parameter. # **listAPIService** -> V1APIServiceList listAPIService().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1APIServiceList listAPIService().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -415,6 +418,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -428,6 +432,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -456,6 +461,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/AppsV1Api.md b/kubernetes/docs/AppsV1Api.md index 3b62731750..2d88de51a8 100644 --- a/kubernetes/docs/AppsV1Api.md +++ b/kubernetes/docs/AppsV1Api.md @@ -505,7 +505,7 @@ public class Example { # **deleteCollectionNamespacedControllerRevision** -> V1Status deleteCollectionNamespacedControllerRevision(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedControllerRevision(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -547,6 +547,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -564,6 +565,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -597,6 +599,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -621,7 +624,7 @@ public class Example { # **deleteCollectionNamespacedDaemonSet** -> V1Status deleteCollectionNamespacedDaemonSet(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedDaemonSet(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -663,6 +666,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -680,6 +684,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -713,6 +718,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -737,7 +743,7 @@ public class Example { # **deleteCollectionNamespacedDeployment** -> V1Status deleteCollectionNamespacedDeployment(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedDeployment(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -779,6 +785,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -796,6 +803,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -829,6 +837,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -853,7 +862,7 @@ public class Example { # **deleteCollectionNamespacedReplicaSet** -> V1Status deleteCollectionNamespacedReplicaSet(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedReplicaSet(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -895,6 +904,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -912,6 +922,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -945,6 +956,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -969,7 +981,7 @@ public class Example { # **deleteCollectionNamespacedStatefulSet** -> V1Status deleteCollectionNamespacedStatefulSet(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedStatefulSet(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -1011,6 +1023,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -1028,6 +1041,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -1061,6 +1075,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -1627,7 +1642,7 @@ This endpoint does not need any parameter. # **listControllerRevisionForAllNamespaces** -> V1ControllerRevisionList listControllerRevisionForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ControllerRevisionList listControllerRevisionForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1664,6 +1679,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1677,6 +1693,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1705,6 +1722,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1729,7 +1747,7 @@ public class Example { # **listDaemonSetForAllNamespaces** -> V1DaemonSetList listDaemonSetForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1DaemonSetList listDaemonSetForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1766,6 +1784,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1779,6 +1798,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1807,6 +1827,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1831,7 +1852,7 @@ public class Example { # **listDeploymentForAllNamespaces** -> V1DeploymentList listDeploymentForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1DeploymentList listDeploymentForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1868,6 +1889,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1881,6 +1903,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1909,6 +1932,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1933,7 +1957,7 @@ public class Example { # **listNamespacedControllerRevision** -> V1ControllerRevisionList listNamespacedControllerRevision(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ControllerRevisionList listNamespacedControllerRevision(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1971,6 +1995,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1984,6 +2009,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2013,6 +2039,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -2037,7 +2064,7 @@ public class Example { # **listNamespacedDaemonSet** -> V1DaemonSetList listNamespacedDaemonSet(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1DaemonSetList listNamespacedDaemonSet(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2075,6 +2102,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -2088,6 +2116,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2117,6 +2146,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -2141,7 +2171,7 @@ public class Example { # **listNamespacedDeployment** -> V1DeploymentList listNamespacedDeployment(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1DeploymentList listNamespacedDeployment(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2179,6 +2209,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -2192,6 +2223,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2221,6 +2253,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -2245,7 +2278,7 @@ public class Example { # **listNamespacedReplicaSet** -> V1ReplicaSetList listNamespacedReplicaSet(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ReplicaSetList listNamespacedReplicaSet(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2283,6 +2316,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -2296,6 +2330,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2325,6 +2360,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -2349,7 +2385,7 @@ public class Example { # **listNamespacedStatefulSet** -> V1StatefulSetList listNamespacedStatefulSet(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1StatefulSetList listNamespacedStatefulSet(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2387,6 +2423,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -2400,6 +2437,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2429,6 +2467,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -2453,7 +2492,7 @@ public class Example { # **listReplicaSetForAllNamespaces** -> V1ReplicaSetList listReplicaSetForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ReplicaSetList listReplicaSetForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2490,6 +2529,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -2503,6 +2543,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2531,6 +2572,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -2555,7 +2597,7 @@ public class Example { # **listStatefulSetForAllNamespaces** -> V1StatefulSetList listStatefulSetForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1StatefulSetList listStatefulSetForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2592,6 +2634,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -2605,6 +2648,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2633,6 +2677,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/AuthenticationV1TokenRequest.md b/kubernetes/docs/AuthenticationV1TokenRequest.md index 61cd028076..6083f7968e 100644 --- a/kubernetes/docs/AuthenticationV1TokenRequest.md +++ b/kubernetes/docs/AuthenticationV1TokenRequest.md @@ -11,7 +11,7 @@ TokenRequest requests a token for a given service account. |**apiVersion** | **String** | 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 | [optional] | |**kind** | **String** | 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 | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**spec** | [**V1TokenRequestSpec**](V1TokenRequestSpec.md) | | | +|**spec** | [**V1TokenRequestSpec**](V1TokenRequestSpec.md) | | [optional] | |**status** | [**V1TokenRequestStatus**](V1TokenRequestStatus.md) | | [optional] | diff --git a/kubernetes/docs/AutoscalingV1Api.md b/kubernetes/docs/AutoscalingV1Api.md index 0b5d8a0aba..b1b4f4b749 100644 --- a/kubernetes/docs/AutoscalingV1Api.md +++ b/kubernetes/docs/AutoscalingV1Api.md @@ -107,7 +107,7 @@ public class Example { # **deleteCollectionNamespacedHorizontalPodAutoscaler** -> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -149,6 +149,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -166,6 +167,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -199,6 +201,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -385,7 +388,7 @@ This endpoint does not need any parameter. # **listHorizontalPodAutoscalerForAllNamespaces** -> V1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -422,6 +425,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -435,6 +439,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -463,6 +468,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -487,7 +493,7 @@ public class Example { # **listNamespacedHorizontalPodAutoscaler** -> V1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -525,6 +531,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -538,6 +545,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -567,6 +575,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/AutoscalingV2Api.md b/kubernetes/docs/AutoscalingV2Api.md index fa0bc7f62a..47f1da5aaa 100644 --- a/kubernetes/docs/AutoscalingV2Api.md +++ b/kubernetes/docs/AutoscalingV2Api.md @@ -107,7 +107,7 @@ public class Example { # **deleteCollectionNamespacedHorizontalPodAutoscaler** -> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -149,6 +149,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -166,6 +167,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -199,6 +201,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -385,7 +388,7 @@ This endpoint does not need any parameter. # **listHorizontalPodAutoscalerForAllNamespaces** -> V2HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V2HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -422,6 +425,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -435,6 +439,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -463,6 +468,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -487,7 +493,7 @@ public class Example { # **listNamespacedHorizontalPodAutoscaler** -> V2HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V2HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -525,6 +531,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -538,6 +545,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -567,6 +575,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/BatchV1Api.md b/kubernetes/docs/BatchV1Api.md index 4f3511fd76..87d0bcf5cf 100644 --- a/kubernetes/docs/BatchV1Api.md +++ b/kubernetes/docs/BatchV1Api.md @@ -205,7 +205,7 @@ public class Example { # **deleteCollectionNamespacedCronJob** -> V1Status deleteCollectionNamespacedCronJob(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedCronJob(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -247,6 +247,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -264,6 +265,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -297,6 +299,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -321,7 +324,7 @@ public class Example { # **deleteCollectionNamespacedJob** -> V1Status deleteCollectionNamespacedJob(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedJob(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -363,6 +366,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -380,6 +384,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -413,6 +418,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -694,7 +700,7 @@ This endpoint does not need any parameter. # **listCronJobForAllNamespaces** -> V1CronJobList listCronJobForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1CronJobList listCronJobForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -731,6 +737,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -744,6 +751,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -772,6 +780,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -796,7 +805,7 @@ public class Example { # **listJobForAllNamespaces** -> V1JobList listJobForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1JobList listJobForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -833,6 +842,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -846,6 +856,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -874,6 +885,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -898,7 +910,7 @@ public class Example { # **listNamespacedCronJob** -> V1CronJobList listNamespacedCronJob(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1CronJobList listNamespacedCronJob(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -936,6 +948,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -949,6 +962,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -978,6 +992,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1002,7 +1017,7 @@ public class Example { # **listNamespacedJob** -> V1JobList listNamespacedJob(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1JobList listNamespacedJob(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1040,6 +1055,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1053,6 +1069,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1082,6 +1099,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/CertificatesV1Api.md b/kubernetes/docs/CertificatesV1Api.md index 937e5ff103..d2858c4402 100644 --- a/kubernetes/docs/CertificatesV1Api.md +++ b/kubernetes/docs/CertificatesV1Api.md @@ -200,7 +200,7 @@ public class Example { # **deleteCollectionCertificateSigningRequest** -> V1Status deleteCollectionCertificateSigningRequest().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionCertificateSigningRequest().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -241,6 +241,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -258,6 +259,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -290,6 +292,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -381,7 +384,7 @@ This endpoint does not need any parameter. # **listCertificateSigningRequest** -> V1CertificateSigningRequestList listCertificateSigningRequest().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1CertificateSigningRequestList listCertificateSigningRequest().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -418,6 +421,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -431,6 +435,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -459,6 +464,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/CertificatesV1alpha1Api.md b/kubernetes/docs/CertificatesV1alpha1Api.md index 8c9b1dd003..61aa4e1af3 100644 --- a/kubernetes/docs/CertificatesV1alpha1Api.md +++ b/kubernetes/docs/CertificatesV1alpha1Api.md @@ -194,7 +194,7 @@ public class Example { # **deleteCollectionClusterTrustBundle** -> V1Status deleteCollectionClusterTrustBundle().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionClusterTrustBundle().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -235,6 +235,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -252,6 +253,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -284,6 +286,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -375,7 +378,7 @@ This endpoint does not need any parameter. # **listClusterTrustBundle** -> V1alpha1ClusterTrustBundleList listClusterTrustBundle().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1alpha1ClusterTrustBundleList listClusterTrustBundle().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -412,6 +415,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -425,6 +429,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -453,6 +458,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/CertificatesV1beta1Api.md b/kubernetes/docs/CertificatesV1beta1Api.md index ecb0c2d6b6..2a40c563cf 100644 --- a/kubernetes/docs/CertificatesV1beta1Api.md +++ b/kubernetes/docs/CertificatesV1beta1Api.md @@ -292,7 +292,7 @@ public class Example { # **deleteCollectionClusterTrustBundle** -> V1Status deleteCollectionClusterTrustBundle().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionClusterTrustBundle().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -333,6 +333,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -350,6 +351,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -382,6 +384,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -406,7 +409,7 @@ public class Example { # **deleteCollectionNamespacedPodCertificateRequest** -> V1Status deleteCollectionNamespacedPodCertificateRequest(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedPodCertificateRequest(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -448,6 +451,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -465,6 +469,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -498,6 +503,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -684,7 +690,7 @@ This endpoint does not need any parameter. # **listClusterTrustBundle** -> V1beta1ClusterTrustBundleList listClusterTrustBundle().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1ClusterTrustBundleList listClusterTrustBundle().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -721,6 +727,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -734,6 +741,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -762,6 +770,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -786,7 +795,7 @@ public class Example { # **listNamespacedPodCertificateRequest** -> V1beta1PodCertificateRequestList listNamespacedPodCertificateRequest(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1PodCertificateRequestList listNamespacedPodCertificateRequest(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -824,6 +833,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -837,6 +847,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -866,6 +877,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -890,7 +902,7 @@ public class Example { # **listPodCertificateRequestForAllNamespaces** -> V1beta1PodCertificateRequestList listPodCertificateRequestForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1PodCertificateRequestList listPodCertificateRequestForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -927,6 +939,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -940,6 +953,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -968,6 +982,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/CoordinationV1Api.md b/kubernetes/docs/CoordinationV1Api.md index dab86ca3f8..83a606a234 100644 --- a/kubernetes/docs/CoordinationV1Api.md +++ b/kubernetes/docs/CoordinationV1Api.md @@ -104,7 +104,7 @@ public class Example { # **deleteCollectionNamespacedLease** -> V1Status deleteCollectionNamespacedLease(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedLease(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -146,6 +146,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -163,6 +164,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -196,6 +198,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -382,7 +385,7 @@ This endpoint does not need any parameter. # **listLeaseForAllNamespaces** -> V1LeaseList listLeaseForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1LeaseList listLeaseForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -419,6 +422,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -432,6 +436,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -460,6 +465,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -484,7 +490,7 @@ public class Example { # **listNamespacedLease** -> V1LeaseList listNamespacedLease(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1LeaseList listNamespacedLease(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -522,6 +528,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -535,6 +542,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -564,6 +572,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/CoordinationV1alpha2Api.md b/kubernetes/docs/CoordinationV1alpha2Api.md index 679d1a4c5c..8b3057541d 100644 --- a/kubernetes/docs/CoordinationV1alpha2Api.md +++ b/kubernetes/docs/CoordinationV1alpha2Api.md @@ -104,7 +104,7 @@ public class Example { # **deleteCollectionNamespacedLeaseCandidate** -> V1Status deleteCollectionNamespacedLeaseCandidate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedLeaseCandidate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -146,6 +146,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -163,6 +164,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -196,6 +198,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -382,7 +385,7 @@ This endpoint does not need any parameter. # **listLeaseCandidateForAllNamespaces** -> V1alpha2LeaseCandidateList listLeaseCandidateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1alpha2LeaseCandidateList listLeaseCandidateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -419,6 +422,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -432,6 +436,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -460,6 +465,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -484,7 +490,7 @@ public class Example { # **listNamespacedLeaseCandidate** -> V1alpha2LeaseCandidateList listNamespacedLeaseCandidate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1alpha2LeaseCandidateList listNamespacedLeaseCandidate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -522,6 +528,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -535,6 +542,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -564,6 +572,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/CoordinationV1beta1Api.md b/kubernetes/docs/CoordinationV1beta1Api.md index d883a0ffaa..adc404026a 100644 --- a/kubernetes/docs/CoordinationV1beta1Api.md +++ b/kubernetes/docs/CoordinationV1beta1Api.md @@ -104,7 +104,7 @@ public class Example { # **deleteCollectionNamespacedLeaseCandidate** -> V1Status deleteCollectionNamespacedLeaseCandidate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedLeaseCandidate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -146,6 +146,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -163,6 +164,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -196,6 +198,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -382,7 +385,7 @@ This endpoint does not need any parameter. # **listLeaseCandidateForAllNamespaces** -> V1beta1LeaseCandidateList listLeaseCandidateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1LeaseCandidateList listLeaseCandidateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -419,6 +422,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -432,6 +436,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -460,6 +465,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -484,7 +490,7 @@ public class Example { # **listNamespacedLeaseCandidate** -> V1beta1LeaseCandidateList listNamespacedLeaseCandidate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1LeaseCandidateList listNamespacedLeaseCandidate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -522,6 +528,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -535,6 +542,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -564,6 +572,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/CoreV1Api.md b/kubernetes/docs/CoreV1Api.md index f6462f77a9..eeee954e85 100644 --- a/kubernetes/docs/CoreV1Api.md +++ b/kubernetes/docs/CoreV1Api.md @@ -5583,7 +5583,7 @@ public class Example { # **deleteCollectionNamespacedConfigMap** -> V1Status deleteCollectionNamespacedConfigMap(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedConfigMap(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -5625,6 +5625,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -5642,6 +5643,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -5675,6 +5677,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -5699,7 +5702,7 @@ public class Example { # **deleteCollectionNamespacedEndpoints** -> V1Status deleteCollectionNamespacedEndpoints(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedEndpoints(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -5741,6 +5744,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -5758,6 +5762,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -5791,6 +5796,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -5815,7 +5821,7 @@ public class Example { # **deleteCollectionNamespacedEvent** -> V1Status deleteCollectionNamespacedEvent(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedEvent(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -5857,6 +5863,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -5874,6 +5881,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -5907,6 +5915,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -5931,7 +5940,7 @@ public class Example { # **deleteCollectionNamespacedLimitRange** -> V1Status deleteCollectionNamespacedLimitRange(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedLimitRange(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -5973,6 +5982,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -5990,6 +6000,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -6023,6 +6034,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -6047,7 +6059,7 @@ public class Example { # **deleteCollectionNamespacedPersistentVolumeClaim** -> V1Status deleteCollectionNamespacedPersistentVolumeClaim(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedPersistentVolumeClaim(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6089,6 +6101,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -6106,6 +6119,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -6139,6 +6153,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -6163,7 +6178,7 @@ public class Example { # **deleteCollectionNamespacedPod** -> V1Status deleteCollectionNamespacedPod(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedPod(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6205,6 +6220,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -6222,6 +6238,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -6255,6 +6272,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -6279,7 +6297,7 @@ public class Example { # **deleteCollectionNamespacedPodTemplate** -> V1Status deleteCollectionNamespacedPodTemplate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedPodTemplate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6321,6 +6339,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -6338,6 +6357,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -6371,6 +6391,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -6395,7 +6416,7 @@ public class Example { # **deleteCollectionNamespacedReplicationController** -> V1Status deleteCollectionNamespacedReplicationController(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedReplicationController(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6437,6 +6458,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -6454,6 +6476,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -6487,6 +6510,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -6511,7 +6535,7 @@ public class Example { # **deleteCollectionNamespacedResourceQuota** -> V1Status deleteCollectionNamespacedResourceQuota(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedResourceQuota(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6553,6 +6577,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -6570,6 +6595,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -6603,6 +6629,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -6627,7 +6654,7 @@ public class Example { # **deleteCollectionNamespacedSecret** -> V1Status deleteCollectionNamespacedSecret(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedSecret(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6669,6 +6696,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -6686,6 +6714,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -6719,6 +6748,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -6743,7 +6773,7 @@ public class Example { # **deleteCollectionNamespacedService** -> V1Status deleteCollectionNamespacedService(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedService(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6785,6 +6815,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -6802,6 +6833,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -6835,6 +6867,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -6859,7 +6892,7 @@ public class Example { # **deleteCollectionNamespacedServiceAccount** -> V1Status deleteCollectionNamespacedServiceAccount(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedServiceAccount(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -6901,6 +6934,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -6918,6 +6952,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -6951,6 +6986,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -6975,7 +7011,7 @@ public class Example { # **deleteCollectionNode** -> V1Status deleteCollectionNode().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNode().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -7016,6 +7052,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -7033,6 +7070,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -7065,6 +7103,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -7089,7 +7128,7 @@ public class Example { # **deleteCollectionPersistentVolume** -> V1Status deleteCollectionPersistentVolume().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionPersistentVolume().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -7130,6 +7169,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -7147,6 +7187,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -7179,6 +7220,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -8689,7 +8731,7 @@ This endpoint does not need any parameter. # **listComponentStatus** -> V1ComponentStatusList listComponentStatus().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ComponentStatusList listComponentStatus().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -8726,6 +8768,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -8739,6 +8782,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -8767,6 +8811,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -8791,7 +8836,7 @@ public class Example { # **listConfigMapForAllNamespaces** -> V1ConfigMapList listConfigMapForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ConfigMapList listConfigMapForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -8828,6 +8873,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -8841,6 +8887,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -8869,6 +8916,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -8893,7 +8941,7 @@ public class Example { # **listEndpointsForAllNamespaces** -> V1EndpointsList listEndpointsForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1EndpointsList listEndpointsForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -8930,6 +8978,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -8943,6 +8992,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -8971,6 +9021,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -8995,7 +9046,7 @@ public class Example { # **listEventForAllNamespaces** -> CoreV1EventList listEventForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> CoreV1EventList listEventForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -9032,6 +9083,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -9045,6 +9097,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -9073,6 +9126,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -9097,7 +9151,7 @@ public class Example { # **listLimitRangeForAllNamespaces** -> V1LimitRangeList listLimitRangeForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1LimitRangeList listLimitRangeForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -9134,6 +9188,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -9147,6 +9202,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -9175,6 +9231,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -9199,7 +9256,7 @@ public class Example { # **listNamespace** -> V1NamespaceList listNamespace().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1NamespaceList listNamespace().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -9236,6 +9293,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -9249,6 +9307,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -9277,6 +9336,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -9301,7 +9361,7 @@ public class Example { # **listNamespacedConfigMap** -> V1ConfigMapList listNamespacedConfigMap(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ConfigMapList listNamespacedConfigMap(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -9339,6 +9399,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -9352,6 +9413,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -9381,6 +9443,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -9405,7 +9468,7 @@ public class Example { # **listNamespacedEndpoints** -> V1EndpointsList listNamespacedEndpoints(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1EndpointsList listNamespacedEndpoints(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -9443,6 +9506,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -9456,6 +9520,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -9485,6 +9550,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -9509,7 +9575,7 @@ public class Example { # **listNamespacedEvent** -> CoreV1EventList listNamespacedEvent(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> CoreV1EventList listNamespacedEvent(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -9547,6 +9613,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -9560,6 +9627,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -9589,6 +9657,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -9613,7 +9682,7 @@ public class Example { # **listNamespacedLimitRange** -> V1LimitRangeList listNamespacedLimitRange(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1LimitRangeList listNamespacedLimitRange(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -9651,6 +9720,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -9664,6 +9734,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -9693,6 +9764,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -9717,7 +9789,7 @@ public class Example { # **listNamespacedPersistentVolumeClaim** -> V1PersistentVolumeClaimList listNamespacedPersistentVolumeClaim(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1PersistentVolumeClaimList listNamespacedPersistentVolumeClaim(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -9755,6 +9827,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -9768,6 +9841,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -9797,6 +9871,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -9821,7 +9896,7 @@ public class Example { # **listNamespacedPod** -> V1PodList listNamespacedPod(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1PodList listNamespacedPod(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -9859,6 +9934,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -9872,6 +9948,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -9901,6 +9978,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -9925,7 +10003,7 @@ public class Example { # **listNamespacedPodTemplate** -> V1PodTemplateList listNamespacedPodTemplate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1PodTemplateList listNamespacedPodTemplate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -9963,6 +10041,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -9976,6 +10055,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -10005,6 +10085,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -10029,7 +10110,7 @@ public class Example { # **listNamespacedReplicationController** -> V1ReplicationControllerList listNamespacedReplicationController(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ReplicationControllerList listNamespacedReplicationController(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -10067,6 +10148,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -10080,6 +10162,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -10109,6 +10192,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -10133,7 +10217,7 @@ public class Example { # **listNamespacedResourceQuota** -> V1ResourceQuotaList listNamespacedResourceQuota(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ResourceQuotaList listNamespacedResourceQuota(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -10171,6 +10255,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -10184,6 +10269,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -10213,6 +10299,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -10237,7 +10324,7 @@ public class Example { # **listNamespacedSecret** -> V1SecretList listNamespacedSecret(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1SecretList listNamespacedSecret(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -10275,6 +10362,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -10288,6 +10376,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -10317,6 +10406,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -10341,7 +10431,7 @@ public class Example { # **listNamespacedService** -> V1ServiceList listNamespacedService(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ServiceList listNamespacedService(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -10379,6 +10469,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -10392,6 +10483,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -10421,6 +10513,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -10445,7 +10538,7 @@ public class Example { # **listNamespacedServiceAccount** -> V1ServiceAccountList listNamespacedServiceAccount(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ServiceAccountList listNamespacedServiceAccount(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -10483,6 +10576,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -10496,6 +10590,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -10525,6 +10620,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -10549,7 +10645,7 @@ public class Example { # **listNode** -> V1NodeList listNode().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1NodeList listNode().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -10586,6 +10682,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -10599,6 +10696,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -10627,6 +10725,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -10651,7 +10750,7 @@ public class Example { # **listPersistentVolume** -> V1PersistentVolumeList listPersistentVolume().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1PersistentVolumeList listPersistentVolume().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -10688,6 +10787,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -10701,6 +10801,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -10729,6 +10830,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -10753,7 +10855,7 @@ public class Example { # **listPersistentVolumeClaimForAllNamespaces** -> V1PersistentVolumeClaimList listPersistentVolumeClaimForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1PersistentVolumeClaimList listPersistentVolumeClaimForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -10790,6 +10892,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -10803,6 +10906,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -10831,6 +10935,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -10855,7 +10960,7 @@ public class Example { # **listPodForAllNamespaces** -> V1PodList listPodForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1PodList listPodForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -10892,6 +10997,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -10905,6 +11011,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -10933,6 +11040,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -10957,7 +11065,7 @@ public class Example { # **listPodTemplateForAllNamespaces** -> V1PodTemplateList listPodTemplateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1PodTemplateList listPodTemplateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -10994,6 +11102,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -11007,6 +11116,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -11035,6 +11145,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -11059,7 +11170,7 @@ public class Example { # **listReplicationControllerForAllNamespaces** -> V1ReplicationControllerList listReplicationControllerForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ReplicationControllerList listReplicationControllerForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -11096,6 +11207,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -11109,6 +11221,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -11137,6 +11250,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -11161,7 +11275,7 @@ public class Example { # **listResourceQuotaForAllNamespaces** -> V1ResourceQuotaList listResourceQuotaForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ResourceQuotaList listResourceQuotaForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -11198,6 +11312,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -11211,6 +11326,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -11239,6 +11355,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -11263,7 +11380,7 @@ public class Example { # **listSecretForAllNamespaces** -> V1SecretList listSecretForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1SecretList listSecretForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -11300,6 +11417,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -11313,6 +11431,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -11341,6 +11460,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -11365,7 +11485,7 @@ public class Example { # **listServiceAccountForAllNamespaces** -> V1ServiceAccountList listServiceAccountForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ServiceAccountList listServiceAccountForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -11402,6 +11522,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -11415,6 +11536,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -11443,6 +11565,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -11467,7 +11590,7 @@ public class Example { # **listServiceForAllNamespaces** -> V1ServiceList listServiceForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ServiceList listServiceForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -11504,6 +11627,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -11517,6 +11641,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -11545,6 +11670,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/DiscoveryV1Api.md b/kubernetes/docs/DiscoveryV1Api.md index 7951c55b9f..f77a06b128 100644 --- a/kubernetes/docs/DiscoveryV1Api.md +++ b/kubernetes/docs/DiscoveryV1Api.md @@ -104,7 +104,7 @@ public class Example { # **deleteCollectionNamespacedEndpointSlice** -> V1Status deleteCollectionNamespacedEndpointSlice(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedEndpointSlice(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -146,6 +146,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -163,6 +164,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -196,6 +198,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -382,7 +385,7 @@ This endpoint does not need any parameter. # **listEndpointSliceForAllNamespaces** -> V1EndpointSliceList listEndpointSliceForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1EndpointSliceList listEndpointSliceForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -419,6 +422,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -432,6 +436,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -460,6 +465,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -484,7 +490,7 @@ public class Example { # **listNamespacedEndpointSlice** -> V1EndpointSliceList listNamespacedEndpointSlice(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1EndpointSliceList listNamespacedEndpointSlice(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -522,6 +528,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -535,6 +542,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -564,6 +572,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/EventsV1Api.md b/kubernetes/docs/EventsV1Api.md index fa983f2503..b40dd63af5 100644 --- a/kubernetes/docs/EventsV1Api.md +++ b/kubernetes/docs/EventsV1Api.md @@ -104,7 +104,7 @@ public class Example { # **deleteCollectionNamespacedEvent** -> V1Status deleteCollectionNamespacedEvent(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedEvent(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -146,6 +146,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -163,6 +164,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -196,6 +198,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -382,7 +385,7 @@ This endpoint does not need any parameter. # **listEventForAllNamespaces** -> EventsV1EventList listEventForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> EventsV1EventList listEventForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -419,6 +422,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -432,6 +436,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -460,6 +465,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -484,7 +490,7 @@ public class Example { # **listNamespacedEvent** -> EventsV1EventList listNamespacedEvent(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> EventsV1EventList listNamespacedEvent(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -522,6 +528,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -535,6 +542,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -564,6 +572,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/FlowcontrolApiserverV1Api.md b/kubernetes/docs/FlowcontrolApiserverV1Api.md index ad5d478f08..e7829e637d 100644 --- a/kubernetes/docs/FlowcontrolApiserverV1Api.md +++ b/kubernetes/docs/FlowcontrolApiserverV1Api.md @@ -199,7 +199,7 @@ public class Example { # **deleteCollectionFlowSchema** -> V1Status deleteCollectionFlowSchema().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionFlowSchema().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -240,6 +240,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -257,6 +258,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -289,6 +291,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -313,7 +316,7 @@ public class Example { # **deleteCollectionPriorityLevelConfiguration** -> V1Status deleteCollectionPriorityLevelConfiguration().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionPriorityLevelConfiguration().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -354,6 +357,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -371,6 +375,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -403,6 +408,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -680,7 +686,7 @@ This endpoint does not need any parameter. # **listFlowSchema** -> V1FlowSchemaList listFlowSchema().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1FlowSchemaList listFlowSchema().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -717,6 +723,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -730,6 +737,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -758,6 +766,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -782,7 +791,7 @@ public class Example { # **listPriorityLevelConfiguration** -> V1PriorityLevelConfigurationList listPriorityLevelConfiguration().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1PriorityLevelConfigurationList listPriorityLevelConfiguration().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -819,6 +828,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -832,6 +842,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -860,6 +871,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/InternalApiserverV1alpha1Api.md b/kubernetes/docs/InternalApiserverV1alpha1Api.md index 24e0e67eb7..3feb5bc7cd 100644 --- a/kubernetes/docs/InternalApiserverV1alpha1Api.md +++ b/kubernetes/docs/InternalApiserverV1alpha1Api.md @@ -104,7 +104,7 @@ public class Example { # **deleteCollectionStorageVersion** -> V1Status deleteCollectionStorageVersion().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionStorageVersion().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -145,6 +145,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -162,6 +163,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -194,6 +196,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -378,7 +381,7 @@ This endpoint does not need any parameter. # **listStorageVersion** -> V1alpha1StorageVersionList listStorageVersion().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1alpha1StorageVersionList listStorageVersion().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -415,6 +418,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -428,6 +432,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -456,6 +461,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/NetworkingV1Api.md b/kubernetes/docs/NetworkingV1Api.md index 581aab4144..c2e4808d09 100644 --- a/kubernetes/docs/NetworkingV1Api.md +++ b/kubernetes/docs/NetworkingV1Api.md @@ -481,7 +481,7 @@ public class Example { # **deleteCollectionIPAddress** -> V1Status deleteCollectionIPAddress().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionIPAddress().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -522,6 +522,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -539,6 +540,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -571,6 +573,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -595,7 +598,7 @@ public class Example { # **deleteCollectionIngressClass** -> V1Status deleteCollectionIngressClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionIngressClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -636,6 +639,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -653,6 +657,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -685,6 +690,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -709,7 +715,7 @@ public class Example { # **deleteCollectionNamespacedIngress** -> V1Status deleteCollectionNamespacedIngress(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedIngress(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -751,6 +757,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -768,6 +775,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -801,6 +809,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -825,7 +834,7 @@ public class Example { # **deleteCollectionNamespacedNetworkPolicy** -> V1Status deleteCollectionNamespacedNetworkPolicy(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedNetworkPolicy(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -867,6 +876,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -884,6 +894,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -917,6 +928,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -941,7 +953,7 @@ public class Example { # **deleteCollectionServiceCIDR** -> V1Status deleteCollectionServiceCIDR().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionServiceCIDR().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -982,6 +994,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -999,6 +1012,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -1031,6 +1045,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -1591,7 +1606,7 @@ This endpoint does not need any parameter. # **listIPAddress** -> V1IPAddressList listIPAddress().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1IPAddressList listIPAddress().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1628,6 +1643,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1641,6 +1657,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1669,6 +1686,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1693,7 +1711,7 @@ public class Example { # **listIngressClass** -> V1IngressClassList listIngressClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1IngressClassList listIngressClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1730,6 +1748,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1743,6 +1762,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1771,6 +1791,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1795,7 +1816,7 @@ public class Example { # **listIngressForAllNamespaces** -> V1IngressList listIngressForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1IngressList listIngressForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1832,6 +1853,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1845,6 +1867,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1873,6 +1896,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1897,7 +1921,7 @@ public class Example { # **listNamespacedIngress** -> V1IngressList listNamespacedIngress(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1IngressList listNamespacedIngress(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1935,6 +1959,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1948,6 +1973,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1977,6 +2003,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -2001,7 +2028,7 @@ public class Example { # **listNamespacedNetworkPolicy** -> V1NetworkPolicyList listNamespacedNetworkPolicy(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1NetworkPolicyList listNamespacedNetworkPolicy(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2039,6 +2066,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -2052,6 +2080,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2081,6 +2110,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -2105,7 +2135,7 @@ public class Example { # **listNetworkPolicyForAllNamespaces** -> V1NetworkPolicyList listNetworkPolicyForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1NetworkPolicyList listNetworkPolicyForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2142,6 +2172,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -2155,6 +2186,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2183,6 +2215,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -2207,7 +2240,7 @@ public class Example { # **listServiceCIDR** -> V1ServiceCIDRList listServiceCIDR().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ServiceCIDRList listServiceCIDR().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2244,6 +2277,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -2257,6 +2291,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2285,6 +2320,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/NetworkingV1beta1Api.md b/kubernetes/docs/NetworkingV1beta1Api.md index 1a0f836007..150a555887 100644 --- a/kubernetes/docs/NetworkingV1beta1Api.md +++ b/kubernetes/docs/NetworkingV1beta1Api.md @@ -196,7 +196,7 @@ public class Example { # **deleteCollectionIPAddress** -> V1Status deleteCollectionIPAddress().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionIPAddress().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -237,6 +237,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -254,6 +255,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -286,6 +288,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -310,7 +313,7 @@ public class Example { # **deleteCollectionServiceCIDR** -> V1Status deleteCollectionServiceCIDR().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionServiceCIDR().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -351,6 +354,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -368,6 +372,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -400,6 +405,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -677,7 +683,7 @@ This endpoint does not need any parameter. # **listIPAddress** -> V1beta1IPAddressList listIPAddress().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1IPAddressList listIPAddress().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -714,6 +720,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -727,6 +734,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -755,6 +763,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -779,7 +788,7 @@ public class Example { # **listServiceCIDR** -> V1beta1ServiceCIDRList listServiceCIDR().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1ServiceCIDRList listServiceCIDR().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -816,6 +825,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -829,6 +839,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -857,6 +868,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/NodeV1Api.md b/kubernetes/docs/NodeV1Api.md index 0a50a15be6..e7b91bbcf7 100644 --- a/kubernetes/docs/NodeV1Api.md +++ b/kubernetes/docs/NodeV1Api.md @@ -101,7 +101,7 @@ public class Example { # **deleteCollectionRuntimeClass** -> V1Status deleteCollectionRuntimeClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionRuntimeClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -142,6 +142,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -159,6 +160,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -191,6 +193,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -375,7 +378,7 @@ This endpoint does not need any parameter. # **listRuntimeClass** -> V1RuntimeClassList listRuntimeClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1RuntimeClassList listRuntimeClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -412,6 +415,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -425,6 +429,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -453,6 +458,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/PolicyV1Api.md b/kubernetes/docs/PolicyV1Api.md index fcc2583d7d..543f86da58 100644 --- a/kubernetes/docs/PolicyV1Api.md +++ b/kubernetes/docs/PolicyV1Api.md @@ -107,7 +107,7 @@ public class Example { # **deleteCollectionNamespacedPodDisruptionBudget** -> V1Status deleteCollectionNamespacedPodDisruptionBudget(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedPodDisruptionBudget(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -149,6 +149,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -166,6 +167,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -199,6 +201,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -385,7 +388,7 @@ This endpoint does not need any parameter. # **listNamespacedPodDisruptionBudget** -> V1PodDisruptionBudgetList listNamespacedPodDisruptionBudget(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1PodDisruptionBudgetList listNamespacedPodDisruptionBudget(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -423,6 +426,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -436,6 +440,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -465,6 +470,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -489,7 +495,7 @@ public class Example { # **listPodDisruptionBudgetForAllNamespaces** -> V1PodDisruptionBudgetList listPodDisruptionBudgetForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1PodDisruptionBudgetList listPodDisruptionBudgetForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -526,6 +532,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -539,6 +546,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -567,6 +575,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/RbacAuthorizationV1Api.md b/kubernetes/docs/RbacAuthorizationV1Api.md index afd8e06943..e506b46c27 100644 --- a/kubernetes/docs/RbacAuthorizationV1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1Api.md @@ -569,7 +569,7 @@ public class Example { # **deleteCollectionClusterRole** -> V1Status deleteCollectionClusterRole().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionClusterRole().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -610,6 +610,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -627,6 +628,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -659,6 +661,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -683,7 +686,7 @@ public class Example { # **deleteCollectionClusterRoleBinding** -> V1Status deleteCollectionClusterRoleBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionClusterRoleBinding().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -724,6 +727,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -741,6 +745,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -773,6 +778,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -797,7 +803,7 @@ public class Example { # **deleteCollectionNamespacedRole** -> V1Status deleteCollectionNamespacedRole(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedRole(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -839,6 +845,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -856,6 +863,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -889,6 +897,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -913,7 +922,7 @@ public class Example { # **deleteCollectionNamespacedRoleBinding** -> V1Status deleteCollectionNamespacedRoleBinding(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedRoleBinding(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -955,6 +964,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -972,6 +982,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -1005,6 +1016,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -1286,7 +1298,7 @@ This endpoint does not need any parameter. # **listClusterRole** -> V1ClusterRoleList listClusterRole().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ClusterRoleList listClusterRole().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1323,6 +1335,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1336,6 +1349,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1364,6 +1378,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1388,7 +1403,7 @@ public class Example { # **listClusterRoleBinding** -> V1ClusterRoleBindingList listClusterRoleBinding().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ClusterRoleBindingList listClusterRoleBinding().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1425,6 +1440,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1438,6 +1454,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1466,6 +1483,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1490,7 +1508,7 @@ public class Example { # **listNamespacedRole** -> V1RoleList listNamespacedRole(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1RoleList listNamespacedRole(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1528,6 +1546,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1541,6 +1560,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1570,6 +1590,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1594,7 +1615,7 @@ public class Example { # **listNamespacedRoleBinding** -> V1RoleBindingList listNamespacedRoleBinding(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1RoleBindingList listNamespacedRoleBinding(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1632,6 +1653,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1645,6 +1667,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1674,6 +1697,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1698,7 +1722,7 @@ public class Example { # **listRoleBindingForAllNamespaces** -> V1RoleBindingList listRoleBindingForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1RoleBindingList listRoleBindingForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1735,6 +1759,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1748,6 +1773,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1776,6 +1802,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1800,7 +1827,7 @@ public class Example { # **listRoleForAllNamespaces** -> V1RoleList listRoleForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1RoleList listRoleForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1837,6 +1864,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1850,6 +1878,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1878,6 +1907,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/ResourceV1Api.md b/kubernetes/docs/ResourceV1Api.md index fc6c55f177..edde26da07 100644 --- a/kubernetes/docs/ResourceV1Api.md +++ b/kubernetes/docs/ResourceV1Api.md @@ -386,7 +386,7 @@ public class Example { # **deleteCollectionDeviceClass** -> V1Status deleteCollectionDeviceClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionDeviceClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -427,6 +427,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -444,6 +445,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -476,6 +478,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -500,7 +503,7 @@ public class Example { # **deleteCollectionNamespacedResourceClaim** -> V1Status deleteCollectionNamespacedResourceClaim(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedResourceClaim(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -542,6 +545,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -559,6 +563,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -592,6 +597,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -616,7 +622,7 @@ public class Example { # **deleteCollectionNamespacedResourceClaimTemplate** -> V1Status deleteCollectionNamespacedResourceClaimTemplate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedResourceClaimTemplate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -658,6 +664,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -675,6 +682,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -708,6 +716,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -732,7 +741,7 @@ public class Example { # **deleteCollectionResourceSlice** -> V1Status deleteCollectionResourceSlice().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionResourceSlice().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -773,6 +782,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -790,6 +800,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -822,6 +833,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -1289,7 +1301,7 @@ This endpoint does not need any parameter. # **listDeviceClass** -> V1DeviceClassList listDeviceClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1DeviceClassList listDeviceClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1326,6 +1338,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1339,6 +1352,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1367,6 +1381,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1391,7 +1406,7 @@ public class Example { # **listNamespacedResourceClaim** -> V1ResourceClaimList listNamespacedResourceClaim(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ResourceClaimList listNamespacedResourceClaim(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1429,6 +1444,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1442,6 +1458,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1471,6 +1488,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1495,7 +1513,7 @@ public class Example { # **listNamespacedResourceClaimTemplate** -> V1ResourceClaimTemplateList listNamespacedResourceClaimTemplate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ResourceClaimTemplateList listNamespacedResourceClaimTemplate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1533,6 +1551,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1546,6 +1565,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1575,6 +1595,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1599,7 +1620,7 @@ public class Example { # **listResourceClaimForAllNamespaces** -> V1ResourceClaimList listResourceClaimForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ResourceClaimList listResourceClaimForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1636,6 +1657,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1649,6 +1671,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1677,6 +1700,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1701,7 +1725,7 @@ public class Example { # **listResourceClaimTemplateForAllNamespaces** -> V1ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1738,6 +1762,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1751,6 +1776,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1779,6 +1805,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1803,7 +1830,7 @@ public class Example { # **listResourceSlice** -> V1ResourceSliceList listResourceSlice().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1ResourceSliceList listResourceSlice().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1840,6 +1867,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1853,6 +1881,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1881,6 +1910,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/ResourceV1ResourceClaim.md b/kubernetes/docs/ResourceV1ResourceClaim.md index d2516991af..a5c6dc21b0 100644 --- a/kubernetes/docs/ResourceV1ResourceClaim.md +++ b/kubernetes/docs/ResourceV1ResourceClaim.md @@ -2,7 +2,7 @@ # ResourceV1ResourceClaim -ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. +ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. ## Properties diff --git a/kubernetes/docs/ResourceV1alpha3Api.md b/kubernetes/docs/ResourceV1alpha3Api.md index 1da3f178da..723207929b 100644 --- a/kubernetes/docs/ResourceV1alpha3Api.md +++ b/kubernetes/docs/ResourceV1alpha3Api.md @@ -5,16 +5,26 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| | [**createDeviceTaintRule**](ResourceV1alpha3Api.md#createDeviceTaintRule) | **POST** /apis/resource.k8s.io/v1alpha3/devicetaintrules | | +| [**createResourcePoolStatusRequest**](ResourceV1alpha3Api.md#createResourcePoolStatusRequest) | **POST** /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests | | | [**deleteCollectionDeviceTaintRule**](ResourceV1alpha3Api.md#deleteCollectionDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules | | +| [**deleteCollectionResourcePoolStatusRequest**](ResourceV1alpha3Api.md#deleteCollectionResourcePoolStatusRequest) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests | | | [**deleteDeviceTaintRule**](ResourceV1alpha3Api.md#deleteDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | +| [**deleteResourcePoolStatusRequest**](ResourceV1alpha3Api.md#deleteResourcePoolStatusRequest) | **DELETE** /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name} | | | [**getAPIResources**](ResourceV1alpha3Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1alpha3/ | | | [**listDeviceTaintRule**](ResourceV1alpha3Api.md#listDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules | | +| [**listResourcePoolStatusRequest**](ResourceV1alpha3Api.md#listResourcePoolStatusRequest) | **GET** /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests | | | [**patchDeviceTaintRule**](ResourceV1alpha3Api.md#patchDeviceTaintRule) | **PATCH** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | | [**patchDeviceTaintRuleStatus**](ResourceV1alpha3Api.md#patchDeviceTaintRuleStatus) | **PATCH** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status | | +| [**patchResourcePoolStatusRequest**](ResourceV1alpha3Api.md#patchResourcePoolStatusRequest) | **PATCH** /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name} | | +| [**patchResourcePoolStatusRequestStatus**](ResourceV1alpha3Api.md#patchResourcePoolStatusRequestStatus) | **PATCH** /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status | | | [**readDeviceTaintRule**](ResourceV1alpha3Api.md#readDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | | [**readDeviceTaintRuleStatus**](ResourceV1alpha3Api.md#readDeviceTaintRuleStatus) | **GET** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status | | +| [**readResourcePoolStatusRequest**](ResourceV1alpha3Api.md#readResourcePoolStatusRequest) | **GET** /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name} | | +| [**readResourcePoolStatusRequestStatus**](ResourceV1alpha3Api.md#readResourcePoolStatusRequestStatus) | **GET** /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status | | | [**replaceDeviceTaintRule**](ResourceV1alpha3Api.md#replaceDeviceTaintRule) | **PUT** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name} | | | [**replaceDeviceTaintRuleStatus**](ResourceV1alpha3Api.md#replaceDeviceTaintRuleStatus) | **PUT** /apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status | | +| [**replaceResourcePoolStatusRequest**](ResourceV1alpha3Api.md#replaceResourcePoolStatusRequest) | **PUT** /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name} | | +| [**replaceResourcePoolStatusRequestStatus**](ResourceV1alpha3Api.md#replaceResourcePoolStatusRequestStatus) | **PUT** /apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status | | @@ -102,9 +112,94 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | + +# **createResourcePoolStatusRequest** +> V1alpha3ResourcePoolStatusRequest createResourcePoolStatusRequest(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a ResourcePoolStatusRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + V1alpha3ResourcePoolStatusRequest body = new V1alpha3ResourcePoolStatusRequest(); // V1alpha3ResourcePoolStatusRequest | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha3ResourcePoolStatusRequest result = apiInstance.createResourcePoolStatusRequest(body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#createResourcePoolStatusRequest"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1alpha3ResourcePoolStatusRequest**](V1alpha3ResourcePoolStatusRequest.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1alpha3ResourcePoolStatusRequest**](V1alpha3ResourcePoolStatusRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + # **deleteCollectionDeviceTaintRule** -> V1Status deleteCollectionDeviceTaintRule().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionDeviceTaintRule().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -145,6 +240,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -162,12 +258,868 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#deleteCollectionDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **deleteCollectionResourcePoolStatusRequest** +> V1Status deleteCollectionResourcePoolStatusRequest().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of ResourcePoolStatusRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | 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. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionResourcePoolStatusRequest() + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#deleteCollectionDeviceTaintRule"); + System.err.println("Exception when calling ResourceV1alpha3Api#deleteCollectionResourcePoolStatusRequest"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **deleteDeviceTaintRule** +> V1alpha3DeviceTaintRule deleteDeviceTaintRule(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1alpha3DeviceTaintRule result = apiInstance.deleteDeviceTaintRule(name) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#deleteDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceTaintRule | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteResourcePoolStatusRequest** +> V1alpha3ResourcePoolStatusRequest deleteResourcePoolStatusRequest(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a ResourcePoolStatusRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourcePoolStatusRequest + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1alpha3ResourcePoolStatusRequest result = apiInstance.deleteResourcePoolStatusRequest(name) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#deleteResourcePoolStatusRequest"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourcePoolStatusRequest | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1alpha3ResourcePoolStatusRequest**](V1alpha3ResourcePoolStatusRequest.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources().execute(); + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listDeviceTaintRule** +> V1alpha3DeviceTaintRuleList listDeviceTaintRule().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | 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. + String _continue = "_continue_example"; // String | 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha3DeviceTaintRuleList result = apiInstance.listDeviceTaintRule() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#listDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1alpha3DeviceTaintRuleList**](V1alpha3DeviceTaintRuleList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listResourcePoolStatusRequest** +> V1alpha3ResourcePoolStatusRequestList listResourcePoolStatusRequest().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ResourcePoolStatusRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | 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. + String _continue = "_continue_example"; // String | 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha3ResourcePoolStatusRequestList result = apiInstance.listResourcePoolStatusRequest() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#listResourcePoolStatusRequest"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1alpha3ResourcePoolStatusRequestList**](V1alpha3ResourcePoolStatusRequestList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **patchDeviceTaintRule** +> V1alpha3DeviceTaintRule patchDeviceTaintRule(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha3DeviceTaintRule result = apiInstance.patchDeviceTaintRule(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#patchDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceTaintRule | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchDeviceTaintRuleStatus** +> V1alpha3DeviceTaintRule patchDeviceTaintRuleStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of the specified DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha3DeviceTaintRule result = apiInstance.patchDeviceTaintRuleStatus(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#patchDeviceTaintRuleStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceTaintRule | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchResourcePoolStatusRequest** +> V1alpha3ResourcePoolStatusRequest patchResourcePoolStatusRequest(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified ResourcePoolStatusRequest + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1alpha3Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the ResourcePoolStatusRequest + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha3ResourcePoolStatusRequest result = apiInstance.patchResourcePoolStatusRequest(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1alpha3Api#patchResourcePoolStatusRequest"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -181,25 +1133,17 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourcePoolStatusRequest | | +| **body** | **V1Patch**| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **_continue** | **String**| 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. | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | -| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| 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. | [optional] | -| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | -| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | -| **resourceVersion** | **String**| 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 | [optional] | -| **resourceVersionMatch** | **String**| 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 | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type -[**V1Status**](V1Status.md) +[**V1alpha3ResourcePoolStatusRequest**](V1alpha3ResourcePoolStatusRequest.md) ### Authorization @@ -214,15 +1158,16 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **deleteDeviceTaintRule** -> V1alpha3DeviceTaintRule deleteDeviceTaintRule(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **patchResourcePoolStatusRequestStatus** +> V1alpha3ResourcePoolStatusRequest patchResourcePoolStatusRequestStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -delete a DeviceTaintRule +partially update status of the specified ResourcePoolStatusRequest ### Example ```java @@ -246,27 +1191,24 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the DeviceTaintRule + String name = "name_example"; // String | name of the ResourcePoolStatusRequest + V1Patch body = new V1Patch(); // V1Patch | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1alpha3DeviceTaintRule result = apiInstance.deleteDeviceTaintRule(name) + V1alpha3ResourcePoolStatusRequest result = apiInstance.patchResourcePoolStatusRequestStatus(name, body) .pretty(pretty) .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#deleteDeviceTaintRule"); + System.err.println("Exception when calling ResourceV1alpha3Api#patchResourcePoolStatusRequestStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -280,18 +1222,17 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceTaintRule | | +| **name** | **String**| name of the ResourcePoolStatusRequest | | +| **body** | **V1Patch**| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | -| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | -| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | -| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | -| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type -[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) +[**V1alpha3ResourcePoolStatusRequest**](V1alpha3ResourcePoolStatusRequest.md) ### Authorization @@ -306,16 +1247,16 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **202** | Accepted | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **getAPIResources** -> V1APIResourceList getAPIResources().execute(); + +# **readDeviceTaintRule** +> V1alpha3DeviceTaintRule readDeviceTaintRule(name).pretty(pretty).execute(); -get available resources +read the specified DeviceTaintRule ### Example ```java @@ -339,12 +1280,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { - V1APIResourceList result = apiInstance.getAPIResources() + V1alpha3DeviceTaintRule result = apiInstance.readDeviceTaintRule(name) + .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#getAPIResources"); + System.err.println("Exception when calling ResourceV1alpha3Api#readDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -355,11 +1299,15 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceTaintRule | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) ### Authorization @@ -376,13 +1324,13 @@ This endpoint does not need any parameter. | **200** | OK | - | | **401** | Unauthorized | - | - -# **listDeviceTaintRule** -> V1alpha3DeviceTaintRuleList listDeviceTaintRule().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **readDeviceTaintRuleStatus** +> V1alpha3DeviceTaintRule readDeviceTaintRuleStatus(name).pretty(pretty).execute(); -list or watch objects of kind DeviceTaintRule +read status of the specified DeviceTaintRule ### Example ```java @@ -406,34 +1354,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - Boolean allowWatchBookmarks = true; // Boolean | 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. - String _continue = "_continue_example"; // String | 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | 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. - String resourceVersion = "resourceVersion_example"; // String | 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 - String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1alpha3DeviceTaintRuleList result = apiInstance.listDeviceTaintRule() + V1alpha3DeviceTaintRule result = apiInstance.readDeviceTaintRuleStatus(name) .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#listDeviceTaintRule"); + System.err.println("Exception when calling ResourceV1alpha3Api#readDeviceTaintRuleStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -447,21 +1376,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceTaintRule | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | -| **_continue** | **String**| 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. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| 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. | [optional] | -| **resourceVersion** | **String**| 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 | [optional] | -| **resourceVersionMatch** | **String**| 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 | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type -[**V1alpha3DeviceTaintRuleList**](V1alpha3DeviceTaintRuleList.md) +[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) ### Authorization @@ -470,7 +1390,7 @@ public class Example { ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -478,13 +1398,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **patchDeviceTaintRule** -> V1alpha3DeviceTaintRule patchDeviceTaintRule(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readResourcePoolStatusRequest** +> V1alpha3ResourcePoolStatusRequest readResourcePoolStatusRequest(name).pretty(pretty).execute(); -partially update the specified DeviceTaintRule +read the specified ResourcePoolStatusRequest ### Example ```java @@ -508,24 +1428,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the DeviceTaintRule - V1Patch body = new V1Patch(); // V1Patch | + String name = "name_example"; // String | name of the ResourcePoolStatusRequest String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1alpha3DeviceTaintRule result = apiInstance.patchDeviceTaintRule(name, body) + V1alpha3ResourcePoolStatusRequest result = apiInstance.readResourcePoolStatusRequest(name) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#patchDeviceTaintRule"); + System.err.println("Exception when calling ResourceV1alpha3Api#readResourcePoolStatusRequest"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -539,17 +1450,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceTaintRule | | -| **body** | **V1Patch**| | | +| **name** | **String**| name of the ResourcePoolStatusRequest | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type -[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) +[**V1alpha3ResourcePoolStatusRequest**](V1alpha3ResourcePoolStatusRequest.md) ### Authorization @@ -557,23 +1463,22 @@ public class Example { ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **201** | Created | - | | **401** | Unauthorized | - | - -# **patchDeviceTaintRuleStatus** -> V1alpha3DeviceTaintRule patchDeviceTaintRuleStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readResourcePoolStatusRequestStatus** +> V1alpha3ResourcePoolStatusRequest readResourcePoolStatusRequestStatus(name).pretty(pretty).execute(); -partially update status of the specified DeviceTaintRule +read status of the specified ResourcePoolStatusRequest ### Example ```java @@ -597,24 +1502,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the DeviceTaintRule - V1Patch body = new V1Patch(); // V1Patch | + String name = "name_example"; // String | name of the ResourcePoolStatusRequest String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1alpha3DeviceTaintRule result = apiInstance.patchDeviceTaintRuleStatus(name, body) + V1alpha3ResourcePoolStatusRequest result = apiInstance.readResourcePoolStatusRequestStatus(name) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#patchDeviceTaintRuleStatus"); + System.err.println("Exception when calling ResourceV1alpha3Api#readResourcePoolStatusRequestStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -628,17 +1524,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceTaintRule | | -| **body** | **V1Patch**| | | +| **name** | **String**| name of the ResourcePoolStatusRequest | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type -[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) +[**V1alpha3ResourcePoolStatusRequest**](V1alpha3ResourcePoolStatusRequest.md) ### Authorization @@ -646,23 +1537,22 @@ public class Example { ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **201** | Created | - | | **401** | Unauthorized | - | - -# **readDeviceTaintRule** -> V1alpha3DeviceTaintRule readDeviceTaintRule(name).pretty(pretty).execute(); + +# **replaceDeviceTaintRule** +> V1alpha3DeviceTaintRule replaceDeviceTaintRule(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -read the specified DeviceTaintRule +replace the specified DeviceTaintRule ### Example ```java @@ -687,14 +1577,21 @@ public class Example { ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); String name = "name_example"; // String | name of the DeviceTaintRule + V1alpha3DeviceTaintRule body = new V1alpha3DeviceTaintRule(); // V1alpha3DeviceTaintRule | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1alpha3DeviceTaintRule result = apiInstance.readDeviceTaintRule(name) + V1alpha3DeviceTaintRule result = apiInstance.replaceDeviceTaintRule(name, body) .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#readDeviceTaintRule"); + System.err.println("Exception when calling ResourceV1alpha3Api#replaceDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -709,7 +1606,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **name** | **String**| name of the DeviceTaintRule | | +| **body** | [**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md)| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -721,22 +1622,23 @@ public class Example { ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **readDeviceTaintRuleStatus** -> V1alpha3DeviceTaintRule readDeviceTaintRuleStatus(name).pretty(pretty).execute(); + +# **replaceDeviceTaintRuleStatus** +> V1alpha3DeviceTaintRule replaceDeviceTaintRuleStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -read status of the specified DeviceTaintRule +replace status of the specified DeviceTaintRule ### Example ```java @@ -761,14 +1663,21 @@ public class Example { ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); String name = "name_example"; // String | name of the DeviceTaintRule + V1alpha3DeviceTaintRule body = new V1alpha3DeviceTaintRule(); // V1alpha3DeviceTaintRule | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1alpha3DeviceTaintRule result = apiInstance.readDeviceTaintRuleStatus(name) + V1alpha3DeviceTaintRule result = apiInstance.replaceDeviceTaintRuleStatus(name, body) .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#readDeviceTaintRuleStatus"); + System.err.println("Exception when calling ResourceV1alpha3Api#replaceDeviceTaintRuleStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -783,7 +1692,11 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **name** | **String**| name of the DeviceTaintRule | | +| **body** | [**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md)| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | ### Return type @@ -795,22 +1708,23 @@ public class Example { ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceDeviceTaintRule** -> V1alpha3DeviceTaintRule replaceDeviceTaintRule(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceResourcePoolStatusRequest** +> V1alpha3ResourcePoolStatusRequest replaceResourcePoolStatusRequest(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace the specified DeviceTaintRule +replace the specified ResourcePoolStatusRequest ### Example ```java @@ -834,14 +1748,14 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the DeviceTaintRule - V1alpha3DeviceTaintRule body = new V1alpha3DeviceTaintRule(); // V1alpha3DeviceTaintRule | + String name = "name_example"; // String | name of the ResourcePoolStatusRequest + V1alpha3ResourcePoolStatusRequest body = new V1alpha3ResourcePoolStatusRequest(); // V1alpha3ResourcePoolStatusRequest | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1alpha3DeviceTaintRule result = apiInstance.replaceDeviceTaintRule(name, body) + V1alpha3ResourcePoolStatusRequest result = apiInstance.replaceResourcePoolStatusRequest(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -849,7 +1763,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#replaceDeviceTaintRule"); + System.err.println("Exception when calling ResourceV1alpha3Api#replaceResourcePoolStatusRequest"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -863,8 +1777,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceTaintRule | | -| **body** | [**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md)| | | +| **name** | **String**| name of the ResourcePoolStatusRequest | | +| **body** | [**V1alpha3ResourcePoolStatusRequest**](V1alpha3ResourcePoolStatusRequest.md)| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | | **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | @@ -872,7 +1786,7 @@ public class Example { ### Return type -[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) +[**V1alpha3ResourcePoolStatusRequest**](V1alpha3ResourcePoolStatusRequest.md) ### Authorization @@ -890,13 +1804,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **replaceDeviceTaintRuleStatus** -> V1alpha3DeviceTaintRule replaceDeviceTaintRuleStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + +# **replaceResourcePoolStatusRequestStatus** +> V1alpha3ResourcePoolStatusRequest replaceResourcePoolStatusRequestStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); -replace status of the specified DeviceTaintRule +replace status of the specified ResourcePoolStatusRequest ### Example ```java @@ -920,14 +1834,14 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1alpha3Api apiInstance = new ResourceV1alpha3Api(defaultClient); - String name = "name_example"; // String | name of the DeviceTaintRule - V1alpha3DeviceTaintRule body = new V1alpha3DeviceTaintRule(); // V1alpha3DeviceTaintRule | + String name = "name_example"; // String | name of the ResourcePoolStatusRequest + V1alpha3ResourcePoolStatusRequest body = new V1alpha3ResourcePoolStatusRequest(); // V1alpha3ResourcePoolStatusRequest | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. try { - V1alpha3DeviceTaintRule result = apiInstance.replaceDeviceTaintRuleStatus(name, body) + V1alpha3ResourcePoolStatusRequest result = apiInstance.replaceResourcePoolStatusRequestStatus(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -935,7 +1849,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1alpha3Api#replaceDeviceTaintRuleStatus"); + System.err.println("Exception when calling ResourceV1alpha3Api#replaceResourcePoolStatusRequestStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -949,8 +1863,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceTaintRule | | -| **body** | [**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md)| | | +| **name** | **String**| name of the ResourcePoolStatusRequest | | +| **body** | [**V1alpha3ResourcePoolStatusRequest**](V1alpha3ResourcePoolStatusRequest.md)| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | | **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | @@ -958,7 +1872,7 @@ public class Example { ### Return type -[**V1alpha3DeviceTaintRule**](V1alpha3DeviceTaintRule.md) +[**V1alpha3ResourcePoolStatusRequest**](V1alpha3ResourcePoolStatusRequest.md) ### Authorization diff --git a/kubernetes/docs/ResourceV1beta1Api.md b/kubernetes/docs/ResourceV1beta1Api.md index eded4dee58..4c1ee3ae89 100644 --- a/kubernetes/docs/ResourceV1beta1Api.md +++ b/kubernetes/docs/ResourceV1beta1Api.md @@ -386,7 +386,7 @@ public class Example { # **deleteCollectionDeviceClass** -> V1Status deleteCollectionDeviceClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionDeviceClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -427,6 +427,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -444,6 +445,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -476,6 +478,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -500,7 +503,7 @@ public class Example { # **deleteCollectionNamespacedResourceClaim** -> V1Status deleteCollectionNamespacedResourceClaim(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedResourceClaim(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -542,6 +545,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -559,6 +563,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -592,6 +597,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -616,7 +622,7 @@ public class Example { # **deleteCollectionNamespacedResourceClaimTemplate** -> V1Status deleteCollectionNamespacedResourceClaimTemplate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedResourceClaimTemplate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -658,6 +664,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -675,6 +682,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -708,6 +716,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -732,7 +741,7 @@ public class Example { # **deleteCollectionResourceSlice** -> V1Status deleteCollectionResourceSlice().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionResourceSlice().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -773,6 +782,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -790,6 +800,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -822,6 +833,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -1289,7 +1301,7 @@ This endpoint does not need any parameter. # **listDeviceClass** -> V1beta1DeviceClassList listDeviceClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1DeviceClassList listDeviceClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1326,6 +1338,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1339,6 +1352,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1367,6 +1381,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1391,7 +1406,7 @@ public class Example { # **listNamespacedResourceClaim** -> V1beta1ResourceClaimList listNamespacedResourceClaim(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1ResourceClaimList listNamespacedResourceClaim(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1429,6 +1444,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1442,6 +1458,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1471,6 +1488,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1495,7 +1513,7 @@ public class Example { # **listNamespacedResourceClaimTemplate** -> V1beta1ResourceClaimTemplateList listNamespacedResourceClaimTemplate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1ResourceClaimTemplateList listNamespacedResourceClaimTemplate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1533,6 +1551,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1546,6 +1565,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1575,6 +1595,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1599,7 +1620,7 @@ public class Example { # **listResourceClaimForAllNamespaces** -> V1beta1ResourceClaimList listResourceClaimForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1ResourceClaimList listResourceClaimForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1636,6 +1657,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1649,6 +1671,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1677,6 +1700,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1701,7 +1725,7 @@ public class Example { # **listResourceClaimTemplateForAllNamespaces** -> V1beta1ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1738,6 +1762,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1751,6 +1776,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1779,6 +1805,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1803,7 +1830,7 @@ public class Example { # **listResourceSlice** -> V1beta1ResourceSliceList listResourceSlice().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1ResourceSliceList listResourceSlice().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1840,6 +1867,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1853,6 +1881,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1881,6 +1910,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/ResourceV1beta2Api.md b/kubernetes/docs/ResourceV1beta2Api.md index 08a7ac031e..d4ab82657a 100644 --- a/kubernetes/docs/ResourceV1beta2Api.md +++ b/kubernetes/docs/ResourceV1beta2Api.md @@ -5,35 +5,45 @@ All URIs are relative to *http://localhost* | Method | HTTP request | Description | |------------- | ------------- | -------------| | [**createDeviceClass**](ResourceV1beta2Api.md#createDeviceClass) | **POST** /apis/resource.k8s.io/v1beta2/deviceclasses | | +| [**createDeviceTaintRule**](ResourceV1beta2Api.md#createDeviceTaintRule) | **POST** /apis/resource.k8s.io/v1beta2/devicetaintrules | | | [**createNamespacedResourceClaim**](ResourceV1beta2Api.md#createNamespacedResourceClaim) | **POST** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims | | | [**createNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#createNamespacedResourceClaimTemplate) | **POST** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates | | | [**createResourceSlice**](ResourceV1beta2Api.md#createResourceSlice) | **POST** /apis/resource.k8s.io/v1beta2/resourceslices | | | [**deleteCollectionDeviceClass**](ResourceV1beta2Api.md#deleteCollectionDeviceClass) | **DELETE** /apis/resource.k8s.io/v1beta2/deviceclasses | | +| [**deleteCollectionDeviceTaintRule**](ResourceV1beta2Api.md#deleteCollectionDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1beta2/devicetaintrules | | | [**deleteCollectionNamespacedResourceClaim**](ResourceV1beta2Api.md#deleteCollectionNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims | | | [**deleteCollectionNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#deleteCollectionNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates | | | [**deleteCollectionResourceSlice**](ResourceV1beta2Api.md#deleteCollectionResourceSlice) | **DELETE** /apis/resource.k8s.io/v1beta2/resourceslices | | | [**deleteDeviceClass**](ResourceV1beta2Api.md#deleteDeviceClass) | **DELETE** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | | +| [**deleteDeviceTaintRule**](ResourceV1beta2Api.md#deleteDeviceTaintRule) | **DELETE** /apis/resource.k8s.io/v1beta2/devicetaintrules/{name} | | | [**deleteNamespacedResourceClaim**](ResourceV1beta2Api.md#deleteNamespacedResourceClaim) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | | | [**deleteNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#deleteNamespacedResourceClaimTemplate) | **DELETE** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | | | [**deleteResourceSlice**](ResourceV1beta2Api.md#deleteResourceSlice) | **DELETE** /apis/resource.k8s.io/v1beta2/resourceslices/{name} | | | [**getAPIResources**](ResourceV1beta2Api.md#getAPIResources) | **GET** /apis/resource.k8s.io/v1beta2/ | | | [**listDeviceClass**](ResourceV1beta2Api.md#listDeviceClass) | **GET** /apis/resource.k8s.io/v1beta2/deviceclasses | | +| [**listDeviceTaintRule**](ResourceV1beta2Api.md#listDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1beta2/devicetaintrules | | | [**listNamespacedResourceClaim**](ResourceV1beta2Api.md#listNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims | | | [**listNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#listNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates | | | [**listResourceClaimForAllNamespaces**](ResourceV1beta2Api.md#listResourceClaimForAllNamespaces) | **GET** /apis/resource.k8s.io/v1beta2/resourceclaims | | | [**listResourceClaimTemplateForAllNamespaces**](ResourceV1beta2Api.md#listResourceClaimTemplateForAllNamespaces) | **GET** /apis/resource.k8s.io/v1beta2/resourceclaimtemplates | | | [**listResourceSlice**](ResourceV1beta2Api.md#listResourceSlice) | **GET** /apis/resource.k8s.io/v1beta2/resourceslices | | | [**patchDeviceClass**](ResourceV1beta2Api.md#patchDeviceClass) | **PATCH** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | | +| [**patchDeviceTaintRule**](ResourceV1beta2Api.md#patchDeviceTaintRule) | **PATCH** /apis/resource.k8s.io/v1beta2/devicetaintrules/{name} | | +| [**patchDeviceTaintRuleStatus**](ResourceV1beta2Api.md#patchDeviceTaintRuleStatus) | **PATCH** /apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status | | | [**patchNamespacedResourceClaim**](ResourceV1beta2Api.md#patchNamespacedResourceClaim) | **PATCH** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | | | [**patchNamespacedResourceClaimStatus**](ResourceV1beta2Api.md#patchNamespacedResourceClaimStatus) | **PATCH** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status | | | [**patchNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#patchNamespacedResourceClaimTemplate) | **PATCH** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | | | [**patchResourceSlice**](ResourceV1beta2Api.md#patchResourceSlice) | **PATCH** /apis/resource.k8s.io/v1beta2/resourceslices/{name} | | | [**readDeviceClass**](ResourceV1beta2Api.md#readDeviceClass) | **GET** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | | +| [**readDeviceTaintRule**](ResourceV1beta2Api.md#readDeviceTaintRule) | **GET** /apis/resource.k8s.io/v1beta2/devicetaintrules/{name} | | +| [**readDeviceTaintRuleStatus**](ResourceV1beta2Api.md#readDeviceTaintRuleStatus) | **GET** /apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status | | | [**readNamespacedResourceClaim**](ResourceV1beta2Api.md#readNamespacedResourceClaim) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | | | [**readNamespacedResourceClaimStatus**](ResourceV1beta2Api.md#readNamespacedResourceClaimStatus) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status | | | [**readNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#readNamespacedResourceClaimTemplate) | **GET** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | | | [**readResourceSlice**](ResourceV1beta2Api.md#readResourceSlice) | **GET** /apis/resource.k8s.io/v1beta2/resourceslices/{name} | | | [**replaceDeviceClass**](ResourceV1beta2Api.md#replaceDeviceClass) | **PUT** /apis/resource.k8s.io/v1beta2/deviceclasses/{name} | | +| [**replaceDeviceTaintRule**](ResourceV1beta2Api.md#replaceDeviceTaintRule) | **PUT** /apis/resource.k8s.io/v1beta2/devicetaintrules/{name} | | +| [**replaceDeviceTaintRuleStatus**](ResourceV1beta2Api.md#replaceDeviceTaintRuleStatus) | **PUT** /apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status | | | [**replaceNamespacedResourceClaim**](ResourceV1beta2Api.md#replaceNamespacedResourceClaim) | **PUT** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name} | | | [**replaceNamespacedResourceClaimStatus**](ResourceV1beta2Api.md#replaceNamespacedResourceClaimStatus) | **PUT** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status | | | [**replaceNamespacedResourceClaimTemplate**](ResourceV1beta2Api.md#replaceNamespacedResourceClaimTemplate) | **PUT** /apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name} | | @@ -125,6 +135,91 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | + +# **createDeviceTaintRule** +> V1beta2DeviceTaintRule createDeviceTaintRule(body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + V1beta2DeviceTaintRule body = new V1beta2DeviceTaintRule(); // V1beta2DeviceTaintRule | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2DeviceTaintRule result = apiInstance.createDeviceTaintRule(body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#createDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **body** | [**V1beta2DeviceTaintRule**](V1beta2DeviceTaintRule.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta2DeviceTaintRule**](V1beta2DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + # **createNamespacedResourceClaim** > V1beta2ResourceClaim createNamespacedResourceClaim(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); @@ -386,7 +481,7 @@ public class Example { # **deleteCollectionDeviceClass** -> V1Status deleteCollectionDeviceClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionDeviceClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -427,6 +522,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -444,6 +540,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -476,6 +573,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -498,13 +596,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteCollectionNamespacedResourceClaim** -> V1Status deleteCollectionNamespacedResourceClaim(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionDeviceTaintRule** +> V1Status deleteCollectionDeviceTaintRule().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of ResourceClaim +delete collection of DeviceTaintRule ### Example ```java @@ -528,7 +626,6 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String _continue = "_continue_example"; // String | 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. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -542,10 +639,11 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedResourceClaim(namespace) + V1Status result = apiInstance.deleteCollectionDeviceTaintRule() .pretty(pretty) ._continue(_continue) .dryRun(dryRun) @@ -559,12 +657,13 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#deleteCollectionNamespacedResourceClaim"); + System.err.println("Exception when calling ResourceV1beta2Api#deleteCollectionDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -578,7 +677,6 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **_continue** | **String**| 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. | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | @@ -592,6 +690,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -614,13 +713,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteCollectionNamespacedResourceClaimTemplate** -> V1Status deleteCollectionNamespacedResourceClaimTemplate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionNamespacedResourceClaim** +> V1Status deleteCollectionNamespacedResourceClaim(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of ResourceClaimTemplate +delete collection of ResourceClaim ### Example ```java @@ -658,10 +757,11 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionNamespacedResourceClaimTemplate(namespace) + V1Status result = apiInstance.deleteCollectionNamespacedResourceClaim(namespace) .pretty(pretty) ._continue(_continue) .dryRun(dryRun) @@ -675,12 +775,13 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#deleteCollectionNamespacedResourceClaimTemplate"); + System.err.println("Exception when calling ResourceV1beta2Api#deleteCollectionNamespacedResourceClaim"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -708,6 +809,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -730,13 +832,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteCollectionResourceSlice** -> V1Status deleteCollectionResourceSlice().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); + +# **deleteCollectionNamespacedResourceClaimTemplate** +> V1Status deleteCollectionNamespacedResourceClaimTemplate(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete collection of ResourceSlice +delete collection of ResourceClaimTemplate ### Example ```java @@ -760,6 +862,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String _continue = "_continue_example"; // String | 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. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -773,10 +876,11 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1Status result = apiInstance.deleteCollectionResourceSlice() + V1Status result = apiInstance.deleteCollectionNamespacedResourceClaimTemplate(namespace) .pretty(pretty) ._continue(_continue) .dryRun(dryRun) @@ -790,12 +894,13 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#deleteCollectionResourceSlice"); + System.err.println("Exception when calling ResourceV1beta2Api#deleteCollectionNamespacedResourceClaimTemplate"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -809,6 +914,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **_continue** | **String**| 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. | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | @@ -822,6 +928,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -844,13 +951,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **deleteDeviceClass** -> V1beta2DeviceClass deleteDeviceClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteCollectionResourceSlice** +> V1Status deleteCollectionResourceSlice().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); -delete a DeviceClass +delete collection of ResourceSlice ### Example ```java @@ -874,27 +981,44 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the DeviceClass String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | 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. String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1beta2DeviceClass result = apiInstance.deleteDeviceClass(name) + V1Status result = apiInstance.deleteCollectionResourceSlice() .pretty(pretty) + ._continue(_continue) .dryRun(dryRun) + .fieldSelector(fieldSelector) .gracePeriodSeconds(gracePeriodSeconds) .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) .orphanDependents(orphanDependents) .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#deleteDeviceClass"); + System.err.println("Exception when calling ResourceV1beta2Api#deleteCollectionResourceSlice"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -908,18 +1032,26 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceClass | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| 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. | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | | **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | | **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | | **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | | **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type -[**V1beta2DeviceClass**](V1beta2DeviceClass.md) +[**V1Status**](V1Status.md) ### Authorization @@ -934,16 +1066,15 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteNamespacedResourceClaim** -> V1beta2ResourceClaim deleteNamespacedResourceClaim(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteDeviceClass** +> V1beta2DeviceClass deleteDeviceClass(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ResourceClaim +delete a DeviceClass ### Example ```java @@ -967,8 +1098,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaim - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String name = "name_example"; // String | name of the DeviceClass String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. @@ -977,7 +1107,7 @@ public class Example { String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1beta2ResourceClaim result = apiInstance.deleteNamespacedResourceClaim(name, namespace) + V1beta2DeviceClass result = apiInstance.deleteDeviceClass(name) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) @@ -988,7 +1118,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#deleteNamespacedResourceClaim"); + System.err.println("Exception when calling ResourceV1beta2Api#deleteDeviceClass"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1002,8 +1132,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaim | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **name** | **String**| name of the DeviceClass | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | | **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | @@ -1014,7 +1143,7 @@ public class Example { ### Return type -[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) +[**V1beta2DeviceClass**](V1beta2DeviceClass.md) ### Authorization @@ -1032,13 +1161,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteNamespacedResourceClaimTemplate** -> V1beta2ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteDeviceTaintRule** +> V1beta2DeviceTaintRule deleteDeviceTaintRule(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ResourceClaimTemplate +delete a DeviceTaintRule ### Example ```java @@ -1062,8 +1191,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaimTemplate - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String name = "name_example"; // String | name of the DeviceTaintRule String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. @@ -1072,7 +1200,7 @@ public class Example { String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1beta2ResourceClaimTemplate result = apiInstance.deleteNamespacedResourceClaimTemplate(name, namespace) + V1beta2DeviceTaintRule result = apiInstance.deleteDeviceTaintRule(name) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) @@ -1083,7 +1211,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#deleteNamespacedResourceClaimTemplate"); + System.err.println("Exception when calling ResourceV1beta2Api#deleteDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1097,8 +1225,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaimTemplate | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **name** | **String**| name of the DeviceTaintRule | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | | **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | @@ -1109,7 +1236,7 @@ public class Example { ### Return type -[**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md) +[**V1beta2DeviceTaintRule**](V1beta2DeviceTaintRule.md) ### Authorization @@ -1127,13 +1254,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **deleteResourceSlice** -> V1beta2ResourceSlice deleteResourceSlice(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + +# **deleteNamespacedResourceClaim** +> V1beta2ResourceClaim deleteNamespacedResourceClaim(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -delete a ResourceSlice +delete a ResourceClaim ### Example ```java @@ -1157,7 +1284,8 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceSlice + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. @@ -1166,7 +1294,7 @@ public class Example { String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1beta2ResourceSlice result = apiInstance.deleteResourceSlice(name) + V1beta2ResourceClaim result = apiInstance.deleteNamespacedResourceClaim(name, namespace) .pretty(pretty) .dryRun(dryRun) .gracePeriodSeconds(gracePeriodSeconds) @@ -1177,7 +1305,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#deleteResourceSlice"); + System.err.println("Exception when calling ResourceV1beta2Api#deleteNamespacedResourceClaim"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1191,7 +1319,8 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceSlice | | +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | | **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | @@ -1202,7 +1331,7 @@ public class Example { ### Return type -[**V1beta2ResourceSlice**](V1beta2ResourceSlice.md) +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) ### Authorization @@ -1220,13 +1349,13 @@ public class Example { | **202** | Accepted | - | | **401** | Unauthorized | - | - -# **getAPIResources** -> V1APIResourceList getAPIResources().execute(); + +# **deleteNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate deleteNamespacedResourceClaimTemplate(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -get available resources +delete a ResourceClaimTemplate ### Example ```java @@ -1250,12 +1379,28 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaimTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1APIResourceList result = apiInstance.getAPIResources() + V1beta2ResourceClaimTemplate result = apiInstance.deleteNamespacedResourceClaimTemplate(name, namespace) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#getAPIResources"); + System.err.println("Exception when calling ResourceV1beta2Api#deleteNamespacedResourceClaimTemplate"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1266,11 +1411,22 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaimTemplate | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md) ### Authorization @@ -1278,22 +1434,23 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: Not defined + - **Content-Type**: application/json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **202** | Accepted | - | | **401** | Unauthorized | - | - -# **listDeviceClass** -> V1beta2DeviceClassList listDeviceClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **deleteResourceSlice** +> V1beta2ResourceSlice deleteResourceSlice(name).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); -list or watch objects of kind DeviceClass +delete a ResourceSlice ### Example ```java @@ -1317,34 +1474,27 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceSlice String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - Boolean allowWatchBookmarks = true; // Boolean | 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. - String _continue = "_continue_example"; // String | 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | 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. - String resourceVersion = "resourceVersion_example"; // String | 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 - String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { - V1beta2DeviceClassList result = apiInstance.listDeviceClass() + V1beta2ResourceSlice result = apiInstance.deleteResourceSlice(name) .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#listDeviceClass"); + System.err.println("Exception when calling ResourceV1beta2Api#deleteResourceSlice"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1358,21 +1508,86 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceSlice | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | -| **_continue** | **String**| 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. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| 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. | [optional] | -| **resourceVersion** | **String**| 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 | [optional] | -| **resourceVersionMatch** | **String**| 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 | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | ### Return type -[**V1beta2DeviceClassList**](V1beta2DeviceClassList.md) +[**V1beta2ResourceSlice**](V1beta2ResourceSlice.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources().execute(); + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) ### Authorization @@ -1381,7 +1596,7 @@ public class Example { ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | @@ -1389,13 +1604,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listNamespacedResourceClaim** -> V1beta2ResourceClaimList listNamespacedResourceClaim(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listDeviceClass** +> V1beta2DeviceClassList listDeviceClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind ResourceClaim +list or watch objects of kind DeviceClass ### Example ```java @@ -1419,7 +1634,6 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). Boolean allowWatchBookmarks = true; // Boolean | 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. String _continue = "_continue_example"; // String | 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. @@ -1429,10 +1643,11 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1beta2ResourceClaimList result = apiInstance.listNamespacedResourceClaim(namespace) + V1beta2DeviceClassList result = apiInstance.listDeviceClass() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -1442,12 +1657,13 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#listNamespacedResourceClaim"); + System.err.println("Exception when calling ResourceV1beta2Api#listDeviceClass"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1461,7 +1677,6 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **allowWatchBookmarks** | **Boolean**| 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. | [optional] | | **_continue** | **String**| 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. | [optional] | @@ -1471,12 +1686,13 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type -[**V1beta2ResourceClaimList**](V1beta2ResourceClaimList.md) +[**V1beta2DeviceClassList**](V1beta2DeviceClassList.md) ### Authorization @@ -1493,13 +1709,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listNamespacedResourceClaimTemplate** -> V1beta2ResourceClaimTemplateList listNamespacedResourceClaimTemplate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listDeviceTaintRule** +> V1beta2DeviceTaintRuleList listDeviceTaintRule().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind ResourceClaimTemplate +list or watch objects of kind DeviceTaintRule ### Example ```java @@ -1523,7 +1739,6 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). Boolean allowWatchBookmarks = true; // Boolean | 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. String _continue = "_continue_example"; // String | 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. @@ -1533,10 +1748,11 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1beta2ResourceClaimTemplateList result = apiInstance.listNamespacedResourceClaimTemplate(namespace) + V1beta2DeviceTaintRuleList result = apiInstance.listDeviceTaintRule() .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) @@ -1546,12 +1762,13 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#listNamespacedResourceClaimTemplate"); + System.err.println("Exception when calling ResourceV1beta2Api#listDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1565,7 +1782,6 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **allowWatchBookmarks** | **Boolean**| 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. | [optional] | | **_continue** | **String**| 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. | [optional] | @@ -1575,12 +1791,13 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type -[**V1beta2ResourceClaimTemplateList**](V1beta2ResourceClaimTemplateList.md) +[**V1beta2DeviceTaintRuleList**](V1beta2DeviceTaintRuleList.md) ### Authorization @@ -1597,9 +1814,9 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listResourceClaimForAllNamespaces** -> V1beta2ResourceClaimList listResourceClaimForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listNamespacedResourceClaim** +> V1beta2ResourceClaimList listNamespacedResourceClaim(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1627,34 +1844,37 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). Boolean allowWatchBookmarks = true; // Boolean | 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. String _continue = "_continue_example"; // String | 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | 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. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1beta2ResourceClaimList result = apiInstance.listResourceClaimForAllNamespaces() + V1beta2ResourceClaimList result = apiInstance.listNamespacedResourceClaim(namespace) + .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) .fieldSelector(fieldSelector) .labelSelector(labelSelector) .limit(limit) - .pretty(pretty) .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#listResourceClaimForAllNamespaces"); + System.err.println("Exception when calling ResourceV1beta2Api#listNamespacedResourceClaim"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1668,15 +1888,17 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **allowWatchBookmarks** | **Boolean**| 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. | [optional] | | **_continue** | **String**| 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. | [optional] | | **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | | **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | | **limit** | **Integer**| 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. | [optional] | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1699,9 +1921,9 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listResourceClaimTemplateForAllNamespaces** -> V1beta2ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplateList listNamespacedResourceClaimTemplate(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1729,34 +1951,37 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). Boolean allowWatchBookmarks = true; // Boolean | 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. String _continue = "_continue_example"; // String | 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | 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. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1beta2ResourceClaimTemplateList result = apiInstance.listResourceClaimTemplateForAllNamespaces() + V1beta2ResourceClaimTemplateList result = apiInstance.listNamespacedResourceClaimTemplate(namespace) + .pretty(pretty) .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) .fieldSelector(fieldSelector) .labelSelector(labelSelector) .limit(limit) - .pretty(pretty) .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#listResourceClaimTemplateForAllNamespaces"); + System.err.println("Exception when calling ResourceV1beta2Api#listNamespacedResourceClaimTemplate"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1770,15 +1995,17 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **allowWatchBookmarks** | **Boolean**| 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. | [optional] | | **_continue** | **String**| 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. | [optional] | | **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | | **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | | **limit** | **Integer**| 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. | [optional] | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1801,13 +2028,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **listResourceSlice** -> V1beta2ResourceSliceList listResourceSlice().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + +# **listResourceClaimForAllNamespaces** +> V1beta2ResourceClaimList listResourceClaimForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -list or watch objects of kind ResourceSlice +list or watch objects of kind ResourceClaim ### Example ```java @@ -1831,34 +2058,36 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). Boolean allowWatchBookmarks = true; // Boolean | 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. String _continue = "_continue_example"; // String | 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. String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. Integer limit = 56; // Integer | 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. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1beta2ResourceSliceList result = apiInstance.listResourceSlice() - .pretty(pretty) + V1beta2ResourceClaimList result = apiInstance.listResourceClaimForAllNamespaces() .allowWatchBookmarks(allowWatchBookmarks) ._continue(_continue) .fieldSelector(fieldSelector) .labelSelector(labelSelector) .limit(limit) + .pretty(pretty) .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#listResourceSlice"); + System.err.println("Exception when calling ResourceV1beta2Api#listResourceClaimForAllNamespaces"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1872,21 +2101,22 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **allowWatchBookmarks** | **Boolean**| 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. | [optional] | | **_continue** | **String**| 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. | [optional] | | **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | | **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | | **limit** | **Integer**| 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. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type -[**V1beta2ResourceSliceList**](V1beta2ResourceSliceList.md) +[**V1beta2ResourceClaimList**](V1beta2ResourceClaimList.md) ### Authorization @@ -1903,13 +2133,13 @@ public class Example { | **200** | OK | - | | **401** | Unauthorized | - | - -# **patchDeviceClass** -> V1beta2DeviceClass patchDeviceClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **listResourceClaimTemplateForAllNamespaces** +> V1beta2ResourceClaimTemplateList listResourceClaimTemplateForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); -partially update the specified DeviceClass +list or watch objects of kind ResourceClaimTemplate ### Example ```java @@ -1933,24 +2163,36 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the DeviceClass - V1Patch body = new V1Patch(); // V1Patch | + Boolean allowWatchBookmarks = true; // Boolean | 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. + String _continue = "_continue_example"; // String | 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { - V1beta2DeviceClass result = apiInstance.patchDeviceClass(name, body) + V1beta2ResourceClaimTemplateList result = apiInstance.listResourceClaimTemplateForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#patchDeviceClass"); + System.err.println("Exception when calling ResourceV1beta2Api#listResourceClaimTemplateForAllNamespaces"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1964,17 +2206,22 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceClass | | -| **body** | **V1Patch**| | | +| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | ### Return type -[**V1beta2DeviceClass**](V1beta2DeviceClass.md) +[**V1beta2ResourceClaimTemplateList**](V1beta2ResourceClaimTemplateList.md) ### Authorization @@ -1982,23 +2229,576 @@ public class Example { ### HTTP request headers - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **201** | Created | - | | **401** | Unauthorized | - | - + +# **listResourceSlice** +> V1beta2ResourceSliceList listResourceSlice().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind ResourceSlice + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | 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. + String _continue = "_continue_example"; // String | 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2ResourceSliceList result = apiInstance.listResourceSlice() + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#listResourceSlice"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1beta2ResourceSliceList**](V1beta2ResourceSliceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **patchDeviceClass** +> V1beta2DeviceClass patchDeviceClass(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified DeviceClass + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DeviceClass + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2DeviceClass result = apiInstance.patchDeviceClass(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#patchDeviceClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceClass | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1beta2DeviceClass**](V1beta2DeviceClass.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchDeviceTaintRule** +> V1beta2DeviceTaintRule patchDeviceTaintRule(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2DeviceTaintRule result = apiInstance.patchDeviceTaintRule(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#patchDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceTaintRule | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1beta2DeviceTaintRule**](V1beta2DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchDeviceTaintRuleStatus** +> V1beta2DeviceTaintRule patchDeviceTaintRuleStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of the specified DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2DeviceTaintRule result = apiInstance.patchDeviceTaintRuleStatus(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#patchDeviceTaintRuleStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceTaintRule | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1beta2DeviceTaintRule**](V1beta2DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + # **patchNamespacedResourceClaim** > V1beta2ResourceClaim patchNamespacedResourceClaim(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update the specified ResourceClaim +partially update the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2ResourceClaim result = apiInstance.patchNamespacedResourceClaim(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#patchNamespacedResourceClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchNamespacedResourceClaimStatus** +> V1beta2ResourceClaim patchNamespacedResourceClaimStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of the specified ResourceClaim + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ResourceClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2ResourceClaim result = apiInstance.patchNamespacedResourceClaimStatus(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#patchNamespacedResourceClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the ResourceClaim | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchNamespacedResourceClaimTemplate** +> V1beta2ResourceClaimTemplate patchNamespacedResourceClaimTemplate(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified ResourceClaimTemplate ### Example ```java @@ -2022,7 +2822,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaim + String name = "name_example"; // String | name of the ResourceClaimTemplate String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects V1Patch body = new V1Patch(); // V1Patch | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). @@ -2031,7 +2831,7 @@ public class Example { String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1beta2ResourceClaim result = apiInstance.patchNamespacedResourceClaim(name, namespace, body) + V1beta2ResourceClaimTemplate result = apiInstance.patchNamespacedResourceClaimTemplate(name, namespace, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -2040,7 +2840,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#patchNamespacedResourceClaim"); + System.err.println("Exception when calling ResourceV1beta2Api#patchNamespacedResourceClaimTemplate"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2054,7 +2854,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaim | | +| **name** | **String**| name of the ResourceClaimTemplate | | | **namespace** | **String**| object name and auth scope, such as for teams and projects | | | **body** | **V1Patch**| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | @@ -2065,7 +2865,7 @@ public class Example { ### Return type -[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) +[**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md) ### Authorization @@ -2083,13 +2883,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchNamespacedResourceClaimStatus** -> V1beta2ResourceClaim patchNamespacedResourceClaimStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **patchResourceSlice** +> V1beta2ResourceSlice patchResourceSlice(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); -partially update status of the specified ResourceClaim +partially update the specified ResourceSlice ### Example ```java @@ -2113,8 +2913,7 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaim - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String name = "name_example"; // String | name of the ResourceSlice V1Patch body = new V1Patch(); // V1Patch | String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed @@ -2122,7 +2921,7 @@ public class Example { String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1beta2ResourceClaim result = apiInstance.patchNamespacedResourceClaimStatus(name, namespace, body) + V1beta2ResourceSlice result = apiInstance.patchResourceSlice(name, body) .pretty(pretty) .dryRun(dryRun) .fieldManager(fieldManager) @@ -2131,7 +2930,7 @@ public class Example { .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#patchNamespacedResourceClaimStatus"); + System.err.println("Exception when calling ResourceV1beta2Api#patchResourceSlice"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2145,8 +2944,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaim | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **name** | **String**| name of the ResourceSlice | | | **body** | **V1Patch**| | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | | **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | @@ -2156,7 +2954,7 @@ public class Example { ### Return type -[**V1beta2ResourceClaim**](V1beta2ResourceClaim.md) +[**V1beta2ResourceSlice**](V1beta2ResourceSlice.md) ### Authorization @@ -2174,13 +2972,13 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | - -# **patchNamespacedResourceClaimTemplate** -> V1beta2ResourceClaimTemplate patchNamespacedResourceClaimTemplate(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readDeviceClass** +> V1beta2DeviceClass readDeviceClass(name).pretty(pretty).execute(); -partially update the specified ResourceClaimTemplate +read the specified DeviceClass ### Example ```java @@ -2204,25 +3002,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceClaimTemplate - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Patch body = new V1Patch(); // V1Patch | + String name = "name_example"; // String | name of the DeviceClass String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1beta2ResourceClaimTemplate result = apiInstance.patchNamespacedResourceClaimTemplate(name, namespace, body) + V1beta2DeviceClass result = apiInstance.readDeviceClass(name) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#patchNamespacedResourceClaimTemplate"); + System.err.println("Exception when calling ResourceV1beta2Api#readDeviceClass"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2236,18 +3024,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceClaimTemplate | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | **V1Patch**| | | +| **name** | **String**| name of the DeviceClass | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type -[**V1beta2ResourceClaimTemplate**](V1beta2ResourceClaimTemplate.md) +[**V1beta2DeviceClass**](V1beta2DeviceClass.md) ### Authorization @@ -2255,23 +3037,22 @@ public class Example { ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **201** | Created | - | | **401** | Unauthorized | - | - -# **patchResourceSlice** -> V1beta2ResourceSlice patchResourceSlice(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + +# **readDeviceTaintRule** +> V1beta2DeviceTaintRule readDeviceTaintRule(name).pretty(pretty).execute(); -partially update the specified ResourceSlice +read the specified DeviceTaintRule ### Example ```java @@ -2295,24 +3076,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the ResourceSlice - V1Patch body = new V1Patch(); // V1Patch | + String name = "name_example"; // String | name of the DeviceTaintRule String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. try { - V1beta2ResourceSlice result = apiInstance.patchResourceSlice(name, body) + V1beta2DeviceTaintRule result = apiInstance.readDeviceTaintRule(name) .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#patchResourceSlice"); + System.err.println("Exception when calling ResourceV1beta2Api#readDeviceTaintRule"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2326,17 +3098,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the ResourceSlice | | -| **body** | **V1Patch**| | | +| **name** | **String**| name of the DeviceTaintRule | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | ### Return type -[**V1beta2ResourceSlice**](V1beta2ResourceSlice.md) +[**V1beta2DeviceTaintRule**](V1beta2DeviceTaintRule.md) ### Authorization @@ -2344,23 +3111,22 @@ public class Example { ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | -| **201** | Created | - | | **401** | Unauthorized | - | - -# **readDeviceClass** -> V1beta2DeviceClass readDeviceClass(name).pretty(pretty).execute(); + +# **readDeviceTaintRuleStatus** +> V1beta2DeviceTaintRule readDeviceTaintRuleStatus(name).pretty(pretty).execute(); -read the specified DeviceClass +read status of the specified DeviceTaintRule ### Example ```java @@ -2384,15 +3150,15 @@ public class Example { //BearerToken.setApiKeyPrefix("Token"); ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); - String name = "name_example"; // String | name of the DeviceClass + String name = "name_example"; // String | name of the DeviceTaintRule String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). try { - V1beta2DeviceClass result = apiInstance.readDeviceClass(name) + V1beta2DeviceTaintRule result = apiInstance.readDeviceTaintRuleStatus(name) .pretty(pretty) .execute(); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling ResourceV1beta2Api#readDeviceClass"); + System.err.println("Exception when calling ResourceV1beta2Api#readDeviceTaintRuleStatus"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2406,12 +3172,12 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the DeviceClass | | +| **name** | **String**| name of the DeviceTaintRule | | | **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | ### Return type -[**V1beta2DeviceClass**](V1beta2DeviceClass.md) +[**V1beta2DeviceTaintRule**](V1beta2DeviceTaintRule.md) ### Authorization @@ -2816,6 +3582,178 @@ public class Example { | **201** | Created | - | | **401** | Unauthorized | - | + +# **replaceDeviceTaintRule** +> V1beta2DeviceTaintRule replaceDeviceTaintRule(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + V1beta2DeviceTaintRule body = new V1beta2DeviceTaintRule(); // V1beta2DeviceTaintRule | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2DeviceTaintRule result = apiInstance.replaceDeviceTaintRule(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#replaceDeviceTaintRule"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceTaintRule | | +| **body** | [**V1beta2DeviceTaintRule**](V1beta2DeviceTaintRule.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta2DeviceTaintRule**](V1beta2DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **replaceDeviceTaintRuleStatus** +> V1beta2DeviceTaintRule replaceDeviceTaintRuleStatus(name, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace status of the specified DeviceTaintRule + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.ResourceV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ResourceV1beta2Api apiInstance = new ResourceV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DeviceTaintRule + V1beta2DeviceTaintRule body = new V1beta2DeviceTaintRule(); // V1beta2DeviceTaintRule | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1beta2DeviceTaintRule result = apiInstance.replaceDeviceTaintRuleStatus(name, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ResourceV1beta2Api#replaceDeviceTaintRuleStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the DeviceTaintRule | | +| **body** | [**V1beta2DeviceTaintRule**](V1beta2DeviceTaintRule.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1beta2DeviceTaintRule**](V1beta2DeviceTaintRule.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + # **replaceNamespacedResourceClaim** > V1beta2ResourceClaim replaceNamespacedResourceClaim(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); diff --git a/kubernetes/docs/SchedulingV1Api.md b/kubernetes/docs/SchedulingV1Api.md index eab2e0ada6..64b5a9e832 100644 --- a/kubernetes/docs/SchedulingV1Api.md +++ b/kubernetes/docs/SchedulingV1Api.md @@ -101,7 +101,7 @@ public class Example { # **deleteCollectionPriorityClass** -> V1Status deleteCollectionPriorityClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionPriorityClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -142,6 +142,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -159,6 +160,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -191,6 +193,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -375,7 +378,7 @@ This endpoint does not need any parameter. # **listPriorityClass** -> V1PriorityClassList listPriorityClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1PriorityClassList listPriorityClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -412,6 +415,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -425,6 +429,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -453,6 +458,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/SchedulingV1alpha1Api.md b/kubernetes/docs/SchedulingV1alpha1Api.md deleted file mode 100644 index c44f1db471..0000000000 --- a/kubernetes/docs/SchedulingV1alpha1Api.md +++ /dev/null @@ -1,843 +0,0 @@ -# SchedulingV1alpha1Api - -All URIs are relative to *http://localhost* - -| Method | HTTP request | Description | -|------------- | ------------- | -------------| -| [**createNamespacedWorkload**](SchedulingV1alpha1Api.md#createNamespacedWorkload) | **POST** /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads | | -| [**deleteCollectionNamespacedWorkload**](SchedulingV1alpha1Api.md#deleteCollectionNamespacedWorkload) | **DELETE** /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads | | -| [**deleteNamespacedWorkload**](SchedulingV1alpha1Api.md#deleteNamespacedWorkload) | **DELETE** /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name} | | -| [**getAPIResources**](SchedulingV1alpha1Api.md#getAPIResources) | **GET** /apis/scheduling.k8s.io/v1alpha1/ | | -| [**listNamespacedWorkload**](SchedulingV1alpha1Api.md#listNamespacedWorkload) | **GET** /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads | | -| [**listWorkloadForAllNamespaces**](SchedulingV1alpha1Api.md#listWorkloadForAllNamespaces) | **GET** /apis/scheduling.k8s.io/v1alpha1/workloads | | -| [**patchNamespacedWorkload**](SchedulingV1alpha1Api.md#patchNamespacedWorkload) | **PATCH** /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name} | | -| [**readNamespacedWorkload**](SchedulingV1alpha1Api.md#readNamespacedWorkload) | **GET** /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name} | | -| [**replaceNamespacedWorkload**](SchedulingV1alpha1Api.md#replaceNamespacedWorkload) | **PUT** /apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name} | | - - - -# **createNamespacedWorkload** -> V1alpha1Workload createNamespacedWorkload(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -create a Workload - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha1Workload body = new V1alpha1Workload(); // V1alpha1Workload | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha1Workload result = apiInstance.createNamespacedWorkload(namespace, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#createNamespacedWorkload"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | [**V1alpha1Workload**](V1alpha1Workload.md)| | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | - -### Return type - -[**V1alpha1Workload**](V1alpha1Workload.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **202** | Accepted | - | -| **401** | Unauthorized | - | - - -# **deleteCollectionNamespacedWorkload** -> V1Status deleteCollectionNamespacedWorkload(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); - - - -delete collection of Workload - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String _continue = "_continue_example"; // String | 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. - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | 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. - Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - String resourceVersion = "resourceVersion_example"; // String | 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 - String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteCollectionNamespacedWorkload(namespace) - .pretty(pretty) - ._continue(_continue) - .dryRun(dryRun) - .fieldSelector(fieldSelector) - .gracePeriodSeconds(gracePeriodSeconds) - .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) - .labelSelector(labelSelector) - .limit(limit) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#deleteCollectionNamespacedWorkload"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **_continue** | **String**| 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. | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | -| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| 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. | [optional] | -| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | -| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | -| **resourceVersion** | **String**| 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 | [optional] | -| **resourceVersionMatch** | **String**| 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 | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **deleteNamespacedWorkload** -> V1Status deleteNamespacedWorkload(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); - - - -delete a Workload - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the Workload - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. - Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it - Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. - String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. - V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | - try { - V1Status result = apiInstance.deleteNamespacedWorkload(name, namespace) - .pretty(pretty) - .dryRun(dryRun) - .gracePeriodSeconds(gracePeriodSeconds) - .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) - .orphanDependents(orphanDependents) - .propagationPolicy(propagationPolicy) - .body(body) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#deleteNamespacedWorkload"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the Workload | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | -| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | -| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | -| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | -| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | - -### Return type - -[**V1Status**](V1Status.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **202** | Accepted | - | -| **401** | Unauthorized | - | - - -# **getAPIResources** -> V1APIResourceList getAPIResources().execute(); - - - -get available resources - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); - try { - V1APIResourceList result = apiInstance.getAPIResources() - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#getAPIResources"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters -This endpoint does not need any parameter. - -### Return type - -[**V1APIResourceList**](V1APIResourceList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **listNamespacedWorkload** -> V1alpha1WorkloadList listNamespacedWorkload(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -list or watch objects of kind Workload - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - Boolean allowWatchBookmarks = true; // Boolean | 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. - String _continue = "_continue_example"; // String | 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | 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. - String resourceVersion = "resourceVersion_example"; // String | 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 - String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - try { - V1alpha1WorkloadList result = apiInstance.listNamespacedWorkload(namespace) - .pretty(pretty) - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#listNamespacedWorkload"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | -| **_continue** | **String**| 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. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| 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. | [optional] | -| **resourceVersion** | **String**| 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 | [optional] | -| **resourceVersionMatch** | **String**| 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 | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | - -### Return type - -[**V1alpha1WorkloadList**](V1alpha1WorkloadList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **listWorkloadForAllNamespaces** -> V1alpha1WorkloadList listWorkloadForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); - - - -list or watch objects of kind Workload - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); - Boolean allowWatchBookmarks = true; // Boolean | 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. - String _continue = "_continue_example"; // String | 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. - String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. - String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. - Integer limit = 56; // Integer | 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. - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String resourceVersion = "resourceVersion_example"; // String | 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 - String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 - Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. - Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. - Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - try { - V1alpha1WorkloadList result = apiInstance.listWorkloadForAllNamespaces() - .allowWatchBookmarks(allowWatchBookmarks) - ._continue(_continue) - .fieldSelector(fieldSelector) - .labelSelector(labelSelector) - .limit(limit) - .pretty(pretty) - .resourceVersion(resourceVersion) - .resourceVersionMatch(resourceVersionMatch) - .sendInitialEvents(sendInitialEvents) - .timeoutSeconds(timeoutSeconds) - .watch(watch) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#listWorkloadForAllNamespaces"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | -| **_continue** | **String**| 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. | [optional] | -| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | -| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | -| **limit** | **Integer**| 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. | [optional] | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **resourceVersion** | **String**| 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 | [optional] | -| **resourceVersionMatch** | **String**| 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 | [optional] | -| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | -| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | -| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | - -### Return type - -[**V1alpha1WorkloadList**](V1alpha1WorkloadList.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **patchNamespacedWorkload** -> V1alpha1Workload patchNamespacedWorkload(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); - - - -partially update the specified Workload - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the Workload - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1Patch body = new V1Patch(); // V1Patch | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. - try { - V1alpha1Workload result = apiInstance.patchNamespacedWorkload(name, namespace, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .force(force) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#patchNamespacedWorkload"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the Workload | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | **V1Patch**| | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | -| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | - -### Return type - -[**V1alpha1Workload**](V1alpha1Workload.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **401** | Unauthorized | - | - - -# **readNamespacedWorkload** -> V1alpha1Workload readNamespacedWorkload(name, namespace).pretty(pretty).execute(); - - - -read the specified Workload - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the Workload - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - try { - V1alpha1Workload result = apiInstance.readNamespacedWorkload(name, namespace) - .pretty(pretty) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#readNamespacedWorkload"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the Workload | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | - -### Return type - -[**V1alpha1Workload**](V1alpha1Workload.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **401** | Unauthorized | - | - - -# **replaceNamespacedWorkload** -> V1alpha1Workload replaceNamespacedWorkload(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); - - - -replace the specified Workload - -### Example -```java -// Import classes: -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.auth.*; -import io.kubernetes.client.openapi.models.*; -import io.kubernetes.client.openapi.apis.SchedulingV1alpha1Api; - -public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("http://localhost"); - - // Configure API key authorization: BearerToken - ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); - BearerToken.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //BearerToken.setApiKeyPrefix("Token"); - - SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); - String name = "name_example"; // String | name of the Workload - String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects - V1alpha1Workload body = new V1alpha1Workload(); // V1alpha1Workload | - String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). - String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed - String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. - String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. - try { - V1alpha1Workload result = apiInstance.replaceNamespacedWorkload(name, namespace, body) - .pretty(pretty) - .dryRun(dryRun) - .fieldManager(fieldManager) - .fieldValidation(fieldValidation) - .execute(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#replaceNamespacedWorkload"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } - } -} -``` - -### Parameters - -| Name | Type | Description | Notes | -|------------- | ------------- | ------------- | -------------| -| **name** | **String**| name of the Workload | | -| **namespace** | **String**| object name and auth scope, such as for teams and projects | | -| **body** | [**V1alpha1Workload**](V1alpha1Workload.md)| | | -| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | -| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | -| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | -| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | - -### Return type - -[**V1alpha1Workload**](V1alpha1Workload.md) - -### Authorization - -[BearerToken](../README.md#BearerToken) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -| **200** | OK | - | -| **201** | Created | - | -| **401** | Unauthorized | - | - diff --git a/kubernetes/docs/SchedulingV1alpha2Api.md b/kubernetes/docs/SchedulingV1alpha2Api.md new file mode 100644 index 0000000000..2cff397921 --- /dev/null +++ b/kubernetes/docs/SchedulingV1alpha2Api.md @@ -0,0 +1,1886 @@ +# SchedulingV1alpha2Api + +All URIs are relative to *http://localhost* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createNamespacedPodGroup**](SchedulingV1alpha2Api.md#createNamespacedPodGroup) | **POST** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | | +| [**createNamespacedWorkload**](SchedulingV1alpha2Api.md#createNamespacedWorkload) | **POST** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | | +| [**deleteCollectionNamespacedPodGroup**](SchedulingV1alpha2Api.md#deleteCollectionNamespacedPodGroup) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | | +| [**deleteCollectionNamespacedWorkload**](SchedulingV1alpha2Api.md#deleteCollectionNamespacedWorkload) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | | +| [**deleteNamespacedPodGroup**](SchedulingV1alpha2Api.md#deleteNamespacedPodGroup) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | | +| [**deleteNamespacedWorkload**](SchedulingV1alpha2Api.md#deleteNamespacedWorkload) | **DELETE** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | | +| [**getAPIResources**](SchedulingV1alpha2Api.md#getAPIResources) | **GET** /apis/scheduling.k8s.io/v1alpha2/ | | +| [**listNamespacedPodGroup**](SchedulingV1alpha2Api.md#listNamespacedPodGroup) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups | | +| [**listNamespacedWorkload**](SchedulingV1alpha2Api.md#listNamespacedWorkload) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads | | +| [**listPodGroupForAllNamespaces**](SchedulingV1alpha2Api.md#listPodGroupForAllNamespaces) | **GET** /apis/scheduling.k8s.io/v1alpha2/podgroups | | +| [**listWorkloadForAllNamespaces**](SchedulingV1alpha2Api.md#listWorkloadForAllNamespaces) | **GET** /apis/scheduling.k8s.io/v1alpha2/workloads | | +| [**patchNamespacedPodGroup**](SchedulingV1alpha2Api.md#patchNamespacedPodGroup) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | | +| [**patchNamespacedPodGroupStatus**](SchedulingV1alpha2Api.md#patchNamespacedPodGroupStatus) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | | +| [**patchNamespacedWorkload**](SchedulingV1alpha2Api.md#patchNamespacedWorkload) | **PATCH** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | | +| [**readNamespacedPodGroup**](SchedulingV1alpha2Api.md#readNamespacedPodGroup) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | | +| [**readNamespacedPodGroupStatus**](SchedulingV1alpha2Api.md#readNamespacedPodGroupStatus) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | | +| [**readNamespacedWorkload**](SchedulingV1alpha2Api.md#readNamespacedWorkload) | **GET** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | | +| [**replaceNamespacedPodGroup**](SchedulingV1alpha2Api.md#replaceNamespacedPodGroup) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name} | | +| [**replaceNamespacedPodGroupStatus**](SchedulingV1alpha2Api.md#replaceNamespacedPodGroupStatus) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status | | +| [**replaceNamespacedWorkload**](SchedulingV1alpha2Api.md#replaceNamespacedWorkload) | **PUT** /apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name} | | + + + +# **createNamespacedPodGroup** +> V1alpha2PodGroup createNamespacedPodGroup(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a PodGroup + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha2PodGroup body = new V1alpha2PodGroup(); // V1alpha2PodGroup | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha2PodGroup result = apiInstance.createNamespacedPodGroup(namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#createNamespacedPodGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha2PodGroup**](V1alpha2PodGroup.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1alpha2PodGroup**](V1alpha2PodGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **createNamespacedWorkload** +> V1alpha2Workload createNamespacedWorkload(namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +create a Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha2Workload body = new V1alpha2Workload(); // V1alpha2Workload | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha2Workload result = apiInstance.createNamespacedWorkload(namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#createNamespacedWorkload"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha2Workload**](V1alpha2Workload.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1alpha2Workload**](V1alpha2Workload.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteCollectionNamespacedPodGroup** +> V1Status deleteCollectionNamespacedPodGroup(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of PodGroup + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | 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. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedPodGroup(namespace) + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#deleteCollectionNamespacedPodGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **deleteCollectionNamespacedWorkload** +> V1Status deleteCollectionNamespacedWorkload(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); + + + +delete collection of Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String _continue = "_continue_example"; // String | 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. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedWorkload(namespace) + .pretty(pretty) + ._continue(_continue) + .dryRun(dryRun) + .fieldSelector(fieldSelector) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .labelSelector(labelSelector) + .limit(limit) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#deleteCollectionNamespacedWorkload"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **deleteNamespacedPodGroup** +> V1Status deleteNamespacedPodGroup(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a PodGroup + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String name = "name_example"; // String | name of the PodGroup + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedPodGroup(name, namespace) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#deleteNamespacedPodGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodGroup | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **deleteNamespacedWorkload** +> V1Status deleteNamespacedWorkload(name, namespace).pretty(pretty).dryRun(dryRun).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).body(body).execute(); + + + +delete a Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String name = "name_example"; // String | name of the Workload + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean ignoreStoreReadErrorWithClusterBreakingPotential = true; // Boolean | if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedWorkload(name, namespace) + .pretty(pretty) + .dryRun(dryRun) + .gracePeriodSeconds(gracePeriodSeconds) + .ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential) + .orphanDependents(orphanDependents) + .propagationPolicy(propagationPolicy) + .body(body) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#deleteNamespacedWorkload"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Workload | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] | +| **ignoreStoreReadErrorWithClusterBreakingPotential** | **Boolean**| if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it | [optional] | +| **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] | +| **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] | +| **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | + +### Return type + +[**V1Status**](V1Status.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **202** | Accepted | - | +| **401** | Unauthorized | - | + + +# **getAPIResources** +> V1APIResourceList getAPIResources().execute(); + + + +get available resources + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources() + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**V1APIResourceList**](V1APIResourceList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listNamespacedPodGroup** +> V1alpha2PodGroupList listNamespacedPodGroup(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind PodGroup + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | 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. + String _continue = "_continue_example"; // String | 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha2PodGroupList result = apiInstance.listNamespacedPodGroup(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#listNamespacedPodGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1alpha2PodGroupList**](V1alpha2PodGroupList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listNamespacedWorkload** +> V1alpha2WorkloadList listNamespacedWorkload(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + Boolean allowWatchBookmarks = true; // Boolean | 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. + String _continue = "_continue_example"; // String | 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha2WorkloadList result = apiInstance.listNamespacedWorkload(namespace) + .pretty(pretty) + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#listNamespacedWorkload"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1alpha2WorkloadList**](V1alpha2WorkloadList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listPodGroupForAllNamespaces** +> V1alpha2PodGroupList listPodGroupForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind PodGroup + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | 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. + String _continue = "_continue_example"; // String | 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha2PodGroupList result = apiInstance.listPodGroupForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#listPodGroupForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1alpha2PodGroupList**](V1alpha2PodGroupList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **listWorkloadForAllNamespaces** +> V1alpha2WorkloadList listWorkloadForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); + + + +list or watch objects of kind Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | 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. + String _continue = "_continue_example"; // String | 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. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | 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. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String resourceVersion = "resourceVersion_example"; // String | 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 + String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 + Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha2WorkloadList result = apiInstance.listWorkloadForAllNamespaces() + .allowWatchBookmarks(allowWatchBookmarks) + ._continue(_continue) + .fieldSelector(fieldSelector) + .labelSelector(labelSelector) + .limit(limit) + .pretty(pretty) + .resourceVersion(resourceVersion) + .resourceVersionMatch(resourceVersionMatch) + .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) + .timeoutSeconds(timeoutSeconds) + .watch(watch) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#listWorkloadForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **allowWatchBookmarks** | **Boolean**| 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. | [optional] | +| **_continue** | **String**| 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. | [optional] | +| **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] | +| **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] | +| **limit** | **Integer**| 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. | [optional] | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **resourceVersion** | **String**| 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 | [optional] | +| **resourceVersionMatch** | **String**| 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 | [optional] | +| **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | +| **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | +| **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | + +### Return type + +[**V1alpha2WorkloadList**](V1alpha2WorkloadList.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch, application/cbor-seq + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **patchNamespacedPodGroup** +> V1alpha2PodGroup patchNamespacedPodGroup(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified PodGroup + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String name = "name_example"; // String | name of the PodGroup + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha2PodGroup result = apiInstance.patchNamespacedPodGroup(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#patchNamespacedPodGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodGroup | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1alpha2PodGroup**](V1alpha2PodGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchNamespacedPodGroupStatus** +> V1alpha2PodGroup patchNamespacedPodGroupStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update status of the specified PodGroup + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String name = "name_example"; // String | name of the PodGroup + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha2PodGroup result = apiInstance.patchNamespacedPodGroupStatus(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#patchNamespacedPodGroupStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodGroup | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1alpha2PodGroup**](V1alpha2PodGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **patchNamespacedWorkload** +> V1alpha2Workload patchNamespacedWorkload(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).force(force).execute(); + + + +partially update the specified Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String name = "name_example"; // String | name of the Workload + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Patch body = new V1Patch(); // V1Patch | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha2Workload result = apiInstance.patchNamespacedWorkload(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .force(force) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#patchNamespacedWorkload"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Workload | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | **V1Patch**| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | +| **force** | **Boolean**| Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. | [optional] | + +### Return type + +[**V1alpha2Workload**](V1alpha2Workload.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **readNamespacedPodGroup** +> V1alpha2PodGroup readNamespacedPodGroup(name, namespace).pretty(pretty).execute(); + + + +read the specified PodGroup + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String name = "name_example"; // String | name of the PodGroup + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1alpha2PodGroup result = apiInstance.readNamespacedPodGroup(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#readNamespacedPodGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodGroup | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**V1alpha2PodGroup**](V1alpha2PodGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **readNamespacedPodGroupStatus** +> V1alpha2PodGroup readNamespacedPodGroupStatus(name, namespace).pretty(pretty).execute(); + + + +read status of the specified PodGroup + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String name = "name_example"; // String | name of the PodGroup + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1alpha2PodGroup result = apiInstance.readNamespacedPodGroupStatus(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#readNamespacedPodGroupStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodGroup | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**V1alpha2PodGroup**](V1alpha2PodGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **readNamespacedWorkload** +> V1alpha2Workload readNamespacedWorkload(name, namespace).pretty(pretty).execute(); + + + +read the specified Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String name = "name_example"; // String | name of the Workload + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + try { + V1alpha2Workload result = apiInstance.readNamespacedWorkload(name, namespace) + .pretty(pretty) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#readNamespacedWorkload"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Workload | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | + +### Return type + +[**V1alpha2Workload**](V1alpha2Workload.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **401** | Unauthorized | - | + + +# **replaceNamespacedPodGroup** +> V1alpha2PodGroup replaceNamespacedPodGroup(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified PodGroup + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String name = "name_example"; // String | name of the PodGroup + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha2PodGroup body = new V1alpha2PodGroup(); // V1alpha2PodGroup | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha2PodGroup result = apiInstance.replaceNamespacedPodGroup(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#replaceNamespacedPodGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodGroup | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha2PodGroup**](V1alpha2PodGroup.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1alpha2PodGroup**](V1alpha2PodGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **replaceNamespacedPodGroupStatus** +> V1alpha2PodGroup replaceNamespacedPodGroupStatus(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace status of the specified PodGroup + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String name = "name_example"; // String | name of the PodGroup + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha2PodGroup body = new V1alpha2PodGroup(); // V1alpha2PodGroup | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha2PodGroup result = apiInstance.replaceNamespacedPodGroupStatus(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#replaceNamespacedPodGroupStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the PodGroup | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha2PodGroup**](V1alpha2PodGroup.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1alpha2PodGroup**](V1alpha2PodGroup.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + + +# **replaceNamespacedWorkload** +> V1alpha2Workload replaceNamespacedWorkload(name, namespace, body).pretty(pretty).dryRun(dryRun).fieldManager(fieldManager).fieldValidation(fieldValidation).execute(); + + + +replace the specified Workload + +### Example +```java +// Import classes: +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.auth.*; +import io.kubernetes.client.openapi.models.*; +import io.kubernetes.client.openapi.apis.SchedulingV1alpha2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha2Api apiInstance = new SchedulingV1alpha2Api(defaultClient); + String name = "name_example"; // String | name of the Workload + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha2Workload body = new V1alpha2Workload(); // V1alpha2Workload | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String fieldValidation = "fieldValidation_example"; // String | fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. + try { + V1alpha2Workload result = apiInstance.replaceNamespacedWorkload(name, namespace, body) + .pretty(pretty) + .dryRun(dryRun) + .fieldManager(fieldManager) + .fieldValidation(fieldValidation) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha2Api#replaceNamespacedWorkload"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **name** | **String**| name of the Workload | | +| **namespace** | **String**| object name and auth scope, such as for teams and projects | | +| **body** | [**V1alpha2Workload**](V1alpha2Workload.md)| | | +| **pretty** | **String**| If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). | [optional] | +| **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | +| **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. | [optional] | +| **fieldValidation** | **String**| fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. | [optional] | + +### Return type + +[**V1alpha2Workload**](V1alpha2Workload.md) + +### Authorization + +[BearerToken](../README.md#BearerToken) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/cbor + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | OK | - | +| **201** | Created | - | +| **401** | Unauthorized | - | + diff --git a/kubernetes/docs/StorageV1Api.md b/kubernetes/docs/StorageV1Api.md index f193345630..40ee37d121 100644 --- a/kubernetes/docs/StorageV1Api.md +++ b/kubernetes/docs/StorageV1Api.md @@ -753,7 +753,7 @@ public class Example { # **deleteCollectionCSIDriver** -> V1Status deleteCollectionCSIDriver().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionCSIDriver().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -794,6 +794,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -811,6 +812,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -843,6 +845,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -867,7 +870,7 @@ public class Example { # **deleteCollectionCSINode** -> V1Status deleteCollectionCSINode().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionCSINode().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -908,6 +911,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -925,6 +929,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -957,6 +962,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -981,7 +987,7 @@ public class Example { # **deleteCollectionNamespacedCSIStorageCapacity** -> V1Status deleteCollectionNamespacedCSIStorageCapacity(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionNamespacedCSIStorageCapacity(namespace).pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -1023,6 +1029,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -1040,6 +1047,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -1073,6 +1081,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -1097,7 +1106,7 @@ public class Example { # **deleteCollectionStorageClass** -> V1Status deleteCollectionStorageClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionStorageClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -1138,6 +1147,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -1155,6 +1165,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -1187,6 +1198,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -1211,7 +1223,7 @@ public class Example { # **deleteCollectionVolumeAttachment** -> V1Status deleteCollectionVolumeAttachment().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionVolumeAttachment().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -1252,6 +1264,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -1269,6 +1282,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -1301,6 +1315,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -1325,7 +1340,7 @@ public class Example { # **deleteCollectionVolumeAttributesClass** -> V1Status deleteCollectionVolumeAttributesClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionVolumeAttributesClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -1366,6 +1381,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -1383,6 +1399,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -1415,6 +1432,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -1880,7 +1898,7 @@ This endpoint does not need any parameter. # **listCSIDriver** -> V1CSIDriverList listCSIDriver().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1CSIDriverList listCSIDriver().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -1917,6 +1935,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -1930,6 +1949,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -1958,6 +1978,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -1982,7 +2003,7 @@ public class Example { # **listCSINode** -> V1CSINodeList listCSINode().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1CSINodeList listCSINode().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2019,6 +2040,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -2032,6 +2054,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2060,6 +2083,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -2084,7 +2108,7 @@ public class Example { # **listCSIStorageCapacityForAllNamespaces** -> V1CSIStorageCapacityList listCSIStorageCapacityForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1CSIStorageCapacityList listCSIStorageCapacityForAllNamespaces().allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).pretty(pretty).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2121,6 +2145,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -2134,6 +2159,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2162,6 +2188,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -2186,7 +2213,7 @@ public class Example { # **listNamespacedCSIStorageCapacity** -> V1CSIStorageCapacityList listNamespacedCSIStorageCapacity(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1CSIStorageCapacityList listNamespacedCSIStorageCapacity(namespace).pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2224,6 +2251,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -2237,6 +2265,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2266,6 +2295,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -2290,7 +2320,7 @@ public class Example { # **listStorageClass** -> V1StorageClassList listStorageClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1StorageClassList listStorageClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2327,6 +2357,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -2340,6 +2371,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2368,6 +2400,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -2392,7 +2425,7 @@ public class Example { # **listVolumeAttachment** -> V1VolumeAttachmentList listVolumeAttachment().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1VolumeAttachmentList listVolumeAttachment().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2429,6 +2462,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -2442,6 +2476,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2470,6 +2505,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | @@ -2494,7 +2530,7 @@ public class Example { # **listVolumeAttributesClass** -> V1VolumeAttributesClassList listVolumeAttributesClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1VolumeAttributesClassList listVolumeAttributesClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -2531,6 +2567,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -2544,6 +2581,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -2572,6 +2610,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/StorageV1beta1Api.md b/kubernetes/docs/StorageV1beta1Api.md index ab9e5c5e9a..6902a51c25 100644 --- a/kubernetes/docs/StorageV1beta1Api.md +++ b/kubernetes/docs/StorageV1beta1Api.md @@ -101,7 +101,7 @@ public class Example { # **deleteCollectionVolumeAttributesClass** -> V1Status deleteCollectionVolumeAttributesClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionVolumeAttributesClass().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -142,6 +142,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -159,6 +160,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -191,6 +193,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -375,7 +378,7 @@ This endpoint does not need any parameter. # **listVolumeAttributesClass** -> V1beta1VolumeAttributesClassList listVolumeAttributesClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1VolumeAttributesClassList listVolumeAttributesClass().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -412,6 +415,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -425,6 +429,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -453,6 +458,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/StoragemigrationV1beta1Api.md b/kubernetes/docs/StoragemigrationV1beta1Api.md index fc6ed1c890..35e46f8034 100644 --- a/kubernetes/docs/StoragemigrationV1beta1Api.md +++ b/kubernetes/docs/StoragemigrationV1beta1Api.md @@ -104,7 +104,7 @@ public class Example { # **deleteCollectionStorageVersionMigration** -> V1Status deleteCollectionStorageVersionMigration().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).body(body).execute(); +> V1Status deleteCollectionStorageVersionMigration().pretty(pretty)._continue(_continue).dryRun(dryRun).fieldSelector(fieldSelector).gracePeriodSeconds(gracePeriodSeconds).ignoreStoreReadErrorWithClusterBreakingPotential(ignoreStoreReadErrorWithClusterBreakingPotential).labelSelector(labelSelector).limit(limit).orphanDependents(orphanDependents).propagationPolicy(propagationPolicy).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).body(body).execute(); @@ -145,6 +145,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | try { @@ -162,6 +163,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .body(body) .execute(); @@ -194,6 +196,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] | @@ -378,7 +381,7 @@ This endpoint does not need any parameter. # **listStorageVersionMigration** -> V1beta1StorageVersionMigrationList listStorageVersionMigration().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).timeoutSeconds(timeoutSeconds).watch(watch).execute(); +> V1beta1StorageVersionMigrationList listStorageVersionMigration().pretty(pretty).allowWatchBookmarks(allowWatchBookmarks)._continue(_continue).fieldSelector(fieldSelector).labelSelector(labelSelector).limit(limit).resourceVersion(resourceVersion).resourceVersionMatch(resourceVersionMatch).sendInitialEvents(sendInitialEvents).shardSelector(shardSelector).timeoutSeconds(timeoutSeconds).watch(watch).execute(); @@ -415,6 +418,7 @@ public class Example { String resourceVersion = "resourceVersion_example"; // String | 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 String resourceVersionMatch = "resourceVersionMatch_example"; // String | 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 Boolean sendInitialEvents = true; // Boolean | `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. + String shardSelector = "shardSelector_example"; // String | shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. try { @@ -428,6 +432,7 @@ public class Example { .resourceVersion(resourceVersion) .resourceVersionMatch(resourceVersionMatch) .sendInitialEvents(sendInitialEvents) + .shardSelector(shardSelector) .timeoutSeconds(timeoutSeconds) .watch(watch) .execute(); @@ -456,6 +461,7 @@ public class Example { | **resourceVersion** | **String**| 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 | [optional] | | **resourceVersionMatch** | **String**| 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 | [optional] | | **sendInitialEvents** | **Boolean**| `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. | [optional] | +| **shardSelector** | **String**| shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. | [optional] | | **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] | | **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] | diff --git a/kubernetes/docs/V1AllocationResult.md b/kubernetes/docs/V1AllocationResult.md index 7eeca9404e..5cff89c0b2 100644 --- a/kubernetes/docs/V1AllocationResult.md +++ b/kubernetes/docs/V1AllocationResult.md @@ -8,7 +8,7 @@ AllocationResult contains attributes of an allocated resource. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**allocationTimestamp** | **OffsetDateTime** | AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. | [optional] | +|**allocationTimestamp** | **OffsetDateTime** | AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. | [optional] | |**devices** | [**V1DeviceAllocationResult**](V1DeviceAllocationResult.md) | | [optional] | |**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | diff --git a/kubernetes/docs/V1ApplyConfiguration.md b/kubernetes/docs/V1ApplyConfiguration.md new file mode 100644 index 0000000000..9beaef88a1 --- /dev/null +++ b/kubernetes/docs/V1ApplyConfiguration.md @@ -0,0 +1,14 @@ + + +# V1ApplyConfiguration + +ApplyConfiguration defines the desired configuration values of an object. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expression** | **String** | expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field: Object{ spec: Object.spec{ serviceAccountName: \"example\" } } Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration. CEL expressions have access to the object types needed to create apply configurations: - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. | [optional] | + + + diff --git a/kubernetes/docs/V1BoundObjectReference.md b/kubernetes/docs/V1BoundObjectReference.md index 2b2df9931d..855d758c0f 100644 --- a/kubernetes/docs/V1BoundObjectReference.md +++ b/kubernetes/docs/V1BoundObjectReference.md @@ -8,10 +8,10 @@ BoundObjectReference is a reference to an object that a token is bound to. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**apiVersion** | **String** | API version of the referent. | [optional] | -|**kind** | **String** | Kind of the referent. Valid kinds are 'Pod' and 'Secret'. | [optional] | -|**name** | **String** | Name of the referent. | [optional] | -|**uid** | **String** | UID of the referent. | [optional] | +|**apiVersion** | **String** | apiVersion is API version of the referent. | [optional] | +|**kind** | **String** | kind of the referent. Valid kinds are 'Pod' and 'Secret'. | [optional] | +|**name** | **String** | name of the referent. | [optional] | +|**uid** | **String** | uid of the referent. | [optional] | diff --git a/kubernetes/docs/V1CELDeviceSelector.md b/kubernetes/docs/V1CELDeviceSelector.md index 4d042a1aad..999063cfb9 100644 --- a/kubernetes/docs/V1CELDeviceSelector.md +++ b/kubernetes/docs/V1CELDeviceSelector.md @@ -8,7 +8,7 @@ CELDeviceSelector contains a CEL expression for selecting a device. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**expression** | **String** | Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. | | +|**expression** | **String** | Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. | | diff --git a/kubernetes/docs/V1CSIDriverSpec.md b/kubernetes/docs/V1CSIDriverSpec.md index f8609b74f3..283e937836 100644 --- a/kubernetes/docs/V1CSIDriverSpec.md +++ b/kubernetes/docs/V1CSIDriverSpec.md @@ -10,8 +10,9 @@ CSIDriverSpec is the specification of a CSIDriver. |------------ | ------------- | ------------- | -------------| |**attachRequired** | **Boolean** | attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. | [optional] | |**fsGroupPolicy** | **String** | 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 was immutable in Kubernetes < 1.29 and now is mutable. Defaults to ReadWriteOnceWithFSType, which will examine each volume to determine if Kubernetes should modify ownership and permissions of the volume. With the default policy the defined fsGroup will only be applied if a fstype is defined and the volume's access mode contains ReadWriteOnce. | [optional] | -|**nodeAllocatableUpdatePeriodSeconds** | **Long** | nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. | [optional] | +|**nodeAllocatableUpdatePeriodSeconds** | **Long** | nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This feature requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. | [optional] | |**podInfoOnMount** | **Boolean** | podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix 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\" if the volume is an ephemeral inline volume defined by a CSIVolumeSource, otherwise \"false\" \"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod 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. This field was immutable in Kubernetes < 1.29 and now is mutable. | [optional] | +|**preventPodSchedulingIfMissing** | **Boolean** | PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod scheduling if the CSI driver on the node is missing. Enabling this option will prevent the scheduler (or any other component which embeds default scheduler such as cluster-autoscaler) from scheduling pods to nodes where CSI driver is not installed. For components(such as cluster-autoscaler) that embed the scheduler and run pod placement simulations using scheduler plugins, they MUST be aware of CSI driver registration information via CSINode object. They must create simulated CSINode objects in addition to Node objects during scheduling simulation, otherwise if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any newly created node may be rejected by the scheduler because of missing CSI driver information from the node. This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\". | [optional] | |**requiresRepublish** | **Boolean** | requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false. Note: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container. | [optional] | |**seLinuxMount** | **Boolean** | seLinuxMount specifies if the CSI driver supports \"-o context\" mount option. When \"true\", the CSI driver must ensure that all volumes provided by this CSI driver can be mounted separately with different `-o context` options. This is typical for storage backends that provide volumes as filesystems on block devices or as independent shared volumes. Kubernetes will call NodeStage / NodePublish with \"-o context=xyz\" mount option when mounting a ReadWriteOncePod volume used in Pod that has explicitly set SELinux context. In the future, it may be expanded to other volume AccessModes. In any case, Kubernetes will ensure that the volume is mounted only with a single SELinux context. When \"false\", Kubernetes won't pass any special SELinux mount options to the driver. This is typical for volumes that represent subdirectories of a bigger shared filesystem. Default is \"false\". | [optional] | |**serviceAccountTokenInSecrets** | **Boolean** | serviceAccountTokenInSecrets is an opt-in for CSI drivers to indicate that service account tokens should be passed via the Secrets field in NodePublishVolumeRequest instead of the VolumeContext field. The CSI specification provides a dedicated Secrets field for sensitive information like tokens, which is the appropriate mechanism for handling credentials. This addresses security concerns where sensitive tokens were being logged as part of volume context. When \"true\", kubelet will pass the tokens only in the Secrets field with the key \"csi.storage.k8s.io/serviceAccount.tokens\". The CSI driver must be updated to read tokens from the Secrets field instead of VolumeContext. When \"false\" or not set, kubelet will pass the tokens in VolumeContext with the key \"csi.storage.k8s.io/serviceAccount.tokens\" (existing behavior). This maintains backward compatibility with existing CSI drivers. This field can only be set when TokenRequests is configured. The API server will reject CSIDriver specs that set this field without TokenRequests. Default behavior if unset is to pass tokens in the VolumeContext field. | [optional] | diff --git a/kubernetes/docs/V1CronJob.md b/kubernetes/docs/V1CronJob.md index bc0eebde44..523319f987 100644 --- a/kubernetes/docs/V1CronJob.md +++ b/kubernetes/docs/V1CronJob.md @@ -11,7 +11,7 @@ CronJob represents the configuration of a single cron job. |**apiVersion** | **String** | 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 | [optional] | |**kind** | **String** | 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 | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**spec** | [**V1CronJobSpec**](V1CronJobSpec.md) | | [optional] | +|**spec** | [**V1CronJobSpec**](V1CronJobSpec.md) | | | |**status** | [**V1CronJobStatus**](V1CronJobStatus.md) | | [optional] | diff --git a/kubernetes/docs/V1Device.md b/kubernetes/docs/V1Device.md index 056d87a3aa..e5f959fdba 100644 --- a/kubernetes/docs/V1Device.md +++ b/kubernetes/docs/V1Device.md @@ -11,15 +11,16 @@ Device represents one individual hardware instance that can be selected based on |**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | |**allowMultipleAllocations** | **Boolean** | AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. | [optional] | |**attributes** | [**Map<String, V1DeviceAttribute>**](V1DeviceAttribute.md) | Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | -|**bindingConditions** | **List<String>** | BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | -|**bindingFailureConditions** | **List<String>** | BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | -|**bindsToNode** | **Boolean** | BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingConditions** | **List<String>** | BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindsToNode** | **Boolean** | BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | |**capacity** | [**Map<String, V1DeviceCapacity>**](V1DeviceCapacity.md) | Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | |**consumesCounters** | [**List<V1DeviceCounterConsumption>**](V1DeviceCounterConsumption.md) | ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The maximum number of device counter consumptions per device is 2. | [optional] | |**name** | **String** | Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. | | +|**nodeAllocatableResourceMappings** | [**Map<String, V1NodeAllocatableResourceMapping>**](V1NodeAllocatableResourceMapping.md) | NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. | [optional] | |**nodeName** | **String** | NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | |**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | -|**taints** | [**List<V1DeviceTaint>**](V1DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | +|**taints** | [**List<V1DeviceTaint>**](V1DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1DeviceAttribute.md b/kubernetes/docs/V1DeviceAttribute.md index 4547b8c079..f64aa18ce9 100644 --- a/kubernetes/docs/V1DeviceAttribute.md +++ b/kubernetes/docs/V1DeviceAttribute.md @@ -9,9 +9,13 @@ DeviceAttribute must have exactly one field set. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**bool** | **Boolean** | BoolValue is a true/false value. | [optional] | +|**bools** | **List<Boolean>** | BoolValues is a non-empty list of true/false values. | [optional] | |**_int** | **Long** | IntValue is a number. | [optional] | +|**ints** | **List<Long>** | IntValues is a non-empty list of numbers. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. | [optional] | |**string** | **String** | StringValue is a string. Must not be longer than 64 characters. | [optional] | +|**strings** | **List<String>** | StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. | [optional] | |**version** | **String** | VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. | [optional] | +|**versions** | **List<String>** | VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. | [optional] | diff --git a/kubernetes/docs/V1DeviceClass.md b/kubernetes/docs/V1DeviceClass.md index f0ffa5ee67..c1d59c31e4 100644 --- a/kubernetes/docs/V1DeviceClass.md +++ b/kubernetes/docs/V1DeviceClass.md @@ -2,7 +2,7 @@ # V1DeviceClass -DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. +DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. ## Properties diff --git a/kubernetes/docs/V1DeviceClassSpec.md b/kubernetes/docs/V1DeviceClassSpec.md index 0cc21347f6..3d577f6128 100644 --- a/kubernetes/docs/V1DeviceClassSpec.md +++ b/kubernetes/docs/V1DeviceClassSpec.md @@ -9,7 +9,7 @@ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and h | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**config** | [**List<V1DeviceClassConfiguration>**](V1DeviceClassConfiguration.md) | Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim. | [optional] | -|**extendedResourceName** | **String** | ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. | [optional] | +|**extendedResourceName** | **String** | ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field. | [optional] | |**selectors** | [**List<V1DeviceSelector>**](V1DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] | diff --git a/kubernetes/docs/V1DeviceConstraint.md b/kubernetes/docs/V1DeviceConstraint.md index e6f4be0393..654461e3aa 100644 --- a/kubernetes/docs/V1DeviceConstraint.md +++ b/kubernetes/docs/V1DeviceConstraint.md @@ -8,8 +8,8 @@ DeviceConstraint must have exactly one field set besides Requests. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**distinctAttribute** | **String** | DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. | [optional] | -|**matchAttribute** | **String** | MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. | [optional] | +|**distinctAttribute** | **String** | DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. | [optional] | +|**matchAttribute** | **String** | MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as single-element lists for backward compatibility. Must include the domain qualifier. | [optional] | |**requests** | **List<String>** | Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. | [optional] | diff --git a/kubernetes/docs/V1DeviceRequestAllocationResult.md b/kubernetes/docs/V1DeviceRequestAllocationResult.md index 1be336c294..a3aa8cd0fe 100644 --- a/kubernetes/docs/V1DeviceRequestAllocationResult.md +++ b/kubernetes/docs/V1DeviceRequestAllocationResult.md @@ -8,16 +8,16 @@ DeviceRequestAllocationResult contains the allocation result for one request. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**adminAccess** | **Boolean** | AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | -|**bindingConditions** | **List<String>** | BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | -|**bindingFailureConditions** | **List<String>** | BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**adminAccess** | **Boolean** | AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | +|**bindingConditions** | **List<String>** | BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | |**consumedCapacity** | **Map<String, Quantity>** | ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. | [optional] | |**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | | |**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters. | | |**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | | |**request** | **String** | Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. | | |**shareID** | **String** | ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. | [optional] | -|**tolerations** | [**List<V1DeviceToleration>**](V1DeviceToleration.md) | A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | +|**tolerations** | [**List<V1DeviceToleration>**](V1DeviceToleration.md) | A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1DeviceSubRequest.md b/kubernetes/docs/V1DeviceSubRequest.md index 6a273e1a47..4c4dcc847a 100644 --- a/kubernetes/docs/V1DeviceSubRequest.md +++ b/kubernetes/docs/V1DeviceSubRequest.md @@ -14,7 +14,7 @@ DeviceSubRequest describes a request for device provided in the claim.spec.devic |**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. | | |**name** | **String** | Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>. Must be a DNS label. | | |**selectors** | [**List<V1DeviceSelector>**](V1DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered. | [optional] | -|**tolerations** | [**List<V1DeviceToleration>**](V1DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | +|**tolerations** | [**List<V1DeviceToleration>**](V1DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1DeviceTaint.md b/kubernetes/docs/V1DeviceTaint.md index 1a589a2c24..59b525e752 100644 --- a/kubernetes/docs/V1DeviceTaint.md +++ b/kubernetes/docs/V1DeviceTaint.md @@ -10,7 +10,7 @@ The device this taint is attached to has the \"effect\" on any claim which does |------------ | ------------- | ------------- | -------------| |**effect** | **String** | The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. | | |**key** | **String** | The taint key to be applied to a device. Must be a label name. | | -|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. | [optional] | +|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). | [optional] | |**value** | **String** | The taint value corresponding to the taint key. Must be a label value. | [optional] | diff --git a/kubernetes/docs/V1EndpointSlice.md b/kubernetes/docs/V1EndpointSlice.md index 28c2dc9aaa..f5a0d851d6 100644 --- a/kubernetes/docs/V1EndpointSlice.md +++ b/kubernetes/docs/V1EndpointSlice.md @@ -10,7 +10,7 @@ EndpointSlice represents a set of service endpoints. Most EndpointSlices are cre |------------ | ------------- | ------------- | -------------| |**addressType** | **String** | 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. (Deprecated) The EndpointSlice controller only generates, and kube-proxy only processes, slices of addressType \"IPv4\" and \"IPv6\". No semantics are defined for the \"FQDN\" type. | | |**apiVersion** | **String** | 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 | [optional] | -|**endpoints** | [**List<V1Endpoint>**](V1Endpoint.md) | endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. | | +|**endpoints** | [**List<V1Endpoint>**](V1Endpoint.md) | endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. | [optional] | |**kind** | **String** | 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 | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | |**ports** | [**List<DiscoveryV1EndpointPort>**](DiscoveryV1EndpointPort.md) | ports specifies the list of network ports exposed by each endpoint in this slice. Each port must have a unique name. Each slice may include a maximum of 100 ports. Services always have at least 1 port, so EndpointSlices generated by the EndpointSlice controller will likewise always have at least 1 port. EndpointSlices used for other purposes may have an empty ports list. | [optional] | diff --git a/kubernetes/docs/V1ExactDeviceRequest.md b/kubernetes/docs/V1ExactDeviceRequest.md index 51adf6d6af..e0526e4283 100644 --- a/kubernetes/docs/V1ExactDeviceRequest.md +++ b/kubernetes/docs/V1ExactDeviceRequest.md @@ -8,13 +8,13 @@ ExactDeviceRequest is a request for one or more identical devices. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**adminAccess** | **Boolean** | AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | +|**adminAccess** | **Boolean** | AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | |**allocationMode** | **String** | AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. | [optional] | |**capacity** | [**V1CapacityRequirements**](V1CapacityRequirements.md) | | [optional] | |**count** | **Long** | Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. | [optional] | |**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A DeviceClassName is required. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. | | |**selectors** | [**List<V1DeviceSelector>**](V1DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. | [optional] | -|**tolerations** | [**List<V1DeviceToleration>**](V1DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | +|**tolerations** | [**List<V1DeviceToleration>**](V1DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1ExpressionWarning.md b/kubernetes/docs/V1ExpressionWarning.md index d4c78bea9e..e2fb88f248 100644 --- a/kubernetes/docs/V1ExpressionWarning.md +++ b/kubernetes/docs/V1ExpressionWarning.md @@ -8,8 +8,8 @@ ExpressionWarning is a warning information that targets a specific expression. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**fieldRef** | **String** | The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\" | | -|**warning** | **String** | The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. | | +|**fieldRef** | **String** | fieldRef is the path to the field that refers to the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\" | | +|**warning** | **String** | warning contains the content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. | | diff --git a/kubernetes/docs/V1GroupVersionKind.md b/kubernetes/docs/V1GroupVersionKind.md new file mode 100644 index 0000000000..3a54d68c9f --- /dev/null +++ b/kubernetes/docs/V1GroupVersionKind.md @@ -0,0 +1,16 @@ + + +# V1GroupVersionKind + +GroupVersionKind unambiguously identifies a kind. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**group** | **String** | group is the group part of the GroupVersionKind. | | +|**kind** | **String** | kind is the kind part of the GroupVersionKind. | | +|**version** | **String** | version is the version part of the GroupVersionKind. | | + + + diff --git a/kubernetes/docs/V1HorizontalPodAutoscaler.md b/kubernetes/docs/V1HorizontalPodAutoscaler.md index 6a7336c65c..643b0df83a 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscaler.md +++ b/kubernetes/docs/V1HorizontalPodAutoscaler.md @@ -11,7 +11,7 @@ configuration of a horizontal pod autoscaler. |**apiVersion** | **String** | 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 | [optional] | |**kind** | **String** | 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 | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**spec** | [**V1HorizontalPodAutoscalerSpec**](V1HorizontalPodAutoscalerSpec.md) | | [optional] | +|**spec** | [**V1HorizontalPodAutoscalerSpec**](V1HorizontalPodAutoscalerSpec.md) | | | |**status** | [**V1HorizontalPodAutoscalerStatus**](V1HorizontalPodAutoscalerStatus.md) | | [optional] | diff --git a/kubernetes/docs/V1IPAddress.md b/kubernetes/docs/V1IPAddress.md index 586f0c8179..5a6e3a0e26 100644 --- a/kubernetes/docs/V1IPAddress.md +++ b/kubernetes/docs/V1IPAddress.md @@ -11,7 +11,7 @@ IPAddress represents a single IP of a single IP Family. The object is designed t |**apiVersion** | **String** | 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 | [optional] | |**kind** | **String** | 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 | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**spec** | [**V1IPAddressSpec**](V1IPAddressSpec.md) | | [optional] | +|**spec** | [**V1IPAddressSpec**](V1IPAddressSpec.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ImageVolumeStatus.md b/kubernetes/docs/V1ImageVolumeStatus.md new file mode 100644 index 0000000000..e77a5a7546 --- /dev/null +++ b/kubernetes/docs/V1ImageVolumeStatus.md @@ -0,0 +1,14 @@ + + +# V1ImageVolumeStatus + +ImageVolumeStatus represents the image-based volume status. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**imageRef** | **String** | ImageRef is the digest of the image used for this volume. It should have a value that's similar to the pod's status.containerStatuses[i].imageID. The ImageRef length should not exceed 256 characters. | | + + + diff --git a/kubernetes/docs/V1JSONPatch.md b/kubernetes/docs/V1JSONPatch.md new file mode 100644 index 0000000000..6c19158dcb --- /dev/null +++ b/kubernetes/docs/V1JSONPatch.md @@ -0,0 +1,14 @@ + + +# V1JSONPatch + +JSONPatch defines a JSON Patch. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**expression** | **String** | expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec expression must return an array of JSONPatch values. For example, this CEL expression returns a JSON patch to conditionally modify a value: [ JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"}, JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"} ] To define an object for the patch value, use Object types. For example: [ JSONPatch{ op: \"add\", path: \"/spec/selector\", value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}} } ] To use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example: [ JSONPatch{ op: \"add\", path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"), value: \"test\" }, ] CEL expressions have access to the types needed to create JSON patches and objects: - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, integer, array, map or object. If set, the 'path' and 'from' fields must be set to a [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as: - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. | [optional] | + + + diff --git a/kubernetes/docs/V1ListMeta.md b/kubernetes/docs/V1ListMeta.md index 6098f84d91..54e0296c02 100644 --- a/kubernetes/docs/V1ListMeta.md +++ b/kubernetes/docs/V1ListMeta.md @@ -12,6 +12,7 @@ ListMeta describes metadata that synthetic resources must have, including lists |**remainingItemCount** | **Long** | remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. | [optional] | |**resourceVersion** | **String** | String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency | [optional] | |**selfLink** | **String** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. | [optional] | +|**shardInfo** | [**V1ShardInfo**](V1ShardInfo.md) | | [optional] | diff --git a/kubernetes/docs/V1MatchCondition.md b/kubernetes/docs/V1MatchCondition.md index 52d4f8337b..f74570f1ab 100644 --- a/kubernetes/docs/V1MatchCondition.md +++ b/kubernetes/docs/V1MatchCondition.md @@ -8,8 +8,8 @@ MatchCondition represents a condition which must by fulfilled for a request to b | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**expression** | **String** | Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. | | -|**name** | **String** | Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. | | +|**expression** | **String** | expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. | | +|**name** | **String** | name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. | | diff --git a/kubernetes/docs/V1MatchResources.md b/kubernetes/docs/V1MatchResources.md index c407868ff0..5c8566f1a1 100644 --- a/kubernetes/docs/V1MatchResources.md +++ b/kubernetes/docs/V1MatchResources.md @@ -8,11 +8,11 @@ MatchResources decides whether to run the admission control policy on an object | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**excludeResourceRules** | [**List<V1NamedRuleWithOperations>**](V1NamedRuleWithOperations.md) | ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | [optional] | +|**excludeResourceRules** | [**List<V1NamedRuleWithOperations>**](V1NamedRuleWithOperations.md) | excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | [optional] | |**matchPolicy** | **String** | matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\" | [optional] | |**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | |**objectSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | -|**resourceRules** | [**List<V1NamedRuleWithOperations>**](V1NamedRuleWithOperations.md) | ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. | [optional] | +|**resourceRules** | [**List<V1NamedRuleWithOperations>**](V1NamedRuleWithOperations.md) | resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. | [optional] | diff --git a/kubernetes/docs/V1MutatingAdmissionPolicy.md b/kubernetes/docs/V1MutatingAdmissionPolicy.md new file mode 100644 index 0000000000..babb759b3b --- /dev/null +++ b/kubernetes/docs/V1MutatingAdmissionPolicy.md @@ -0,0 +1,21 @@ + + +# V1MutatingAdmissionPolicy + +MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | 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 | [optional] | +|**kind** | **String** | 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 | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1MutatingAdmissionPolicySpec**](V1MutatingAdmissionPolicySpec.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1MutatingAdmissionPolicyBinding.md b/kubernetes/docs/V1MutatingAdmissionPolicyBinding.md new file mode 100644 index 0000000000..8a3f9a8be1 --- /dev/null +++ b/kubernetes/docs/V1MutatingAdmissionPolicyBinding.md @@ -0,0 +1,21 @@ + + +# V1MutatingAdmissionPolicyBinding + +MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | 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 | [optional] | +|**kind** | **String** | 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 | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1MutatingAdmissionPolicyBindingSpec**](V1MutatingAdmissionPolicyBindingSpec.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1MutatingAdmissionPolicyBindingList.md b/kubernetes/docs/V1MutatingAdmissionPolicyBindingList.md new file mode 100644 index 0000000000..b37a0a4538 --- /dev/null +++ b/kubernetes/docs/V1MutatingAdmissionPolicyBindingList.md @@ -0,0 +1,21 @@ + + +# V1MutatingAdmissionPolicyBindingList + +MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | 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 | [optional] | +|**items** | [**List<V1MutatingAdmissionPolicyBinding>**](V1MutatingAdmissionPolicyBinding.md) | List of PolicyBinding. | | +|**kind** | **String** | 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 | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1MutatingAdmissionPolicyBindingSpec.md b/kubernetes/docs/V1MutatingAdmissionPolicyBindingSpec.md new file mode 100644 index 0000000000..85cc0b7229 --- /dev/null +++ b/kubernetes/docs/V1MutatingAdmissionPolicyBindingSpec.md @@ -0,0 +1,16 @@ + + +# V1MutatingAdmissionPolicyBindingSpec + +MutatingAdmissionPolicyBindingSpec defines the specification of the MutatingAdmissionPolicyBinding. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**matchResources** | [**V1MatchResources**](V1MatchResources.md) | | [optional] | +|**paramRef** | [**V1ParamRef**](V1ParamRef.md) | | [optional] | +|**policyName** | **String** | policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. | [optional] | + + + diff --git a/kubernetes/docs/V1MutatingAdmissionPolicyList.md b/kubernetes/docs/V1MutatingAdmissionPolicyList.md new file mode 100644 index 0000000000..d62dabe8c6 --- /dev/null +++ b/kubernetes/docs/V1MutatingAdmissionPolicyList.md @@ -0,0 +1,21 @@ + + +# V1MutatingAdmissionPolicyList + +MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | 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 | [optional] | +|**items** | [**List<V1MutatingAdmissionPolicy>**](V1MutatingAdmissionPolicy.md) | List of ValidatingAdmissionPolicy. | | +|**kind** | **String** | 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 | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1MutatingAdmissionPolicySpec.md b/kubernetes/docs/V1MutatingAdmissionPolicySpec.md new file mode 100644 index 0000000000..6954b40a07 --- /dev/null +++ b/kubernetes/docs/V1MutatingAdmissionPolicySpec.md @@ -0,0 +1,20 @@ + + +# V1MutatingAdmissionPolicySpec + +MutatingAdmissionPolicySpec defines the desired behavior of the admission policy. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**failurePolicy** | **String** | failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. Allowed values are Ignore or Fail. Defaults to Fail. | [optional] | +|**matchConditions** | [**List<V1MatchCondition>**](V1MatchCondition.md) | matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped | [optional] | +|**matchConstraints** | [**V1MatchResources**](V1MatchResources.md) | | [optional] | +|**mutations** | [**List<V1Mutation>**](V1Mutation.md) | mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis. | [optional] | +|**paramKind** | [**V1ParamKind**](V1ParamKind.md) | | [optional] | +|**reinvocationPolicy** | **String** | reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: These mutations will not be called more than once per binding in a single admission evaluation. IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required. | [optional] | +|**variables** | [**List<V1Variable>**](V1Variable.md) | variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic. | [optional] | + + + diff --git a/kubernetes/docs/V1MutatingWebhook.md b/kubernetes/docs/V1MutatingWebhook.md index a7f86f0192..354be1fc79 100644 --- a/kubernetes/docs/V1MutatingWebhook.md +++ b/kubernetes/docs/V1MutatingWebhook.md @@ -8,18 +8,18 @@ MutatingWebhook describes an admission webhook and the resources and operations | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**admissionReviewVersions** | **List<String>** | AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. | | +|**admissionReviewVersions** | **List<String>** | admissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. | | |**clientConfig** | [**AdmissionregistrationV1WebhookClientConfig**](AdmissionregistrationV1WebhookClientConfig.md) | | | -|**failurePolicy** | **String** | FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. | [optional] | -|**matchConditions** | [**List<V1MatchCondition>**](V1MatchCondition.md) | MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped | [optional] | +|**failurePolicy** | **String** | failurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. | [optional] | +|**matchConditions** | [**List<V1MatchCondition>**](V1MatchCondition.md) | matchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped | [optional] | |**matchPolicy** | **String** | matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\" | [optional] | -|**name** | **String** | The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. | | +|**name** | **String** | name is the name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. | | |**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | |**objectSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | |**reinvocationPolicy** | **String** | reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to \"Never\". | [optional] | -|**rules** | [**List<V1RuleWithOperations>**](V1RuleWithOperations.md) | Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. | [optional] | -|**sideEffects** | **String** | SideEffects states whether this webhook has side 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 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. | | -|**timeoutSeconds** | **Integer** | TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. | [optional] | +|**rules** | [**List<V1RuleWithOperations>**](V1RuleWithOperations.md) | rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. | [optional] | +|**sideEffects** | **String** | sideEffects states whether this webhook has side 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 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. | | +|**timeoutSeconds** | **Integer** | timeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. | [optional] | diff --git a/kubernetes/docs/V1MutatingWebhookConfiguration.md b/kubernetes/docs/V1MutatingWebhookConfiguration.md index 7f1954ff3b..83b001c2a7 100644 --- a/kubernetes/docs/V1MutatingWebhookConfiguration.md +++ b/kubernetes/docs/V1MutatingWebhookConfiguration.md @@ -11,7 +11,7 @@ MutatingWebhookConfiguration describes the configuration of and admission webhoo |**apiVersion** | **String** | 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 | [optional] | |**kind** | **String** | 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 | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**webhooks** | [**List<V1MutatingWebhook>**](V1MutatingWebhook.md) | Webhooks is a list of webhooks and the affected resources and operations. | [optional] | +|**webhooks** | [**List<V1MutatingWebhook>**](V1MutatingWebhook.md) | webhooks is a list of webhooks and the affected resources and operations. | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1Mutation.md b/kubernetes/docs/V1Mutation.md new file mode 100644 index 0000000000..0cea732b2b --- /dev/null +++ b/kubernetes/docs/V1Mutation.md @@ -0,0 +1,16 @@ + + +# V1Mutation + +Mutation specifies the CEL expression which is used to apply the Mutation. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**applyConfiguration** | [**V1ApplyConfiguration**](V1ApplyConfiguration.md) | | [optional] | +|**jsonPatch** | [**V1JSONPatch**](V1JSONPatch.md) | | [optional] | +|**patchType** | **String** | patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required. | | + + + diff --git a/kubernetes/docs/V1NamedRuleWithOperations.md b/kubernetes/docs/V1NamedRuleWithOperations.md index f390113483..08aadd1fa1 100644 --- a/kubernetes/docs/V1NamedRuleWithOperations.md +++ b/kubernetes/docs/V1NamedRuleWithOperations.md @@ -8,11 +8,11 @@ NamedRuleWithOperations is a tuple of Operations and Resources with ResourceName | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**apiGroups** | **List<String>** | APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] | -|**apiVersions** | **List<String>** | APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional] | -|**operations** | **List<String>** | Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | [optional] | -|**resourceNames** | **List<String>** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] | -|**resources** | **List<String>** | Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. | [optional] | +|**apiGroups** | **List<String>** | apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**apiVersions** | **List<String>** | apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**operations** | **List<String>** | operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**resourceNames** | **List<String>** | resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] | +|**resources** | **List<String>** | resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. | [optional] | |**scope** | **String** | scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". | [optional] | diff --git a/kubernetes/docs/V1NetworkDeviceData.md b/kubernetes/docs/V1NetworkDeviceData.md index 615c19bdf8..9128693f6f 100644 --- a/kubernetes/docs/V1NetworkDeviceData.md +++ b/kubernetes/docs/V1NetworkDeviceData.md @@ -8,8 +8,8 @@ NetworkDeviceData provides network-related details for the allocated device. Thi | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**hardwareAddress** | **String** | HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. | [optional] | -|**interfaceName** | **String** | InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. | [optional] | +|**hardwareAddress** | **String** | HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 bytes. | [optional] | +|**interfaceName** | **String** | InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 bytes. | [optional] | |**ips** | **List<String>** | IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. | [optional] | diff --git a/kubernetes/docs/V1NodeAllocatableResourceClaimStatus.md b/kubernetes/docs/V1NodeAllocatableResourceClaimStatus.md new file mode 100644 index 0000000000..0c471feaf4 --- /dev/null +++ b/kubernetes/docs/V1NodeAllocatableResourceClaimStatus.md @@ -0,0 +1,16 @@ + + +# V1NodeAllocatableResourceClaimStatus + +NodeAllocatableResourceClaimStatus describes the status of node allocatable resources allocated via DRA. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**containers** | **List<String>** | Containers lists the names of all containers in this pod that reference the claim. | [optional] | +|**resourceClaimName** | **String** | ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation. | | +|**resources** | **Map<String, Quantity>** | Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim. | | + + + diff --git a/kubernetes/docs/V1NodeAllocatableResourceMapping.md b/kubernetes/docs/V1NodeAllocatableResourceMapping.md new file mode 100644 index 0000000000..b9b9209a79 --- /dev/null +++ b/kubernetes/docs/V1NodeAllocatableResourceMapping.md @@ -0,0 +1,15 @@ + + +# V1NodeAllocatableResourceMapping + +NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocationMultiplier** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +|**capacityKey** | **String** | CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\". | [optional] | + + + diff --git a/kubernetes/docs/V1NonResourceAttributes.md b/kubernetes/docs/V1NonResourceAttributes.md index 2487f25024..616b2d1ede 100644 --- a/kubernetes/docs/V1NonResourceAttributes.md +++ b/kubernetes/docs/V1NonResourceAttributes.md @@ -8,8 +8,8 @@ NonResourceAttributes includes the authorization attributes available for non-re | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**path** | **String** | Path is the URL path of the request | [optional] | -|**verb** | **String** | Verb is the standard HTTP verb | [optional] | +|**path** | **String** | path is the URL path of the request | [optional] | +|**verb** | **String** | verb is the standard HTTP verb | [optional] | diff --git a/kubernetes/docs/V1NonResourceRule.md b/kubernetes/docs/V1NonResourceRule.md index 4789aafe41..120d5e6a7b 100644 --- a/kubernetes/docs/V1NonResourceRule.md +++ b/kubernetes/docs/V1NonResourceRule.md @@ -8,8 +8,8 @@ NonResourceRule holds information that describes a rule for the non-resource | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**nonResourceURLs** | **List<String>** | NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. | [optional] | -|**verbs** | **List<String>** | Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. | | +|**nonResourceURLs** | **List<String>** | nonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. | [optional] | +|**verbs** | **List<String>** | verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. | | diff --git a/kubernetes/docs/V1ParamKind.md b/kubernetes/docs/V1ParamKind.md index f7ad7d6e78..fe3f74a07f 100644 --- a/kubernetes/docs/V1ParamKind.md +++ b/kubernetes/docs/V1ParamKind.md @@ -8,8 +8,8 @@ ParamKind is a tuple of Group Kind and Version. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**apiVersion** | **String** | APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. | [optional] | -|**kind** | **String** | Kind is the API kind the resources belong to. Required. | [optional] | +|**apiVersion** | **String** | apiVersion is the API group version the resources belong to. In format of \"group/version\". Required. | [optional] | +|**kind** | **String** | kind is the API kind the resources belong to. Required. | [optional] | diff --git a/kubernetes/docs/V1ParamRef.md b/kubernetes/docs/V1ParamRef.md index f54cc72486..44c5a51587 100644 --- a/kubernetes/docs/V1ParamRef.md +++ b/kubernetes/docs/V1ParamRef.md @@ -10,7 +10,7 @@ ParamRef describes how to locate the params to be used as input to expressions o |------------ | ------------- | ------------- | -------------| |**name** | **String** | name is the name of the resource being referenced. One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. | [optional] | |**namespace** | **String** | namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. | [optional] | -|**parameterNotFoundAction** | **String** | `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required | [optional] | +|**parameterNotFoundAction** | **String** | parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required | [optional] | |**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | diff --git a/kubernetes/docs/V1PodCondition.md b/kubernetes/docs/V1PodCondition.md index 6504f74d53..a22963a48d 100644 --- a/kubernetes/docs/V1PodCondition.md +++ b/kubernetes/docs/V1PodCondition.md @@ -11,7 +11,7 @@ PodCondition contains details for the current condition of this pod. |**lastProbeTime** | **OffsetDateTime** | Last time we probed the condition. | [optional] | |**lastTransitionTime** | **OffsetDateTime** | Last time the condition transitioned from one status to another. | [optional] | |**message** | **String** | Human-readable message indicating details about last transition. | [optional] | -|**observedGeneration** | **Long** | If set, this represents the .metadata.generation that the pod condition was set based upon. The PodObservedGenerationTracking feature gate must be enabled to use this field. | [optional] | +|**observedGeneration** | **Long** | If set, this represents the .metadata.generation that the pod condition was set based upon. | [optional] | |**reason** | **String** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] | |**status** | **String** | Status is the status of the condition. Can be True, False, Unknown. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | | |**type** | **String** | Type is the type of the condition. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | | diff --git a/kubernetes/docs/V1PodDisruptionBudgetStatus.md b/kubernetes/docs/V1PodDisruptionBudgetStatus.md index 45f165f4e0..fd25e6ac54 100644 --- a/kubernetes/docs/V1PodDisruptionBudgetStatus.md +++ b/kubernetes/docs/V1PodDisruptionBudgetStatus.md @@ -9,11 +9,11 @@ PodDisruptionBudgetStatus represents information about the status of a PodDisrup | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**conditions** | [**List<V1Condition>**](V1Condition.md) | 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. | [optional] | -|**currentHealthy** | **Integer** | current number of healthy pods | | -|**desiredHealthy** | **Integer** | minimum desired number of healthy pods | | +|**currentHealthy** | **Integer** | current number of healthy pods | [optional] | +|**desiredHealthy** | **Integer** | minimum desired number of healthy pods | [optional] | |**disruptedPods** | **Map<String, OffsetDateTime>** | 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. | [optional] | -|**disruptionsAllowed** | **Integer** | Number of pod disruptions that are currently allowed. | | -|**expectedPods** | **Integer** | total number of pods counted by this disruption budget | | +|**disruptionsAllowed** | **Integer** | Number of pod disruptions that are currently allowed. | [optional] | +|**expectedPods** | **Integer** | total number of pods counted by this disruption budget | [optional] | |**observedGeneration** | **Long** | 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. | [optional] | diff --git a/kubernetes/docs/V1PodResourceClaim.md b/kubernetes/docs/V1PodResourceClaim.md index 72efeffcb3..a81c5cb128 100644 --- a/kubernetes/docs/V1PodResourceClaim.md +++ b/kubernetes/docs/V1PodResourceClaim.md @@ -2,7 +2,7 @@ # V1PodResourceClaim -PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. +PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. When the DRAWorkloadResourceClaims feature gate is enabled and this Pod belongs to a PodGroup, a PodResourceClaim is matched to a PodGroupResourceClaim if all of their fields are equal (Name, ResourceClaimName, and ResourceClaimTemplateName). A matched claim references a single ResourceClaim shared across all Pods in the PodGroup, reserved for the PodGroup in ResourceClaimStatus.ReservedFor rather than for individual Pods. ## Properties @@ -10,7 +10,7 @@ PodResourceClaim references exactly one ResourceClaim, either directly or by nam |------------ | ------------- | ------------- | -------------| |**name** | **String** | Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. | | |**resourceClaimName** | **String** | ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. | [optional] | -|**resourceClaimTemplateName** | **String** | ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. | [optional] | +|**resourceClaimTemplateName** | **String** | ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. When the DRAWorkloadResourceClaims feature gate is enabled and the pod belongs to a PodGroup that defines a PodGroupResourceClaim with the same Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the ResourceClaim generated for the PodGroup. All pods in the group that define an equivalent PodResourceClaim matching the PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same generated ResourceClaim. ResourceClaims generated for a PodGroup are owned by the PodGroup and their lifecycles are tied to the PodGroup instead of any individual pod. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. | [optional] | diff --git a/kubernetes/docs/V1PodResourceClaimStatus.md b/kubernetes/docs/V1PodResourceClaimStatus.md index a46fd3d957..90a762d380 100644 --- a/kubernetes/docs/V1PodResourceClaimStatus.md +++ b/kubernetes/docs/V1PodResourceClaimStatus.md @@ -9,7 +9,7 @@ PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim whic | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**name** | **String** | Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL. | | -|**resourceClaimName** | **String** | ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. | [optional] | +|**resourceClaimName** | **String** | ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. When the DRAWorkloadResourceClaims feature is enabled and the corresponding PodResourceClaim matches a PodGroupResourceClaim made by the Pod's PodGroup, then this is the name of the ResourceClaim generated and reserved for the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. | [optional] | diff --git a/kubernetes/docs/V1PodSchedulingGroup.md b/kubernetes/docs/V1PodSchedulingGroup.md new file mode 100644 index 0000000000..d2ac0fe5d1 --- /dev/null +++ b/kubernetes/docs/V1PodSchedulingGroup.md @@ -0,0 +1,14 @@ + + +# V1PodSchedulingGroup + +PodSchedulingGroup identifies the runtime scheduling group instance that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics. Exactly one field must be specified. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**podGroupName** | **String** | PodGroupName specifies the name of the standalone PodGroup object that represents the runtime instance of this group. Must be a DNS subdomain. | [optional] | + + + diff --git a/kubernetes/docs/V1PodSpec.md b/kubernetes/docs/V1PodSpec.md index 8786d0c9a9..1339e7445e 100644 --- a/kubernetes/docs/V1PodSpec.md +++ b/kubernetes/docs/V1PodSpec.md @@ -20,7 +20,7 @@ PodSpec is a description of a pod. |**hostIPC** | **Boolean** | Use the host's ipc namespace. Optional: Default to false. | [optional] | |**hostNetwork** | **Boolean** | Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false. | [optional] | |**hostPID** | **Boolean** | Use the host's pid namespace. Optional: Default to false. | [optional] | -|**hostUsers** | **Boolean** | Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. | [optional] | +|**hostUsers** | **Boolean** | Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. | [optional] | |**hostname** | **String** | Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. | [optional] | |**hostnameOverride** | **String** | HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false. This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled. | [optional] | |**imagePullSecrets** | [**List<V1LocalObjectReference>**](V1LocalObjectReference.md) | ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod | [optional] | @@ -39,6 +39,7 @@ PodSpec is a description of a pod. |**runtimeClassName** | **String** | RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class | [optional] | |**schedulerName** | **String** | If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. | [optional] | |**schedulingGates** | [**List<V1PodSchedulingGate>**](V1PodSchedulingGate.md) | SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. | [optional] | +|**schedulingGroup** | [**V1PodSchedulingGroup**](V1PodSchedulingGroup.md) | | [optional] | |**securityContext** | [**V1PodSecurityContext**](V1PodSecurityContext.md) | | [optional] | |**serviceAccount** | **String** | DeprecatedServiceAccount is a deprecated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. | [optional] | |**serviceAccountName** | **String** | ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | [optional] | @@ -49,7 +50,6 @@ PodSpec is a description of a pod. |**tolerations** | [**List<V1Toleration>**](V1Toleration.md) | If specified, the pod's tolerations. | [optional] | |**topologySpreadConstraints** | [**List<V1TopologySpreadConstraint>**](V1TopologySpreadConstraint.md) | TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. | [optional] | |**volumes** | [**List<V1Volume>**](V1Volume.md) | List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes | [optional] | -|**workloadRef** | [**V1WorkloadReference**](V1WorkloadReference.md) | | [optional] | diff --git a/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md index 5bef6d5628..8bdd6830b0 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -17,6 +17,7 @@ PodStatus represents information about the status of a pod. Status may trail the |**hostIPs** | [**List<V1HostIP>**](V1HostIP.md) | hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod. | [optional] | |**initContainerStatuses** | [**List<V1ContainerStatus>**](V1ContainerStatus.md) | Statuses of init containers in this pod. The most recent successful non-restartable init container will have ready = true, the most recently started container will have startTime set. Each init container in the pod should have at most one status in this list, and all statuses should be for containers in the pod. However this is not enforced. If a status for a non-existent container is present in the list, or the list has duplicate names, the behavior of various Kubernetes components is not defined and those statuses might be ignored. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-and-container-status | [optional] | |**message** | **String** | A human readable message indicating details about why the pod is in this condition. | [optional] | +|**nodeAllocatableResourceClaimStatuses** | [**List<V1NodeAllocatableResourceClaimStatus>**](V1NodeAllocatableResourceClaimStatus.md) | NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources that were allocated for this pod through DRA claims. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. | [optional] | |**nominatedNodeName** | **String** | nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. | [optional] | |**observedGeneration** | **Long** | If set, this represents the .metadata.generation that the pod status was set based upon. The PodObservedGenerationTracking feature gate must be enabled to use this field. | [optional] | |**phase** | **String** | The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase | [optional] | diff --git a/kubernetes/docs/V1PriorityClass.md b/kubernetes/docs/V1PriorityClass.md index e4d213daad..5d21b00734 100644 --- a/kubernetes/docs/V1PriorityClass.md +++ b/kubernetes/docs/V1PriorityClass.md @@ -14,7 +14,7 @@ PriorityClass defines mapping from a priority class name to the priority integer |**kind** | **String** | 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 | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | |**preemptionPolicy** | **String** | preemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. | [optional] | -|**value** | **Integer** | value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. | | +|**value** | **Integer** | value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ResourceAttributes.md b/kubernetes/docs/V1ResourceAttributes.md index 2b148aaea9..8cd8f0e7d9 100644 --- a/kubernetes/docs/V1ResourceAttributes.md +++ b/kubernetes/docs/V1ResourceAttributes.md @@ -9,14 +9,14 @@ ResourceAttributes includes the authorization attributes available for resource | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**fieldSelector** | [**V1FieldSelectorAttributes**](V1FieldSelectorAttributes.md) | | [optional] | -|**group** | **String** | Group is the API Group of the Resource. \"*\" means all. | [optional] | +|**group** | **String** | group is the API Group of the Resource. \"*\" means all. | [optional] | |**labelSelector** | [**V1LabelSelectorAttributes**](V1LabelSelectorAttributes.md) | | [optional] | -|**name** | **String** | Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. | [optional] | -|**namespace** | **String** | Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview | [optional] | -|**resource** | **String** | Resource is one of the existing resource types. \"*\" means all. | [optional] | -|**subresource** | **String** | Subresource is one of the existing resource types. \"\" means none. | [optional] | -|**verb** | **String** | Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. | [optional] | -|**version** | **String** | Version is the API Version of the Resource. \"*\" means all. | [optional] | +|**name** | **String** | name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. | [optional] | +|**namespace** | **String** | namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview | [optional] | +|**resource** | **String** | resource is one of the existing resource types. \"*\" means all. | [optional] | +|**subresource** | **String** | subresource is one of the existing resource types. \"\" means none. | [optional] | +|**verb** | **String** | verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. | [optional] | +|**version** | **String** | version is the API Version of the Resource. \"*\" means all. | [optional] | diff --git a/kubernetes/docs/V1ResourceClaimTemplate.md b/kubernetes/docs/V1ResourceClaimTemplate.md index 8657b2e719..d53fc2870f 100644 --- a/kubernetes/docs/V1ResourceClaimTemplate.md +++ b/kubernetes/docs/V1ResourceClaimTemplate.md @@ -2,7 +2,7 @@ # V1ResourceClaimTemplate -ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. +ResourceClaimTemplate is used to produce ResourceClaim objects. ## Properties diff --git a/kubernetes/docs/V1ResourceHealth.md b/kubernetes/docs/V1ResourceHealth.md index beb51e3178..cd840fce96 100644 --- a/kubernetes/docs/V1ResourceHealth.md +++ b/kubernetes/docs/V1ResourceHealth.md @@ -9,6 +9,7 @@ ResourceHealth represents the health of a resource. It has the latest device hea | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**health** | **String** | Health of the resource. can be one of: - Healthy: operates as normal - Unhealthy: reported unhealthy. We consider this a temporary health issue since we do not have a mechanism today to distinguish temporary and permanent issues. - Unknown: The status cannot be determined. For example, Device Plugin got unregistered and hasn't been re-registered since. In future we may want to introduce the PermanentlyUnhealthy Status. | [optional] | +|**message** | **String** | Message provides human-readable context for Health (e.g. \"ECC error count exceeded threshold\"). This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise. | [optional] | |**resourceID** | **String** | ResourceID is the unique identifier of the resource. See the ResourceID type for more information. | | diff --git a/kubernetes/docs/V1ResourceRule.md b/kubernetes/docs/V1ResourceRule.md index 372012407d..fc2b9e6078 100644 --- a/kubernetes/docs/V1ResourceRule.md +++ b/kubernetes/docs/V1ResourceRule.md @@ -8,10 +8,10 @@ ResourceRule is the list of actions the subject is allowed to perform on resourc | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**apiGroups** | **List<String>** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. | [optional] | -|**resourceNames** | **List<String>** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. | [optional] | -|**resources** | **List<String>** | Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. | [optional] | -|**verbs** | **List<String>** | Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. | | +|**apiGroups** | **List<String>** | apiGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. | [optional] | +|**resourceNames** | **List<String>** | resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. | [optional] | +|**resources** | **List<String>** | resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. | [optional] | +|**verbs** | **List<String>** | verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. | | diff --git a/kubernetes/docs/V1ResourceSlice.md b/kubernetes/docs/V1ResourceSlice.md index 79f8b3293f..b3cb0e62c5 100644 --- a/kubernetes/docs/V1ResourceSlice.md +++ b/kubernetes/docs/V1ResourceSlice.md @@ -2,7 +2,7 @@ # V1ResourceSlice -ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , . Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. +ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , . Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. ## Properties diff --git a/kubernetes/docs/V1RoleRef.md b/kubernetes/docs/V1RoleRef.md index de03641369..a4f05f8fa7 100644 --- a/kubernetes/docs/V1RoleRef.md +++ b/kubernetes/docs/V1RoleRef.md @@ -8,7 +8,7 @@ RoleRef contains information that points to the role being used | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**apiGroup** | **String** | APIGroup is the group for the resource being referenced | | +|**apiGroup** | **String** | APIGroup is the group for the resource being referenced | [optional] | |**kind** | **String** | Kind is the type of resource being referenced | | |**name** | **String** | Name is the name of resource being referenced | | diff --git a/kubernetes/docs/V1RuleWithOperations.md b/kubernetes/docs/V1RuleWithOperations.md index a2416bf79a..3e98529a67 100644 --- a/kubernetes/docs/V1RuleWithOperations.md +++ b/kubernetes/docs/V1RuleWithOperations.md @@ -8,10 +8,10 @@ RuleWithOperations is a tuple of Operations and Resources. It is recommended to | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**apiGroups** | **List<String>** | APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] | -|**apiVersions** | **List<String>** | APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional] | -|**operations** | **List<String>** | Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | [optional] | -|**resources** | **List<String>** | Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. | [optional] | +|**apiGroups** | **List<String>** | apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**apiVersions** | **List<String>** | apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**operations** | **List<String>** | operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**resources** | **List<String>** | resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. | [optional] | |**scope** | **String** | scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". | [optional] | diff --git a/kubernetes/docs/V1SecurityContext.md b/kubernetes/docs/V1SecurityContext.md index 18a131dda5..5261d783fa 100644 --- a/kubernetes/docs/V1SecurityContext.md +++ b/kubernetes/docs/V1SecurityContext.md @@ -12,7 +12,7 @@ SecurityContext holds security configuration that will be applied to a container |**appArmorProfile** | [**V1AppArmorProfile**](V1AppArmorProfile.md) | | [optional] | |**capabilities** | [**V1Capabilities**](V1Capabilities.md) | | [optional] | |**privileged** | **Boolean** | Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. | [optional] | -|**procMount** | **String** | procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows. | [optional] | +|**procMount** | **String** | procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. Note that this field cannot be set when spec.os.name is windows. | [optional] | |**readOnlyRootFilesystem** | **Boolean** | Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. | [optional] | |**runAsGroup** | **Long** | The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. | [optional] | |**runAsNonRoot** | **Boolean** | Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] | diff --git a/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md b/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md index b8e5fcba30..63b98a6106 100644 --- a/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md @@ -2,7 +2,7 @@ # V1SelfSubjectAccessReviewSpec -SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set +SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of resourceAttributes and nonResourceAttributes must be set ## Properties diff --git a/kubernetes/docs/V1SelfSubjectRulesReviewSpec.md b/kubernetes/docs/V1SelfSubjectRulesReviewSpec.md index 73c8625fd1..6cbb296c54 100644 --- a/kubernetes/docs/V1SelfSubjectRulesReviewSpec.md +++ b/kubernetes/docs/V1SelfSubjectRulesReviewSpec.md @@ -8,7 +8,7 @@ SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**namespace** | **String** | Namespace to evaluate rules for. Required. | [optional] | +|**namespace** | **String** | namespace to evaluate rules for. Required. | [optional] | diff --git a/kubernetes/docs/V1ShardInfo.md b/kubernetes/docs/V1ShardInfo.md new file mode 100644 index 0000000000..ca6323e481 --- /dev/null +++ b/kubernetes/docs/V1ShardInfo.md @@ -0,0 +1,14 @@ + + +# V1ShardInfo + +ShardInfo describes the shard selector that was applied to produce a list response. Its presence on a list response indicates the list is a filtered subset. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**selector** | **String** | selector is the shard selector string from the request, echoed back so clients can verify which shard they received and merge responses from multiple shards. | | + + + diff --git a/kubernetes/docs/V1SubjectAccessReviewSpec.md b/kubernetes/docs/V1SubjectAccessReviewSpec.md index f1ec521eff..98ebc5e919 100644 --- a/kubernetes/docs/V1SubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1SubjectAccessReviewSpec.md @@ -2,18 +2,18 @@ # V1SubjectAccessReviewSpec -SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set +SubjectAccessReviewSpec is a description of the access request. Exactly one of resourceAttributes and nonResourceAttributes must be set ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**extra** | **Map<String, List<String>>** | Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. | [optional] | -|**groups** | **List<String>** | Groups is the groups you're testing for. | [optional] | +|**extra** | **Map<String, List<String>>** | extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. | [optional] | +|**groups** | **List<String>** | groups is the groups you're testing for. | [optional] | |**nonResourceAttributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | | [optional] | |**resourceAttributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | | [optional] | -|**uid** | **String** | UID information about the requesting user. | [optional] | -|**user** | **String** | User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups | [optional] | +|**uid** | **String** | uid information about the requesting user. | [optional] | +|**user** | **String** | user is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups | [optional] | diff --git a/kubernetes/docs/V1SubjectAccessReviewStatus.md b/kubernetes/docs/V1SubjectAccessReviewStatus.md index acd8760025..b070cea1d1 100644 --- a/kubernetes/docs/V1SubjectAccessReviewStatus.md +++ b/kubernetes/docs/V1SubjectAccessReviewStatus.md @@ -8,10 +8,10 @@ SubjectAccessReviewStatus | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**allowed** | **Boolean** | Allowed is required. True if the action would be allowed, false otherwise. | | -|**denied** | **Boolean** | Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. | [optional] | -|**evaluationError** | **String** | EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. | [optional] | -|**reason** | **String** | Reason is optional. It indicates why a request was allowed or denied. | [optional] | +|**allowed** | **Boolean** | allowed is required. True if the action would be allowed, false otherwise. | | +|**denied** | **Boolean** | denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. | [optional] | +|**evaluationError** | **String** | evaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. | [optional] | +|**reason** | **String** | reason is optional. It indicates why a request was allowed or denied. | [optional] | diff --git a/kubernetes/docs/V1SubjectRulesReviewStatus.md b/kubernetes/docs/V1SubjectRulesReviewStatus.md index a27e95bb31..6cf04b7fcc 100644 --- a/kubernetes/docs/V1SubjectRulesReviewStatus.md +++ b/kubernetes/docs/V1SubjectRulesReviewStatus.md @@ -8,10 +8,10 @@ SubjectRulesReviewStatus contains the result of a rules check. This check can be | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**evaluationError** | **String** | EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. | [optional] | -|**incomplete** | **Boolean** | Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. | | -|**nonResourceRules** | [**List<V1NonResourceRule>**](V1NonResourceRule.md) | NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. | | -|**resourceRules** | [**List<V1ResourceRule>**](V1ResourceRule.md) | ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. | | +|**evaluationError** | **String** | evaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. | [optional] | +|**incomplete** | **Boolean** | incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. | | +|**nonResourceRules** | [**List<V1NonResourceRule>**](V1NonResourceRule.md) | nonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. | | +|**resourceRules** | [**List<V1ResourceRule>**](V1ResourceRule.md) | resourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. | | diff --git a/kubernetes/docs/V1TokenRequestSpec.md b/kubernetes/docs/V1TokenRequestSpec.md index 8963c9f594..9363a05c44 100644 --- a/kubernetes/docs/V1TokenRequestSpec.md +++ b/kubernetes/docs/V1TokenRequestSpec.md @@ -8,9 +8,9 @@ TokenRequestSpec contains client provided parameters of a token request. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**audiences** | **List<String>** | Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. | | +|**audiences** | **List<String>** | audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. | [optional] | |**boundObjectRef** | [**V1BoundObjectReference**](V1BoundObjectReference.md) | | [optional] | -|**expirationSeconds** | **Long** | ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. | [optional] | +|**expirationSeconds** | **Long** | expirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. | [optional] | diff --git a/kubernetes/docs/V1TokenRequestStatus.md b/kubernetes/docs/V1TokenRequestStatus.md index d928832ebb..918256bab6 100644 --- a/kubernetes/docs/V1TokenRequestStatus.md +++ b/kubernetes/docs/V1TokenRequestStatus.md @@ -8,8 +8,8 @@ TokenRequestStatus is the result of a token request. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**expirationTimestamp** | **OffsetDateTime** | ExpirationTimestamp is the time of expiration of the returned token. | | -|**token** | **String** | Token is the opaque bearer token. | | +|**expirationTimestamp** | **OffsetDateTime** | expirationTimestamp is the time of expiration of the returned token. | [optional] | +|**token** | **String** | token is the opaque bearer token. | [optional] | diff --git a/kubernetes/docs/V1TokenReviewSpec.md b/kubernetes/docs/V1TokenReviewSpec.md index 18b23ce7f2..75c97df17e 100644 --- a/kubernetes/docs/V1TokenReviewSpec.md +++ b/kubernetes/docs/V1TokenReviewSpec.md @@ -8,8 +8,8 @@ TokenReviewSpec is a description of the token authentication request. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**audiences** | **List<String>** | Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. | [optional] | -|**token** | **String** | Token is the opaque bearer token. | [optional] | +|**audiences** | **List<String>** | audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. | [optional] | +|**token** | **String** | token is the opaque bearer token. | | diff --git a/kubernetes/docs/V1TokenReviewStatus.md b/kubernetes/docs/V1TokenReviewStatus.md index 9f29408831..6849e92cbb 100644 --- a/kubernetes/docs/V1TokenReviewStatus.md +++ b/kubernetes/docs/V1TokenReviewStatus.md @@ -8,9 +8,9 @@ TokenReviewStatus is the result of the token authentication request. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**audiences** | **List<String>** | Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. | [optional] | -|**authenticated** | **Boolean** | Authenticated indicates that the token was associated with a known user. | [optional] | -|**error** | **String** | Error indicates that the token couldn't be checked | [optional] | +|**audiences** | **List<String>** | audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. | [optional] | +|**authenticated** | **Boolean** | authenticated indicates that the token was associated with a known user. | [optional] | +|**error** | **String** | error indicates that the token couldn't be checked | [optional] | |**user** | [**V1UserInfo**](V1UserInfo.md) | | [optional] | diff --git a/kubernetes/docs/V1TypeChecking.md b/kubernetes/docs/V1TypeChecking.md index bb179e41c5..1bf6b47014 100644 --- a/kubernetes/docs/V1TypeChecking.md +++ b/kubernetes/docs/V1TypeChecking.md @@ -8,7 +8,7 @@ TypeChecking contains results of type checking the expressions in the Validating | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**expressionWarnings** | [**List<V1ExpressionWarning>**](V1ExpressionWarning.md) | The type checking warnings for each expression. | [optional] | +|**expressionWarnings** | [**List<V1ExpressionWarning>**](V1ExpressionWarning.md) | expressionWarnings contains the type checking warnings for each expression. | [optional] | diff --git a/kubernetes/docs/V1UserInfo.md b/kubernetes/docs/V1UserInfo.md index 17af3d976d..c18e1a5f5c 100644 --- a/kubernetes/docs/V1UserInfo.md +++ b/kubernetes/docs/V1UserInfo.md @@ -8,10 +8,10 @@ UserInfo holds the information about the user needed to implement the user.Info | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**extra** | **Map<String, List<String>>** | Any additional information provided by the authenticator. | [optional] | -|**groups** | **List<String>** | The names of groups this user is a part of. | [optional] | -|**uid** | **String** | A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. | [optional] | -|**username** | **String** | The name that uniquely identifies this user among all active users. | [optional] | +|**extra** | **Map<String, List<String>>** | extra is any additional information provided by the authenticator. | [optional] | +|**groups** | **List<String>** | groups is the names of groups this user is a part of. | [optional] | +|**uid** | **String** | uid is a unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. | [optional] | +|**username** | **String** | username is the name that uniquely identifies this user among all active users. | [optional] | diff --git a/kubernetes/docs/V1ValidatingAdmissionPolicyBinding.md b/kubernetes/docs/V1ValidatingAdmissionPolicyBinding.md index 5bfc4c4aa9..2b78f1b997 100644 --- a/kubernetes/docs/V1ValidatingAdmissionPolicyBinding.md +++ b/kubernetes/docs/V1ValidatingAdmissionPolicyBinding.md @@ -11,7 +11,7 @@ ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with parame |**apiVersion** | **String** | 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 | [optional] | |**kind** | **String** | 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 | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**spec** | [**V1ValidatingAdmissionPolicyBindingSpec**](V1ValidatingAdmissionPolicyBindingSpec.md) | | [optional] | +|**spec** | [**V1ValidatingAdmissionPolicyBindingSpec**](V1ValidatingAdmissionPolicyBindingSpec.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1ValidatingAdmissionPolicyBindingSpec.md b/kubernetes/docs/V1ValidatingAdmissionPolicyBindingSpec.md index 9e0bbf61b9..136694062f 100644 --- a/kubernetes/docs/V1ValidatingAdmissionPolicyBindingSpec.md +++ b/kubernetes/docs/V1ValidatingAdmissionPolicyBindingSpec.md @@ -10,8 +10,8 @@ ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmis |------------ | ------------- | ------------- | -------------| |**matchResources** | [**V1MatchResources**](V1MatchResources.md) | | [optional] | |**paramRef** | [**V1ParamRef**](V1ParamRef.md) | | [optional] | -|**policyName** | **String** | PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. | [optional] | -|**validationActions** | **List<String>** | validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required. | [optional] | +|**policyName** | **String** | policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. | | +|**validationActions** | **List<String>** | validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required. | | diff --git a/kubernetes/docs/V1ValidatingAdmissionPolicySpec.md b/kubernetes/docs/V1ValidatingAdmissionPolicySpec.md index dbe4ee4b36..e0f82d40e6 100644 --- a/kubernetes/docs/V1ValidatingAdmissionPolicySpec.md +++ b/kubernetes/docs/V1ValidatingAdmissionPolicySpec.md @@ -10,11 +10,11 @@ ValidatingAdmissionPolicySpec is the specification of the desired behavior of th |------------ | ------------- | ------------- | -------------| |**auditAnnotations** | [**List<V1AuditAnnotation>**](V1AuditAnnotation.md) | auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required. | [optional] | |**failurePolicy** | **String** | failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. Allowed values are Ignore or Fail. Defaults to Fail. | [optional] | -|**matchConditions** | [**List<V1MatchCondition>**](V1MatchCondition.md) | MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped | [optional] | +|**matchConditions** | [**List<V1MatchCondition>**](V1MatchCondition.md) | matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped | [optional] | |**matchConstraints** | [**V1MatchResources**](V1MatchResources.md) | | [optional] | |**paramKind** | [**V1ParamKind**](V1ParamKind.md) | | [optional] | -|**validations** | [**List<V1Validation>**](V1Validation.md) | Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. | [optional] | -|**variables** | [**List<V1Variable>**](V1Variable.md) | Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. | [optional] | +|**validations** | [**List<V1Validation>**](V1Validation.md) | validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. | [optional] | +|**variables** | [**List<V1Variable>**](V1Variable.md) | variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. | [optional] | diff --git a/kubernetes/docs/V1ValidatingAdmissionPolicyStatus.md b/kubernetes/docs/V1ValidatingAdmissionPolicyStatus.md index 042e3f5263..4a176fdf53 100644 --- a/kubernetes/docs/V1ValidatingAdmissionPolicyStatus.md +++ b/kubernetes/docs/V1ValidatingAdmissionPolicyStatus.md @@ -8,8 +8,8 @@ ValidatingAdmissionPolicyStatus represents the status of an admission validation | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**conditions** | [**List<V1Condition>**](V1Condition.md) | The conditions represent the latest available observations of a policy's current state. | [optional] | -|**observedGeneration** | **Long** | The generation observed by the controller. | [optional] | +|**conditions** | [**List<V1Condition>**](V1Condition.md) | conditions represent the latest available observations of a policy's current state. | [optional] | +|**observedGeneration** | **Long** | observedGeneration is the generation observed by the controller. | [optional] | |**typeChecking** | [**V1TypeChecking**](V1TypeChecking.md) | | [optional] | diff --git a/kubernetes/docs/V1ValidatingWebhook.md b/kubernetes/docs/V1ValidatingWebhook.md index 01f92ef39c..69d1a5a91b 100644 --- a/kubernetes/docs/V1ValidatingWebhook.md +++ b/kubernetes/docs/V1ValidatingWebhook.md @@ -8,17 +8,17 @@ ValidatingWebhook describes an admission webhook and the resources and operation | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**admissionReviewVersions** | **List<String>** | AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. | | +|**admissionReviewVersions** | **List<String>** | admissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. | | |**clientConfig** | [**AdmissionregistrationV1WebhookClientConfig**](AdmissionregistrationV1WebhookClientConfig.md) | | | -|**failurePolicy** | **String** | FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. | [optional] | -|**matchConditions** | [**List<V1MatchCondition>**](V1MatchCondition.md) | MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped | [optional] | +|**failurePolicy** | **String** | failurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. | [optional] | +|**matchConditions** | [**List<V1MatchCondition>**](V1MatchCondition.md) | matchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped | [optional] | |**matchPolicy** | **String** | matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Equivalent\" | [optional] | -|**name** | **String** | The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. | | +|**name** | **String** | name is the name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. | | |**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | |**objectSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | -|**rules** | [**List<V1RuleWithOperations>**](V1RuleWithOperations.md) | Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. | [optional] | -|**sideEffects** | **String** | SideEffects states whether this webhook has side 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 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. | | -|**timeoutSeconds** | **Integer** | TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. | [optional] | +|**rules** | [**List<V1RuleWithOperations>**](V1RuleWithOperations.md) | rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. | [optional] | +|**sideEffects** | **String** | sideEffects states whether this webhook has side 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 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. | | +|**timeoutSeconds** | **Integer** | timeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. | [optional] | diff --git a/kubernetes/docs/V1ValidatingWebhookConfiguration.md b/kubernetes/docs/V1ValidatingWebhookConfiguration.md index 7746a7f612..faa1b83503 100644 --- a/kubernetes/docs/V1ValidatingWebhookConfiguration.md +++ b/kubernetes/docs/V1ValidatingWebhookConfiguration.md @@ -11,7 +11,7 @@ ValidatingWebhookConfiguration describes the configuration of and admission webh |**apiVersion** | **String** | 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 | [optional] | |**kind** | **String** | 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 | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**webhooks** | [**List<V1ValidatingWebhook>**](V1ValidatingWebhook.md) | Webhooks is a list of webhooks and the affected resources and operations. | [optional] | +|**webhooks** | [**List<V1ValidatingWebhook>**](V1ValidatingWebhook.md) | webhooks is a list of webhooks and the affected resources and operations. | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1Validation.md b/kubernetes/docs/V1Validation.md index 0c410b5262..fb68068da3 100644 --- a/kubernetes/docs/V1Validation.md +++ b/kubernetes/docs/V1Validation.md @@ -8,10 +8,10 @@ Validation specifies the CEL expression which is used to apply the validation. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**expression** | **String** | Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. | | -|**message** | **String** | Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\". | [optional] | +|**expression** | **String** | expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. | | +|**message** | **String** | message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\". | [optional] | |**messageExpression** | **String** | messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\" | [optional] | -|**reason** | **String** | Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client. | [optional] | +|**reason** | **String** | reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client. | [optional] | diff --git a/kubernetes/docs/V1Variable.md b/kubernetes/docs/V1Variable.md index 1f5a8e03f9..675bb5fc59 100644 --- a/kubernetes/docs/V1Variable.md +++ b/kubernetes/docs/V1Variable.md @@ -8,8 +8,8 @@ Variable is the definition of a variable that is used for composition. A variabl | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**expression** | **String** | Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. | | -|**name** | **String** | Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` | | +|**expression** | **String** | expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. | | +|**name** | **String** | name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` | | diff --git a/kubernetes/docs/V1VolumeError.md b/kubernetes/docs/V1VolumeError.md index 72838aef5f..67aeea6228 100644 --- a/kubernetes/docs/V1VolumeError.md +++ b/kubernetes/docs/V1VolumeError.md @@ -8,7 +8,7 @@ VolumeError captures an error encountered during a volume operation. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**errorCode** | **Integer** | errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. | [optional] | +|**errorCode** | **Integer** | errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This field requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. | [optional] | |**message** | **String** | message represents the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. | [optional] | |**time** | **OffsetDateTime** | time represents the time the error was encountered. | [optional] | diff --git a/kubernetes/docs/V1VolumeMountStatus.md b/kubernetes/docs/V1VolumeMountStatus.md index 682baa610f..a8834bffac 100644 --- a/kubernetes/docs/V1VolumeMountStatus.md +++ b/kubernetes/docs/V1VolumeMountStatus.md @@ -12,6 +12,7 @@ VolumeMountStatus shows status of volume mounts. |**name** | **String** | Name corresponds to the name of the original VolumeMount. | | |**readOnly** | **Boolean** | ReadOnly corresponds to the original VolumeMount. | [optional] | |**recursiveReadOnly** | **String** | RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result. | [optional] | +|**volumeStatus** | [**V1VolumeStatus**](V1VolumeStatus.md) | | [optional] | diff --git a/kubernetes/docs/V1VolumeStatus.md b/kubernetes/docs/V1VolumeStatus.md new file mode 100644 index 0000000000..01cab4574d --- /dev/null +++ b/kubernetes/docs/V1VolumeStatus.md @@ -0,0 +1,14 @@ + + +# V1VolumeStatus + +VolumeStatus represents the status of a mounted volume. At most one of its members must be specified. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**image** | [**V1ImageVolumeStatus**](V1ImageVolumeStatus.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1WorkloadReference.md b/kubernetes/docs/V1WorkloadReference.md deleted file mode 100644 index 46299ed72a..0000000000 --- a/kubernetes/docs/V1WorkloadReference.md +++ /dev/null @@ -1,16 +0,0 @@ - - -# V1WorkloadReference - -WorkloadReference identifies the Workload object and PodGroup membership that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | Name defines the name of the Workload object this Pod belongs to. Workload must be in the same namespace as the Pod. If it doesn't match any existing Workload, the Pod will remain unschedulable until a Workload object is created and observed by the kube-scheduler. It must be a DNS subdomain. | | -|**podGroup** | **String** | PodGroup is the name of the PodGroup within the Workload that this Pod belongs to. If it doesn't match any existing PodGroup within the Workload, the Pod will remain unschedulable until the Workload object is recreated and observed by the kube-scheduler. It must be a DNS label. | | -|**podGroupReplicaKey** | **String** | PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs. It is used to distinguish pods belonging to different replicas of the same pod group. The pod group policy is applied separately to each replica. When set, it must be a DNS label. | [optional] | - - - diff --git a/kubernetes/docs/V1alpha1MatchCondition.md b/kubernetes/docs/V1alpha1MatchCondition.md index 408358d77e..0731f07c8f 100644 --- a/kubernetes/docs/V1alpha1MatchCondition.md +++ b/kubernetes/docs/V1alpha1MatchCondition.md @@ -7,8 +7,8 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**expression** | **String** | Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. | | -|**name** | **String** | Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. | | +|**expression** | **String** | expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. | | +|**name** | **String** | name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. | | diff --git a/kubernetes/docs/V1alpha1MatchResources.md b/kubernetes/docs/V1alpha1MatchResources.md index e7e5e1e2b2..304a4cc54f 100644 --- a/kubernetes/docs/V1alpha1MatchResources.md +++ b/kubernetes/docs/V1alpha1MatchResources.md @@ -8,11 +8,11 @@ MatchResources decides whether to run the admission control policy on an object | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**excludeResourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | ExcludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | [optional] | +|**excludeResourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | excludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | [optional] | |**matchPolicy** | **String** | matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, the admission policy does not consider requests to apps/v1beta1 or extensions/v1beta1 API groups. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, the admission policy **does** consider requests made to apps/v1beta1 or extensions/v1beta1 API groups. The API server translates the request to a matched resource API if necessary. Defaults to \"Equivalent\" | [optional] | |**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | |**objectSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | -|**resourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | ResourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule. | [optional] | +|**resourceRules** | [**List<V1alpha1NamedRuleWithOperations>**](V1alpha1NamedRuleWithOperations.md) | resourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule. | [optional] | diff --git a/kubernetes/docs/V1alpha1NamedRuleWithOperations.md b/kubernetes/docs/V1alpha1NamedRuleWithOperations.md index 32134dc468..424f34c0ce 100644 --- a/kubernetes/docs/V1alpha1NamedRuleWithOperations.md +++ b/kubernetes/docs/V1alpha1NamedRuleWithOperations.md @@ -8,11 +8,11 @@ NamedRuleWithOperations is a tuple of Operations and Resources with ResourceName | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**apiGroups** | **List<String>** | APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] | -|**apiVersions** | **List<String>** | APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional] | -|**operations** | **List<String>** | Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | [optional] | -|**resourceNames** | **List<String>** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] | -|**resources** | **List<String>** | Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. | [optional] | +|**apiGroups** | **List<String>** | apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**apiVersions** | **List<String>** | apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**operations** | **List<String>** | operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**resourceNames** | **List<String>** | resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] | +|**resources** | **List<String>** | resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. | [optional] | |**scope** | **String** | scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". | [optional] | diff --git a/kubernetes/docs/V1alpha1ParamKind.md b/kubernetes/docs/V1alpha1ParamKind.md index fb2afab481..7542cc05d7 100644 --- a/kubernetes/docs/V1alpha1ParamKind.md +++ b/kubernetes/docs/V1alpha1ParamKind.md @@ -8,8 +8,8 @@ ParamKind is a tuple of Group Kind and Version. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**apiVersion** | **String** | APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. | [optional] | -|**kind** | **String** | Kind is the API kind the resources belong to. Required. | [optional] | +|**apiVersion** | **String** | apiVersion is the API group version the resources belong to. In format of \"group/version\". Required. | [optional] | +|**kind** | **String** | kind is the API kind the resources belong to. Required. | [optional] | diff --git a/kubernetes/docs/V1alpha1ParamRef.md b/kubernetes/docs/V1alpha1ParamRef.md index c3b1fa3bef..d978ea311b 100644 --- a/kubernetes/docs/V1alpha1ParamRef.md +++ b/kubernetes/docs/V1alpha1ParamRef.md @@ -8,9 +8,9 @@ ParamRef describes how to locate the params to be used as input to expressions o | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**name** | **String** | `name` is the name of the resource being referenced. `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. | [optional] | +|**name** | **String** | name is the name of the resource being referenced. `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. | [optional] | |**namespace** | **String** | namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. | [optional] | -|**parameterNotFoundAction** | **String** | `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Default to `Deny` | [optional] | +|**parameterNotFoundAction** | **String** | parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Default to `Deny` | [optional] | |**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | diff --git a/kubernetes/docs/V1alpha1PodGroup.md b/kubernetes/docs/V1alpha1PodGroup.md deleted file mode 100644 index 18fe9b965e..0000000000 --- a/kubernetes/docs/V1alpha1PodGroup.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha1PodGroup - -PodGroup represents a set of pods with a common scheduling policy. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**name** | **String** | Name is a unique identifier for the PodGroup within the Workload. It must be a DNS label. This field is immutable. | | -|**policy** | [**V1alpha1PodGroupPolicy**](V1alpha1PodGroupPolicy.md) | | | - - - diff --git a/kubernetes/docs/V1alpha1ServerStorageVersion.md b/kubernetes/docs/V1alpha1ServerStorageVersion.md index e7b5483aae..ff92ac5783 100644 --- a/kubernetes/docs/V1alpha1ServerStorageVersion.md +++ b/kubernetes/docs/V1alpha1ServerStorageVersion.md @@ -8,10 +8,10 @@ An API server instance reports the version it can decode and the version it enco | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**apiServerID** | **String** | The ID of the reporting API server. | [optional] | -|**decodableVersions** | **List<String>** | The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions. | [optional] | -|**encodingVersion** | **String** | The API server encodes the object to this version when persisting it in the backend (e.g., etcd). | [optional] | -|**servedVersions** | **List<String>** | The API server can serve these versions. DecodableVersions must include all ServedVersions. | [optional] | +|**apiServerID** | **String** | apiServerID is the ID of the reporting API server. | | +|**decodableVersions** | **List<String>** | decodableVersions are the encoding versions the API server can handle to decode. The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions. | | +|**encodingVersion** | **String** | encodingVersion the API server encodes the object to when persisting it in the backend (e.g., etcd). | | +|**servedVersions** | **List<String>** | servedVersions lists all versions the API server can serve. DecodableVersions must include all ServedVersions. | [optional] | diff --git a/kubernetes/docs/V1alpha1StorageVersion.md b/kubernetes/docs/V1alpha1StorageVersion.md index 76d06a1e87..40e4cdf964 100644 --- a/kubernetes/docs/V1alpha1StorageVersion.md +++ b/kubernetes/docs/V1alpha1StorageVersion.md @@ -10,9 +10,9 @@ Storage version of a specific resource. |------------ | ------------- | ------------- | -------------| |**apiVersion** | **String** | 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 | [optional] | |**kind** | **String** | 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 | [optional] | -|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**spec** | **Object** | Spec is an empty spec. It is here to comply with Kubernetes API style. | | -|**status** | [**V1alpha1StorageVersionStatus**](V1alpha1StorageVersionStatus.md) | | | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | | +|**spec** | **Object** | spec is an empty spec. It is here to comply with Kubernetes API style. | [optional] | +|**status** | [**V1alpha1StorageVersionStatus**](V1alpha1StorageVersionStatus.md) | | [optional] | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1StorageVersionCondition.md b/kubernetes/docs/V1alpha1StorageVersionCondition.md index e54df8509e..6682ab09e0 100644 --- a/kubernetes/docs/V1alpha1StorageVersionCondition.md +++ b/kubernetes/docs/V1alpha1StorageVersionCondition.md @@ -8,12 +8,12 @@ Describes the state of the storageVersion at a certain point. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**lastTransitionTime** | **OffsetDateTime** | Last time the condition transitioned from one status to another. | [optional] | -|**message** | **String** | A human readable message indicating details about the transition. | | -|**observedGeneration** | **Long** | If set, this represents the .metadata.generation that the condition was set based upon. | [optional] | -|**reason** | **String** | The reason for the condition's last transition. | | -|**status** | **String** | Status of the condition, one of True, False, Unknown. | | -|**type** | **String** | Type of the condition. | | +|**lastTransitionTime** | **OffsetDateTime** | lastTransitionTime is the last time the condition transitioned from one status to another. | [optional] | +|**message** | **String** | message is a human readable string indicating details about the transition. | | +|**observedGeneration** | **Long** | observedGeneration represents the .metadata.generation that the condition was set based upon, if field is set. | [optional] | +|**reason** | **String** | reason for the condition's last transition. | | +|**status** | **String** | status of the condition, one of True, False, Unknown. | | +|**type** | **String** | type of the condition. | | diff --git a/kubernetes/docs/V1alpha1StorageVersionStatus.md b/kubernetes/docs/V1alpha1StorageVersionStatus.md index fc33d7a085..01aac382ea 100644 --- a/kubernetes/docs/V1alpha1StorageVersionStatus.md +++ b/kubernetes/docs/V1alpha1StorageVersionStatus.md @@ -8,9 +8,9 @@ API server instances report the versions they can decode and the version they en | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**commonEncodingVersion** | **String** | If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality. | [optional] | -|**conditions** | [**List<V1alpha1StorageVersionCondition>**](V1alpha1StorageVersionCondition.md) | The latest available observations of the storageVersion's state. | [optional] | -|**storageVersions** | [**List<V1alpha1ServerStorageVersion>**](V1alpha1ServerStorageVersion.md) | The reported versions per API server instance. | [optional] | +|**commonEncodingVersion** | **String** | commonEncodingVersion is set to an encoding storage version if all API server instances share that same version. If they don't share one storage version, this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality. | [optional] | +|**conditions** | [**List<V1alpha1StorageVersionCondition>**](V1alpha1StorageVersionCondition.md) | conditions lists the latest available observations of the storageVersion's state. | [optional] | +|**storageVersions** | [**List<V1alpha1ServerStorageVersion>**](V1alpha1ServerStorageVersion.md) | storageVersions lists the reported versions per API server instance. | [optional] | diff --git a/kubernetes/docs/V1alpha1Variable.md b/kubernetes/docs/V1alpha1Variable.md index c25eafbcc2..11d080296f 100644 --- a/kubernetes/docs/V1alpha1Variable.md +++ b/kubernetes/docs/V1alpha1Variable.md @@ -8,8 +8,8 @@ Variable is the definition of a variable that is used for composition. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**expression** | **String** | Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. | | -|**name** | **String** | Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` | | +|**expression** | **String** | expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. | | +|**name** | **String** | name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` | | diff --git a/kubernetes/docs/V1alpha1WorkloadSpec.md b/kubernetes/docs/V1alpha1WorkloadSpec.md deleted file mode 100644 index 3db446f561..0000000000 --- a/kubernetes/docs/V1alpha1WorkloadSpec.md +++ /dev/null @@ -1,15 +0,0 @@ - - -# V1alpha1WorkloadSpec - -WorkloadSpec defines the desired state of a Workload. - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**controllerRef** | [**V1alpha1TypedLocalObjectReference**](V1alpha1TypedLocalObjectReference.md) | | [optional] | -|**podGroups** | [**List<V1alpha1PodGroup>**](V1alpha1PodGroup.md) | PodGroups is the list of pod groups that make up the Workload. The maximum number of pod groups is 8. This field is immutable. | | - - - diff --git a/kubernetes/docs/V1alpha1GangSchedulingPolicy.md b/kubernetes/docs/V1alpha2GangSchedulingPolicy.md similarity index 92% rename from kubernetes/docs/V1alpha1GangSchedulingPolicy.md rename to kubernetes/docs/V1alpha2GangSchedulingPolicy.md index eaa80989b7..3f39ea9194 100644 --- a/kubernetes/docs/V1alpha1GangSchedulingPolicy.md +++ b/kubernetes/docs/V1alpha2GangSchedulingPolicy.md @@ -1,6 +1,6 @@ -# V1alpha1GangSchedulingPolicy +# V1alpha2GangSchedulingPolicy GangSchedulingPolicy defines the parameters for gang scheduling. diff --git a/kubernetes/docs/V1alpha2LeaseCandidate.md b/kubernetes/docs/V1alpha2LeaseCandidate.md index 67117f7a84..1099584e54 100644 --- a/kubernetes/docs/V1alpha2LeaseCandidate.md +++ b/kubernetes/docs/V1alpha2LeaseCandidate.md @@ -11,7 +11,7 @@ LeaseCandidate defines a candidate for a Lease object. Candidates are created su |**apiVersion** | **String** | 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 | [optional] | |**kind** | **String** | 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 | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**spec** | [**V1alpha2LeaseCandidateSpec**](V1alpha2LeaseCandidateSpec.md) | | [optional] | +|**spec** | [**V1alpha2LeaseCandidateSpec**](V1alpha2LeaseCandidateSpec.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha2PodGroup.md b/kubernetes/docs/V1alpha2PodGroup.md new file mode 100644 index 0000000000..c359b09630 --- /dev/null +++ b/kubernetes/docs/V1alpha2PodGroup.md @@ -0,0 +1,22 @@ + + +# V1alpha2PodGroup + +PodGroup represents a runtime instance of pods grouped together. PodGroups are created by workload controllers (Job, LWS, JobSet, etc...) from Workload.podGroupTemplates. PodGroup API enablement is toggled by the GenericWorkload feature gate. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | 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 | [optional] | +|**kind** | **String** | 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 | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1alpha2PodGroupSpec**](V1alpha2PodGroupSpec.md) | | | +|**status** | [**V1alpha2PodGroupStatus**](V1alpha2PodGroupStatus.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1alpha2PodGroupList.md b/kubernetes/docs/V1alpha2PodGroupList.md new file mode 100644 index 0000000000..66a11f6691 --- /dev/null +++ b/kubernetes/docs/V1alpha2PodGroupList.md @@ -0,0 +1,21 @@ + + +# V1alpha2PodGroupList + +PodGroupList contains a list of PodGroup resources. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | 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 | [optional] | +|**items** | [**List<V1alpha2PodGroup>**](V1alpha2PodGroup.md) | Items is the list of PodGroups. | | +|**kind** | **String** | 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 | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1alpha2PodGroupResourceClaim.md b/kubernetes/docs/V1alpha2PodGroupResourceClaim.md new file mode 100644 index 0000000000..3e3b863395 --- /dev/null +++ b/kubernetes/docs/V1alpha2PodGroupResourceClaim.md @@ -0,0 +1,16 @@ + + +# V1alpha2PodGroupResourceClaim + +PodGroupResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the PodGroup. It adds a name to it that uniquely identifies the ResourceClaim inside the PodGroup. Pods that need access to the ResourceClaim define a matching reference in its own Spec.ResourceClaims. The Pod's claim must match all fields of the PodGroup's claim exactly. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL. | | +|**resourceClaimName** | **String** | ResourceClaimName is the name of a ResourceClaim object in the same namespace as this PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. | [optional] | +|**resourceClaimTemplateName** | **String** | ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this PodGroup. The template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in podgroup.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha2PodGroupResourceClaimStatus.md b/kubernetes/docs/V1alpha2PodGroupResourceClaimStatus.md new file mode 100644 index 0000000000..b11c9aa0a3 --- /dev/null +++ b/kubernetes/docs/V1alpha2PodGroupResourceClaimStatus.md @@ -0,0 +1,15 @@ + + +# V1alpha2PodGroupResourceClaimStatus + +PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Name uniquely identifies this resource claim inside the PodGroup. This must match the name of an entry in podgroup.spec.resourceClaims, which implies that the string must be a DNS_LABEL. | | +|**resourceClaimName** | **String** | ResourceClaimName is the name of the ResourceClaim that was generated for the PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.spec.resourceClaims entry can be ignored in this case. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha2PodGroupSchedulingConstraints.md b/kubernetes/docs/V1alpha2PodGroupSchedulingConstraints.md new file mode 100644 index 0000000000..94d8220b55 --- /dev/null +++ b/kubernetes/docs/V1alpha2PodGroupSchedulingConstraints.md @@ -0,0 +1,14 @@ + + +# V1alpha2PodGroupSchedulingConstraints + +PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**topology** | [**List<V1alpha2TopologyConstraint>**](V1alpha2TopologyConstraint.md) | Topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha1PodGroupPolicy.md b/kubernetes/docs/V1alpha2PodGroupSchedulingPolicy.md similarity index 59% rename from kubernetes/docs/V1alpha1PodGroupPolicy.md rename to kubernetes/docs/V1alpha2PodGroupSchedulingPolicy.md index e5861c06ef..a1951c1e32 100644 --- a/kubernetes/docs/V1alpha1PodGroupPolicy.md +++ b/kubernetes/docs/V1alpha2PodGroupSchedulingPolicy.md @@ -1,15 +1,15 @@ -# V1alpha1PodGroupPolicy +# V1alpha2PodGroupSchedulingPolicy -PodGroupPolicy defines the scheduling configuration for a PodGroup. +PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**basic** | **Object** | Basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior. | [optional] | -|**gang** | [**V1alpha1GangSchedulingPolicy**](V1alpha1GangSchedulingPolicy.md) | | [optional] | +|**gang** | [**V1alpha2GangSchedulingPolicy**](V1alpha2GangSchedulingPolicy.md) | | [optional] | diff --git a/kubernetes/docs/V1alpha2PodGroupSpec.md b/kubernetes/docs/V1alpha2PodGroupSpec.md new file mode 100644 index 0000000000..b6741f4406 --- /dev/null +++ b/kubernetes/docs/V1alpha2PodGroupSpec.md @@ -0,0 +1,20 @@ + + +# V1alpha2PodGroupSpec + +PodGroupSpec defines the desired state of a PodGroup. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**disruptionMode** | **String** | DisruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if unset. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled. | [optional] | +|**podGroupTemplateRef** | [**V1alpha2PodGroupTemplateReference**](V1alpha2PodGroupTemplateReference.md) | | [optional] | +|**priority** | **Integer** | Priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled. | [optional] | +|**priorityClassName** | **String** | PriorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled. | [optional] | +|**resourceClaims** | [**List<V1alpha2PodGroupResourceClaim>**](V1alpha2PodGroupResourceClaim.md) | ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] | +|**schedulingConstraints** | [**V1alpha2PodGroupSchedulingConstraints**](V1alpha2PodGroupSchedulingConstraints.md) | | [optional] | +|**schedulingPolicy** | [**V1alpha2PodGroupSchedulingPolicy**](V1alpha2PodGroupSchedulingPolicy.md) | | | + + + diff --git a/kubernetes/docs/V1alpha2PodGroupStatus.md b/kubernetes/docs/V1alpha2PodGroupStatus.md new file mode 100644 index 0000000000..9a416fbdcb --- /dev/null +++ b/kubernetes/docs/V1alpha2PodGroupStatus.md @@ -0,0 +1,15 @@ + + +# V1alpha2PodGroupStatus + +PodGroupStatus represents information about the status of a pod group. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupScheduled\": Indicates whether the scheduling requirement has been satisfied. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints, affinity/anti-affinity rules, or insufficient capacity for the gang. - \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error that happened during scheduling, for example due to nodeAffinity parsing errors. Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for higher-priority PodGroups or Pods. | [optional] | +|**resourceClaimStatuses** | [**List<V1alpha2PodGroupResourceClaimStatus>**](V1alpha2PodGroupResourceClaimStatus.md) | Status of resource claims. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha2PodGroupTemplate.md b/kubernetes/docs/V1alpha2PodGroupTemplate.md new file mode 100644 index 0000000000..4b378248dc --- /dev/null +++ b/kubernetes/docs/V1alpha2PodGroupTemplate.md @@ -0,0 +1,20 @@ + + +# V1alpha2PodGroupTemplate + +PodGroupTemplate represents a template for a set of pods with a scheduling policy. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**disruptionMode** | **String** | DisruptionMode defines the mode in which a given PodGroup can be disrupted. One of Pod, PodGroup. This field is available only when the WorkloadAwarePreemption feature gate is enabled. | [optional] | +|**name** | **String** | Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable. | | +|**priority** | **Integer** | Priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. This field is available only when the WorkloadAwarePreemption feature gate is enabled. | [optional] | +|**priorityClassName** | **String** | PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, pod groups created from this template will have the priority set to zero. This field is available only when the WorkloadAwarePreemption feature gate is enabled. | [optional] | +|**resourceClaims** | [**List<V1alpha2PodGroupResourceClaim>**](V1alpha2PodGroupResourceClaim.md) | ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. | [optional] | +|**schedulingConstraints** | [**V1alpha2PodGroupSchedulingConstraints**](V1alpha2PodGroupSchedulingConstraints.md) | | [optional] | +|**schedulingPolicy** | [**V1alpha2PodGroupSchedulingPolicy**](V1alpha2PodGroupSchedulingPolicy.md) | | | + + + diff --git a/kubernetes/docs/V1alpha2PodGroupTemplateReference.md b/kubernetes/docs/V1alpha2PodGroupTemplateReference.md new file mode 100644 index 0000000000..a87e982665 --- /dev/null +++ b/kubernetes/docs/V1alpha2PodGroupTemplateReference.md @@ -0,0 +1,14 @@ + + +# V1alpha2PodGroupTemplateReference + +PodGroupTemplateReference references a PodGroup template defined in some object (e.g. Workload). Exactly one reference must be set. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**workload** | [**V1alpha2WorkloadPodGroupTemplateReference**](V1alpha2WorkloadPodGroupTemplateReference.md) | | [optional] | + + + diff --git a/kubernetes/docs/V1alpha2TopologyConstraint.md b/kubernetes/docs/V1alpha2TopologyConstraint.md new file mode 100644 index 0000000000..415c7fe5af --- /dev/null +++ b/kubernetes/docs/V1alpha2TopologyConstraint.md @@ -0,0 +1,14 @@ + + +# V1alpha2TopologyConstraint + +TopologyConstraint defines a topology constraint for a PodGroup. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | Key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\" | | + + + diff --git a/kubernetes/docs/V1alpha1TypedLocalObjectReference.md b/kubernetes/docs/V1alpha2TypedLocalObjectReference.md similarity index 95% rename from kubernetes/docs/V1alpha1TypedLocalObjectReference.md rename to kubernetes/docs/V1alpha2TypedLocalObjectReference.md index 244b9670c0..b01e658a15 100644 --- a/kubernetes/docs/V1alpha1TypedLocalObjectReference.md +++ b/kubernetes/docs/V1alpha2TypedLocalObjectReference.md @@ -1,6 +1,6 @@ -# V1alpha1TypedLocalObjectReference +# V1alpha2TypedLocalObjectReference TypedLocalObjectReference allows to reference typed object inside the same namespace. diff --git a/kubernetes/docs/V1alpha1Workload.md b/kubernetes/docs/V1alpha2Workload.md similarity index 77% rename from kubernetes/docs/V1alpha1Workload.md rename to kubernetes/docs/V1alpha2Workload.md index 526049f44d..cb712cc24b 100644 --- a/kubernetes/docs/V1alpha1Workload.md +++ b/kubernetes/docs/V1alpha2Workload.md @@ -1,8 +1,8 @@ -# V1alpha1Workload +# V1alpha2Workload -Workload allows for expressing scheduling constraints that should be used when managing lifecycle of workloads from scheduling perspective, including scheduling, preemption, eviction and other phases. +Workload allows for expressing scheduling constraints that should be used when managing the lifecycle of workloads from the scheduling perspective, including scheduling, preemption, eviction and other phases. Workload API enablement is toggled by the GenericWorkload feature gate. ## Properties @@ -11,7 +11,7 @@ Workload allows for expressing scheduling constraints that should be used when m |**apiVersion** | **String** | 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 | [optional] | |**kind** | **String** | 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 | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**spec** | [**V1alpha1WorkloadSpec**](V1alpha1WorkloadSpec.md) | | | +|**spec** | [**V1alpha2WorkloadSpec**](V1alpha2WorkloadSpec.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1alpha1WorkloadList.md b/kubernetes/docs/V1alpha2WorkloadList.md similarity index 92% rename from kubernetes/docs/V1alpha1WorkloadList.md rename to kubernetes/docs/V1alpha2WorkloadList.md index 9e53f7ecd0..636bc65b7e 100644 --- a/kubernetes/docs/V1alpha1WorkloadList.md +++ b/kubernetes/docs/V1alpha2WorkloadList.md @@ -1,6 +1,6 @@ -# V1alpha1WorkloadList +# V1alpha2WorkloadList WorkloadList contains a list of Workload resources. @@ -9,7 +9,7 @@ WorkloadList contains a list of Workload resources. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**apiVersion** | **String** | 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 | [optional] | -|**items** | [**List<V1alpha1Workload>**](V1alpha1Workload.md) | Items is the list of Workloads. | | +|**items** | [**List<V1alpha2Workload>**](V1alpha2Workload.md) | Items is the list of Workloads. | | |**kind** | **String** | 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 | [optional] | |**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | diff --git a/kubernetes/docs/V1alpha2WorkloadPodGroupTemplateReference.md b/kubernetes/docs/V1alpha2WorkloadPodGroupTemplateReference.md new file mode 100644 index 0000000000..de1d6db870 --- /dev/null +++ b/kubernetes/docs/V1alpha2WorkloadPodGroupTemplateReference.md @@ -0,0 +1,15 @@ + + +# V1alpha2WorkloadPodGroupTemplateReference + +WorkloadPodGroupTemplateReference references the PodGroupTemplate within the Workload object. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**podGroupTemplateName** | **String** | PodGroupTemplateName defines the PodGroupTemplate name within the Workload object. | | +|**workloadName** | **String** | WorkloadName defines the name of the Workload object. | | + + + diff --git a/kubernetes/docs/V1alpha2WorkloadSpec.md b/kubernetes/docs/V1alpha2WorkloadSpec.md new file mode 100644 index 0000000000..0d36d8a1cd --- /dev/null +++ b/kubernetes/docs/V1alpha2WorkloadSpec.md @@ -0,0 +1,15 @@ + + +# V1alpha2WorkloadSpec + +WorkloadSpec defines the desired state of a Workload. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**controllerRef** | [**V1alpha2TypedLocalObjectReference**](V1alpha2TypedLocalObjectReference.md) | | [optional] | +|**podGroupTemplates** | [**List<V1alpha2PodGroupTemplate>**](V1alpha2PodGroupTemplate.md) | PodGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. This field is immutable. | | + + + diff --git a/kubernetes/docs/V1alpha3DeviceTaint.md b/kubernetes/docs/V1alpha3DeviceTaint.md index c2aea34e44..63786f7cb3 100644 --- a/kubernetes/docs/V1alpha3DeviceTaint.md +++ b/kubernetes/docs/V1alpha3DeviceTaint.md @@ -10,7 +10,7 @@ The device this taint is attached to has the \"effect\" on any claim which does |------------ | ------------- | ------------- | -------------| |**effect** | **String** | The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. | | |**key** | **String** | The taint key to be applied to a device. Must be a label name. | | -|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. | [optional] | +|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). | [optional] | |**value** | **String** | The taint value corresponding to the taint key. Must be a label value. | [optional] | diff --git a/kubernetes/docs/V1alpha3PoolStatus.md b/kubernetes/docs/V1alpha3PoolStatus.md new file mode 100644 index 0000000000..23f5431548 --- /dev/null +++ b/kubernetes/docs/V1alpha3PoolStatus.md @@ -0,0 +1,23 @@ + + +# V1alpha3PoolStatus + +PoolStatus contains status information for a single resource pool. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocatedDevices** | **Integer** | AllocatedDevices is the number of devices currently allocated to claims. A value of 0 means no devices are allocated. May be unset when validationError is set. | [optional] | +|**availableDevices** | **Integer** | AvailableDevices is the number of devices available for allocation. This equals TotalDevices - AllocatedDevices - UnavailableDevices. A value of 0 means no devices are currently available. May be unset when validationError is set. | [optional] | +|**driver** | **String** | Driver is the DRA driver name for this pool. Must be a DNS subdomain (e.g., \"gpu.example.com\"). | | +|**generation** | **Long** | Generation is the pool generation observed across all ResourceSlices in this pool. Only the latest generation is reported. During a generation rollout, if not all slices at the latest generation have been published, the pool is included with a validationError and device counts unset. | | +|**nodeName** | **String** | NodeName is the node this pool is associated with. When omitted, the pool is not associated with a specific node. Must be a valid DNS subdomain name (RFC1123). | [optional] | +|**poolName** | **String** | PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by \"/\"). | | +|**resourceSliceCount** | **Integer** | ResourceSliceCount is the number of ResourceSlices that make up this pool. May be unset when validationError is set. | [optional] | +|**totalDevices** | **Integer** | TotalDevices is the total number of devices in the pool across all slices. A value of 0 means the pool has no devices. May be unset when validationError is set. | [optional] | +|**unavailableDevices** | **Integer** | UnavailableDevices is the number of devices that are not available due to taints or other conditions, but are not allocated. A value of 0 means all unallocated devices are available. May be unset when validationError is set. | [optional] | +|**validationError** | **String** | ValidationError is set when the pool's data could not be fully validated (e.g., incomplete slice publication). When set, device count fields and ResourceSliceCount may be unset. | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3ResourcePoolStatusRequest.md b/kubernetes/docs/V1alpha3ResourcePoolStatusRequest.md new file mode 100644 index 0000000000..8ebcfd53c3 --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourcePoolStatusRequest.md @@ -0,0 +1,22 @@ + + +# V1alpha3ResourcePoolStatusRequest + +ResourcePoolStatusRequest triggers a one-time calculation of resource pool status based on the provided filters. Once status is set, the request is considered complete and will not be reprocessed. Users should delete and recreate requests to get updated information. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | 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 | [optional] | +|**kind** | **String** | 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 | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | | +|**spec** | [**V1alpha3ResourcePoolStatusRequestSpec**](V1alpha3ResourcePoolStatusRequestSpec.md) | | | +|**status** | [**V1alpha3ResourcePoolStatusRequestStatus**](V1alpha3ResourcePoolStatusRequestStatus.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1alpha3ResourcePoolStatusRequestList.md b/kubernetes/docs/V1alpha3ResourcePoolStatusRequestList.md new file mode 100644 index 0000000000..ab9279e4e9 --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourcePoolStatusRequestList.md @@ -0,0 +1,21 @@ + + +# V1alpha3ResourcePoolStatusRequestList + +ResourcePoolStatusRequestList is a collection of ResourcePoolStatusRequests. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | 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 | [optional] | +|**items** | [**List<V1alpha3ResourcePoolStatusRequest>**](V1alpha3ResourcePoolStatusRequest.md) | Items is the list of ResourcePoolStatusRequests. | | +|**kind** | **String** | 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 | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1alpha3ResourcePoolStatusRequestSpec.md b/kubernetes/docs/V1alpha3ResourcePoolStatusRequestSpec.md new file mode 100644 index 0000000000..32ca457f16 --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourcePoolStatusRequestSpec.md @@ -0,0 +1,16 @@ + + +# V1alpha3ResourcePoolStatusRequestSpec + +ResourcePoolStatusRequestSpec defines the filters for the pool status request. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**driver** | **String** | Driver specifies the DRA driver name to filter pools. Only pools from ResourceSlices with this driver will be included. Must be a DNS subdomain (e.g., \"gpu.example.com\"). | | +|**limit** | **Integer** | Limit optionally specifies the maximum number of pools to return in the status. If more pools match the filter criteria, the response will be truncated (i.e., len(status.pools) < status.poolCount). Default: 100 Minimum: 1 Maximum: 1000 | [optional] | +|**poolName** | **String** | PoolName optionally filters to a specific pool name. If not specified, all pools from the specified driver are included. When specified, must be a non-empty valid resource pool name (DNS subdomains separated by \"/\"). | [optional] | + + + diff --git a/kubernetes/docs/V1alpha3ResourcePoolStatusRequestStatus.md b/kubernetes/docs/V1alpha3ResourcePoolStatusRequestStatus.md new file mode 100644 index 0000000000..f7d528d611 --- /dev/null +++ b/kubernetes/docs/V1alpha3ResourcePoolStatusRequestStatus.md @@ -0,0 +1,16 @@ + + +# V1alpha3ResourcePoolStatusRequestStatus + +ResourcePoolStatusRequestStatus contains the calculated pool status information. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions provide information about the state of the request. A condition with type=Complete or type=Failed will always be set when the status is populated. Known condition types: - \"Complete\": True when the request has been processed successfully - \"Failed\": True when the request could not be processed | [optional] | +|**poolCount** | **Integer** | PoolCount is the total number of pools that matched the filter criteria, regardless of truncation. This helps users understand how many pools exist even when the response is truncated. A value of 0 means no pools matched the filter criteria. | | +|**pools** | [**List<V1alpha3PoolStatus>**](V1alpha3PoolStatus.md) | Pools contains the first `spec.limit` matching pools, sorted by driver then pool name. If `len(pools) < poolCount`, the list was truncated. When omitted, no pools matched the request filters. | [optional] | + + + diff --git a/kubernetes/docs/V1beta1AllocationResult.md b/kubernetes/docs/V1beta1AllocationResult.md index d094a9fcd4..df6016df59 100644 --- a/kubernetes/docs/V1beta1AllocationResult.md +++ b/kubernetes/docs/V1beta1AllocationResult.md @@ -8,7 +8,7 @@ AllocationResult contains attributes of an allocated resource. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**allocationTimestamp** | **OffsetDateTime** | AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. | [optional] | +|**allocationTimestamp** | **OffsetDateTime** | AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. | [optional] | |**devices** | [**V1beta1DeviceAllocationResult**](V1beta1DeviceAllocationResult.md) | | [optional] | |**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | diff --git a/kubernetes/docs/V1beta1BasicDevice.md b/kubernetes/docs/V1beta1BasicDevice.md index bf1718d09a..66c651d33b 100644 --- a/kubernetes/docs/V1beta1BasicDevice.md +++ b/kubernetes/docs/V1beta1BasicDevice.md @@ -11,14 +11,15 @@ BasicDevice defines one device instance. |**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | |**allowMultipleAllocations** | **Boolean** | AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. | [optional] | |**attributes** | [**Map<String, V1beta1DeviceAttribute>**](V1beta1DeviceAttribute.md) | Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | -|**bindingConditions** | **List<String>** | BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | -|**bindingFailureConditions** | **List<String>** | BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is true, a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | -|**bindsToNode** | **Boolean** | BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingConditions** | **List<String>** | BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is true, a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindsToNode** | **Boolean** | BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | |**capacity** | [**Map<String, V1beta1DeviceCapacity>**](V1beta1DeviceCapacity.md) | Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | |**consumesCounters** | [**List<V1beta1DeviceCounterConsumption>**](V1beta1DeviceCounterConsumption.md) | ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The maximum number of device counter consumptions per device is 2. | [optional] | +|**nodeAllocatableResourceMappings** | [**Map<String, V1beta1NodeAllocatableResourceMapping>**](V1beta1NodeAllocatableResourceMapping.md) | NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. | [optional] | |**nodeName** | **String** | NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | |**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | -|**taints** | [**List<V1beta1DeviceTaint>**](V1beta1DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | +|**taints** | [**List<V1beta1DeviceTaint>**](V1beta1DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta1CELDeviceSelector.md b/kubernetes/docs/V1beta1CELDeviceSelector.md index 5f0476abec..aa17d05098 100644 --- a/kubernetes/docs/V1beta1CELDeviceSelector.md +++ b/kubernetes/docs/V1beta1CELDeviceSelector.md @@ -8,7 +8,7 @@ CELDeviceSelector contains a CEL expression for selecting a device. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**expression** | **String** | Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. | | +|**expression** | **String** | Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. | | diff --git a/kubernetes/docs/V1beta1DeviceAttribute.md b/kubernetes/docs/V1beta1DeviceAttribute.md index 1b73622d4c..d033f5db86 100644 --- a/kubernetes/docs/V1beta1DeviceAttribute.md +++ b/kubernetes/docs/V1beta1DeviceAttribute.md @@ -9,9 +9,13 @@ DeviceAttribute must have exactly one field set. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**bool** | **Boolean** | BoolValue is a true/false value. | [optional] | +|**bools** | **List<Boolean>** | BoolValues is a non-empty list of true/false values. | [optional] | |**_int** | **Long** | IntValue is a number. | [optional] | +|**ints** | **List<Long>** | IntValues is a non-empty list of numbers. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. | [optional] | |**string** | **String** | StringValue is a string. Must not be longer than 64 characters. | [optional] | +|**strings** | **List<String>** | StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. | [optional] | |**version** | **String** | VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. | [optional] | +|**versions** | **List<String>** | VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta1DeviceClassSpec.md b/kubernetes/docs/V1beta1DeviceClassSpec.md index dd1447fa9e..009d1917a7 100644 --- a/kubernetes/docs/V1beta1DeviceClassSpec.md +++ b/kubernetes/docs/V1beta1DeviceClassSpec.md @@ -9,7 +9,7 @@ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and h | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**config** | [**List<V1beta1DeviceClassConfiguration>**](V1beta1DeviceClassConfiguration.md) | Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim. | [optional] | -|**extendedResourceName** | **String** | ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. | [optional] | +|**extendedResourceName** | **String** | ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field. | [optional] | |**selectors** | [**List<V1beta1DeviceSelector>**](V1beta1DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] | diff --git a/kubernetes/docs/V1beta1DeviceConstraint.md b/kubernetes/docs/V1beta1DeviceConstraint.md index 61643f6568..70c45bb622 100644 --- a/kubernetes/docs/V1beta1DeviceConstraint.md +++ b/kubernetes/docs/V1beta1DeviceConstraint.md @@ -8,8 +8,8 @@ DeviceConstraint must have exactly one field set besides Requests. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**distinctAttribute** | **String** | DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. | [optional] | -|**matchAttribute** | **String** | MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. | [optional] | +|**distinctAttribute** | **String** | DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. | [optional] | +|**matchAttribute** | **String** | MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as singleton sets for backward compatibility. Must include the domain qualifier. | [optional] | |**requests** | **List<String>** | Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. | [optional] | diff --git a/kubernetes/docs/V1beta1DeviceRequest.md b/kubernetes/docs/V1beta1DeviceRequest.md index 1038f6039d..e6860a3fdb 100644 --- a/kubernetes/docs/V1beta1DeviceRequest.md +++ b/kubernetes/docs/V1beta1DeviceRequest.md @@ -16,7 +16,7 @@ DeviceRequest is a request for devices required for a claim. This is typically a |**firstAvailable** | [**List<V1beta1DeviceSubRequest>**](V1beta1DeviceSubRequest.md) | FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. | [optional] | |**name** | **String** | Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. Must be a DNS label and unique among all DeviceRequests in a ResourceClaim. | | |**selectors** | [**List<V1beta1DeviceSelector>**](V1beta1DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. | [optional] | -|**tolerations** | [**List<V1beta1DeviceToleration>**](V1beta1DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | +|**tolerations** | [**List<V1beta1DeviceToleration>**](V1beta1DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md b/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md index c566443c91..75d2c7aaba 100644 --- a/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md +++ b/kubernetes/docs/V1beta1DeviceRequestAllocationResult.md @@ -9,15 +9,15 @@ DeviceRequestAllocationResult contains the allocation result for one request. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**adminAccess** | **Boolean** | AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | -|**bindingConditions** | **List<String>** | BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | -|**bindingFailureConditions** | **List<String>** | BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingConditions** | **List<String>** | BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | |**consumedCapacity** | **Map<String, Quantity>** | ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. | [optional] | |**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | | |**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters. | | |**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | | |**request** | **String** | Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. | | |**shareID** | **String** | ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. | [optional] | -|**tolerations** | [**List<V1beta1DeviceToleration>**](V1beta1DeviceToleration.md) | A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | +|**tolerations** | [**List<V1beta1DeviceToleration>**](V1beta1DeviceToleration.md) | A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta1DeviceSubRequest.md b/kubernetes/docs/V1beta1DeviceSubRequest.md index 7484eb8b0b..9302aa0548 100644 --- a/kubernetes/docs/V1beta1DeviceSubRequest.md +++ b/kubernetes/docs/V1beta1DeviceSubRequest.md @@ -14,7 +14,7 @@ DeviceSubRequest describes a request for device provided in the claim.spec.devic |**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. | | |**name** | **String** | Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>. Must be a DNS label. | | |**selectors** | [**List<V1beta1DeviceSelector>**](V1beta1DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered. | [optional] | -|**tolerations** | [**List<V1beta1DeviceToleration>**](V1beta1DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | +|**tolerations** | [**List<V1beta1DeviceToleration>**](V1beta1DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta1DeviceTaint.md b/kubernetes/docs/V1beta1DeviceTaint.md index 9290c1ad51..c84b3b1f71 100644 --- a/kubernetes/docs/V1beta1DeviceTaint.md +++ b/kubernetes/docs/V1beta1DeviceTaint.md @@ -10,7 +10,7 @@ The device this taint is attached to has the \"effect\" on any claim which does |------------ | ------------- | ------------- | -------------| |**effect** | **String** | The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. | | |**key** | **String** | The taint key to be applied to a device. Must be a label name. | | -|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. | [optional] | +|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). | [optional] | |**value** | **String** | The taint value corresponding to the taint key. Must be a label value. | [optional] | diff --git a/kubernetes/docs/V1beta1IPAddress.md b/kubernetes/docs/V1beta1IPAddress.md index 5bf2eb2650..3220585ed3 100644 --- a/kubernetes/docs/V1beta1IPAddress.md +++ b/kubernetes/docs/V1beta1IPAddress.md @@ -11,7 +11,7 @@ IPAddress represents a single IP of a single IP Family. The object is designed t |**apiVersion** | **String** | 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 | [optional] | |**kind** | **String** | 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 | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**spec** | [**V1beta1IPAddressSpec**](V1beta1IPAddressSpec.md) | | [optional] | +|**spec** | [**V1beta1IPAddressSpec**](V1beta1IPAddressSpec.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta1LeaseCandidate.md b/kubernetes/docs/V1beta1LeaseCandidate.md index 2b35d2ac9f..534b895c93 100644 --- a/kubernetes/docs/V1beta1LeaseCandidate.md +++ b/kubernetes/docs/V1beta1LeaseCandidate.md @@ -11,7 +11,7 @@ LeaseCandidate defines a candidate for a Lease object. Candidates are created su |**apiVersion** | **String** | 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 | [optional] | |**kind** | **String** | 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 | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**spec** | [**V1beta1LeaseCandidateSpec**](V1beta1LeaseCandidateSpec.md) | | [optional] | +|**spec** | [**V1beta1LeaseCandidateSpec**](V1beta1LeaseCandidateSpec.md) | | | ## Implemented Interfaces diff --git a/kubernetes/docs/V1beta1MatchCondition.md b/kubernetes/docs/V1beta1MatchCondition.md index d5c3aa195f..5e7e8ab5c8 100644 --- a/kubernetes/docs/V1beta1MatchCondition.md +++ b/kubernetes/docs/V1beta1MatchCondition.md @@ -8,8 +8,8 @@ MatchCondition represents a condition which must be fulfilled for a request to b | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**expression** | **String** | Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. | | -|**name** | **String** | Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. | | +|**expression** | **String** | expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. | | +|**name** | **String** | name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. | | diff --git a/kubernetes/docs/V1beta1MatchResources.md b/kubernetes/docs/V1beta1MatchResources.md index c86c7e6701..a479ad8351 100644 --- a/kubernetes/docs/V1beta1MatchResources.md +++ b/kubernetes/docs/V1beta1MatchResources.md @@ -8,11 +8,11 @@ MatchResources decides whether to run the admission control policy on an object | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**excludeResourceRules** | [**List<V1beta1NamedRuleWithOperations>**](V1beta1NamedRuleWithOperations.md) | ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | [optional] | +|**excludeResourceRules** | [**List<V1beta1NamedRuleWithOperations>**](V1beta1NamedRuleWithOperations.md) | excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) | [optional] | |**matchPolicy** | **String** | matchPolicy defines how the \"MatchResources\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy. Defaults to \"Equivalent\" | [optional] | |**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | |**objectSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | -|**resourceRules** | [**List<V1beta1NamedRuleWithOperations>**](V1beta1NamedRuleWithOperations.md) | ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. | [optional] | +|**resourceRules** | [**List<V1beta1NamedRuleWithOperations>**](V1beta1NamedRuleWithOperations.md) | resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. | [optional] | diff --git a/kubernetes/docs/V1beta1NamedRuleWithOperations.md b/kubernetes/docs/V1beta1NamedRuleWithOperations.md index b2521bcfac..b9521554c5 100644 --- a/kubernetes/docs/V1beta1NamedRuleWithOperations.md +++ b/kubernetes/docs/V1beta1NamedRuleWithOperations.md @@ -8,11 +8,11 @@ NamedRuleWithOperations is a tuple of Operations and Resources with ResourceName | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**apiGroups** | **List<String>** | APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] | -|**apiVersions** | **List<String>** | APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional] | -|**operations** | **List<String>** | Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | [optional] | -|**resourceNames** | **List<String>** | ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] | -|**resources** | **List<String>** | Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. | [optional] | +|**apiGroups** | **List<String>** | apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**apiVersions** | **List<String>** | apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**operations** | **List<String>** | operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. | [optional] | +|**resourceNames** | **List<String>** | resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. | [optional] | +|**resources** | **List<String>** | resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. | [optional] | |**scope** | **String** | scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". | [optional] | diff --git a/kubernetes/docs/V1beta1NetworkDeviceData.md b/kubernetes/docs/V1beta1NetworkDeviceData.md index 093b89b5b3..c292b04e96 100644 --- a/kubernetes/docs/V1beta1NetworkDeviceData.md +++ b/kubernetes/docs/V1beta1NetworkDeviceData.md @@ -8,8 +8,8 @@ NetworkDeviceData provides network-related details for the allocated device. Thi | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**hardwareAddress** | **String** | HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. | [optional] | -|**interfaceName** | **String** | InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. | [optional] | +|**hardwareAddress** | **String** | HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 bytes. | [optional] | +|**interfaceName** | **String** | InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 bytes. | [optional] | |**ips** | **List<String>** | IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. Must not contain more than 16 entries. | [optional] | diff --git a/kubernetes/docs/V1beta1NodeAllocatableResourceMapping.md b/kubernetes/docs/V1beta1NodeAllocatableResourceMapping.md new file mode 100644 index 0000000000..000d549f70 --- /dev/null +++ b/kubernetes/docs/V1beta1NodeAllocatableResourceMapping.md @@ -0,0 +1,15 @@ + + +# V1beta1NodeAllocatableResourceMapping + +NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocationMultiplier** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +|**capacityKey** | **String** | CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\". | [optional] | + + + diff --git a/kubernetes/docs/V1beta1ParamKind.md b/kubernetes/docs/V1beta1ParamKind.md index 953e641eef..1eb7afc1e0 100644 --- a/kubernetes/docs/V1beta1ParamKind.md +++ b/kubernetes/docs/V1beta1ParamKind.md @@ -8,8 +8,8 @@ ParamKind is a tuple of Group Kind and Version. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**apiVersion** | **String** | APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. | [optional] | -|**kind** | **String** | Kind is the API kind the resources belong to. Required. | [optional] | +|**apiVersion** | **String** | apiVersion is the API group version the resources belong to. In format of \"group/version\". Required. | [optional] | +|**kind** | **String** | kind is the API kind the resources belong to. Required. | [optional] | diff --git a/kubernetes/docs/V1beta1ParamRef.md b/kubernetes/docs/V1beta1ParamRef.md index 61036b34ad..bb1e168384 100644 --- a/kubernetes/docs/V1beta1ParamRef.md +++ b/kubernetes/docs/V1beta1ParamRef.md @@ -10,7 +10,7 @@ ParamRef describes how to locate the params to be used as input to expressions o |------------ | ------------- | ------------- | -------------| |**name** | **String** | name is the name of the resource being referenced. One of `name` or `selector` must be set, but `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. A single parameter used for all admission requests can be configured by setting the `name` field, leaving `selector` blank, and setting namespace if `paramKind` is namespace-scoped. | [optional] | |**namespace** | **String** | namespace is the namespace of the referenced resource. Allows limiting the search for params to a specific namespace. Applies to both `name` and `selector` fields. A per-namespace parameter may be used by specifying a namespace-scoped `paramKind` in the policy and leaving this field empty. - If `paramKind` is cluster-scoped, this field MUST be unset. Setting this field results in a configuration error. - If `paramKind` is namespace-scoped, the namespace of the object being evaluated for admission will be used when this field is left unset. Take care that if this is left empty the binding must not match any cluster-scoped resources, which will result in an error. | [optional] | -|**parameterNotFoundAction** | **String** | `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required | [optional] | +|**parameterNotFoundAction** | **String** | parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required | [optional] | |**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] | diff --git a/kubernetes/docs/V1beta1PodCertificateRequestSpec.md b/kubernetes/docs/V1beta1PodCertificateRequestSpec.md index 3bd2998e90..d1eb2bf537 100644 --- a/kubernetes/docs/V1beta1PodCertificateRequestSpec.md +++ b/kubernetes/docs/V1beta1PodCertificateRequestSpec.md @@ -11,13 +11,14 @@ PodCertificateRequestSpec describes the certificate request. All fields are imm |**maxExpirationSeconds** | **Integer** | maxExpirationSeconds is the maximum lifetime permitted for the certificate. If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours. | [optional] | |**nodeName** | **String** | nodeName is the name of the node the pod is assigned to. | | |**nodeUID** | **String** | nodeUID is the UID of the node the pod is assigned to. | | -|**pkixPublicKey** | **byte[]** | pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to. The key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field. | | +|**pkixPublicKey** | **byte[]** | The PKIX-serialized public key the signer will issue the certificate to. The key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field. Deprecated: This field is replaced by StubPKCS10Request. If StubPKCS10Request is set, this field must be empty. Signer implementations should extract the public key from the StubPKCS10Request field. | [optional] | |**podName** | **String** | podName is the name of the pod into which the certificate will be mounted. | | |**podUID** | **String** | podUID is the UID of the pod into which the certificate will be mounted. | | -|**proofOfPossession** | **byte[]** | proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey. It is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`. kube-apiserver validates the proof of possession during creation of the PodCertificateRequest. If the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options). If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1) If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign). | | +|**proofOfPossession** | **byte[]** | A proof that the requesting kubelet holds the private key corresponding to pkixPublicKey. It is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`. kube-apiserver validates the proof of possession during creation of the PodCertificateRequest. If the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options). If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1) If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign). Deprecated: This field is replaced by StubPKCS10Request. If StubPKCS10Request is set, this field must be empty. | [optional] | |**serviceAccountName** | **String** | serviceAccountName is the name of the service account the pod is running as. | | |**serviceAccountUID** | **String** | serviceAccountUID is the UID of the service account the pod is running as. | | |**signerName** | **String** | signerName indicates the requested signer. All signer names beginning with `kubernetes.io` are reserved for use by the Kubernetes project. There is currently one well-known signer documented by the Kubernetes project, `kubernetes.io/kube-apiserver-client-pod`, which will issue client certificates understood by kube-apiserver. It is currently unimplemented. | | +|**stubPKCS10Request** | **byte[]** | A PKCS#10 certificate signing request (DER-serialized) generated by Kubelet using the subject private key. Most signer implementations will ignore the contents of the CSR except to extract the subject public key. The API server automatically verifies the CSR signature during admission, so the signer does not need to repeat the verification. CSRs generated by kubelet are completely empty. The subject public key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field. | | |**unverifiedUserAnnotations** | **Map<String, String>** | unverifiedUserAnnotations allow pod authors to pass additional information to the signer implementation. Kubernetes does not restrict or validate this metadata in any way. Entries are subject to the same validation as object metadata annotations, with the addition that all keys must be domain-prefixed. No restrictions are placed on values, except an overall size limitation on the entire field. Signers should document the keys and values they support. Signers should deny requests that contain keys they do not recognize. | [optional] | diff --git a/kubernetes/docs/V1beta1Variable.md b/kubernetes/docs/V1beta1Variable.md index 7c3f8406f4..01baee5920 100644 --- a/kubernetes/docs/V1beta1Variable.md +++ b/kubernetes/docs/V1beta1Variable.md @@ -8,8 +8,8 @@ Variable is the definition of a variable that is used for composition. A variabl | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**expression** | **String** | Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. | | -|**name** | **String** | Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` | | +|**expression** | **String** | expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. | | +|**name** | **String** | name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` | | diff --git a/kubernetes/docs/V1beta2AllocationResult.md b/kubernetes/docs/V1beta2AllocationResult.md index 65feb5be58..eb87e3fae1 100644 --- a/kubernetes/docs/V1beta2AllocationResult.md +++ b/kubernetes/docs/V1beta2AllocationResult.md @@ -8,7 +8,7 @@ AllocationResult contains attributes of an allocated resource. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**allocationTimestamp** | **OffsetDateTime** | AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. | [optional] | +|**allocationTimestamp** | **OffsetDateTime** | AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. | [optional] | |**devices** | [**V1beta2DeviceAllocationResult**](V1beta2DeviceAllocationResult.md) | | [optional] | |**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | diff --git a/kubernetes/docs/V1beta2CELDeviceSelector.md b/kubernetes/docs/V1beta2CELDeviceSelector.md index 486c15c920..cb81e940f7 100644 --- a/kubernetes/docs/V1beta2CELDeviceSelector.md +++ b/kubernetes/docs/V1beta2CELDeviceSelector.md @@ -8,7 +8,7 @@ CELDeviceSelector contains a CEL expression for selecting a device. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**expression** | **String** | Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. | | +|**expression** | **String** | Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. | | diff --git a/kubernetes/docs/V1beta2Device.md b/kubernetes/docs/V1beta2Device.md index 5c11910b91..7fc2d729a4 100644 --- a/kubernetes/docs/V1beta2Device.md +++ b/kubernetes/docs/V1beta2Device.md @@ -11,15 +11,16 @@ Device represents one individual hardware instance that can be selected based on |**allNodes** | **Boolean** | AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | |**allowMultipleAllocations** | **Boolean** | AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. | [optional] | |**attributes** | [**Map<String, V1beta2DeviceAttribute>**](V1beta2DeviceAttribute.md) | Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | -|**bindingConditions** | **List<String>** | BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | -|**bindingFailureConditions** | **List<String>** | BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | -|**bindsToNode** | **Boolean** | BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingConditions** | **List<String>** | BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindsToNode** | **Boolean** | BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | |**capacity** | [**Map<String, V1beta2DeviceCapacity>**](V1beta2DeviceCapacity.md) | Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. | [optional] | |**consumesCounters** | [**List<V1beta2DeviceCounterConsumption>**](V1beta2DeviceCounterConsumption.md) | ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The maximum number of device counter consumptions per device is 2. | [optional] | |**name** | **String** | Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. | | +|**nodeAllocatableResourceMappings** | [**Map<String, V1beta2NodeAllocatableResourceMapping>**](V1beta2NodeAllocatableResourceMapping.md) | NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. | [optional] | |**nodeName** | **String** | NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. | [optional] | |**nodeSelector** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] | -|**taints** | [**List<V1beta2DeviceTaint>**](V1beta2DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | +|**taints** | [**List<V1beta2DeviceTaint>**](V1beta2DeviceTaint.md) | If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta2DeviceAttribute.md b/kubernetes/docs/V1beta2DeviceAttribute.md index 629d04604e..affe72d423 100644 --- a/kubernetes/docs/V1beta2DeviceAttribute.md +++ b/kubernetes/docs/V1beta2DeviceAttribute.md @@ -9,9 +9,13 @@ DeviceAttribute must have exactly one field set. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**bool** | **Boolean** | BoolValue is a true/false value. | [optional] | +|**bools** | **List<Boolean>** | BoolValues is a non-empty list of true/false values. | [optional] | |**_int** | **Long** | IntValue is a number. | [optional] | +|**ints** | **List<Long>** | IntValues is a non-empty list of numbers. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. | [optional] | |**string** | **String** | StringValue is a string. Must not be longer than 64 characters. | [optional] | +|**strings** | **List<String>** | StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. | [optional] | |**version** | **String** | VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. | [optional] | +|**versions** | **List<String>** | VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta2DeviceClassSpec.md b/kubernetes/docs/V1beta2DeviceClassSpec.md index c27afbaa08..984cf38dd9 100644 --- a/kubernetes/docs/V1beta2DeviceClassSpec.md +++ b/kubernetes/docs/V1beta2DeviceClassSpec.md @@ -9,7 +9,7 @@ DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and h | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**config** | [**List<V1beta2DeviceClassConfiguration>**](V1beta2DeviceClassConfiguration.md) | Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim. | [optional] | -|**extendedResourceName** | **String** | ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. | [optional] | +|**extendedResourceName** | **String** | ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field. | [optional] | |**selectors** | [**List<V1beta2DeviceSelector>**](V1beta2DeviceSelector.md) | Each selector must be satisfied by a device which is claimed via this class. | [optional] | diff --git a/kubernetes/docs/V1beta2DeviceConstraint.md b/kubernetes/docs/V1beta2DeviceConstraint.md index 12a32935c3..0b3136cfc8 100644 --- a/kubernetes/docs/V1beta2DeviceConstraint.md +++ b/kubernetes/docs/V1beta2DeviceConstraint.md @@ -8,8 +8,8 @@ DeviceConstraint must have exactly one field set besides Requests. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**distinctAttribute** | **String** | DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. | [optional] | -|**matchAttribute** | **String** | MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. | [optional] | +|**distinctAttribute** | **String** | DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. | [optional] | +|**matchAttribute** | **String** | MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as singleton sets for backward compatibility. Must include the domain qualifier. | [optional] | |**requests** | **List<String>** | Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. | [optional] | diff --git a/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md b/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md index 45ecdc6028..b647edbc99 100644 --- a/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md +++ b/kubernetes/docs/V1beta2DeviceRequestAllocationResult.md @@ -9,15 +9,15 @@ DeviceRequestAllocationResult contains the allocation result for one request. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**adminAccess** | **Boolean** | AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. | [optional] | -|**bindingConditions** | **List<String>** | BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | -|**bindingFailureConditions** | **List<String>** | BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingConditions** | **List<String>** | BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | +|**bindingFailureConditions** | **List<String>** | BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. | [optional] | |**consumedCapacity** | **Map<String, Quantity>** | ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. | [optional] | |**device** | **String** | Device references one device instance via its name in the driver's resource pool. It must be a DNS label. | | |**driver** | **String** | Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters. | | |**pool** | **String** | This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. | | |**request** | **String** | Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. | | |**shareID** | **String** | ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. | [optional] | -|**tolerations** | [**List<V1beta2DeviceToleration>**](V1beta2DeviceToleration.md) | A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | +|**tolerations** | [**List<V1beta2DeviceToleration>**](V1beta2DeviceToleration.md) | A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta2DeviceSubRequest.md b/kubernetes/docs/V1beta2DeviceSubRequest.md index 92f0007c4c..231698ec1d 100644 --- a/kubernetes/docs/V1beta2DeviceSubRequest.md +++ b/kubernetes/docs/V1beta2DeviceSubRequest.md @@ -14,7 +14,7 @@ DeviceSubRequest describes a request for device provided in the claim.spec.devic |**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. | | |**name** | **String** | Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>. Must be a DNS label. | | |**selectors** | [**List<V1beta2DeviceSelector>**](V1beta2DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered. | [optional] | -|**tolerations** | [**List<V1beta2DeviceToleration>**](V1beta2DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | +|**tolerations** | [**List<V1beta2DeviceToleration>**](V1beta2DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta2DeviceTaint.md b/kubernetes/docs/V1beta2DeviceTaint.md index e04ebf6e11..ae4ae9268e 100644 --- a/kubernetes/docs/V1beta2DeviceTaint.md +++ b/kubernetes/docs/V1beta2DeviceTaint.md @@ -10,7 +10,7 @@ The device this taint is attached to has the \"effect\" on any claim which does |------------ | ------------- | ------------- | -------------| |**effect** | **String** | The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. More effects may get added in the future. Consumers must treat unknown effects like None. | | |**key** | **String** | The taint key to be applied to a device. Must be a label name. | | -|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. | [optional] | +|**timeAdded** | **OffsetDateTime** | TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). | [optional] | |**value** | **String** | The taint value corresponding to the taint key. Must be a label value. | [optional] | diff --git a/kubernetes/docs/V1beta2DeviceTaintRule.md b/kubernetes/docs/V1beta2DeviceTaintRule.md new file mode 100644 index 0000000000..c73e1c1d88 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceTaintRule.md @@ -0,0 +1,22 @@ + + +# V1beta2DeviceTaintRule + +DeviceTaintRule adds one taint to all devices which match the selector. This has the same effect as if the taint was specified directly in the ResourceSlice by the DRA driver. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | 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 | [optional] | +|**kind** | **String** | 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 | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**spec** | [**V1beta2DeviceTaintRuleSpec**](V1beta2DeviceTaintRuleSpec.md) | | | +|**status** | [**V1beta2DeviceTaintRuleStatus**](V1beta2DeviceTaintRuleStatus.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V1beta2DeviceTaintRuleList.md b/kubernetes/docs/V1beta2DeviceTaintRuleList.md new file mode 100644 index 0000000000..77c6c7a8e2 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceTaintRuleList.md @@ -0,0 +1,21 @@ + + +# V1beta2DeviceTaintRuleList + +DeviceTaintRuleList is a collection of DeviceTaintRules. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | 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 | [optional] | +|**items** | [**List<V1beta2DeviceTaintRule>**](V1beta2DeviceTaintRule.md) | Items is the list of DeviceTaintRules. | | +|**kind** | **String** | 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 | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V1beta2DeviceTaintRuleSpec.md b/kubernetes/docs/V1beta2DeviceTaintRuleSpec.md new file mode 100644 index 0000000000..014799c6f1 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceTaintRuleSpec.md @@ -0,0 +1,15 @@ + + +# V1beta2DeviceTaintRuleSpec + +DeviceTaintRuleSpec specifies the selector and one taint. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**deviceSelector** | [**V1beta2DeviceTaintSelector**](V1beta2DeviceTaintSelector.md) | | [optional] | +|**taint** | [**V1beta2DeviceTaint**](V1beta2DeviceTaint.md) | | | + + + diff --git a/kubernetes/docs/V1beta2DeviceTaintRuleStatus.md b/kubernetes/docs/V1beta2DeviceTaintRuleStatus.md new file mode 100644 index 0000000000..c31d5f3d14 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceTaintRuleStatus.md @@ -0,0 +1,14 @@ + + +# V1beta2DeviceTaintRuleStatus + +DeviceTaintRuleStatus provides information about an on-going pod eviction. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**conditions** | [**List<V1Condition>**](V1Condition.md) | Conditions provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format. The following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise (includes the effects which don't cause eviction). - Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods in a human-readable format, updated periodically, may change For `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status. Must have 8 or fewer entries. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2DeviceTaintSelector.md b/kubernetes/docs/V1beta2DeviceTaintSelector.md new file mode 100644 index 0000000000..d66a14cd20 --- /dev/null +++ b/kubernetes/docs/V1beta2DeviceTaintSelector.md @@ -0,0 +1,16 @@ + + +# V1beta2DeviceTaintSelector + +DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**device** | **String** | If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. Setting also driver and pool may be required to avoid ambiguity, but is not required. | [optional] | +|**driver** | **String** | If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver. | [optional] | +|**pool** | **String** | If pool is set, only devices in that pool are selected. Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name. | [optional] | + + + diff --git a/kubernetes/docs/V1beta2ExactDeviceRequest.md b/kubernetes/docs/V1beta2ExactDeviceRequest.md index 4eb463f794..93d0f91a17 100644 --- a/kubernetes/docs/V1beta2ExactDeviceRequest.md +++ b/kubernetes/docs/V1beta2ExactDeviceRequest.md @@ -14,7 +14,7 @@ ExactDeviceRequest is a request for one or more identical devices. |**count** | **Long** | Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. | [optional] | |**deviceClassName** | **String** | DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A DeviceClassName is required. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. | | |**selectors** | [**List<V1beta2DeviceSelector>**](V1beta2DeviceSelector.md) | Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. | [optional] | -|**tolerations** | [**List<V1beta2DeviceToleration>**](V1beta2DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. | [optional] | +|**tolerations** | [**List<V1beta2DeviceToleration>**](V1beta2DeviceToleration.md) | If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. | [optional] | diff --git a/kubernetes/docs/V1beta2NetworkDeviceData.md b/kubernetes/docs/V1beta2NetworkDeviceData.md index 99e9e49e33..fe1efd4c65 100644 --- a/kubernetes/docs/V1beta2NetworkDeviceData.md +++ b/kubernetes/docs/V1beta2NetworkDeviceData.md @@ -8,8 +8,8 @@ NetworkDeviceData provides network-related details for the allocated device. Thi | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**hardwareAddress** | **String** | HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. | [optional] | -|**interfaceName** | **String** | InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. | [optional] | +|**hardwareAddress** | **String** | HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 bytes. | [optional] | +|**interfaceName** | **String** | InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 bytes. | [optional] | |**ips** | **List<String>** | IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. | [optional] | diff --git a/kubernetes/docs/V1beta2NodeAllocatableResourceMapping.md b/kubernetes/docs/V1beta2NodeAllocatableResourceMapping.md new file mode 100644 index 0000000000..0eb8a2e2c1 --- /dev/null +++ b/kubernetes/docs/V1beta2NodeAllocatableResourceMapping.md @@ -0,0 +1,15 @@ + + +# V1beta2NodeAllocatableResourceMapping + +NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allocationMultiplier** | **Quantity** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +|**capacityKey** | **String** | CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\". | [optional] | + + + diff --git a/kubernetes/docs/V2APIGroupDiscovery.md b/kubernetes/docs/V2APIGroupDiscovery.md new file mode 100644 index 0000000000..de50eac5bc --- /dev/null +++ b/kubernetes/docs/V2APIGroupDiscovery.md @@ -0,0 +1,21 @@ + + +# V2APIGroupDiscovery + +APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | | [optional] | +|**kind** | **String** | | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**versions** | [**List<V2APIVersionDiscovery>**](V2APIVersionDiscovery.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V2APIGroupDiscoveryList.md b/kubernetes/docs/V2APIGroupDiscoveryList.md new file mode 100644 index 0000000000..f83ccc0c03 --- /dev/null +++ b/kubernetes/docs/V2APIGroupDiscoveryList.md @@ -0,0 +1,21 @@ + + +# V2APIGroupDiscoveryList + +APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | | [optional] | +|**kind** | **String** | | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | +|**items** | [**List<V2APIGroupDiscovery>**](V2APIGroupDiscovery.md) | | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V2APIResourceDiscovery.md b/kubernetes/docs/V2APIResourceDiscovery.md new file mode 100644 index 0000000000..614aed01f0 --- /dev/null +++ b/kubernetes/docs/V2APIResourceDiscovery.md @@ -0,0 +1,21 @@ + + +# V2APIResourceDiscovery + +APIResourceDiscovery provides information about an API resource for discovery. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**resource** | **String** | resource is the plural name of the resource. | | +|**responseKind** | [**V1GroupVersionKind**](V1GroupVersionKind.md) | | [optional] | +|**scope** | **String** | scope indicates the scope of a resource, either Cluster or Namespaced | | +|**singularResource** | **String** | singularResource is the singular name of the resource. | | +|**verbs** | **List<String>** | verbs is a list of supported API operation types | | +|**shortNames** | **List<String>** | shortNames is a list of suggested short names of the resource. | [optional] | +|**categories** | **List<String>** | categories is a list of the grouped resources this resource belongs to. | [optional] | +|**subresources** | [**List<V2APISubresourceDiscovery>**](V2APISubresourceDiscovery.md) | | [optional] | + + + diff --git a/kubernetes/docs/V2APISubresourceDiscovery.md b/kubernetes/docs/V2APISubresourceDiscovery.md new file mode 100644 index 0000000000..06b0637fb3 --- /dev/null +++ b/kubernetes/docs/V2APISubresourceDiscovery.md @@ -0,0 +1,17 @@ + + +# V2APISubresourceDiscovery + +APISubresourceDiscovery provides information about an API subresource for discovery. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**subresource** | **String** | subresource is the name of the subresource. | | +|**responseKind** | [**V1GroupVersionKind**](V1GroupVersionKind.md) | | [optional] | +|**acceptedTypes** | [**List<V1GroupVersionKind>**](V1GroupVersionKind.md) | | [optional] | +|**verbs** | **List<String>** | verbs is a list of supported API operation types | | + + + diff --git a/kubernetes/docs/V2APIVersionDiscovery.md b/kubernetes/docs/V2APIVersionDiscovery.md new file mode 100644 index 0000000000..c3faae81cc --- /dev/null +++ b/kubernetes/docs/V2APIVersionDiscovery.md @@ -0,0 +1,16 @@ + + +# V2APIVersionDiscovery + +APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**version** | **String** | version is the name of the version within a group version. | | +|**resources** | [**List<V2APIResourceDiscovery>**](V2APIResourceDiscovery.md) | | [optional] | +|**freshness** | **String** | freshness marks whether a group version's discovery document is up to date. | [optional] | + + + diff --git a/kubernetes/docs/V2HorizontalPodAutoscaler.md b/kubernetes/docs/V2HorizontalPodAutoscaler.md index 14897f73aa..daa5935687 100644 --- a/kubernetes/docs/V2HorizontalPodAutoscaler.md +++ b/kubernetes/docs/V2HorizontalPodAutoscaler.md @@ -11,7 +11,7 @@ HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, wh |**apiVersion** | **String** | 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 | [optional] | |**kind** | **String** | 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 | [optional] | |**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | -|**spec** | [**V2HorizontalPodAutoscalerSpec**](V2HorizontalPodAutoscalerSpec.md) | | [optional] | +|**spec** | [**V2HorizontalPodAutoscalerSpec**](V2HorizontalPodAutoscalerSpec.md) | | | |**status** | [**V2HorizontalPodAutoscalerStatus**](V2HorizontalPodAutoscalerStatus.md) | | [optional] | diff --git a/kubernetes/docs/V2beta1APIGroupDiscovery.md b/kubernetes/docs/V2beta1APIGroupDiscovery.md new file mode 100644 index 0000000000..84d1c8ac4b --- /dev/null +++ b/kubernetes/docs/V2beta1APIGroupDiscovery.md @@ -0,0 +1,21 @@ + + +# V2beta1APIGroupDiscovery + +APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | | [optional] | +|**kind** | **String** | | [optional] | +|**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] | +|**versions** | [**List<V2beta1APIVersionDiscovery>**](V2beta1APIVersionDiscovery.md) | | [optional] | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesObject + + diff --git a/kubernetes/docs/V2beta1APIGroupDiscoveryList.md b/kubernetes/docs/V2beta1APIGroupDiscoveryList.md new file mode 100644 index 0000000000..75c3be4303 --- /dev/null +++ b/kubernetes/docs/V2beta1APIGroupDiscoveryList.md @@ -0,0 +1,21 @@ + + +# V2beta1APIGroupDiscoveryList + +APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**apiVersion** | **String** | | [optional] | +|**kind** | **String** | | [optional] | +|**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] | +|**items** | [**List<V2beta1APIGroupDiscovery>**](V2beta1APIGroupDiscovery.md) | | | + + +## Implemented Interfaces + +* io.kubernetes.client.common.KubernetesListObject + + diff --git a/kubernetes/docs/V2beta1APIResourceDiscovery.md b/kubernetes/docs/V2beta1APIResourceDiscovery.md new file mode 100644 index 0000000000..e5598078e8 --- /dev/null +++ b/kubernetes/docs/V2beta1APIResourceDiscovery.md @@ -0,0 +1,21 @@ + + +# V2beta1APIResourceDiscovery + +APIResourceDiscovery provides information about an API resource for discovery. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**resource** | **String** | resource is the plural name of the resource. | | +|**responseKind** | [**V1GroupVersionKind**](V1GroupVersionKind.md) | | [optional] | +|**scope** | **String** | scope indicates the scope of a resource, either Cluster or Namespaced | | +|**singularResource** | **String** | singularResource is the singular name of the resource. | | +|**verbs** | **List<String>** | verbs is a list of supported API operation types | | +|**shortNames** | **List<String>** | shortNames is a list of suggested short names of the resource. | [optional] | +|**categories** | **List<String>** | categories is a list of the grouped resources this resource belongs to. | [optional] | +|**subresources** | [**List<V2beta1APISubresourceDiscovery>**](V2beta1APISubresourceDiscovery.md) | | [optional] | + + + diff --git a/kubernetes/docs/V2beta1APISubresourceDiscovery.md b/kubernetes/docs/V2beta1APISubresourceDiscovery.md new file mode 100644 index 0000000000..4e8ca4df8f --- /dev/null +++ b/kubernetes/docs/V2beta1APISubresourceDiscovery.md @@ -0,0 +1,17 @@ + + +# V2beta1APISubresourceDiscovery + +APISubresourceDiscovery provides information about an API subresource for discovery. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**subresource** | **String** | subresource is the name of the subresource. | | +|**responseKind** | [**V1GroupVersionKind**](V1GroupVersionKind.md) | | [optional] | +|**verbs** | **List<String>** | verbs is a list of supported API operation types | | +|**acceptedTypes** | [**List<V1GroupVersionKind>**](V1GroupVersionKind.md) | | [optional] | + + + diff --git a/kubernetes/docs/V2beta1APIVersionDiscovery.md b/kubernetes/docs/V2beta1APIVersionDiscovery.md new file mode 100644 index 0000000000..ad8f04466b --- /dev/null +++ b/kubernetes/docs/V2beta1APIVersionDiscovery.md @@ -0,0 +1,16 @@ + + +# V2beta1APIVersionDiscovery + +APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**version** | **String** | version is the name of the version within a group version. | | +|**resources** | [**List<V2beta1APIResourceDiscovery>**](V2beta1APIResourceDiscovery.md) | | [optional] | +|**freshness** | **String** | freshness marks whether a group version's discovery document is up to date. | [optional] | + + + diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java index dd6f5d96cb..2c06b5522b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiClient.java @@ -141,7 +141,7 @@ protected void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("Kubernetes Java Client/25.0.0-SNAPSHOT"); + setUserAgent("Kubernetes Java Client/27.0.0-SNAPSHOT"); authentications = new HashMap(); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java index 905691a165..440b596400 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ApiException.java @@ -20,7 +20,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class ApiException extends Exception { private static final long serialVersionUID = 1L; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java index 77885f3f91..6be89b4ace 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Configuration.java @@ -16,9 +16,9 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.function.Supplier; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class Configuration { - public static final String VERSION = "25.0.0-SNAPSHOT"; + public static final String VERSION = "27.0.0-SNAPSHOT"; private static final AtomicReference defaultApiClient = new AtomicReference<>(); private static volatile Supplier apiClientFactory = ApiClient::new; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java index fe380af1d1..6b1252990f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/JSON.java @@ -155,6 +155,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AllocatedDeviceStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AllocationResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AppArmorProfile.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ApplyConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AttachedVolume.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AuditAnnotation.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1AzureDiskVolumeSource.CustomTypeAdapterFactory()); @@ -319,6 +320,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1GroupResource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1GroupSubject.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1GroupVersionForDiscovery.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1GroupVersionKind.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1HTTPGetAction.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1HTTPHeader.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1HTTPIngressPath.CustomTypeAdapterFactory()); @@ -337,6 +339,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ISCSIPersistentVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ISCSIVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ImageVolumeSource.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ImageVolumeStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Ingress.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1IngressBackend.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1IngressClass.CustomTypeAdapterFactory()); @@ -352,6 +355,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1IngressSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1IngressStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1IngressTLS.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1JSONPatch.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1JSONSchemaProps.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Job.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1JobCondition.CustomTypeAdapterFactory()); @@ -385,9 +389,16 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1MatchCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1MatchResources.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ModifyVolumeStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1MutatingAdmissionPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1MutatingAdmissionPolicyBinding.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1MutatingAdmissionPolicyBindingList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1MutatingAdmissionPolicyBindingSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1MutatingAdmissionPolicyList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1MutatingAdmissionPolicySpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1MutatingWebhook.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Mutation.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NFSVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NamedRuleWithOperations.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Namespace.CustomTypeAdapterFactory()); @@ -406,6 +417,8 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1Node.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeAddress.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeAffinity.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeAllocatableResourceClaimStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeAllocatableResourceMapping.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeConfigSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1NodeConfigStatus.CustomTypeAdapterFactory()); @@ -469,6 +482,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodResourceClaim.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodResourceClaimStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodSchedulingGate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodSchedulingGroup.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodSecurityContext.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1PodStatus.CustomTypeAdapterFactory()); @@ -579,6 +593,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ServiceStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1SessionAffinityConfig.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1ShardInfo.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1SleepAction.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1StatefulSet.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1StatefulSetCondition.CustomTypeAdapterFactory()); @@ -648,17 +663,16 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeNodeResources.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeProjection.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeResourceRequirements.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VolumeStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1VsphereVirtualDiskVolumeSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1WatchEvent.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1WebhookConversion.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1WeightedPodAffinityTerm.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1WindowsSecurityContextOptions.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1WorkloadReference.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ApplyConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundle.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundleList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundleSpec.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1GangSchedulingPolicy.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1JSONPatch.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1MatchCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1MatchResources.CustomTypeAdapterFactory()); @@ -672,27 +686,43 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1NamedRuleWithOperations.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ParamKind.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ParamRef.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1PodGroup.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1PodGroupPolicy.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1ServerStorageVersion.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersion.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersionCondition.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersionList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1StorageVersionStatus.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1TypedLocalObjectReference.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1Variable.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1Workload.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1WorkloadList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha1WorkloadSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2GangSchedulingPolicy.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2LeaseCandidate.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2LeaseCandidateList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2LeaseCandidateSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroup.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupResourceClaim.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupResourceClaimStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupSchedulingConstraints.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupSchedulingPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupTemplate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2PodGroupTemplateReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2TopologyConstraint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2TypedLocalObjectReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2Workload.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2WorkloadList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2WorkloadPodGroupTemplateReference.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha2WorkloadSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaint.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleSpec.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3DeviceTaintSelector.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3PoolStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourcePoolStatusRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourcePoolStatusRequestList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourcePoolStatusRequestSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1alpha3ResourcePoolStatusRequestStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1AllocatedDeviceStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1AllocationResult.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ApplyConfiguration.CustomTypeAdapterFactory()); @@ -743,6 +773,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1Mutation.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1NamedRuleWithOperations.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1NetworkDeviceData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1NodeAllocatableResourceMapping.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1OpaqueDeviceConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ParamKind.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta1ParamRef.CustomTypeAdapterFactory()); @@ -800,9 +831,15 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceSelector.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceSubRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceTaint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceTaintRule.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceTaintRuleList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceTaintRuleSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceTaintRuleStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceTaintSelector.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2DeviceToleration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ExactDeviceRequest.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2NetworkDeviceData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2NodeAllocatableResourceMapping.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2OpaqueDeviceConfiguration.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaim.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceClaimConsumerReference.CustomTypeAdapterFactory()); @@ -816,6 +853,11 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceSlice.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceSliceList.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V1beta2ResourceSliceSpec.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2APIGroupDiscovery.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2APIGroupDiscoveryList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2APIResourceDiscovery.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2APISubresourceDiscovery.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2APIVersionDiscovery.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2ContainerResourceMetricSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2ContainerResourceMetricStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2CrossVersionObjectReference.CustomTypeAdapterFactory()); @@ -840,6 +882,11 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2PodsMetricStatus.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2ResourceMetricSource.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2ResourceMetricStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2beta1APIGroupDiscovery.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2beta1APIGroupDiscoveryList.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2beta1APIResourceDiscovery.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2beta1APISubresourceDiscovery.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.V2beta1APIVersionDiscovery.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new io.kubernetes.client.openapi.models.VersionInfo.CustomTypeAdapterFactory()); gson = gsonBuilder.create(); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java index c62ba303df..14a3612397 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/Pair.java @@ -12,7 +12,7 @@ */ package io.kubernetes.client.openapi; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class Pair { private final String name; private final String value; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java index 77a54287e5..a9caac215e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerConfiguration.java @@ -17,7 +17,7 @@ /** * Representing a Server configuration. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class ServerConfiguration { public String URL; public String description; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java index c381249bd7..528cd31b93 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/ServerVariable.java @@ -17,7 +17,7 @@ /** * Representing a Server Variable for server URL template substitution. */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class ServerVariable { public String description; public String defaultValue; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java index e098b46691..26aefb28aa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/StringUtil.java @@ -15,7 +15,7 @@ import java.util.Collection; import java.util.Iterator; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java index 4541caf3c3..445bda4a57 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1Api.java @@ -28,6 +28,10 @@ import io.kubernetes.client.openapi.models.V1APIResourceList; import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.openapi.models.V1MutatingAdmissionPolicy; +import io.kubernetes.client.openapi.models.V1MutatingAdmissionPolicyBinding; +import io.kubernetes.client.openapi.models.V1MutatingAdmissionPolicyBindingList; +import io.kubernetes.client.openapi.models.V1MutatingAdmissionPolicyList; import io.kubernetes.client.openapi.models.V1MutatingWebhookConfiguration; import io.kubernetes.client.openapi.models.V1MutatingWebhookConfigurationList; import io.kubernetes.client.custom.V1Patch; @@ -82,7 +86,7 @@ public void setCustomBaseUrl(String customBaseUrl) { this.localCustomBaseUrl = customBaseUrl; } - private okhttp3.Call createMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull V1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -99,7 +103,7 @@ private okhttp3.Call createMutatingWebhookConfigurationCall(@jakarta.annotation. Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -147,34 +151,34 @@ private okhttp3.Call createMutatingWebhookConfigurationCall(@jakarta.annotation. } @SuppressWarnings("rawtypes") - private okhttp3.Call createMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull V1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createMutatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createMutatingAdmissionPolicy(Async)"); } - return createMutatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse createMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createMutatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse createMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull V1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createMutatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull V1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createMutatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createMutatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIcreateMutatingWebhookConfigurationRequest { + public class APIcreateMutatingAdmissionPolicyRequest { @jakarta.annotation.Nonnull - private final V1MutatingWebhookConfiguration body; + private final V1MutatingAdmissionPolicy body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -184,16 +188,16 @@ public class APIcreateMutatingWebhookConfigurationRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body) { + private APIcreateMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull V1MutatingAdmissionPolicy body) { this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIcreateMutatingWebhookConfigurationRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIcreateMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -201,9 +205,9 @@ public APIcreateMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.N /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIcreateMutatingWebhookConfigurationRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIcreateMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -211,9 +215,9 @@ public APIcreateMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.N /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIcreateMutatingWebhookConfigurationRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateMutatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIcreateMutatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -221,15 +225,15 @@ public APIcreateMutatingWebhookConfigurationRequest fieldManager(@jakarta.annota /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIcreateMutatingWebhookConfigurationRequest + * @return APIcreateMutatingAdmissionPolicyRequest */ - public APIcreateMutatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIcreateMutatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for createMutatingWebhookConfiguration + * Build call for createMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -244,12 +248,12 @@ public APIcreateMutatingWebhookConfigurationRequest fieldValidation(@jakarta.ann */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createMutatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute createMutatingWebhookConfiguration request - * @return V1MutatingWebhookConfiguration + * Execute createMutatingAdmissionPolicy request + * @return V1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -261,14 +265,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1MutatingWebhookConfiguration execute() throws ApiException { - ApiResponse localVarResp = createMutatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = createMutatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute createMutatingWebhookConfiguration request with HTTP info returned - * @return ApiResponse<V1MutatingWebhookConfiguration> + * Execute createMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -280,12 +284,12 @@ public V1MutatingWebhookConfiguration execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createMutatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createMutatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute createMutatingWebhookConfiguration request (asynchronously) + * Execute createMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -299,16 +303,16 @@ public ApiResponse executeWithHttpInfo() throws 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createMutatingWebhookConfigurationAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createMutatingAdmissionPolicyAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * create a MutatingWebhookConfiguration + * create a MutatingAdmissionPolicy * @param body (required) - * @return APIcreateMutatingWebhookConfigurationRequest + * @return APIcreateMutatingAdmissionPolicyRequest * @http.response.details @@ -319,10 +323,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIcreateMutatingWebhookConfigurationRequest createMutatingWebhookConfiguration(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body) { - return new APIcreateMutatingWebhookConfigurationRequest(body); + public APIcreateMutatingAdmissionPolicyRequest createMutatingAdmissionPolicy(@jakarta.annotation.Nonnull V1MutatingAdmissionPolicy body) { + return new APIcreateMutatingAdmissionPolicyRequest(body); } - private okhttp3.Call createValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull V1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -339,7 +343,7 @@ private okhttp3.Call createValidatingAdmissionPolicyCall(@jakarta.annotation.Non Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -387,34 +391,34 @@ private okhttp3.Call createValidatingAdmissionPolicyCall(@jakarta.annotation.Non } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull V1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicy(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createMutatingAdmissionPolicyBinding(Async)"); } - return createValidatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse createValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse createMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull V1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createMutatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull V1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createMutatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIcreateValidatingAdmissionPolicyRequest { + public class APIcreateMutatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nonnull - private final V1ValidatingAdmissionPolicy body; + private final V1MutatingAdmissionPolicyBinding body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -424,16 +428,16 @@ public class APIcreateValidatingAdmissionPolicyRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { + private APIcreateMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull V1MutatingAdmissionPolicyBinding body) { this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIcreateMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -441,9 +445,9 @@ public APIcreateValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Null /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIcreateMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -451,9 +455,9 @@ public APIcreateValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Null /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIcreateMutatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -461,15 +465,15 @@ public APIcreateValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotatio /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest */ - public APIcreateValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIcreateMutatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for createValidatingAdmissionPolicy + * Build call for createMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -484,12 +488,12 @@ public APIcreateValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annota */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute createValidatingAdmissionPolicy request - * @return V1ValidatingAdmissionPolicy + * Execute createMutatingAdmissionPolicyBinding request + * @return V1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -501,14 +505,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = createMutatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute createValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1ValidatingAdmissionPolicy> + * Execute createMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -520,12 +524,12 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createMutatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute createValidatingAdmissionPolicy request (asynchronously) + * Execute createMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -539,16 +543,16 @@ public ApiResponse executeWithHttpInfo() throws Api 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createMutatingAdmissionPolicyBindingAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * create a ValidatingAdmissionPolicy + * create a MutatingAdmissionPolicyBinding * @param body (required) - * @return APIcreateValidatingAdmissionPolicyRequest + * @return APIcreateMutatingAdmissionPolicyBindingRequest * @http.response.details @@ -559,10 +563,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIcreateValidatingAdmissionPolicyRequest createValidatingAdmissionPolicy(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { - return new APIcreateValidatingAdmissionPolicyRequest(body); + public APIcreateMutatingAdmissionPolicyBindingRequest createMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull V1MutatingAdmissionPolicyBinding body) { + return new APIcreateMutatingAdmissionPolicyBindingRequest(body); } - private okhttp3.Call createValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -579,7 +583,7 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingCall(@jakarta.annotat Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -627,34 +631,34 @@ private okhttp3.Call createValidatingAdmissionPolicyBindingCall(@jakarta.annotat } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createMutatingWebhookConfiguration(Async)"); } - return createValidatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse createValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse createMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createMutatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createMutatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIcreateValidatingAdmissionPolicyBindingRequest { + public class APIcreateMutatingWebhookConfigurationRequest { @jakarta.annotation.Nonnull - private final V1ValidatingAdmissionPolicyBinding body; + private final V1MutatingWebhookConfiguration body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -664,16 +668,16 @@ public class APIcreateValidatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body) { + private APIcreateMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body) { this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingWebhookConfigurationRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIcreateMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -681,9 +685,9 @@ public APIcreateValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotati /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingWebhookConfigurationRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIcreateMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -691,9 +695,9 @@ public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotati /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingWebhookConfigurationRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIcreateMutatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -701,15 +705,15 @@ public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.an /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingWebhookConfigurationRequest */ - public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIcreateMutatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for createValidatingAdmissionPolicyBinding + * Build call for createMutatingWebhookConfiguration * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -724,12 +728,12 @@ public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createMutatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute createValidatingAdmissionPolicyBinding request - * @return V1ValidatingAdmissionPolicyBinding + * Execute createMutatingWebhookConfiguration request + * @return V1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -741,14 +745,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1ValidatingAdmissionPolicyBinding execute() throws ApiException { - ApiResponse localVarResp = createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1MutatingWebhookConfiguration execute() throws ApiException { + ApiResponse localVarResp = createMutatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute createValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> + * Execute createMutatingWebhookConfiguration request with HTTP info returned + * @return ApiResponse<V1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -760,12 +764,12 @@ public V1ValidatingAdmissionPolicyBinding execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createMutatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute createValidatingAdmissionPolicyBinding request (asynchronously) + * Execute createMutatingWebhookConfiguration request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -779,16 +783,16 @@ public ApiResponse executeWithHttpInfo() thr 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createValidatingAdmissionPolicyBindingAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createMutatingWebhookConfigurationAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * create a ValidatingAdmissionPolicyBinding + * create a MutatingWebhookConfiguration * @param body (required) - * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @return APIcreateMutatingWebhookConfigurationRequest * @http.response.details @@ -799,10 +803,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIcreateValidatingAdmissionPolicyBindingRequest createValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body) { - return new APIcreateValidatingAdmissionPolicyBindingRequest(body); + public APIcreateMutatingWebhookConfigurationRequest createMutatingWebhookConfiguration(@jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body) { + return new APIcreateMutatingWebhookConfigurationRequest(body); } - private okhttp3.Call createValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -819,7 +823,7 @@ private okhttp3.Call createValidatingWebhookConfigurationCall(@jakarta.annotatio Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -867,34 +871,34 @@ private okhttp3.Call createValidatingWebhookConfigurationCall(@jakarta.annotatio } @SuppressWarnings("rawtypes") - private okhttp3.Call createValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createValidatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicy(Async)"); } - return createValidatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createValidatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse createValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse createValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call createValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = createValidatingAdmissionPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIcreateValidatingWebhookConfigurationRequest { + public class APIcreateValidatingAdmissionPolicyRequest { @jakarta.annotation.Nonnull - private final V1ValidatingWebhookConfiguration body; + private final V1ValidatingAdmissionPolicy body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -904,16 +908,16 @@ public class APIcreateValidatingWebhookConfigurationRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIcreateValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body) { + private APIcreateValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIcreateValidatingWebhookConfigurationRequest + * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIcreateValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -921,9 +925,9 @@ public APIcreateValidatingWebhookConfigurationRequest pretty(@jakarta.annotation /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIcreateValidatingWebhookConfigurationRequest + * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIcreateValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -931,9 +935,9 @@ public APIcreateValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIcreateValidatingWebhookConfigurationRequest + * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIcreateValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -941,15 +945,15 @@ public APIcreateValidatingWebhookConfigurationRequest fieldManager(@jakarta.anno /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIcreateValidatingWebhookConfigurationRequest + * @return APIcreateValidatingAdmissionPolicyRequest */ - public APIcreateValidatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIcreateValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for createValidatingWebhookConfiguration + * Build call for createValidatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -964,12 +968,12 @@ public APIcreateValidatingWebhookConfigurationRequest fieldValidation(@jakarta.a */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createValidatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return createValidatingAdmissionPolicyCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute createValidatingWebhookConfiguration request - * @return V1ValidatingWebhookConfiguration + * Execute createValidatingAdmissionPolicy request + * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -981,14 +985,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1ValidatingWebhookConfiguration execute() throws ApiException { - ApiResponse localVarResp = createValidatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public V1ValidatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute createValidatingWebhookConfiguration request with HTTP info returned - * @return ApiResponse<V1ValidatingWebhookConfiguration> + * Execute createValidatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1000,12 +1004,12 @@ public V1ValidatingWebhookConfiguration execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createValidatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return createValidatingAdmissionPolicyWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute createValidatingWebhookConfiguration request (asynchronously) + * Execute createValidatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1019,16 +1023,16 @@ public ApiResponse executeWithHttpInfo() throw 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createValidatingWebhookConfigurationAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createValidatingAdmissionPolicyAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * create a ValidatingWebhookConfiguration + * create a ValidatingAdmissionPolicy * @param body (required) - * @return APIcreateValidatingWebhookConfigurationRequest + * @return APIcreateValidatingAdmissionPolicyRequest * @http.response.details @@ -1039,10 +1043,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIcreateValidatingWebhookConfigurationRequest createValidatingWebhookConfiguration(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body) { - return new APIcreateValidatingWebhookConfigurationRequest(body); + public APIcreateValidatingAdmissionPolicyRequest createValidatingAdmissionPolicy(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicy body) { + return new APIcreateValidatingAdmissionPolicyRequest(body); } - private okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1059,7 +1063,7 @@ private okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(@jakarta.a Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1071,56 +1075,4359 @@ private okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(@jakarta.a localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createValidatingAdmissionPolicyBinding(Async)"); + } + + return createValidatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createValidatingAdmissionPolicyBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull + private final V1ValidatingAdmissionPolicyBinding body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body) { + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateValidatingAdmissionPolicyBindingRequest + */ + public APIcreateValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateValidatingAdmissionPolicyBindingRequest + */ + public APIcreateValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateValidatingAdmissionPolicyBindingRequest + */ + public APIcreateValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateValidatingAdmissionPolicyBindingRequest + */ + public APIcreateValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createValidatingAdmissionPolicyBinding + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createValidatingAdmissionPolicyBindingCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createValidatingAdmissionPolicyBinding request + * @return V1ValidatingAdmissionPolicyBinding + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1ValidatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createValidatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createValidatingAdmissionPolicyBindingWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createValidatingAdmissionPolicyBinding request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createValidatingAdmissionPolicyBindingAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a ValidatingAdmissionPolicyBinding + * @param body (required) + * @return APIcreateValidatingAdmissionPolicyBindingRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateValidatingAdmissionPolicyBindingRequest createValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBinding body) { + return new APIcreateValidatingAdmissionPolicyBindingRequest(body); + } + private okhttp3.Call createValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createValidatingWebhookConfiguration(Async)"); + } + + return createValidatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull + private final V1ValidatingWebhookConfiguration body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body) { + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateValidatingWebhookConfigurationRequest + */ + public APIcreateValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateValidatingWebhookConfigurationRequest + */ + public APIcreateValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateValidatingWebhookConfigurationRequest + */ + public APIcreateValidatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateValidatingWebhookConfigurationRequest + */ + public APIcreateValidatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createValidatingWebhookConfiguration + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createValidatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createValidatingWebhookConfiguration request + * @return V1ValidatingWebhookConfiguration + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1ValidatingWebhookConfiguration execute() throws ApiException { + ApiResponse localVarResp = createValidatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createValidatingWebhookConfiguration request with HTTP info returned + * @return ApiResponse<V1ValidatingWebhookConfiguration> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createValidatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createValidatingWebhookConfiguration request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createValidatingWebhookConfigurationAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a ValidatingWebhookConfiguration + * @param body (required) + * @return APIcreateValidatingWebhookConfigurationRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateValidatingWebhookConfigurationRequest createValidatingWebhookConfiguration(@jakarta.annotation.Nonnull V1ValidatingWebhookConfiguration body) { + return new APIcreateValidatingWebhookConfigurationRequest(body); + } + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionMutatingAdmissionPolicyRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionMutatingAdmissionPolicy + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionMutatingAdmissionPolicy request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionMutatingAdmissionPolicy request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingAdmissionPolicyAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of MutatingAdmissionPolicy + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest deleteCollectionMutatingAdmissionPolicy() { + return new APIdeleteCollectionMutatingAdmissionPolicyRequest(); + } + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionMutatingAdmissionPolicyBindingRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionMutatingAdmissionPolicyBinding + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionMutatingAdmissionPolicyBinding request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionMutatingAdmissionPolicyBinding request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingAdmissionPolicyBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of MutatingAdmissionPolicyBinding + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest deleteCollectionMutatingAdmissionPolicyBinding() { + return new APIdeleteCollectionMutatingAdmissionPolicyBindingRequest(); + } + private okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionMutatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionMutatingWebhookConfigurationRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionMutatingWebhookConfiguration + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionMutatingWebhookConfiguration request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionMutatingWebhookConfiguration request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionMutatingWebhookConfiguration request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingWebhookConfigurationAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of MutatingWebhookConfiguration + * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionMutatingWebhookConfigurationRequest deleteCollectionMutatingWebhookConfiguration() { + return new APIdeleteCollectionMutatingWebhookConfigurationRequest(); + } + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionValidatingAdmissionPolicyRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionValidatingAdmissionPolicy + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionValidatingAdmissionPolicy request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionValidatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionValidatingAdmissionPolicy request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionValidatingAdmissionPolicyAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of ValidatingAdmissionPolicy + * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionValidatingAdmissionPolicyRequest deleteCollectionValidatingAdmissionPolicy() { + return new APIdeleteCollectionValidatingAdmissionPolicyRequest(); + } + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionValidatingAdmissionPolicyBindingRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionValidatingAdmissionPolicyBinding + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionValidatingAdmissionPolicyBinding request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionValidatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionValidatingAdmissionPolicyBinding request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionValidatingAdmissionPolicyBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of ValidatingAdmissionPolicyBinding + * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest deleteCollectionValidatingAdmissionPolicyBinding() { + return new APIdeleteCollectionValidatingAdmissionPolicyBindingRequest(); + } + private okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionValidatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionValidatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionValidatingWebhookConfigurationRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionValidatingWebhookConfiguration + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionValidatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionValidatingWebhookConfiguration request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionValidatingWebhookConfiguration request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionValidatingWebhookConfiguration request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionValidatingWebhookConfigurationAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of ValidatingWebhookConfiguration + * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionValidatingWebhookConfigurationRequest deleteCollectionValidatingWebhookConfiguration() { + return new APIdeleteCollectionValidatingWebhookConfigurationRequest(); + } + private okhttp3.Call deleteMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingAdmissionPolicy(Async)"); + } + + return deleteMutatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteMutatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteMutatingAdmissionPolicyRequest + */ + public APIdeleteMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteMutatingAdmissionPolicyRequest + */ + public APIdeleteMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteMutatingAdmissionPolicyRequest + */ + public APIdeleteMutatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteMutatingAdmissionPolicyRequest + */ + public APIdeleteMutatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteMutatingAdmissionPolicyRequest + */ + public APIdeleteMutatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteMutatingAdmissionPolicyRequest + */ + public APIdeleteMutatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteMutatingAdmissionPolicyRequest + */ + public APIdeleteMutatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteMutatingAdmissionPolicy + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteMutatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteMutatingAdmissionPolicy request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteMutatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteMutatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteMutatingAdmissionPolicy request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteMutatingAdmissionPolicyAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @return APIdeleteMutatingAdmissionPolicyRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteMutatingAdmissionPolicyRequest deleteMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { + return new APIdeleteMutatingAdmissionPolicyRequest(name); + } + private okhttp3.Call deleteMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingAdmissionPolicyBinding(Async)"); + } + + return deleteMutatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteMutatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteMutatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteMutatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteMutatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteMutatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteMutatingAdmissionPolicyBinding + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteMutatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteMutatingAdmissionPolicyBinding request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteMutatingAdmissionPolicyBinding request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteMutatingAdmissionPolicyBindingAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @return APIdeleteMutatingAdmissionPolicyBindingRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteMutatingAdmissionPolicyBindingRequest deleteMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { + return new APIdeleteMutatingAdmissionPolicyBindingRequest(name); + } + private okhttp3.Call deleteMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingWebhookConfiguration(Async)"); + } + + return deleteMutatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteMutatingWebhookConfigurationRequest + */ + public APIdeleteMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteMutatingWebhookConfigurationRequest + */ + public APIdeleteMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteMutatingWebhookConfigurationRequest + */ + public APIdeleteMutatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteMutatingWebhookConfigurationRequest + */ + public APIdeleteMutatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteMutatingWebhookConfigurationRequest + */ + public APIdeleteMutatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteMutatingWebhookConfigurationRequest + */ + public APIdeleteMutatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteMutatingWebhookConfigurationRequest + */ + public APIdeleteMutatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteMutatingWebhookConfiguration + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteMutatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteMutatingWebhookConfiguration request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteMutatingWebhookConfiguration request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteMutatingWebhookConfiguration request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteMutatingWebhookConfigurationAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) + * @return APIdeleteMutatingWebhookConfigurationRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteMutatingWebhookConfigurationRequest deleteMutatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { + return new APIdeleteMutatingWebhookConfigurationRequest(name); + } + private okhttp3.Call deleteValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicy(Async)"); + } + + return deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteValidatingAdmissionPolicyRequest + */ + public APIdeleteValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteValidatingAdmissionPolicyRequest + */ + public APIdeleteValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteValidatingAdmissionPolicyRequest + */ + public APIdeleteValidatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteValidatingAdmissionPolicyRequest + */ + public APIdeleteValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteValidatingAdmissionPolicyRequest + */ + public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteValidatingAdmissionPolicyRequest + */ + public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteValidatingAdmissionPolicyRequest + */ + public APIdeleteValidatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteValidatingAdmissionPolicy + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteValidatingAdmissionPolicy request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteValidatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteValidatingAdmissionPolicy request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteValidatingAdmissionPolicyAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @return APIdeleteValidatingAdmissionPolicyRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteValidatingAdmissionPolicyRequest deleteValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { + return new APIdeleteValidatingAdmissionPolicyRequest(name); + } + private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicyBinding(Async)"); + } + + return deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteValidatingAdmissionPolicyBindingRequest + */ + public APIdeleteValidatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteValidatingAdmissionPolicyBinding + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteValidatingAdmissionPolicyBinding request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteValidatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteValidatingAdmissionPolicyBinding request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteValidatingAdmissionPolicyBindingAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a ValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteValidatingAdmissionPolicyBindingRequest deleteValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { + return new APIdeleteValidatingAdmissionPolicyBindingRequest(name); + } + private okhttp3.Call deleteValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { @@ -1147,107 +5454,79 @@ private okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(@jakarta.a } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionMutatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingWebhookConfiguration(Async)"); + } + + return deleteValidatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse deleteCollectionMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionMutatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionMutatingWebhookConfigurationRequest { + public class APIdeleteValidatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull + private final String name; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable private String dryRun; @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable private Integer gracePeriodSeconds; @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable private Boolean orphanDependents; @jakarta.annotation.Nullable private String propagationPolicy; @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionMutatingWebhookConfigurationRequest() { + private APIdeleteValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } - /** - * Set _continue - * @param _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. (optional) - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest - */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest - */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteValidatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1255,105 +5534,207 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest gracePeriodSeconds /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteValidatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; + public APIdeleteValidatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; return this; } /** - * Set limit - * @param 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. (optional) - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; + public APIdeleteValidatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; return this; } /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + * Set body + * @param body (optional) + * @return APIdeleteValidatingWebhookConfigurationRequest */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; + public APIdeleteValidatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; return this; } /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + * Build call for deleteValidatingWebhookConfiguration + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteCollectionMutatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteValidatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Set resourceVersion - * @param 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 (optional) - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + * Execute deleteValidatingWebhookConfiguration request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** - * Set resourceVersionMatch - * @param 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 (optional) - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + * Execute deleteValidatingWebhookConfiguration request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteCollectionMutatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteValidatingWebhookConfiguration request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteValidatingWebhookConfigurationAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration (required) + * @return APIdeleteValidatingWebhookConfigurationRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteValidatingWebhookConfigurationRequest deleteValidatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { + return new APIdeleteValidatingWebhookConfigurationRequest(name); + } + private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/admissionregistration.k8s.io/v1/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest - */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest - */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } - /** - * Set body - * @param body (optional) - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest - */ - public APIdeleteCollectionMutatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; - return this; + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + + } + + + private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetAPIResourcesRequest { + + private APIgetAPIResourcesRequest() { } /** - * Build call for deleteCollectionMutatingWebhookConfiguration + * Build call for getAPIResources * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1366,12 +5747,12 @@ public APIdeleteCollectionMutatingWebhookConfigurationRequest body(@jakarta.anno */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionMutatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return getAPIResourcesCall(_callback); } /** - * Execute deleteCollectionMutatingWebhookConfiguration request - * @return V1Status + * Execute getAPIResources request + * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1381,14 +5762,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1APIResourceList execute() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); return localVarResp.getData(); } /** - * Execute deleteCollectionMutatingWebhookConfiguration request with HTTP info returned - * @return ApiResponse<V1Status> + * Execute getAPIResources request with HTTP info returned + * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1398,12 +5779,12 @@ public V1Status execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getAPIResourcesWithHttpInfo(); } /** - * Execute deleteCollectionMutatingWebhookConfiguration request (asynchronously) + * Execute getAPIResources request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1415,15 +5796,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionMutatingWebhookConfigurationAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getAPIResourcesAsync(_callback); } } /** * - * delete collection of MutatingWebhookConfiguration - * @return APIdeleteCollectionMutatingWebhookConfigurationRequest + * get available resources + * @return APIgetAPIResourcesRequest * @http.response.details @@ -1432,10 +5813,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteCollectionMutatingWebhookConfigurationRequest deleteCollectionMutatingWebhookConfiguration() { - return new APIdeleteCollectionMutatingWebhookConfigurationRequest(); + public APIgetAPIResourcesRequest getAPIResources() { + return new APIgetAPIResourcesRequest(); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1449,10 +5830,10 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(@jakarta.anno basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1464,26 +5845,18 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(@jakarta.anno localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); - } - if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1492,14 +5865,6 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(@jakarta.anno localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } @@ -1512,15 +5877,26 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(@jakarta.anno localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1528,7 +5904,6 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(@jakarta.anno } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1536,131 +5911,105 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyCall(@jakarta.anno } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call listMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse deleteCollectionValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionValidatingAdmissionPolicyRequest { + public class APIlistMutatingAdmissionPolicyRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable - private String _continue; + private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable - private String dryRun; + private String _continue; @jakarta.annotation.Nullable private String fieldSelector; @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; - @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; - @jakarta.annotation.Nullable private String labelSelector; @jakarta.annotation.Nullable private Integer limit; @jakarta.annotation.Nullable - private Boolean orphanDependents; - @jakarta.annotation.Nullable - private String propagationPolicy; - @jakarta.annotation.Nullable private String resourceVersion; @jakarta.annotation.Nullable private String resourceVersionMatch; @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable - private V1DeleteOptions body; + private Boolean watch; - private APIdeleteCollectionValidatingAdmissionPolicyRequest() { + private APIlistMutatingAdmissionPolicyRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set _continue - * @param _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. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * Set allowWatchBookmarks + * @param 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. (optional) + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; + public APIlistMutatingAdmissionPolicyRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * Set _continue + * @param _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. (optional) + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; + public APIlistMutatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistMutatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } - /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest - */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return this; - } - - /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest - */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; - return this; - } - /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistMutatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1668,39 +6017,19 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest labelSelector(@jakart /** * Set limit * @param 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. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistMutatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } - /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest - */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return this; - } - - /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest - */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - /** * Set resourceVersion * @param 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 (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistMutatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1708,9 +6037,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersion(@jaka /** * Set resourceVersionMatch * @param 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 (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistMutatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1718,35 +6047,45 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest resourceVersionMatch( /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistMutatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistMutatingAdmissionPolicyRequest + */ + public APIlistMutatingAdmissionPolicyRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistMutatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** - * Set body - * @param body (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistMutatingAdmissionPolicyRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; + public APIlistMutatingAdmissionPolicyRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; return this; } /** - * Build call for deleteCollectionValidatingAdmissionPolicy + * Build call for listMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1759,12 +6098,12 @@ public APIdeleteCollectionValidatingAdmissionPolicyRequest body(@jakarta.annotat */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute deleteCollectionValidatingAdmissionPolicy request - * @return V1Status + * Execute listMutatingAdmissionPolicy request + * @return V1MutatingAdmissionPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1774,14 +6113,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1MutatingAdmissionPolicyList execute() throws ApiException { + ApiResponse localVarResp = listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute deleteCollectionValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1Status> + * Execute listMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1MutatingAdmissionPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1791,12 +6130,12 @@ public V1Status execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionValidatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute deleteCollectionValidatingAdmissionPolicy request (asynchronously) + * Execute listMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1808,15 +6147,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } /** * - * delete collection of ValidatingAdmissionPolicy - * @return APIdeleteCollectionValidatingAdmissionPolicyRequest + * list or watch objects of kind MutatingAdmissionPolicy + * @return APIlistMutatingAdmissionPolicyRequest * @http.response.details @@ -1825,10 +6164,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteCollectionValidatingAdmissionPolicyRequest deleteCollectionValidatingAdmissionPolicy() { - return new APIdeleteCollectionValidatingAdmissionPolicyRequest(); + public APIlistMutatingAdmissionPolicyRequest listMutatingAdmissionPolicy() { + return new APIlistMutatingAdmissionPolicyRequest(); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1842,10 +6181,10 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(@jakar basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1857,26 +6196,18 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(@jakar localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + if (_continue != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); - } - if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -1885,14 +6216,6 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(@jakar localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } @@ -1905,15 +6228,26 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(@jakar localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1921,7 +6255,6 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(@jakar } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1929,131 +6262,105 @@ private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingCall(@jakar } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call listMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionValidatingAdmissionPolicyBindingRequest { + public class APIlistMutatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable - private String _continue; + private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable - private String dryRun; + private String _continue; @jakarta.annotation.Nullable private String fieldSelector; @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; - @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; - @jakarta.annotation.Nullable private String labelSelector; @jakarta.annotation.Nullable private Integer limit; @jakarta.annotation.Nullable - private Boolean orphanDependents; - @jakarta.annotation.Nullable - private String propagationPolicy; - @jakarta.annotation.Nullable private String resourceVersion; @jakarta.annotation.Nullable private String resourceVersionMatch; @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable - private V1DeleteOptions body; + private Boolean watch; - private APIdeleteCollectionValidatingAdmissionPolicyBindingRequest() { + private APIlistMutatingAdmissionPolicyBindingRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set _continue - * @param _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. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * Set allowWatchBookmarks + * @param 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. (optional) + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; + public APIlistMutatingAdmissionPolicyBindingRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * Set _continue + * @param _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. (optional) + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; + public APIlistMutatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; return this; } /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistMutatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } - /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest - */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return this; - } - - /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest - */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; - return this; - } - /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistMutatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2061,39 +6368,19 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest labelSelector( /** * Set limit * @param 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. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistMutatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } - /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest - */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return this; - } - - /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest - */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - /** * Set resourceVersion * @param 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 (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistMutatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2101,9 +6388,9 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersio /** * Set resourceVersionMatch * @param 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 (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistMutatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2111,35 +6398,45 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest resourceVersio /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistMutatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistMutatingAdmissionPolicyBindingRequest + */ + public APIlistMutatingAdmissionPolicyBindingRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistMutatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** - * Set body - * @param body (optional) - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistMutatingAdmissionPolicyBindingRequest */ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; + public APIlistMutatingAdmissionPolicyBindingRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; return this; } /** - * Build call for deleteCollectionValidatingAdmissionPolicyBinding + * Build call for listMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2152,12 +6449,12 @@ public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest body(@jakarta. */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return listMutatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute deleteCollectionValidatingAdmissionPolicyBinding request - * @return V1Status + * Execute listMutatingAdmissionPolicyBinding request + * @return V1MutatingAdmissionPolicyBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2167,14 +6464,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1MutatingAdmissionPolicyBindingList execute() throws ApiException { + ApiResponse localVarResp = listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute deleteCollectionValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1Status> + * Execute listMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1MutatingAdmissionPolicyBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2184,12 +6481,12 @@ public V1Status execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute deleteCollectionValidatingAdmissionPolicyBinding request (asynchronously) + * Execute listMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2201,15 +6498,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingAdmissionPolicyBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyBindingAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } /** * - * delete collection of ValidatingAdmissionPolicyBinding - * @return APIdeleteCollectionValidatingAdmissionPolicyBindingRequest + * list or watch objects of kind MutatingAdmissionPolicyBinding + * @return APIlistMutatingAdmissionPolicyBindingRequest * @http.response.details @@ -2218,10 +6515,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteCollectionValidatingAdmissionPolicyBindingRequest deleteCollectionValidatingAdmissionPolicyBinding() { - return new APIdeleteCollectionValidatingAdmissionPolicyBindingRequest(); + public APIlistMutatingAdmissionPolicyBindingRequest listMutatingAdmissionPolicyBinding() { + return new APIlistMutatingAdmissionPolicyBindingRequest(); } - private okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingWebhookConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2235,10 +6532,10 @@ private okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(@jakarta basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2250,26 +6547,18 @@ private okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(@jakarta localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } if (fieldSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); - } - if (labelSelector != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } @@ -2278,14 +6567,6 @@ private okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(@jakarta localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } @@ -2298,15 +6579,26 @@ private okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(@jakarta localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2314,7 +6606,6 @@ private okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(@jakarta } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2322,131 +6613,105 @@ private okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(@jakarta } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call listMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listMutatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse deleteCollectionValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listMutatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionValidatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listMutatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionValidatingWebhookConfigurationRequest { + public class APIlistMutatingWebhookConfigurationRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable - private String _continue; + private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable - private String dryRun; + private String _continue; @jakarta.annotation.Nullable private String fieldSelector; @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; - @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; - @jakarta.annotation.Nullable private String labelSelector; @jakarta.annotation.Nullable private Integer limit; @jakarta.annotation.Nullable - private Boolean orphanDependents; - @jakarta.annotation.Nullable - private String propagationPolicy; - @jakarta.annotation.Nullable private String resourceVersion; @jakarta.annotation.Nullable private String resourceVersionMatch; @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable - private V1DeleteOptions body; + private Boolean watch; - private APIdeleteCollectionValidatingWebhookConfigurationRequest() { + private APIlistMutatingWebhookConfigurationRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + * @return APIlistMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set _continue - * @param _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. (optional) - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest - */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest - */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + * Set allowWatchBookmarks + * @param 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. (optional) + * @return APIlistMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; + public APIlistMutatingWebhookConfigurationRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + * Set _continue + * @param _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. (optional) + * @return APIlistMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; + public APIlistMutatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; return this; } /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + public APIlistMutatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; return this; } /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + * @return APIlistMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistMutatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2454,39 +6719,19 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest labelSelector(@j /** * Set limit * @param 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. (optional) - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + * @return APIlistMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistMutatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } - /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest - */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return this; - } - - /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest - */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - /** * Set resourceVersion * @param 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 (optional) - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + * @return APIlistMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistMutatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2494,9 +6739,9 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersion( /** * Set resourceVersionMatch * @param 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 (optional) - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + * @return APIlistMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistMutatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2504,35 +6749,45 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest resourceVersionM /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + * @return APIlistMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistMutatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistMutatingWebhookConfigurationRequest + */ + public APIlistMutatingWebhookConfigurationRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + * @return APIlistMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistMutatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } /** - * Set body - * @param body (optional) - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistMutatingWebhookConfigurationRequest */ - public APIdeleteCollectionValidatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; + public APIlistMutatingWebhookConfigurationRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; return this; } /** - * Build call for deleteCollectionValidatingWebhookConfiguration + * Build call for listMutatingWebhookConfiguration * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2545,12 +6800,12 @@ public APIdeleteCollectionValidatingWebhookConfigurationRequest body(@jakarta.an */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingWebhookConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return listMutatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute deleteCollectionValidatingWebhookConfiguration request - * @return V1Status + * Execute listMutatingWebhookConfiguration request + * @return V1MutatingWebhookConfigurationList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2560,14 +6815,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public V1MutatingWebhookConfigurationList execute() throws ApiException { + ApiResponse localVarResp = listMutatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute deleteCollectionValidatingWebhookConfiguration request with HTTP info returned - * @return ApiResponse<V1Status> + * Execute listMutatingWebhookConfiguration request with HTTP info returned + * @return ApiResponse<V1MutatingWebhookConfigurationList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2577,12 +6832,12 @@ public V1Status execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listMutatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute deleteCollectionValidatingWebhookConfiguration request (asynchronously) + * Execute listMutatingWebhookConfiguration request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2594,15 +6849,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionValidatingWebhookConfigurationAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listMutatingWebhookConfigurationAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } /** * - * delete collection of ValidatingWebhookConfiguration - * @return APIdeleteCollectionValidatingWebhookConfigurationRequest + * list or watch objects of kind MutatingWebhookConfiguration + * @return APIlistMutatingWebhookConfigurationRequest * @http.response.details @@ -2611,10 +6866,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteCollectionValidatingWebhookConfigurationRequest deleteCollectionValidatingWebhookConfiguration() { - return new APIdeleteCollectionValidatingWebhookConfigurationRequest(); + public APIlistMutatingWebhookConfigurationRequest listMutatingWebhookConfiguration() { + return new APIlistMutatingWebhookConfigurationRequest(); } - private okhttp3.Call deleteMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2628,11 +6883,10 @@ private okhttp3.Call deleteMutatingWebhookConfigurationCall(@jakarta.annotation. basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2644,31 +6898,58 @@ private okhttp3.Call deleteMutatingWebhookConfigurationCall(@jakarta.annotation. localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2676,7 +6957,6 @@ private okhttp3.Call deleteMutatingWebhookConfigurationCall(@jakarta.annotation. } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2684,129 +6964,181 @@ private okhttp3.Call deleteMutatingWebhookConfigurationCall(@jakarta.annotation. } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingWebhookConfiguration(Async)"); - } - - return deleteMutatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + private okhttp3.Call listValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse deleteMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listValidatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listValidatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteMutatingWebhookConfigurationRequest { - @jakarta.annotation.Nonnull - private final String name; + public class APIlistValidatingAdmissionPolicyRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable - private String dryRun; + private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; + private String _continue; @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + private String fieldSelector; @jakarta.annotation.Nullable - private Boolean orphanDependents; + private String labelSelector; @jakarta.annotation.Nullable - private String propagationPolicy; + private Integer limit; @jakarta.annotation.Nullable - private V1DeleteOptions body; + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; - private APIdeleteMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { - this.name = name; + private APIlistValidatingAdmissionPolicyRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteMutatingWebhookConfigurationRequest + * @return APIlistValidatingAdmissionPolicyRequest */ - public APIdeleteMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteMutatingWebhookConfigurationRequest + * Set allowWatchBookmarks + * @param 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. (optional) + * @return APIlistValidatingAdmissionPolicyRequest + */ + public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIlistValidatingAdmissionPolicyRequest + */ + public APIlistValidatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistValidatingAdmissionPolicyRequest + */ + public APIlistValidatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistValidatingAdmissionPolicyRequest + */ + public APIlistValidatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIlistValidatingAdmissionPolicyRequest + */ + public APIlistValidatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIlistValidatingAdmissionPolicyRequest */ - public APIdeleteMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; + public APIlistValidatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteMutatingWebhookConfigurationRequest + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIlistValidatingAdmissionPolicyRequest */ - public APIdeleteMutatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; + public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; return this; } /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteMutatingWebhookConfigurationRequest + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistValidatingAdmissionPolicyRequest */ - public APIdeleteMutatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; return this; } /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteMutatingWebhookConfigurationRequest + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistValidatingAdmissionPolicyRequest */ - public APIdeleteMutatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; + public APIlistValidatingAdmissionPolicyRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; return this; } /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteMutatingWebhookConfigurationRequest + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistValidatingAdmissionPolicyRequest */ - public APIdeleteMutatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; + public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } /** - * Set body - * @param body (optional) - * @return APIdeleteMutatingWebhookConfigurationRequest + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistValidatingAdmissionPolicyRequest */ - public APIdeleteMutatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; + public APIlistValidatingAdmissionPolicyRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; return this; } /** - * Build call for deleteMutatingWebhookConfiguration + * Build call for listValidatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2815,51 +7147,48 @@ public APIdeleteMutatingWebhookConfigurationRequest body(@jakarta.annotation.Nul Response Details Status Code Description Response Headers 200 OK - - 202 Accepted - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteMutatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute deleteMutatingWebhookConfiguration request - * @return V1Status + * Execute listValidatingAdmissionPolicy request + * @return V1ValidatingAdmissionPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1ValidatingAdmissionPolicyList execute() throws ApiException { + ApiResponse localVarResp = listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute deleteMutatingWebhookConfiguration request with HTTP info returned - * @return ApiResponse<V1Status> + * Execute listValidatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1ValidatingAdmissionPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute deleteMutatingWebhookConfiguration request (asynchronously) + * Execute listValidatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2868,33 +7197,30 @@ public ApiResponse executeWithHttpInfo() throws ApiException { Response Details Status Code Description Response Headers 200 OK - - 202 Accepted - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteMutatingWebhookConfigurationAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listValidatingAdmissionPolicyAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } /** * - * delete a MutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) - * @return APIdeleteMutatingWebhookConfigurationRequest + * list or watch objects of kind ValidatingAdmissionPolicy + * @return APIlistValidatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteMutatingWebhookConfigurationRequest deleteMutatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { - return new APIdeleteMutatingWebhookConfigurationRequest(name); + public APIlistValidatingAdmissionPolicyRequest listValidatingAdmissionPolicy() { + return new APIlistValidatingAdmissionPolicyRequest(); } - private okhttp3.Call deleteValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2908,11 +7234,10 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(@jakarta.annotation.Non basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2924,31 +7249,58 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(@jakarta.annotation.Non localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -2956,7 +7308,6 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(@jakarta.annotation.Non } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2964,129 +7315,181 @@ private okhttp3.Call deleteValidatingAdmissionPolicyCall(@jakarta.annotation.Non } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicy(Async)"); - } - - return deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + private okhttp3.Call listValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listValidatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse deleteValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteValidatingAdmissionPolicyRequest { - @jakarta.annotation.Nonnull - private final String name; + public class APIlistValidatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable - private String dryRun; + private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; + private String _continue; @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + private String fieldSelector; @jakarta.annotation.Nullable - private Boolean orphanDependents; + private String labelSelector; @jakarta.annotation.Nullable - private String propagationPolicy; + private Integer limit; @jakarta.annotation.Nullable - private V1DeleteOptions body; + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; - private APIdeleteValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { - this.name = name; + private APIlistValidatingAdmissionPolicyBindingRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * Set allowWatchBookmarks + * @param 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. (optional) + * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; + public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * Set _continue + * @param _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. (optional) + * @return APIlistValidatingAdmissionPolicyBindingRequest + */ + public APIlistValidatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistValidatingAdmissionPolicyBindingRequest + */ + public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistValidatingAdmissionPolicyBindingRequest + */ + public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIlistValidatingAdmissionPolicyBindingRequest + */ + public APIlistValidatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIlistValidatingAdmissionPolicyBindingRequest + */ + public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; + public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; return this; } /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; return this; } /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; + public APIlistValidatingAdmissionPolicyBindingRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; return this; } /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; + public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } /** - * Set body - * @param body (optional) - * @return APIdeleteValidatingAdmissionPolicyRequest + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistValidatingAdmissionPolicyBindingRequest */ - public APIdeleteValidatingAdmissionPolicyRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; + public APIlistValidatingAdmissionPolicyBindingRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; return this; } /** - * Build call for deleteValidatingAdmissionPolicy + * Build call for listValidatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3095,51 +7498,48 @@ public APIdeleteValidatingAdmissionPolicyRequest body(@jakarta.annotation.Nullab Response Details Status Code Description Response Headers 200 OK - - 202 Accepted - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return listValidatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute deleteValidatingAdmissionPolicy request - * @return V1Status + * Execute listValidatingAdmissionPolicyBinding request + * @return V1ValidatingAdmissionPolicyBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1ValidatingAdmissionPolicyBindingList execute() throws ApiException { + ApiResponse localVarResp = listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute deleteValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1Status> + * Execute listValidatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1ValidatingAdmissionPolicyBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteValidatingAdmissionPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute deleteValidatingAdmissionPolicy request (asynchronously) + * Execute listValidatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3148,33 +7548,30 @@ public ApiResponse executeWithHttpInfo() throws ApiException { Response Details Status Code Description Response Headers 200 OK - - 202 Accepted - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listValidatingAdmissionPolicyBindingAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } /** * - * delete a ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @return APIdeleteValidatingAdmissionPolicyRequest + * list or watch objects of kind ValidatingAdmissionPolicyBinding + * @return APIlistValidatingAdmissionPolicyBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteValidatingAdmissionPolicyRequest deleteValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { - return new APIdeleteValidatingAdmissionPolicyRequest(name); + public APIlistValidatingAdmissionPolicyBindingRequest listValidatingAdmissionPolicyBinding() { + return new APIlistValidatingAdmissionPolicyBindingRequest(); } - private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidatingWebhookConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3188,11 +7585,10 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(@jakarta.annotat basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3204,31 +7600,58 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(@jakarta.annotat localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); } - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); } - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); } - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3236,7 +7659,6 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(@jakarta.annotat } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -3244,129 +7666,181 @@ private okhttp3.Call deleteValidatingAdmissionPolicyBindingCall(@jakarta.annotat } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingAdmissionPolicyBinding(Async)"); - } - - return deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + private okhttp3.Call listValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listValidatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse deleteValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listValidatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listValidatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listValidatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteValidatingAdmissionPolicyBindingRequest { - @jakarta.annotation.Nonnull - private final String name; + public class APIlistValidatingWebhookConfigurationRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable - private String dryRun; + private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; + private String _continue; @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + private String fieldSelector; @jakarta.annotation.Nullable - private Boolean orphanDependents; + private String labelSelector; @jakarta.annotation.Nullable - private String propagationPolicy; + private Integer limit; @jakarta.annotation.Nullable - private V1DeleteOptions body; + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; - private APIdeleteValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { - this.name = name; + private APIlistValidatingWebhookConfigurationRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * @return APIlistValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * Set allowWatchBookmarks + * @param 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. (optional) + * @return APIlistValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; + public APIlistValidatingWebhookConfigurationRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; return this; } /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * Set _continue + * @param _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. (optional) + * @return APIlistValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; + public APIlistValidatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; return this; } /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistValidatingWebhookConfigurationRequest + */ + public APIlistValidatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistValidatingWebhookConfigurationRequest + */ + public APIlistValidatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIlistValidatingWebhookConfigurationRequest + */ + public APIlistValidatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIlistValidatingWebhookConfigurationRequest + */ + public APIlistValidatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIlistValidatingWebhookConfigurationRequest + */ + public APIlistValidatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + public APIlistValidatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; return this; } /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; + public APIlistValidatingWebhookConfigurationRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; return this; } /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; + public APIlistValidatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } /** - * Set body - * @param body (optional) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistValidatingWebhookConfigurationRequest */ - public APIdeleteValidatingAdmissionPolicyBindingRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; + public APIlistValidatingWebhookConfigurationRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; return this; } /** - * Build call for deleteValidatingAdmissionPolicyBinding + * Build call for listValidatingWebhookConfiguration * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3375,51 +7849,48 @@ public APIdeleteValidatingAdmissionPolicyBindingRequest body(@jakarta.annotation Response Details Status Code Description Response Headers 200 OK - - 202 Accepted - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyBindingCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return listValidatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute deleteValidatingAdmissionPolicyBinding request - * @return V1Status + * Execute listValidatingWebhookConfiguration request + * @return V1ValidatingWebhookConfigurationList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1ValidatingWebhookConfigurationList execute() throws ApiException { + ApiResponse localVarResp = listValidatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute deleteValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1Status> + * Execute listValidatingWebhookConfiguration request with HTTP info returned + * @return ApiResponse<V1ValidatingWebhookConfigurationList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listValidatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute deleteValidatingAdmissionPolicyBinding request (asynchronously) + * Execute listValidatingWebhookConfiguration request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3428,33 +7899,30 @@ public ApiResponse executeWithHttpInfo() throws ApiException { Response Details Status Code Description Response Headers 200 OK - - 202 Accepted - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteValidatingAdmissionPolicyBindingAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listValidatingWebhookConfigurationAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } /** * - * delete a ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @return APIdeleteValidatingAdmissionPolicyBindingRequest + * list or watch objects of kind ValidatingWebhookConfiguration + * @return APIlistValidatingWebhookConfigurationRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteValidatingAdmissionPolicyBindingRequest deleteValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { - return new APIdeleteValidatingAdmissionPolicyBindingRequest(name); + public APIlistValidatingWebhookConfigurationRequest listValidatingWebhookConfiguration() { + return new APIlistValidatingWebhookConfigurationRequest(); } - private okhttp3.Call deleteValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3471,7 +7939,7 @@ private okhttp3.Call deleteValidatingWebhookConfigurationCall(@jakarta.annotatio Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -3488,20 +7956,16 @@ private okhttp3.Call deleteValidatingWebhookConfigurationCall(@jakarta.annotatio localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { @@ -3524,63 +7988,67 @@ private okhttp3.Call deleteValidatingWebhookConfigurationCall(@jakarta.annotatio } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling patchMutatingAdmissionPolicy(Async)"); } - return deleteValidatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchMutatingAdmissionPolicy(Async)"); + } + + return patchMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse deleteValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse patchMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteValidatingWebhookConfigurationRequest { + public class APIpatchMutatingAdmissionPolicyRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable private String dryRun; @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; - @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; - @jakarta.annotation.Nullable - private Boolean orphanDependents; + private String fieldManager; @jakarta.annotation.Nullable - private String propagationPolicy; + private String fieldValidation; @jakarta.annotation.Nullable - private V1DeleteOptions body; + private Boolean force; - private APIdeleteValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { + private APIpatchMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteValidatingWebhookConfigurationRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3588,65 +8056,45 @@ public APIdeleteValidatingWebhookConfigurationRequest pretty(@jakarta.annotation /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteValidatingWebhookConfigurationRequest + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIpatchMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteValidatingWebhookConfigurationRequest - */ - public APIdeleteValidatingWebhookConfigurationRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return this; - } - - /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteValidatingWebhookConfigurationRequest - */ - public APIdeleteValidatingWebhookConfigurationRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; - return this; - } - - /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteValidatingWebhookConfigurationRequest + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingWebhookConfigurationRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; + public APIpatchMutatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; return this; } /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteValidatingWebhookConfigurationRequest + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingWebhookConfigurationRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; + public APIpatchMutatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; return this; } /** - * Set body - * @param body (optional) - * @return APIdeleteValidatingWebhookConfigurationRequest + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchMutatingAdmissionPolicyRequest */ - public APIdeleteValidatingWebhookConfigurationRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; + public APIpatchMutatingAdmissionPolicyRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; return this; } /** - * Build call for deleteValidatingWebhookConfiguration + * Build call for patchMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3655,51 +8103,51 @@ public APIdeleteValidatingWebhookConfigurationRequest body(@jakarta.annotation.N Response Details Status Code Description Response Headers 200 OK - - 202 Accepted - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteValidatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return patchMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute deleteValidatingWebhookConfiguration request - * @return V1Status + * Execute patchMutatingAdmissionPolicy request + * @return V1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
201 Created -
401 Unauthorized -
*/ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = patchMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute deleteValidatingWebhookConfiguration request with HTTP info returned - * @return ApiResponse<V1Status> + * Execute patchMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details - +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute deleteValidatingWebhookConfiguration request (asynchronously) + * Execute patchMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3708,33 +8156,34 @@ public ApiResponse executeWithHttpInfo() throws ApiException { Response Details Status Code Description Response Headers 200 OK - - 202 Accepted - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteValidatingWebhookConfigurationAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchMutatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * delete a ValidatingWebhookConfiguration - * @param name name of the ValidatingWebhookConfiguration (required) - * @return APIdeleteValidatingWebhookConfigurationRequest + * partially update the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @param body (required) + * @return APIpatchMutatingAdmissionPolicyRequest * @http.response.details - +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
201 Created -
401 Unauthorized -
*/ - public APIdeleteValidatingWebhookConfigurationRequest deleteValidatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { - return new APIdeleteValidatingWebhookConfigurationRequest(name); + public APIpatchMutatingAdmissionPolicyRequest patchMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchMutatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3748,10 +8197,11 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3759,6 +8209,26 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -3771,6 +8241,7 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -3778,37 +8249,113 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); + private okhttp3.Call patchMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchMutatingAdmissionPolicyBinding(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchMutatingAdmissionPolicyBinding(Async)"); + } + + return patchMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + okhttp3.Call localVarCall = patchMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } + public class APIpatchMutatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } - private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchMutatingAdmissionPolicyBindingRequest + */ + public APIpatchMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } - private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchMutatingAdmissionPolicyBindingRequest + */ + public APIpatchMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchMutatingAdmissionPolicyBindingRequest + */ + public APIpatchMutatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } - public class APIgetAPIResourcesRequest { + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchMutatingAdmissionPolicyBindingRequest + */ + public APIpatchMutatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } - private APIgetAPIResourcesRequest() { + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchMutatingAdmissionPolicyBindingRequest + */ + public APIpatchMutatingAdmissionPolicyBindingRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; } /** - * Build call for getAPIResources + * Build call for patchMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3817,48 +8364,51 @@ private APIgetAPIResourcesRequest() { Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); + return patchMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute getAPIResources request - * @return V1APIResourceList + * Execute patchMutatingAdmissionPolicyBinding request + * @return V1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1APIResourceList execute() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + public V1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = patchMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute getAPIResources request with HTTP info returned - * @return ApiResponse<V1APIResourceList> + * Execute patchMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getAPIResourcesWithHttpInfo(); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute getAPIResources request (asynchronously) + * Execute patchMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3867,30 +8417,34 @@ public ApiResponse executeWithHttpInfo() throws ApiException Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getAPIResourcesAsync(_callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchMutatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * get available resources - * @return APIgetAPIResourcesRequest + * partially update the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @param body (required) + * @return APIpatchMutatingAdmissionPolicyBindingRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIgetAPIResourcesRequest getAPIResources() { - return new APIgetAPIResourcesRequest(); + public APIpatchMutatingAdmissionPolicyBindingRequest patchMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchMutatingAdmissionPolicyBindingRequest(name, body); } - private okhttp3.Call listMutatingWebhookConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3904,10 +8458,11 @@ private okhttp3.Call listMutatingWebhookConfigurationCall(@jakarta.annotation.Nu basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3919,54 +8474,27 @@ private okhttp3.Call listMutatingWebhookConfigurationCall(@jakarta.annotation.Nu localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -3974,6 +8502,7 @@ private okhttp3.Call listMutatingWebhookConfigurationCall(@jakarta.annotation.Nu } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -3981,169 +8510,113 @@ private okhttp3.Call listMutatingWebhookConfigurationCall(@jakarta.annotation.Nu } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listMutatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call patchMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchMutatingWebhookConfiguration(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchMutatingWebhookConfiguration(Async)"); + } + + return patchMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse listMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listMutatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse patchMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listMutatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listMutatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistMutatingWebhookConfigurationRequest { + public class APIpatchMutatingWebhookConfigurationRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; + private String dryRun; @jakarta.annotation.Nullable - private Boolean sendInitialEvents; + private String fieldManager; @jakarta.annotation.Nullable - private Integer timeoutSeconds; + private String fieldValidation; @jakarta.annotation.Nullable - private Boolean watch; + private Boolean force; - private APIlistMutatingWebhookConfigurationRequest() { + private APIpatchMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistMutatingWebhookConfigurationRequest + * @return APIpatchMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set allowWatchBookmarks - * @param 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. (optional) - * @return APIlistMutatingWebhookConfigurationRequest - */ - public APIlistMutatingWebhookConfigurationRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; - return this; - } - - /** - * Set _continue - * @param _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. (optional) - * @return APIlistMutatingWebhookConfigurationRequest - */ - public APIlistMutatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistMutatingWebhookConfigurationRequest - */ - public APIlistMutatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistMutatingWebhookConfigurationRequest - */ - public APIlistMutatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param 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. (optional) - * @return APIlistMutatingWebhookConfigurationRequest - */ - public APIlistMutatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set resourceVersion - * @param 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 (optional) - * @return APIlistMutatingWebhookConfigurationRequest - */ - public APIlistMutatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param 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 (optional) - * @return APIlistMutatingWebhookConfigurationRequest + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; + public APIpatchMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; return this; } /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistMutatingWebhookConfigurationRequest + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; + public APIpatchMutatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; return this; } /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistMutatingWebhookConfigurationRequest + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public APIpatchMutatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; return this; } /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistMutatingWebhookConfigurationRequest + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchMutatingWebhookConfigurationRequest */ - public APIlistMutatingWebhookConfigurationRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; + public APIpatchMutatingWebhookConfigurationRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; return this; } /** - * Build call for listMutatingWebhookConfiguration + * Build call for patchMutatingWebhookConfiguration * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4152,48 +8625,51 @@ public APIlistMutatingWebhookConfigurationRequest watch(@jakarta.annotation.Null Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listMutatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return patchMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute listMutatingWebhookConfiguration request - * @return V1MutatingWebhookConfigurationList + * Execute patchMutatingWebhookConfiguration request + * @return V1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1MutatingWebhookConfigurationList execute() throws ApiException { - ApiResponse localVarResp = listMutatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1MutatingWebhookConfiguration execute() throws ApiException { + ApiResponse localVarResp = patchMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute listMutatingWebhookConfiguration request with HTTP info returned - * @return ApiResponse<V1MutatingWebhookConfigurationList> + * Execute patchMutatingWebhookConfiguration request with HTTP info returned + * @return ApiResponse<V1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listMutatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute listMutatingWebhookConfiguration request (asynchronously) + * Execute patchMutatingWebhookConfiguration request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4202,30 +8678,34 @@ public ApiResponse executeWithHttpInfo() thr Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listMutatingWebhookConfigurationAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchMutatingWebhookConfigurationAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * list or watch objects of kind MutatingWebhookConfiguration - * @return APIlistMutatingWebhookConfigurationRequest + * partially update the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) + * @param body (required) + * @return APIpatchMutatingWebhookConfigurationRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIlistMutatingWebhookConfigurationRequest listMutatingWebhookConfiguration() { - return new APIlistMutatingWebhookConfigurationRequest(); + public APIpatchMutatingWebhookConfigurationRequest patchMutatingWebhookConfiguration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchMutatingWebhookConfigurationRequest(name, body); } - private okhttp3.Call listValidatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4239,10 +8719,11 @@ private okhttp3.Call listValidatingAdmissionPolicyCall(@jakarta.annotation.Nulla basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4254,54 +8735,27 @@ private okhttp3.Call listValidatingAdmissionPolicyCall(@jakarta.annotation.Nulla localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4309,6 +8763,7 @@ private okhttp3.Call listValidatingAdmissionPolicyCall(@jakarta.annotation.Nulla } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -4316,169 +8771,113 @@ private okhttp3.Call listValidatingAdmissionPolicyCall(@jakarta.annotation.Nulla } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call patchValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicy(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicy(Async)"); + } + + return patchValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse listValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse patchValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listValidatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistValidatingAdmissionPolicyRequest { + public class APIpatchValidatingAdmissionPolicyRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; + private String dryRun; @jakarta.annotation.Nullable - private Boolean sendInitialEvents; + private String fieldManager; @jakarta.annotation.Nullable - private Integer timeoutSeconds; + private String fieldValidation; @jakarta.annotation.Nullable - private Boolean watch; + private Boolean force; - private APIlistValidatingAdmissionPolicyRequest() { + private APIpatchValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set allowWatchBookmarks - * @param 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. (optional) - * @return APIlistValidatingAdmissionPolicyRequest - */ - public APIlistValidatingAdmissionPolicyRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; - return this; - } - - /** - * Set _continue - * @param _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. (optional) - * @return APIlistValidatingAdmissionPolicyRequest - */ - public APIlistValidatingAdmissionPolicyRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyRequest - */ - public APIlistValidatingAdmissionPolicyRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyRequest - */ - public APIlistValidatingAdmissionPolicyRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param 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. (optional) - * @return APIlistValidatingAdmissionPolicyRequest - */ - public APIlistValidatingAdmissionPolicyRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set resourceVersion - * @param 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 (optional) - * @return APIlistValidatingAdmissionPolicyRequest - */ - public APIlistValidatingAdmissionPolicyRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param 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 (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; + public APIpatchValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; return this; } /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; + public APIpatchValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; return this; } /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public APIpatchValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; return this; } /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistValidatingAdmissionPolicyRequest + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchValidatingAdmissionPolicyRequest */ - public APIlistValidatingAdmissionPolicyRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; + public APIpatchValidatingAdmissionPolicyRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; return this; } /** - * Build call for listValidatingAdmissionPolicy + * Build call for patchValidatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4487,48 +8886,51 @@ public APIlistValidatingAdmissionPolicyRequest watch(@jakarta.annotation.Nullabl Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return patchValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute listValidatingAdmissionPolicy request - * @return V1ValidatingAdmissionPolicyList + * Execute patchValidatingAdmissionPolicy request + * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1ValidatingAdmissionPolicyList execute() throws ApiException { - ApiResponse localVarResp = listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1ValidatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute listValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1ValidatingAdmissionPolicyList> + * Execute patchValidatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listValidatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute listValidatingAdmissionPolicy request (asynchronously) + * Execute patchValidatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4537,30 +8939,34 @@ public ApiResponse executeWithHttpInfo() throws Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchValidatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * list or watch objects of kind ValidatingAdmissionPolicy - * @return APIlistValidatingAdmissionPolicyRequest + * partially update the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param body (required) + * @return APIpatchValidatingAdmissionPolicyRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIlistValidatingAdmissionPolicyRequest listValidatingAdmissionPolicy() { - return new APIlistValidatingAdmissionPolicyRequest(); + public APIpatchValidatingAdmissionPolicyRequest patchValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchValidatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call listValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4574,10 +8980,11 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingCall(@jakarta.annotatio basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4589,54 +8996,27 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingCall(@jakarta.annotatio localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4644,6 +9024,7 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingCall(@jakarta.annotatio } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -4651,169 +9032,113 @@ private okhttp3.Call listValidatingAdmissionPolicyBindingCall(@jakarta.annotatio } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyBinding(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicyBinding(Async)"); + } + + return patchValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse listValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse patchValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listValidatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistValidatingAdmissionPolicyBindingRequest { + public class APIpatchValidatingAdmissionPolicyBindingRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; + private String dryRun; @jakarta.annotation.Nullable - private Boolean sendInitialEvents; + private String fieldManager; @jakarta.annotation.Nullable - private Integer timeoutSeconds; + private String fieldValidation; @jakarta.annotation.Nullable - private Boolean watch; + private Boolean force; - private APIlistValidatingAdmissionPolicyBindingRequest() { + private APIpatchValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set allowWatchBookmarks - * @param 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. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest - */ - public APIlistValidatingAdmissionPolicyBindingRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; - return this; - } - - /** - * Set _continue - * @param _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. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest - */ - public APIlistValidatingAdmissionPolicyBindingRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest - */ - public APIlistValidatingAdmissionPolicyBindingRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest - */ - public APIlistValidatingAdmissionPolicyBindingRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param 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. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest - */ - public APIlistValidatingAdmissionPolicyBindingRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set resourceVersion - * @param 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 (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest - */ - public APIlistValidatingAdmissionPolicyBindingRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param 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 (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; + public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; return this; } /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; + public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; return this; } /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; return this; } /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistValidatingAdmissionPolicyBindingRequest + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchValidatingAdmissionPolicyBindingRequest */ - public APIlistValidatingAdmissionPolicyBindingRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; + public APIpatchValidatingAdmissionPolicyBindingRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; return this; } /** - * Build call for listValidatingAdmissionPolicyBinding + * Build call for patchValidatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4822,48 +9147,51 @@ public APIlistValidatingAdmissionPolicyBindingRequest watch(@jakarta.annotation. Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return patchValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute listValidatingAdmissionPolicyBinding request - * @return V1ValidatingAdmissionPolicyBindingList + * Execute patchValidatingAdmissionPolicyBinding request + * @return V1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1ValidatingAdmissionPolicyBindingList execute() throws ApiException { - ApiResponse localVarResp = listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1ValidatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute listValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1ValidatingAdmissionPolicyBindingList> + * Execute patchValidatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listValidatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute listValidatingAdmissionPolicyBinding request (asynchronously) + * Execute patchValidatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4872,30 +9200,34 @@ public ApiResponse executeWithHttpInfo() Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listValidatingAdmissionPolicyBindingAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchValidatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * list or watch objects of kind ValidatingAdmissionPolicyBinding - * @return APIlistValidatingAdmissionPolicyBindingRequest + * partially update the specified ValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @param body (required) + * @return APIpatchValidatingAdmissionPolicyBindingRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIlistValidatingAdmissionPolicyBindingRequest listValidatingAdmissionPolicyBinding() { - return new APIlistValidatingAdmissionPolicyBindingRequest(); + public APIpatchValidatingAdmissionPolicyBindingRequest patchValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchValidatingAdmissionPolicyBindingRequest(name, body); } - private okhttp3.Call listValidatingWebhookConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4909,10 +9241,11 @@ private okhttp3.Call listValidatingWebhookConfigurationCall(@jakarta.annotation. basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations"; + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4924,54 +9257,27 @@ private okhttp3.Call listValidatingWebhookConfigurationCall(@jakarta.annotation. localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4979,6 +9285,7 @@ private okhttp3.Call listValidatingWebhookConfigurationCall(@jakarta.annotation. } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -4986,169 +9293,113 @@ private okhttp3.Call listValidatingWebhookConfigurationCall(@jakarta.annotation. } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listValidatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicyStatus(Async)"); + } + + return patchValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse listValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listValidatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse patchValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listValidatingWebhookConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listValidatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistValidatingWebhookConfigurationRequest { + public class APIpatchValidatingAdmissionPolicyStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; + private String dryRun; @jakarta.annotation.Nullable - private Boolean sendInitialEvents; + private String fieldManager; @jakarta.annotation.Nullable - private Integer timeoutSeconds; + private String fieldValidation; @jakarta.annotation.Nullable - private Boolean watch; + private Boolean force; - private APIlistValidatingWebhookConfigurationRequest() { + private APIpatchValidatingAdmissionPolicyStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistValidatingWebhookConfigurationRequest + * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIlistValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set allowWatchBookmarks - * @param 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. (optional) - * @return APIlistValidatingWebhookConfigurationRequest - */ - public APIlistValidatingWebhookConfigurationRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; - return this; - } - - /** - * Set _continue - * @param _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. (optional) - * @return APIlistValidatingWebhookConfigurationRequest - */ - public APIlistValidatingWebhookConfigurationRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistValidatingWebhookConfigurationRequest - */ - public APIlistValidatingWebhookConfigurationRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistValidatingWebhookConfigurationRequest - */ - public APIlistValidatingWebhookConfigurationRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param 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. (optional) - * @return APIlistValidatingWebhookConfigurationRequest - */ - public APIlistValidatingWebhookConfigurationRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set resourceVersion - * @param 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 (optional) - * @return APIlistValidatingWebhookConfigurationRequest - */ - public APIlistValidatingWebhookConfigurationRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param 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 (optional) - * @return APIlistValidatingWebhookConfigurationRequest + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIlistValidatingWebhookConfigurationRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; + public APIpatchValidatingAdmissionPolicyStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; return this; } /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistValidatingWebhookConfigurationRequest + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIlistValidatingWebhookConfigurationRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; + public APIpatchValidatingAdmissionPolicyStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; return this; } /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistValidatingWebhookConfigurationRequest + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIlistValidatingWebhookConfigurationRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public APIpatchValidatingAdmissionPolicyStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; return this; } /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistValidatingWebhookConfigurationRequest + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchValidatingAdmissionPolicyStatusRequest */ - public APIlistValidatingWebhookConfigurationRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; + public APIpatchValidatingAdmissionPolicyStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; return this; } /** - * Build call for listValidatingWebhookConfiguration + * Build call for patchValidatingAdmissionPolicyStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5157,48 +9408,51 @@ public APIlistValidatingWebhookConfigurationRequest watch(@jakarta.annotation.Nu Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listValidatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return patchValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - /** - * Execute listValidatingWebhookConfiguration request - * @return V1ValidatingWebhookConfigurationList + /** + * Execute patchValidatingAdmissionPolicyStatus request + * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1ValidatingWebhookConfigurationList execute() throws ApiException { - ApiResponse localVarResp = listValidatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1ValidatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute listValidatingWebhookConfiguration request with HTTP info returned - * @return ApiResponse<V1ValidatingWebhookConfigurationList> + * Execute patchValidatingAdmissionPolicyStatus request with HTTP info returned + * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listValidatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute listValidatingWebhookConfiguration request (asynchronously) + * Execute patchValidatingAdmissionPolicyStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5207,30 +9461,34 @@ public ApiResponse executeWithHttpInfo() t Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listValidatingWebhookConfigurationAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchValidatingAdmissionPolicyStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * list or watch objects of kind ValidatingWebhookConfiguration - * @return APIlistValidatingWebhookConfigurationRequest + * partially update status of the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @param body (required) + * @return APIpatchValidatingAdmissionPolicyStatusRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIlistValidatingWebhookConfigurationRequest listValidatingWebhookConfiguration() { - return new APIlistValidatingWebhookConfigurationRequest(); + public APIpatchValidatingAdmissionPolicyStatusRequest patchValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchValidatingAdmissionPolicyStatusRequest(name, body); } - private okhttp3.Call patchMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5247,7 +9505,7 @@ private okhttp3.Call patchMutatingWebhookConfigurationCall(@jakarta.annotation.N Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -5300,37 +9558,37 @@ private okhttp3.Call patchMutatingWebhookConfigurationCall(@jakarta.annotation.N } @SuppressWarnings("rawtypes") - private okhttp3.Call patchMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchMutatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling patchValidatingWebhookConfiguration(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchMutatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling patchValidatingWebhookConfiguration(Async)"); } - return patchMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchValidatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse patchMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse patchValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchMutatingWebhookConfigurationRequest { + public class APIpatchValidatingWebhookConfigurationRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull @@ -5346,7 +9604,7 @@ public class APIpatchMutatingWebhookConfigurationRequest { @jakarta.annotation.Nullable private Boolean force; - private APIpatchMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIpatchValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -5354,9 +9612,9 @@ private APIpatchMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchMutatingWebhookConfigurationRequest + * @return APIpatchValidatingWebhookConfigurationRequest */ - public APIpatchMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -5364,9 +9622,9 @@ public APIpatchMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nu /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchMutatingWebhookConfigurationRequest + * @return APIpatchValidatingWebhookConfigurationRequest */ - public APIpatchMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIpatchValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -5374,9 +9632,9 @@ public APIpatchMutatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nu /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchMutatingWebhookConfigurationRequest + * @return APIpatchValidatingWebhookConfigurationRequest */ - public APIpatchMutatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIpatchValidatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -5384,9 +9642,9 @@ public APIpatchMutatingWebhookConfigurationRequest fieldManager(@jakarta.annotat /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchMutatingWebhookConfigurationRequest + * @return APIpatchValidatingWebhookConfigurationRequest */ - public APIpatchMutatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIpatchValidatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -5394,15 +9652,15 @@ public APIpatchMutatingWebhookConfigurationRequest fieldValidation(@jakarta.anno /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchMutatingWebhookConfigurationRequest + * @return APIpatchValidatingWebhookConfigurationRequest */ - public APIpatchMutatingWebhookConfigurationRequest force(@jakarta.annotation.Nullable Boolean force) { + public APIpatchValidatingWebhookConfigurationRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchMutatingWebhookConfiguration + * Build call for patchValidatingWebhookConfiguration * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5416,12 +9674,12 @@ public APIpatchMutatingWebhookConfigurationRequest force(@jakarta.annotation.Nul */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchValidatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchMutatingWebhookConfiguration request - * @return V1MutatingWebhookConfiguration + * Execute patchValidatingWebhookConfiguration request + * @return V1ValidatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5432,14 +9690,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1MutatingWebhookConfiguration execute() throws ApiException { - ApiResponse localVarResp = patchMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1ValidatingWebhookConfiguration execute() throws ApiException { + ApiResponse localVarResp = patchValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchMutatingWebhookConfiguration request with HTTP info returned - * @return ApiResponse<V1MutatingWebhookConfiguration> + * Execute patchValidatingWebhookConfiguration request with HTTP info returned + * @return ApiResponse<V1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5450,12 +9708,12 @@ public V1MutatingWebhookConfiguration execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchMutatingWebhookConfiguration request (asynchronously) + * Execute patchValidatingWebhookConfiguration request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5468,17 +9726,17 @@ public ApiResponse executeWithHttpInfo() throws 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchMutatingWebhookConfigurationAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchValidatingWebhookConfigurationAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * partially update the specified MutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) + * partially update the specified ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration (required) * @param body (required) - * @return APIpatchMutatingWebhookConfigurationRequest + * @return APIpatchValidatingWebhookConfigurationRequest * @http.response.details @@ -5488,10 +9746,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIpatchMutatingWebhookConfigurationRequest patchMutatingWebhookConfiguration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchMutatingWebhookConfigurationRequest(name, body); + public APIpatchValidatingWebhookConfigurationRequest patchValidatingWebhookConfiguration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchValidatingWebhookConfigurationRequest(name, body); } - private okhttp3.Call patchValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5505,10 +9763,10 @@ private okhttp3.Call patchValidatingAdmissionPolicyCall(@jakarta.annotation.Nonn basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -5521,22 +9779,6 @@ private okhttp3.Call patchValidatingAdmissionPolicyCall(@jakarta.annotation.Nonn localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", @@ -5549,7 +9791,6 @@ private okhttp3.Call patchValidatingAdmissionPolicyCall(@jakarta.annotation.Nonn } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -5557,113 +9798,57 @@ private okhttp3.Call patchValidatingAdmissionPolicyCall(@jakarta.annotation.Nonn } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicy(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicy(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readMutatingAdmissionPolicy(Async)"); } - return patchValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readMutatingAdmissionPolicyCall(name, pretty, _callback); } - private ApiResponse patchValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readMutatingAdmissionPolicyValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readMutatingAdmissionPolicyValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchValidatingAdmissionPolicyRequest { + public class APIreadMutatingAdmissionPolicyRequest { @jakarta.annotation.Nonnull private final String name; - @jakarta.annotation.Nonnull - private final V1Patch body; @jakarta.annotation.Nullable private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - @jakarta.annotation.Nullable - private Boolean force; - private APIpatchValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIreadMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchValidatingAdmissionPolicyRequest + * @return APIreadMutatingAdmissionPolicyRequest */ - public APIpatchValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchValidatingAdmissionPolicyRequest - */ - public APIpatchValidatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchValidatingAdmissionPolicyRequest - */ - public APIpatchValidatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchValidatingAdmissionPolicyRequest - */ - public APIpatchValidatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchValidatingAdmissionPolicyRequest - */ - public APIpatchValidatingAdmissionPolicyRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchValidatingAdmissionPolicy + * Build call for readMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5672,51 +9857,48 @@ public APIpatchValidatingAdmissionPolicyRequest force(@jakarta.annotation.Nullab Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readMutatingAdmissionPolicyCall(name, pretty, _callback); } /** - * Execute patchValidatingAdmissionPolicy request - * @return V1ValidatingAdmissionPolicy + * Execute readMutatingAdmissionPolicy request + * @return V1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = readMutatingAdmissionPolicyWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchValidatingAdmissionPolicy request with HTTP info returned - * @return ApiResponse<V1ValidatingAdmissionPolicy> + * Execute readMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchValidatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readMutatingAdmissionPolicyWithHttpInfo(name, pretty); } /** - * Execute patchValidatingAdmissionPolicy request (asynchronously) + * Execute readMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5725,34 +9907,31 @@ public ApiResponse executeWithHttpInfo() throws Api Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readMutatingAdmissionPolicyAsync(name, pretty, _callback); } } /** * - * partially update the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @return APIpatchValidatingAdmissionPolicyRequest + * read the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @return APIreadMutatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyRequest patchValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchValidatingAdmissionPolicyRequest(name, body); + public APIreadMutatingAdmissionPolicyRequest readMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { + return new APIreadMutatingAdmissionPolicyRequest(name); } - private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5766,36 +9945,20 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(@jakarta.annotati basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { @@ -5810,7 +9973,6 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(@jakarta.annotati } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -5818,113 +9980,57 @@ private okhttp3.Call patchValidatingAdmissionPolicyBindingCall(@jakarta.annotati } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyBinding(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readMutatingAdmissionPolicyBinding(Async)"); } - return patchValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readMutatingAdmissionPolicyBindingCall(name, pretty, _callback); } - private ApiResponse patchValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readMutatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchValidatingAdmissionPolicyBindingRequest { + public class APIreadMutatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nonnull private final String name; - @jakarta.annotation.Nonnull - private final V1Patch body; @jakarta.annotation.Nullable private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - @jakarta.annotation.Nullable - private Boolean force; - private APIpatchValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIreadMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchValidatingAdmissionPolicyBindingRequest + * @return APIreadMutatingAdmissionPolicyBindingRequest */ - public APIpatchValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchValidatingAdmissionPolicyBindingRequest - */ - public APIpatchValidatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchValidatingAdmissionPolicyBindingRequest - */ - public APIpatchValidatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchValidatingAdmissionPolicyBindingRequest - */ - public APIpatchValidatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchValidatingAdmissionPolicyBindingRequest - */ - public APIpatchValidatingAdmissionPolicyBindingRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchValidatingAdmissionPolicyBinding + * Build call for readMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5933,51 +10039,48 @@ public APIpatchValidatingAdmissionPolicyBindingRequest force(@jakarta.annotation Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readMutatingAdmissionPolicyBindingCall(name, pretty, _callback); } /** - * Execute patchValidatingAdmissionPolicyBinding request - * @return V1ValidatingAdmissionPolicyBinding + * Execute readMutatingAdmissionPolicyBinding request + * @return V1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1ValidatingAdmissionPolicyBinding execute() throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = readMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> + * Execute readMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchValidatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readMutatingAdmissionPolicyBindingWithHttpInfo(name, pretty); } /** - * Execute patchValidatingAdmissionPolicyBinding request (asynchronously) + * Execute readMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5986,34 +10089,31 @@ public ApiResponse executeWithHttpInfo() thr Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readMutatingAdmissionPolicyBindingAsync(name, pretty, _callback); } } /** * - * partially update the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @param body (required) - * @return APIpatchValidatingAdmissionPolicyBindingRequest + * read the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @return APIreadMutatingAdmissionPolicyBindingRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyBindingRequest patchValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchValidatingAdmissionPolicyBindingRequest(name, body); + public APIreadMutatingAdmissionPolicyBindingRequest readMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { + return new APIreadMutatingAdmissionPolicyBindingRequest(name); } - private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6027,10 +10127,10 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(@jakarta.annotatio basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status" + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -6043,22 +10143,6 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(@jakarta.annotatio localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", @@ -6071,7 +10155,6 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(@jakarta.annotatio } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -6079,113 +10162,57 @@ private okhttp3.Call patchValidatingAdmissionPolicyStatusCall(@jakarta.annotatio } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchValidatingAdmissionPolicyStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchValidatingAdmissionPolicyStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readMutatingWebhookConfiguration(Async)"); } - return patchValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readMutatingWebhookConfigurationCall(name, pretty, _callback); } - private ApiResponse patchValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchValidatingAdmissionPolicyStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchValidatingAdmissionPolicyStatusRequest { + public class APIreadMutatingWebhookConfigurationRequest { @jakarta.annotation.Nonnull private final String name; - @jakarta.annotation.Nonnull - private final V1Patch body; @jakarta.annotation.Nullable private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - @jakarta.annotation.Nullable - private Boolean force; - private APIpatchValidatingAdmissionPolicyStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIreadMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchValidatingAdmissionPolicyStatusRequest + * @return APIreadMutatingWebhookConfigurationRequest */ - public APIpatchValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchValidatingAdmissionPolicyStatusRequest - */ - public APIpatchValidatingAdmissionPolicyStatusRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchValidatingAdmissionPolicyStatus + * Build call for readMutatingWebhookConfiguration * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6194,51 +10221,48 @@ public APIpatchValidatingAdmissionPolicyStatusRequest force(@jakarta.annotation. Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readMutatingWebhookConfigurationCall(name, pretty, _callback); } /** - * Execute patchValidatingAdmissionPolicyStatus request - * @return V1ValidatingAdmissionPolicy + * Execute readMutatingWebhookConfiguration request + * @return V1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1MutatingWebhookConfiguration execute() throws ApiException { + ApiResponse localVarResp = readMutatingWebhookConfigurationWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchValidatingAdmissionPolicyStatus request with HTTP info returned - * @return ApiResponse<V1ValidatingAdmissionPolicy> + * Execute readMutatingWebhookConfiguration request with HTTP info returned + * @return ApiResponse<V1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchValidatingAdmissionPolicyStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readMutatingWebhookConfigurationWithHttpInfo(name, pretty); } /** - * Execute patchValidatingAdmissionPolicyStatus request (asynchronously) + * Execute readMutatingWebhookConfiguration request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -6247,34 +10271,31 @@ public ApiResponse executeWithHttpInfo() throws Api Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchValidatingAdmissionPolicyStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readMutatingWebhookConfigurationAsync(name, pretty, _callback); } } /** * - * partially update status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @param body (required) - * @return APIpatchValidatingAdmissionPolicyStatusRequest + * read the specified MutatingWebhookConfiguration + * @param name name of the MutatingWebhookConfiguration (required) + * @return APIreadMutatingWebhookConfigurationRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingAdmissionPolicyStatusRequest patchValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchValidatingAdmissionPolicyStatusRequest(name, body); + public APIreadMutatingWebhookConfigurationRequest readMutatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { + return new APIreadMutatingWebhookConfigurationRequest(name); } - private okhttp3.Call patchValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6288,10 +10309,10 @@ private okhttp3.Call patchValidatingWebhookConfigurationCall(@jakarta.annotation basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -6304,22 +10325,6 @@ private okhttp3.Call patchValidatingWebhookConfigurationCall(@jakarta.annotation localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", @@ -6332,7 +10337,6 @@ private okhttp3.Call patchValidatingWebhookConfigurationCall(@jakarta.annotation } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -6340,113 +10344,57 @@ private okhttp3.Call patchValidatingWebhookConfigurationCall(@jakarta.annotation } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchValidatingWebhookConfiguration(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchValidatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicy(Async)"); } - return patchValidatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readValidatingAdmissionPolicyCall(name, pretty, _callback); } - private ApiResponse patchValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchValidatingWebhookConfigurationRequest { + public class APIreadValidatingAdmissionPolicyRequest { @jakarta.annotation.Nonnull private final String name; - @jakarta.annotation.Nonnull - private final V1Patch body; @jakarta.annotation.Nullable private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - @jakarta.annotation.Nullable - private Boolean force; - private APIpatchValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIreadValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchValidatingWebhookConfigurationRequest + * @return APIreadValidatingAdmissionPolicyRequest */ - public APIpatchValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchValidatingWebhookConfigurationRequest - */ - public APIpatchValidatingWebhookConfigurationRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchValidatingWebhookConfigurationRequest - */ - public APIpatchValidatingWebhookConfigurationRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchValidatingWebhookConfigurationRequest - */ - public APIpatchValidatingWebhookConfigurationRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchValidatingWebhookConfigurationRequest - */ - public APIpatchValidatingWebhookConfigurationRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchValidatingWebhookConfiguration + * Build call for readValidatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6455,51 +10403,48 @@ public APIpatchValidatingWebhookConfigurationRequest force(@jakarta.annotation.N Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchValidatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readValidatingAdmissionPolicyCall(name, pretty, _callback); } /** - * Execute patchValidatingWebhookConfiguration request - * @return V1ValidatingWebhookConfiguration + * Execute readValidatingAdmissionPolicy request + * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1ValidatingWebhookConfiguration execute() throws ApiException { - ApiResponse localVarResp = patchValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1ValidatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = readValidatingAdmissionPolicyWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchValidatingWebhookConfiguration request with HTTP info returned - * @return ApiResponse<V1ValidatingWebhookConfiguration> + * Execute readValidatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readValidatingAdmissionPolicyWithHttpInfo(name, pretty); } /** - * Execute patchValidatingWebhookConfiguration request (asynchronously) + * Execute readValidatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -6508,34 +10453,31 @@ public ApiResponse executeWithHttpInfo() throw Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchValidatingWebhookConfigurationAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readValidatingAdmissionPolicyAsync(name, pretty, _callback); } } /** * - * partially update the specified ValidatingWebhookConfiguration - * @param name name of the ValidatingWebhookConfiguration (required) - * @param body (required) - * @return APIpatchValidatingWebhookConfigurationRequest + * read the specified ValidatingAdmissionPolicy + * @param name name of the ValidatingAdmissionPolicy (required) + * @return APIreadValidatingAdmissionPolicyRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchValidatingWebhookConfigurationRequest patchValidatingWebhookConfiguration(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchValidatingWebhookConfigurationRequest(name, body); + public APIreadValidatingAdmissionPolicyRequest readValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { + return new APIreadValidatingAdmissionPolicyRequest(name); } - private okhttp3.Call readMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6552,7 +10494,7 @@ private okhttp3.Call readMutatingWebhookConfigurationCall(@jakarta.annotation.No Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -6588,53 +10530,53 @@ private okhttp3.Call readMutatingWebhookConfigurationCall(@jakarta.annotation.No } @SuppressWarnings("rawtypes") - private okhttp3.Call readMutatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readMutatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyBinding(Async)"); } - return readMutatingWebhookConfigurationCall(name, pretty, _callback); + return readValidatingAdmissionPolicyBindingCall(name, pretty, _callback); } - private ApiResponse readMutatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readMutatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadMutatingWebhookConfigurationRequest { + public class APIreadValidatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nullable private String pretty; - private APIreadMutatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { + private APIreadValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadMutatingWebhookConfigurationRequest + * @return APIreadValidatingAdmissionPolicyBindingRequest */ - public APIreadMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readMutatingWebhookConfiguration + * Build call for readValidatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6647,12 +10589,12 @@ public APIreadMutatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nul */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readMutatingWebhookConfigurationCall(name, pretty, _callback); + return readValidatingAdmissionPolicyBindingCall(name, pretty, _callback); } /** - * Execute readMutatingWebhookConfiguration request - * @return V1MutatingWebhookConfiguration + * Execute readValidatingAdmissionPolicyBinding request + * @return V1ValidatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6662,14 +10604,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1MutatingWebhookConfiguration execute() throws ApiException { - ApiResponse localVarResp = readMutatingWebhookConfigurationWithHttpInfo(name, pretty); + public V1ValidatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute readMutatingWebhookConfiguration request with HTTP info returned - * @return ApiResponse<V1MutatingWebhookConfiguration> + * Execute readValidatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6679,12 +10621,12 @@ public V1MutatingWebhookConfiguration execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readMutatingWebhookConfigurationWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty); } /** - * Execute readMutatingWebhookConfiguration request (asynchronously) + * Execute readValidatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -6696,16 +10638,16 @@ public ApiResponse executeWithHttpInfo() throws 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readMutatingWebhookConfigurationAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readValidatingAdmissionPolicyBindingAsync(name, pretty, _callback); } } /** * - * read the specified MutatingWebhookConfiguration - * @param name name of the MutatingWebhookConfiguration (required) - * @return APIreadMutatingWebhookConfigurationRequest + * read the specified ValidatingAdmissionPolicyBinding + * @param name name of the ValidatingAdmissionPolicyBinding (required) + * @return APIreadValidatingAdmissionPolicyBindingRequest * @http.response.details @@ -6714,10 +10656,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIreadMutatingWebhookConfigurationRequest readMutatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { - return new APIreadMutatingWebhookConfigurationRequest(name); + public APIreadValidatingAdmissionPolicyBindingRequest readValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { + return new APIreadValidatingAdmissionPolicyBindingRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6734,7 +10676,7 @@ private okhttp3.Call readValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnu Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -6770,53 +10712,53 @@ private okhttp3.Call readValidatingAdmissionPolicyCall(@jakarta.annotation.Nonnu } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicy(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyStatus(Async)"); } - return readValidatingAdmissionPolicyCall(name, pretty, _callback); + return readValidatingAdmissionPolicyStatusCall(name, pretty, _callback); } - private ApiResponse readValidatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, null); + private ApiResponse readValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyValidateBeforeCall(name, pretty, _callback); + okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadValidatingAdmissionPolicyRequest { + public class APIreadValidatingAdmissionPolicyStatusRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name) { + private APIreadValidatingAdmissionPolicyStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadValidatingAdmissionPolicyRequest + * @return APIreadValidatingAdmissionPolicyStatusRequest */ - public APIreadValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readValidatingAdmissionPolicy + * Build call for readValidatingAdmissionPolicyStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6829,11 +10771,11 @@ public APIreadValidatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullab */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyCall(name, pretty, _callback); + return readValidatingAdmissionPolicyStatusCall(name, pretty, _callback); } /** - * Execute readValidatingAdmissionPolicy request + * Execute readValidatingAdmissionPolicyStatus request * @return V1ValidatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6845,12 +10787,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyWithHttpInfo(name, pretty); + ApiResponse localVarResp = readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute readValidatingAdmissionPolicy request with HTTP info returned + * Execute readValidatingAdmissionPolicyStatus request with HTTP info returned * @return ApiResponse<V1ValidatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6862,11 +10804,11 @@ public V1ValidatingAdmissionPolicy execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return readValidatingAdmissionPolicyWithHttpInfo(name, pretty); + return readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty); } /** - * Execute readValidatingAdmissionPolicy request (asynchronously) + * Execute readValidatingAdmissionPolicyStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -6879,15 +10821,15 @@ public ApiResponse executeWithHttpInfo() throws Api */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyAsync(name, pretty, _callback); + return readValidatingAdmissionPolicyStatusAsync(name, pretty, _callback); } } /** * - * read the specified ValidatingAdmissionPolicy + * read status of the specified ValidatingAdmissionPolicy * @param name name of the ValidatingAdmissionPolicy (required) - * @return APIreadValidatingAdmissionPolicyRequest + * @return APIreadValidatingAdmissionPolicyStatusRequest * @http.response.details @@ -6896,10 +10838,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyRequest readValidatingAdmissionPolicy(@jakarta.annotation.Nonnull String name) { - return new APIreadValidatingAdmissionPolicyRequest(name); + public APIreadValidatingAdmissionPolicyStatusRequest readValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name) { + return new APIreadValidatingAdmissionPolicyStatusRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6916,7 +10858,7 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(@jakarta.annotatio Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -6952,53 +10894,53 @@ private okhttp3.Call readValidatingAdmissionPolicyBindingCall(@jakarta.annotatio } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyBinding(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readValidatingWebhookConfiguration(Async)"); } - return readValidatingAdmissionPolicyBindingCall(name, pretty, _callback); + return readValidatingWebhookConfigurationCall(name, pretty, _callback); } - private ApiResponse readValidatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyBindingValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadValidatingAdmissionPolicyBindingRequest { + public class APIreadValidatingWebhookConfigurationRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nullable private String pretty; - private APIreadValidatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name) { + private APIreadValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadValidatingAdmissionPolicyBindingRequest + * @return APIreadValidatingWebhookConfigurationRequest */ - public APIreadValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readValidatingAdmissionPolicyBinding + * Build call for readValidatingWebhookConfiguration * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7011,12 +10953,12 @@ public APIreadValidatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyBindingCall(name, pretty, _callback); + return readValidatingWebhookConfigurationCall(name, pretty, _callback); } /** - * Execute readValidatingAdmissionPolicyBinding request - * @return V1ValidatingAdmissionPolicyBinding + * Execute readValidatingWebhookConfiguration request + * @return V1ValidatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7026,14 +10968,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1ValidatingAdmissionPolicyBinding execute() throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty); + public V1ValidatingWebhookConfiguration execute() throws ApiException { + ApiResponse localVarResp = readValidatingWebhookConfigurationWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute readValidatingAdmissionPolicyBinding request with HTTP info returned - * @return ApiResponse<V1ValidatingAdmissionPolicyBinding> + * Execute readValidatingWebhookConfiguration request with HTTP info returned + * @return ApiResponse<V1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7043,12 +10985,12 @@ public V1ValidatingAdmissionPolicyBinding execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readValidatingAdmissionPolicyBindingWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readValidatingWebhookConfigurationWithHttpInfo(name, pretty); } /** - * Execute readValidatingAdmissionPolicyBinding request (asynchronously) + * Execute readValidatingWebhookConfiguration request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7060,16 +11002,16 @@ public ApiResponse executeWithHttpInfo() thr 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyBindingAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readValidatingWebhookConfigurationAsync(name, pretty, _callback); } } /** * - * read the specified ValidatingAdmissionPolicyBinding - * @param name name of the ValidatingAdmissionPolicyBinding (required) - * @return APIreadValidatingAdmissionPolicyBindingRequest + * read the specified ValidatingWebhookConfiguration + * @param name name of the ValidatingWebhookConfiguration (required) + * @return APIreadValidatingWebhookConfigurationRequest * @http.response.details @@ -7078,10 +11020,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyBindingRequest readValidatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name) { - return new APIreadValidatingAdmissionPolicyBindingRequest(name); + public APIreadValidatingWebhookConfigurationRequest readValidatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { + return new APIreadValidatingWebhookConfigurationRequest(name); } - private okhttp3.Call readValidatingAdmissionPolicyStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7095,10 +11037,10 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusCall(@jakarta.annotation basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status" + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -7111,6 +11053,18 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusCall(@jakarta.annotation localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -7123,6 +11077,7 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusCall(@jakarta.annotation } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -7130,57 +11085,101 @@ private okhttp3.Call readValidatingAdmissionPolicyStatusCall(@jakarta.annotation } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingAdmissionPolicyStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readValidatingAdmissionPolicyStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceMutatingAdmissionPolicy(Async)"); } - return readValidatingAdmissionPolicyStatusCall(name, pretty, _callback); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceMutatingAdmissionPolicy(Async)"); + } + + return replaceMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse readValidatingAdmissionPolicyStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingAdmissionPolicyStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingAdmissionPolicy body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readValidatingAdmissionPolicyStatusValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadValidatingAdmissionPolicyStatusRequest { + public class APIreplaceMutatingAdmissionPolicyRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final V1MutatingAdmissionPolicy body; @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; - private APIreadValidatingAdmissionPolicyStatusRequest(@jakarta.annotation.Nonnull String name) { + private APIreplaceMutatingAdmissionPolicyRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingAdmissionPolicy body) { this.name = name; + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadValidatingAdmissionPolicyStatusRequest + * @return APIreplaceMutatingAdmissionPolicyRequest */ - public APIreadValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceMutatingAdmissionPolicyRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readValidatingAdmissionPolicyStatus + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceMutatingAdmissionPolicyRequest + */ + public APIreplaceMutatingAdmissionPolicyRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceMutatingAdmissionPolicyRequest + */ + public APIreplaceMutatingAdmissionPolicyRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceMutatingAdmissionPolicyRequest + */ + public APIreplaceMutatingAdmissionPolicyRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceMutatingAdmissionPolicy * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7189,48 +11188,51 @@ public APIreadValidatingAdmissionPolicyStatusRequest pretty(@jakarta.annotation. Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyStatusCall(name, pretty, _callback); + return replaceMutatingAdmissionPolicyCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readValidatingAdmissionPolicyStatus request - * @return V1ValidatingAdmissionPolicy + * Execute replaceMutatingAdmissionPolicy request + * @return V1MutatingAdmissionPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1ValidatingAdmissionPolicy execute() throws ApiException { - ApiResponse localVarResp = readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty); + public V1MutatingAdmissionPolicy execute() throws ApiException { + ApiResponse localVarResp = replaceMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readValidatingAdmissionPolicyStatus request with HTTP info returned - * @return ApiResponse<V1ValidatingAdmissionPolicy> + * Execute replaceMutatingAdmissionPolicy request with HTTP info returned + * @return ApiResponse<V1MutatingAdmissionPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readValidatingAdmissionPolicyStatusWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceMutatingAdmissionPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readValidatingAdmissionPolicyStatus request (asynchronously) + * Execute replaceMutatingAdmissionPolicy request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7239,31 +11241,34 @@ public ApiResponse executeWithHttpInfo() throws Api Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readValidatingAdmissionPolicyStatusAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceMutatingAdmissionPolicyAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read status of the specified ValidatingAdmissionPolicy - * @param name name of the ValidatingAdmissionPolicy (required) - * @return APIreadValidatingAdmissionPolicyStatusRequest + * replace the specified MutatingAdmissionPolicy + * @param name name of the MutatingAdmissionPolicy (required) + * @param body (required) + * @return APIreplaceMutatingAdmissionPolicyRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadValidatingAdmissionPolicyStatusRequest readValidatingAdmissionPolicyStatus(@jakarta.annotation.Nonnull String name) { - return new APIreadValidatingAdmissionPolicyStatusRequest(name); + public APIreplaceMutatingAdmissionPolicyRequest replaceMutatingAdmissionPolicy(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingAdmissionPolicy body) { + return new APIreplaceMutatingAdmissionPolicyRequest(name, body); } - private okhttp3.Call readValidatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7277,10 +11282,10 @@ private okhttp3.Call readValidatingWebhookConfigurationCall(@jakarta.annotation. basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}" + String localVarPath = "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -7293,6 +11298,18 @@ private okhttp3.Call readValidatingWebhookConfigurationCall(@jakarta.annotation. localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -7305,6 +11322,7 @@ private okhttp3.Call readValidatingWebhookConfigurationCall(@jakarta.annotation. } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -7312,57 +11330,101 @@ private okhttp3.Call readValidatingWebhookConfigurationCall(@jakarta.annotation. } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readValidatingWebhookConfigurationValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readValidatingWebhookConfiguration(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceMutatingAdmissionPolicyBinding(Async)"); } - return readValidatingWebhookConfigurationCall(name, pretty, _callback); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceMutatingAdmissionPolicyBinding(Async)"); + } + + return replaceMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse readValidatingWebhookConfigurationWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readValidatingWebhookConfigurationAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingAdmissionPolicyBinding body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceMutatingAdmissionPolicyBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadValidatingWebhookConfigurationRequest { + public class APIreplaceMutatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final V1MutatingAdmissionPolicyBinding body; @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; - private APIreadValidatingWebhookConfigurationRequest(@jakarta.annotation.Nonnull String name) { + private APIreplaceMutatingAdmissionPolicyBindingRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingAdmissionPolicyBinding body) { this.name = name; + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadValidatingWebhookConfigurationRequest + * @return APIreplaceMutatingAdmissionPolicyBindingRequest */ - public APIreadValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceMutatingAdmissionPolicyBindingRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readValidatingWebhookConfiguration + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceMutatingAdmissionPolicyBindingRequest + */ + public APIreplaceMutatingAdmissionPolicyBindingRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceMutatingAdmissionPolicyBindingRequest + */ + public APIreplaceMutatingAdmissionPolicyBindingRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceMutatingAdmissionPolicyBindingRequest + */ + public APIreplaceMutatingAdmissionPolicyBindingRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceMutatingAdmissionPolicyBinding * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7371,48 +11433,51 @@ public APIreadValidatingWebhookConfigurationRequest pretty(@jakarta.annotation.N Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readValidatingWebhookConfigurationCall(name, pretty, _callback); + return replaceMutatingAdmissionPolicyBindingCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readValidatingWebhookConfiguration request - * @return V1ValidatingWebhookConfiguration + * Execute replaceMutatingAdmissionPolicyBinding request + * @return V1MutatingAdmissionPolicyBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1ValidatingWebhookConfiguration execute() throws ApiException { - ApiResponse localVarResp = readValidatingWebhookConfigurationWithHttpInfo(name, pretty); + public V1MutatingAdmissionPolicyBinding execute() throws ApiException { + ApiResponse localVarResp = replaceMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readValidatingWebhookConfiguration request with HTTP info returned - * @return ApiResponse<V1ValidatingWebhookConfiguration> + * Execute replaceMutatingAdmissionPolicyBinding request with HTTP info returned + * @return ApiResponse<V1MutatingAdmissionPolicyBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readValidatingWebhookConfigurationWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceMutatingAdmissionPolicyBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readValidatingWebhookConfiguration request (asynchronously) + * Execute replaceMutatingAdmissionPolicyBinding request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7421,29 +11486,32 @@ public ApiResponse executeWithHttpInfo() throw Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readValidatingWebhookConfigurationAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceMutatingAdmissionPolicyBindingAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read the specified ValidatingWebhookConfiguration - * @param name name of the ValidatingWebhookConfiguration (required) - * @return APIreadValidatingWebhookConfigurationRequest + * replace the specified MutatingAdmissionPolicyBinding + * @param name name of the MutatingAdmissionPolicyBinding (required) + * @param body (required) + * @return APIreplaceMutatingAdmissionPolicyBindingRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadValidatingWebhookConfigurationRequest readValidatingWebhookConfiguration(@jakarta.annotation.Nonnull String name) { - return new APIreadValidatingWebhookConfigurationRequest(name); + public APIreplaceMutatingAdmissionPolicyBindingRequest replaceMutatingAdmissionPolicyBinding(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingAdmissionPolicyBinding body) { + return new APIreplaceMutatingAdmissionPolicyBindingRequest(name, body); } private okhttp3.Call replaceMutatingWebhookConfigurationCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1MutatingWebhookConfiguration body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java index c4ecde0420..01111f4bc8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1alpha1Api.java @@ -558,7 +558,7 @@ public okhttp3.Call executeAsync(final ApiCallback deleteCollectionMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -711,6 +715,8 @@ public class APIdeleteCollectionMutatingAdmissionPolicyRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -848,6 +854,16 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest sendInitialEvents(@jaka return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -882,7 +898,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest body(@jakarta.annotatio */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionMutatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -898,7 +914,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -915,7 +931,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -932,7 +948,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionMutatingAdmissionPolicyAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -951,7 +967,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionMutatingAdmissionPolicyRequest deleteCollectionMutatingAdmissionPolicy() { return new APIdeleteCollectionMutatingAdmissionPolicyRequest(); } - private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1028,6 +1044,10 @@ private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(@jakarta localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1056,21 +1076,21 @@ private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(@jakarta } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1104,6 +1124,8 @@ public class APIdeleteCollectionMutatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1241,6 +1263,16 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest sendInitialEvent return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1275,7 +1307,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest body(@jakarta.an */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -1291,7 +1323,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -1308,7 +1340,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -1325,7 +1357,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionMutatingAdmissionPolicyBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2060,7 +2092,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listMutatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2121,6 +2153,10 @@ private okhttp3.Call listMutatingAdmissionPolicyCall(@jakarta.annotation.Nullabl localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2155,21 +2191,21 @@ private okhttp3.Call listMutatingAdmissionPolicyCall(@jakarta.annotation.Nullabl } @SuppressWarnings("rawtypes") - private okhttp3.Call listMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2195,6 +2231,8 @@ public class APIlistMutatingAdmissionPolicyRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -2292,6 +2330,16 @@ public APIlistMutatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistMutatingAdmissionPolicyRequest + */ + public APIlistMutatingAdmissionPolicyRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2326,7 +2374,7 @@ public APIlistMutatingAdmissionPolicyRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -2342,7 +2390,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1alpha1MutatingAdmissionPolicyList execute() throws ApiException { - ApiResponse localVarResp = listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -2359,7 +2407,7 @@ public V1alpha1MutatingAdmissionPolicyList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -2376,7 +2424,7 @@ public ApiResponse executeWithHttpInfo() th */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listMutatingAdmissionPolicyAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listMutatingAdmissionPolicyAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -2395,7 +2443,7 @@ public okhttp3.Call executeAsync(final ApiCallback listMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2530,6 +2582,8 @@ public class APIlistMutatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -2627,6 +2681,16 @@ public APIlistMutatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.a return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistMutatingAdmissionPolicyBindingRequest + */ + public APIlistMutatingAdmissionPolicyBindingRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2661,7 +2725,7 @@ public APIlistMutatingAdmissionPolicyBindingRequest watch(@jakarta.annotation.Nu */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listMutatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listMutatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -2677,7 +2741,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1alpha1MutatingAdmissionPolicyBindingList execute() throws ApiException { - ApiResponse localVarResp = listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -2694,7 +2758,7 @@ public V1alpha1MutatingAdmissionPolicyBindingList execute() throws ApiException */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -2711,7 +2775,7 @@ public ApiResponse executeWithHttpIn */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listMutatingAdmissionPolicyBindingAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listMutatingAdmissionPolicyBindingAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java index 7e95fda0af..fb6ffccb51 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AdmissionregistrationV1beta1Api.java @@ -558,7 +558,7 @@ public okhttp3.Call executeAsync(final ApiCallback deleteCollectionMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -711,6 +715,8 @@ public class APIdeleteCollectionMutatingAdmissionPolicyRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -848,6 +854,16 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest sendInitialEvents(@jaka return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -882,7 +898,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyRequest body(@jakarta.annotatio */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionMutatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -898,7 +914,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -915,7 +931,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionMutatingAdmissionPolicyWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -932,7 +948,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionMutatingAdmissionPolicyAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -951,7 +967,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionMutatingAdmissionPolicyRequest deleteCollectionMutatingAdmissionPolicy() { return new APIdeleteCollectionMutatingAdmissionPolicyRequest(); } - private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1028,6 +1044,10 @@ private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(@jakarta localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1056,21 +1076,21 @@ private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingCall(@jakarta } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1104,6 +1124,8 @@ public class APIdeleteCollectionMutatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1241,6 +1263,16 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest sendInitialEvent return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionMutatingAdmissionPolicyBindingRequest + */ + public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1275,7 +1307,7 @@ public APIdeleteCollectionMutatingAdmissionPolicyBindingRequest body(@jakarta.an */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -1291,7 +1323,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -1308,7 +1340,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionMutatingAdmissionPolicyBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -1325,7 +1357,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionMutatingAdmissionPolicyBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionMutatingAdmissionPolicyBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2060,7 +2092,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listMutatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2121,6 +2153,10 @@ private okhttp3.Call listMutatingAdmissionPolicyCall(@jakarta.annotation.Nullabl localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2155,21 +2191,21 @@ private okhttp3.Call listMutatingAdmissionPolicyCall(@jakarta.annotation.Nullabl } @SuppressWarnings("rawtypes") - private okhttp3.Call listMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listMutatingAdmissionPolicyValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listMutatingAdmissionPolicyWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listMutatingAdmissionPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2195,6 +2231,8 @@ public class APIlistMutatingAdmissionPolicyRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -2292,6 +2330,16 @@ public APIlistMutatingAdmissionPolicyRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistMutatingAdmissionPolicyRequest + */ + public APIlistMutatingAdmissionPolicyRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2326,7 +2374,7 @@ public APIlistMutatingAdmissionPolicyRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listMutatingAdmissionPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -2342,7 +2390,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1MutatingAdmissionPolicyList execute() throws ApiException { - ApiResponse localVarResp = listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -2359,7 +2407,7 @@ public V1beta1MutatingAdmissionPolicyList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listMutatingAdmissionPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -2376,7 +2424,7 @@ public ApiResponse executeWithHttpInfo() thr */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listMutatingAdmissionPolicyAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listMutatingAdmissionPolicyAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -2395,7 +2443,7 @@ public okhttp3.Call executeAsync(final ApiCallback listMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listMutatingAdmissionPolicyBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listMutatingAdmissionPolicyBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listMutatingAdmissionPolicyBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2530,6 +2582,8 @@ public class APIlistMutatingAdmissionPolicyBindingRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -2627,6 +2681,16 @@ public APIlistMutatingAdmissionPolicyBindingRequest sendInitialEvents(@jakarta.a return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistMutatingAdmissionPolicyBindingRequest + */ + public APIlistMutatingAdmissionPolicyBindingRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2661,7 +2725,7 @@ public APIlistMutatingAdmissionPolicyBindingRequest watch(@jakarta.annotation.Nu */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listMutatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listMutatingAdmissionPolicyBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -2677,7 +2741,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1MutatingAdmissionPolicyBindingList execute() throws ApiException { - ApiResponse localVarResp = listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -2694,7 +2758,7 @@ public V1beta1MutatingAdmissionPolicyBindingList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listMutatingAdmissionPolicyBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -2711,7 +2775,7 @@ public ApiResponse executeWithHttpInf */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listMutatingAdmissionPolicyBindingAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listMutatingAdmissionPolicyBindingAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java index f229e99ba7..0e824d895a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiextensionsV1Api.java @@ -316,7 +316,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ public APIcreateCustomResourceDefinitionRequest createCustomResourceDefinition(@jakarta.annotation.Nonnull V1CustomResourceDefinition body) { return new APIcreateCustomResourceDefinitionRequest(body); } - private okhttp3.Call deleteCollectionCustomResourceDefinitionCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCustomResourceDefinitionCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -393,6 +393,10 @@ private okhttp3.Call deleteCollectionCustomResourceDefinitionCall(@jakarta.annot localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -421,21 +425,21 @@ private okhttp3.Call deleteCollectionCustomResourceDefinitionCall(@jakarta.annot } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionCustomResourceDefinitionValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionCustomResourceDefinitionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionCustomResourceDefinitionValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionCustomResourceDefinitionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionCustomResourceDefinitionAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCustomResourceDefinitionAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -469,6 +473,8 @@ public class APIdeleteCollectionCustomResourceDefinitionRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -606,6 +612,16 @@ public APIdeleteCollectionCustomResourceDefinitionRequest sendInitialEvents(@jak return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionCustomResourceDefinitionRequest + */ + public APIdeleteCollectionCustomResourceDefinitionRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -640,7 +656,7 @@ public APIdeleteCollectionCustomResourceDefinitionRequest body(@jakarta.annotati */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionCustomResourceDefinitionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionCustomResourceDefinitionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -656,7 +672,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -673,7 +689,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -690,7 +706,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionCustomResourceDefinitionAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionCustomResourceDefinitionAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1145,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listCustomResourceDefinitionCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCustomResourceDefinitionCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1206,6 +1222,10 @@ private okhttp3.Call listCustomResourceDefinitionCall(@jakarta.annotation.Nullab localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1240,21 +1260,21 @@ private okhttp3.Call listCustomResourceDefinitionCall(@jakarta.annotation.Nullab } @SuppressWarnings("rawtypes") - private okhttp3.Call listCustomResourceDefinitionValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listCustomResourceDefinitionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listCustomResourceDefinitionValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listCustomResourceDefinitionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listCustomResourceDefinitionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listCustomResourceDefinitionWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCustomResourceDefinitionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCustomResourceDefinitionAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCustomResourceDefinitionAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCustomResourceDefinitionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listCustomResourceDefinitionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1280,6 +1300,8 @@ public class APIlistCustomResourceDefinitionRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1377,6 +1399,16 @@ public APIlistCustomResourceDefinitionRequest sendInitialEvents(@jakarta.annotat return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistCustomResourceDefinitionRequest + */ + public APIlistCustomResourceDefinitionRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1411,7 +1443,7 @@ public APIlistCustomResourceDefinitionRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listCustomResourceDefinitionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listCustomResourceDefinitionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1427,7 +1459,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1CustomResourceDefinitionList execute() throws ApiException { - ApiResponse localVarResp = listCustomResourceDefinitionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listCustomResourceDefinitionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1444,7 +1476,7 @@ public V1CustomResourceDefinitionList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listCustomResourceDefinitionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listCustomResourceDefinitionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1461,7 +1493,7 @@ public ApiResponse executeWithHttpInfo() throws */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listCustomResourceDefinitionAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listCustomResourceDefinitionAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java index e0dd3c9dfa..0f4b74ae13 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ApiregistrationV1Api.java @@ -596,7 +596,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteAPIServiceRequest deleteAPIService(@jakarta.annotation.Nonnull String name) { return new APIdeleteAPIServiceRequest(name); } - private okhttp3.Call deleteCollectionAPIServiceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionAPIServiceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -673,6 +673,10 @@ private okhttp3.Call deleteCollectionAPIServiceCall(@jakarta.annotation.Nullable localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -701,21 +705,21 @@ private okhttp3.Call deleteCollectionAPIServiceCall(@jakarta.annotation.Nullable } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionAPIServiceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionAPIServiceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionAPIServiceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionAPIServiceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionAPIServiceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionAPIServiceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionAPIServiceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionAPIServiceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionAPIServiceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionAPIServiceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionAPIServiceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionAPIServiceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -749,6 +753,8 @@ public class APIdeleteCollectionAPIServiceRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -886,6 +892,16 @@ public APIdeleteCollectionAPIServiceRequest sendInitialEvents(@jakarta.annotatio return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionAPIServiceRequest + */ + public APIdeleteCollectionAPIServiceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -920,7 +936,7 @@ public APIdeleteCollectionAPIServiceRequest body(@jakarta.annotation.Nullable V1 */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionAPIServiceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionAPIServiceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -936,7 +952,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -953,7 +969,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -970,7 +986,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionAPIServiceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionAPIServiceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1145,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listAPIServiceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listAPIServiceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1206,6 +1222,10 @@ private okhttp3.Call listAPIServiceCall(@jakarta.annotation.Nullable String pret localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1240,21 +1260,21 @@ private okhttp3.Call listAPIServiceCall(@jakarta.annotation.Nullable String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call listAPIServiceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listAPIServiceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listAPIServiceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listAPIServiceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listAPIServiceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listAPIServiceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listAPIServiceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listAPIServiceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1280,6 +1300,8 @@ public class APIlistAPIServiceRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1377,6 +1399,16 @@ public APIlistAPIServiceRequest sendInitialEvents(@jakarta.annotation.Nullable B return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistAPIServiceRequest + */ + public APIlistAPIServiceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1411,7 +1443,7 @@ public APIlistAPIServiceRequest watch(@jakarta.annotation.Nullable Boolean watch */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listAPIServiceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listAPIServiceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1427,7 +1459,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1APIServiceList execute() throws ApiException { - ApiResponse localVarResp = listAPIServiceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listAPIServiceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1444,7 +1476,7 @@ public V1APIServiceList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listAPIServiceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listAPIServiceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1461,7 +1493,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listAPIServiceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listAPIServiceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java index 620131b7e1..9c9ca229ff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AppsV1Api.java @@ -1335,7 +1335,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr public APIcreateNamespacedStatefulSetRequest createNamespacedStatefulSet(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1StatefulSet body) { return new APIcreateNamespacedStatefulSetRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1413,6 +1413,10 @@ private okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(@jakarta.a localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1441,26 +1445,26 @@ private okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(@jakarta.a } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedControllerRevisionValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedControllerRevisionValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedControllerRevision(Async)"); } - return deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedControllerRevisionWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedControllerRevisionWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedControllerRevisionAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedControllerRevisionAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1496,6 +1500,8 @@ public class APIdeleteCollectionNamespacedControllerRevisionRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1634,6 +1640,16 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest sendInitialEvents( return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedControllerRevisionRequest + */ + public APIdeleteCollectionNamespacedControllerRevisionRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1668,7 +1684,7 @@ public APIdeleteCollectionNamespacedControllerRevisionRequest body(@jakarta.anno */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -1684,7 +1700,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -1701,7 +1717,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -1718,7 +1734,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedControllerRevisionAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedControllerRevisionAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1738,7 +1754,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedControllerRevisionRequest deleteCollectionNamespacedControllerRevision(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedControllerRevisionRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedDaemonSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDaemonSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1816,6 +1832,10 @@ private okhttp3.Call deleteCollectionNamespacedDaemonSetCall(@jakarta.annotation localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1844,26 +1864,26 @@ private okhttp3.Call deleteCollectionNamespacedDaemonSetCall(@jakarta.annotation } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDaemonSet(Async)"); } - return deleteCollectionNamespacedDaemonSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedDaemonSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedDaemonSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDaemonSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1899,6 +1919,8 @@ public class APIdeleteCollectionNamespacedDaemonSetRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -2037,6 +2059,16 @@ public APIdeleteCollectionNamespacedDaemonSetRequest sendInitialEvents(@jakarta. return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedDaemonSetRequest + */ + public APIdeleteCollectionNamespacedDaemonSetRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2071,7 +2103,7 @@ public APIdeleteCollectionNamespacedDaemonSetRequest body(@jakarta.annotation.Nu */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedDaemonSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedDaemonSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -2087,7 +2119,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -2104,7 +2136,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -2121,7 +2153,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedDaemonSetAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedDaemonSetAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2141,7 +2173,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedDaemonSetRequest deleteCollectionNamespacedDaemonSet(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedDaemonSetRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedDeploymentCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDeploymentCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2219,6 +2251,10 @@ private okhttp3.Call deleteCollectionNamespacedDeploymentCall(@jakarta.annotatio localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2247,26 +2283,26 @@ private okhttp3.Call deleteCollectionNamespacedDeploymentCall(@jakarta.annotatio } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDeployment(Async)"); } - return deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedDeploymentAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDeploymentAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2302,6 +2338,8 @@ public class APIdeleteCollectionNamespacedDeploymentRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -2440,6 +2478,16 @@ public APIdeleteCollectionNamespacedDeploymentRequest sendInitialEvents(@jakarta return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedDeploymentRequest + */ + public APIdeleteCollectionNamespacedDeploymentRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2474,7 +2522,7 @@ public APIdeleteCollectionNamespacedDeploymentRequest body(@jakarta.annotation.N */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -2490,7 +2538,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -2507,7 +2555,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -2524,7 +2572,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedDeploymentAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedDeploymentAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2544,7 +2592,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedDeploymentRequest deleteCollectionNamespacedDeployment(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedDeploymentRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedReplicaSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicaSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2622,6 +2670,10 @@ private okhttp3.Call deleteCollectionNamespacedReplicaSetCall(@jakarta.annotatio localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2650,26 +2702,26 @@ private okhttp3.Call deleteCollectionNamespacedReplicaSetCall(@jakarta.annotatio } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedReplicaSet(Async)"); } - return deleteCollectionNamespacedReplicaSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedReplicaSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedReplicaSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicaSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2705,6 +2757,8 @@ public class APIdeleteCollectionNamespacedReplicaSetRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -2843,6 +2897,16 @@ public APIdeleteCollectionNamespacedReplicaSetRequest sendInitialEvents(@jakarta return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedReplicaSetRequest + */ + public APIdeleteCollectionNamespacedReplicaSetRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2877,7 +2941,7 @@ public APIdeleteCollectionNamespacedReplicaSetRequest body(@jakarta.annotation.N */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedReplicaSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedReplicaSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -2893,7 +2957,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -2910,7 +2974,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -2927,7 +2991,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedReplicaSetAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedReplicaSetAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2947,7 +3011,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedReplicaSetRequest deleteCollectionNamespacedReplicaSet(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedReplicaSetRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedStatefulSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedStatefulSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3025,6 +3089,10 @@ private okhttp3.Call deleteCollectionNamespacedStatefulSetCall(@jakarta.annotati localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -3053,26 +3121,26 @@ private okhttp3.Call deleteCollectionNamespacedStatefulSetCall(@jakarta.annotati } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedStatefulSet(Async)"); } - return deleteCollectionNamespacedStatefulSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedStatefulSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedStatefulSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedStatefulSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -3108,6 +3176,8 @@ public class APIdeleteCollectionNamespacedStatefulSetRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -3246,6 +3316,16 @@ public APIdeleteCollectionNamespacedStatefulSetRequest sendInitialEvents(@jakart return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedStatefulSetRequest + */ + public APIdeleteCollectionNamespacedStatefulSetRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -3280,7 +3360,7 @@ public APIdeleteCollectionNamespacedStatefulSetRequest body(@jakarta.annotation. */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedStatefulSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedStatefulSetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -3296,7 +3376,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -3313,7 +3393,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -3330,7 +3410,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedStatefulSetAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedStatefulSetAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -4956,7 +5036,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listControllerRevisionForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listControllerRevisionForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5017,6 +5097,10 @@ private okhttp3.Call listControllerRevisionForAllNamespacesCall(@jakarta.annotat localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5051,21 +5135,21 @@ private okhttp3.Call listControllerRevisionForAllNamespacesCall(@jakarta.annotat } @SuppressWarnings("rawtypes") - private okhttp3.Call listControllerRevisionForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listControllerRevisionForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listControllerRevisionForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listControllerRevisionForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listControllerRevisionForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listControllerRevisionForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listControllerRevisionForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listControllerRevisionForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5091,6 +5175,8 @@ public class APIlistControllerRevisionForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5188,6 +5274,16 @@ public APIlistControllerRevisionForAllNamespacesRequest sendInitialEvents(@jakar return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistControllerRevisionForAllNamespacesRequest + */ + public APIlistControllerRevisionForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -5222,7 +5318,7 @@ public APIlistControllerRevisionForAllNamespacesRequest watch(@jakarta.annotatio */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listControllerRevisionForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listControllerRevisionForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -5238,7 +5334,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ControllerRevisionList execute() throws ApiException { - ApiResponse localVarResp = listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -5255,7 +5351,7 @@ public V1ControllerRevisionList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -5272,7 +5368,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExc */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listControllerRevisionForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listControllerRevisionForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -5291,7 +5387,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca public APIlistControllerRevisionForAllNamespacesRequest listControllerRevisionForAllNamespaces() { return new APIlistControllerRevisionForAllNamespacesRequest(); } - private okhttp3.Call listDaemonSetForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDaemonSetForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5352,6 +5448,10 @@ private okhttp3.Call listDaemonSetForAllNamespacesCall(@jakarta.annotation.Nulla localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5386,21 +5486,21 @@ private okhttp3.Call listDaemonSetForAllNamespacesCall(@jakarta.annotation.Nulla } @SuppressWarnings("rawtypes") - private okhttp3.Call listDaemonSetForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listDaemonSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listDaemonSetForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listDaemonSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listDaemonSetForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listDaemonSetForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listDaemonSetForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDaemonSetForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5426,6 +5526,8 @@ public class APIlistDaemonSetForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5523,6 +5625,16 @@ public APIlistDaemonSetForAllNamespacesRequest sendInitialEvents(@jakarta.annota return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistDaemonSetForAllNamespacesRequest + */ + public APIlistDaemonSetForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -5557,7 +5669,7 @@ public APIlistDaemonSetForAllNamespacesRequest watch(@jakarta.annotation.Nullabl */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listDaemonSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listDaemonSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -5573,7 +5685,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1DaemonSetList execute() throws ApiException { - ApiResponse localVarResp = listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -5590,7 +5702,7 @@ public V1DaemonSetList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -5607,7 +5719,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listDaemonSetForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listDaemonSetForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -5626,7 +5738,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistDaemonSetForAllNamespacesRequest listDaemonSetForAllNamespaces() { return new APIlistDaemonSetForAllNamespacesRequest(); } - private okhttp3.Call listDeploymentForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeploymentForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5687,6 +5799,10 @@ private okhttp3.Call listDeploymentForAllNamespacesCall(@jakarta.annotation.Null localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5721,21 +5837,21 @@ private okhttp3.Call listDeploymentForAllNamespacesCall(@jakarta.annotation.Null } @SuppressWarnings("rawtypes") - private okhttp3.Call listDeploymentForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listDeploymentForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listDeploymentForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listDeploymentForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listDeploymentForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listDeploymentForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listDeploymentForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeploymentForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5761,6 +5877,8 @@ public class APIlistDeploymentForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5858,6 +5976,16 @@ public APIlistDeploymentForAllNamespacesRequest sendInitialEvents(@jakarta.annot return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistDeploymentForAllNamespacesRequest + */ + public APIlistDeploymentForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -5892,7 +6020,7 @@ public APIlistDeploymentForAllNamespacesRequest watch(@jakarta.annotation.Nullab */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listDeploymentForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listDeploymentForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -5908,7 +6036,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1DeploymentList execute() throws ApiException { - ApiResponse localVarResp = listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -5925,7 +6053,7 @@ public V1DeploymentList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -5942,7 +6070,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listDeploymentForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listDeploymentForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -5961,7 +6089,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistDeploymentForAllNamespacesRequest listDeploymentForAllNamespaces() { return new APIlistDeploymentForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedControllerRevisionCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedControllerRevisionCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6023,6 +6151,10 @@ private okhttp3.Call listNamespacedControllerRevisionCall(@jakarta.annotation.No localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -6057,26 +6189,26 @@ private okhttp3.Call listNamespacedControllerRevisionCall(@jakarta.annotation.No } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedControllerRevisionValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedControllerRevisionValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedControllerRevision(Async)"); } - return listNamespacedControllerRevisionCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedControllerRevisionCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedControllerRevisionWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedControllerRevisionWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedControllerRevisionAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedControllerRevisionAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -6104,6 +6236,8 @@ public class APIlistNamespacedControllerRevisionRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -6202,6 +6336,16 @@ public APIlistNamespacedControllerRevisionRequest sendInitialEvents(@jakarta.ann return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedControllerRevisionRequest + */ + public APIlistNamespacedControllerRevisionRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -6236,7 +6380,7 @@ public APIlistNamespacedControllerRevisionRequest watch(@jakarta.annotation.Null */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedControllerRevisionCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedControllerRevisionCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -6252,7 +6396,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ControllerRevisionList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -6269,7 +6413,7 @@ public V1ControllerRevisionList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -6286,7 +6430,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExc */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedControllerRevisionAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedControllerRevisionAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -6306,7 +6450,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca public APIlistNamespacedControllerRevisionRequest listNamespacedControllerRevision(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedControllerRevisionRequest(namespace); } - private okhttp3.Call listNamespacedDaemonSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedDaemonSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6368,6 +6512,10 @@ private okhttp3.Call listNamespacedDaemonSetCall(@jakarta.annotation.Nonnull Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -6402,26 +6550,26 @@ private okhttp3.Call listNamespacedDaemonSetCall(@jakarta.annotation.Nonnull Str } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedDaemonSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedDaemonSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedDaemonSet(Async)"); } - return listNamespacedDaemonSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedDaemonSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedDaemonSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedDaemonSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedDaemonSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedDaemonSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -6449,6 +6597,8 @@ public class APIlistNamespacedDaemonSetRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -6547,6 +6697,16 @@ public APIlistNamespacedDaemonSetRequest sendInitialEvents(@jakarta.annotation.N return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedDaemonSetRequest + */ + public APIlistNamespacedDaemonSetRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -6581,7 +6741,7 @@ public APIlistNamespacedDaemonSetRequest watch(@jakarta.annotation.Nullable Bool */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedDaemonSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedDaemonSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -6597,7 +6757,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1DaemonSetList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -6614,7 +6774,7 @@ public V1DaemonSetList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -6631,7 +6791,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedDaemonSetAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedDaemonSetAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -6651,7 +6811,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistNamespacedDaemonSetRequest listNamespacedDaemonSet(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedDaemonSetRequest(namespace); } - private okhttp3.Call listNamespacedDeploymentCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedDeploymentCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6713,6 +6873,10 @@ private okhttp3.Call listNamespacedDeploymentCall(@jakarta.annotation.Nonnull St localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -6747,26 +6911,26 @@ private okhttp3.Call listNamespacedDeploymentCall(@jakarta.annotation.Nonnull St } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedDeploymentValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedDeploymentValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedDeployment(Async)"); } - return listNamespacedDeploymentCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedDeploymentCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedDeploymentWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedDeploymentWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedDeploymentAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedDeploymentAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -6794,6 +6958,8 @@ public class APIlistNamespacedDeploymentRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -6892,6 +7058,16 @@ public APIlistNamespacedDeploymentRequest sendInitialEvents(@jakarta.annotation. return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedDeploymentRequest + */ + public APIlistNamespacedDeploymentRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -6926,7 +7102,7 @@ public APIlistNamespacedDeploymentRequest watch(@jakarta.annotation.Nullable Boo */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedDeploymentCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedDeploymentCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -6942,7 +7118,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1DeploymentList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -6959,7 +7135,7 @@ public V1DeploymentList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -6976,7 +7152,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedDeploymentAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedDeploymentAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -6996,7 +7172,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistNamespacedDeploymentRequest listNamespacedDeployment(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedDeploymentRequest(namespace); } - private okhttp3.Call listNamespacedReplicaSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedReplicaSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7058,6 +7234,10 @@ private okhttp3.Call listNamespacedReplicaSetCall(@jakarta.annotation.Nonnull St localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -7092,26 +7272,26 @@ private okhttp3.Call listNamespacedReplicaSetCall(@jakarta.annotation.Nonnull St } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedReplicaSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedReplicaSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedReplicaSet(Async)"); } - return listNamespacedReplicaSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedReplicaSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedReplicaSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedReplicaSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedReplicaSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedReplicaSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -7139,6 +7319,8 @@ public class APIlistNamespacedReplicaSetRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -7237,6 +7419,16 @@ public APIlistNamespacedReplicaSetRequest sendInitialEvents(@jakarta.annotation. return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedReplicaSetRequest + */ + public APIlistNamespacedReplicaSetRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -7271,7 +7463,7 @@ public APIlistNamespacedReplicaSetRequest watch(@jakarta.annotation.Nullable Boo */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedReplicaSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedReplicaSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -7287,7 +7479,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ReplicaSetList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -7304,7 +7496,7 @@ public V1ReplicaSetList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -7321,7 +7513,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedReplicaSetAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedReplicaSetAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -7341,7 +7533,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistNamespacedReplicaSetRequest listNamespacedReplicaSet(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedReplicaSetRequest(namespace); } - private okhttp3.Call listNamespacedStatefulSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedStatefulSetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7403,6 +7595,10 @@ private okhttp3.Call listNamespacedStatefulSetCall(@jakarta.annotation.Nonnull S localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -7437,26 +7633,26 @@ private okhttp3.Call listNamespacedStatefulSetCall(@jakarta.annotation.Nonnull S } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedStatefulSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedStatefulSetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedStatefulSet(Async)"); } - return listNamespacedStatefulSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedStatefulSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedStatefulSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedStatefulSetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedStatefulSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedStatefulSetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -7484,6 +7680,8 @@ public class APIlistNamespacedStatefulSetRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -7582,6 +7780,16 @@ public APIlistNamespacedStatefulSetRequest sendInitialEvents(@jakarta.annotation return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedStatefulSetRequest + */ + public APIlistNamespacedStatefulSetRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -7616,7 +7824,7 @@ public APIlistNamespacedStatefulSetRequest watch(@jakarta.annotation.Nullable Bo */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedStatefulSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedStatefulSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -7632,7 +7840,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1StatefulSetList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -7649,7 +7857,7 @@ public V1StatefulSetList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -7666,7 +7874,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedStatefulSetAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedStatefulSetAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -7686,7 +7894,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistNamespacedStatefulSetRequest listNamespacedStatefulSet(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedStatefulSetRequest(namespace); } - private okhttp3.Call listReplicaSetForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listReplicaSetForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7747,6 +7955,10 @@ private okhttp3.Call listReplicaSetForAllNamespacesCall(@jakarta.annotation.Null localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -7781,21 +7993,21 @@ private okhttp3.Call listReplicaSetForAllNamespacesCall(@jakarta.annotation.Null } @SuppressWarnings("rawtypes") - private okhttp3.Call listReplicaSetForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listReplicaSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listReplicaSetForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listReplicaSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listReplicaSetForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listReplicaSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listReplicaSetForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listReplicaSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listReplicaSetForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listReplicaSetForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listReplicaSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listReplicaSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -7821,6 +8033,8 @@ public class APIlistReplicaSetForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -7918,6 +8132,16 @@ public APIlistReplicaSetForAllNamespacesRequest sendInitialEvents(@jakarta.annot return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistReplicaSetForAllNamespacesRequest + */ + public APIlistReplicaSetForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -7952,7 +8176,7 @@ public APIlistReplicaSetForAllNamespacesRequest watch(@jakarta.annotation.Nullab */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listReplicaSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listReplicaSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -7968,7 +8192,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ReplicaSetList execute() throws ApiException { - ApiResponse localVarResp = listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -7985,7 +8209,7 @@ public V1ReplicaSetList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -8002,7 +8226,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listReplicaSetForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listReplicaSetForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -8021,7 +8245,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistReplicaSetForAllNamespacesRequest listReplicaSetForAllNamespaces() { return new APIlistReplicaSetForAllNamespacesRequest(); } - private okhttp3.Call listStatefulSetForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStatefulSetForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8082,6 +8306,10 @@ private okhttp3.Call listStatefulSetForAllNamespacesCall(@jakarta.annotation.Nul localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -8116,21 +8344,21 @@ private okhttp3.Call listStatefulSetForAllNamespacesCall(@jakarta.annotation.Nul } @SuppressWarnings("rawtypes") - private okhttp3.Call listStatefulSetForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listStatefulSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listStatefulSetForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listStatefulSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listStatefulSetForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listStatefulSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listStatefulSetForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listStatefulSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listStatefulSetForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStatefulSetForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listStatefulSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listStatefulSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -8156,6 +8384,8 @@ public class APIlistStatefulSetForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -8253,6 +8483,16 @@ public APIlistStatefulSetForAllNamespacesRequest sendInitialEvents(@jakarta.anno return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistStatefulSetForAllNamespacesRequest + */ + public APIlistStatefulSetForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -8287,7 +8527,7 @@ public APIlistStatefulSetForAllNamespacesRequest watch(@jakarta.annotation.Nulla */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listStatefulSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listStatefulSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -8303,7 +8543,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1StatefulSetList execute() throws ApiException { - ApiResponse localVarResp = listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -8320,7 +8560,7 @@ public V1StatefulSetList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -8337,7 +8577,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listStatefulSetForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listStatefulSetForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java index 115a2c2ce5..846466fd0a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV1Api.java @@ -326,7 +326,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c public APIcreateNamespacedHorizontalPodAutoscalerRequest createNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1HorizontalPodAutoscaler body) { return new APIcreateNamespacedHorizontalPodAutoscalerRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -404,6 +404,10 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(@jaka localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -432,26 +436,26 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(@jaka } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedHorizontalPodAutoscaler(Async)"); } - return deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -487,6 +491,8 @@ public class APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -625,6 +631,16 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest sendInitialEv return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest + */ + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -659,7 +675,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest body(@jakarta */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -675,7 +691,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -692,7 +708,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -709,7 +725,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedHorizontalPodAutoscalerAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedHorizontalPodAutoscalerAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1175,7 +1191,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1236,6 +1252,10 @@ private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(@jakarta.an localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1270,21 +1290,21 @@ private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(@jakarta.an } @SuppressWarnings("rawtypes") - private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1310,6 +1330,8 @@ public class APIlistHorizontalPodAutoscalerForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1407,6 +1429,16 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest sendInitialEvents(@ return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest + */ + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1441,7 +1473,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest watch(@jakarta.anno */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1457,7 +1489,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1HorizontalPodAutoscalerList execute() throws ApiException { - ApiResponse localVarResp = listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1474,7 +1506,7 @@ public V1HorizontalPodAutoscalerList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1491,7 +1523,7 @@ public ApiResponse executeWithHttpInfo() throws A */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listHorizontalPodAutoscalerForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listHorizontalPodAutoscalerForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -1510,7 +1542,7 @@ public okhttp3.Call executeAsync(final ApiCallback listNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1653,6 +1689,8 @@ public class APIlistNamespacedHorizontalPodAutoscalerRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1751,6 +1789,16 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest sendInitialEvents(@jakart return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedHorizontalPodAutoscalerRequest + */ + public APIlistNamespacedHorizontalPodAutoscalerRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1785,7 +1833,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest watch(@jakarta.annotation */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedHorizontalPodAutoscalerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedHorizontalPodAutoscalerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1801,7 +1849,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1HorizontalPodAutoscalerList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1818,7 +1866,7 @@ public V1HorizontalPodAutoscalerList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1835,7 +1883,7 @@ public ApiResponse executeWithHttpInfo() throws A */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedHorizontalPodAutoscalerAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedHorizontalPodAutoscalerAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java index 7dddf01f69..32f0c9dd13 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/AutoscalingV2Api.java @@ -326,7 +326,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c public APIcreateNamespacedHorizontalPodAutoscalerRequest createNamespacedHorizontalPodAutoscaler(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V2HorizontalPodAutoscaler body) { return new APIcreateNamespacedHorizontalPodAutoscalerRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -404,6 +404,10 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(@jaka localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -432,26 +436,26 @@ private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(@jaka } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedHorizontalPodAutoscaler(Async)"); } - return deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -487,6 +491,8 @@ public class APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -625,6 +631,16 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest sendInitialEv return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest + */ + public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -659,7 +675,7 @@ public APIdeleteCollectionNamespacedHorizontalPodAutoscalerRequest body(@jakarta */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -675,7 +691,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -692,7 +708,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -709,7 +725,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedHorizontalPodAutoscalerAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedHorizontalPodAutoscalerAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1175,7 +1191,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1236,6 +1252,10 @@ private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(@jakarta.an localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1270,21 +1290,21 @@ private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(@jakarta.an } @SuppressWarnings("rawtypes") - private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1310,6 +1330,8 @@ public class APIlistHorizontalPodAutoscalerForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1407,6 +1429,16 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest sendInitialEvents(@ return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistHorizontalPodAutoscalerForAllNamespacesRequest + */ + public APIlistHorizontalPodAutoscalerForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1441,7 +1473,7 @@ public APIlistHorizontalPodAutoscalerForAllNamespacesRequest watch(@jakarta.anno */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1457,7 +1489,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V2HorizontalPodAutoscalerList execute() throws ApiException { - ApiResponse localVarResp = listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1474,7 +1506,7 @@ public V2HorizontalPodAutoscalerList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1491,7 +1523,7 @@ public ApiResponse executeWithHttpInfo() throws A */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listHorizontalPodAutoscalerForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listHorizontalPodAutoscalerForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -1510,7 +1542,7 @@ public okhttp3.Call executeAsync(final ApiCallback listNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedHorizontalPodAutoscalerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1653,6 +1689,8 @@ public class APIlistNamespacedHorizontalPodAutoscalerRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1751,6 +1789,16 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest sendInitialEvents(@jakart return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedHorizontalPodAutoscalerRequest + */ + public APIlistNamespacedHorizontalPodAutoscalerRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1785,7 +1833,7 @@ public APIlistNamespacedHorizontalPodAutoscalerRequest watch(@jakarta.annotation */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedHorizontalPodAutoscalerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedHorizontalPodAutoscalerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1801,7 +1849,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V2HorizontalPodAutoscalerList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1818,7 +1866,7 @@ public V2HorizontalPodAutoscalerList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1835,7 +1883,7 @@ public ApiResponse executeWithHttpInfo() throws A */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedHorizontalPodAutoscalerAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedHorizontalPodAutoscalerAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java index 3c6466d8d0..206251036a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/BatchV1Api.java @@ -578,7 +578,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiE public APIcreateNamespacedJobRequest createNamespacedJob(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Job body) { return new APIcreateNamespacedJobRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedCronJobCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCronJobCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -656,6 +656,10 @@ private okhttp3.Call deleteCollectionNamespacedCronJobCall(@jakarta.annotation.N localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -684,26 +688,26 @@ private okhttp3.Call deleteCollectionNamespacedCronJobCall(@jakarta.annotation.N } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedCronJobValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCronJobValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedCronJob(Async)"); } - return deleteCollectionNamespacedCronJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedCronJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedCronJobWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedCronJobWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedCronJobAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCronJobAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -739,6 +743,8 @@ public class APIdeleteCollectionNamespacedCronJobRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -877,6 +883,16 @@ public APIdeleteCollectionNamespacedCronJobRequest sendInitialEvents(@jakarta.an return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedCronJobRequest + */ + public APIdeleteCollectionNamespacedCronJobRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -911,7 +927,7 @@ public APIdeleteCollectionNamespacedCronJobRequest body(@jakarta.annotation.Null */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedCronJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedCronJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -927,7 +943,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -944,7 +960,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -961,7 +977,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedCronJobAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedCronJobAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -981,7 +997,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedCronJobRequest deleteCollectionNamespacedCronJob(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedCronJobRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedJobCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedJobCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1059,6 +1075,10 @@ private okhttp3.Call deleteCollectionNamespacedJobCall(@jakarta.annotation.Nonnu localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1087,26 +1107,26 @@ private okhttp3.Call deleteCollectionNamespacedJobCall(@jakarta.annotation.Nonnu } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedJobValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedJobValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedJob(Async)"); } - return deleteCollectionNamespacedJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedJobWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedJobWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedJobAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedJobAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedJobValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1142,6 +1162,8 @@ public class APIdeleteCollectionNamespacedJobRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1280,6 +1302,16 @@ public APIdeleteCollectionNamespacedJobRequest sendInitialEvents(@jakarta.annota return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedJobRequest + */ + public APIdeleteCollectionNamespacedJobRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1314,7 +1346,7 @@ public APIdeleteCollectionNamespacedJobRequest body(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedJobCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -1330,7 +1362,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -1347,7 +1379,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedJobWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -1364,7 +1396,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedJobAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedJobAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2120,7 +2152,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listCronJobForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCronJobForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2181,6 +2213,10 @@ private okhttp3.Call listCronJobForAllNamespacesCall(@jakarta.annotation.Nullabl localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2215,21 +2251,21 @@ private okhttp3.Call listCronJobForAllNamespacesCall(@jakarta.annotation.Nullabl } @SuppressWarnings("rawtypes") - private okhttp3.Call listCronJobForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listCronJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listCronJobForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listCronJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listCronJobForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listCronJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listCronJobForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCronJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCronJobForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCronJobForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCronJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listCronJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2255,6 +2291,8 @@ public class APIlistCronJobForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -2352,6 +2390,16 @@ public APIlistCronJobForAllNamespacesRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistCronJobForAllNamespacesRequest + */ + public APIlistCronJobForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2386,7 +2434,7 @@ public APIlistCronJobForAllNamespacesRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listCronJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listCronJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -2402,7 +2450,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1CronJobList execute() throws ApiException { - ApiResponse localVarResp = listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -2419,7 +2467,7 @@ public V1CronJobList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -2436,7 +2484,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listCronJobForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listCronJobForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -2455,7 +2503,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr public APIlistCronJobForAllNamespacesRequest listCronJobForAllNamespaces() { return new APIlistCronJobForAllNamespacesRequest(); } - private okhttp3.Call listJobForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listJobForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2516,6 +2564,10 @@ private okhttp3.Call listJobForAllNamespacesCall(@jakarta.annotation.Nullable Bo localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2550,21 +2602,21 @@ private okhttp3.Call listJobForAllNamespacesCall(@jakarta.annotation.Nullable Bo } @SuppressWarnings("rawtypes") - private okhttp3.Call listJobForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listJobForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listJobForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listJobForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listJobForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listJobForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2590,6 +2642,8 @@ public class APIlistJobForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -2687,6 +2741,16 @@ public APIlistJobForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.N return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistJobForAllNamespacesRequest + */ + public APIlistJobForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2721,7 +2785,7 @@ public APIlistJobForAllNamespacesRequest watch(@jakarta.annotation.Nullable Bool */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -2737,7 +2801,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1JobList execute() throws ApiException { - ApiResponse localVarResp = listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -2754,7 +2818,7 @@ public V1JobList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -2771,7 +2835,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listJobForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listJobForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -2790,7 +2854,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws public APIlistJobForAllNamespacesRequest listJobForAllNamespaces() { return new APIlistJobForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedCronJobCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCronJobCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2852,6 +2916,10 @@ private okhttp3.Call listNamespacedCronJobCall(@jakarta.annotation.Nonnull Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2886,26 +2954,26 @@ private okhttp3.Call listNamespacedCronJobCall(@jakarta.annotation.Nonnull Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedCronJobValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCronJobValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedCronJob(Async)"); } - return listNamespacedCronJobCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedCronJobCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedCronJobWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedCronJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedCronJobWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedCronJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedCronJobAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCronJobAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedCronJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedCronJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2933,6 +3001,8 @@ public class APIlistNamespacedCronJobRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -3031,6 +3101,16 @@ public APIlistNamespacedCronJobRequest sendInitialEvents(@jakarta.annotation.Nul return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedCronJobRequest + */ + public APIlistNamespacedCronJobRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -3065,7 +3145,7 @@ public APIlistNamespacedCronJobRequest watch(@jakarta.annotation.Nullable Boolea */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedCronJobCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedCronJobCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -3081,7 +3161,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1CronJobList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -3098,7 +3178,7 @@ public V1CronJobList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -3115,7 +3195,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedCronJobAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedCronJobAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -3135,7 +3215,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr public APIlistNamespacedCronJobRequest listNamespacedCronJob(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedCronJobRequest(namespace); } - private okhttp3.Call listNamespacedJobCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedJobCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3197,6 +3277,10 @@ private okhttp3.Call listNamespacedJobCall(@jakarta.annotation.Nonnull String na localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -3231,26 +3315,26 @@ private okhttp3.Call listNamespacedJobCall(@jakarta.annotation.Nonnull String na } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedJobValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedJobValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedJob(Async)"); } - return listNamespacedJobCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedJobCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedJobWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedJobWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedJobAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedJobAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -3278,6 +3362,8 @@ public class APIlistNamespacedJobRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -3376,6 +3462,16 @@ public APIlistNamespacedJobRequest sendInitialEvents(@jakarta.annotation.Nullabl return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedJobRequest + */ + public APIlistNamespacedJobRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -3410,7 +3506,7 @@ public APIlistNamespacedJobRequest watch(@jakarta.annotation.Nullable Boolean wa */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedJobCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedJobCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -3426,7 +3522,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1JobList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -3443,7 +3539,7 @@ public V1JobList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -3460,7 +3556,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedJobAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedJobAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java index bf55fceef5..f71457bf73 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1Api.java @@ -596,7 +596,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCertificateSigningRequestRequest deleteCertificateSigningRequest(@jakarta.annotation.Nonnull String name) { return new APIdeleteCertificateSigningRequestRequest(name); } - private okhttp3.Call deleteCollectionCertificateSigningRequestCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCertificateSigningRequestCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -673,6 +673,10 @@ private okhttp3.Call deleteCollectionCertificateSigningRequestCall(@jakarta.anno localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -701,21 +705,21 @@ private okhttp3.Call deleteCollectionCertificateSigningRequestCall(@jakarta.anno } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionCertificateSigningRequestValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionCertificateSigningRequestCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionCertificateSigningRequestValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionCertificateSigningRequestCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionCertificateSigningRequestWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionCertificateSigningRequestWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionCertificateSigningRequestAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCertificateSigningRequestAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -749,6 +753,8 @@ public class APIdeleteCollectionCertificateSigningRequestRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -886,6 +892,16 @@ public APIdeleteCollectionCertificateSigningRequestRequest sendInitialEvents(@ja return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionCertificateSigningRequestRequest + */ + public APIdeleteCollectionCertificateSigningRequestRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -920,7 +936,7 @@ public APIdeleteCollectionCertificateSigningRequestRequest body(@jakarta.annotat */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionCertificateSigningRequestCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionCertificateSigningRequestCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -936,7 +952,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -953,7 +969,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -970,7 +986,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionCertificateSigningRequestAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionCertificateSigningRequestAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1145,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listCertificateSigningRequestCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCertificateSigningRequestCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1206,6 +1222,10 @@ private okhttp3.Call listCertificateSigningRequestCall(@jakarta.annotation.Nulla localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1240,21 +1260,21 @@ private okhttp3.Call listCertificateSigningRequestCall(@jakarta.annotation.Nulla } @SuppressWarnings("rawtypes") - private okhttp3.Call listCertificateSigningRequestValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listCertificateSigningRequestCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listCertificateSigningRequestValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listCertificateSigningRequestCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listCertificateSigningRequestWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listCertificateSigningRequestValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listCertificateSigningRequestWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCertificateSigningRequestValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCertificateSigningRequestAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCertificateSigningRequestAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCertificateSigningRequestValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listCertificateSigningRequestValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1280,6 +1300,8 @@ public class APIlistCertificateSigningRequestRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1377,6 +1399,16 @@ public APIlistCertificateSigningRequestRequest sendInitialEvents(@jakarta.annota return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistCertificateSigningRequestRequest + */ + public APIlistCertificateSigningRequestRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1411,7 +1443,7 @@ public APIlistCertificateSigningRequestRequest watch(@jakarta.annotation.Nullabl */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listCertificateSigningRequestCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listCertificateSigningRequestCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1427,7 +1459,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1CertificateSigningRequestList execute() throws ApiException { - ApiResponse localVarResp = listCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1444,7 +1476,7 @@ public V1CertificateSigningRequestList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1461,7 +1493,7 @@ public ApiResponse executeWithHttpInfo() throws */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listCertificateSigningRequestAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listCertificateSigningRequestAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java index ceec974ea2..c222dea0b2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1alpha1Api.java @@ -596,7 +596,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteClusterTrustBundleRequest deleteClusterTrustBundle(@jakarta.annotation.Nonnull String name) { return new APIdeleteClusterTrustBundleRequest(name); } - private okhttp3.Call deleteCollectionClusterTrustBundleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterTrustBundleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -673,6 +673,10 @@ private okhttp3.Call deleteCollectionClusterTrustBundleCall(@jakarta.annotation. localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -701,21 +705,21 @@ private okhttp3.Call deleteCollectionClusterTrustBundleCall(@jakarta.annotation. } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionClusterTrustBundleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterTrustBundleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -749,6 +753,8 @@ public class APIdeleteCollectionClusterTrustBundleRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -886,6 +892,16 @@ public APIdeleteCollectionClusterTrustBundleRequest sendInitialEvents(@jakarta.a return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -920,7 +936,7 @@ public APIdeleteCollectionClusterTrustBundleRequest body(@jakarta.annotation.Nul */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -936,7 +952,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -953,7 +969,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -970,7 +986,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionClusterTrustBundleAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionClusterTrustBundleAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1145,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1206,6 +1222,10 @@ private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1240,21 +1260,21 @@ private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable Str } @SuppressWarnings("rawtypes") - private okhttp3.Call listClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listClusterTrustBundleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterTrustBundleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1280,6 +1300,8 @@ public class APIlistClusterTrustBundleRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1377,6 +1399,16 @@ public APIlistClusterTrustBundleRequest sendInitialEvents(@jakarta.annotation.Nu return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1411,7 +1443,7 @@ public APIlistClusterTrustBundleRequest watch(@jakarta.annotation.Nullable Boole */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1427,7 +1459,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1alpha1ClusterTrustBundleList execute() throws ApiException { - ApiResponse localVarResp = listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1444,7 +1476,7 @@ public V1alpha1ClusterTrustBundleList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1461,7 +1493,7 @@ public ApiResponse executeWithHttpInfo() throws */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listClusterTrustBundleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listClusterTrustBundleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java index 2cda3158e1..9c0986b817 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CertificatesV1beta1Api.java @@ -848,7 +848,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteClusterTrustBundleRequest deleteClusterTrustBundle(@jakarta.annotation.Nonnull String name) { return new APIdeleteClusterTrustBundleRequest(name); } - private okhttp3.Call deleteCollectionClusterTrustBundleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterTrustBundleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -925,6 +925,10 @@ private okhttp3.Call deleteCollectionClusterTrustBundleCall(@jakarta.annotation. localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -953,21 +957,21 @@ private okhttp3.Call deleteCollectionClusterTrustBundleCall(@jakarta.annotation. } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionClusterTrustBundleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterTrustBundleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionClusterTrustBundleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1001,6 +1005,8 @@ public class APIdeleteCollectionClusterTrustBundleRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1138,6 +1144,16 @@ public APIdeleteCollectionClusterTrustBundleRequest sendInitialEvents(@jakarta.a return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionClusterTrustBundleRequest + */ + public APIdeleteCollectionClusterTrustBundleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1172,7 +1188,7 @@ public APIdeleteCollectionClusterTrustBundleRequest body(@jakarta.annotation.Nul */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionClusterTrustBundleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -1188,7 +1204,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -1205,7 +1221,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionClusterTrustBundleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -1222,7 +1238,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionClusterTrustBundleAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionClusterTrustBundleAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1241,7 +1257,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionClusterTrustBundleRequest deleteCollectionClusterTrustBundle() { return new APIdeleteCollectionClusterTrustBundleRequest(); } - private okhttp3.Call deleteCollectionNamespacedPodCertificateRequestCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodCertificateRequestCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1319,6 +1335,10 @@ private okhttp3.Call deleteCollectionNamespacedPodCertificateRequestCall(@jakart localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1347,26 +1367,26 @@ private okhttp3.Call deleteCollectionNamespacedPodCertificateRequestCall(@jakart } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedPodCertificateRequestValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodCertificateRequestValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodCertificateRequest(Async)"); } - return deleteCollectionNamespacedPodCertificateRequestCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedPodCertificateRequestCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedPodCertificateRequestWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPodCertificateRequestValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedPodCertificateRequestWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPodCertificateRequestValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedPodCertificateRequestAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodCertificateRequestAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPodCertificateRequestValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedPodCertificateRequestValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1402,6 +1422,8 @@ public class APIdeleteCollectionNamespacedPodCertificateRequestRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1540,6 +1562,16 @@ public APIdeleteCollectionNamespacedPodCertificateRequestRequest sendInitialEven return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedPodCertificateRequestRequest + */ + public APIdeleteCollectionNamespacedPodCertificateRequestRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1574,7 +1606,7 @@ public APIdeleteCollectionNamespacedPodCertificateRequestRequest body(@jakarta.a */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedPodCertificateRequestCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedPodCertificateRequestCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -1590,7 +1622,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedPodCertificateRequestWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedPodCertificateRequestWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -1607,7 +1639,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedPodCertificateRequestWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedPodCertificateRequestWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -1624,7 +1656,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedPodCertificateRequestAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedPodCertificateRequestAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2090,7 +2122,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2151,6 +2183,10 @@ private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2185,21 +2221,21 @@ private okhttp3.Call listClusterTrustBundleCall(@jakarta.annotation.Nullable Str } @SuppressWarnings("rawtypes") - private okhttp3.Call listClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listClusterTrustBundleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listClusterTrustBundleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listClusterTrustBundleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterTrustBundleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listClusterTrustBundleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2225,6 +2261,8 @@ public class APIlistClusterTrustBundleRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -2322,6 +2360,16 @@ public APIlistClusterTrustBundleRequest sendInitialEvents(@jakarta.annotation.Nu return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistClusterTrustBundleRequest + */ + public APIlistClusterTrustBundleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2356,7 +2404,7 @@ public APIlistClusterTrustBundleRequest watch(@jakarta.annotation.Nullable Boole */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listClusterTrustBundleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -2372,7 +2420,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1ClusterTrustBundleList execute() throws ApiException { - ApiResponse localVarResp = listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -2389,7 +2437,7 @@ public V1beta1ClusterTrustBundleList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listClusterTrustBundleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -2406,7 +2454,7 @@ public ApiResponse executeWithHttpInfo() throws A */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listClusterTrustBundleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listClusterTrustBundleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -2425,7 +2473,7 @@ public okhttp3.Call executeAsync(final ApiCallback listNamespacedPodCertificateRequestWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedPodCertificateRequestValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedPodCertificateRequestWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedPodCertificateRequestValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedPodCertificateRequestAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodCertificateRequestAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedPodCertificateRequestValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedPodCertificateRequestValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2568,6 +2620,8 @@ public class APIlistNamespacedPodCertificateRequestRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -2666,6 +2720,16 @@ public APIlistNamespacedPodCertificateRequestRequest sendInitialEvents(@jakarta. return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedPodCertificateRequestRequest + */ + public APIlistNamespacedPodCertificateRequestRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2700,7 +2764,7 @@ public APIlistNamespacedPodCertificateRequestRequest watch(@jakarta.annotation.N */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedPodCertificateRequestCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedPodCertificateRequestCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -2716,7 +2780,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1PodCertificateRequestList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedPodCertificateRequestWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedPodCertificateRequestWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -2733,7 +2797,7 @@ public V1beta1PodCertificateRequestList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedPodCertificateRequestWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedPodCertificateRequestWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -2750,7 +2814,7 @@ public ApiResponse executeWithHttpInfo() throw */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedPodCertificateRequestAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedPodCertificateRequestAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -2770,7 +2834,7 @@ public okhttp3.Call executeAsync(final ApiCallback listPodCertificateRequestForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listPodCertificateRequestForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listPodCertificateRequestForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPodCertificateRequestForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPodCertificateRequestForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodCertificateRequestForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listPodCertificateRequestForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listPodCertificateRequestForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2905,6 +2973,8 @@ public class APIlistPodCertificateRequestForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -3002,6 +3072,16 @@ public APIlistPodCertificateRequestForAllNamespacesRequest sendInitialEvents(@ja return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistPodCertificateRequestForAllNamespacesRequest + */ + public APIlistPodCertificateRequestForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -3036,7 +3116,7 @@ public APIlistPodCertificateRequestForAllNamespacesRequest watch(@jakarta.annota */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listPodCertificateRequestForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPodCertificateRequestForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -3052,7 +3132,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1PodCertificateRequestList execute() throws ApiException { - ApiResponse localVarResp = listPodCertificateRequestForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listPodCertificateRequestForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -3069,7 +3149,7 @@ public V1beta1PodCertificateRequestList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listPodCertificateRequestForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listPodCertificateRequestForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -3086,7 +3166,7 @@ public ApiResponse executeWithHttpInfo() throw */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listPodCertificateRequestForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPodCertificateRequestForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java index e9c9d45309..115712b02c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1Api.java @@ -326,7 +326,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws Ap public APIcreateNamespacedLeaseRequest createNamespacedLease(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Lease body) { return new APIcreateNamespacedLeaseRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedLeaseCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -404,6 +404,10 @@ private okhttp3.Call deleteCollectionNamespacedLeaseCall(@jakarta.annotation.Non localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -432,26 +436,26 @@ private okhttp3.Call deleteCollectionNamespacedLeaseCall(@jakarta.annotation.Non } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedLeaseValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLease(Async)"); } - return deleteCollectionNamespacedLeaseCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedLeaseCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedLeaseWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedLeaseWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedLeaseAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -487,6 +491,8 @@ public class APIdeleteCollectionNamespacedLeaseRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -625,6 +631,16 @@ public APIdeleteCollectionNamespacedLeaseRequest sendInitialEvents(@jakarta.anno return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedLeaseRequest + */ + public APIdeleteCollectionNamespacedLeaseRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -659,7 +675,7 @@ public APIdeleteCollectionNamespacedLeaseRequest body(@jakarta.annotation.Nullab */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedLeaseCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedLeaseCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -675,7 +691,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedLeaseWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedLeaseWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -692,7 +708,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedLeaseWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedLeaseWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -709,7 +725,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedLeaseAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedLeaseAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1175,7 +1191,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listLeaseForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLeaseForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1236,6 +1252,10 @@ private okhttp3.Call listLeaseForAllNamespacesCall(@jakarta.annotation.Nullable localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1270,21 +1290,21 @@ private okhttp3.Call listLeaseForAllNamespacesCall(@jakarta.annotation.Nullable } @SuppressWarnings("rawtypes") - private okhttp3.Call listLeaseForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listLeaseForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listLeaseForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listLeaseForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listLeaseForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listLeaseForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listLeaseForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listLeaseForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listLeaseForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLeaseForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listLeaseForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listLeaseForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1310,6 +1330,8 @@ public class APIlistLeaseForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1407,6 +1429,16 @@ public APIlistLeaseForAllNamespacesRequest sendInitialEvents(@jakarta.annotation return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistLeaseForAllNamespacesRequest + */ + public APIlistLeaseForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1441,7 +1473,7 @@ public APIlistLeaseForAllNamespacesRequest watch(@jakarta.annotation.Nullable Bo */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listLeaseForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listLeaseForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1457,7 +1489,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1LeaseList execute() throws ApiException { - ApiResponse localVarResp = listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1474,7 +1506,7 @@ public V1LeaseList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1491,7 +1523,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listLeaseForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listLeaseForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -1510,7 +1542,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throw public APIlistLeaseForAllNamespacesRequest listLeaseForAllNamespaces() { return new APIlistLeaseForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedLeaseCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLeaseCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1572,6 +1604,10 @@ private okhttp3.Call listNamespacedLeaseCall(@jakarta.annotation.Nonnull String localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1606,26 +1642,26 @@ private okhttp3.Call listNamespacedLeaseCall(@jakarta.annotation.Nonnull String } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedLeaseValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLeaseValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLease(Async)"); } - return listNamespacedLeaseCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedLeaseCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedLeaseWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedLeaseValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedLeaseWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedLeaseValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedLeaseAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLeaseAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedLeaseValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedLeaseValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1653,6 +1689,8 @@ public class APIlistNamespacedLeaseRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1751,6 +1789,16 @@ public APIlistNamespacedLeaseRequest sendInitialEvents(@jakarta.annotation.Nulla return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedLeaseRequest + */ + public APIlistNamespacedLeaseRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1785,7 +1833,7 @@ public APIlistNamespacedLeaseRequest watch(@jakarta.annotation.Nullable Boolean */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedLeaseCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedLeaseCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1801,7 +1849,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1LeaseList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedLeaseWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedLeaseWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1818,7 +1866,7 @@ public V1LeaseList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedLeaseWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedLeaseWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1835,7 +1883,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedLeaseAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedLeaseAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java index 738fce55f6..bd544e60dd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1alpha2Api.java @@ -326,7 +326,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call public APIcreateNamespacedLeaseCandidateRequest createNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2LeaseCandidate body) { return new APIcreateNamespacedLeaseCandidateRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -404,6 +404,10 @@ private okhttp3.Call deleteCollectionNamespacedLeaseCandidateCall(@jakarta.annot localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -432,26 +436,26 @@ private okhttp3.Call deleteCollectionNamespacedLeaseCandidateCall(@jakarta.annot } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLeaseCandidate(Async)"); } - return deleteCollectionNamespacedLeaseCandidateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedLeaseCandidateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -487,6 +491,8 @@ public class APIdeleteCollectionNamespacedLeaseCandidateRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -625,6 +631,16 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest sendInitialEvents(@jak return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -659,7 +675,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest body(@jakarta.annotati */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedLeaseCandidateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedLeaseCandidateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -675,7 +691,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -692,7 +708,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -709,7 +725,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedLeaseCandidateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedLeaseCandidateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1175,7 +1191,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listLeaseCandidateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLeaseCandidateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1236,6 +1252,10 @@ private okhttp3.Call listLeaseCandidateForAllNamespacesCall(@jakarta.annotation. localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1270,21 +1290,21 @@ private okhttp3.Call listLeaseCandidateForAllNamespacesCall(@jakarta.annotation. } @SuppressWarnings("rawtypes") - private okhttp3.Call listLeaseCandidateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listLeaseCandidateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listLeaseCandidateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listLeaseCandidateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listLeaseCandidateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listLeaseCandidateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listLeaseCandidateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLeaseCandidateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1310,6 +1330,8 @@ public class APIlistLeaseCandidateForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1407,6 +1429,16 @@ public APIlistLeaseCandidateForAllNamespacesRequest sendInitialEvents(@jakarta.a return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistLeaseCandidateForAllNamespacesRequest + */ + public APIlistLeaseCandidateForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1441,7 +1473,7 @@ public APIlistLeaseCandidateForAllNamespacesRequest watch(@jakarta.annotation.Nu */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listLeaseCandidateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listLeaseCandidateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1457,7 +1489,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1alpha2LeaseCandidateList execute() throws ApiException { - ApiResponse localVarResp = listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1474,7 +1506,7 @@ public V1alpha2LeaseCandidateList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1491,7 +1523,7 @@ public ApiResponse executeWithHttpInfo() throws ApiE */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listLeaseCandidateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listLeaseCandidateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -1510,7 +1542,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ public APIlistLeaseCandidateForAllNamespacesRequest listLeaseCandidateForAllNamespaces() { return new APIlistLeaseCandidateForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1572,6 +1604,10 @@ private okhttp3.Call listNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnul localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1606,26 +1642,26 @@ private okhttp3.Call listNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnul } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLeaseCandidate(Async)"); } - return listNamespacedLeaseCandidateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedLeaseCandidateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1653,6 +1689,8 @@ public class APIlistNamespacedLeaseCandidateRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1751,6 +1789,16 @@ public APIlistNamespacedLeaseCandidateRequest sendInitialEvents(@jakarta.annotat return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedLeaseCandidateRequest + */ + public APIlistNamespacedLeaseCandidateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1785,7 +1833,7 @@ public APIlistNamespacedLeaseCandidateRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedLeaseCandidateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedLeaseCandidateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1801,7 +1849,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1alpha2LeaseCandidateList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1818,7 +1866,7 @@ public V1alpha2LeaseCandidateList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1835,7 +1883,7 @@ public ApiResponse executeWithHttpInfo() throws ApiE */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedLeaseCandidateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedLeaseCandidateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java index cc71d2507d..10f20cf666 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoordinationV1beta1Api.java @@ -326,7 +326,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb public APIcreateNamespacedLeaseCandidateRequest createNamespacedLeaseCandidate(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta1LeaseCandidate body) { return new APIcreateNamespacedLeaseCandidateRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -404,6 +404,10 @@ private okhttp3.Call deleteCollectionNamespacedLeaseCandidateCall(@jakarta.annot localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -432,26 +436,26 @@ private okhttp3.Call deleteCollectionNamespacedLeaseCandidateCall(@jakarta.annot } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLeaseCandidate(Async)"); } - return deleteCollectionNamespacedLeaseCandidateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedLeaseCandidateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -487,6 +491,8 @@ public class APIdeleteCollectionNamespacedLeaseCandidateRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -625,6 +631,16 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest sendInitialEvents(@jak return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedLeaseCandidateRequest + */ + public APIdeleteCollectionNamespacedLeaseCandidateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -659,7 +675,7 @@ public APIdeleteCollectionNamespacedLeaseCandidateRequest body(@jakarta.annotati */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedLeaseCandidateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedLeaseCandidateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -675,7 +691,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -692,7 +708,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -709,7 +725,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedLeaseCandidateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedLeaseCandidateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1175,7 +1191,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listLeaseCandidateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLeaseCandidateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1236,6 +1252,10 @@ private okhttp3.Call listLeaseCandidateForAllNamespacesCall(@jakarta.annotation. localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1270,21 +1290,21 @@ private okhttp3.Call listLeaseCandidateForAllNamespacesCall(@jakarta.annotation. } @SuppressWarnings("rawtypes") - private okhttp3.Call listLeaseCandidateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listLeaseCandidateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listLeaseCandidateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listLeaseCandidateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listLeaseCandidateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listLeaseCandidateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listLeaseCandidateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLeaseCandidateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listLeaseCandidateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1310,6 +1330,8 @@ public class APIlistLeaseCandidateForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1407,6 +1429,16 @@ public APIlistLeaseCandidateForAllNamespacesRequest sendInitialEvents(@jakarta.a return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistLeaseCandidateForAllNamespacesRequest + */ + public APIlistLeaseCandidateForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1441,7 +1473,7 @@ public APIlistLeaseCandidateForAllNamespacesRequest watch(@jakarta.annotation.Nu */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listLeaseCandidateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listLeaseCandidateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1457,7 +1489,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1LeaseCandidateList execute() throws ApiException { - ApiResponse localVarResp = listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1474,7 +1506,7 @@ public V1beta1LeaseCandidateList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listLeaseCandidateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1491,7 +1523,7 @@ public ApiResponse executeWithHttpInfo() throws ApiEx */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listLeaseCandidateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listLeaseCandidateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -1510,7 +1542,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c public APIlistLeaseCandidateForAllNamespacesRequest listLeaseCandidateForAllNamespaces() { return new APIlistLeaseCandidateForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1572,6 +1604,10 @@ private okhttp3.Call listNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnul localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1606,26 +1642,26 @@ private okhttp3.Call listNamespacedLeaseCandidateCall(@jakarta.annotation.Nonnul } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLeaseCandidateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLeaseCandidate(Async)"); } - return listNamespacedLeaseCandidateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedLeaseCandidateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedLeaseCandidateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLeaseCandidateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedLeaseCandidateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1653,6 +1689,8 @@ public class APIlistNamespacedLeaseCandidateRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1751,6 +1789,16 @@ public APIlistNamespacedLeaseCandidateRequest sendInitialEvents(@jakarta.annotat return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedLeaseCandidateRequest + */ + public APIlistNamespacedLeaseCandidateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1785,7 +1833,7 @@ public APIlistNamespacedLeaseCandidateRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedLeaseCandidateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedLeaseCandidateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1801,7 +1849,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1LeaseCandidateList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1818,7 +1866,7 @@ public V1beta1LeaseCandidateList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedLeaseCandidateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1835,7 +1883,7 @@ public ApiResponse executeWithHttpInfo() throws ApiEx */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedLeaseCandidateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedLeaseCandidateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java index 7ada4b35e9..2a715d3b6b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CoreV1Api.java @@ -14290,7 +14290,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback public APIcreatePersistentVolumeRequest createPersistentVolume(@jakarta.annotation.Nonnull V1PersistentVolume body) { return new APIcreatePersistentVolumeRequest(body); } - private okhttp3.Call deleteCollectionNamespacedConfigMapCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedConfigMapCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -14368,6 +14368,10 @@ private okhttp3.Call deleteCollectionNamespacedConfigMapCall(@jakarta.annotation localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -14396,26 +14400,26 @@ private okhttp3.Call deleteCollectionNamespacedConfigMapCall(@jakarta.annotation } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedConfigMapValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedConfigMapValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedConfigMap(Async)"); } - return deleteCollectionNamespacedConfigMapCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedConfigMapCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedConfigMapWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedConfigMapWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedConfigMapAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedConfigMapAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -14451,6 +14455,8 @@ public class APIdeleteCollectionNamespacedConfigMapRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -14589,6 +14595,16 @@ public APIdeleteCollectionNamespacedConfigMapRequest sendInitialEvents(@jakarta. return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedConfigMapRequest + */ + public APIdeleteCollectionNamespacedConfigMapRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -14623,7 +14639,7 @@ public APIdeleteCollectionNamespacedConfigMapRequest body(@jakarta.annotation.Nu */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedConfigMapCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedConfigMapCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -14639,7 +14655,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedConfigMapWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedConfigMapWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -14656,7 +14672,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedConfigMapWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedConfigMapWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -14673,7 +14689,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedConfigMapAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedConfigMapAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -14693,7 +14709,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedConfigMapRequest deleteCollectionNamespacedConfigMap(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedConfigMapRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedEndpointsCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEndpointsCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -14771,6 +14787,10 @@ private okhttp3.Call deleteCollectionNamespacedEndpointsCall(@jakarta.annotation localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -14799,26 +14819,26 @@ private okhttp3.Call deleteCollectionNamespacedEndpointsCall(@jakarta.annotation } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedEndpointsValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEndpointsValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEndpoints(Async)"); } - return deleteCollectionNamespacedEndpointsCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEndpointsCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedEndpointsWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedEndpointsWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedEndpointsAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEndpointsAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -14854,6 +14874,8 @@ public class APIdeleteCollectionNamespacedEndpointsRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -14992,6 +15014,16 @@ public APIdeleteCollectionNamespacedEndpointsRequest sendInitialEvents(@jakarta. return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedEndpointsRequest + */ + public APIdeleteCollectionNamespacedEndpointsRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -15026,7 +15058,7 @@ public APIdeleteCollectionNamespacedEndpointsRequest body(@jakarta.annotation.Nu */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedEndpointsCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEndpointsCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -15042,7 +15074,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedEndpointsWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedEndpointsWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -15059,7 +15091,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedEndpointsWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedEndpointsWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -15076,7 +15108,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedEndpointsAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEndpointsAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -15096,7 +15128,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedEndpointsRequest deleteCollectionNamespacedEndpoints(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedEndpointsRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedEventCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -15174,6 +15206,10 @@ private okhttp3.Call deleteCollectionNamespacedEventCall(@jakarta.annotation.Non localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -15202,26 +15238,26 @@ private okhttp3.Call deleteCollectionNamespacedEventCall(@jakarta.annotation.Non } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEvent(Async)"); } - return deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedEventAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -15257,6 +15293,8 @@ public class APIdeleteCollectionNamespacedEventRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -15395,6 +15433,16 @@ public APIdeleteCollectionNamespacedEventRequest sendInitialEvents(@jakarta.anno return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedEventRequest + */ + public APIdeleteCollectionNamespacedEventRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -15429,7 +15477,7 @@ public APIdeleteCollectionNamespacedEventRequest body(@jakarta.annotation.Nullab */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -15445,7 +15493,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -15462,7 +15510,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -15479,7 +15527,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedEventAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEventAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -15499,7 +15547,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedEventRequest deleteCollectionNamespacedEvent(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedEventRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedLimitRangeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLimitRangeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -15577,6 +15625,10 @@ private okhttp3.Call deleteCollectionNamespacedLimitRangeCall(@jakarta.annotatio localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -15605,26 +15657,26 @@ private okhttp3.Call deleteCollectionNamespacedLimitRangeCall(@jakarta.annotatio } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedLimitRangeValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLimitRangeValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLimitRange(Async)"); } - return deleteCollectionNamespacedLimitRangeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedLimitRangeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedLimitRangeWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedLimitRangeWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedLimitRangeAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLimitRangeAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -15660,6 +15712,8 @@ public class APIdeleteCollectionNamespacedLimitRangeRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -15798,6 +15852,16 @@ public APIdeleteCollectionNamespacedLimitRangeRequest sendInitialEvents(@jakarta return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedLimitRangeRequest + */ + public APIdeleteCollectionNamespacedLimitRangeRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -15832,7 +15896,7 @@ public APIdeleteCollectionNamespacedLimitRangeRequest body(@jakarta.annotation.N */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedLimitRangeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedLimitRangeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -15848,7 +15912,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -15865,7 +15929,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -15882,7 +15946,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedLimitRangeAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedLimitRangeAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -15902,7 +15966,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedLimitRangeRequest deleteCollectionNamespacedLimitRange(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedLimitRangeRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -15980,6 +16044,10 @@ private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(@jakart localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -16008,26 +16076,26 @@ private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(@jakart } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPersistentVolumeClaim(Async)"); } - return deleteCollectionNamespacedPersistentVolumeClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedPersistentVolumeClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -16063,6 +16131,8 @@ public class APIdeleteCollectionNamespacedPersistentVolumeClaimRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -16201,6 +16271,16 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest sendInitialEven return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedPersistentVolumeClaimRequest + */ + public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -16235,7 +16315,7 @@ public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest body(@jakarta.a */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedPersistentVolumeClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedPersistentVolumeClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -16251,7 +16331,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -16268,7 +16348,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -16285,7 +16365,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedPersistentVolumeClaimAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedPersistentVolumeClaimAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -16305,7 +16385,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedPersistentVolumeClaimRequest deleteCollectionNamespacedPersistentVolumeClaim(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedPersistentVolumeClaimRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedPodCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -16383,6 +16463,10 @@ private okhttp3.Call deleteCollectionNamespacedPodCall(@jakarta.annotation.Nonnu localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -16411,26 +16495,26 @@ private okhttp3.Call deleteCollectionNamespacedPodCall(@jakarta.annotation.Nonnu } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedPodValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPod(Async)"); } - return deleteCollectionNamespacedPodCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedPodCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedPodWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedPodWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedPodAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -16466,6 +16550,8 @@ public class APIdeleteCollectionNamespacedPodRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -16604,6 +16690,16 @@ public APIdeleteCollectionNamespacedPodRequest sendInitialEvents(@jakarta.annota return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedPodRequest + */ + public APIdeleteCollectionNamespacedPodRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -16638,7 +16734,7 @@ public APIdeleteCollectionNamespacedPodRequest body(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedPodCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedPodCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -16654,7 +16750,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedPodWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedPodWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -16671,7 +16767,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedPodWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedPodWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -16688,7 +16784,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedPodAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedPodAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -16708,7 +16804,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedPodRequest deleteCollectionNamespacedPod(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedPodRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedPodTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -16786,6 +16882,10 @@ private okhttp3.Call deleteCollectionNamespacedPodTemplateCall(@jakarta.annotati localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -16814,26 +16914,26 @@ private okhttp3.Call deleteCollectionNamespacedPodTemplateCall(@jakarta.annotati } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedPodTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodTemplate(Async)"); } - return deleteCollectionNamespacedPodTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedPodTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedPodTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedPodTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedPodTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -16869,6 +16969,8 @@ public class APIdeleteCollectionNamespacedPodTemplateRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -17007,6 +17109,16 @@ public APIdeleteCollectionNamespacedPodTemplateRequest sendInitialEvents(@jakart return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedPodTemplateRequest + */ + public APIdeleteCollectionNamespacedPodTemplateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -17041,7 +17153,7 @@ public APIdeleteCollectionNamespacedPodTemplateRequest body(@jakarta.annotation. */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedPodTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedPodTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -17057,7 +17169,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -17074,7 +17186,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -17091,7 +17203,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedPodTemplateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedPodTemplateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -17111,7 +17223,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedPodTemplateRequest deleteCollectionNamespacedPodTemplate(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedPodTemplateRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -17189,6 +17301,10 @@ private okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(@jakart localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -17217,26 +17333,26 @@ private okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(@jakart } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedReplicationControllerValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicationControllerValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedReplicationController(Async)"); } - return deleteCollectionNamespacedReplicationControllerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedReplicationControllerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedReplicationControllerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedReplicationControllerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedReplicationControllerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicationControllerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -17272,6 +17388,8 @@ public class APIdeleteCollectionNamespacedReplicationControllerRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -17410,6 +17528,16 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest sendInitialEven return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedReplicationControllerRequest + */ + public APIdeleteCollectionNamespacedReplicationControllerRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -17444,7 +17572,7 @@ public APIdeleteCollectionNamespacedReplicationControllerRequest body(@jakarta.a */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedReplicationControllerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedReplicationControllerCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -17460,7 +17588,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -17477,7 +17605,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -17494,7 +17622,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedReplicationControllerAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedReplicationControllerAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -17514,7 +17642,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedReplicationControllerRequest deleteCollectionNamespacedReplicationController(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedReplicationControllerRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -17592,6 +17720,10 @@ private okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(@jakarta.annota localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -17620,26 +17752,26 @@ private okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(@jakarta.annota } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceQuotaValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceQuotaValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceQuota(Async)"); } - return deleteCollectionNamespacedResourceQuotaCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceQuotaCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedResourceQuotaWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedResourceQuotaWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedResourceQuotaAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceQuotaAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -17675,6 +17807,8 @@ public class APIdeleteCollectionNamespacedResourceQuotaRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -17813,6 +17947,16 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest sendInitialEvents(@jaka return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedResourceQuotaRequest + */ + public APIdeleteCollectionNamespacedResourceQuotaRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -17847,7 +17991,7 @@ public APIdeleteCollectionNamespacedResourceQuotaRequest body(@jakarta.annotatio */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceQuotaCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceQuotaCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -17863,7 +18007,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -17880,7 +18024,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -17897,7 +18041,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceQuotaAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceQuotaAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -17917,7 +18061,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedResourceQuotaRequest deleteCollectionNamespacedResourceQuota(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedResourceQuotaRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedSecretCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedSecretCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -17995,6 +18139,10 @@ private okhttp3.Call deleteCollectionNamespacedSecretCall(@jakarta.annotation.No localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -18023,26 +18171,26 @@ private okhttp3.Call deleteCollectionNamespacedSecretCall(@jakarta.annotation.No } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedSecretValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedSecretValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedSecret(Async)"); } - return deleteCollectionNamespacedSecretCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedSecretCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedSecretWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedSecretWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedSecretAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedSecretAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -18078,6 +18226,8 @@ public class APIdeleteCollectionNamespacedSecretRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -18216,6 +18366,16 @@ public APIdeleteCollectionNamespacedSecretRequest sendInitialEvents(@jakarta.ann return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedSecretRequest + */ + public APIdeleteCollectionNamespacedSecretRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -18250,7 +18410,7 @@ public APIdeleteCollectionNamespacedSecretRequest body(@jakarta.annotation.Nulla */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedSecretCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedSecretCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -18266,7 +18426,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedSecretWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedSecretWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -18283,7 +18443,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedSecretWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedSecretWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -18300,7 +18460,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedSecretAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedSecretAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -18320,7 +18480,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedSecretRequest deleteCollectionNamespacedSecret(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedSecretRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedServiceCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedServiceCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -18398,6 +18558,10 @@ private okhttp3.Call deleteCollectionNamespacedServiceCall(@jakarta.annotation.N localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -18426,26 +18590,26 @@ private okhttp3.Call deleteCollectionNamespacedServiceCall(@jakarta.annotation.N } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedServiceValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedServiceValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedService(Async)"); } - return deleteCollectionNamespacedServiceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedServiceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedServiceWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedServiceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedServiceWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedServiceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedServiceAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedServiceAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedServiceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedServiceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -18481,6 +18645,8 @@ public class APIdeleteCollectionNamespacedServiceRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -18619,6 +18785,16 @@ public APIdeleteCollectionNamespacedServiceRequest sendInitialEvents(@jakarta.an return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedServiceRequest + */ + public APIdeleteCollectionNamespacedServiceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -18653,7 +18829,7 @@ public APIdeleteCollectionNamespacedServiceRequest body(@jakarta.annotation.Null */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedServiceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedServiceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -18669,7 +18845,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedServiceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedServiceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -18686,7 +18862,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedServiceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedServiceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -18703,7 +18879,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedServiceAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedServiceAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -18723,7 +18899,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedServiceRequest deleteCollectionNamespacedService(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedServiceRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedServiceAccountCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedServiceAccountCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -18801,6 +18977,10 @@ private okhttp3.Call deleteCollectionNamespacedServiceAccountCall(@jakarta.annot localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -18829,26 +19009,26 @@ private okhttp3.Call deleteCollectionNamespacedServiceAccountCall(@jakarta.annot } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedServiceAccountValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedServiceAccountValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedServiceAccount(Async)"); } - return deleteCollectionNamespacedServiceAccountCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedServiceAccountCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedServiceAccountWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedServiceAccountWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedServiceAccountAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedServiceAccountAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -18884,6 +19064,8 @@ public class APIdeleteCollectionNamespacedServiceAccountRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -19022,6 +19204,16 @@ public APIdeleteCollectionNamespacedServiceAccountRequest sendInitialEvents(@jak return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedServiceAccountRequest + */ + public APIdeleteCollectionNamespacedServiceAccountRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -19056,7 +19248,7 @@ public APIdeleteCollectionNamespacedServiceAccountRequest body(@jakarta.annotati */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedServiceAccountCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedServiceAccountCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -19072,7 +19264,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -19089,7 +19281,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -19106,7 +19298,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedServiceAccountAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedServiceAccountAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -19126,7 +19318,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedServiceAccountRequest deleteCollectionNamespacedServiceAccount(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedServiceAccountRequest(namespace); } - private okhttp3.Call deleteCollectionNodeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNodeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -19203,6 +19395,10 @@ private okhttp3.Call deleteCollectionNodeCall(@jakarta.annotation.Nullable Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -19231,21 +19427,21 @@ private okhttp3.Call deleteCollectionNodeCall(@jakarta.annotation.Nullable Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNodeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionNodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionNodeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionNodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNodeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNodeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNodeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNodeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -19279,6 +19475,8 @@ public class APIdeleteCollectionNodeRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -19416,6 +19614,16 @@ public APIdeleteCollectionNodeRequest sendInitialEvents(@jakarta.annotation.Null return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNodeRequest + */ + public APIdeleteCollectionNodeRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -19450,7 +19658,7 @@ public APIdeleteCollectionNodeRequest body(@jakarta.annotation.Nullable V1Delete */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -19466,7 +19674,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -19483,7 +19691,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -19500,7 +19708,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNodeAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNodeAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -19519,7 +19727,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNodeRequest deleteCollectionNode() { return new APIdeleteCollectionNodeRequest(); } - private okhttp3.Call deleteCollectionPersistentVolumeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPersistentVolumeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -19596,6 +19804,10 @@ private okhttp3.Call deleteCollectionPersistentVolumeCall(@jakarta.annotation.Nu localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -19624,21 +19836,21 @@ private okhttp3.Call deleteCollectionPersistentVolumeCall(@jakarta.annotation.Nu } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionPersistentVolumeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionPersistentVolumeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionPersistentVolumeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionPersistentVolumeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionPersistentVolumeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionPersistentVolumeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionPersistentVolumeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPersistentVolumeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -19672,6 +19884,8 @@ public class APIdeleteCollectionPersistentVolumeRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -19809,6 +20023,16 @@ public APIdeleteCollectionPersistentVolumeRequest sendInitialEvents(@jakarta.ann return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionPersistentVolumeRequest + */ + public APIdeleteCollectionPersistentVolumeRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -19843,7 +20067,7 @@ public APIdeleteCollectionPersistentVolumeRequest body(@jakarta.annotation.Nulla */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionPersistentVolumeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionPersistentVolumeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -19859,7 +20083,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionPersistentVolumeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionPersistentVolumeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -19876,7 +20100,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionPersistentVolumeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionPersistentVolumeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -19893,7 +20117,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionPersistentVolumeAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionPersistentVolumeAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -24388,7 +24612,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listComponentStatusCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listComponentStatusCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -24449,6 +24673,10 @@ private okhttp3.Call listComponentStatusCall(@jakarta.annotation.Nullable Boolea localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -24483,21 +24711,21 @@ private okhttp3.Call listComponentStatusCall(@jakarta.annotation.Nullable Boolea } @SuppressWarnings("rawtypes") - private okhttp3.Call listComponentStatusValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listComponentStatusCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listComponentStatusValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listComponentStatusCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listComponentStatusWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listComponentStatusValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listComponentStatusWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listComponentStatusValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listComponentStatusAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listComponentStatusAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listComponentStatusValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listComponentStatusValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -24523,6 +24751,8 @@ public class APIlistComponentStatusRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -24620,6 +24850,16 @@ public APIlistComponentStatusRequest sendInitialEvents(@jakarta.annotation.Nulla return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistComponentStatusRequest + */ + public APIlistComponentStatusRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -24654,7 +24894,7 @@ public APIlistComponentStatusRequest watch(@jakarta.annotation.Nullable Boolean */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listComponentStatusCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listComponentStatusCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -24670,7 +24910,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ComponentStatusList execute() throws ApiException { - ApiResponse localVarResp = listComponentStatusWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listComponentStatusWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -24687,7 +24927,7 @@ public V1ComponentStatusList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listComponentStatusWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listComponentStatusWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -24704,7 +24944,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExcept */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listComponentStatusAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listComponentStatusAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -24723,7 +24963,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb public APIlistComponentStatusRequest listComponentStatus() { return new APIlistComponentStatusRequest(); } - private okhttp3.Call listConfigMapForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listConfigMapForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -24784,6 +25024,10 @@ private okhttp3.Call listConfigMapForAllNamespacesCall(@jakarta.annotation.Nulla localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -24818,21 +25062,21 @@ private okhttp3.Call listConfigMapForAllNamespacesCall(@jakarta.annotation.Nulla } @SuppressWarnings("rawtypes") - private okhttp3.Call listConfigMapForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listConfigMapForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listConfigMapForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listConfigMapForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listConfigMapForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listConfigMapForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listConfigMapForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listConfigMapForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listConfigMapForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listConfigMapForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listConfigMapForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listConfigMapForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -24858,6 +25102,8 @@ public class APIlistConfigMapForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -24955,6 +25201,16 @@ public APIlistConfigMapForAllNamespacesRequest sendInitialEvents(@jakarta.annota return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistConfigMapForAllNamespacesRequest + */ + public APIlistConfigMapForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -24989,7 +25245,7 @@ public APIlistConfigMapForAllNamespacesRequest watch(@jakarta.annotation.Nullabl */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listConfigMapForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listConfigMapForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -25005,7 +25261,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ConfigMapList execute() throws ApiException { - ApiResponse localVarResp = listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -25022,7 +25278,7 @@ public V1ConfigMapList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -25039,7 +25295,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listConfigMapForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listConfigMapForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -25058,7 +25314,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistConfigMapForAllNamespacesRequest listConfigMapForAllNamespaces() { return new APIlistConfigMapForAllNamespacesRequest(); } - private okhttp3.Call listEndpointsForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEndpointsForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -25119,6 +25375,10 @@ private okhttp3.Call listEndpointsForAllNamespacesCall(@jakarta.annotation.Nulla localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -25153,21 +25413,21 @@ private okhttp3.Call listEndpointsForAllNamespacesCall(@jakarta.annotation.Nulla } @SuppressWarnings("rawtypes") - private okhttp3.Call listEndpointsForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listEndpointsForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listEndpointsForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listEndpointsForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listEndpointsForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listEndpointsForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listEndpointsForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listEndpointsForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listEndpointsForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEndpointsForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listEndpointsForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listEndpointsForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -25193,6 +25453,8 @@ public class APIlistEndpointsForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -25290,6 +25552,16 @@ public APIlistEndpointsForAllNamespacesRequest sendInitialEvents(@jakarta.annota return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistEndpointsForAllNamespacesRequest + */ + public APIlistEndpointsForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -25324,7 +25596,7 @@ public APIlistEndpointsForAllNamespacesRequest watch(@jakarta.annotation.Nullabl */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listEndpointsForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listEndpointsForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -25340,7 +25612,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1EndpointsList execute() throws ApiException { - ApiResponse localVarResp = listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -25357,7 +25629,7 @@ public V1EndpointsList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -25374,7 +25646,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listEndpointsForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listEndpointsForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -25393,7 +25665,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistEndpointsForAllNamespacesRequest listEndpointsForAllNamespaces() { return new APIlistEndpointsForAllNamespacesRequest(); } - private okhttp3.Call listEventForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEventForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -25454,6 +25726,10 @@ private okhttp3.Call listEventForAllNamespacesCall(@jakarta.annotation.Nullable localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -25488,21 +25764,21 @@ private okhttp3.Call listEventForAllNamespacesCall(@jakarta.annotation.Nullable } @SuppressWarnings("rawtypes") - private okhttp3.Call listEventForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listEventForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listEventForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listEventForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listEventForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEventForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -25528,6 +25804,8 @@ public class APIlistEventForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -25625,6 +25903,16 @@ public APIlistEventForAllNamespacesRequest sendInitialEvents(@jakarta.annotation return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistEventForAllNamespacesRequest + */ + public APIlistEventForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -25659,7 +25947,7 @@ public APIlistEventForAllNamespacesRequest watch(@jakarta.annotation.Nullable Bo */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -25675,7 +25963,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public CoreV1EventList execute() throws ApiException { - ApiResponse localVarResp = listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -25692,7 +25980,7 @@ public CoreV1EventList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -25709,7 +25997,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listEventForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listEventForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -25728,7 +26016,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistEventForAllNamespacesRequest listEventForAllNamespaces() { return new APIlistEventForAllNamespacesRequest(); } - private okhttp3.Call listLimitRangeForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLimitRangeForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -25789,6 +26077,10 @@ private okhttp3.Call listLimitRangeForAllNamespacesCall(@jakarta.annotation.Null localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -25823,21 +26115,21 @@ private okhttp3.Call listLimitRangeForAllNamespacesCall(@jakarta.annotation.Null } @SuppressWarnings("rawtypes") - private okhttp3.Call listLimitRangeForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listLimitRangeForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listLimitRangeForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listLimitRangeForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listLimitRangeForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listLimitRangeForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listLimitRangeForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listLimitRangeForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listLimitRangeForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listLimitRangeForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listLimitRangeForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listLimitRangeForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -25863,6 +26155,8 @@ public class APIlistLimitRangeForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -25960,6 +26254,16 @@ public APIlistLimitRangeForAllNamespacesRequest sendInitialEvents(@jakarta.annot return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistLimitRangeForAllNamespacesRequest + */ + public APIlistLimitRangeForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -25994,7 +26298,7 @@ public APIlistLimitRangeForAllNamespacesRequest watch(@jakarta.annotation.Nullab */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listLimitRangeForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listLimitRangeForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -26010,7 +26314,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1LimitRangeList execute() throws ApiException { - ApiResponse localVarResp = listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -26027,7 +26331,7 @@ public V1LimitRangeList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -26044,7 +26348,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listLimitRangeForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listLimitRangeForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -26063,7 +26367,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistLimitRangeForAllNamespacesRequest listLimitRangeForAllNamespaces() { return new APIlistLimitRangeForAllNamespacesRequest(); } - private okhttp3.Call listNamespaceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespaceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -26124,6 +26428,10 @@ private okhttp3.Call listNamespaceCall(@jakarta.annotation.Nullable String prett localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -26158,21 +26466,21 @@ private okhttp3.Call listNamespaceCall(@jakarta.annotation.Nullable String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespaceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listNamespaceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listNamespaceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listNamespaceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespaceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespaceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespaceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespaceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespaceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespaceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespaceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespaceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -26198,6 +26506,8 @@ public class APIlistNamespaceRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -26295,6 +26605,16 @@ public APIlistNamespaceRequest sendInitialEvents(@jakarta.annotation.Nullable Bo return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespaceRequest + */ + public APIlistNamespaceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -26329,7 +26649,7 @@ public APIlistNamespaceRequest watch(@jakarta.annotation.Nullable Boolean watch) */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespaceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespaceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -26345,7 +26665,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1NamespaceList execute() throws ApiException { - ApiResponse localVarResp = listNamespaceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespaceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -26362,7 +26682,7 @@ public V1NamespaceList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespaceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespaceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -26379,7 +26699,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespaceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespaceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -26398,7 +26718,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistNamespaceRequest listNamespace() { return new APIlistNamespaceRequest(); } - private okhttp3.Call listNamespacedConfigMapCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedConfigMapCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -26460,6 +26780,10 @@ private okhttp3.Call listNamespacedConfigMapCall(@jakarta.annotation.Nonnull Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -26494,26 +26818,26 @@ private okhttp3.Call listNamespacedConfigMapCall(@jakarta.annotation.Nonnull Str } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedConfigMapValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedConfigMapValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedConfigMap(Async)"); } - return listNamespacedConfigMapCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedConfigMapCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedConfigMapWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedConfigMapValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedConfigMapWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedConfigMapValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedConfigMapAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedConfigMapAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedConfigMapValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedConfigMapValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -26541,6 +26865,8 @@ public class APIlistNamespacedConfigMapRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -26639,6 +26965,16 @@ public APIlistNamespacedConfigMapRequest sendInitialEvents(@jakarta.annotation.N return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedConfigMapRequest + */ + public APIlistNamespacedConfigMapRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -26673,7 +27009,7 @@ public APIlistNamespacedConfigMapRequest watch(@jakarta.annotation.Nullable Bool */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedConfigMapCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedConfigMapCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -26689,7 +27025,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ConfigMapList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedConfigMapWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedConfigMapWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -26706,7 +27042,7 @@ public V1ConfigMapList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedConfigMapWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedConfigMapWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -26723,7 +27059,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedConfigMapAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedConfigMapAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -26743,7 +27079,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistNamespacedConfigMapRequest listNamespacedConfigMap(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedConfigMapRequest(namespace); } - private okhttp3.Call listNamespacedEndpointsCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEndpointsCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -26805,6 +27141,10 @@ private okhttp3.Call listNamespacedEndpointsCall(@jakarta.annotation.Nonnull Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -26839,26 +27179,26 @@ private okhttp3.Call listNamespacedEndpointsCall(@jakarta.annotation.Nonnull Str } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedEndpointsValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEndpointsValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEndpoints(Async)"); } - return listNamespacedEndpointsCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedEndpointsCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedEndpointsWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedEndpointsValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedEndpointsWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedEndpointsValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedEndpointsAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEndpointsAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedEndpointsValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedEndpointsValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -26886,6 +27226,8 @@ public class APIlistNamespacedEndpointsRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -26984,6 +27326,16 @@ public APIlistNamespacedEndpointsRequest sendInitialEvents(@jakarta.annotation.N return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedEndpointsRequest + */ + public APIlistNamespacedEndpointsRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -27018,7 +27370,7 @@ public APIlistNamespacedEndpointsRequest watch(@jakarta.annotation.Nullable Bool */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedEndpointsCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedEndpointsCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -27034,7 +27386,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1EndpointsList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedEndpointsWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedEndpointsWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -27051,7 +27403,7 @@ public V1EndpointsList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedEndpointsWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedEndpointsWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -27068,7 +27420,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedEndpointsAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedEndpointsAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -27088,7 +27440,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistNamespacedEndpointsRequest listNamespacedEndpoints(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedEndpointsRequest(namespace); } - private okhttp3.Call listNamespacedEventCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEventCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -27150,6 +27502,10 @@ private okhttp3.Call listNamespacedEventCall(@jakarta.annotation.Nonnull String localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -27184,26 +27540,26 @@ private okhttp3.Call listNamespacedEventCall(@jakarta.annotation.Nonnull String } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEvent(Async)"); } - return listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedEventAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEventAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -27231,6 +27587,8 @@ public class APIlistNamespacedEventRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -27329,6 +27687,16 @@ public APIlistNamespacedEventRequest sendInitialEvents(@jakarta.annotation.Nulla return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedEventRequest + */ + public APIlistNamespacedEventRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -27363,7 +27731,7 @@ public APIlistNamespacedEventRequest watch(@jakarta.annotation.Nullable Boolean */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -27379,7 +27747,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public CoreV1EventList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -27396,7 +27764,7 @@ public CoreV1EventList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -27413,7 +27781,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedEventAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedEventAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -27433,7 +27801,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistNamespacedEventRequest listNamespacedEvent(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedEventRequest(namespace); } - private okhttp3.Call listNamespacedLimitRangeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLimitRangeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -27495,6 +27863,10 @@ private okhttp3.Call listNamespacedLimitRangeCall(@jakarta.annotation.Nonnull St localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -27529,26 +27901,26 @@ private okhttp3.Call listNamespacedLimitRangeCall(@jakarta.annotation.Nonnull St } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedLimitRangeValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLimitRangeValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLimitRange(Async)"); } - return listNamespacedLimitRangeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedLimitRangeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedLimitRangeWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedLimitRangeValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedLimitRangeWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedLimitRangeValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedLimitRangeAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedLimitRangeAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedLimitRangeValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedLimitRangeValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -27576,6 +27948,8 @@ public class APIlistNamespacedLimitRangeRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -27674,6 +28048,16 @@ public APIlistNamespacedLimitRangeRequest sendInitialEvents(@jakarta.annotation. return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedLimitRangeRequest + */ + public APIlistNamespacedLimitRangeRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -27708,7 +28092,7 @@ public APIlistNamespacedLimitRangeRequest watch(@jakarta.annotation.Nullable Boo */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedLimitRangeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedLimitRangeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -27724,7 +28108,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1LimitRangeList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedLimitRangeWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedLimitRangeWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -27741,7 +28125,7 @@ public V1LimitRangeList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedLimitRangeWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedLimitRangeWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -27758,7 +28142,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedLimitRangeAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedLimitRangeAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -27778,7 +28162,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistNamespacedLimitRangeRequest listNamespacedLimitRange(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedLimitRangeRequest(namespace); } - private okhttp3.Call listNamespacedPersistentVolumeClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPersistentVolumeClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -27840,6 +28224,10 @@ private okhttp3.Call listNamespacedPersistentVolumeClaimCall(@jakarta.annotation localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -27874,26 +28262,26 @@ private okhttp3.Call listNamespacedPersistentVolumeClaimCall(@jakarta.annotation } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedPersistentVolumeClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPersistentVolumeClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPersistentVolumeClaim(Async)"); } - return listNamespacedPersistentVolumeClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedPersistentVolumeClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedPersistentVolumeClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedPersistentVolumeClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedPersistentVolumeClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPersistentVolumeClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -27921,6 +28309,8 @@ public class APIlistNamespacedPersistentVolumeClaimRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -28019,6 +28409,16 @@ public APIlistNamespacedPersistentVolumeClaimRequest sendInitialEvents(@jakarta. return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedPersistentVolumeClaimRequest + */ + public APIlistNamespacedPersistentVolumeClaimRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -28053,7 +28453,7 @@ public APIlistNamespacedPersistentVolumeClaimRequest watch(@jakarta.annotation.N */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedPersistentVolumeClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedPersistentVolumeClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -28069,7 +28469,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1PersistentVolumeClaimList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -28086,7 +28486,7 @@ public V1PersistentVolumeClaimList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -28103,7 +28503,7 @@ public ApiResponse executeWithHttpInfo() throws Api */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedPersistentVolumeClaimAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedPersistentVolumeClaimAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -28123,7 +28523,7 @@ public okhttp3.Call executeAsync(final ApiCallback public APIlistNamespacedPersistentVolumeClaimRequest listNamespacedPersistentVolumeClaim(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedPersistentVolumeClaimRequest(namespace); } - private okhttp3.Call listNamespacedPodCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -28185,6 +28585,10 @@ private okhttp3.Call listNamespacedPodCall(@jakarta.annotation.Nonnull String na localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -28219,26 +28623,26 @@ private okhttp3.Call listNamespacedPodCall(@jakarta.annotation.Nonnull String na } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedPodValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPod(Async)"); } - return listNamespacedPodCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedPodCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedPodWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedPodValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedPodWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedPodValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedPodAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedPodValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedPodValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -28266,6 +28670,8 @@ public class APIlistNamespacedPodRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -28364,6 +28770,16 @@ public APIlistNamespacedPodRequest sendInitialEvents(@jakarta.annotation.Nullabl return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedPodRequest + */ + public APIlistNamespacedPodRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -28398,7 +28814,7 @@ public APIlistNamespacedPodRequest watch(@jakarta.annotation.Nullable Boolean wa */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedPodCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedPodCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -28414,7 +28830,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1PodList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedPodWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedPodWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -28431,7 +28847,7 @@ public V1PodList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedPodWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedPodWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -28448,7 +28864,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedPodAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedPodAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -28468,7 +28884,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws public APIlistNamespacedPodRequest listNamespacedPod(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedPodRequest(namespace); } - private okhttp3.Call listNamespacedPodTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -28530,6 +28946,10 @@ private okhttp3.Call listNamespacedPodTemplateCall(@jakarta.annotation.Nonnull S localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -28564,26 +28984,26 @@ private okhttp3.Call listNamespacedPodTemplateCall(@jakarta.annotation.Nonnull S } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedPodTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPodTemplate(Async)"); } - return listNamespacedPodTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedPodTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedPodTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedPodTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedPodTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedPodTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedPodTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedPodTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedPodTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -28611,6 +29031,8 @@ public class APIlistNamespacedPodTemplateRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -28709,6 +29131,16 @@ public APIlistNamespacedPodTemplateRequest sendInitialEvents(@jakarta.annotation return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedPodTemplateRequest + */ + public APIlistNamespacedPodTemplateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -28743,7 +29175,7 @@ public APIlistNamespacedPodTemplateRequest watch(@jakarta.annotation.Nullable Bo */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedPodTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedPodTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -28759,7 +29191,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1PodTemplateList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedPodTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedPodTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -28776,7 +29208,7 @@ public V1PodTemplateList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedPodTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedPodTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -28793,7 +29225,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedPodTemplateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedPodTemplateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -28813,7 +29245,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistNamespacedPodTemplateRequest listNamespacedPodTemplate(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedPodTemplateRequest(namespace); } - private okhttp3.Call listNamespacedReplicationControllerCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedReplicationControllerCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -28875,6 +29307,10 @@ private okhttp3.Call listNamespacedReplicationControllerCall(@jakarta.annotation localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -28909,26 +29345,26 @@ private okhttp3.Call listNamespacedReplicationControllerCall(@jakarta.annotation } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedReplicationControllerValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedReplicationControllerValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedReplicationController(Async)"); } - return listNamespacedReplicationControllerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedReplicationControllerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedReplicationControllerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedReplicationControllerWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedReplicationControllerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedReplicationControllerAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -28956,6 +29392,8 @@ public class APIlistNamespacedReplicationControllerRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -29054,6 +29492,16 @@ public APIlistNamespacedReplicationControllerRequest sendInitialEvents(@jakarta. return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedReplicationControllerRequest + */ + public APIlistNamespacedReplicationControllerRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -29088,7 +29536,7 @@ public APIlistNamespacedReplicationControllerRequest watch(@jakarta.annotation.N */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedReplicationControllerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedReplicationControllerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -29104,7 +29552,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ReplicationControllerList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedReplicationControllerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedReplicationControllerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -29121,7 +29569,7 @@ public V1ReplicationControllerList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedReplicationControllerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedReplicationControllerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -29138,7 +29586,7 @@ public ApiResponse executeWithHttpInfo() throws Api */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedReplicationControllerAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedReplicationControllerAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -29158,7 +29606,7 @@ public okhttp3.Call executeAsync(final ApiCallback public APIlistNamespacedReplicationControllerRequest listNamespacedReplicationController(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedReplicationControllerRequest(namespace); } - private okhttp3.Call listNamespacedResourceQuotaCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceQuotaCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -29220,6 +29668,10 @@ private okhttp3.Call listNamespacedResourceQuotaCall(@jakarta.annotation.Nonnull localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -29254,26 +29706,26 @@ private okhttp3.Call listNamespacedResourceQuotaCall(@jakarta.annotation.Nonnull } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceQuotaValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceQuotaValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceQuota(Async)"); } - return listNamespacedResourceQuotaCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceQuotaCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedResourceQuotaWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedResourceQuotaWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedResourceQuotaAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceQuotaAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -29301,6 +29753,8 @@ public class APIlistNamespacedResourceQuotaRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -29399,6 +29853,16 @@ public APIlistNamespacedResourceQuotaRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedResourceQuotaRequest + */ + public APIlistNamespacedResourceQuotaRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -29433,7 +29897,7 @@ public APIlistNamespacedResourceQuotaRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceQuotaCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceQuotaCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -29449,7 +29913,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ResourceQuotaList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedResourceQuotaWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedResourceQuotaWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -29466,7 +29930,7 @@ public V1ResourceQuotaList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedResourceQuotaWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedResourceQuotaWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -29483,7 +29947,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceQuotaAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceQuotaAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -29503,7 +29967,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac public APIlistNamespacedResourceQuotaRequest listNamespacedResourceQuota(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedResourceQuotaRequest(namespace); } - private okhttp3.Call listNamespacedSecretCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedSecretCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -29565,6 +30029,10 @@ private okhttp3.Call listNamespacedSecretCall(@jakarta.annotation.Nonnull String localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -29599,26 +30067,26 @@ private okhttp3.Call listNamespacedSecretCall(@jakarta.annotation.Nonnull String } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedSecretValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedSecretValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedSecret(Async)"); } - return listNamespacedSecretCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedSecretCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedSecretWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedSecretValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedSecretWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedSecretValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedSecretAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedSecretAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedSecretValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedSecretValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -29646,6 +30114,8 @@ public class APIlistNamespacedSecretRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -29744,6 +30214,16 @@ public APIlistNamespacedSecretRequest sendInitialEvents(@jakarta.annotation.Null return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedSecretRequest + */ + public APIlistNamespacedSecretRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -29778,7 +30258,7 @@ public APIlistNamespacedSecretRequest watch(@jakarta.annotation.Nullable Boolean */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedSecretCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedSecretCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -29794,7 +30274,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1SecretList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedSecretWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedSecretWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -29811,7 +30291,7 @@ public V1SecretList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedSecretWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedSecretWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -29828,7 +30308,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedSecretAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedSecretAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -29848,7 +30328,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro public APIlistNamespacedSecretRequest listNamespacedSecret(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedSecretRequest(namespace); } - private okhttp3.Call listNamespacedServiceCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedServiceCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -29910,6 +30390,10 @@ private okhttp3.Call listNamespacedServiceCall(@jakarta.annotation.Nonnull Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -29944,26 +30428,26 @@ private okhttp3.Call listNamespacedServiceCall(@jakarta.annotation.Nonnull Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedServiceValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedServiceValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedService(Async)"); } - return listNamespacedServiceCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedServiceCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedServiceWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedServiceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedServiceWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedServiceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedServiceAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedServiceAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedServiceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedServiceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -29991,6 +30475,8 @@ public class APIlistNamespacedServiceRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -30089,6 +30575,16 @@ public APIlistNamespacedServiceRequest sendInitialEvents(@jakarta.annotation.Nul return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedServiceRequest + */ + public APIlistNamespacedServiceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -30123,7 +30619,7 @@ public APIlistNamespacedServiceRequest watch(@jakarta.annotation.Nullable Boolea */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedServiceCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedServiceCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -30139,7 +30635,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ServiceList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedServiceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedServiceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -30156,7 +30652,7 @@ public V1ServiceList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedServiceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedServiceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -30173,7 +30669,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedServiceAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedServiceAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -30193,7 +30689,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr public APIlistNamespacedServiceRequest listNamespacedService(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedServiceRequest(namespace); } - private okhttp3.Call listNamespacedServiceAccountCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedServiceAccountCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -30255,6 +30751,10 @@ private okhttp3.Call listNamespacedServiceAccountCall(@jakarta.annotation.Nonnul localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -30289,26 +30789,26 @@ private okhttp3.Call listNamespacedServiceAccountCall(@jakarta.annotation.Nonnul } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedServiceAccountValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedServiceAccountValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedServiceAccount(Async)"); } - return listNamespacedServiceAccountCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedServiceAccountCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedServiceAccountWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedServiceAccountValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedServiceAccountWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedServiceAccountValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedServiceAccountAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedServiceAccountAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedServiceAccountValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedServiceAccountValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -30336,6 +30836,8 @@ public class APIlistNamespacedServiceAccountRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -30434,6 +30936,16 @@ public APIlistNamespacedServiceAccountRequest sendInitialEvents(@jakarta.annotat return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedServiceAccountRequest + */ + public APIlistNamespacedServiceAccountRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -30468,7 +30980,7 @@ public APIlistNamespacedServiceAccountRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedServiceAccountCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedServiceAccountCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -30484,7 +30996,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ServiceAccountList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedServiceAccountWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedServiceAccountWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -30501,7 +31013,7 @@ public V1ServiceAccountList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedServiceAccountWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedServiceAccountWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -30518,7 +31030,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedServiceAccountAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedServiceAccountAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -30538,7 +31050,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba public APIlistNamespacedServiceAccountRequest listNamespacedServiceAccount(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedServiceAccountRequest(namespace); } - private okhttp3.Call listNodeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNodeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -30599,6 +31111,10 @@ private okhttp3.Call listNodeCall(@jakarta.annotation.Nullable String pretty, @j localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -30633,21 +31149,21 @@ private okhttp3.Call listNodeCall(@jakarta.annotation.Nullable String pretty, @j } @SuppressWarnings("rawtypes") - private okhttp3.Call listNodeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listNodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listNodeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listNodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNodeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNodeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNodeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNodeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -30673,6 +31189,8 @@ public class APIlistNodeRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -30770,6 +31288,16 @@ public APIlistNodeRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNodeRequest + */ + public APIlistNodeRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -30804,7 +31332,7 @@ public APIlistNodeRequest watch(@jakarta.annotation.Nullable Boolean watch) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -30820,7 +31348,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1NodeList execute() throws ApiException { - ApiResponse localVarResp = listNodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -30837,7 +31365,7 @@ public V1NodeList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -30854,7 +31382,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNodeAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNodeAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -30873,7 +31401,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws public APIlistNodeRequest listNode() { return new APIlistNodeRequest(); } - private okhttp3.Call listPersistentVolumeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPersistentVolumeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -30934,6 +31462,10 @@ private okhttp3.Call listPersistentVolumeCall(@jakarta.annotation.Nullable Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -30968,21 +31500,21 @@ private okhttp3.Call listPersistentVolumeCall(@jakarta.annotation.Nullable Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call listPersistentVolumeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listPersistentVolumeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listPersistentVolumeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listPersistentVolumeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listPersistentVolumeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listPersistentVolumeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listPersistentVolumeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPersistentVolumeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPersistentVolumeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPersistentVolumeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listPersistentVolumeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listPersistentVolumeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -31008,6 +31540,8 @@ public class APIlistPersistentVolumeRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -31105,6 +31639,16 @@ public APIlistPersistentVolumeRequest sendInitialEvents(@jakarta.annotation.Null return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistPersistentVolumeRequest + */ + public APIlistPersistentVolumeRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -31139,7 +31683,7 @@ public APIlistPersistentVolumeRequest watch(@jakarta.annotation.Nullable Boolean */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listPersistentVolumeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPersistentVolumeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -31155,7 +31699,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1PersistentVolumeList execute() throws ApiException { - ApiResponse localVarResp = listPersistentVolumeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listPersistentVolumeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -31172,7 +31716,7 @@ public V1PersistentVolumeList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listPersistentVolumeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listPersistentVolumeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -31189,7 +31733,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listPersistentVolumeAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPersistentVolumeAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -31208,7 +31752,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call public APIlistPersistentVolumeRequest listPersistentVolume() { return new APIlistPersistentVolumeRequest(); } - private okhttp3.Call listPersistentVolumeClaimForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPersistentVolumeClaimForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -31269,6 +31813,10 @@ private okhttp3.Call listPersistentVolumeClaimForAllNamespacesCall(@jakarta.anno localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -31303,21 +31851,21 @@ private okhttp3.Call listPersistentVolumeClaimForAllNamespacesCall(@jakarta.anno } @SuppressWarnings("rawtypes") - private okhttp3.Call listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listPersistentVolumeClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listPersistentVolumeClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listPersistentVolumeClaimForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listPersistentVolumeClaimForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPersistentVolumeClaimForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPersistentVolumeClaimForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -31343,6 +31891,8 @@ public class APIlistPersistentVolumeClaimForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -31440,6 +31990,16 @@ public APIlistPersistentVolumeClaimForAllNamespacesRequest sendInitialEvents(@ja return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistPersistentVolumeClaimForAllNamespacesRequest + */ + public APIlistPersistentVolumeClaimForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -31474,7 +32034,7 @@ public APIlistPersistentVolumeClaimForAllNamespacesRequest watch(@jakarta.annota */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listPersistentVolumeClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPersistentVolumeClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -31490,7 +32050,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1PersistentVolumeClaimList execute() throws ApiException { - ApiResponse localVarResp = listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -31507,7 +32067,7 @@ public V1PersistentVolumeClaimList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -31524,7 +32084,7 @@ public ApiResponse executeWithHttpInfo() throws Api */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listPersistentVolumeClaimForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPersistentVolumeClaimForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -31543,7 +32103,7 @@ public okhttp3.Call executeAsync(final ApiCallback public APIlistPersistentVolumeClaimForAllNamespacesRequest listPersistentVolumeClaimForAllNamespaces() { return new APIlistPersistentVolumeClaimForAllNamespacesRequest(); } - private okhttp3.Call listPodForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -31604,6 +32164,10 @@ private okhttp3.Call listPodForAllNamespacesCall(@jakarta.annotation.Nullable Bo localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -31638,21 +32202,21 @@ private okhttp3.Call listPodForAllNamespacesCall(@jakarta.annotation.Nullable Bo } @SuppressWarnings("rawtypes") - private okhttp3.Call listPodForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listPodForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listPodForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listPodForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listPodForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listPodForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listPodForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPodForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPodForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listPodForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listPodForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -31678,6 +32242,8 @@ public class APIlistPodForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -31775,6 +32341,16 @@ public APIlistPodForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.N return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistPodForAllNamespacesRequest + */ + public APIlistPodForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -31809,7 +32385,7 @@ public APIlistPodForAllNamespacesRequest watch(@jakarta.annotation.Nullable Bool */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listPodForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPodForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -31825,7 +32401,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1PodList execute() throws ApiException { - ApiResponse localVarResp = listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -31842,7 +32418,7 @@ public V1PodList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -31859,7 +32435,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listPodForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPodForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -31878,7 +32454,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws public APIlistPodForAllNamespacesRequest listPodForAllNamespaces() { return new APIlistPodForAllNamespacesRequest(); } - private okhttp3.Call listPodTemplateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodTemplateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -31939,6 +32515,10 @@ private okhttp3.Call listPodTemplateForAllNamespacesCall(@jakarta.annotation.Nul localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -31973,21 +32553,21 @@ private okhttp3.Call listPodTemplateForAllNamespacesCall(@jakarta.annotation.Nul } @SuppressWarnings("rawtypes") - private okhttp3.Call listPodTemplateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listPodTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listPodTemplateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listPodTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listPodTemplateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listPodTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listPodTemplateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPodTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPodTemplateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodTemplateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listPodTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listPodTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -32013,6 +32593,8 @@ public class APIlistPodTemplateForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -32110,6 +32692,16 @@ public APIlistPodTemplateForAllNamespacesRequest sendInitialEvents(@jakarta.anno return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistPodTemplateForAllNamespacesRequest + */ + public APIlistPodTemplateForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -32144,7 +32736,7 @@ public APIlistPodTemplateForAllNamespacesRequest watch(@jakarta.annotation.Nulla */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listPodTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPodTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -32160,7 +32752,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1PodTemplateList execute() throws ApiException { - ApiResponse localVarResp = listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -32177,7 +32769,7 @@ public V1PodTemplateList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -32194,7 +32786,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listPodTemplateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPodTemplateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -32213,7 +32805,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistPodTemplateForAllNamespacesRequest listPodTemplateForAllNamespaces() { return new APIlistPodTemplateForAllNamespacesRequest(); } - private okhttp3.Call listReplicationControllerForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listReplicationControllerForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -32274,6 +32866,10 @@ private okhttp3.Call listReplicationControllerForAllNamespacesCall(@jakarta.anno localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -32308,21 +32904,21 @@ private okhttp3.Call listReplicationControllerForAllNamespacesCall(@jakarta.anno } @SuppressWarnings("rawtypes") - private okhttp3.Call listReplicationControllerForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listReplicationControllerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listReplicationControllerForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listReplicationControllerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listReplicationControllerForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listReplicationControllerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listReplicationControllerForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listReplicationControllerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listReplicationControllerForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listReplicationControllerForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listReplicationControllerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listReplicationControllerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -32348,6 +32944,8 @@ public class APIlistReplicationControllerForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -32445,6 +33043,16 @@ public APIlistReplicationControllerForAllNamespacesRequest sendInitialEvents(@ja return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistReplicationControllerForAllNamespacesRequest + */ + public APIlistReplicationControllerForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -32479,7 +33087,7 @@ public APIlistReplicationControllerForAllNamespacesRequest watch(@jakarta.annota */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listReplicationControllerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listReplicationControllerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -32495,7 +33103,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ReplicationControllerList execute() throws ApiException { - ApiResponse localVarResp = listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -32512,7 +33120,7 @@ public V1ReplicationControllerList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -32529,7 +33137,7 @@ public ApiResponse executeWithHttpInfo() throws Api */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listReplicationControllerForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listReplicationControllerForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -32548,7 +33156,7 @@ public okhttp3.Call executeAsync(final ApiCallback public APIlistReplicationControllerForAllNamespacesRequest listReplicationControllerForAllNamespaces() { return new APIlistReplicationControllerForAllNamespacesRequest(); } - private okhttp3.Call listResourceQuotaForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceQuotaForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -32609,6 +33217,10 @@ private okhttp3.Call listResourceQuotaForAllNamespacesCall(@jakarta.annotation.N localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -32643,21 +33255,21 @@ private okhttp3.Call listResourceQuotaForAllNamespacesCall(@jakarta.annotation.N } @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceQuotaForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listResourceQuotaForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listResourceQuotaForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listResourceQuotaForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listResourceQuotaForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceQuotaForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listResourceQuotaForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceQuotaForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceQuotaForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceQuotaForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listResourceQuotaForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listResourceQuotaForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -32683,6 +33295,8 @@ public class APIlistResourceQuotaForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -32780,6 +33394,16 @@ public APIlistResourceQuotaForAllNamespacesRequest sendInitialEvents(@jakarta.an return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistResourceQuotaForAllNamespacesRequest + */ + public APIlistResourceQuotaForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -32814,7 +33438,7 @@ public APIlistResourceQuotaForAllNamespacesRequest watch(@jakarta.annotation.Nul */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceQuotaForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listResourceQuotaForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -32830,7 +33454,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ResourceQuotaList execute() throws ApiException { - ApiResponse localVarResp = listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -32847,7 +33471,7 @@ public V1ResourceQuotaList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -32864,7 +33488,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceQuotaForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listResourceQuotaForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -32883,7 +33507,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac public APIlistResourceQuotaForAllNamespacesRequest listResourceQuotaForAllNamespaces() { return new APIlistResourceQuotaForAllNamespacesRequest(); } - private okhttp3.Call listSecretForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listSecretForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -32944,6 +33568,10 @@ private okhttp3.Call listSecretForAllNamespacesCall(@jakarta.annotation.Nullable localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -32978,21 +33606,21 @@ private okhttp3.Call listSecretForAllNamespacesCall(@jakarta.annotation.Nullable } @SuppressWarnings("rawtypes") - private okhttp3.Call listSecretForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listSecretForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listSecretForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listSecretForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listSecretForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listSecretForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listSecretForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listSecretForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listSecretForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listSecretForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listSecretForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listSecretForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -33018,6 +33646,8 @@ public class APIlistSecretForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -33115,6 +33745,16 @@ public APIlistSecretForAllNamespacesRequest sendInitialEvents(@jakarta.annotatio return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistSecretForAllNamespacesRequest + */ + public APIlistSecretForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -33149,7 +33789,7 @@ public APIlistSecretForAllNamespacesRequest watch(@jakarta.annotation.Nullable B */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listSecretForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listSecretForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -33165,7 +33805,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1SecretList execute() throws ApiException { - ApiResponse localVarResp = listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -33182,7 +33822,7 @@ public V1SecretList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -33199,7 +33839,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listSecretForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listSecretForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -33218,7 +33858,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thro public APIlistSecretForAllNamespacesRequest listSecretForAllNamespaces() { return new APIlistSecretForAllNamespacesRequest(); } - private okhttp3.Call listServiceAccountForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceAccountForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -33279,6 +33919,10 @@ private okhttp3.Call listServiceAccountForAllNamespacesCall(@jakarta.annotation. localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -33313,21 +33957,21 @@ private okhttp3.Call listServiceAccountForAllNamespacesCall(@jakarta.annotation. } @SuppressWarnings("rawtypes") - private okhttp3.Call listServiceAccountForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listServiceAccountForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listServiceAccountForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listServiceAccountForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listServiceAccountForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listServiceAccountForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listServiceAccountForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listServiceAccountForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listServiceAccountForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceAccountForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listServiceAccountForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listServiceAccountForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -33353,6 +33997,8 @@ public class APIlistServiceAccountForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -33450,6 +34096,16 @@ public APIlistServiceAccountForAllNamespacesRequest sendInitialEvents(@jakarta.a return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistServiceAccountForAllNamespacesRequest + */ + public APIlistServiceAccountForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -33484,7 +34140,7 @@ public APIlistServiceAccountForAllNamespacesRequest watch(@jakarta.annotation.Nu */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listServiceAccountForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listServiceAccountForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -33500,7 +34156,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ServiceAccountList execute() throws ApiException { - ApiResponse localVarResp = listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -33517,7 +34173,7 @@ public V1ServiceAccountList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -33534,7 +34190,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listServiceAccountForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listServiceAccountForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -33553,7 +34209,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba public APIlistServiceAccountForAllNamespacesRequest listServiceAccountForAllNamespaces() { return new APIlistServiceAccountForAllNamespacesRequest(); } - private okhttp3.Call listServiceForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -33614,6 +34270,10 @@ private okhttp3.Call listServiceForAllNamespacesCall(@jakarta.annotation.Nullabl localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -33648,21 +34308,21 @@ private okhttp3.Call listServiceForAllNamespacesCall(@jakarta.annotation.Nullabl } @SuppressWarnings("rawtypes") - private okhttp3.Call listServiceForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listServiceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listServiceForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listServiceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listServiceForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listServiceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listServiceForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listServiceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listServiceForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listServiceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listServiceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -33688,6 +34348,8 @@ public class APIlistServiceForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -33785,6 +34447,16 @@ public APIlistServiceForAllNamespacesRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistServiceForAllNamespacesRequest + */ + public APIlistServiceForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -33819,7 +34491,7 @@ public APIlistServiceForAllNamespacesRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listServiceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listServiceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -33835,7 +34507,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ServiceList execute() throws ApiException { - ApiResponse localVarResp = listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -33852,7 +34524,7 @@ public V1ServiceList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -33869,7 +34541,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listServiceForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listServiceForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java index 20e466c899..177504cb85 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/DiscoveryV1Api.java @@ -326,7 +326,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIcreateNamespacedEndpointSliceRequest createNamespacedEndpointSlice(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1EndpointSlice body) { return new APIcreateNamespacedEndpointSliceRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedEndpointSliceCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEndpointSliceCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -404,6 +404,10 @@ private okhttp3.Call deleteCollectionNamespacedEndpointSliceCall(@jakarta.annota localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -432,26 +436,26 @@ private okhttp3.Call deleteCollectionNamespacedEndpointSliceCall(@jakarta.annota } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedEndpointSliceValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEndpointSliceValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEndpointSlice(Async)"); } - return deleteCollectionNamespacedEndpointSliceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEndpointSliceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedEndpointSliceWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedEndpointSliceWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedEndpointSliceAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEndpointSliceAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -487,6 +491,8 @@ public class APIdeleteCollectionNamespacedEndpointSliceRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -625,6 +631,16 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest sendInitialEvents(@jaka return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedEndpointSliceRequest + */ + public APIdeleteCollectionNamespacedEndpointSliceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -659,7 +675,7 @@ public APIdeleteCollectionNamespacedEndpointSliceRequest body(@jakarta.annotatio */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedEndpointSliceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEndpointSliceCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -675,7 +691,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -692,7 +708,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedEndpointSliceWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -709,7 +725,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedEndpointSliceAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEndpointSliceAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1175,7 +1191,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listEndpointSliceForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEndpointSliceForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1236,6 +1252,10 @@ private okhttp3.Call listEndpointSliceForAllNamespacesCall(@jakarta.annotation.N localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1270,21 +1290,21 @@ private okhttp3.Call listEndpointSliceForAllNamespacesCall(@jakarta.annotation.N } @SuppressWarnings("rawtypes") - private okhttp3.Call listEndpointSliceForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listEndpointSliceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listEndpointSliceForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listEndpointSliceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listEndpointSliceForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listEndpointSliceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listEndpointSliceForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listEndpointSliceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listEndpointSliceForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEndpointSliceForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listEndpointSliceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listEndpointSliceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1310,6 +1330,8 @@ public class APIlistEndpointSliceForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1407,6 +1429,16 @@ public APIlistEndpointSliceForAllNamespacesRequest sendInitialEvents(@jakarta.an return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistEndpointSliceForAllNamespacesRequest + */ + public APIlistEndpointSliceForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1441,7 +1473,7 @@ public APIlistEndpointSliceForAllNamespacesRequest watch(@jakarta.annotation.Nul */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listEndpointSliceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listEndpointSliceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1457,7 +1489,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1EndpointSliceList execute() throws ApiException { - ApiResponse localVarResp = listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1474,7 +1506,7 @@ public V1EndpointSliceList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listEndpointSliceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1491,7 +1523,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listEndpointSliceForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listEndpointSliceForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -1510,7 +1542,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac public APIlistEndpointSliceForAllNamespacesRequest listEndpointSliceForAllNamespaces() { return new APIlistEndpointSliceForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedEndpointSliceCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEndpointSliceCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1572,6 +1604,10 @@ private okhttp3.Call listNamespacedEndpointSliceCall(@jakarta.annotation.Nonnull localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1606,26 +1642,26 @@ private okhttp3.Call listNamespacedEndpointSliceCall(@jakarta.annotation.Nonnull } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedEndpointSliceValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEndpointSliceValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEndpointSlice(Async)"); } - return listNamespacedEndpointSliceCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedEndpointSliceCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedEndpointSliceWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedEndpointSliceWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedEndpointSliceAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEndpointSliceAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedEndpointSliceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1653,6 +1689,8 @@ public class APIlistNamespacedEndpointSliceRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1751,6 +1789,16 @@ public APIlistNamespacedEndpointSliceRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedEndpointSliceRequest + */ + public APIlistNamespacedEndpointSliceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1785,7 +1833,7 @@ public APIlistNamespacedEndpointSliceRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedEndpointSliceCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedEndpointSliceCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1801,7 +1849,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1EndpointSliceList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedEndpointSliceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedEndpointSliceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1818,7 +1866,7 @@ public V1EndpointSliceList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedEndpointSliceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedEndpointSliceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1835,7 +1883,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedEndpointSliceAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedEndpointSliceAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java index d764ae57c3..5ee4c6292d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/EventsV1Api.java @@ -326,7 +326,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr public APIcreateNamespacedEventRequest createNamespacedEvent(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull EventsV1Event body) { return new APIcreateNamespacedEventRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedEventCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -404,6 +404,10 @@ private okhttp3.Call deleteCollectionNamespacedEventCall(@jakarta.annotation.Non localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -432,26 +436,26 @@ private okhttp3.Call deleteCollectionNamespacedEventCall(@jakarta.annotation.Non } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEvent(Async)"); } - return deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedEventAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -487,6 +491,8 @@ public class APIdeleteCollectionNamespacedEventRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -625,6 +631,16 @@ public APIdeleteCollectionNamespacedEventRequest sendInitialEvents(@jakarta.anno return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedEventRequest + */ + public APIdeleteCollectionNamespacedEventRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -659,7 +675,7 @@ public APIdeleteCollectionNamespacedEventRequest body(@jakarta.annotation.Nullab */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEventCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -675,7 +691,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -692,7 +708,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -709,7 +725,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedEventAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedEventAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1175,7 +1191,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listEventForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEventForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1236,6 +1252,10 @@ private okhttp3.Call listEventForAllNamespacesCall(@jakarta.annotation.Nullable localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1270,21 +1290,21 @@ private okhttp3.Call listEventForAllNamespacesCall(@jakarta.annotation.Nullable } @SuppressWarnings("rawtypes") - private okhttp3.Call listEventForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listEventForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listEventForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listEventForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listEventForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listEventForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1310,6 +1330,8 @@ public class APIlistEventForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1407,6 +1429,16 @@ public APIlistEventForAllNamespacesRequest sendInitialEvents(@jakarta.annotation return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistEventForAllNamespacesRequest + */ + public APIlistEventForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1441,7 +1473,7 @@ public APIlistEventForAllNamespacesRequest watch(@jakarta.annotation.Nullable Bo */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1457,7 +1489,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public EventsV1EventList execute() throws ApiException { - ApiResponse localVarResp = listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1474,7 +1506,7 @@ public EventsV1EventList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1491,7 +1523,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listEventForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listEventForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -1510,7 +1542,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistEventForAllNamespacesRequest listEventForAllNamespaces() { return new APIlistEventForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedEventCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEventCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1572,6 +1604,10 @@ private okhttp3.Call listNamespacedEventCall(@jakarta.annotation.Nonnull String localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1606,26 +1642,26 @@ private okhttp3.Call listNamespacedEventCall(@jakarta.annotation.Nonnull String } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEventValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEvent(Async)"); } - return listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedEventWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedEventAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedEventAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1653,6 +1689,8 @@ public class APIlistNamespacedEventRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1751,6 +1789,16 @@ public APIlistNamespacedEventRequest sendInitialEvents(@jakarta.annotation.Nulla return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedEventRequest + */ + public APIlistNamespacedEventRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1785,7 +1833,7 @@ public APIlistNamespacedEventRequest watch(@jakarta.annotation.Nullable Boolean */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1801,7 +1849,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public EventsV1EventList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1818,7 +1866,7 @@ public EventsV1EventList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1835,7 +1883,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedEventAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedEventAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java index 5dbdfb1b3f..4f29c7159f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/FlowcontrolApiserverV1Api.java @@ -558,7 +558,7 @@ public okhttp3.Call executeAsync(final ApiCallback public APIcreatePriorityLevelConfigurationRequest createPriorityLevelConfiguration(@jakarta.annotation.Nonnull V1PriorityLevelConfiguration body) { return new APIcreatePriorityLevelConfigurationRequest(body); } - private okhttp3.Call deleteCollectionFlowSchemaCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionFlowSchemaCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -635,6 +635,10 @@ private okhttp3.Call deleteCollectionFlowSchemaCall(@jakarta.annotation.Nullable localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -663,21 +667,21 @@ private okhttp3.Call deleteCollectionFlowSchemaCall(@jakarta.annotation.Nullable } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionFlowSchemaValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionFlowSchemaCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionFlowSchemaValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionFlowSchemaCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionFlowSchemaWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionFlowSchemaValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionFlowSchemaWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionFlowSchemaValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionFlowSchemaAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionFlowSchemaAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionFlowSchemaValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionFlowSchemaValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -711,6 +715,8 @@ public class APIdeleteCollectionFlowSchemaRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -848,6 +854,16 @@ public APIdeleteCollectionFlowSchemaRequest sendInitialEvents(@jakarta.annotatio return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionFlowSchemaRequest + */ + public APIdeleteCollectionFlowSchemaRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -882,7 +898,7 @@ public APIdeleteCollectionFlowSchemaRequest body(@jakarta.annotation.Nullable V1 */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionFlowSchemaCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionFlowSchemaCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -898,7 +914,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionFlowSchemaWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionFlowSchemaWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -915,7 +931,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionFlowSchemaWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionFlowSchemaWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -932,7 +948,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionFlowSchemaAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionFlowSchemaAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -951,7 +967,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionFlowSchemaRequest deleteCollectionFlowSchema() { return new APIdeleteCollectionFlowSchemaRequest(); } - private okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1028,6 +1044,10 @@ private okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(@jakarta.ann localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1056,21 +1076,21 @@ private okhttp3.Call deleteCollectionPriorityLevelConfigurationCall(@jakarta.ann } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionPriorityLevelConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionPriorityLevelConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionPriorityLevelConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionPriorityLevelConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionPriorityLevelConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionPriorityLevelConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionPriorityLevelConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPriorityLevelConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionPriorityLevelConfigurationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1104,6 +1124,8 @@ public class APIdeleteCollectionPriorityLevelConfigurationRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1241,6 +1263,16 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest sendInitialEvents(@j return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionPriorityLevelConfigurationRequest + */ + public APIdeleteCollectionPriorityLevelConfigurationRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1275,7 +1307,7 @@ public APIdeleteCollectionPriorityLevelConfigurationRequest body(@jakarta.annota */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionPriorityLevelConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionPriorityLevelConfigurationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -1291,7 +1323,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionPriorityLevelConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionPriorityLevelConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -1308,7 +1340,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionPriorityLevelConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionPriorityLevelConfigurationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -1325,7 +1357,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionPriorityLevelConfigurationAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionPriorityLevelConfigurationAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2060,7 +2092,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listFlowSchemaCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listFlowSchemaCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2121,6 +2153,10 @@ private okhttp3.Call listFlowSchemaCall(@jakarta.annotation.Nullable String pret localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2155,21 +2191,21 @@ private okhttp3.Call listFlowSchemaCall(@jakarta.annotation.Nullable String pret } @SuppressWarnings("rawtypes") - private okhttp3.Call listFlowSchemaValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listFlowSchemaCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listFlowSchemaValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listFlowSchemaCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listFlowSchemaWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listFlowSchemaValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listFlowSchemaWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listFlowSchemaValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listFlowSchemaAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listFlowSchemaAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listFlowSchemaValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listFlowSchemaValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2195,6 +2231,8 @@ public class APIlistFlowSchemaRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -2292,6 +2330,16 @@ public APIlistFlowSchemaRequest sendInitialEvents(@jakarta.annotation.Nullable B return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistFlowSchemaRequest + */ + public APIlistFlowSchemaRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2326,7 +2374,7 @@ public APIlistFlowSchemaRequest watch(@jakarta.annotation.Nullable Boolean watch */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listFlowSchemaCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listFlowSchemaCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -2342,7 +2390,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1FlowSchemaList execute() throws ApiException { - ApiResponse localVarResp = listFlowSchemaWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listFlowSchemaWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -2359,7 +2407,7 @@ public V1FlowSchemaList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listFlowSchemaWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listFlowSchemaWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -2376,7 +2424,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listFlowSchemaAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listFlowSchemaAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -2395,7 +2443,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistFlowSchemaRequest listFlowSchema() { return new APIlistFlowSchemaRequest(); } - private okhttp3.Call listPriorityLevelConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPriorityLevelConfigurationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2456,6 +2504,10 @@ private okhttp3.Call listPriorityLevelConfigurationCall(@jakarta.annotation.Null localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2490,21 +2542,21 @@ private okhttp3.Call listPriorityLevelConfigurationCall(@jakarta.annotation.Null } @SuppressWarnings("rawtypes") - private okhttp3.Call listPriorityLevelConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listPriorityLevelConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listPriorityLevelConfigurationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listPriorityLevelConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listPriorityLevelConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listPriorityLevelConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listPriorityLevelConfigurationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPriorityLevelConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPriorityLevelConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPriorityLevelConfigurationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listPriorityLevelConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listPriorityLevelConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2530,6 +2582,8 @@ public class APIlistPriorityLevelConfigurationRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -2627,6 +2681,16 @@ public APIlistPriorityLevelConfigurationRequest sendInitialEvents(@jakarta.annot return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistPriorityLevelConfigurationRequest + */ + public APIlistPriorityLevelConfigurationRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2661,7 +2725,7 @@ public APIlistPriorityLevelConfigurationRequest watch(@jakarta.annotation.Nullab */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listPriorityLevelConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPriorityLevelConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -2677,7 +2741,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1PriorityLevelConfigurationList execute() throws ApiException { - ApiResponse localVarResp = listPriorityLevelConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listPriorityLevelConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -2694,7 +2758,7 @@ public V1PriorityLevelConfigurationList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listPriorityLevelConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listPriorityLevelConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -2711,7 +2775,7 @@ public ApiResponse executeWithHttpInfo() throw */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listPriorityLevelConfigurationAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPriorityLevelConfigurationAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java index a0dbe487eb..5865baa99a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/InternalApiserverV1alpha1Api.java @@ -316,7 +316,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call public APIcreateStorageVersionRequest createStorageVersion(@jakarta.annotation.Nonnull V1alpha1StorageVersion body) { return new APIcreateStorageVersionRequest(body); } - private okhttp3.Call deleteCollectionStorageVersionCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageVersionCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -393,6 +393,10 @@ private okhttp3.Call deleteCollectionStorageVersionCall(@jakarta.annotation.Null localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -421,21 +425,21 @@ private okhttp3.Call deleteCollectionStorageVersionCall(@jakarta.annotation.Null } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionStorageVersionValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionStorageVersionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionStorageVersionValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionStorageVersionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionStorageVersionWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionStorageVersionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionStorageVersionWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionStorageVersionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionStorageVersionAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageVersionAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionStorageVersionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionStorageVersionValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -469,6 +473,8 @@ public class APIdeleteCollectionStorageVersionRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -606,6 +612,16 @@ public APIdeleteCollectionStorageVersionRequest sendInitialEvents(@jakarta.annot return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionStorageVersionRequest + */ + public APIdeleteCollectionStorageVersionRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -640,7 +656,7 @@ public APIdeleteCollectionStorageVersionRequest body(@jakarta.annotation.Nullabl */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionStorageVersionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionStorageVersionCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -656,7 +672,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionStorageVersionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionStorageVersionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -673,7 +689,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionStorageVersionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionStorageVersionWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -690,7 +706,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionStorageVersionAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionStorageVersionAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1145,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listStorageVersionCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageVersionCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1206,6 +1222,10 @@ private okhttp3.Call listStorageVersionCall(@jakarta.annotation.Nullable String localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1240,21 +1260,21 @@ private okhttp3.Call listStorageVersionCall(@jakarta.annotation.Nullable String } @SuppressWarnings("rawtypes") - private okhttp3.Call listStorageVersionValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listStorageVersionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listStorageVersionValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listStorageVersionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listStorageVersionWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listStorageVersionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listStorageVersionWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listStorageVersionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listStorageVersionAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageVersionAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listStorageVersionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listStorageVersionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1280,6 +1300,8 @@ public class APIlistStorageVersionRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1377,6 +1399,16 @@ public APIlistStorageVersionRequest sendInitialEvents(@jakarta.annotation.Nullab return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistStorageVersionRequest + */ + public APIlistStorageVersionRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1411,7 +1443,7 @@ public APIlistStorageVersionRequest watch(@jakarta.annotation.Nullable Boolean w */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listStorageVersionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listStorageVersionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1427,7 +1459,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1alpha1StorageVersionList execute() throws ApiException { - ApiResponse localVarResp = listStorageVersionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listStorageVersionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1444,7 +1476,7 @@ public V1alpha1StorageVersionList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listStorageVersionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listStorageVersionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1461,7 +1493,7 @@ public ApiResponse executeWithHttpInfo() throws ApiE */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listStorageVersionAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listStorageVersionAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java index adefee13be..d5588825da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1Api.java @@ -1304,7 +1304,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr public APIcreateServiceCIDRRequest createServiceCIDR(@jakarta.annotation.Nonnull V1ServiceCIDR body) { return new APIcreateServiceCIDRRequest(body); } - private okhttp3.Call deleteCollectionIPAddressCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionIPAddressCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1381,6 +1381,10 @@ private okhttp3.Call deleteCollectionIPAddressCall(@jakarta.annotation.Nullable localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1409,21 +1413,21 @@ private okhttp3.Call deleteCollectionIPAddressCall(@jakarta.annotation.Nullable } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionIPAddressValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionIPAddressValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionIPAddressWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionIPAddressWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionIPAddressAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionIPAddressAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1457,6 +1461,8 @@ public class APIdeleteCollectionIPAddressRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1594,6 +1600,16 @@ public APIdeleteCollectionIPAddressRequest sendInitialEvents(@jakarta.annotation return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionIPAddressRequest + */ + public APIdeleteCollectionIPAddressRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1628,7 +1644,7 @@ public APIdeleteCollectionIPAddressRequest body(@jakarta.annotation.Nullable V1D */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -1644,7 +1660,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -1661,7 +1677,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -1678,7 +1694,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionIPAddressAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionIPAddressAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1697,7 +1713,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionIPAddressRequest deleteCollectionIPAddress() { return new APIdeleteCollectionIPAddressRequest(); } - private okhttp3.Call deleteCollectionIngressClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionIngressClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1774,6 +1790,10 @@ private okhttp3.Call deleteCollectionIngressClassCall(@jakarta.annotation.Nullab localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1802,21 +1822,21 @@ private okhttp3.Call deleteCollectionIngressClassCall(@jakarta.annotation.Nullab } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionIngressClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionIngressClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionIngressClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionIngressClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionIngressClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionIngressClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionIngressClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionIngressClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionIngressClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionIngressClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionIngressClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionIngressClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1850,6 +1870,8 @@ public class APIdeleteCollectionIngressClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1987,6 +2009,16 @@ public APIdeleteCollectionIngressClassRequest sendInitialEvents(@jakarta.annotat return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionIngressClassRequest + */ + public APIdeleteCollectionIngressClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2021,7 +2053,7 @@ public APIdeleteCollectionIngressClassRequest body(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionIngressClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionIngressClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -2037,7 +2069,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -2054,7 +2086,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionIngressClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -2071,7 +2103,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionIngressClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionIngressClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2090,7 +2122,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionIngressClassRequest deleteCollectionIngressClass() { return new APIdeleteCollectionIngressClassRequest(); } - private okhttp3.Call deleteCollectionNamespacedIngressCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedIngressCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2168,6 +2200,10 @@ private okhttp3.Call deleteCollectionNamespacedIngressCall(@jakarta.annotation.N localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2196,26 +2232,26 @@ private okhttp3.Call deleteCollectionNamespacedIngressCall(@jakarta.annotation.N } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedIngressValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedIngressValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedIngress(Async)"); } - return deleteCollectionNamespacedIngressCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedIngressCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedIngressWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedIngressWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedIngressAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedIngressAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2251,6 +2287,8 @@ public class APIdeleteCollectionNamespacedIngressRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -2389,6 +2427,16 @@ public APIdeleteCollectionNamespacedIngressRequest sendInitialEvents(@jakarta.an return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedIngressRequest + */ + public APIdeleteCollectionNamespacedIngressRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2423,7 +2471,7 @@ public APIdeleteCollectionNamespacedIngressRequest body(@jakarta.annotation.Null */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedIngressCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedIngressCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -2439,7 +2487,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -2456,7 +2504,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -2473,7 +2521,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedIngressAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedIngressAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2493,7 +2541,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedIngressRequest deleteCollectionNamespacedIngress(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedIngressRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2571,6 +2619,10 @@ private okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(@jakarta.annota localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2599,26 +2651,26 @@ private okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(@jakarta.annota } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedNetworkPolicy(Async)"); } - return deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedNetworkPolicyWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedNetworkPolicyWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedNetworkPolicyAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedNetworkPolicyAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2654,6 +2706,8 @@ public class APIdeleteCollectionNamespacedNetworkPolicyRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -2792,6 +2846,16 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest sendInitialEvents(@jaka return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedNetworkPolicyRequest + */ + public APIdeleteCollectionNamespacedNetworkPolicyRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2826,7 +2890,7 @@ public APIdeleteCollectionNamespacedNetworkPolicyRequest body(@jakarta.annotatio */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -2842,7 +2906,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -2859,7 +2923,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -2876,7 +2940,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedNetworkPolicyAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedNetworkPolicyAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2896,7 +2960,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedNetworkPolicyRequest deleteCollectionNamespacedNetworkPolicy(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedNetworkPolicyRequest(namespace); } - private okhttp3.Call deleteCollectionServiceCIDRCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionServiceCIDRCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2973,6 +3037,10 @@ private okhttp3.Call deleteCollectionServiceCIDRCall(@jakarta.annotation.Nullabl localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -3001,21 +3069,21 @@ private okhttp3.Call deleteCollectionServiceCIDRCall(@jakarta.annotation.Nullabl } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionServiceCIDRValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionServiceCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionServiceCIDRValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionServiceCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionServiceCIDRWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionServiceCIDRWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionServiceCIDRAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionServiceCIDRAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -3049,6 +3117,8 @@ public class APIdeleteCollectionServiceCIDRRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -3186,6 +3256,16 @@ public APIdeleteCollectionServiceCIDRRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionServiceCIDRRequest + */ + public APIdeleteCollectionServiceCIDRRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -3220,7 +3300,7 @@ public APIdeleteCollectionServiceCIDRRequest body(@jakarta.annotation.Nullable V */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionServiceCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionServiceCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -3236,7 +3316,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -3253,7 +3333,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -3270,7 +3350,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionServiceCIDRAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionServiceCIDRAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -4865,7 +4945,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listIPAddressCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listIPAddressCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4926,6 +5006,10 @@ private okhttp3.Call listIPAddressCall(@jakarta.annotation.Nullable String prett localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -4960,21 +5044,21 @@ private okhttp3.Call listIPAddressCall(@jakarta.annotation.Nullable String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call listIPAddressValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listIPAddressValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listIPAddressWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listIPAddressWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listIPAddressAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listIPAddressAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5000,6 +5084,8 @@ public class APIlistIPAddressRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5097,6 +5183,16 @@ public APIlistIPAddressRequest sendInitialEvents(@jakarta.annotation.Nullable Bo return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistIPAddressRequest + */ + public APIlistIPAddressRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -5131,7 +5227,7 @@ public APIlistIPAddressRequest watch(@jakarta.annotation.Nullable Boolean watch) */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -5147,7 +5243,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1IPAddressList execute() throws ApiException { - ApiResponse localVarResp = listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -5164,7 +5260,7 @@ public V1IPAddressList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -5181,7 +5277,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listIPAddressAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listIPAddressAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -5200,7 +5296,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistIPAddressRequest listIPAddress() { return new APIlistIPAddressRequest(); } - private okhttp3.Call listIngressClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listIngressClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5261,6 +5357,10 @@ private okhttp3.Call listIngressClassCall(@jakarta.annotation.Nullable String pr localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5295,21 +5395,21 @@ private okhttp3.Call listIngressClassCall(@jakarta.annotation.Nullable String pr } @SuppressWarnings("rawtypes") - private okhttp3.Call listIngressClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listIngressClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listIngressClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listIngressClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listIngressClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listIngressClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listIngressClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listIngressClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listIngressClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listIngressClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listIngressClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listIngressClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5335,6 +5435,8 @@ public class APIlistIngressClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5432,6 +5534,16 @@ public APIlistIngressClassRequest sendInitialEvents(@jakarta.annotation.Nullable return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistIngressClassRequest + */ + public APIlistIngressClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -5466,7 +5578,7 @@ public APIlistIngressClassRequest watch(@jakarta.annotation.Nullable Boolean wat */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listIngressClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listIngressClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -5482,7 +5594,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1IngressClassList execute() throws ApiException { - ApiResponse localVarResp = listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -5499,7 +5611,7 @@ public V1IngressClassList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listIngressClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -5516,7 +5628,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listIngressClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listIngressClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -5535,7 +5647,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback public APIlistIngressClassRequest listIngressClass() { return new APIlistIngressClassRequest(); } - private okhttp3.Call listIngressForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listIngressForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5596,6 +5708,10 @@ private okhttp3.Call listIngressForAllNamespacesCall(@jakarta.annotation.Nullabl localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5630,21 +5746,21 @@ private okhttp3.Call listIngressForAllNamespacesCall(@jakarta.annotation.Nullabl } @SuppressWarnings("rawtypes") - private okhttp3.Call listIngressForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listIngressForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listIngressForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listIngressForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listIngressForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listIngressForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listIngressForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listIngressForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5670,6 +5786,8 @@ public class APIlistIngressForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5767,6 +5885,16 @@ public APIlistIngressForAllNamespacesRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistIngressForAllNamespacesRequest + */ + public APIlistIngressForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -5801,7 +5929,7 @@ public APIlistIngressForAllNamespacesRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listIngressForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listIngressForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -5817,7 +5945,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1IngressList execute() throws ApiException { - ApiResponse localVarResp = listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -5834,7 +5962,7 @@ public V1IngressList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -5851,7 +5979,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listIngressForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listIngressForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -5870,7 +5998,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr public APIlistIngressForAllNamespacesRequest listIngressForAllNamespaces() { return new APIlistIngressForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedIngressCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedIngressCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5932,6 +6060,10 @@ private okhttp3.Call listNamespacedIngressCall(@jakarta.annotation.Nonnull Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5966,26 +6098,26 @@ private okhttp3.Call listNamespacedIngressCall(@jakarta.annotation.Nonnull Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedIngressValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedIngressValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedIngress(Async)"); } - return listNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedIngressWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedIngressWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedIngressAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedIngressAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -6013,6 +6145,8 @@ public class APIlistNamespacedIngressRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -6111,6 +6245,16 @@ public APIlistNamespacedIngressRequest sendInitialEvents(@jakarta.annotation.Nul return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedIngressRequest + */ + public APIlistNamespacedIngressRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -6145,7 +6289,7 @@ public APIlistNamespacedIngressRequest watch(@jakarta.annotation.Nullable Boolea */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -6161,7 +6305,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1IngressList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -6178,7 +6322,7 @@ public V1IngressList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -6195,7 +6339,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedIngressAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedIngressAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -6215,7 +6359,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr public APIlistNamespacedIngressRequest listNamespacedIngress(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedIngressRequest(namespace); } - private okhttp3.Call listNamespacedNetworkPolicyCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedNetworkPolicyCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6277,6 +6421,10 @@ private okhttp3.Call listNamespacedNetworkPolicyCall(@jakarta.annotation.Nonnull localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -6311,26 +6459,26 @@ private okhttp3.Call listNamespacedNetworkPolicyCall(@jakarta.annotation.Nonnull } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedNetworkPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedNetworkPolicyValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedNetworkPolicy(Async)"); } - return listNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedNetworkPolicyWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedNetworkPolicyWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedNetworkPolicyAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedNetworkPolicyAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -6358,6 +6506,8 @@ public class APIlistNamespacedNetworkPolicyRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -6456,6 +6606,16 @@ public APIlistNamespacedNetworkPolicyRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedNetworkPolicyRequest + */ + public APIlistNamespacedNetworkPolicyRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -6490,7 +6650,7 @@ public APIlistNamespacedNetworkPolicyRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -6506,7 +6666,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1NetworkPolicyList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -6523,7 +6683,7 @@ public V1NetworkPolicyList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -6540,7 +6700,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedNetworkPolicyAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedNetworkPolicyAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -6560,7 +6720,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac public APIlistNamespacedNetworkPolicyRequest listNamespacedNetworkPolicy(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedNetworkPolicyRequest(namespace); } - private okhttp3.Call listNetworkPolicyForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNetworkPolicyForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6621,6 +6781,10 @@ private okhttp3.Call listNetworkPolicyForAllNamespacesCall(@jakarta.annotation.N localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -6655,21 +6819,21 @@ private okhttp3.Call listNetworkPolicyForAllNamespacesCall(@jakarta.annotation.N } @SuppressWarnings("rawtypes") - private okhttp3.Call listNetworkPolicyForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listNetworkPolicyForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listNetworkPolicyForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listNetworkPolicyForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNetworkPolicyForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNetworkPolicyForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNetworkPolicyForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNetworkPolicyForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -6695,6 +6859,8 @@ public class APIlistNetworkPolicyForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -6792,6 +6958,16 @@ public APIlistNetworkPolicyForAllNamespacesRequest sendInitialEvents(@jakarta.an return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNetworkPolicyForAllNamespacesRequest + */ + public APIlistNetworkPolicyForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -6826,7 +7002,7 @@ public APIlistNetworkPolicyForAllNamespacesRequest watch(@jakarta.annotation.Nul */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNetworkPolicyForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNetworkPolicyForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -6842,7 +7018,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1NetworkPolicyList execute() throws ApiException { - ApiResponse localVarResp = listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -6859,7 +7035,7 @@ public V1NetworkPolicyList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -6876,7 +7052,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNetworkPolicyForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNetworkPolicyForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -6895,7 +7071,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac public APIlistNetworkPolicyForAllNamespacesRequest listNetworkPolicyForAllNamespaces() { return new APIlistNetworkPolicyForAllNamespacesRequest(); } - private okhttp3.Call listServiceCIDRCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceCIDRCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6956,6 +7132,10 @@ private okhttp3.Call listServiceCIDRCall(@jakarta.annotation.Nullable String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -6990,21 +7170,21 @@ private okhttp3.Call listServiceCIDRCall(@jakarta.annotation.Nullable String pre } @SuppressWarnings("rawtypes") - private okhttp3.Call listServiceCIDRValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listServiceCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listServiceCIDRValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listServiceCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listServiceCIDRWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listServiceCIDRWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listServiceCIDRAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceCIDRAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -7030,6 +7210,8 @@ public class APIlistServiceCIDRRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -7127,6 +7309,16 @@ public APIlistServiceCIDRRequest sendInitialEvents(@jakarta.annotation.Nullable return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistServiceCIDRRequest + */ + public APIlistServiceCIDRRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -7161,7 +7353,7 @@ public APIlistServiceCIDRRequest watch(@jakarta.annotation.Nullable Boolean watc */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listServiceCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listServiceCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -7177,7 +7369,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ServiceCIDRList execute() throws ApiException { - ApiResponse localVarResp = listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -7194,7 +7386,7 @@ public V1ServiceCIDRList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -7211,7 +7403,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listServiceCIDRAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listServiceCIDRAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java index 14a7d22f18..9737fe82f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NetworkingV1beta1Api.java @@ -558,7 +558,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback public APIcreateServiceCIDRRequest createServiceCIDR(@jakarta.annotation.Nonnull V1beta1ServiceCIDR body) { return new APIcreateServiceCIDRRequest(body); } - private okhttp3.Call deleteCollectionIPAddressCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionIPAddressCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -635,6 +635,10 @@ private okhttp3.Call deleteCollectionIPAddressCall(@jakarta.annotation.Nullable localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -663,21 +667,21 @@ private okhttp3.Call deleteCollectionIPAddressCall(@jakarta.annotation.Nullable } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionIPAddressValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionIPAddressValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionIPAddressWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionIPAddressWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionIPAddressAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionIPAddressAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionIPAddressValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -711,6 +715,8 @@ public class APIdeleteCollectionIPAddressRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -848,6 +854,16 @@ public APIdeleteCollectionIPAddressRequest sendInitialEvents(@jakarta.annotation return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionIPAddressRequest + */ + public APIdeleteCollectionIPAddressRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -882,7 +898,7 @@ public APIdeleteCollectionIPAddressRequest body(@jakarta.annotation.Nullable V1D */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionIPAddressCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -898,7 +914,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -915,7 +931,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionIPAddressWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -932,7 +948,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionIPAddressAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionIPAddressAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -951,7 +967,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionIPAddressRequest deleteCollectionIPAddress() { return new APIdeleteCollectionIPAddressRequest(); } - private okhttp3.Call deleteCollectionServiceCIDRCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionServiceCIDRCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1028,6 +1044,10 @@ private okhttp3.Call deleteCollectionServiceCIDRCall(@jakarta.annotation.Nullabl localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1056,21 +1076,21 @@ private okhttp3.Call deleteCollectionServiceCIDRCall(@jakarta.annotation.Nullabl } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionServiceCIDRValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionServiceCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionServiceCIDRValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionServiceCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionServiceCIDRWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionServiceCIDRWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionServiceCIDRAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionServiceCIDRAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionServiceCIDRValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1104,6 +1124,8 @@ public class APIdeleteCollectionServiceCIDRRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1241,6 +1263,16 @@ public APIdeleteCollectionServiceCIDRRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionServiceCIDRRequest + */ + public APIdeleteCollectionServiceCIDRRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1275,7 +1307,7 @@ public APIdeleteCollectionServiceCIDRRequest body(@jakarta.annotation.Nullable V */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionServiceCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionServiceCIDRCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -1291,7 +1323,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -1308,7 +1340,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionServiceCIDRWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -1325,7 +1357,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionServiceCIDRAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionServiceCIDRAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2060,7 +2092,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listIPAddressCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listIPAddressCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2121,6 +2153,10 @@ private okhttp3.Call listIPAddressCall(@jakarta.annotation.Nullable String prett localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2155,21 +2191,21 @@ private okhttp3.Call listIPAddressCall(@jakarta.annotation.Nullable String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call listIPAddressValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listIPAddressValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listIPAddressWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listIPAddressWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listIPAddressAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listIPAddressAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listIPAddressValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2195,6 +2231,8 @@ public class APIlistIPAddressRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -2292,6 +2330,16 @@ public APIlistIPAddressRequest sendInitialEvents(@jakarta.annotation.Nullable Bo return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistIPAddressRequest + */ + public APIlistIPAddressRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2326,7 +2374,7 @@ public APIlistIPAddressRequest watch(@jakarta.annotation.Nullable Boolean watch) */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listIPAddressCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -2342,7 +2390,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1IPAddressList execute() throws ApiException { - ApiResponse localVarResp = listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -2359,7 +2407,7 @@ public V1beta1IPAddressList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listIPAddressWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -2376,7 +2424,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listIPAddressAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listIPAddressAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -2395,7 +2443,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba public APIlistIPAddressRequest listIPAddress() { return new APIlistIPAddressRequest(); } - private okhttp3.Call listServiceCIDRCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceCIDRCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2456,6 +2504,10 @@ private okhttp3.Call listServiceCIDRCall(@jakarta.annotation.Nullable String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2490,21 +2542,21 @@ private okhttp3.Call listServiceCIDRCall(@jakarta.annotation.Nullable String pre } @SuppressWarnings("rawtypes") - private okhttp3.Call listServiceCIDRValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listServiceCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listServiceCIDRValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listServiceCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listServiceCIDRWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listServiceCIDRWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listServiceCIDRAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listServiceCIDRAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listServiceCIDRValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2530,6 +2582,8 @@ public class APIlistServiceCIDRRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -2627,6 +2681,16 @@ public APIlistServiceCIDRRequest sendInitialEvents(@jakarta.annotation.Nullable return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistServiceCIDRRequest + */ + public APIlistServiceCIDRRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2661,7 +2725,7 @@ public APIlistServiceCIDRRequest watch(@jakarta.annotation.Nullable Boolean watc */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listServiceCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listServiceCIDRCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -2677,7 +2741,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1ServiceCIDRList execute() throws ApiException { - ApiResponse localVarResp = listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -2694,7 +2758,7 @@ public V1beta1ServiceCIDRList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listServiceCIDRWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -2711,7 +2775,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listServiceCIDRAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listServiceCIDRAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java index 3dc4a7f96b..b43655cc64 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/NodeV1Api.java @@ -316,7 +316,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) th public APIcreateRuntimeClassRequest createRuntimeClass(@jakarta.annotation.Nonnull V1RuntimeClass body) { return new APIcreateRuntimeClassRequest(body); } - private okhttp3.Call deleteCollectionRuntimeClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionRuntimeClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -393,6 +393,10 @@ private okhttp3.Call deleteCollectionRuntimeClassCall(@jakarta.annotation.Nullab localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -421,21 +425,21 @@ private okhttp3.Call deleteCollectionRuntimeClassCall(@jakarta.annotation.Nullab } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionRuntimeClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionRuntimeClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionRuntimeClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionRuntimeClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionRuntimeClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionRuntimeClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionRuntimeClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionRuntimeClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionRuntimeClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionRuntimeClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionRuntimeClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionRuntimeClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -469,6 +473,8 @@ public class APIdeleteCollectionRuntimeClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -606,6 +612,16 @@ public APIdeleteCollectionRuntimeClassRequest sendInitialEvents(@jakarta.annotat return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionRuntimeClassRequest + */ + public APIdeleteCollectionRuntimeClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -640,7 +656,7 @@ public APIdeleteCollectionRuntimeClassRequest body(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionRuntimeClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionRuntimeClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -656,7 +672,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -673,7 +689,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -690,7 +706,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionRuntimeClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionRuntimeClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1145,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listRuntimeClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listRuntimeClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1206,6 +1222,10 @@ private okhttp3.Call listRuntimeClassCall(@jakarta.annotation.Nullable String pr localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1240,21 +1260,21 @@ private okhttp3.Call listRuntimeClassCall(@jakarta.annotation.Nullable String pr } @SuppressWarnings("rawtypes") - private okhttp3.Call listRuntimeClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listRuntimeClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listRuntimeClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listRuntimeClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listRuntimeClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listRuntimeClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listRuntimeClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listRuntimeClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listRuntimeClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listRuntimeClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listRuntimeClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listRuntimeClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1280,6 +1300,8 @@ public class APIlistRuntimeClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1377,6 +1399,16 @@ public APIlistRuntimeClassRequest sendInitialEvents(@jakarta.annotation.Nullable return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistRuntimeClassRequest + */ + public APIlistRuntimeClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1411,7 +1443,7 @@ public APIlistRuntimeClassRequest watch(@jakarta.annotation.Nullable Boolean wat */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listRuntimeClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listRuntimeClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1427,7 +1459,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1RuntimeClassList execute() throws ApiException { - ApiResponse localVarResp = listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1444,7 +1476,7 @@ public V1RuntimeClassList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1461,7 +1493,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listRuntimeClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listRuntimeClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java index 1c6ca4e968..ff9f53d413 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/PolicyV1Api.java @@ -326,7 +326,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callb public APIcreateNamespacedPodDisruptionBudgetRequest createNamespacedPodDisruptionBudget(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1PodDisruptionBudget body) { return new APIcreateNamespacedPodDisruptionBudgetRequest(namespace, body); } - private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -404,6 +404,10 @@ private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(@jakarta. localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -432,26 +436,26 @@ private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(@jakarta. } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodDisruptionBudget(Async)"); } - return deleteCollectionNamespacedPodDisruptionBudgetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedPodDisruptionBudgetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -487,6 +491,8 @@ public class APIdeleteCollectionNamespacedPodDisruptionBudgetRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -625,6 +631,16 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest sendInitialEvents return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedPodDisruptionBudgetRequest + */ + public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -659,7 +675,7 @@ public APIdeleteCollectionNamespacedPodDisruptionBudgetRequest body(@jakarta.ann */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedPodDisruptionBudgetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedPodDisruptionBudgetCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -675,7 +691,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -692,7 +708,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -709,7 +725,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedPodDisruptionBudgetAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedPodDisruptionBudgetAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1175,7 +1191,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listNamespacedPodDisruptionBudgetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodDisruptionBudgetCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1237,6 +1253,10 @@ private okhttp3.Call listNamespacedPodDisruptionBudgetCall(@jakarta.annotation.N localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1271,26 +1291,26 @@ private okhttp3.Call listNamespacedPodDisruptionBudgetCall(@jakarta.annotation.N } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedPodDisruptionBudgetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodDisruptionBudgetValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPodDisruptionBudget(Async)"); } - return listNamespacedPodDisruptionBudgetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedPodDisruptionBudgetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedPodDisruptionBudgetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedPodDisruptionBudgetWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedPodDisruptionBudgetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedPodDisruptionBudgetAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1318,6 +1338,8 @@ public class APIlistNamespacedPodDisruptionBudgetRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1416,6 +1438,16 @@ public APIlistNamespacedPodDisruptionBudgetRequest sendInitialEvents(@jakarta.an return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedPodDisruptionBudgetRequest + */ + public APIlistNamespacedPodDisruptionBudgetRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1450,7 +1482,7 @@ public APIlistNamespacedPodDisruptionBudgetRequest watch(@jakarta.annotation.Nul */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedPodDisruptionBudgetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedPodDisruptionBudgetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1466,7 +1498,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1PodDisruptionBudgetList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1483,7 +1515,7 @@ public V1PodDisruptionBudgetList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1500,7 +1532,7 @@ public ApiResponse executeWithHttpInfo() throws ApiEx */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedPodDisruptionBudgetAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedPodDisruptionBudgetAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -1520,7 +1552,7 @@ public okhttp3.Call executeAsync(final ApiCallback _c public APIlistNamespacedPodDisruptionBudgetRequest listNamespacedPodDisruptionBudget(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedPodDisruptionBudgetRequest(namespace); } - private okhttp3.Call listPodDisruptionBudgetForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodDisruptionBudgetForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1581,6 +1613,10 @@ private okhttp3.Call listPodDisruptionBudgetForAllNamespacesCall(@jakarta.annota localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1615,21 +1651,21 @@ private okhttp3.Call listPodDisruptionBudgetForAllNamespacesCall(@jakarta.annota } @SuppressWarnings("rawtypes") - private okhttp3.Call listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listPodDisruptionBudgetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listPodDisruptionBudgetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listPodDisruptionBudgetForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listPodDisruptionBudgetForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPodDisruptionBudgetForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPodDisruptionBudgetForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1655,6 +1691,8 @@ public class APIlistPodDisruptionBudgetForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1752,6 +1790,16 @@ public APIlistPodDisruptionBudgetForAllNamespacesRequest sendInitialEvents(@jaka return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistPodDisruptionBudgetForAllNamespacesRequest + */ + public APIlistPodDisruptionBudgetForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1786,7 +1834,7 @@ public APIlistPodDisruptionBudgetForAllNamespacesRequest watch(@jakarta.annotati */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listPodDisruptionBudgetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPodDisruptionBudgetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1802,7 +1850,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1PodDisruptionBudgetList execute() throws ApiException { - ApiResponse localVarResp = listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1819,7 +1867,7 @@ public V1PodDisruptionBudgetList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1836,7 +1884,7 @@ public ApiResponse executeWithHttpInfo() throws ApiEx */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listPodDisruptionBudgetForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPodDisruptionBudgetForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java index fa798b8c03..23837bbcbd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/RbacAuthorizationV1Api.java @@ -1622,7 +1622,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteClusterRoleBindingRequest deleteClusterRoleBinding(@jakarta.annotation.Nonnull String name) { return new APIdeleteClusterRoleBindingRequest(name); } - private okhttp3.Call deleteCollectionClusterRoleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterRoleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1699,6 +1699,10 @@ private okhttp3.Call deleteCollectionClusterRoleCall(@jakarta.annotation.Nullabl localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1727,21 +1731,21 @@ private okhttp3.Call deleteCollectionClusterRoleCall(@jakarta.annotation.Nullabl } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionClusterRoleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionClusterRoleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionClusterRoleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionClusterRoleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionClusterRoleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionClusterRoleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionClusterRoleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterRoleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1775,6 +1779,8 @@ public class APIdeleteCollectionClusterRoleRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1912,6 +1918,16 @@ public APIdeleteCollectionClusterRoleRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionClusterRoleRequest + */ + public APIdeleteCollectionClusterRoleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1946,7 +1962,7 @@ public APIdeleteCollectionClusterRoleRequest body(@jakarta.annotation.Nullable V */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionClusterRoleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionClusterRoleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -1962,7 +1978,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -1979,7 +1995,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -1996,7 +2012,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionClusterRoleAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionClusterRoleAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2015,7 +2031,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionClusterRoleRequest deleteCollectionClusterRole() { return new APIdeleteCollectionClusterRoleRequest(); } - private okhttp3.Call deleteCollectionClusterRoleBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterRoleBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2092,6 +2108,10 @@ private okhttp3.Call deleteCollectionClusterRoleBindingCall(@jakarta.annotation. localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2120,21 +2140,21 @@ private okhttp3.Call deleteCollectionClusterRoleBindingCall(@jakarta.annotation. } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionClusterRoleBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionClusterRoleBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionClusterRoleBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionClusterRoleBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionClusterRoleBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionClusterRoleBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionClusterRoleBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionClusterRoleBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2168,6 +2188,8 @@ public class APIdeleteCollectionClusterRoleBindingRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -2305,6 +2327,16 @@ public APIdeleteCollectionClusterRoleBindingRequest sendInitialEvents(@jakarta.a return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionClusterRoleBindingRequest + */ + public APIdeleteCollectionClusterRoleBindingRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2339,7 +2371,7 @@ public APIdeleteCollectionClusterRoleBindingRequest body(@jakarta.annotation.Nul */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionClusterRoleBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionClusterRoleBindingCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -2355,7 +2387,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -2372,7 +2404,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -2389,7 +2421,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionClusterRoleBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionClusterRoleBindingAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2408,7 +2440,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionClusterRoleBindingRequest deleteCollectionClusterRoleBinding() { return new APIdeleteCollectionClusterRoleBindingRequest(); } - private okhttp3.Call deleteCollectionNamespacedRoleCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2486,6 +2518,10 @@ private okhttp3.Call deleteCollectionNamespacedRoleCall(@jakarta.annotation.Nonn localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2514,26 +2550,26 @@ private okhttp3.Call deleteCollectionNamespacedRoleCall(@jakarta.annotation.Nonn } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedRoleValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRole(Async)"); } - return deleteCollectionNamespacedRoleCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedRoleCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedRoleAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2569,6 +2605,8 @@ public class APIdeleteCollectionNamespacedRoleRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -2707,6 +2745,16 @@ public APIdeleteCollectionNamespacedRoleRequest sendInitialEvents(@jakarta.annot return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedRoleRequest + */ + public APIdeleteCollectionNamespacedRoleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2741,7 +2789,7 @@ public APIdeleteCollectionNamespacedRoleRequest body(@jakarta.annotation.Nullabl */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedRoleCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedRoleCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -2757,7 +2805,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -2774,7 +2822,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -2791,7 +2839,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedRoleAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedRoleAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2811,7 +2859,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedRoleRequest deleteCollectionNamespacedRole(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedRoleRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedRoleBindingCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleBindingCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2889,6 +2937,10 @@ private okhttp3.Call deleteCollectionNamespacedRoleBindingCall(@jakarta.annotati localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2917,26 +2969,26 @@ private okhttp3.Call deleteCollectionNamespacedRoleBindingCall(@jakarta.annotati } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRoleBinding(Async)"); } - return deleteCollectionNamespacedRoleBindingCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedRoleBindingCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedRoleBindingAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleBindingAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2972,6 +3024,8 @@ public class APIdeleteCollectionNamespacedRoleBindingRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -3110,6 +3164,16 @@ public APIdeleteCollectionNamespacedRoleBindingRequest sendInitialEvents(@jakart return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedRoleBindingRequest + */ + public APIdeleteCollectionNamespacedRoleBindingRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -3144,7 +3208,7 @@ public APIdeleteCollectionNamespacedRoleBindingRequest body(@jakarta.annotation. */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedRoleBindingCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedRoleBindingCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -3160,7 +3224,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -3177,7 +3241,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -3194,7 +3258,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedRoleBindingAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedRoleBindingAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -3950,7 +4014,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listClusterRoleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterRoleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4011,6 +4075,10 @@ private okhttp3.Call listClusterRoleCall(@jakarta.annotation.Nullable String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -4045,21 +4113,21 @@ private okhttp3.Call listClusterRoleCall(@jakarta.annotation.Nullable String pre } @SuppressWarnings("rawtypes") - private okhttp3.Call listClusterRoleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listClusterRoleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listClusterRoleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listClusterRoleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listClusterRoleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listClusterRoleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listClusterRoleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterRoleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4085,6 +4153,8 @@ public class APIlistClusterRoleRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -4182,6 +4252,16 @@ public APIlistClusterRoleRequest sendInitialEvents(@jakarta.annotation.Nullable return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistClusterRoleRequest + */ + public APIlistClusterRoleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -4216,7 +4296,7 @@ public APIlistClusterRoleRequest watch(@jakarta.annotation.Nullable Boolean watc */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listClusterRoleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listClusterRoleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -4232,7 +4312,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ClusterRoleList execute() throws ApiException { - ApiResponse localVarResp = listClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -4249,7 +4329,7 @@ public V1ClusterRoleList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -4266,7 +4346,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listClusterRoleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listClusterRoleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -4285,7 +4365,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistClusterRoleRequest listClusterRole() { return new APIlistClusterRoleRequest(); } - private okhttp3.Call listClusterRoleBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterRoleBindingCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4346,6 +4426,10 @@ private okhttp3.Call listClusterRoleBindingCall(@jakarta.annotation.Nullable Str localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -4380,21 +4464,21 @@ private okhttp3.Call listClusterRoleBindingCall(@jakarta.annotation.Nullable Str } @SuppressWarnings("rawtypes") - private okhttp3.Call listClusterRoleBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listClusterRoleBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listClusterRoleBindingValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listClusterRoleBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listClusterRoleBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listClusterRoleBindingWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listClusterRoleBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listClusterRoleBindingAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4420,6 +4504,8 @@ public class APIlistClusterRoleBindingRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -4517,6 +4603,16 @@ public APIlistClusterRoleBindingRequest sendInitialEvents(@jakarta.annotation.Nu return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistClusterRoleBindingRequest + */ + public APIlistClusterRoleBindingRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -4551,7 +4647,7 @@ public APIlistClusterRoleBindingRequest watch(@jakarta.annotation.Nullable Boole */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listClusterRoleBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listClusterRoleBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -4567,7 +4663,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ClusterRoleBindingList execute() throws ApiException { - ApiResponse localVarResp = listClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -4584,7 +4680,7 @@ public V1ClusterRoleBindingList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -4601,7 +4697,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExc */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listClusterRoleBindingAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listClusterRoleBindingAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -4620,7 +4716,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca public APIlistClusterRoleBindingRequest listClusterRoleBinding() { return new APIlistClusterRoleBindingRequest(); } - private okhttp3.Call listNamespacedRoleCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedRoleCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4682,6 +4778,10 @@ private okhttp3.Call listNamespacedRoleCall(@jakarta.annotation.Nonnull String n localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -4716,26 +4816,26 @@ private okhttp3.Call listNamespacedRoleCall(@jakarta.annotation.Nonnull String n } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedRoleValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedRoleValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedRole(Async)"); } - return listNamespacedRoleCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedRoleCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedRoleWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedRoleWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedRoleAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedRoleAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4763,6 +4863,8 @@ public class APIlistNamespacedRoleRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -4861,6 +4963,16 @@ public APIlistNamespacedRoleRequest sendInitialEvents(@jakarta.annotation.Nullab return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedRoleRequest + */ + public APIlistNamespacedRoleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -4895,7 +5007,7 @@ public APIlistNamespacedRoleRequest watch(@jakarta.annotation.Nullable Boolean w */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedRoleCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedRoleCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -4911,7 +5023,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1RoleList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -4928,7 +5040,7 @@ public V1RoleList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -4945,7 +5057,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedRoleAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedRoleAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -4965,7 +5077,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws public APIlistNamespacedRoleRequest listNamespacedRole(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedRoleRequest(namespace); } - private okhttp3.Call listNamespacedRoleBindingCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedRoleBindingCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5027,6 +5139,10 @@ private okhttp3.Call listNamespacedRoleBindingCall(@jakarta.annotation.Nonnull S localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5061,26 +5177,26 @@ private okhttp3.Call listNamespacedRoleBindingCall(@jakarta.annotation.Nonnull S } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedRoleBindingValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedRoleBinding(Async)"); } - return listNamespacedRoleBindingCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedRoleBindingCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedRoleBindingWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedRoleBindingAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedRoleBindingAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5108,6 +5224,8 @@ public class APIlistNamespacedRoleBindingRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5206,6 +5324,16 @@ public APIlistNamespacedRoleBindingRequest sendInitialEvents(@jakarta.annotation return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedRoleBindingRequest + */ + public APIlistNamespacedRoleBindingRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -5240,7 +5368,7 @@ public APIlistNamespacedRoleBindingRequest watch(@jakarta.annotation.Nullable Bo */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedRoleBindingCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedRoleBindingCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -5256,7 +5384,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1RoleBindingList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -5273,7 +5401,7 @@ public V1RoleBindingList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -5290,7 +5418,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedRoleBindingAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedRoleBindingAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -5310,7 +5438,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistNamespacedRoleBindingRequest listNamespacedRoleBinding(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedRoleBindingRequest(namespace); } - private okhttp3.Call listRoleBindingForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listRoleBindingForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5371,6 +5499,10 @@ private okhttp3.Call listRoleBindingForAllNamespacesCall(@jakarta.annotation.Nul localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5405,21 +5537,21 @@ private okhttp3.Call listRoleBindingForAllNamespacesCall(@jakarta.annotation.Nul } @SuppressWarnings("rawtypes") - private okhttp3.Call listRoleBindingForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listRoleBindingForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listRoleBindingForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listRoleBindingForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listRoleBindingForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listRoleBindingForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listRoleBindingForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listRoleBindingForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listRoleBindingForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listRoleBindingForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listRoleBindingForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listRoleBindingForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5445,6 +5577,8 @@ public class APIlistRoleBindingForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5542,6 +5676,16 @@ public APIlistRoleBindingForAllNamespacesRequest sendInitialEvents(@jakarta.anno return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistRoleBindingForAllNamespacesRequest + */ + public APIlistRoleBindingForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -5576,7 +5720,7 @@ public APIlistRoleBindingForAllNamespacesRequest watch(@jakarta.annotation.Nulla */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listRoleBindingForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listRoleBindingForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -5592,7 +5736,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1RoleBindingList execute() throws ApiException { - ApiResponse localVarResp = listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -5609,7 +5753,7 @@ public V1RoleBindingList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -5626,7 +5770,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listRoleBindingForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listRoleBindingForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -5645,7 +5789,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistRoleBindingForAllNamespacesRequest listRoleBindingForAllNamespaces() { return new APIlistRoleBindingForAllNamespacesRequest(); } - private okhttp3.Call listRoleForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listRoleForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5706,6 +5850,10 @@ private okhttp3.Call listRoleForAllNamespacesCall(@jakarta.annotation.Nullable B localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5740,21 +5888,21 @@ private okhttp3.Call listRoleForAllNamespacesCall(@jakarta.annotation.Nullable B } @SuppressWarnings("rawtypes") - private okhttp3.Call listRoleForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listRoleForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listRoleForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listRoleForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listRoleForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listRoleForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listRoleForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listRoleForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listRoleForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listRoleForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listRoleForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listRoleForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5780,6 +5928,8 @@ public class APIlistRoleForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5877,6 +6027,16 @@ public APIlistRoleForAllNamespacesRequest sendInitialEvents(@jakarta.annotation. return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistRoleForAllNamespacesRequest + */ + public APIlistRoleForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -5911,7 +6071,7 @@ public APIlistRoleForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boo */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listRoleForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listRoleForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -5927,7 +6087,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1RoleList execute() throws ApiException { - ApiResponse localVarResp = listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -5944,7 +6104,7 @@ public V1RoleList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -5961,7 +6121,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listRoleForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listRoleForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java index e2487c88ce..152d7d7e9e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1Api.java @@ -1062,7 +1062,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIcreateResourceSliceRequest createResourceSlice(@jakarta.annotation.Nonnull V1ResourceSlice body) { return new APIcreateResourceSliceRequest(body); } - private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1139,6 +1139,10 @@ private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullabl localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1167,21 +1171,21 @@ private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullabl } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1215,6 +1219,8 @@ public class APIdeleteCollectionDeviceClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1352,6 +1358,16 @@ public APIdeleteCollectionDeviceClassRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1386,7 +1402,7 @@ public APIdeleteCollectionDeviceClassRequest body(@jakarta.annotation.Nullable V */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -1402,7 +1418,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -1419,7 +1435,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -1436,7 +1452,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionDeviceClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1455,7 +1471,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionDeviceClassRequest deleteCollectionDeviceClass() { return new APIdeleteCollectionDeviceClassRequest(); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1533,6 +1549,10 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annota localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1561,26 +1581,26 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annota } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); } - return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1616,6 +1636,8 @@ public class APIdeleteCollectionNamespacedResourceClaimRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1754,6 +1776,16 @@ public APIdeleteCollectionNamespacedResourceClaimRequest sendInitialEvents(@jaka return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1788,7 +1820,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest body(@jakarta.annotatio */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -1804,7 +1836,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -1821,7 +1853,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -1838,7 +1870,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1858,7 +1890,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedResourceClaimRequest deleteCollectionNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedResourceClaimRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1936,6 +1968,10 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakart localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1964,26 +2000,26 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakart } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); } - return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2019,6 +2055,8 @@ public class APIdeleteCollectionNamespacedResourceClaimTemplateRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -2157,6 +2195,16 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest sendInitialEven return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2191,7 +2239,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest body(@jakarta.a */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -2207,7 +2255,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -2224,7 +2272,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -2241,7 +2289,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimTemplateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2261,7 +2309,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedResourceClaimTemplateRequest deleteCollectionNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedResourceClaimTemplateRequest(namespace); } - private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2338,6 +2386,10 @@ private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nulla localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2366,21 +2418,21 @@ private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nulla } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2414,6 +2466,8 @@ public class APIdeleteCollectionResourceSliceRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -2551,6 +2605,16 @@ public APIdeleteCollectionResourceSliceRequest sendInitialEvents(@jakarta.annota return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2585,7 +2649,7 @@ public APIdeleteCollectionResourceSliceRequest body(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -2601,7 +2665,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -2618,7 +2682,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -2635,7 +2699,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionResourceSliceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -3950,7 +4014,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4011,6 +4075,10 @@ private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -4045,21 +4113,21 @@ private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pre } @SuppressWarnings("rawtypes") - private okhttp3.Call listDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4085,6 +4153,8 @@ public class APIlistDeviceClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -4182,6 +4252,16 @@ public APIlistDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -4216,7 +4296,7 @@ public APIlistDeviceClassRequest watch(@jakarta.annotation.Nullable Boolean watc */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -4232,7 +4312,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1DeviceClassList execute() throws ApiException { - ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -4249,7 +4329,7 @@ public V1DeviceClassList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -4266,7 +4346,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listDeviceClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listDeviceClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -4285,7 +4365,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIlistDeviceClassRequest listDeviceClass() { return new APIlistDeviceClassRequest(); } - private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4347,6 +4427,10 @@ private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -4381,26 +4465,26 @@ private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); } - return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4428,6 +4512,8 @@ public class APIlistNamespacedResourceClaimRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -4526,6 +4612,16 @@ public APIlistNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -4560,7 +4656,7 @@ public APIlistNamespacedResourceClaimRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -4576,7 +4672,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ResourceClaimList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -4593,7 +4689,7 @@ public V1ResourceClaimList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -4610,7 +4706,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -4630,7 +4726,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac public APIlistNamespacedResourceClaimRequest listNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedResourceClaimRequest(namespace); } - private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4692,6 +4788,10 @@ private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -4726,26 +4826,26 @@ private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); } - return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4773,6 +4873,8 @@ public class APIlistNamespacedResourceClaimTemplateRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -4871,6 +4973,16 @@ public APIlistNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta. return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -4905,7 +5017,7 @@ public APIlistNamespacedResourceClaimTemplateRequest watch(@jakarta.annotation.N */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -4921,7 +5033,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ResourceClaimTemplateList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -4938,7 +5050,7 @@ public V1ResourceClaimTemplateList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -4955,7 +5067,7 @@ public ApiResponse executeWithHttpInfo() throws Api */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimTemplateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimTemplateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -4975,7 +5087,7 @@ public okhttp3.Call executeAsync(final ApiCallback public APIlistNamespacedResourceClaimTemplateRequest listNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedResourceClaimTemplateRequest(namespace); } - private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5036,6 +5148,10 @@ private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.N localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5070,21 +5186,21 @@ private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.N } @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceClaimForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5110,6 +5226,8 @@ public class APIlistResourceClaimForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5207,6 +5325,16 @@ public APIlistResourceClaimForAllNamespacesRequest sendInitialEvents(@jakarta.an return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -5241,7 +5369,7 @@ public APIlistResourceClaimForAllNamespacesRequest watch(@jakarta.annotation.Nul */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -5257,7 +5385,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ResourceClaimList execute() throws ApiException { - ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -5274,7 +5402,7 @@ public V1ResourceClaimList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -5291,7 +5419,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceClaimForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listResourceClaimForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -5310,7 +5438,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callbac public APIlistResourceClaimForAllNamespacesRequest listResourceClaimForAllNamespaces() { return new APIlistResourceClaimForAllNamespacesRequest(); } - private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5371,6 +5499,10 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.anno localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5405,21 +5537,21 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.anno } @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5445,6 +5577,8 @@ public class APIlistResourceClaimTemplateForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5542,6 +5676,16 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest sendInitialEvents(@ja return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -5576,7 +5720,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest watch(@jakarta.annota */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -5592,7 +5736,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ResourceClaimTemplateList execute() throws ApiException { - ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -5609,7 +5753,7 @@ public V1ResourceClaimTemplateList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -5626,7 +5770,7 @@ public ApiResponse executeWithHttpInfo() throws Api */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceClaimTemplateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listResourceClaimTemplateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -5645,7 +5789,7 @@ public okhttp3.Call executeAsync(final ApiCallback public APIlistResourceClaimTemplateForAllNamespacesRequest listResourceClaimTemplateForAllNamespaces() { return new APIlistResourceClaimTemplateForAllNamespacesRequest(); } - private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5706,6 +5850,10 @@ private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5740,21 +5888,21 @@ private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String p } @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5780,6 +5928,8 @@ public class APIlistResourceSliceRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5877,6 +6027,16 @@ public APIlistResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullabl return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -5911,7 +6071,7 @@ public APIlistResourceSliceRequest watch(@jakarta.annotation.Nullable Boolean wa */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -5927,7 +6087,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1ResourceSliceList execute() throws ApiException { - ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -5944,7 +6104,7 @@ public V1ResourceSliceList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -5961,7 +6121,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceSliceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listResourceSliceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java index 8bdd88f7cb..ee62527de1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1alpha3Api.java @@ -32,6 +32,8 @@ import io.kubernetes.client.openapi.models.V1Status; import io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRule; import io.kubernetes.client.openapi.models.V1alpha3DeviceTaintRuleList; +import io.kubernetes.client.openapi.models.V1alpha3ResourcePoolStatusRequest; +import io.kubernetes.client.openapi.models.V1alpha3ResourcePoolStatusRequestList; import java.lang.reflect.Type; import java.util.ArrayList; @@ -316,7 +318,247 @@ public okhttp3.Call executeAsync(final ApiCallback _cal public APIcreateDeviceTaintRuleRequest createDeviceTaintRule(@jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { return new APIcreateDeviceTaintRuleRequest(body); } - private okhttp3.Call deleteCollectionDeviceTaintRuleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call createResourcePoolStatusRequestCall(@jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createResourcePoolStatusRequestValidateBeforeCall(@jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createResourcePoolStatusRequest(Async)"); + } + + return createResourcePoolStatusRequestCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createResourcePoolStatusRequestWithHttpInfo(@jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createResourcePoolStatusRequestValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createResourcePoolStatusRequestAsync(@jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createResourcePoolStatusRequestValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateResourcePoolStatusRequestRequest { + @jakarta.annotation.Nonnull + private final V1alpha3ResourcePoolStatusRequest body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateResourcePoolStatusRequestRequest(@jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body) { + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateResourcePoolStatusRequestRequest + */ + public APIcreateResourcePoolStatusRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateResourcePoolStatusRequestRequest + */ + public APIcreateResourcePoolStatusRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateResourcePoolStatusRequestRequest + */ + public APIcreateResourcePoolStatusRequestRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateResourcePoolStatusRequestRequest + */ + public APIcreateResourcePoolStatusRequestRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createResourcePoolStatusRequest + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createResourcePoolStatusRequestCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createResourcePoolStatusRequest request + * @return V1alpha3ResourcePoolStatusRequest + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3ResourcePoolStatusRequest execute() throws ApiException { + ApiResponse localVarResp = createResourcePoolStatusRequestWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createResourcePoolStatusRequest request with HTTP info returned + * @return ApiResponse<V1alpha3ResourcePoolStatusRequest> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createResourcePoolStatusRequestWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createResourcePoolStatusRequest request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createResourcePoolStatusRequestAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a ResourcePoolStatusRequest + * @param body (required) + * @return APIcreateResourcePoolStatusRequestRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateResourcePoolStatusRequestRequest createResourcePoolStatusRequest(@jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body) { + return new APIcreateResourcePoolStatusRequestRequest(body); + } + private okhttp3.Call deleteCollectionDeviceTaintRuleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -393,6 +635,10 @@ private okhttp3.Call deleteCollectionDeviceTaintRuleCall(@jakarta.annotation.Nul localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -421,21 +667,21 @@ private okhttp3.Call deleteCollectionDeviceTaintRuleCall(@jakarta.annotation.Nul } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionDeviceTaintRuleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceTaintRuleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -469,6 +715,8 @@ public class APIdeleteCollectionDeviceTaintRuleRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -606,6 +854,16 @@ public APIdeleteCollectionDeviceTaintRuleRequest sendInitialEvents(@jakarta.anno return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionDeviceTaintRuleRequest + */ + public APIdeleteCollectionDeviceTaintRuleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -640,7 +898,7 @@ public APIdeleteCollectionDeviceTaintRuleRequest body(@jakarta.annotation.Nullab */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -656,7 +914,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -673,7 +931,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -690,7 +948,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceTaintRuleAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionDeviceTaintRuleAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -709,7 +967,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionDeviceTaintRuleRequest deleteCollectionDeviceTaintRule() { return new APIdeleteCollectionDeviceTaintRuleRequest(); } - private okhttp3.Call deleteDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionResourcePoolStatusRequestCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -726,8 +984,7 @@ private okhttp3.Call deleteDeviceTaintRuleCall(@jakarta.annotation.Nonnull Strin Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -739,10 +996,18 @@ private okhttp3.Call deleteDeviceTaintRuleCall(@jakarta.annotation.Nonnull Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } @@ -751,6 +1016,14 @@ private okhttp3.Call deleteDeviceTaintRuleCall(@jakarta.annotation.Nonnull Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -759,6 +1032,26 @@ private okhttp3.Call deleteDeviceTaintRuleCall(@jakarta.annotation.Nonnull Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -783,79 +1076,109 @@ private okhttp3.Call deleteDeviceTaintRuleCall(@jakarta.annotation.Nonnull Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceTaintRule(Async)"); - } - - return deleteDeviceTaintRuleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + private okhttp3.Call deleteCollectionResourcePoolStatusRequestValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionResourcePoolStatusRequestCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteDeviceTaintRuleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteCollectionResourcePoolStatusRequestWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionResourcePoolStatusRequestValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionResourcePoolStatusRequestAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteDeviceTaintRuleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteCollectionResourcePoolStatusRequestValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteDeviceTaintRuleRequest { - @jakarta.annotation.Nonnull - private final String name; + public class APIdeleteCollectionResourcePoolStatusRequestRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable private String dryRun; @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; @jakarta.annotation.Nullable private String propagationPolicy; @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name) { - this.name = name; + private APIdeleteCollectionResourcePoolStatusRequestRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteDeviceTaintRuleRequest + * @return APIdeleteCollectionResourcePoolStatusRequestRequest */ - public APIdeleteDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteCollectionResourcePoolStatusRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } + /** + * Set _continue + * @param _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. (optional) + * @return APIdeleteCollectionResourcePoolStatusRequestRequest + */ + public APIdeleteCollectionResourcePoolStatusRequestRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteDeviceTaintRuleRequest + * @return APIdeleteCollectionResourcePoolStatusRequestRequest */ - public APIdeleteDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteCollectionResourcePoolStatusRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionResourcePoolStatusRequestRequest + */ + public APIdeleteCollectionResourcePoolStatusRequestRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteDeviceTaintRuleRequest + * @return APIdeleteCollectionResourcePoolStatusRequestRequest */ - public APIdeleteDeviceTaintRuleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteCollectionResourcePoolStatusRequestRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -863,19 +1186,39 @@ public APIdeleteDeviceTaintRuleRequest gracePeriodSeconds(@jakarta.annotation.Nu /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteDeviceTaintRuleRequest + * @return APIdeleteCollectionResourcePoolStatusRequestRequest */ - public APIdeleteDeviceTaintRuleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionResourcePoolStatusRequestRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionResourcePoolStatusRequestRequest + */ + public APIdeleteCollectionResourcePoolStatusRequestRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIdeleteCollectionResourcePoolStatusRequestRequest + */ + public APIdeleteCollectionResourcePoolStatusRequestRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteDeviceTaintRuleRequest + * @return APIdeleteCollectionResourcePoolStatusRequestRequest */ - public APIdeleteDeviceTaintRuleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteCollectionResourcePoolStatusRequestRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -883,25 +1226,75 @@ public APIdeleteDeviceTaintRuleRequest orphanDependents(@jakarta.annotation.Null /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteDeviceTaintRuleRequest + * @return APIdeleteCollectionResourcePoolStatusRequestRequest */ - public APIdeleteDeviceTaintRuleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteCollectionResourcePoolStatusRequestRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIdeleteCollectionResourcePoolStatusRequestRequest + */ + public APIdeleteCollectionResourcePoolStatusRequestRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIdeleteCollectionResourcePoolStatusRequestRequest + */ + public APIdeleteCollectionResourcePoolStatusRequestRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionResourcePoolStatusRequestRequest + */ + public APIdeleteCollectionResourcePoolStatusRequestRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionResourcePoolStatusRequestRequest + */ + public APIdeleteCollectionResourcePoolStatusRequestRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionResourcePoolStatusRequestRequest + */ + public APIdeleteCollectionResourcePoolStatusRequestRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + /** * Set body * @param body (optional) - * @return APIdeleteDeviceTaintRuleRequest + * @return APIdeleteCollectionResourcePoolStatusRequestRequest */ - public APIdeleteDeviceTaintRuleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteCollectionResourcePoolStatusRequestRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteDeviceTaintRule + * Build call for deleteCollectionResourcePoolStatusRequest * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -910,51 +1303,48 @@ public APIdeleteDeviceTaintRuleRequest body(@jakarta.annotation.Nullable V1Delet Response Details Status Code Description Response Headers 200 OK - - 202 Accepted - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteDeviceTaintRuleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteCollectionResourcePoolStatusRequestCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** - * Execute deleteDeviceTaintRule request - * @return V1alpha3DeviceTaintRule + * Execute deleteCollectionResourcePoolStatusRequest request + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1alpha3DeviceTaintRule execute() throws ApiException { - ApiResponse localVarResp = deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionResourcePoolStatusRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteDeviceTaintRule request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceTaintRule> + * Execute deleteCollectionResourcePoolStatusRequest request with HTTP info returned + * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionResourcePoolStatusRequestWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** - * Execute deleteDeviceTaintRule request (asynchronously) + * Execute deleteCollectionResourcePoolStatusRequest request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -963,33 +1353,30 @@ public ApiResponse executeWithHttpInfo() throws ApiExce Response Details Status Code Description Response Headers 200 OK - - 202 Accepted - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteDeviceTaintRuleAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionResourcePoolStatusRequestAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } /** * - * delete a DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @return APIdeleteDeviceTaintRuleRequest + * delete collection of ResourcePoolStatusRequest + * @return APIdeleteCollectionResourcePoolStatusRequestRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteDeviceTaintRuleRequest deleteDeviceTaintRule(@jakarta.annotation.Nonnull String name) { - return new APIdeleteDeviceTaintRuleRequest(name); + public APIdeleteCollectionResourcePoolStatusRequestRequest deleteCollectionResourcePoolStatusRequest() { + return new APIdeleteCollectionResourcePoolStatusRequestRequest(); } - private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1003,10 +1390,11 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/"; + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1014,6 +1402,30 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -1026,6 +1438,7 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1033,87 +1446,2363 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); + private okhttp3.Call deleteDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceTaintRule(Async)"); + } + + return deleteDeviceTaintRuleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteDeviceTaintRuleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteDeviceTaintRuleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIgetAPIResourcesRequest { + public class APIdeleteDeviceTaintRuleRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; - private APIgetAPIResourcesRequest() { + private APIdeleteDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; } /** - * Build call for getAPIResources - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteDeviceTaintRuleRequest */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); + public APIdeleteDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; } /** - * Execute getAPIResources request - * @return V1APIResourceList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteDeviceTaintRuleRequest */ - public V1APIResourceList execute() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); - return localVarResp.getData(); + public APIdeleteDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; } /** - * Execute getAPIResources request with HTTP info returned - * @return ApiResponse<V1APIResourceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteDeviceTaintRuleRequest + */ + public APIdeleteDeviceTaintRuleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteDeviceTaintRuleRequest + */ + public APIdeleteDeviceTaintRuleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteDeviceTaintRuleRequest + */ + public APIdeleteDeviceTaintRuleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteDeviceTaintRuleRequest + */ + public APIdeleteDeviceTaintRuleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteDeviceTaintRuleRequest + */ + public APIdeleteDeviceTaintRuleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteDeviceTaintRule + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteDeviceTaintRuleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteDeviceTaintRule request + * @return V1alpha3DeviceTaintRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteDeviceTaintRule request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteDeviceTaintRuleAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @return APIdeleteDeviceTaintRuleRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteDeviceTaintRuleRequest deleteDeviceTaintRule(@jakarta.annotation.Nonnull String name) { + return new APIdeleteDeviceTaintRuleRequest(name); + } + private okhttp3.Call deleteResourcePoolStatusRequestCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteResourcePoolStatusRequestValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteResourcePoolStatusRequest(Async)"); + } + + return deleteResourcePoolStatusRequestCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteResourcePoolStatusRequestWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteResourcePoolStatusRequestValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteResourcePoolStatusRequestAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteResourcePoolStatusRequestValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteResourcePoolStatusRequestRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteResourcePoolStatusRequestRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteResourcePoolStatusRequestRequest + */ + public APIdeleteResourcePoolStatusRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteResourcePoolStatusRequestRequest + */ + public APIdeleteResourcePoolStatusRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteResourcePoolStatusRequestRequest + */ + public APIdeleteResourcePoolStatusRequestRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteResourcePoolStatusRequestRequest + */ + public APIdeleteResourcePoolStatusRequestRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteResourcePoolStatusRequestRequest + */ + public APIdeleteResourcePoolStatusRequestRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteResourcePoolStatusRequestRequest + */ + public APIdeleteResourcePoolStatusRequestRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteResourcePoolStatusRequestRequest + */ + public APIdeleteResourcePoolStatusRequestRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteResourcePoolStatusRequest + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteResourcePoolStatusRequestCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteResourcePoolStatusRequest request + * @return V1alpha3ResourcePoolStatusRequest + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha3ResourcePoolStatusRequest execute() throws ApiException { + ApiResponse localVarResp = deleteResourcePoolStatusRequestWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteResourcePoolStatusRequest request with HTTP info returned + * @return ApiResponse<V1alpha3ResourcePoolStatusRequest> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteResourcePoolStatusRequestWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteResourcePoolStatusRequest request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteResourcePoolStatusRequestAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a ResourcePoolStatusRequest + * @param name name of the ResourcePoolStatusRequest (required) + * @return APIdeleteResourcePoolStatusRequestRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteResourcePoolStatusRequestRequest deleteResourcePoolStatusRequest(@jakarta.annotation.Nonnull String name) { + return new APIdeleteResourcePoolStatusRequestRequest(name); + } + private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + + } + + + private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetAPIResourcesRequest { + + private APIgetAPIResourcesRequest() { + } + + /** + * Build call for getAPIResources + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + } + + /** + * Execute getAPIResources request + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList execute() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Execute getAPIResources request with HTTP info returned + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getAPIResourcesWithHttpInfo(); + } + + /** + * Execute getAPIResources request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getAPIResourcesAsync(_callback); + } + } + + /** + * + * get available resources + * @return APIgetAPIResourcesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIgetAPIResourcesRequest getAPIResources() { + return new APIgetAPIResourcesRequest(); + } + private okhttp3.Call listDeviceTaintRuleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listDeviceTaintRuleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistDeviceTaintRuleRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistDeviceTaintRuleRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistDeviceTaintRuleRequest + */ + public APIlistDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param 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. (optional) + * @return APIlistDeviceTaintRuleRequest + */ + public APIlistDeviceTaintRuleRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIlistDeviceTaintRuleRequest + */ + public APIlistDeviceTaintRuleRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistDeviceTaintRuleRequest + */ + public APIlistDeviceTaintRuleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistDeviceTaintRuleRequest + */ + public APIlistDeviceTaintRuleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIlistDeviceTaintRuleRequest + */ + public APIlistDeviceTaintRuleRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIlistDeviceTaintRuleRequest + */ + public APIlistDeviceTaintRuleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIlistDeviceTaintRuleRequest + */ + public APIlistDeviceTaintRuleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistDeviceTaintRuleRequest + */ + public APIlistDeviceTaintRuleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistDeviceTaintRuleRequest + */ + public APIlistDeviceTaintRuleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistDeviceTaintRuleRequest + */ + public APIlistDeviceTaintRuleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistDeviceTaintRuleRequest + */ + public APIlistDeviceTaintRuleRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listDeviceTaintRule + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listDeviceTaintRule request + * @return V1alpha3DeviceTaintRuleList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3DeviceTaintRuleList execute() throws ApiException { + ApiResponse localVarResp = listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRuleList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listDeviceTaintRule request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listDeviceTaintRuleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind DeviceTaintRule + * @return APIlistDeviceTaintRuleRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistDeviceTaintRuleRequest listDeviceTaintRule() { + return new APIlistDeviceTaintRuleRequest(); + } + private okhttp3.Call listResourcePoolStatusRequestCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourcePoolStatusRequestValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listResourcePoolStatusRequestCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listResourcePoolStatusRequestWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourcePoolStatusRequestValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listResourcePoolStatusRequestAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourcePoolStatusRequestValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistResourcePoolStatusRequestRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistResourcePoolStatusRequestRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistResourcePoolStatusRequestRequest + */ + public APIlistResourcePoolStatusRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param 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. (optional) + * @return APIlistResourcePoolStatusRequestRequest + */ + public APIlistResourcePoolStatusRequestRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIlistResourcePoolStatusRequestRequest + */ + public APIlistResourcePoolStatusRequestRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistResourcePoolStatusRequestRequest + */ + public APIlistResourcePoolStatusRequestRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistResourcePoolStatusRequestRequest + */ + public APIlistResourcePoolStatusRequestRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIlistResourcePoolStatusRequestRequest + */ + public APIlistResourcePoolStatusRequestRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIlistResourcePoolStatusRequestRequest + */ + public APIlistResourcePoolStatusRequestRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIlistResourcePoolStatusRequestRequest + */ + public APIlistResourcePoolStatusRequestRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistResourcePoolStatusRequestRequest + */ + public APIlistResourcePoolStatusRequestRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistResourcePoolStatusRequestRequest + */ + public APIlistResourcePoolStatusRequestRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistResourcePoolStatusRequestRequest + */ + public APIlistResourcePoolStatusRequestRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistResourcePoolStatusRequestRequest + */ + public APIlistResourcePoolStatusRequestRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listResourcePoolStatusRequest + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listResourcePoolStatusRequestCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listResourcePoolStatusRequest request + * @return V1alpha3ResourcePoolStatusRequestList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3ResourcePoolStatusRequestList execute() throws ApiException { + ApiResponse localVarResp = listResourcePoolStatusRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listResourcePoolStatusRequest request with HTTP info returned + * @return ApiResponse<V1alpha3ResourcePoolStatusRequestList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listResourcePoolStatusRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listResourcePoolStatusRequest request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listResourcePoolStatusRequestAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ResourcePoolStatusRequest + * @return APIlistResourcePoolStatusRequestRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistResourcePoolStatusRequestRequest listResourcePoolStatusRequest() { + return new APIlistResourcePoolStatusRequestRequest(); + } + private okhttp3.Call patchDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchDeviceTaintRule(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchDeviceTaintRule(Async)"); + } + + return patchDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchDeviceTaintRuleRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchDeviceTaintRuleRequest + */ + public APIpatchDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchDeviceTaintRuleRequest + */ + public APIpatchDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchDeviceTaintRuleRequest + */ + public APIpatchDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchDeviceTaintRuleRequest + */ + public APIpatchDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchDeviceTaintRuleRequest + */ + public APIpatchDeviceTaintRuleRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchDeviceTaintRule + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchDeviceTaintRule request + * @return V1alpha3DeviceTaintRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchDeviceTaintRule request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchDeviceTaintRuleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @return APIpatchDeviceTaintRuleRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchDeviceTaintRuleRequest patchDeviceTaintRule(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchDeviceTaintRuleRequest(name, body); + } + private okhttp3.Call patchDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchDeviceTaintRuleStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchDeviceTaintRuleStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchDeviceTaintRuleStatus(Async)"); + } + + return patchDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchDeviceTaintRuleStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchDeviceTaintRuleStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchDeviceTaintRuleStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchDeviceTaintRuleStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchDeviceTaintRuleStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchDeviceTaintRuleStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchDeviceTaintRuleStatusRequest + */ + public APIpatchDeviceTaintRuleStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchDeviceTaintRuleStatusRequest + */ + public APIpatchDeviceTaintRuleStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchDeviceTaintRuleStatusRequest + */ + public APIpatchDeviceTaintRuleStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchDeviceTaintRuleStatusRequest + */ + public APIpatchDeviceTaintRuleStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchDeviceTaintRuleStatusRequest + */ + public APIpatchDeviceTaintRuleStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchDeviceTaintRuleStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchDeviceTaintRuleStatus request + * @return V1alpha3DeviceTaintRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = patchDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchDeviceTaintRuleStatus request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchDeviceTaintRuleStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchDeviceTaintRuleStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update status of the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @return APIpatchDeviceTaintRuleStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchDeviceTaintRuleStatusRequest patchDeviceTaintRuleStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchDeviceTaintRuleStatusRequest(name, body); + } + private okhttp3.Call patchResourcePoolStatusRequestCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchResourcePoolStatusRequestValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchResourcePoolStatusRequest(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchResourcePoolStatusRequest(Async)"); + } + + return patchResourcePoolStatusRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchResourcePoolStatusRequestWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchResourcePoolStatusRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchResourcePoolStatusRequestAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchResourcePoolStatusRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchResourcePoolStatusRequestRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchResourcePoolStatusRequestRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchResourcePoolStatusRequestRequest + */ + public APIpatchResourcePoolStatusRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchResourcePoolStatusRequestRequest + */ + public APIpatchResourcePoolStatusRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchResourcePoolStatusRequestRequest + */ + public APIpatchResourcePoolStatusRequestRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchResourcePoolStatusRequestRequest + */ + public APIpatchResourcePoolStatusRequestRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchResourcePoolStatusRequestRequest + */ + public APIpatchResourcePoolStatusRequestRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchResourcePoolStatusRequest + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchResourcePoolStatusRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchResourcePoolStatusRequest request + * @return V1alpha3ResourcePoolStatusRequest + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3ResourcePoolStatusRequest execute() throws ApiException { + ApiResponse localVarResp = patchResourcePoolStatusRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchResourcePoolStatusRequest request with HTTP info returned + * @return ApiResponse<V1alpha3ResourcePoolStatusRequest> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchResourcePoolStatusRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchResourcePoolStatusRequest request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchResourcePoolStatusRequestAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified ResourcePoolStatusRequest + * @param name name of the ResourcePoolStatusRequest (required) + * @param body (required) + * @return APIpatchResourcePoolStatusRequestRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchResourcePoolStatusRequestRequest patchResourcePoolStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchResourcePoolStatusRequestRequest(name, body); + } + private okhttp3.Call patchResourcePoolStatusRequestStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchResourcePoolStatusRequestStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchResourcePoolStatusRequestStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchResourcePoolStatusRequestStatus(Async)"); + } + + return patchResourcePoolStatusRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchResourcePoolStatusRequestStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchResourcePoolStatusRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchResourcePoolStatusRequestStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchResourcePoolStatusRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchResourcePoolStatusRequestStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchResourcePoolStatusRequestStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchResourcePoolStatusRequestStatusRequest + */ + public APIpatchResourcePoolStatusRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchResourcePoolStatusRequestStatusRequest + */ + public APIpatchResourcePoolStatusRequestStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchResourcePoolStatusRequestStatusRequest + */ + public APIpatchResourcePoolStatusRequestStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchResourcePoolStatusRequestStatusRequest + */ + public APIpatchResourcePoolStatusRequestStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchResourcePoolStatusRequestStatusRequest + */ + public APIpatchResourcePoolStatusRequestStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchResourcePoolStatusRequestStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getAPIResourcesWithHttpInfo(); + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchResourcePoolStatusRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute getAPIResources request (asynchronously) + * Execute patchResourcePoolStatusRequestStatus request + * @return V1alpha3ResourcePoolStatusRequest + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha3ResourcePoolStatusRequest execute() throws ApiException { + ApiResponse localVarResp = patchResourcePoolStatusRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchResourcePoolStatusRequestStatus request with HTTP info returned + * @return ApiResponse<V1alpha3ResourcePoolStatusRequest> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchResourcePoolStatusRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchResourcePoolStatusRequestStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1122,30 +3811,34 @@ public ApiResponse executeWithHttpInfo() throws ApiException Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getAPIResourcesAsync(_callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchResourcePoolStatusRequestStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * get available resources - * @return APIgetAPIResourcesRequest + * partially update status of the specified ResourcePoolStatusRequest + * @param name name of the ResourcePoolStatusRequest (required) + * @param body (required) + * @return APIpatchResourcePoolStatusRequestStatusRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIgetAPIResourcesRequest getAPIResources() { - return new APIgetAPIResourcesRequest(); + public APIpatchResourcePoolStatusRequestStatusRequest patchResourcePoolStatusRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchResourcePoolStatusRequestStatusRequest(name, body); } - private okhttp3.Call listDeviceTaintRuleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1162,7 +3855,8 @@ private okhttp3.Call listDeviceTaintRuleCall(@jakarta.annotation.Nullable String Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules"; + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1174,54 +3868,193 @@ private okhttp3.Call listDeviceTaintRuleCall(@jakarta.annotation.Nullable String localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); } - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); } - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readDeviceTaintRule(Async)"); } - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + return readDeviceTaintRuleCall(name, pretty, _callback); + + } + + + private ApiResponse readDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceTaintRuleValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readDeviceTaintRuleValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadDeviceTaintRuleRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; } - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadDeviceTaintRuleRequest + */ + public APIreadDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readDeviceTaintRule + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readDeviceTaintRuleCall(name, pretty, _callback); + } + + /** + * Execute readDeviceTaintRule request + * @return V1alpha3DeviceTaintRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha3DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = readDeviceTaintRuleWithHttpInfo(name, pretty); + return localVarResp.getData(); + } + + /** + * Execute readDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readDeviceTaintRuleWithHttpInfo(name, pretty); + } + + /** + * Execute readDeviceTaintRule request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readDeviceTaintRuleAsync(name, pretty, _callback); } + } + + /** + * + * read the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @return APIreadDeviceTaintRuleRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadDeviceTaintRuleRequest readDeviceTaintRule(@jakarta.annotation.Nonnull String name) { + return new APIreadDeviceTaintRuleRequest(name); + } + private okhttp3.Call readDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; } - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } + Object localVarPostBody = null; - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -1240,165 +4073,53 @@ private okhttp3.Call listDeviceTaintRuleCall(@jakarta.annotation.Nullable String } @SuppressWarnings("rawtypes") - private okhttp3.Call listDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call readDeviceTaintRuleStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readDeviceTaintRuleStatus(Async)"); + } + + return readDeviceTaintRuleStatusCall(name, pretty, _callback); } - private ApiResponse listDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readDeviceTaintRuleStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceTaintRuleStatusValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listDeviceTaintRuleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceTaintRuleStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readDeviceTaintRuleStatusValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistDeviceTaintRuleRequest { + public class APIreadDeviceTaintRuleStatusRequest { + @jakarta.annotation.Nonnull + private final String name; @jakarta.annotation.Nullable private String pretty; - @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private Boolean watch; - private APIlistDeviceTaintRuleRequest() { + private APIreadDeviceTaintRuleStatusRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistDeviceTaintRuleRequest + * @return APIreadDeviceTaintRuleStatusRequest */ - public APIlistDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadDeviceTaintRuleStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set allowWatchBookmarks - * @param 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. (optional) - * @return APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; - return this; - } - - /** - * Set _continue - * @param _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. (optional) - * @return APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param 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. (optional) - * @return APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set resourceVersion - * @param 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 (optional) - * @return APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param 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 (optional) - * @return APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistDeviceTaintRuleRequest - */ - public APIlistDeviceTaintRuleRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; - return this; - } - - /** - * Build call for listDeviceTaintRule + * Build call for readDeviceTaintRuleStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1411,12 +4132,12 @@ public APIlistDeviceTaintRuleRequest watch(@jakarta.annotation.Nullable Boolean */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return readDeviceTaintRuleStatusCall(name, pretty, _callback); } /** - * Execute listDeviceTaintRule request - * @return V1alpha3DeviceTaintRuleList + * Execute readDeviceTaintRuleStatus request + * @return V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1426,14 +4147,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha3DeviceTaintRuleList execute() throws ApiException { - ApiResponse localVarResp = listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1alpha3DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = readDeviceTaintRuleStatusWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute listDeviceTaintRule request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceTaintRuleList> + * Execute readDeviceTaintRuleStatus request with HTTP info returned + * @return ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1443,12 +4164,12 @@ public V1alpha3DeviceTaintRuleList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readDeviceTaintRuleStatusWithHttpInfo(name, pretty); } /** - * Execute listDeviceTaintRule request (asynchronously) + * Execute readDeviceTaintRuleStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1460,15 +4181,16 @@ public ApiResponse executeWithHttpInfo() throws Api 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listDeviceTaintRuleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readDeviceTaintRuleStatusAsync(name, pretty, _callback); } } /** * - * list or watch objects of kind DeviceTaintRule - * @return APIlistDeviceTaintRuleRequest + * read status of the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @return APIreadDeviceTaintRuleStatusRequest * @http.response.details @@ -1477,10 +4199,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIlistDeviceTaintRuleRequest listDeviceTaintRule() { - return new APIlistDeviceTaintRuleRequest(); + public APIreadDeviceTaintRuleStatusRequest readDeviceTaintRuleStatus(@jakarta.annotation.Nonnull String name) { + return new APIreadDeviceTaintRuleStatusRequest(name); } - private okhttp3.Call patchDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readResourcePoolStatusRequestCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1494,10 +4216,10 @@ private okhttp3.Call patchDeviceTaintRuleCall(@jakarta.annotation.Nonnull String basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1510,22 +4232,6 @@ private okhttp3.Call patchDeviceTaintRuleCall(@jakarta.annotation.Nonnull String localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", @@ -1538,7 +4244,6 @@ private okhttp3.Call patchDeviceTaintRuleCall(@jakarta.annotation.Nonnull String } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1546,113 +4251,57 @@ private okhttp3.Call patchDeviceTaintRuleCall(@jakarta.annotation.Nonnull String } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readResourcePoolStatusRequestValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchDeviceTaintRule(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchDeviceTaintRule(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readResourcePoolStatusRequest(Async)"); } - return patchDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readResourcePoolStatusRequestCall(name, pretty, _callback); } - private ApiResponse patchDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readResourcePoolStatusRequestWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readResourcePoolStatusRequestValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readResourcePoolStatusRequestAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readResourcePoolStatusRequestValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchDeviceTaintRuleRequest { + public class APIreadResourcePoolStatusRequestRequest { @jakarta.annotation.Nonnull private final String name; - @jakarta.annotation.Nonnull - private final V1Patch body; @jakarta.annotation.Nullable private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - @jakarta.annotation.Nullable - private Boolean force; - private APIpatchDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIreadResourcePoolStatusRequestRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchDeviceTaintRuleRequest + * @return APIreadResourcePoolStatusRequestRequest */ - public APIpatchDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadResourcePoolStatusRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchDeviceTaintRuleRequest - */ - public APIpatchDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchDeviceTaintRuleRequest - */ - public APIpatchDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchDeviceTaintRuleRequest - */ - public APIpatchDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchDeviceTaintRuleRequest - */ - public APIpatchDeviceTaintRuleRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchDeviceTaintRule + * Build call for readResourcePoolStatusRequest * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1661,51 +4310,48 @@ public APIpatchDeviceTaintRuleRequest force(@jakarta.annotation.Nullable Boolean Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readResourcePoolStatusRequestCall(name, pretty, _callback); } /** - * Execute patchDeviceTaintRule request - * @return V1alpha3DeviceTaintRule + * Execute readResourcePoolStatusRequest request + * @return V1alpha3ResourcePoolStatusRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha3DeviceTaintRule execute() throws ApiException { - ApiResponse localVarResp = patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1alpha3ResourcePoolStatusRequest execute() throws ApiException { + ApiResponse localVarResp = readResourcePoolStatusRequestWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchDeviceTaintRule request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceTaintRule> + * Execute readResourcePoolStatusRequest request with HTTP info returned + * @return ApiResponse<V1alpha3ResourcePoolStatusRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readResourcePoolStatusRequestWithHttpInfo(name, pretty); } /** - * Execute patchDeviceTaintRule request (asynchronously) + * Execute readResourcePoolStatusRequest request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1714,34 +4360,31 @@ public ApiResponse executeWithHttpInfo() throws ApiExce Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchDeviceTaintRuleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readResourcePoolStatusRequestAsync(name, pretty, _callback); } } /** * - * partially update the specified DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param body (required) - * @return APIpatchDeviceTaintRuleRequest + * read the specified ResourcePoolStatusRequest + * @param name name of the ResourcePoolStatusRequest (required) + * @return APIreadResourcePoolStatusRequestRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchDeviceTaintRuleRequest patchDeviceTaintRule(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchDeviceTaintRuleRequest(name, body); + public APIreadResourcePoolStatusRequestRequest readResourcePoolStatusRequest(@jakarta.annotation.Nonnull String name) { + return new APIreadResourcePoolStatusRequestRequest(name); } - private okhttp3.Call patchDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readResourcePoolStatusRequestStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1755,10 +4398,10 @@ private okhttp3.Call patchDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status" + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -1771,22 +4414,6 @@ private okhttp3.Call patchDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", @@ -1799,7 +4426,6 @@ private okhttp3.Call patchDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -1807,113 +4433,57 @@ private okhttp3.Call patchDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchDeviceTaintRuleStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readResourcePoolStatusRequestStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchDeviceTaintRuleStatus(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchDeviceTaintRuleStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readResourcePoolStatusRequestStatus(Async)"); } - return patchDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readResourcePoolStatusRequestStatusCall(name, pretty, _callback); } - private ApiResponse patchDeviceTaintRuleStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchDeviceTaintRuleStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readResourcePoolStatusRequestStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readResourcePoolStatusRequestStatusValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchDeviceTaintRuleStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readResourcePoolStatusRequestStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchDeviceTaintRuleStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readResourcePoolStatusRequestStatusValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchDeviceTaintRuleStatusRequest { + public class APIreadResourcePoolStatusRequestStatusRequest { @jakarta.annotation.Nonnull private final String name; - @jakarta.annotation.Nonnull - private final V1Patch body; @jakarta.annotation.Nullable private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - @jakarta.annotation.Nullable - private Boolean force; - private APIpatchDeviceTaintRuleStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIreadResourcePoolStatusRequestStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchDeviceTaintRuleStatusRequest + * @return APIreadResourcePoolStatusRequestStatusRequest */ - public APIpatchDeviceTaintRuleStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadResourcePoolStatusRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchDeviceTaintRuleStatusRequest - */ - public APIpatchDeviceTaintRuleStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchDeviceTaintRuleStatusRequest - */ - public APIpatchDeviceTaintRuleStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchDeviceTaintRuleStatusRequest - */ - public APIpatchDeviceTaintRuleStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchDeviceTaintRuleStatusRequest - */ - public APIpatchDeviceTaintRuleStatusRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchDeviceTaintRuleStatus + * Build call for readResourcePoolStatusRequestStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1922,51 +4492,48 @@ public APIpatchDeviceTaintRuleStatusRequest force(@jakarta.annotation.Nullable B Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readResourcePoolStatusRequestStatusCall(name, pretty, _callback); } /** - * Execute patchDeviceTaintRuleStatus request - * @return V1alpha3DeviceTaintRule + * Execute readResourcePoolStatusRequestStatus request + * @return V1alpha3ResourcePoolStatusRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1alpha3DeviceTaintRule execute() throws ApiException { - ApiResponse localVarResp = patchDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1alpha3ResourcePoolStatusRequest execute() throws ApiException { + ApiResponse localVarResp = readResourcePoolStatusRequestStatusWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchDeviceTaintRuleStatus request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceTaintRule> + * Execute readResourcePoolStatusRequestStatus request with HTTP info returned + * @return ApiResponse<V1alpha3ResourcePoolStatusRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readResourcePoolStatusRequestStatusWithHttpInfo(name, pretty); } /** - * Execute patchDeviceTaintRuleStatus request (asynchronously) + * Execute readResourcePoolStatusRequestStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1975,34 +4542,31 @@ public ApiResponse executeWithHttpInfo() throws ApiExce Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchDeviceTaintRuleStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readResourcePoolStatusRequestStatusAsync(name, pretty, _callback); } } /** * - * partially update status of the specified DeviceTaintRule - * @param name name of the DeviceTaintRule (required) - * @param body (required) - * @return APIpatchDeviceTaintRuleStatusRequest + * read status of the specified ResourcePoolStatusRequest + * @param name name of the ResourcePoolStatusRequest (required) + * @return APIreadResourcePoolStatusRequestStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchDeviceTaintRuleStatusRequest patchDeviceTaintRuleStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchDeviceTaintRuleStatusRequest(name, body); + public APIreadResourcePoolStatusRequestStatusRequest readResourcePoolStatusRequestStatus(@jakarta.annotation.Nonnull String name) { + return new APIreadResourcePoolStatusRequestStatusRequest(name); } - private okhttp3.Call readDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2016,7 +4580,7 @@ private okhttp3.Call readDeviceTaintRuleCall(@jakarta.annotation.Nonnull String basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" @@ -2032,6 +4596,18 @@ private okhttp3.Call readDeviceTaintRuleCall(@jakarta.annotation.Nonnull String localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -2044,6 +4620,7 @@ private okhttp3.Call readDeviceTaintRuleCall(@jakarta.annotation.Nonnull String } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2051,57 +4628,101 @@ private okhttp3.Call readDeviceTaintRuleCall(@jakarta.annotation.Nonnull String } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readDeviceTaintRule(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceTaintRule(Async)"); } - return readDeviceTaintRuleCall(name, pretty, _callback); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceTaintRule(Async)"); + } + + return replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse readDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readDeviceTaintRuleValidateBeforeCall(name, pretty, null); + private ApiResponse replaceDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readDeviceTaintRuleValidateBeforeCall(name, pretty, _callback); + okhttp3.Call localVarCall = replaceDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadDeviceTaintRuleRequest { + public class APIreplaceDeviceTaintRuleRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final V1alpha3DeviceTaintRule body; @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceDeviceTaintRuleRequest + */ + public APIreplaceDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceDeviceTaintRuleRequest + */ + public APIreplaceDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } - private APIreadDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name) { - this.name = name; + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceDeviceTaintRuleRequest + */ + public APIreplaceDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; } /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadDeviceTaintRuleRequest + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceDeviceTaintRuleRequest */ - public APIreadDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; + public APIreplaceDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; return this; } /** - * Build call for readDeviceTaintRule + * Build call for replaceDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2110,15 +4731,16 @@ public APIreadDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readDeviceTaintRuleCall(name, pretty, _callback); + return replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readDeviceTaintRule request + * Execute replaceDeviceTaintRule request * @return V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2126,16 +4748,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public V1alpha3DeviceTaintRule execute() throws ApiException { - ApiResponse localVarResp = readDeviceTaintRuleWithHttpInfo(name, pretty); + ApiResponse localVarResp = replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readDeviceTaintRule request with HTTP info returned + * Execute replaceDeviceTaintRule request with HTTP info returned * @return ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2143,15 +4766,16 @@ public V1alpha3DeviceTaintRule execute() throws ApiException { Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public ApiResponse executeWithHttpInfo() throws ApiException { - return readDeviceTaintRuleWithHttpInfo(name, pretty); + return replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readDeviceTaintRule request (asynchronously) + * Execute replaceDeviceTaintRule request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2160,31 +4784,34 @@ public ApiResponse executeWithHttpInfo() throws ApiExce Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readDeviceTaintRuleAsync(name, pretty, _callback); + return replaceDeviceTaintRuleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read the specified DeviceTaintRule + * replace the specified DeviceTaintRule * @param name name of the DeviceTaintRule (required) - * @return APIreadDeviceTaintRuleRequest + * @param body (required) + * @return APIreplaceDeviceTaintRuleRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadDeviceTaintRuleRequest readDeviceTaintRule(@jakarta.annotation.Nonnull String name) { - return new APIreadDeviceTaintRuleRequest(name); + public APIreplaceDeviceTaintRuleRequest replaceDeviceTaintRule(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { + return new APIreplaceDeviceTaintRuleRequest(name, body); } - private okhttp3.Call readDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2198,7 +4825,7 @@ private okhttp3.Call readDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull S basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status" @@ -2214,6 +4841,18 @@ private okhttp3.Call readDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull S localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -2226,6 +4865,7 @@ private okhttp3.Call readDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull S } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -2233,57 +4873,101 @@ private okhttp3.Call readDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull S } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readDeviceTaintRuleStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readDeviceTaintRuleStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceTaintRuleStatus(Async)"); } - return readDeviceTaintRuleStatusCall(name, pretty, _callback); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceTaintRuleStatus(Async)"); + } + + return replaceDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse readDeviceTaintRuleStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readDeviceTaintRuleStatusValidateBeforeCall(name, pretty, null); + private ApiResponse replaceDeviceTaintRuleStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceDeviceTaintRuleStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readDeviceTaintRuleStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readDeviceTaintRuleStatusValidateBeforeCall(name, pretty, _callback); + okhttp3.Call localVarCall = replaceDeviceTaintRuleStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadDeviceTaintRuleStatusRequest { + public class APIreplaceDeviceTaintRuleStatusRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final V1alpha3DeviceTaintRule body; @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; - private APIreadDeviceTaintRuleStatusRequest(@jakarta.annotation.Nonnull String name) { + private APIreplaceDeviceTaintRuleStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { this.name = name; + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadDeviceTaintRuleStatusRequest + * @return APIreplaceDeviceTaintRuleStatusRequest */ - public APIreadDeviceTaintRuleStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceDeviceTaintRuleStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readDeviceTaintRuleStatus + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceDeviceTaintRuleStatusRequest + */ + public APIreplaceDeviceTaintRuleStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceDeviceTaintRuleStatusRequest + */ + public APIreplaceDeviceTaintRuleStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceDeviceTaintRuleStatusRequest + */ + public APIreplaceDeviceTaintRuleStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceDeviceTaintRuleStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2292,15 +4976,16 @@ public APIreadDeviceTaintRuleStatusRequest pretty(@jakarta.annotation.Nullable S Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readDeviceTaintRuleStatusCall(name, pretty, _callback); + return replaceDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readDeviceTaintRuleStatus request + * Execute replaceDeviceTaintRuleStatus request * @return V1alpha3DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2308,16 +4993,17 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public V1alpha3DeviceTaintRule execute() throws ApiException { - ApiResponse localVarResp = readDeviceTaintRuleStatusWithHttpInfo(name, pretty); + ApiResponse localVarResp = replaceDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readDeviceTaintRuleStatus request with HTTP info returned + * Execute replaceDeviceTaintRuleStatus request with HTTP info returned * @return ApiResponse<V1alpha3DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2325,15 +5011,16 @@ public V1alpha3DeviceTaintRule execute() throws ApiException { Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public ApiResponse executeWithHttpInfo() throws ApiException { - return readDeviceTaintRuleStatusWithHttpInfo(name, pretty); + return replaceDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readDeviceTaintRuleStatus request (asynchronously) + * Execute replaceDeviceTaintRuleStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2342,31 +5029,34 @@ public ApiResponse executeWithHttpInfo() throws ApiExce Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readDeviceTaintRuleStatusAsync(name, pretty, _callback); + return replaceDeviceTaintRuleStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read status of the specified DeviceTaintRule + * replace status of the specified DeviceTaintRule * @param name name of the DeviceTaintRule (required) - * @return APIreadDeviceTaintRuleStatusRequest + * @param body (required) + * @return APIreplaceDeviceTaintRuleStatusRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadDeviceTaintRuleStatusRequest readDeviceTaintRuleStatus(@jakarta.annotation.Nonnull String name) { - return new APIreadDeviceTaintRuleStatusRequest(name); + public APIreplaceDeviceTaintRuleStatusRequest replaceDeviceTaintRuleStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { + return new APIreplaceDeviceTaintRuleStatusRequest(name, body); } - private okhttp3.Call replaceDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceResourcePoolStatusRequestCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2383,7 +5073,7 @@ private okhttp3.Call replaceDeviceTaintRuleCall(@jakarta.annotation.Nonnull Stri Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}" + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2432,41 +5122,41 @@ private okhttp3.Call replaceDeviceTaintRuleCall(@jakarta.annotation.Nonnull Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceResourcePoolStatusRequestValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceTaintRule(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceResourcePoolStatusRequest(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceTaintRule(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceResourcePoolStatusRequest(Async)"); } - return replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceResourcePoolStatusRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse replaceDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceResourcePoolStatusRequestWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceResourcePoolStatusRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceResourcePoolStatusRequestAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceResourcePoolStatusRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceDeviceTaintRuleRequest { + public class APIreplaceResourcePoolStatusRequestRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1alpha3DeviceTaintRule body; + private final V1alpha3ResourcePoolStatusRequest body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -2476,7 +5166,7 @@ public class APIreplaceDeviceTaintRuleRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { + private APIreplaceResourcePoolStatusRequestRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body) { this.name = name; this.body = body; } @@ -2484,9 +5174,9 @@ private APIreplaceDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceDeviceTaintRuleRequest + * @return APIreplaceResourcePoolStatusRequestRequest */ - public APIreplaceDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceResourcePoolStatusRequestRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2494,9 +5184,9 @@ public APIreplaceDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable Stri /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceDeviceTaintRuleRequest + * @return APIreplaceResourcePoolStatusRequestRequest */ - public APIreplaceDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceResourcePoolStatusRequestRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2504,9 +5194,9 @@ public APIreplaceDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable Stri /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceDeviceTaintRuleRequest + * @return APIreplaceResourcePoolStatusRequestRequest */ - public APIreplaceDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceResourcePoolStatusRequestRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2514,15 +5204,15 @@ public APIreplaceDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullabl /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceDeviceTaintRuleRequest + * @return APIreplaceResourcePoolStatusRequestRequest */ - public APIreplaceDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceResourcePoolStatusRequestRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceDeviceTaintRule + * Build call for replaceResourcePoolStatusRequest * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2536,12 +5226,12 @@ public APIreplaceDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Null */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceResourcePoolStatusRequestCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceDeviceTaintRule request - * @return V1alpha3DeviceTaintRule + * Execute replaceResourcePoolStatusRequest request + * @return V1alpha3ResourcePoolStatusRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2552,14 +5242,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha3DeviceTaintRule execute() throws ApiException { - ApiResponse localVarResp = replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha3ResourcePoolStatusRequest execute() throws ApiException { + ApiResponse localVarResp = replaceResourcePoolStatusRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceDeviceTaintRule request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceTaintRule> + * Execute replaceResourcePoolStatusRequest request with HTTP info returned + * @return ApiResponse<V1alpha3ResourcePoolStatusRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2570,12 +5260,12 @@ public V1alpha3DeviceTaintRule execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceResourcePoolStatusRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceDeviceTaintRule request (asynchronously) + * Execute replaceResourcePoolStatusRequest request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2588,17 +5278,17 @@ public ApiResponse executeWithHttpInfo() throws ApiExce 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceDeviceTaintRuleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceResourcePoolStatusRequestAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace the specified DeviceTaintRule - * @param name name of the DeviceTaintRule (required) + * replace the specified ResourcePoolStatusRequest + * @param name name of the ResourcePoolStatusRequest (required) * @param body (required) - * @return APIreplaceDeviceTaintRuleRequest + * @return APIreplaceResourcePoolStatusRequestRequest * @http.response.details @@ -2608,10 +5298,10 @@ public okhttp3.Call executeAsync(final ApiCallback _cal
Response Details
401 Unauthorized -
*/ - public APIreplaceDeviceTaintRuleRequest replaceDeviceTaintRule(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { - return new APIreplaceDeviceTaintRuleRequest(name, body); + public APIreplaceResourcePoolStatusRequestRequest replaceResourcePoolStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body) { + return new APIreplaceResourcePoolStatusRequestRequest(name, body); } - private okhttp3.Call replaceDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceResourcePoolStatusRequestStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2628,7 +5318,7 @@ private okhttp3.Call replaceDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnul Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status" + String localVarPath = "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -2677,41 +5367,41 @@ private okhttp3.Call replaceDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnul } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceDeviceTaintRuleStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceResourcePoolStatusRequestStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceTaintRuleStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceResourcePoolStatusRequestStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceTaintRuleStatus(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceResourcePoolStatusRequestStatus(Async)"); } - return replaceDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceResourcePoolStatusRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse replaceDeviceTaintRuleStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceDeviceTaintRuleStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceResourcePoolStatusRequestStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceResourcePoolStatusRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceDeviceTaintRuleStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceResourcePoolStatusRequestStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceDeviceTaintRuleStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceResourcePoolStatusRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceDeviceTaintRuleStatusRequest { + public class APIreplaceResourcePoolStatusRequestStatusRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1alpha3DeviceTaintRule body; + private final V1alpha3ResourcePoolStatusRequest body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -2721,7 +5411,7 @@ public class APIreplaceDeviceTaintRuleStatusRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceDeviceTaintRuleStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { + private APIreplaceResourcePoolStatusRequestStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body) { this.name = name; this.body = body; } @@ -2729,9 +5419,9 @@ private APIreplaceDeviceTaintRuleStatusRequest(@jakarta.annotation.Nonnull Strin /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceDeviceTaintRuleStatusRequest + * @return APIreplaceResourcePoolStatusRequestStatusRequest */ - public APIreplaceDeviceTaintRuleStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceResourcePoolStatusRequestStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2739,9 +5429,9 @@ public APIreplaceDeviceTaintRuleStatusRequest pretty(@jakarta.annotation.Nullabl /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceDeviceTaintRuleStatusRequest + * @return APIreplaceResourcePoolStatusRequestStatusRequest */ - public APIreplaceDeviceTaintRuleStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceResourcePoolStatusRequestStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2749,9 +5439,9 @@ public APIreplaceDeviceTaintRuleStatusRequest dryRun(@jakarta.annotation.Nullabl /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceDeviceTaintRuleStatusRequest + * @return APIreplaceResourcePoolStatusRequestStatusRequest */ - public APIreplaceDeviceTaintRuleStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceResourcePoolStatusRequestStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -2759,15 +5449,15 @@ public APIreplaceDeviceTaintRuleStatusRequest fieldManager(@jakarta.annotation.N /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceDeviceTaintRuleStatusRequest + * @return APIreplaceResourcePoolStatusRequestStatusRequest */ - public APIreplaceDeviceTaintRuleStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceResourcePoolStatusRequestStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceDeviceTaintRuleStatus + * Build call for replaceResourcePoolStatusRequestStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2781,12 +5471,12 @@ public APIreplaceDeviceTaintRuleStatusRequest fieldValidation(@jakarta.annotatio */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceResourcePoolStatusRequestStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceDeviceTaintRuleStatus request - * @return V1alpha3DeviceTaintRule + * Execute replaceResourcePoolStatusRequestStatus request + * @return V1alpha3ResourcePoolStatusRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2797,14 +5487,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1alpha3DeviceTaintRule execute() throws ApiException { - ApiResponse localVarResp = replaceDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1alpha3ResourcePoolStatusRequest execute() throws ApiException { + ApiResponse localVarResp = replaceResourcePoolStatusRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceDeviceTaintRuleStatus request with HTTP info returned - * @return ApiResponse<V1alpha3DeviceTaintRule> + * Execute replaceResourcePoolStatusRequestStatus request with HTTP info returned + * @return ApiResponse<V1alpha3ResourcePoolStatusRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2815,12 +5505,12 @@ public V1alpha3DeviceTaintRule execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceResourcePoolStatusRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceDeviceTaintRuleStatus request (asynchronously) + * Execute replaceResourcePoolStatusRequestStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2833,17 +5523,17 @@ public ApiResponse executeWithHttpInfo() throws ApiExce 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceDeviceTaintRuleStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceResourcePoolStatusRequestStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace status of the specified DeviceTaintRule - * @param name name of the DeviceTaintRule (required) + * replace status of the specified ResourcePoolStatusRequest + * @param name name of the ResourcePoolStatusRequest (required) * @param body (required) - * @return APIreplaceDeviceTaintRuleStatusRequest + * @return APIreplaceResourcePoolStatusRequestStatusRequest * @http.response.details @@ -2853,7 +5543,7 @@ public okhttp3.Call executeAsync(final ApiCallback _cal
Response Details
401 Unauthorized -
*/ - public APIreplaceDeviceTaintRuleStatusRequest replaceDeviceTaintRuleStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3DeviceTaintRule body) { - return new APIreplaceDeviceTaintRuleStatusRequest(name, body); + public APIreplaceResourcePoolStatusRequestStatusRequest replaceResourcePoolStatusRequestStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequest body) { + return new APIreplaceResourcePoolStatusRequestStatusRequest(name, body); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java index dd2a39e064..ae3a2e8fd4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta1Api.java @@ -1062,7 +1062,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba public APIcreateResourceSliceRequest createResourceSlice(@jakarta.annotation.Nonnull V1beta1ResourceSlice body) { return new APIcreateResourceSliceRequest(body); } - private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1139,6 +1139,10 @@ private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullabl localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1167,21 +1171,21 @@ private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullabl } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1215,6 +1219,8 @@ public class APIdeleteCollectionDeviceClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1352,6 +1358,16 @@ public APIdeleteCollectionDeviceClassRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1386,7 +1402,7 @@ public APIdeleteCollectionDeviceClassRequest body(@jakarta.annotation.Nullable V */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -1402,7 +1418,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -1419,7 +1435,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -1436,7 +1452,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionDeviceClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1455,7 +1471,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionDeviceClassRequest deleteCollectionDeviceClass() { return new APIdeleteCollectionDeviceClassRequest(); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1533,6 +1549,10 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annota localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1561,26 +1581,26 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annota } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); } - return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1616,6 +1636,8 @@ public class APIdeleteCollectionNamespacedResourceClaimRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1754,6 +1776,16 @@ public APIdeleteCollectionNamespacedResourceClaimRequest sendInitialEvents(@jaka return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1788,7 +1820,7 @@ public APIdeleteCollectionNamespacedResourceClaimRequest body(@jakarta.annotatio */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -1804,7 +1836,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -1821,7 +1853,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -1838,7 +1870,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1858,7 +1890,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedResourceClaimRequest deleteCollectionNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedResourceClaimRequest(namespace); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1936,6 +1968,10 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakart localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1964,26 +2000,26 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakart } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); } - return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2019,6 +2055,8 @@ public class APIdeleteCollectionNamespacedResourceClaimTemplateRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -2157,6 +2195,16 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest sendInitialEven return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2191,7 +2239,7 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest body(@jakarta.a */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -2207,7 +2255,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -2224,7 +2272,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -2241,7 +2289,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimTemplateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2261,7 +2309,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedResourceClaimTemplateRequest deleteCollectionNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedResourceClaimTemplateRequest(namespace); } - private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2338,6 +2386,10 @@ private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nulla localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2366,21 +2418,21 @@ private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nulla } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2414,6 +2466,8 @@ public class APIdeleteCollectionResourceSliceRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -2551,6 +2605,16 @@ public APIdeleteCollectionResourceSliceRequest sendInitialEvents(@jakarta.annota return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2585,7 +2649,7 @@ public APIdeleteCollectionResourceSliceRequest body(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -2601,7 +2665,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -2618,7 +2682,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -2635,7 +2699,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionResourceSliceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -3950,7 +4014,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4011,6 +4075,10 @@ private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -4045,21 +4113,21 @@ private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pre } @SuppressWarnings("rawtypes") - private okhttp3.Call listDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4085,6 +4153,8 @@ public class APIlistDeviceClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -4182,6 +4252,16 @@ public APIlistDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -4216,7 +4296,7 @@ public APIlistDeviceClassRequest watch(@jakarta.annotation.Nullable Boolean watc */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -4232,7 +4312,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1DeviceClassList execute() throws ApiException { - ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -4249,7 +4329,7 @@ public V1beta1DeviceClassList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -4266,7 +4346,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listDeviceClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listDeviceClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -4285,7 +4365,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call public APIlistDeviceClassRequest listDeviceClass() { return new APIlistDeviceClassRequest(); } - private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4347,6 +4427,10 @@ private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -4381,26 +4465,26 @@ private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); } - return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4428,6 +4512,8 @@ public class APIlistNamespacedResourceClaimRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -4526,6 +4612,16 @@ public APIlistNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -4560,7 +4656,7 @@ public APIlistNamespacedResourceClaimRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -4576,7 +4672,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1ResourceClaimList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -4593,7 +4689,7 @@ public V1beta1ResourceClaimList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -4610,7 +4706,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExc */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -4630,7 +4726,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca public APIlistNamespacedResourceClaimRequest listNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedResourceClaimRequest(namespace); } - private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4692,6 +4788,10 @@ private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -4726,26 +4826,26 @@ private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); } - return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4773,6 +4873,8 @@ public class APIlistNamespacedResourceClaimTemplateRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -4871,6 +4973,16 @@ public APIlistNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta. return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -4905,7 +5017,7 @@ public APIlistNamespacedResourceClaimTemplateRequest watch(@jakarta.annotation.N */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -4921,7 +5033,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1ResourceClaimTemplateList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -4938,7 +5050,7 @@ public V1beta1ResourceClaimTemplateList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -4955,7 +5067,7 @@ public ApiResponse executeWithHttpInfo() throw */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimTemplateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimTemplateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -4975,7 +5087,7 @@ public okhttp3.Call executeAsync(final ApiCallback listResourceClaimForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceClaimForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5110,6 +5226,8 @@ public class APIlistResourceClaimForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5207,6 +5325,16 @@ public APIlistResourceClaimForAllNamespacesRequest sendInitialEvents(@jakarta.an return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -5241,7 +5369,7 @@ public APIlistResourceClaimForAllNamespacesRequest watch(@jakarta.annotation.Nul */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -5257,7 +5385,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1ResourceClaimList execute() throws ApiException { - ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -5274,7 +5402,7 @@ public V1beta1ResourceClaimList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -5291,7 +5419,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExc */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceClaimForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listResourceClaimForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -5310,7 +5438,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca public APIlistResourceClaimForAllNamespacesRequest listResourceClaimForAllNamespaces() { return new APIlistResourceClaimForAllNamespacesRequest(); } - private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5371,6 +5499,10 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.anno localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5405,21 +5537,21 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.anno } @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5445,6 +5577,8 @@ public class APIlistResourceClaimTemplateForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5542,6 +5676,16 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest sendInitialEvents(@ja return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -5576,7 +5720,7 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest watch(@jakarta.annota */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -5592,7 +5736,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1ResourceClaimTemplateList execute() throws ApiException { - ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -5609,7 +5753,7 @@ public V1beta1ResourceClaimTemplateList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -5626,7 +5770,7 @@ public ApiResponse executeWithHttpInfo() throw */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceClaimTemplateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listResourceClaimTemplateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -5645,7 +5789,7 @@ public okhttp3.Call executeAsync(final ApiCallback listResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5780,6 +5928,8 @@ public class APIlistResourceSliceRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5877,6 +6027,16 @@ public APIlistResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullabl return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -5911,7 +6071,7 @@ public APIlistResourceSliceRequest watch(@jakarta.annotation.Nullable Boolean wa */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -5927,7 +6087,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1ResourceSliceList execute() throws ApiException { - ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -5944,7 +6104,7 @@ public V1beta1ResourceSliceList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -5961,7 +6121,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExc */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceSliceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listResourceSliceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java index dee4cf499e..0a7bde850f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/ResourceV1beta2Api.java @@ -32,6 +32,8 @@ import io.kubernetes.client.openapi.models.V1Status; import io.kubernetes.client.openapi.models.V1beta2DeviceClass; import io.kubernetes.client.openapi.models.V1beta2DeviceClassList; +import io.kubernetes.client.openapi.models.V1beta2DeviceTaintRule; +import io.kubernetes.client.openapi.models.V1beta2DeviceTaintRuleList; import io.kubernetes.client.openapi.models.V1beta2ResourceClaim; import io.kubernetes.client.openapi.models.V1beta2ResourceClaimList; import io.kubernetes.client.openapi.models.V1beta2ResourceClaimTemplate; @@ -322,6 +324,246 @@ public okhttp3.Call executeAsync(final ApiCallback _callback public APIcreateDeviceClassRequest createDeviceClass(@jakarta.annotation.Nonnull V1beta2DeviceClass body) { return new APIcreateDeviceClassRequest(body); } + private okhttp3.Call createDeviceTaintRuleCall(@jakarta.annotation.Nonnull V1beta2DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/devicetaintrules"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull V1beta2DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createDeviceTaintRule(Async)"); + } + + return createDeviceTaintRuleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull V1beta2DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createDeviceTaintRuleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createDeviceTaintRuleAsync(@jakarta.annotation.Nonnull V1beta2DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createDeviceTaintRuleValidateBeforeCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateDeviceTaintRuleRequest { + @jakarta.annotation.Nonnull + private final V1beta2DeviceTaintRule body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateDeviceTaintRuleRequest(@jakarta.annotation.Nonnull V1beta2DeviceTaintRule body) { + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateDeviceTaintRuleRequest + */ + public APIcreateDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateDeviceTaintRuleRequest + */ + public APIcreateDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateDeviceTaintRuleRequest + */ + public APIcreateDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateDeviceTaintRuleRequest + */ + public APIcreateDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createDeviceTaintRule + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createDeviceTaintRuleCall(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createDeviceTaintRule request + * @return V1beta2DeviceTaintRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1beta2DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = createDeviceTaintRuleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1beta2DeviceTaintRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createDeviceTaintRuleWithHttpInfo(body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createDeviceTaintRule request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createDeviceTaintRuleAsync(body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a DeviceTaintRule + * @param body (required) + * @return APIcreateDeviceTaintRuleRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateDeviceTaintRuleRequest createDeviceTaintRule(@jakarta.annotation.Nonnull V1beta2DeviceTaintRule body) { + return new APIcreateDeviceTaintRuleRequest(body); + } private okhttp3.Call createNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers @@ -1062,7 +1304,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callba public APIcreateResourceSliceRequest createResourceSlice(@jakarta.annotation.Nonnull V1beta2ResourceSlice body) { return new APIcreateResourceSliceRequest(body); } - private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1139,6 +1381,10 @@ private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullabl localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1167,21 +1413,21 @@ private okhttp3.Call deleteCollectionDeviceClassCall(@jakarta.annotation.Nullabl } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionDeviceClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1215,6 +1461,8 @@ public class APIdeleteCollectionDeviceClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -1352,6 +1600,16 @@ public APIdeleteCollectionDeviceClassRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionDeviceClassRequest + */ + public APIdeleteCollectionDeviceClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1386,7 +1644,7 @@ public APIdeleteCollectionDeviceClassRequest body(@jakarta.annotation.Nullable V */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionDeviceClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -1402,7 +1660,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -1419,7 +1677,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionDeviceClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -1436,7 +1694,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionDeviceClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionDeviceClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1455,7 +1713,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionDeviceClassRequest deleteCollectionDeviceClass() { return new APIdeleteCollectionDeviceClassRequest(); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceTaintRuleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1472,8 +1730,7 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annota Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1beta2/devicetaintrules"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1533,6 +1790,10 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annota localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1561,34 +1822,27 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annota } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); - } - - return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionDeviceTaintRuleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionDeviceTaintRuleValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionNamespacedResourceClaimRequest { - @jakarta.annotation.Nonnull - private final String namespace; + public class APIdeleteCollectionDeviceTaintRuleRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -1616,20 +1870,21 @@ public class APIdeleteCollectionNamespacedResourceClaimRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace) { - this.namespace = namespace; + private APIdeleteCollectionDeviceTaintRuleRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteCollectionDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -1637,9 +1892,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest pretty(@jakarta.annotat /** * Set _continue * @param _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. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIdeleteCollectionDeviceTaintRuleRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -1647,9 +1902,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest _continue(@jakarta.anno /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteCollectionDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -1657,9 +1912,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest dryRun(@jakarta.annotat /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIdeleteCollectionDeviceTaintRuleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -1667,9 +1922,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest fieldSelector(@jakarta. /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteCollectionDeviceTaintRuleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -1677,9 +1932,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest gracePeriodSeconds(@jak /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionDeviceTaintRuleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -1687,9 +1942,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest ignoreStoreReadErrorWit /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIdeleteCollectionDeviceTaintRuleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -1697,9 +1952,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest labelSelector(@jakarta. /** * Set limit * @param 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. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIdeleteCollectionDeviceTaintRuleRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -1707,9 +1962,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest limit(@jakarta.annotati /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteCollectionDeviceTaintRuleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -1717,9 +1972,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest orphanDependents(@jakar /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteCollectionDeviceTaintRuleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -1727,9 +1982,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest propagationPolicy(@jaka /** * Set resourceVersion * @param 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 (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIdeleteCollectionDeviceTaintRuleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -1737,9 +1992,9 @@ public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersion(@jakart /** * Set resourceVersionMatch * @param 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 (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIdeleteCollectionDeviceTaintRuleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -1747,35 +2002,45 @@ public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersionMatch(@j /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIdeleteCollectionDeviceTaintRuleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public APIdeleteCollectionDeviceTaintRuleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionDeviceTaintRuleRequest + */ + public APIdeleteCollectionDeviceTaintRuleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } /** * Set body * @param body (optional) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * @return APIdeleteCollectionDeviceTaintRuleRequest */ - public APIdeleteCollectionNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteCollectionDeviceTaintRuleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionNamespacedResourceClaim + * Build call for deleteCollectionDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1788,11 +2053,11 @@ public APIdeleteCollectionNamespacedResourceClaimRequest body(@jakarta.annotatio */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionDeviceTaintRuleCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionNamespacedResourceClaim request + * Execute deleteCollectionDeviceTaintRule request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1804,12 +2069,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionNamespacedResourceClaim request with HTTP info returned + * Execute deleteCollectionDeviceTaintRule request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1821,11 +2086,11 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionDeviceTaintRuleWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** - * Execute deleteCollectionNamespacedResourceClaim request (asynchronously) + * Execute deleteCollectionDeviceTaintRule request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1838,15 +2103,14 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionDeviceTaintRuleAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } /** * - * delete collection of ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteCollectionNamespacedResourceClaimRequest + * delete collection of DeviceTaintRule + * @return APIdeleteCollectionDeviceTaintRuleRequest * @http.response.details @@ -1855,10 +2119,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedResourceClaimRequest deleteCollectionNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { - return new APIdeleteCollectionNamespacedResourceClaimRequest(namespace); + public APIdeleteCollectionDeviceTaintRuleRequest deleteCollectionDeviceTaintRule() { + return new APIdeleteCollectionDeviceTaintRuleRequest(); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1875,7 +2139,7 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakart Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates" + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims" .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); @@ -1936,6 +2200,10 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakart localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1964,32 +2232,32 @@ private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakart } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaim(Async)"); } - return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionNamespacedResourceClaimTemplateRequest { + public class APIdeleteCollectionNamespacedResourceClaimRequest { @jakarta.annotation.Nonnull private final String namespace; @jakarta.annotation.Nullable @@ -2019,20 +2287,22 @@ public class APIdeleteCollectionNamespacedResourceClaimTemplateRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace) { + private APIdeleteCollectionNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace) { this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteCollectionNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2040,9 +2310,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest pretty(@jakarta /** * Set _continue * @param _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. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIdeleteCollectionNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2050,9 +2320,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest _continue(@jaka /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteCollectionNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2060,9 +2330,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest dryRun(@jakarta /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIdeleteCollectionNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2070,9 +2340,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest fieldSelector(@ /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2080,9 +2350,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest gracePeriodSeco /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2090,9 +2360,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest ignoreStoreRead /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIdeleteCollectionNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2100,9 +2370,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest labelSelector(@ /** * Set limit * @param 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. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIdeleteCollectionNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2110,9 +2380,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest limit(@jakarta. /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteCollectionNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2120,9 +2390,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest orphanDependent /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteCollectionNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2130,9 +2400,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest propagationPoli /** * Set resourceVersion * @param 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 (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2140,9 +2410,9 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion /** * Set resourceVersionMatch * @param 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 (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIdeleteCollectionNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2150,19 +2420,29 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimRequest + */ + public APIdeleteCollectionNamespacedResourceClaimRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2170,15 +2450,15 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest timeoutSeconds( /** * Set body * @param body (optional) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest */ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteCollectionNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionNamespacedResourceClaimTemplate + * Build call for deleteCollectionNamespacedResourceClaim * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2191,11 +2471,11 @@ public APIdeleteCollectionNamespacedResourceClaimTemplateRequest body(@jakarta.a */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionNamespacedResourceClaimTemplate request + * Execute deleteCollectionNamespacedResourceClaim request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2207,12 +2487,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionNamespacedResourceClaimTemplate request with HTTP info returned + * Execute deleteCollectionNamespacedResourceClaim request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2224,11 +2504,11 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedResourceClaimWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** - * Execute deleteCollectionNamespacedResourceClaimTemplate request (asynchronously) + * Execute deleteCollectionNamespacedResourceClaim request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2241,15 +2521,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedResourceClaimTemplateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } /** * - * delete collection of ResourceClaimTemplate + * delete collection of ResourceClaim * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + * @return APIdeleteCollectionNamespacedResourceClaimRequest * @http.response.details @@ -2258,10 +2538,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteCollectionNamespacedResourceClaimTemplateRequest deleteCollectionNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { - return new APIdeleteCollectionNamespacedResourceClaimTemplateRequest(namespace); + public APIdeleteCollectionNamespacedResourceClaimRequest deleteCollectionNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedResourceClaimRequest(namespace); } - private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2278,7 +2558,8 @@ private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nulla Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices"; + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2338,6 +2619,10 @@ private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nulla localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2366,27 +2651,34 @@ private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nulla } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceClaimTemplate(Async)"); + } + + return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteCollectionResourceSliceRequest { + public class APIdeleteCollectionNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String namespace; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -2414,19 +2706,22 @@ public class APIdeleteCollectionResourceSliceRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteCollectionResourceSliceRequest() { + private APIdeleteCollectionNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -2434,9 +2729,9 @@ public APIdeleteCollectionResourceSliceRequest pretty(@jakarta.annotation.Nullab /** * Set _continue * @param _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. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -2444,9 +2739,9 @@ public APIdeleteCollectionResourceSliceRequest _continue(@jakarta.annotation.Nul /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -2454,9 +2749,9 @@ public APIdeleteCollectionResourceSliceRequest dryRun(@jakarta.annotation.Nullab /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -2464,9 +2759,9 @@ public APIdeleteCollectionResourceSliceRequest fieldSelector(@jakarta.annotation /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2474,9 +2769,9 @@ public APIdeleteCollectionResourceSliceRequest gracePeriodSeconds(@jakarta.annot /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -2484,9 +2779,9 @@ public APIdeleteCollectionResourceSliceRequest ignoreStoreReadErrorWithClusterBr /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -2494,9 +2789,9 @@ public APIdeleteCollectionResourceSliceRequest labelSelector(@jakarta.annotation /** * Set limit * @param 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. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -2504,9 +2799,9 @@ public APIdeleteCollectionResourceSliceRequest limit(@jakarta.annotation.Nullabl /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2514,9 +2809,9 @@ public APIdeleteCollectionResourceSliceRequest orphanDependents(@jakarta.annotat /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -2524,9 +2819,9 @@ public APIdeleteCollectionResourceSliceRequest propagationPolicy(@jakarta.annota /** * Set resourceVersion * @param 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 (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -2534,9 +2829,9 @@ public APIdeleteCollectionResourceSliceRequest resourceVersion(@jakarta.annotati /** * Set resourceVersionMatch * @param 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 (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -2544,19 +2839,29 @@ public APIdeleteCollectionResourceSliceRequest resourceVersionMatch(@jakarta.ann /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest + */ + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -2564,15 +2869,15 @@ public APIdeleteCollectionResourceSliceRequest timeoutSeconds(@jakarta.annotatio /** * Set body * @param body (optional) - * @return APIdeleteCollectionResourceSliceRequest + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest */ - public APIdeleteCollectionResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteCollectionResourceSlice + * Build call for deleteCollectionNamespacedResourceClaimTemplate * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2585,11 +2890,11 @@ public APIdeleteCollectionResourceSliceRequest body(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimTemplateCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** - * Execute deleteCollectionResourceSlice request + * Execute deleteCollectionNamespacedResourceClaimTemplate request * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2601,12 +2906,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteCollectionResourceSlice request with HTTP info returned + * Execute deleteCollectionNamespacedResourceClaimTemplate request with HTTP info returned * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2618,11 +2923,11 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** - * Execute deleteCollectionResourceSlice request (asynchronously) + * Execute deleteCollectionNamespacedResourceClaimTemplate request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2635,14 +2940,15 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionResourceSliceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedResourceClaimTemplateAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } /** * - * delete collection of ResourceSlice - * @return APIdeleteCollectionResourceSliceRequest + * delete collection of ResourceClaimTemplate + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedResourceClaimTemplateRequest * @http.response.details @@ -2651,10 +2957,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A
Response Details
401 Unauthorized -
*/ - public APIdeleteCollectionResourceSliceRequest deleteCollectionResourceSlice() { - return new APIdeleteCollectionResourceSliceRequest(); + public APIdeleteCollectionNamespacedResourceClaimTemplateRequest deleteCollectionNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedResourceClaimTemplateRequest(namespace); } - private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2671,8 +2977,7 @@ private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String na Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -2684,10 +2989,18 @@ private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String na localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (gracePeriodSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } @@ -2696,6 +3009,14 @@ private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String na localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (orphanDependents != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } @@ -2704,6 +3025,26 @@ private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String na localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -2728,79 +3069,109 @@ private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String na } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceClass(Async)"); - } - - return deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + private okhttp3.Call deleteCollectionResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteCollectionResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteCollectionResourceSliceValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteDeviceClassRequest { - @jakarta.annotation.Nonnull - private final String name; + public class APIdeleteCollectionResourceSliceRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable private String dryRun; @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable private Integer gracePeriodSeconds; @jakarta.annotation.Nullable private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable private Boolean orphanDependents; @jakarta.annotation.Nullable private String propagationPolicy; @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteDeviceClassRequest(@jakarta.annotation.Nonnull String name) { - this.name = name; + private APIdeleteCollectionResourceSliceRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteDeviceClassRequest + * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteCollectionResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } + /** + * Set _continue + * @param _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. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteDeviceClassRequest + * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteCollectionResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteDeviceClassRequest + * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteDeviceClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteCollectionResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -2808,19 +3179,39 @@ public APIdeleteDeviceClassRequest gracePeriodSeconds(@jakarta.annotation.Nullab /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteDeviceClassRequest + * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteCollectionResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteDeviceClassRequest + * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteDeviceClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteCollectionResourceSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -2828,25 +3219,75 @@ public APIdeleteDeviceClassRequest orphanDependents(@jakarta.annotation.Nullable /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteDeviceClassRequest + * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteDeviceClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteCollectionResourceSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionResourceSliceRequest + */ + public APIdeleteCollectionResourceSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + /** * Set body * @param body (optional) - * @return APIdeleteDeviceClassRequest + * @return APIdeleteCollectionResourceSliceRequest */ - public APIdeleteDeviceClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteCollectionResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteDeviceClass + * Build call for deleteCollectionResourceSlice * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2855,51 +3296,48 @@ public APIdeleteDeviceClassRequest body(@jakarta.annotation.Nullable V1DeleteOpt Response Details Status Code Description Response Headers 200 OK - - 202 Accepted - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteCollectionResourceSliceCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** - * Execute deleteDeviceClass request - * @return V1beta2DeviceClass + * Execute deleteCollectionResourceSlice request + * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1beta2DeviceClass execute() throws ApiException { - ApiResponse localVarResp = deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } /** - * Execute deleteDeviceClass request with HTTP info returned - * @return ApiResponse<V1beta2DeviceClass> + * Execute deleteCollectionResourceSlice request with HTTP info returned + * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionResourceSliceWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** - * Execute deleteDeviceClass request (asynchronously) + * Execute deleteCollectionResourceSlice request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2908,33 +3346,30 @@ public ApiResponse executeWithHttpInfo() throws ApiException Response Details Status Code Description Response Headers 200 OK - - 202 Accepted - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteDeviceClassAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionResourceSliceAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } /** * - * delete a DeviceClass - * @param name name of the DeviceClass (required) - * @return APIdeleteDeviceClassRequest + * delete collection of ResourceSlice + * @return APIdeleteCollectionResourceSliceRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIdeleteDeviceClassRequest deleteDeviceClass(@jakarta.annotation.Nonnull String name) { - return new APIdeleteDeviceClassRequest(name); + public APIdeleteCollectionResourceSliceRequest deleteCollectionResourceSlice() { + return new APIdeleteCollectionResourceSliceRequest(); } - private okhttp3.Call deleteNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2951,9 +3386,8 @@ private okhttp3.Call deleteNamespacedResourceClaimCall(@jakarta.annotation.Nonnu Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3009,41 +3443,34 @@ private okhttp3.Call deleteNamespacedResourceClaimCall(@jakarta.annotation.Nonnu } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaim(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaim(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceClass(Async)"); } - return deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse deleteNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteDeviceClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteNamespacedResourceClaimRequest { + public class APIdeleteDeviceClassRequest { @jakarta.annotation.Nonnull private final String name; - @jakarta.annotation.Nonnull - private final String namespace; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -3059,17 +3486,16 @@ public class APIdeleteNamespacedResourceClaimRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + private APIdeleteDeviceClassRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteNamespacedResourceClaimRequest + * @return APIdeleteDeviceClassRequest */ - public APIdeleteNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3077,9 +3503,9 @@ public APIdeleteNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullab /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteNamespacedResourceClaimRequest + * @return APIdeleteDeviceClassRequest */ - public APIdeleteNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3087,9 +3513,9 @@ public APIdeleteNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullab /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteNamespacedResourceClaimRequest + * @return APIdeleteDeviceClassRequest */ - public APIdeleteNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteDeviceClassRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3097,9 +3523,9 @@ public APIdeleteNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annot /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteNamespacedResourceClaimRequest + * @return APIdeleteDeviceClassRequest */ - public APIdeleteNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteDeviceClassRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3107,9 +3533,9 @@ public APIdeleteNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBr /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteNamespacedResourceClaimRequest + * @return APIdeleteDeviceClassRequest */ - public APIdeleteNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteDeviceClassRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3117,9 +3543,9 @@ public APIdeleteNamespacedResourceClaimRequest orphanDependents(@jakarta.annotat /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteNamespacedResourceClaimRequest + * @return APIdeleteDeviceClassRequest */ - public APIdeleteNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteDeviceClassRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3127,15 +3553,15 @@ public APIdeleteNamespacedResourceClaimRequest propagationPolicy(@jakarta.annota /** * Set body * @param body (optional) - * @return APIdeleteNamespacedResourceClaimRequest + * @return APIdeleteDeviceClassRequest */ - public APIdeleteNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteDeviceClassRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteNamespacedResourceClaim + * Build call for deleteDeviceClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3149,13 +3575,13 @@ public APIdeleteNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteDeviceClassCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteNamespacedResourceClaim request - * @return V1beta2ResourceClaim - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * Execute deleteDeviceClass request + * @return V1beta2DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3165,14 +3591,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
Response Details
401 Unauthorized -
*/ - public V1beta2ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1beta2DeviceClass execute() throws ApiException { + ApiResponse localVarResp = deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteNamespacedResourceClaim request with HTTP info returned - * @return ApiResponse<V1beta2ResourceClaim> + * Execute deleteDeviceClass request with HTTP info returned + * @return ApiResponse<V1beta2DeviceClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3183,12 +3609,12 @@ public V1beta2ResourceClaim execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteDeviceClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteNamespacedResourceClaim request (asynchronously) + * Execute deleteDeviceClass request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3201,17 +3627,16 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteNamespacedResourceClaimAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteDeviceClassAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteNamespacedResourceClaimRequest + * delete a DeviceClass + * @param name name of the DeviceClass (required) + * @return APIdeleteDeviceClassRequest * @http.response.details @@ -3221,10 +3646,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callba
Response Details
401 Unauthorized -
*/ - public APIdeleteNamespacedResourceClaimRequest deleteNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIdeleteNamespacedResourceClaimRequest(name, namespace); + public APIdeleteDeviceClassRequest deleteDeviceClass(@jakarta.annotation.Nonnull String name) { + return new APIdeleteDeviceClassRequest(name); } - private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3241,9 +3666,8 @@ private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(@jakarta.annotati Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3299,41 +3723,34 @@ private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(@jakarta.annotati } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaimTemplate(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteDeviceTaintRule(Async)"); } - return deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteDeviceTaintRuleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse deleteNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteDeviceTaintRuleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteDeviceTaintRuleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteNamespacedResourceClaimTemplateRequest { + public class APIdeleteDeviceTaintRuleRequest { @jakarta.annotation.Nonnull private final String name; - @jakarta.annotation.Nonnull - private final String namespace; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -3349,17 +3766,16 @@ public class APIdeleteNamespacedResourceClaimTemplateRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + private APIdeleteDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3367,9 +3783,9 @@ public APIdeleteNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotatio /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3377,9 +3793,9 @@ public APIdeleteNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotatio /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteDeviceTaintRuleRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3387,9 +3803,9 @@ public APIdeleteNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakar /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteDeviceTaintRuleRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3397,9 +3813,9 @@ public APIdeleteNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithC /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteDeviceTaintRuleRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3407,9 +3823,9 @@ public APIdeleteNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteDeviceTaintRuleRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3417,15 +3833,15 @@ public APIdeleteNamespacedResourceClaimTemplateRequest propagationPolicy(@jakart /** * Set body * @param body (optional) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * @return APIdeleteDeviceTaintRuleRequest */ - public APIdeleteNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteDeviceTaintRuleRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteNamespacedResourceClaimTemplate + * Build call for deleteDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3439,12 +3855,12 @@ public APIdeleteNamespacedResourceClaimTemplateRequest body(@jakarta.annotation. */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteDeviceTaintRuleCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteNamespacedResourceClaimTemplate request - * @return V1beta2ResourceClaimTemplate + * Execute deleteDeviceTaintRule request + * @return V1beta2DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3455,14 +3871,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta2ResourceClaimTemplate execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1beta2DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteNamespacedResourceClaimTemplate request with HTTP info returned - * @return ApiResponse<V1beta2ResourceClaimTemplate> + * Execute deleteDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1beta2DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3473,12 +3889,12 @@ public V1beta2ResourceClaimTemplate execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteDeviceTaintRuleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteNamespacedResourceClaimTemplate request (asynchronously) + * Execute deleteDeviceTaintRule request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3491,17 +3907,16 @@ public ApiResponse executeWithHttpInfo() throws Ap 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteNamespacedResourceClaimTemplateAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteDeviceTaintRuleAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteNamespacedResourceClaimTemplateRequest + * delete a DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @return APIdeleteDeviceTaintRuleRequest * @http.response.details @@ -3511,10 +3926,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIdeleteNamespacedResourceClaimTemplateRequest deleteNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIdeleteNamespacedResourceClaimTemplateRequest(name, namespace); + public APIdeleteDeviceTaintRuleRequest deleteDeviceTaintRule(@jakarta.annotation.Nonnull String name) { + return new APIdeleteDeviceTaintRuleRequest(name); } - private okhttp3.Call deleteResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3531,8 +3946,9 @@ private okhttp3.Call deleteResourceSliceCall(@jakarta.annotation.Nonnull String Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3588,34 +4004,41 @@ private okhttp3.Call deleteResourceSliceCall(@jakarta.annotation.Nonnull String } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteResourceSlice(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaim(Async)"); } - return deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaim(Async)"); + } + + return deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse deleteResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIdeleteResourceSliceRequest { + public class APIdeleteNamespacedResourceClaimRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final String namespace; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -3631,16 +4054,17 @@ public class APIdeleteResourceSliceRequest { @jakarta.annotation.Nullable private V1DeleteOptions body; - private APIdeleteResourceSliceRequest(@jakarta.annotation.Nonnull String name) { + private APIdeleteNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; + this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteResourceSliceRequest + * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -3648,9 +4072,9 @@ public APIdeleteResourceSliceRequest pretty(@jakarta.annotation.Nullable String /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteResourceSliceRequest + * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIdeleteNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -3658,9 +4082,9 @@ public APIdeleteResourceSliceRequest dryRun(@jakarta.annotation.Nullable String /** * Set gracePeriodSeconds * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteResourceSliceRequest + * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + public APIdeleteNamespacedResourceClaimRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -3668,9 +4092,9 @@ public APIdeleteResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Null /** * Set ignoreStoreReadErrorWithClusterBreakingPotential * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteResourceSliceRequest + * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + public APIdeleteNamespacedResourceClaimRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } @@ -3678,9 +4102,9 @@ public APIdeleteResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPote /** * Set orphanDependents * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteResourceSliceRequest + * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteResourceSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + public APIdeleteNamespacedResourceClaimRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { this.orphanDependents = orphanDependents; return this; } @@ -3688,9 +4112,9 @@ public APIdeleteResourceSliceRequest orphanDependents(@jakarta.annotation.Nullab /** * Set propagationPolicy * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteResourceSliceRequest + * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteResourceSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + public APIdeleteNamespacedResourceClaimRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { this.propagationPolicy = propagationPolicy; return this; } @@ -3698,15 +4122,15 @@ public APIdeleteResourceSliceRequest propagationPolicy(@jakarta.annotation.Nulla /** * Set body * @param body (optional) - * @return APIdeleteResourceSliceRequest + * @return APIdeleteNamespacedResourceClaimRequest */ - public APIdeleteResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + public APIdeleteNamespacedResourceClaimRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { this.body = body; return this; } /** - * Build call for deleteResourceSlice + * Build call for deleteNamespacedResourceClaim * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3720,12 +4144,12 @@ public APIdeleteResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteO */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + return deleteNamespacedResourceClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute deleteResourceSlice request - * @return V1beta2ResourceSlice + * Execute deleteNamespacedResourceClaim request + * @return V1beta2ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3736,14 +4160,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta2ResourceSlice execute() throws ApiException { - ApiResponse localVarResp = deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public V1beta2ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute deleteResourceSlice request with HTTP info returned - * @return ApiResponse<V1beta2ResourceSlice> + * Execute deleteNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -3754,12 +4178,12 @@ public V1beta2ResourceSlice execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteNamespacedResourceClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute deleteResourceSlice request (asynchronously) + * Execute deleteNamespacedResourceClaim request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3772,16 +4196,17 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteResourceSliceAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteNamespacedResourceClaimAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * delete a ResourceSlice - * @param name name of the ResourceSlice (required) - * @return APIdeleteResourceSliceRequest + * delete a ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedResourceClaimRequest * @http.response.details @@ -3791,10 +4216,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callba
Response Details
401 Unauthorized -
*/ - public APIdeleteResourceSliceRequest deleteResourceSlice(@jakarta.annotation.Nonnull String name) { - return new APIdeleteResourceSliceRequest(name); + public APIdeleteNamespacedResourceClaimRequest deleteNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedResourceClaimRequest(name, namespace); } - private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3808,10 +4233,12 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/"; + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3819,6 +4246,30 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -3831,6 +4282,7 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -3838,37 +4290,137 @@ private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws Api } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); + private okhttp3.Call deleteNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceClaimTemplate(Async)"); + } + + return deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIgetAPIResourcesRequest { - - private APIgetAPIResourcesRequest() { - } + public class APIdeleteNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } /** - * Build call for getAPIResources + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteNamespacedResourceClaimTemplateRequest + */ + public APIdeleteNamespacedResourceClaimTemplateRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteNamespacedResourceClaimTemplate * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -3877,48 +4429,51 @@ private APIgetAPIResourcesRequest() { Response Details Status Code Description Response Headers 200 OK - + 202 Accepted - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); + return deleteNamespacedResourceClaimTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Execute getAPIResources request - * @return V1APIResourceList + * Execute deleteNamespacedResourceClaimTemplate request + * @return V1beta2ResourceClaimTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1APIResourceList execute() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + public V1beta2ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); return localVarResp.getData(); } /** - * Execute getAPIResources request with HTTP info returned - * @return ApiResponse<V1APIResourceList> + * Execute deleteNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaimTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getAPIResourcesWithHttpInfo(); + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Execute getAPIResources request (asynchronously) + * Execute deleteNamespacedResourceClaimTemplate request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -3927,30 +4482,34 @@ public ApiResponse executeWithHttpInfo() throws ApiException Response Details Status Code Description Response Headers 200 OK - + 202 Accepted - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getAPIResourcesAsync(_callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteNamespacedResourceClaimTemplateAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } } /** * - * get available resources - * @return APIgetAPIResourcesRequest + * delete a ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedResourceClaimTemplateRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIgetAPIResourcesRequest getAPIResources() { - return new APIgetAPIResourcesRequest(); + public APIdeleteNamespacedResourceClaimTemplateRequest deleteNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedResourceClaimTemplateRequest(name, namespace); } - private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3964,10 +4523,11 @@ private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pre basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses"; + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -3979,54 +4539,31 @@ private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pre localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); } - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); } - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); } - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); } - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); } final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" }; final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) { @@ -4034,6 +4571,7 @@ private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pre } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -4041,169 +4579,291 @@ private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pre } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call listDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call deleteResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteResourceSlice(Async)"); + } + + return deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } - private ApiResponse listDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse deleteResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = deleteResourceSliceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistDeviceClassRequest { + public class APIdeleteResourceSliceRequest { + @jakarta.annotation.Nonnull + private final String name; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; + private String dryRun; @jakarta.annotation.Nullable - private String resourceVersion; + private Integer gracePeriodSeconds; @jakarta.annotation.Nullable - private String resourceVersionMatch; + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; @jakarta.annotation.Nullable - private Boolean sendInitialEvents; + private Boolean orphanDependents; @jakarta.annotation.Nullable - private Integer timeoutSeconds; + private String propagationPolicy; @jakarta.annotation.Nullable - private Boolean watch; + private V1DeleteOptions body; - private APIlistDeviceClassRequest() { + private APIdeleteResourceSliceRequest(@jakarta.annotation.Nonnull String name) { + this.name = name; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistDeviceClassRequest + * @return APIdeleteResourceSliceRequest */ - public APIlistDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIdeleteResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set allowWatchBookmarks - * @param 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. (optional) - * @return APIlistDeviceClassRequest + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteResourceSliceRequest */ - public APIlistDeviceClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; + public APIdeleteResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; return this; } /** - * Set _continue - * @param _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. (optional) - * @return APIlistDeviceClassRequest + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteResourceSliceRequest */ - public APIlistDeviceClassRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; + public APIdeleteResourceSliceRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; return this; } /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistDeviceClassRequest + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteResourceSliceRequest */ - public APIlistDeviceClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; + public APIdeleteResourceSliceRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; return this; } /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistDeviceClassRequest + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteResourceSliceRequest */ - public APIlistDeviceClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; + public APIdeleteResourceSliceRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; return this; } /** - * Set limit - * @param 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. (optional) - * @return APIlistDeviceClassRequest + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteResourceSliceRequest */ - public APIlistDeviceClassRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; + public APIdeleteResourceSliceRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; return this; } /** - * Set resourceVersion - * @param 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 (optional) - * @return APIlistDeviceClassRequest + * Set body + * @param body (optional) + * @return APIdeleteResourceSliceRequest */ - public APIlistDeviceClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; + public APIdeleteResourceSliceRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; return this; } /** - * Set resourceVersionMatch - * @param 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 (optional) - * @return APIlistDeviceClassRequest + * Build call for deleteResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIlistDeviceClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteResourceSliceCall(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); } /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistDeviceClassRequest + * Execute deleteResourceSlice request + * @return V1beta2ResourceSlice + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIlistDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; + public V1beta2ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistDeviceClassRequest + * Execute deleteResourceSlice request with HTTP info returned + * @return ApiResponse<V1beta2ResourceSlice> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIlistDeviceClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteResourceSliceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); } /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistDeviceClassRequest + * Execute deleteResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public APIlistDeviceClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; - return this; + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteResourceSliceAsync(name, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a ResourceSlice + * @param name name of the ResourceSlice (required) + * @return APIdeleteResourceSliceRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteResourceSliceRequest deleteResourceSlice(@jakarta.annotation.Nonnull String name) { + return new APIdeleteResourceSliceRequest(name); + } + private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + + } + + + private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetAPIResourcesRequest { + + private APIgetAPIResourcesRequest() { } /** - * Build call for listDeviceClass + * Build call for getAPIResources * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4216,12 +4876,12 @@ public APIlistDeviceClassRequest watch(@jakarta.annotation.Nullable Boolean watc */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return getAPIResourcesCall(_callback); } /** - * Execute listDeviceClass request - * @return V1beta2DeviceClassList + * Execute getAPIResources request + * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4231,14 +4891,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta2DeviceClassList execute() throws ApiException { - ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1APIResourceList execute() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); return localVarResp.getData(); } /** - * Execute listDeviceClass request with HTTP info returned - * @return ApiResponse<V1beta2DeviceClassList> + * Execute getAPIResources request with HTTP info returned + * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4248,12 +4908,12 @@ public V1beta2DeviceClassList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return getAPIResourcesWithHttpInfo(); } /** - * Execute listDeviceClass request (asynchronously) + * Execute getAPIResources request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4265,15 +4925,15 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listDeviceClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getAPIResourcesAsync(_callback); } } /** * - * list or watch objects of kind DeviceClass - * @return APIlistDeviceClassRequest + * get available resources + * @return APIgetAPIResourcesRequest * @http.response.details @@ -4282,10 +4942,10 @@ public okhttp3.Call executeAsync(final ApiCallback _call
Response Details
401 Unauthorized -
*/ - public APIlistDeviceClassRequest listDeviceClass() { - return new APIlistDeviceClassRequest(); + public APIgetAPIResourcesRequest getAPIResources() { + return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4302,8 +4962,7 @@ private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4347,6 +5006,10 @@ private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -4381,34 +5044,27 @@ private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); - } - - return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listDeviceClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listDeviceClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listDeviceClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistNamespacedResourceClaimRequest { - @jakarta.annotation.Nonnull - private final String namespace; + public class APIlistDeviceClassRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -4428,20 +5084,21 @@ public class APIlistNamespacedResourceClaimRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace) { - this.namespace = namespace; + private APIlistDeviceClassRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistNamespacedResourceClaimRequest + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4449,9 +5106,9 @@ public APIlistNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable /** * Set allowWatchBookmarks * @param 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. (optional) - * @return APIlistNamespacedResourceClaimRequest + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistDeviceClassRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4459,9 +5116,9 @@ public APIlistNamespacedResourceClaimRequest allowWatchBookmarks(@jakarta.annota /** * Set _continue * @param _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. (optional) - * @return APIlistNamespacedResourceClaimRequest + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistDeviceClassRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4469,9 +5126,9 @@ public APIlistNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nulla /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistNamespacedResourceClaimRequest + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistDeviceClassRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4479,9 +5136,9 @@ public APIlistNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.N /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistNamespacedResourceClaimRequest + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistDeviceClassRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4489,9 +5146,9 @@ public APIlistNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.N /** * Set limit * @param 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. (optional) - * @return APIlistNamespacedResourceClaimRequest + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistDeviceClassRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4499,9 +5156,9 @@ public APIlistNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable /** * Set resourceVersion * @param 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 (optional) - * @return APIlistNamespacedResourceClaimRequest + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistDeviceClassRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4509,9 +5166,9 @@ public APIlistNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation /** * Set resourceVersionMatch * @param 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 (optional) - * @return APIlistNamespacedResourceClaimRequest + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistDeviceClassRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4519,19 +5176,29 @@ public APIlistNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annot /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistNamespacedResourceClaimRequest + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistDeviceClassRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistDeviceClassRequest + */ + public APIlistDeviceClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistNamespacedResourceClaimRequest + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistDeviceClassRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4539,15 +5206,15 @@ public APIlistNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation. /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistNamespacedResourceClaimRequest + * @return APIlistDeviceClassRequest */ - public APIlistNamespacedResourceClaimRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistDeviceClassRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listNamespacedResourceClaim + * Build call for listDeviceClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4560,12 +5227,12 @@ public APIlistNamespacedResourceClaimRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listDeviceClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute listNamespacedResourceClaim request - * @return V1beta2ResourceClaimList + * Execute listDeviceClass request + * @return V1beta2DeviceClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4575,14 +5242,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta2ResourceClaimList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1beta2DeviceClassList execute() throws ApiException { + ApiResponse localVarResp = listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listNamespacedResourceClaim request with HTTP info returned - * @return ApiResponse<V1beta2ResourceClaimList> + * Execute listDeviceClass request with HTTP info returned + * @return ApiResponse<V1beta2DeviceClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4592,12 +5259,12 @@ public V1beta2ResourceClaimList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listDeviceClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute listNamespacedResourceClaim request (asynchronously) + * Execute listDeviceClass request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4609,16 +5276,15 @@ public ApiResponse executeWithHttpInfo() throws ApiExc 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listDeviceClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind ResourceClaim - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIlistNamespacedResourceClaimRequest + * list or watch objects of kind DeviceClass + * @return APIlistDeviceClassRequest * @http.response.details @@ -4627,10 +5293,10 @@ public okhttp3.Call executeAsync(final ApiCallback _ca
Response Details
401 Unauthorized -
*/ - public APIlistNamespacedResourceClaimRequest listNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { - return new APIlistNamespacedResourceClaimRequest(namespace); + public APIlistDeviceClassRequest listDeviceClass() { + return new APIlistDeviceClassRequest(); } - private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceTaintRuleCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4647,8 +5313,7 @@ private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1beta2/devicetaintrules"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -4692,6 +5357,10 @@ private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -4726,34 +5395,27 @@ private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); - } - - return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listDeviceTaintRuleAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listDeviceTaintRuleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistNamespacedResourceClaimTemplateRequest { - @jakarta.annotation.Nonnull - private final String namespace; + public class APIlistDeviceTaintRuleRequest { @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -4773,20 +5435,21 @@ public class APIlistNamespacedResourceClaimTemplateRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; - private APIlistNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace) { - this.namespace = namespace; + private APIlistDeviceTaintRuleRequest() { } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIlistDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -4794,9 +5457,9 @@ public APIlistNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation. /** * Set allowWatchBookmarks * @param 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. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistNamespacedResourceClaimTemplateRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistDeviceTaintRuleRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -4804,9 +5467,9 @@ public APIlistNamespacedResourceClaimTemplateRequest allowWatchBookmarks(@jakart /** * Set _continue * @param _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. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistDeviceTaintRuleRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -4814,9 +5477,9 @@ public APIlistNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotati /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistDeviceTaintRuleRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -4824,9 +5487,9 @@ public APIlistNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.anno /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistDeviceTaintRuleRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -4834,9 +5497,9 @@ public APIlistNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.anno /** * Set limit * @param 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. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistDeviceTaintRuleRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } @@ -4844,9 +5507,9 @@ public APIlistNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.N /** * Set resourceVersion * @param 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 (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistDeviceTaintRuleRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -4854,9 +5517,9 @@ public APIlistNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.an /** * Set resourceVersionMatch * @param 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 (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistDeviceTaintRuleRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -4864,19 +5527,29 @@ public APIlistNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakar /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistDeviceTaintRuleRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistDeviceTaintRuleRequest + */ + public APIlistDeviceTaintRuleRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistDeviceTaintRuleRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -4884,15 +5557,15 @@ public APIlistNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.ann /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistNamespacedResourceClaimTemplateRequest + * @return APIlistDeviceTaintRuleRequest */ - public APIlistNamespacedResourceClaimTemplateRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistDeviceTaintRuleRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listNamespacedResourceClaimTemplate + * Build call for listDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4905,12 +5578,12 @@ public APIlistNamespacedResourceClaimTemplateRequest watch(@jakarta.annotation.N */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listDeviceTaintRuleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute listNamespacedResourceClaimTemplate request - * @return V1beta2ResourceClaimTemplateList + * Execute listDeviceTaintRule request + * @return V1beta2DeviceTaintRuleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4920,14 +5593,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta2ResourceClaimTemplateList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1beta2DeviceTaintRuleList execute() throws ApiException { + ApiResponse localVarResp = listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listNamespacedResourceClaimTemplate request with HTTP info returned - * @return ApiResponse<V1beta2ResourceClaimTemplateList> + * Execute listDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1beta2DeviceTaintRuleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -4937,12 +5610,12 @@ public V1beta2ResourceClaimTemplateList execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return listDeviceTaintRuleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute listNamespacedResourceClaimTemplate request (asynchronously) + * Execute listDeviceTaintRule request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -4954,16 +5627,15 @@ public ApiResponse executeWithHttpInfo() throw 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedResourceClaimTemplateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listDeviceTaintRuleAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } /** * - * list or watch objects of kind ResourceClaimTemplate - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIlistNamespacedResourceClaimTemplateRequest + * list or watch objects of kind DeviceTaintRule + * @return APIlistDeviceTaintRuleRequest * @http.response.details @@ -4972,10 +5644,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIlistNamespacedResourceClaimTemplateRequest listNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { - return new APIlistNamespacedResourceClaimTemplateRequest(namespace); + public APIlistDeviceTaintRuleRequest listDeviceTaintRule() { + return new APIlistDeviceTaintRuleRequest(); } - private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4992,7 +5664,8 @@ private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.N Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceclaims"; + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5000,6 +5673,10 @@ private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.N Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -5020,10 +5697,6 @@ private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.N localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } @@ -5036,6 +5709,10 @@ private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.N localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5070,27 +5747,36 @@ private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.N } @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaim(Async)"); + } + + return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceClaimForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedResourceClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistResourceClaimForAllNamespacesRequest { + public class APIlistNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable @@ -5102,27 +5788,38 @@ public class APIlistResourceClaimForAllNamespacesRequest { @jakarta.annotation.Nullable private Integer limit; @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable private String resourceVersion; @jakarta.annotation.Nullable private String resourceVersionMatch; @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; - private APIlistResourceClaimForAllNamespacesRequest() { + private APIlistNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; } /** * Set allowWatchBookmarks * @param 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. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistNamespacedResourceClaimRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5130,9 +5827,9 @@ public APIlistResourceClaimForAllNamespacesRequest allowWatchBookmarks(@jakarta. /** * Set _continue * @param _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. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistNamespacedResourceClaimRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5140,9 +5837,9 @@ public APIlistResourceClaimForAllNamespacesRequest _continue(@jakarta.annotation /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistNamespacedResourceClaimRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5150,9 +5847,9 @@ public APIlistResourceClaimForAllNamespacesRequest fieldSelector(@jakarta.annota /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistNamespacedResourceClaimRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5160,29 +5857,19 @@ public APIlistResourceClaimForAllNamespacesRequest labelSelector(@jakarta.annota /** * Set limit * @param 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. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistNamespacedResourceClaimRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistResourceClaimForAllNamespacesRequest - */ - public APIlistResourceClaimForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - /** * Set resourceVersion * @param 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 (optional) - * @return APIlistResourceClaimForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistNamespacedResourceClaimRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5190,9 +5877,9 @@ public APIlistResourceClaimForAllNamespacesRequest resourceVersion(@jakarta.anno /** * Set resourceVersionMatch * @param 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 (optional) - * @return APIlistResourceClaimForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistNamespacedResourceClaimRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5200,19 +5887,29 @@ public APIlistResourceClaimForAllNamespacesRequest resourceVersionMatch(@jakarta /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistNamespacedResourceClaimRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedResourceClaimRequest + */ + public APIlistNamespacedResourceClaimRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistNamespacedResourceClaimRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5220,15 +5917,15 @@ public APIlistResourceClaimForAllNamespacesRequest timeoutSeconds(@jakarta.annot /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistResourceClaimForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimRequest */ - public APIlistResourceClaimForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistNamespacedResourceClaimRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listResourceClaimForAllNamespaces + * Build call for listNamespacedResourceClaim * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5241,11 +5938,11 @@ public APIlistResourceClaimForAllNamespacesRequest watch(@jakarta.annotation.Nul */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute listResourceClaimForAllNamespaces request + * Execute listNamespacedResourceClaim request * @return V1beta2ResourceClaimList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5257,12 +5954,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta2ResourceClaimList execute() throws ApiException { - ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listResourceClaimForAllNamespaces request with HTTP info returned + * Execute listNamespacedResourceClaim request with HTTP info returned * @return ApiResponse<V1beta2ResourceClaimList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5274,11 +5971,11 @@ public V1beta2ResourceClaimList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedResourceClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute listResourceClaimForAllNamespaces request (asynchronously) + * Execute listNamespacedResourceClaim request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5291,14 +5988,15 @@ public ApiResponse executeWithHttpInfo() throws ApiExc */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceClaimForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind ResourceClaim - * @return APIlistResourceClaimForAllNamespacesRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedResourceClaimRequest * @http.response.details @@ -5307,10 +6005,10 @@ public okhttp3.Call executeAsync(final ApiCallback _ca
Response Details
401 Unauthorized -
*/ - public APIlistResourceClaimForAllNamespacesRequest listResourceClaimForAllNamespaces() { - return new APIlistResourceClaimForAllNamespacesRequest(); + public APIlistNamespacedResourceClaimRequest listNamespacedResourceClaim(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedResourceClaimRequest(namespace); } - private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5327,7 +6025,8 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.anno Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceclaimtemplates"; + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5335,8 +6034,12 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.anno Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } if (_continue != null) { @@ -5355,10 +6058,6 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.anno localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } @@ -5371,6 +6070,10 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.anno localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5405,27 +6108,36 @@ private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.anno } @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceClaimTemplate(Async)"); + } + + return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedResourceClaimTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistResourceClaimTemplateForAllNamespacesRequest { + public class APIlistNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable @@ -5437,27 +6149,38 @@ public class APIlistResourceClaimTemplateForAllNamespacesRequest { @jakarta.annotation.Nullable private Integer limit; @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable private String resourceVersion; @jakarta.annotation.Nullable private String resourceVersionMatch; @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; - private APIlistResourceClaimTemplateForAllNamespacesRequest() { + private APIlistNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; } /** * Set allowWatchBookmarks * @param 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. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistNamespacedResourceClaimTemplateRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5465,9 +6188,9 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest allowWatchBookmarks(@ /** * Set _continue * @param _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. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistNamespacedResourceClaimTemplateRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5475,9 +6198,9 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest _continue(@jakarta.an /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistNamespacedResourceClaimTemplateRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5485,9 +6208,9 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest fieldSelector(@jakart /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistNamespacedResourceClaimTemplateRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } @@ -5495,29 +6218,19 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest labelSelector(@jakart /** * Set limit * @param 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. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + public APIlistNamespacedResourceClaimTemplateRequest limit(@jakarta.annotation.Nullable Integer limit) { this.limit = limit; return this; } - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest - */ - public APIlistResourceClaimTemplateForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - /** * Set resourceVersion * @param 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 (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + public APIlistNamespacedResourceClaimTemplateRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { this.resourceVersion = resourceVersion; return this; } @@ -5525,9 +6238,9 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersion(@jaka /** * Set resourceVersionMatch * @param 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 (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + public APIlistNamespacedResourceClaimTemplateRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { this.resourceVersionMatch = resourceVersionMatch; return this; } @@ -5535,19 +6248,29 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersionMatch( /** * Set sendInitialEvents * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + public APIlistNamespacedResourceClaimTemplateRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { this.sendInitialEvents = sendInitialEvents; return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedResourceClaimTemplateRequest + */ + public APIlistNamespacedResourceClaimTemplateRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + public APIlistNamespacedResourceClaimTemplateRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; return this; } @@ -5555,15 +6278,15 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest timeoutSeconds(@jakar /** * Set watch * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @return APIlistNamespacedResourceClaimTemplateRequest */ - public APIlistResourceClaimTemplateForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + public APIlistNamespacedResourceClaimTemplateRequest watch(@jakarta.annotation.Nullable Boolean watch) { this.watch = watch; return this; } /** - * Build call for listResourceClaimTemplateForAllNamespaces + * Build call for listNamespacedResourceClaimTemplate * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5576,11 +6299,11 @@ public APIlistResourceClaimTemplateForAllNamespacesRequest watch(@jakarta.annota */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** - * Execute listResourceClaimTemplateForAllNamespaces request + * Execute listNamespacedResourceClaimTemplate request * @return V1beta2ResourceClaimTemplateList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5592,12 +6315,12 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta2ResourceClaimTemplateList execute() throws ApiException { - ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } /** - * Execute listResourceClaimTemplateForAllNamespaces request with HTTP info returned + * Execute listNamespacedResourceClaimTemplate request with HTTP info returned * @return ApiResponse<V1beta2ResourceClaimTemplateList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -5609,11 +6332,11 @@ public V1beta2ResourceClaimTemplateList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedResourceClaimTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** - * Execute listResourceClaimTemplateForAllNamespaces request (asynchronously) + * Execute listNamespacedResourceClaimTemplate request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5626,14 +6349,15 @@ public ApiResponse executeWithHttpInfo() throw */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceClaimTemplateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedResourceClaimTemplateAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } /** * * list or watch objects of kind ResourceClaimTemplate - * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedResourceClaimTemplateRequest * @http.response.details @@ -5642,10 +6366,10 @@ public okhttp3.Call executeAsync(final ApiCallback
Response Details
401 Unauthorized -
*/ - public APIlistResourceClaimTemplateForAllNamespacesRequest listResourceClaimTemplateForAllNamespaces() { - return new APIlistResourceClaimTemplateForAllNamespacesRequest(); + public APIlistNamespacedResourceClaimTemplateRequest listNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedResourceClaimTemplateRequest(namespace); } - private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5662,7 +6386,7 @@ private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String p Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices"; + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceclaims"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -5670,10 +6394,6 @@ private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String p Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - if (allowWatchBookmarks != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); } @@ -5694,6 +6414,10 @@ private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); } + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + if (resourceVersion != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); } @@ -5706,6 +6430,10 @@ private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5740,29 +6468,27 @@ private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String p } @SuppressWarnings("rawtypes") - private okhttp3.Call listResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listResourceClaimForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse listResourceClaimForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listResourceClaimForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = listResourceClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIlistResourceSliceRequest { - @jakarta.annotation.Nullable - private String pretty; + public class APIlistResourceClaimForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean allowWatchBookmarks; @jakarta.annotation.Nullable @@ -5774,35 +6500,29 @@ public class APIlistResourceSliceRequest { @jakarta.annotation.Nullable private Integer limit; @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable private String resourceVersion; @jakarta.annotation.Nullable private String resourceVersionMatch; @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; - private APIlistResourceSliceRequest() { - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistResourceSliceRequest - */ - public APIlistResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; + private APIlistResourceClaimForAllNamespacesRequest() { } /** * Set allowWatchBookmarks * @param 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. (optional) - * @return APIlistResourceSliceRequest + * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceSliceRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + public APIlistResourceClaimForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { this.allowWatchBookmarks = allowWatchBookmarks; return this; } @@ -5810,9 +6530,9 @@ public APIlistResourceSliceRequest allowWatchBookmarks(@jakarta.annotation.Nulla /** * Set _continue * @param _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. (optional) - * @return APIlistResourceSliceRequest + * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { + public APIlistResourceClaimForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { this._continue = _continue; return this; } @@ -5820,9 +6540,9 @@ public APIlistResourceSliceRequest _continue(@jakarta.annotation.Nullable String /** * Set fieldSelector * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistResourceSliceRequest + * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + public APIlistResourceClaimForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { this.fieldSelector = fieldSelector; return this; } @@ -5830,75 +6550,2385 @@ public APIlistResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable St /** * Set labelSelector * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistResourceSliceRequest + * @return APIlistResourceClaimForAllNamespacesRequest */ - public APIlistResourceSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + public APIlistResourceClaimForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { this.labelSelector = labelSelector; return this; } - /** - * Set limit - * @param 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. (optional) - * @return APIlistResourceSliceRequest - */ - public APIlistResourceSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; + /** + * Set limit + * @param 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. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistResourceClaimForAllNamespacesRequest + */ + public APIlistResourceClaimForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listResourceClaimForAllNamespaces + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listResourceClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listResourceClaimForAllNamespaces request + * @return V1beta2ResourceClaimList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimList execute() throws ApiException { + ApiResponse localVarResp = listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listResourceClaimForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaimList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listResourceClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listResourceClaimForAllNamespaces request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listResourceClaimForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ResourceClaim + * @return APIlistResourceClaimForAllNamespacesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistResourceClaimForAllNamespacesRequest listResourceClaimForAllNamespaces() { + return new APIlistResourceClaimForAllNamespacesRequest(); + } + private okhttp3.Call listResourceClaimTemplateForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceclaimtemplates"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceClaimTemplateForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listResourceClaimTemplateForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listResourceClaimTemplateForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceClaimTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistResourceClaimTemplateForAllNamespacesRequest { + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistResourceClaimTemplateForAllNamespacesRequest() { + } + + /** + * Set allowWatchBookmarks + * @param 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. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + */ + public APIlistResourceClaimTemplateForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listResourceClaimTemplateForAllNamespaces + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listResourceClaimTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listResourceClaimTemplateForAllNamespaces request + * @return V1beta2ResourceClaimTemplateList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceClaimTemplateList execute() throws ApiException { + ApiResponse localVarResp = listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listResourceClaimTemplateForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaimTemplateList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listResourceClaimTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listResourceClaimTemplateForAllNamespaces request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listResourceClaimTemplateForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ResourceClaimTemplate + * @return APIlistResourceClaimTemplateForAllNamespacesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistResourceClaimTemplateForAllNamespacesRequest listResourceClaimTemplateForAllNamespaces() { + return new APIlistResourceClaimTemplateForAllNamespacesRequest(); + } + private okhttp3.Call listResourceSliceCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listResourceSliceValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listResourceSliceWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listResourceSliceAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listResourceSliceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistResourceSliceRequest { + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistResourceSliceRequest() { + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param 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. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistResourceSliceRequest + */ + public APIlistResourceSliceRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listResourceSlice + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listResourceSlice request + * @return V1beta2ResourceSliceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1beta2ResourceSliceList execute() throws ApiException { + ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listResourceSlice request with HTTP info returned + * @return ApiResponse<V1beta2ResourceSliceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listResourceSlice request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listResourceSliceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind ResourceSlice + * @return APIlistResourceSliceRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistResourceSliceRequest listResourceSlice() { + return new APIlistResourceSliceRequest(); + } + private okhttp3.Call patchDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchDeviceClass(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchDeviceClass(Async)"); + } + + return patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchDeviceClassRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchDeviceClassRequest + */ + public APIpatchDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchDeviceClassRequest + */ + public APIpatchDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchDeviceClassRequest + */ + public APIpatchDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchDeviceClassRequest + */ + public APIpatchDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchDeviceClassRequest + */ + public APIpatchDeviceClassRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchDeviceClass + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchDeviceClass request + * @return V1beta2DeviceClass + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2DeviceClass execute() throws ApiException { + ApiResponse localVarResp = patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchDeviceClass request with HTTP info returned + * @return ApiResponse<V1beta2DeviceClass> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchDeviceClass request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchDeviceClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @return APIpatchDeviceClassRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchDeviceClassRequest patchDeviceClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchDeviceClassRequest(name, body); + } + private okhttp3.Call patchDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchDeviceTaintRule(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchDeviceTaintRule(Async)"); + } + + return patchDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchDeviceTaintRuleRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchDeviceTaintRuleRequest + */ + public APIpatchDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchDeviceTaintRuleRequest + */ + public APIpatchDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchDeviceTaintRuleRequest + */ + public APIpatchDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchDeviceTaintRuleRequest + */ + public APIpatchDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchDeviceTaintRuleRequest + */ + public APIpatchDeviceTaintRuleRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchDeviceTaintRule + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchDeviceTaintRule request + * @return V1beta2DeviceTaintRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1beta2DeviceTaintRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchDeviceTaintRule request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchDeviceTaintRuleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @return APIpatchDeviceTaintRuleRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchDeviceTaintRuleRequest patchDeviceTaintRule(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchDeviceTaintRuleRequest(name, body); + } + private okhttp3.Call patchDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchDeviceTaintRuleStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchDeviceTaintRuleStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchDeviceTaintRuleStatus(Async)"); + } + + return patchDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchDeviceTaintRuleStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchDeviceTaintRuleStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchDeviceTaintRuleStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchDeviceTaintRuleStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchDeviceTaintRuleStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchDeviceTaintRuleStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchDeviceTaintRuleStatusRequest + */ + public APIpatchDeviceTaintRuleStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchDeviceTaintRuleStatusRequest + */ + public APIpatchDeviceTaintRuleStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchDeviceTaintRuleStatusRequest + */ + public APIpatchDeviceTaintRuleStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchDeviceTaintRuleStatusRequest + */ + public APIpatchDeviceTaintRuleStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchDeviceTaintRuleStatusRequest + */ + public APIpatchDeviceTaintRuleStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchDeviceTaintRuleStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchDeviceTaintRuleStatus request + * @return V1beta2DeviceTaintRule + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = patchDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchDeviceTaintRuleStatus request with HTTP info returned + * @return ApiResponse<V1beta2DeviceTaintRule> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchDeviceTaintRuleStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchDeviceTaintRuleStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update status of the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @return APIpatchDeviceTaintRuleStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchDeviceTaintRuleStatusRequest patchDeviceTaintRuleStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchDeviceTaintRuleStatusRequest(name, body); + } + private okhttp3.Call patchNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaim(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaim(Async)"); + } + + return patchNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedResourceClaimRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchNamespacedResourceClaimRequest + */ + public APIpatchNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchNamespacedResourceClaimRequest + */ + public APIpatchNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchNamespacedResourceClaimRequest + */ + public APIpatchNamespacedResourceClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchNamespacedResourceClaimRequest + */ + public APIpatchNamespacedResourceClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchNamespacedResourceClaimRequest + */ + public APIpatchNamespacedResourceClaimRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedResourceClaim + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedResourceClaim request + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedResourceClaim request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedResourceClaimAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedResourceClaimRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedResourceClaimRequest patchNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedResourceClaimRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimStatus(Async)"); + } + + return patchNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedResourceClaimStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchNamespacedResourceClaimStatusRequest + */ + public APIpatchNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchNamespacedResourceClaimStatusRequest + */ + public APIpatchNamespacedResourceClaimStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchNamespacedResourceClaimStatusRequest + */ + public APIpatchNamespacedResourceClaimStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchNamespacedResourceClaimStatusRequest + */ + public APIpatchNamespacedResourceClaimStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchNamespacedResourceClaimStatusRequest + */ + public APIpatchNamespacedResourceClaimStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedResourceClaimStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedResourceClaimStatus request + * @return V1beta2ResourceClaim + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1beta2ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedResourceClaimStatus request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaim> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedResourceClaimStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedResourceClaimStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedResourceClaimStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedResourceClaimStatusRequest patchNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedResourceClaimStatusRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimTemplate(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimTemplate(Async)"); + } + + return patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedResourceClaimTemplateRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.namespace = namespace; + this.body = body; } /** - * Set resourceVersion - * @param 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 (optional) - * @return APIlistResourceSliceRequest + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchNamespacedResourceClaimTemplateRequest */ - public APIlistResourceSliceRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; + public APIpatchNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; return this; } /** - * Set resourceVersionMatch - * @param 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 (optional) - * @return APIlistResourceSliceRequest + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchNamespacedResourceClaimTemplateRequest */ - public APIlistResourceSliceRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; + public APIpatchNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; return this; } /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistResourceSliceRequest + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchNamespacedResourceClaimTemplateRequest */ - public APIlistResourceSliceRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; + public APIpatchNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; return this; } /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistResourceSliceRequest + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchNamespacedResourceClaimTemplateRequest */ - public APIlistResourceSliceRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; + public APIpatchNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; return this; } /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistResourceSliceRequest + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchNamespacedResourceClaimTemplateRequest */ - public APIlistResourceSliceRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; + public APIpatchNamespacedResourceClaimTemplateRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; return this; } /** - * Build call for listResourceSlice + * Build call for patchNamespacedResourceClaimTemplate * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -5907,48 +8937,51 @@ public APIlistResourceSliceRequest watch(@jakarta.annotation.Nullable Boolean wa Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listResourceSliceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute listResourceSlice request - * @return V1beta2ResourceSliceList + * Execute patchNamespacedResourceClaimTemplate request + * @return V1beta2ResourceClaimTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1beta2ResourceSliceList execute() throws ApiException { - ApiResponse localVarResp = listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public V1beta2ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute listResourceSlice request with HTTP info returned - * @return ApiResponse<V1beta2ResourceSliceList> + * Execute patchNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaimTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listResourceSliceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute listResourceSlice request (asynchronously) + * Execute patchNamespacedResourceClaimTemplate request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -5957,30 +8990,35 @@ public ApiResponse executeWithHttpInfo() throws ApiExc Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listResourceSliceAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedResourceClaimTemplateAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * list or watch objects of kind ResourceSlice - * @return APIlistResourceSliceRequest + * partially update the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedResourceClaimTemplateRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIlistResourceSliceRequest listResourceSlice() { - return new APIlistResourceSliceRequest(); + public APIpatchNamespacedResourceClaimTemplateRequest patchNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedResourceClaimTemplateRequest(name, namespace, body); } - private okhttp3.Call patchDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5997,7 +9035,7 @@ private okhttp3.Call patchDeviceClassCall(@jakarta.annotation.Nonnull String nam Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -6050,37 +9088,37 @@ private okhttp3.Call patchDeviceClassCall(@jakarta.annotation.Nonnull String nam } @SuppressWarnings("rawtypes") - private okhttp3.Call patchDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchDeviceClass(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling patchResourceSlice(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchDeviceClass(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling patchResourceSlice(Async)"); } - return patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } - private ApiResponse patchDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse patchResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call patchResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchDeviceClassRequest { + public class APIpatchResourceSliceRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull @@ -6096,7 +9134,7 @@ public class APIpatchDeviceClassRequest { @jakarta.annotation.Nullable private Boolean force; - private APIpatchDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIpatchResourceSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { this.name = name; this.body = body; } @@ -6104,9 +9142,9 @@ private APIpatchDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jak /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchDeviceClassRequest + * @return APIpatchResourceSliceRequest */ - public APIpatchDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIpatchResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -6114,9 +9152,9 @@ public APIpatchDeviceClassRequest pretty(@jakarta.annotation.Nullable String pre /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchDeviceClassRequest + * @return APIpatchResourceSliceRequest */ - public APIpatchDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIpatchResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -6124,9 +9162,9 @@ public APIpatchDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dry /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchDeviceClassRequest + * @return APIpatchResourceSliceRequest */ - public APIpatchDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIpatchResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -6134,9 +9172,9 @@ public APIpatchDeviceClassRequest fieldManager(@jakarta.annotation.Nullable Stri /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchDeviceClassRequest + * @return APIpatchResourceSliceRequest */ - public APIpatchDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIpatchResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } @@ -6144,15 +9182,15 @@ public APIpatchDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable S /** * Set force * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchDeviceClassRequest + * @return APIpatchResourceSliceRequest */ - public APIpatchDeviceClassRequest force(@jakarta.annotation.Nullable Boolean force) { + public APIpatchResourceSliceRequest force(@jakarta.annotation.Nullable Boolean force) { this.force = force; return this; } /** - * Build call for patchDeviceClass + * Build call for patchResourceSlice * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6166,12 +9204,12 @@ public APIpatchDeviceClassRequest force(@jakarta.annotation.Nullable Boolean for */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } /** - * Execute patchDeviceClass request - * @return V1beta2DeviceClass + * Execute patchResourceSlice request + * @return V1beta2ResourceSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6182,14 +9220,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta2DeviceClass execute() throws ApiException { - ApiResponse localVarResp = patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1beta2ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); return localVarResp.getData(); } /** - * Execute patchDeviceClass request with HTTP info returned - * @return ApiResponse<V1beta2DeviceClass> + * Execute patchResourceSlice request with HTTP info returned + * @return ApiResponse<V1beta2ResourceSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -6200,12 +9238,12 @@ public V1beta2DeviceClass execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); } /** - * Execute patchDeviceClass request (asynchronously) + * Execute patchResourceSlice request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -6218,17 +9256,17 @@ public ApiResponse executeWithHttpInfo() throws ApiException 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchDeviceClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchResourceSliceAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); } } /** * - * partially update the specified DeviceClass - * @param name name of the DeviceClass (required) + * partially update the specified ResourceSlice + * @param name name of the ResourceSlice (required) * @param body (required) - * @return APIpatchDeviceClassRequest + * @return APIpatchResourceSliceRequest * @http.response.details @@ -6238,10 +9276,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
401 Unauthorized -
*/ - public APIpatchDeviceClassRequest patchDeviceClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchDeviceClassRequest(name, body); + public APIpatchResourceSliceRequest patchResourceSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchResourceSliceRequest(name, body); } - private okhttp3.Call patchNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6255,12 +9293,11 @@ private okhttp3.Call patchNamespacedResourceClaimCall(@jakarta.annotation.Nonnul basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6272,22 +9309,6 @@ private okhttp3.Call patchNamespacedResourceClaimCall(@jakarta.annotation.Nonnul localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", @@ -6300,7 +9321,6 @@ private okhttp3.Call patchNamespacedResourceClaimCall(@jakarta.annotation.Nonnul } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -6308,121 +9328,57 @@ private okhttp3.Call patchNamespacedResourceClaimCall(@jakarta.annotation.Nonnul } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaim(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaim(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaim(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readDeviceClass(Async)"); } - return patchNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readDeviceClassCall(name, pretty, _callback); } - private ApiResponse patchNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedResourceClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchNamespacedResourceClaimRequest { + public class APIreadDeviceClassRequest { @jakarta.annotation.Nonnull private final String name; - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nonnull - private final V1Patch body; @jakarta.annotation.Nullable private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - @jakarta.annotation.Nullable - private Boolean force; - private APIpatchNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + private APIreadDeviceClassRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.namespace = namespace; - this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchNamespacedResourceClaimRequest + * @return APIreadDeviceClassRequest */ - public APIpatchNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchNamespacedResourceClaimRequest - */ - public APIpatchNamespacedResourceClaimRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchNamespacedResourceClaimRequest - */ - public APIpatchNamespacedResourceClaimRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchNamespacedResourceClaimRequest - */ - public APIpatchNamespacedResourceClaimRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchNamespacedResourceClaimRequest - */ - public APIpatchNamespacedResourceClaimRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchNamespacedResourceClaim + * Build call for readDeviceClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6431,51 +9387,48 @@ public APIpatchNamespacedResourceClaimRequest force(@jakarta.annotation.Nullable Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchNamespacedResourceClaimCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readDeviceClassCall(name, pretty, _callback); } /** - * Execute patchNamespacedResourceClaim request - * @return V1beta2ResourceClaim + * Execute readDeviceClass request + * @return V1beta2DeviceClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1beta2ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1beta2DeviceClass execute() throws ApiException { + ApiResponse localVarResp = readDeviceClassWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchNamespacedResourceClaim request with HTTP info returned - * @return ApiResponse<V1beta2ResourceClaim> + * Execute readDeviceClass request with HTTP info returned + * @return ApiResponse<V1beta2DeviceClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchNamespacedResourceClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readDeviceClassWithHttpInfo(name, pretty); } /** - * Execute patchNamespacedResourceClaim request (asynchronously) + * Execute readDeviceClass request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -6484,35 +9437,31 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchNamespacedResourceClaimAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readDeviceClassAsync(name, pretty, _callback); } } /** * - * partially update the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @return APIpatchNamespacedResourceClaimRequest + * read the specified DeviceClass + * @param name name of the DeviceClass (required) + * @return APIreadDeviceClassRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedResourceClaimRequest patchNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchNamespacedResourceClaimRequest(name, namespace, body); + public APIreadDeviceClassRequest readDeviceClass(@jakarta.annotation.Nonnull String name) { + return new APIreadDeviceClassRequest(name); } - private okhttp3.Call patchNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6526,12 +9475,11 @@ private okhttp3.Call patchNamespacedResourceClaimStatusCall(@jakarta.annotation. basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6543,22 +9491,6 @@ private okhttp3.Call patchNamespacedResourceClaimStatusCall(@jakarta.annotation. localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", @@ -6571,7 +9503,6 @@ private okhttp3.Call patchNamespacedResourceClaimStatusCall(@jakarta.annotation. } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -6579,121 +9510,57 @@ private okhttp3.Call patchNamespacedResourceClaimStatusCall(@jakarta.annotation. } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readDeviceTaintRule(Async)"); } - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimStatus(Async)"); - } - - return patchNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readDeviceTaintRuleCall(name, pretty, _callback); } - private ApiResponse patchNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceTaintRuleValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readDeviceTaintRuleValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchNamespacedResourceClaimStatusRequest { + public class APIreadDeviceTaintRuleRequest { @jakarta.annotation.Nonnull private final String name; - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nonnull - private final V1Patch body; @jakarta.annotation.Nullable private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - @jakarta.annotation.Nullable - private Boolean force; - private APIpatchNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + private APIreadDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.namespace = namespace; - this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchNamespacedResourceClaimStatusRequest + * @return APIreadDeviceTaintRuleRequest */ - public APIpatchNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchNamespacedResourceClaimStatusRequest - */ - public APIpatchNamespacedResourceClaimStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchNamespacedResourceClaimStatusRequest - */ - public APIpatchNamespacedResourceClaimStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchNamespacedResourceClaimStatusRequest - */ - public APIpatchNamespacedResourceClaimStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchNamespacedResourceClaimStatusRequest - */ - public APIpatchNamespacedResourceClaimStatusRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchNamespacedResourceClaimStatus + * Build call for readDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6702,51 +9569,48 @@ public APIpatchNamespacedResourceClaimStatusRequest force(@jakarta.annotation.Nu Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchNamespacedResourceClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readDeviceTaintRuleCall(name, pretty, _callback); } /** - * Execute patchNamespacedResourceClaimStatus request - * @return V1beta2ResourceClaim + * Execute readDeviceTaintRule request + * @return V1beta2DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1beta2ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1beta2DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = readDeviceTaintRuleWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchNamespacedResourceClaimStatus request with HTTP info returned - * @return ApiResponse<V1beta2ResourceClaim> + * Execute readDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1beta2DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchNamespacedResourceClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readDeviceTaintRuleWithHttpInfo(name, pretty); } /** - * Execute patchNamespacedResourceClaimStatus request (asynchronously) + * Execute readDeviceTaintRule request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -6755,35 +9619,31 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchNamespacedResourceClaimStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readDeviceTaintRuleAsync(name, pretty, _callback); } } /** * - * partially update status of the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @return APIpatchNamespacedResourceClaimStatusRequest + * read the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @return APIreadDeviceTaintRuleRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedResourceClaimStatusRequest patchNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchNamespacedResourceClaimStatusRequest(name, namespace, body); + public APIreadDeviceTaintRuleRequest readDeviceTaintRule(@jakarta.annotation.Nonnull String name) { + return new APIreadDeviceTaintRuleRequest(name); } - private okhttp3.Call patchNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6797,12 +9657,11 @@ private okhttp3.Call patchNamespacedResourceClaimTemplateCall(@jakarta.annotatio basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -6810,24 +9669,8 @@ private okhttp3.Call patchNamespacedResourceClaimTemplateCall(@jakarta.annotatio Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } final String[] localVarAccepts = { @@ -6842,7 +9685,6 @@ private okhttp3.Call patchNamespacedResourceClaimTemplateCall(@jakarta.annotatio } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -6850,121 +9692,57 @@ private okhttp3.Call patchNamespacedResourceClaimTemplateCall(@jakarta.annotatio } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceTaintRuleStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedResourceClaimTemplate(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceClaimTemplate(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readDeviceTaintRuleStatus(Async)"); } - return patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readDeviceTaintRuleStatusCall(name, pretty, _callback); } - private ApiResponse patchNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readDeviceTaintRuleStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readDeviceTaintRuleStatusValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readDeviceTaintRuleStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readDeviceTaintRuleStatusValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchNamespacedResourceClaimTemplateRequest { + public class APIreadDeviceTaintRuleStatusRequest { @jakarta.annotation.Nonnull private final String name; - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nonnull - private final V1Patch body; @jakarta.annotation.Nullable private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - @jakarta.annotation.Nullable - private Boolean force; - private APIpatchNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + private APIreadDeviceTaintRuleStatusRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.namespace = namespace; - this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchNamespacedResourceClaimTemplateRequest + * @return APIreadDeviceTaintRuleStatusRequest */ - public APIpatchNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadDeviceTaintRuleStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchNamespacedResourceClaimTemplateRequest - */ - public APIpatchNamespacedResourceClaimTemplateRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchNamespacedResourceClaimTemplateRequest - */ - public APIpatchNamespacedResourceClaimTemplateRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchNamespacedResourceClaimTemplateRequest - */ - public APIpatchNamespacedResourceClaimTemplateRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchNamespacedResourceClaimTemplateRequest - */ - public APIpatchNamespacedResourceClaimTemplateRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchNamespacedResourceClaimTemplate + * Build call for readDeviceTaintRuleStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -6973,51 +9751,48 @@ public APIpatchNamespacedResourceClaimTemplateRequest force(@jakarta.annotation. Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchNamespacedResourceClaimTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readDeviceTaintRuleStatusCall(name, pretty, _callback); } /** - * Execute patchNamespacedResourceClaimTemplate request - * @return V1beta2ResourceClaimTemplate + * Execute readDeviceTaintRuleStatus request + * @return V1beta2DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1beta2ResourceClaimTemplate execute() throws ApiException { - ApiResponse localVarResp = patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1beta2DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = readDeviceTaintRuleStatusWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute patchNamespacedResourceClaimTemplate request with HTTP info returned - * @return ApiResponse<V1beta2ResourceClaimTemplate> + * Execute readDeviceTaintRuleStatus request with HTTP info returned + * @return ApiResponse<V1beta2DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readDeviceTaintRuleStatusWithHttpInfo(name, pretty); } /** - * Execute patchNamespacedResourceClaimTemplate request (asynchronously) + * Execute readDeviceTaintRuleStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7026,35 +9801,31 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchNamespacedResourceClaimTemplateAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readDeviceTaintRuleStatusAsync(name, pretty, _callback); } } /** * - * partially update the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @return APIpatchNamespacedResourceClaimTemplateRequest + * read status of the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @return APIreadDeviceTaintRuleStatusRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchNamespacedResourceClaimTemplateRequest patchNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchNamespacedResourceClaimTemplateRequest(name, namespace, body); + public APIreadDeviceTaintRuleStatusRequest readDeviceTaintRuleStatus(@jakarta.annotation.Nonnull String name) { + return new APIreadDeviceTaintRuleStatusRequest(name); } - private okhttp3.Call patchResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7068,11 +9839,12 @@ private okhttp3.Call patchResourceSliceCall(@jakarta.annotation.Nonnull String n basePath = null; } - Object localVarPostBody = body; + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7084,22 +9856,6 @@ private okhttp3.Call patchResourceSliceCall(@jakarta.annotation.Nonnull String n localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - final String[] localVarAccepts = { "application/json", "application/yaml", @@ -7112,7 +9868,6 @@ private okhttp3.Call patchResourceSliceCall(@jakarta.annotation.Nonnull String n } final String[] localVarContentTypes = { - "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -7120,113 +9875,65 @@ private okhttp3.Call patchResourceSliceCall(@jakarta.annotation.Nonnull String n } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call patchResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchResourceSlice(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaim(Async)"); } - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchResourceSlice(Async)"); + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaim(Async)"); } - return patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedResourceClaimCall(name, namespace, pretty, _callback); } - private ApiResponse patchResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call patchResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = patchResourceSliceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIpatchResourceSliceRequest { + public class APIreadNamespacedResourceClaimRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1Patch body; + private final String namespace; @jakarta.annotation.Nullable private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - @jakarta.annotation.Nullable - private Boolean force; - private APIpatchResourceSliceRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { + private APIreadNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; - this.body = body; + this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchResourceSliceRequest + * @return APIreadNamespacedResourceClaimRequest */ - public APIpatchResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchResourceSliceRequest - */ - public APIpatchResourceSliceRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchResourceSliceRequest - */ - public APIpatchResourceSliceRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchResourceSliceRequest - */ - public APIpatchResourceSliceRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchResourceSliceRequest - */ - public APIpatchResourceSliceRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchResourceSlice + * Build call for readNamespacedResourceClaim * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7235,51 +9942,48 @@ public APIpatchResourceSliceRequest force(@jakarta.annotation.Nullable Boolean f Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchResourceSliceCall(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + return readNamespacedResourceClaimCall(name, namespace, pretty, _callback); } /** - * Execute patchResourceSlice request - * @return V1beta2ResourceSlice + * Execute readNamespacedResourceClaim request + * @return V1beta2ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1beta2ResourceSlice execute() throws ApiException { - ApiResponse localVarResp = patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public V1beta2ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute patchResourceSlice request with HTTP info returned - * @return ApiResponse<V1beta2ResourceSlice> + * Execute readNamespacedResourceClaim request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchResourceSliceWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation, force); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); } /** - * Execute patchResourceSlice request (asynchronously) + * Execute readNamespacedResourceClaim request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7288,34 +9992,32 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti Response Details Status Code Description Response Headers 200 OK - - 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchResourceSliceAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimAsync(name, namespace, pretty, _callback); } } - - /** - * - * partially update the specified ResourceSlice - * @param name name of the ResourceSlice (required) - * @param body (required) - * @return APIpatchResourceSliceRequest + + /** + * + * read the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedResourceClaimRequest * @http.response.details -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIpatchResourceSliceRequest patchResourceSlice(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchResourceSliceRequest(name, body); + public APIreadNamespacedResourceClaimRequest readNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedResourceClaimRequest(name, namespace); } - private okhttp3.Call readDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7332,8 +10034,9 @@ private okhttp3.Call readDeviceClassCall(@jakarta.annotation.Nonnull String name Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7368,53 +10071,61 @@ private okhttp3.Call readDeviceClassCall(@jakarta.annotation.Nonnull String name } @SuppressWarnings("rawtypes") - private okhttp3.Call readDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readDeviceClass(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimStatus(Async)"); } - return readDeviceClassCall(name, pretty, _callback); + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimStatus(Async)"); + } + + return readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); } - private ApiResponse readDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readDeviceClassValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadDeviceClassRequest { + public class APIreadNamespacedResourceClaimStatusRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final String namespace; @jakarta.annotation.Nullable private String pretty; - private APIreadDeviceClassRequest(@jakarta.annotation.Nonnull String name) { + private APIreadNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; + this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadDeviceClassRequest + * @return APIreadNamespacedResourceClaimStatusRequest */ - public APIreadDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readDeviceClass + * Build call for readNamespacedResourceClaimStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7427,12 +10138,12 @@ public APIreadDeviceClassRequest pretty(@jakarta.annotation.Nullable String pret */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readDeviceClassCall(name, pretty, _callback); + return readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); } /** - * Execute readDeviceClass request - * @return V1beta2DeviceClass + * Execute readNamespacedResourceClaimStatus request + * @return V1beta2ResourceClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7442,14 +10153,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta2DeviceClass execute() throws ApiException { - ApiResponse localVarResp = readDeviceClassWithHttpInfo(name, pretty); + public V1beta2ResourceClaim execute() throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute readDeviceClass request with HTTP info returned - * @return ApiResponse<V1beta2DeviceClass> + * Execute readNamespacedResourceClaimStatus request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7459,12 +10170,12 @@ public V1beta2DeviceClass execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readDeviceClassWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); } /** - * Execute readDeviceClass request (asynchronously) + * Execute readNamespacedResourceClaimStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7476,16 +10187,17 @@ public ApiResponse executeWithHttpInfo() throws ApiException 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readDeviceClassAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimStatusAsync(name, namespace, pretty, _callback); } } /** * - * read the specified DeviceClass - * @param name name of the DeviceClass (required) - * @return APIreadDeviceClassRequest + * read status of the specified ResourceClaim + * @param name name of the ResourceClaim (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedResourceClaimStatusRequest * @http.response.details @@ -7494,10 +10206,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
401 Unauthorized -
*/ - public APIreadDeviceClassRequest readDeviceClass(@jakarta.annotation.Nonnull String name) { - return new APIreadDeviceClassRequest(name); + public APIreadNamespacedResourceClaimStatusRequest readNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedResourceClaimStatusRequest(name, namespace); } - private okhttp3.Call readNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7514,7 +10226,7 @@ private okhttp3.Call readNamespacedResourceClaimCall(@jakarta.annotation.Nonnull Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}" + String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); @@ -7551,37 +10263,37 @@ private okhttp3.Call readNamespacedResourceClaimCall(@jakarta.annotation.Nonnull } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaim(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimTemplate(Async)"); } // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaim(Async)"); + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimTemplate(Async)"); } - return readNamespacedResourceClaimCall(name, namespace, pretty, _callback); + return readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); } - private ApiResponse readNamespacedResourceClaimWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedResourceClaimAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readNamespacedResourceClaimValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadNamespacedResourceClaimRequest { + public class APIreadNamespacedResourceClaimTemplateRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull @@ -7589,7 +10301,7 @@ public class APIreadNamespacedResourceClaimRequest { @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + private APIreadNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { this.name = name; this.namespace = namespace; } @@ -7597,15 +10309,15 @@ private APIreadNamespacedResourceClaimRequest(@jakarta.annotation.Nonnull String /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadNamespacedResourceClaimRequest + * @return APIreadNamespacedResourceClaimTemplateRequest */ - public APIreadNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readNamespacedResourceClaim + * Build call for readNamespacedResourceClaimTemplate * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7618,12 +10330,12 @@ public APIreadNamespacedResourceClaimRequest pretty(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimCall(name, namespace, pretty, _callback); + return readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); } /** - * Execute readNamespacedResourceClaim request - * @return V1beta2ResourceClaim + * Execute readNamespacedResourceClaimTemplate request + * @return V1beta2ResourceClaimTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7633,14 +10345,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta2ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); + public V1beta2ResourceClaimTemplate execute() throws ApiException { + ApiResponse localVarResp = readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); return localVarResp.getData(); } /** - * Execute readNamespacedResourceClaim request with HTTP info returned - * @return ApiResponse<V1beta2ResourceClaim> + * Execute readNamespacedResourceClaimTemplate request with HTTP info returned + * @return ApiResponse<V1beta2ResourceClaimTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7650,12 +10362,12 @@ public V1beta2ResourceClaim execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readNamespacedResourceClaimWithHttpInfo(name, namespace, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); } /** - * Execute readNamespacedResourceClaim request (asynchronously) + * Execute readNamespacedResourceClaimTemplate request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7667,17 +10379,17 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimAsync(name, namespace, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedResourceClaimTemplateAsync(name, namespace, pretty, _callback); } } /** * - * read the specified ResourceClaim - * @param name name of the ResourceClaim (required) + * read the specified ResourceClaimTemplate + * @param name name of the ResourceClaimTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIreadNamespacedResourceClaimRequest + * @return APIreadNamespacedResourceClaimTemplateRequest * @http.response.details @@ -7686,10 +10398,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callba
Response Details
401 Unauthorized -
*/ - public APIreadNamespacedResourceClaimRequest readNamespacedResourceClaim(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIreadNamespacedResourceClaimRequest(name, namespace); + public APIreadNamespacedResourceClaimTemplateRequest readNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedResourceClaimTemplateRequest(name, namespace); } - private okhttp3.Call readNamespacedResourceClaimStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7706,9 +10418,8 @@ private okhttp3.Call readNamespacedResourceClaimStatusCall(@jakarta.annotation.N Object localVarPostBody = null; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7743,61 +10454,53 @@ private okhttp3.Call readNamespacedResourceClaimStatusCall(@jakarta.annotation.N } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimStatus(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimStatus(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling readResourceSlice(Async)"); } - return readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); + return readResourceSliceCall(name, pretty, _callback); } - private ApiResponse readNamespacedResourceClaimStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse readResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedResourceClaimStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call readResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readNamespacedResourceClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadNamespacedResourceClaimStatusRequest { + public class APIreadResourceSliceRequest { @jakarta.annotation.Nonnull private final String name; - @jakarta.annotation.Nonnull - private final String namespace; @jakarta.annotation.Nullable private String pretty; - private APIreadNamespacedResourceClaimStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + private APIreadResourceSliceRequest(@jakarta.annotation.Nonnull String name) { this.name = name; - this.namespace = namespace; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadNamespacedResourceClaimStatusRequest + * @return APIreadResourceSliceRequest */ - public APIreadNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreadResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readNamespacedResourceClaimStatus + * Build call for readResourceSlice * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7810,12 +10513,12 @@ public APIreadNamespacedResourceClaimStatusRequest pretty(@jakarta.annotation.Nu */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimStatusCall(name, namespace, pretty, _callback); + return readResourceSliceCall(name, pretty, _callback); } /** - * Execute readNamespacedResourceClaimStatus request - * @return V1beta2ResourceClaim + * Execute readResourceSlice request + * @return V1beta2ResourceSlice * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7825,14 +10528,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta2ResourceClaim execute() throws ApiException { - ApiResponse localVarResp = readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); + public V1beta2ResourceSlice execute() throws ApiException { + ApiResponse localVarResp = readResourceSliceWithHttpInfo(name, pretty); return localVarResp.getData(); } /** - * Execute readNamespacedResourceClaimStatus request with HTTP info returned - * @return ApiResponse<V1beta2ResourceClaim> + * Execute readResourceSlice request with HTTP info returned + * @return ApiResponse<V1beta2ResourceSlice> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -7842,12 +10545,12 @@ public V1beta2ResourceClaim execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readNamespacedResourceClaimStatusWithHttpInfo(name, namespace, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return readResourceSliceWithHttpInfo(name, pretty); } /** - * Execute readNamespacedResourceClaimStatus request (asynchronously) + * Execute readResourceSlice request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -7859,17 +10562,16 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimStatusAsync(name, namespace, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readResourceSliceAsync(name, pretty, _callback); } } /** * - * read status of the specified ResourceClaim - * @param name name of the ResourceClaim (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIreadNamespacedResourceClaimStatusRequest + * read the specified ResourceSlice + * @param name name of the ResourceSlice (required) + * @return APIreadResourceSliceRequest * @http.response.details @@ -7878,10 +10580,10 @@ public okhttp3.Call executeAsync(final ApiCallback _callba
Response Details
401 Unauthorized -
*/ - public APIreadNamespacedResourceClaimStatusRequest readNamespacedResourceClaimStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIreadNamespacedResourceClaimStatusRequest(name, namespace); + public APIreadResourceSliceRequest readResourceSlice(@jakarta.annotation.Nonnull String name) { + return new APIreadResourceSliceRequest(name); } - private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7895,12 +10597,11 @@ private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -7908,8 +10609,20 @@ private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); } final String[] localVarAccepts = { @@ -7924,6 +10637,7 @@ private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -7931,65 +10645,101 @@ private okhttp3.Call readNamespacedResourceClaimTemplateCall(@jakarta.annotation } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedResourceClaimTemplateValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedResourceClaimTemplate(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceClass(Async)"); } - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceClaimTemplate(Async)"); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceClass(Async)"); } - return readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); + return replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse readNamespacedResourceClaimTemplateWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readNamespacedResourceClaimTemplateAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readNamespacedResourceClaimTemplateValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadNamespacedResourceClaimTemplateRequest { + public class APIreplaceDeviceClassRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final String namespace; + private final V1beta2DeviceClass body; @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; - private APIreadNamespacedResourceClaimTemplateRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + private APIreplaceDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body) { this.name = name; - this.namespace = namespace; + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadNamespacedResourceClaimTemplateRequest + * @return APIreplaceDeviceClassRequest */ - public APIreadNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readNamespacedResourceClaimTemplate + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceDeviceClassRequest + */ + public APIreplaceDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceDeviceClassRequest + */ + public APIreplaceDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceDeviceClassRequest + */ + public APIreplaceDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceDeviceClass * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -7998,48 +10748,51 @@ public APIreadNamespacedResourceClaimTemplateRequest pretty(@jakarta.annotation. Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimTemplateCall(name, namespace, pretty, _callback); + return replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readNamespacedResourceClaimTemplate request - * @return V1beta2ResourceClaimTemplate + * Execute replaceDeviceClass request + * @return V1beta2DeviceClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1beta2ResourceClaimTemplate execute() throws ApiException { - ApiResponse localVarResp = readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); + public V1beta2DeviceClass execute() throws ApiException { + ApiResponse localVarResp = replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readNamespacedResourceClaimTemplate request with HTTP info returned - * @return ApiResponse<V1beta2ResourceClaimTemplate> + * Execute replaceDeviceClass request with HTTP info returned + * @return ApiResponse<V1beta2DeviceClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readNamespacedResourceClaimTemplateWithHttpInfo(name, namespace, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readNamespacedResourceClaimTemplate request (asynchronously) + * Execute replaceDeviceClass request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -8048,32 +10801,34 @@ public ApiResponse executeWithHttpInfo() throws Ap Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readNamespacedResourceClaimTemplateAsync(name, namespace, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceDeviceClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read the specified ResourceClaimTemplate - * @param name name of the ResourceClaimTemplate (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIreadNamespacedResourceClaimTemplateRequest + * replace the specified DeviceClass + * @param name name of the DeviceClass (required) + * @param body (required) + * @return APIreplaceDeviceClassRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadNamespacedResourceClaimTemplateRequest readNamespacedResourceClaimTemplate(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIreadNamespacedResourceClaimTemplateRequest(name, namespace); + public APIreplaceDeviceClassRequest replaceDeviceClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body) { + return new APIreplaceDeviceClassRequest(name, body); } - private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8087,10 +10842,10 @@ private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String na basePath = null; } - Object localVarPostBody = null; + Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/resourceslices/{name}" + String localVarPath = "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -8103,6 +10858,18 @@ private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String na localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + final String[] localVarAccepts = { "application/json", "application/yaml", @@ -8115,6 +10882,7 @@ private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String na } final String[] localVarContentTypes = { + "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { @@ -8122,57 +10890,101 @@ private okhttp3.Call readResourceSliceCall(@jakarta.annotation.Nonnull String na } String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") - private okhttp3.Call readResourceSliceValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readResourceSlice(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceTaintRule(Async)"); } - return readResourceSliceCall(name, pretty, _callback); + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceTaintRule(Async)"); + } + + return replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse readResourceSliceWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceDeviceTaintRuleWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call readResourceSliceAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = readResourceSliceValidateBeforeCall(name, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceDeviceTaintRuleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreadResourceSliceRequest { + public class APIreplaceDeviceTaintRuleRequest { @jakarta.annotation.Nonnull private final String name; + @jakarta.annotation.Nonnull + private final V1beta2DeviceTaintRule body; @jakarta.annotation.Nullable private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; - private APIreadResourceSliceRequest(@jakarta.annotation.Nonnull String name) { + private APIreplaceDeviceTaintRuleRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceTaintRule body) { this.name = name; + this.body = body; } /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadResourceSliceRequest + * @return APIreplaceDeviceTaintRuleRequest */ - public APIreadResourceSliceRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceDeviceTaintRuleRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } /** - * Build call for readResourceSlice + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceDeviceTaintRuleRequest + */ + public APIreplaceDeviceTaintRuleRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceDeviceTaintRuleRequest + */ + public APIreplaceDeviceTaintRuleRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceDeviceTaintRuleRequest + */ + public APIreplaceDeviceTaintRuleRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceDeviceTaintRule * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -8181,48 +10993,51 @@ public APIreadResourceSliceRequest pretty(@jakarta.annotation.Nullable String pr Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readResourceSliceCall(name, pretty, _callback); + return replaceDeviceTaintRuleCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute readResourceSlice request - * @return V1beta2ResourceSlice + * Execute replaceDeviceTaintRule request + * @return V1beta2DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public V1beta2ResourceSlice execute() throws ApiException { - ApiResponse localVarResp = readResourceSliceWithHttpInfo(name, pretty); + public V1beta2DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute readResourceSlice request with HTTP info returned - * @return ApiResponse<V1beta2ResourceSlice> + * Execute replaceDeviceTaintRule request with HTTP info returned + * @return ApiResponse<V1beta2DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readResourceSliceWithHttpInfo(name, pretty); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceDeviceTaintRuleWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute readResourceSlice request (asynchronously) + * Execute replaceDeviceTaintRule request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -8231,31 +11046,34 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti Response Details Status Code Description Response Headers 200 OK - + 201 Created - 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readResourceSliceAsync(name, pretty, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceDeviceTaintRuleAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * read the specified ResourceSlice - * @param name name of the ResourceSlice (required) - * @return APIreadResourceSliceRequest + * replace the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) + * @param body (required) + * @return APIreplaceDeviceTaintRuleRequest * @http.response.details +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public APIreadResourceSliceRequest readResourceSlice(@jakarta.annotation.Nonnull String name) { - return new APIreadResourceSliceRequest(name); + public APIreplaceDeviceTaintRuleRequest replaceDeviceTaintRule(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceTaintRule body) { + return new APIreplaceDeviceTaintRuleRequest(name, body); } - private okhttp3.Call replaceDeviceClassCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -8272,7 +11090,7 @@ private okhttp3.Call replaceDeviceClassCall(@jakarta.annotation.Nonnull String n Object localVarPostBody = body; // create path and map variables - String localVarPath = "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}" + String localVarPath = "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status" .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); @@ -8321,41 +11139,41 @@ private okhttp3.Call replaceDeviceClassCall(@jakarta.annotation.Nonnull String n } @SuppressWarnings("rawtypes") - private okhttp3.Call replaceDeviceClassValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceClass(Async)"); + throw new ApiException("Missing the required parameter 'name' when calling replaceDeviceTaintRuleStatus(Async)"); } // verify the required parameter 'body' is set if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceClass(Async)"); + throw new ApiException("Missing the required parameter 'body' when calling replaceDeviceTaintRuleStatus(Async)"); } - return replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } - private ApiResponse replaceDeviceClassWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); + private ApiResponse replaceDeviceTaintRuleStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceDeviceTaintRuleStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call replaceDeviceClassAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + private okhttp3.Call replaceDeviceTaintRuleStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceTaintRule body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = replaceDeviceClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = replaceDeviceTaintRuleStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } - public class APIreplaceDeviceClassRequest { + public class APIreplaceDeviceTaintRuleStatusRequest { @jakarta.annotation.Nonnull private final String name; @jakarta.annotation.Nonnull - private final V1beta2DeviceClass body; + private final V1beta2DeviceTaintRule body; @jakarta.annotation.Nullable private String pretty; @jakarta.annotation.Nullable @@ -8365,7 +11183,7 @@ public class APIreplaceDeviceClassRequest { @jakarta.annotation.Nullable private String fieldValidation; - private APIreplaceDeviceClassRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body) { + private APIreplaceDeviceTaintRuleStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceTaintRule body) { this.name = name; this.body = body; } @@ -8373,9 +11191,9 @@ private APIreplaceDeviceClassRequest(@jakarta.annotation.Nonnull String name, @j /** * Set pretty * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceDeviceClassRequest + * @return APIreplaceDeviceTaintRuleStatusRequest */ - public APIreplaceDeviceClassRequest pretty(@jakarta.annotation.Nullable String pretty) { + public APIreplaceDeviceTaintRuleStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { this.pretty = pretty; return this; } @@ -8383,9 +11201,9 @@ public APIreplaceDeviceClassRequest pretty(@jakarta.annotation.Nullable String p /** * Set dryRun * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceDeviceClassRequest + * @return APIreplaceDeviceTaintRuleStatusRequest */ - public APIreplaceDeviceClassRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + public APIreplaceDeviceTaintRuleStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { this.dryRun = dryRun; return this; } @@ -8393,9 +11211,9 @@ public APIreplaceDeviceClassRequest dryRun(@jakarta.annotation.Nullable String d /** * Set fieldManager * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceDeviceClassRequest + * @return APIreplaceDeviceTaintRuleStatusRequest */ - public APIreplaceDeviceClassRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + public APIreplaceDeviceTaintRuleStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { this.fieldManager = fieldManager; return this; } @@ -8403,15 +11221,15 @@ public APIreplaceDeviceClassRequest fieldManager(@jakarta.annotation.Nullable St /** * Set fieldValidation * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceDeviceClassRequest + * @return APIreplaceDeviceTaintRuleStatusRequest */ - public APIreplaceDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + public APIreplaceDeviceTaintRuleStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { this.fieldValidation = fieldValidation; return this; } /** - * Build call for replaceDeviceClass + * Build call for replaceDeviceTaintRuleStatus * @param _callback ApiCallback API callback * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -8425,12 +11243,12 @@ public APIreplaceDeviceClassRequest fieldValidation(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceDeviceClassCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + return replaceDeviceTaintRuleStatusCall(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } /** - * Execute replaceDeviceClass request - * @return V1beta2DeviceClass + * Execute replaceDeviceTaintRuleStatus request + * @return V1beta2DeviceTaintRule * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8441,14 +11259,14 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
401 Unauthorized -
*/ - public V1beta2DeviceClass execute() throws ApiException { - ApiResponse localVarResp = replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public V1beta2DeviceTaintRule execute() throws ApiException { + ApiResponse localVarResp = replaceDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); return localVarResp.getData(); } /** - * Execute replaceDeviceClass request with HTTP info returned - * @return ApiResponse<V1beta2DeviceClass> + * Execute replaceDeviceTaintRuleStatus request with HTTP info returned + * @return ApiResponse<V1beta2DeviceTaintRule> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -8459,12 +11277,12 @@ public V1beta2DeviceClass execute() throws ApiException {
401 Unauthorized -
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceDeviceClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceDeviceTaintRuleStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, fieldValidation); } /** - * Execute replaceDeviceClass request (asynchronously) + * Execute replaceDeviceTaintRuleStatus request (asynchronously) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -8477,17 +11295,17 @@ public ApiResponse executeWithHttpInfo() throws ApiException 401 Unauthorized - */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceDeviceClassAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceDeviceTaintRuleStatusAsync(name, body, pretty, dryRun, fieldManager, fieldValidation, _callback); } } /** * - * replace the specified DeviceClass - * @param name name of the DeviceClass (required) + * replace status of the specified DeviceTaintRule + * @param name name of the DeviceTaintRule (required) * @param body (required) - * @return APIreplaceDeviceClassRequest + * @return APIreplaceDeviceTaintRuleStatusRequest * @http.response.details @@ -8497,8 +11315,8 @@ public okhttp3.Call executeAsync(final ApiCallback _callback
Response Details
401 Unauthorized -
*/ - public APIreplaceDeviceClassRequest replaceDeviceClass(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceClass body) { - return new APIreplaceDeviceClassRequest(name, body); + public APIreplaceDeviceTaintRuleStatusRequest replaceDeviceTaintRuleStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull V1beta2DeviceTaintRule body) { + return new APIreplaceDeviceTaintRuleStatusRequest(name, body); } private okhttp3.Call replaceNamespacedResourceClaimCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1beta2ResourceClaim body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { String basePath = null; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java index e61c97cd0f..86c800107e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1Api.java @@ -316,7 +316,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIcreatePriorityClassRequest createPriorityClass(@jakarta.annotation.Nonnull V1PriorityClass body) { return new APIcreatePriorityClassRequest(body); } - private okhttp3.Call deleteCollectionPriorityClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPriorityClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -393,6 +393,10 @@ private okhttp3.Call deleteCollectionPriorityClassCall(@jakarta.annotation.Nulla localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -421,21 +425,21 @@ private okhttp3.Call deleteCollectionPriorityClassCall(@jakarta.annotation.Nulla } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionPriorityClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionPriorityClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionPriorityClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionPriorityClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionPriorityClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionPriorityClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionPriorityClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionPriorityClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -469,6 +473,8 @@ public class APIdeleteCollectionPriorityClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -606,6 +612,16 @@ public APIdeleteCollectionPriorityClassRequest sendInitialEvents(@jakarta.annota return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionPriorityClassRequest + */ + public APIdeleteCollectionPriorityClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -640,7 +656,7 @@ public APIdeleteCollectionPriorityClassRequest body(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionPriorityClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionPriorityClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -656,7 +672,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -673,7 +689,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -690,7 +706,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionPriorityClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionPriorityClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1145,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listPriorityClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPriorityClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1206,6 +1222,10 @@ private okhttp3.Call listPriorityClassCall(@jakarta.annotation.Nullable String p localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1240,21 +1260,21 @@ private okhttp3.Call listPriorityClassCall(@jakarta.annotation.Nullable String p } @SuppressWarnings("rawtypes") - private okhttp3.Call listPriorityClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listPriorityClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listPriorityClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listPriorityClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listPriorityClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listPriorityClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listPriorityClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listPriorityClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1280,6 +1300,8 @@ public class APIlistPriorityClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1377,6 +1399,16 @@ public APIlistPriorityClassRequest sendInitialEvents(@jakarta.annotation.Nullabl return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistPriorityClassRequest + */ + public APIlistPriorityClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1411,7 +1443,7 @@ public APIlistPriorityClassRequest watch(@jakarta.annotation.Nullable Boolean wa */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listPriorityClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPriorityClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1427,7 +1459,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1PriorityClassList execute() throws ApiException { - ApiResponse localVarResp = listPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1444,7 +1476,7 @@ public V1PriorityClassList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1461,7 +1493,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExceptio */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listPriorityClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listPriorityClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha1Api.java deleted file mode 100644 index b08ab6691f..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha1Api.java +++ /dev/null @@ -1,2576 +0,0 @@ -/* -Copyright 2026 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.apis; - -import io.kubernetes.client.openapi.ApiCallback; -import io.kubernetes.client.openapi.ApiClient; -import io.kubernetes.client.openapi.ApiException; -import io.kubernetes.client.openapi.ApiResponse; -import io.kubernetes.client.openapi.Configuration; -import io.kubernetes.client.openapi.Pair; -import io.kubernetes.client.openapi.ProgressRequestBody; -import io.kubernetes.client.openapi.ProgressResponseBody; - -import com.google.gson.reflect.TypeToken; - -import java.io.IOException; - - -import io.kubernetes.client.openapi.models.V1APIResourceList; -import io.kubernetes.client.openapi.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; -import io.kubernetes.client.openapi.models.V1Status; -import io.kubernetes.client.openapi.models.V1alpha1Workload; -import io.kubernetes.client.openapi.models.V1alpha1WorkloadList; - -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -public class SchedulingV1alpha1Api { - private ApiClient localVarApiClient; - private int localHostIndex; - private String localCustomBaseUrl; - - public SchedulingV1alpha1Api() { - this(Configuration.getDefaultApiClient()); - } - - public SchedulingV1alpha1Api(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public ApiClient getApiClient() { - return localVarApiClient; - } - - public void setApiClient(ApiClient apiClient) { - this.localVarApiClient = apiClient; - } - - public int getHostIndex() { - return localHostIndex; - } - - public void setHostIndex(int hostIndex) { - this.localHostIndex = hostIndex; - } - - public String getCustomBaseUrl() { - return localCustomBaseUrl; - } - - public void setCustomBaseUrl(String customBaseUrl) { - this.localCustomBaseUrl = customBaseUrl; - } - - private okhttp3.Call createNamespacedWorkloadCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call createNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedWorkload(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling createNamespacedWorkload(Async)"); - } - - return createNamespacedWorkloadCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - - } - - - private ApiResponse createNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = createNamespacedWorkloadValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call createNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = createNamespacedWorkloadValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIcreateNamespacedWorkloadRequest { - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nonnull - private final V1alpha1Workload body; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - - private APIcreateNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Workload body) { - this.namespace = namespace; - this.body = body; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIcreateNamespacedWorkloadRequest - */ - public APIcreateNamespacedWorkloadRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIcreateNamespacedWorkloadRequest - */ - public APIcreateNamespacedWorkloadRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIcreateNamespacedWorkloadRequest - */ - public APIcreateNamespacedWorkloadRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIcreateNamespacedWorkloadRequest - */ - public APIcreateNamespacedWorkloadRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Build call for createNamespacedWorkload - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return createNamespacedWorkloadCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - - /** - * Execute createNamespacedWorkload request - * @return V1alpha1Workload - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public V1alpha1Workload execute() throws ApiException { - ApiResponse localVarResp = createNamespacedWorkloadWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * Execute createNamespacedWorkload request with HTTP info returned - * @return ApiResponse<V1alpha1Workload> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return createNamespacedWorkloadWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); - } - - /** - * Execute createNamespacedWorkload request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return createNamespacedWorkloadAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - } - - /** - * - * create a Workload - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @return APIcreateNamespacedWorkloadRequest - * @http.response.details - - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
- */ - public APIcreateNamespacedWorkloadRequest createNamespacedWorkload(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Workload body) { - return new APIcreateNamespacedWorkloadRequest(namespace, body); - } - private okhttp3.Call deleteCollectionNamespacedWorkloadCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedWorkload(Async)"); - } - - return deleteCollectionNamespacedWorkloadCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - - } - - - private ApiResponse deleteCollectionNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedWorkloadValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call deleteCollectionNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteCollectionNamespacedWorkloadValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIdeleteCollectionNamespacedWorkloadRequest { - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; - @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private Boolean orphanDependents; - @jakarta.annotation.Nullable - private String propagationPolicy; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private V1DeleteOptions body; - - private APIdeleteCollectionNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String namespace) { - this.namespace = namespace; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteCollectionNamespacedWorkloadRequest - */ - public APIdeleteCollectionNamespacedWorkloadRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set _continue - * @param _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. (optional) - * @return APIdeleteCollectionNamespacedWorkloadRequest - */ - public APIdeleteCollectionNamespacedWorkloadRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteCollectionNamespacedWorkloadRequest - */ - public APIdeleteCollectionNamespacedWorkloadRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedWorkloadRequest - */ - public APIdeleteCollectionNamespacedWorkloadRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteCollectionNamespacedWorkloadRequest - */ - public APIdeleteCollectionNamespacedWorkloadRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return this; - } - - /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteCollectionNamespacedWorkloadRequest - */ - public APIdeleteCollectionNamespacedWorkloadRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIdeleteCollectionNamespacedWorkloadRequest - */ - public APIdeleteCollectionNamespacedWorkloadRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param 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. (optional) - * @return APIdeleteCollectionNamespacedWorkloadRequest - */ - public APIdeleteCollectionNamespacedWorkloadRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteCollectionNamespacedWorkloadRequest - */ - public APIdeleteCollectionNamespacedWorkloadRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return this; - } - - /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteCollectionNamespacedWorkloadRequest - */ - public APIdeleteCollectionNamespacedWorkloadRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - - /** - * Set resourceVersion - * @param 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 (optional) - * @return APIdeleteCollectionNamespacedWorkloadRequest - */ - public APIdeleteCollectionNamespacedWorkloadRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param 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 (optional) - * @return APIdeleteCollectionNamespacedWorkloadRequest - */ - public APIdeleteCollectionNamespacedWorkloadRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIdeleteCollectionNamespacedWorkloadRequest - */ - public APIdeleteCollectionNamespacedWorkloadRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIdeleteCollectionNamespacedWorkloadRequest - */ - public APIdeleteCollectionNamespacedWorkloadRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set body - * @param body (optional) - * @return APIdeleteCollectionNamespacedWorkloadRequest - */ - public APIdeleteCollectionNamespacedWorkloadRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; - return this; - } - - /** - * Build call for deleteCollectionNamespacedWorkload - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedWorkloadCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - } - - /** - * Execute deleteCollectionNamespacedWorkload request - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedWorkloadWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - return localVarResp.getData(); - } - - /** - * Execute deleteCollectionNamespacedWorkload request with HTTP info returned - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedWorkloadWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); - } - - /** - * Execute deleteCollectionNamespacedWorkload request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedWorkloadAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); - } - } - - /** - * - * delete collection of Workload - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteCollectionNamespacedWorkloadRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIdeleteCollectionNamespacedWorkloadRequest deleteCollectionNamespacedWorkload(@jakarta.annotation.Nonnull String namespace) { - return new APIdeleteCollectionNamespacedWorkloadRequest(namespace); - } - private okhttp3.Call deleteNamespacedWorkloadCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (gracePeriodSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - } - - if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); - } - - if (orphanDependents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); - } - - if (propagationPolicy != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call deleteNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedWorkload(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedWorkload(Async)"); - } - - return deleteNamespacedWorkloadCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - - } - - - private ApiResponse deleteNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteNamespacedWorkloadValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call deleteNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = deleteNamespacedWorkloadValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIdeleteNamespacedWorkloadRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private Integer gracePeriodSeconds; - @jakarta.annotation.Nullable - private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; - @jakarta.annotation.Nullable - private Boolean orphanDependents; - @jakarta.annotation.Nullable - private String propagationPolicy; - @jakarta.annotation.Nullable - private V1DeleteOptions body; - - private APIdeleteNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - this.name = name; - this.namespace = namespace; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIdeleteNamespacedWorkloadRequest - */ - public APIdeleteNamespacedWorkloadRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIdeleteNamespacedWorkloadRequest - */ - public APIdeleteNamespacedWorkloadRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set gracePeriodSeconds - * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) - * @return APIdeleteNamespacedWorkloadRequest - */ - public APIdeleteNamespacedWorkloadRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { - this.gracePeriodSeconds = gracePeriodSeconds; - return this; - } - - /** - * Set ignoreStoreReadErrorWithClusterBreakingPotential - * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) - * @return APIdeleteNamespacedWorkloadRequest - */ - public APIdeleteNamespacedWorkloadRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { - this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; - return this; - } - - /** - * Set orphanDependents - * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) - * @return APIdeleteNamespacedWorkloadRequest - */ - public APIdeleteNamespacedWorkloadRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { - this.orphanDependents = orphanDependents; - return this; - } - - /** - * Set propagationPolicy - * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @return APIdeleteNamespacedWorkloadRequest - */ - public APIdeleteNamespacedWorkloadRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { - this.propagationPolicy = propagationPolicy; - return this; - } - - /** - * Set body - * @param body (optional) - * @return APIdeleteNamespacedWorkloadRequest - */ - public APIdeleteNamespacedWorkloadRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { - this.body = body; - return this; - } - - /** - * Build call for deleteNamespacedWorkload - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteNamespacedWorkloadCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - } - - /** - * Execute deleteNamespacedWorkload request - * @return V1Status - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteNamespacedWorkloadWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - return localVarResp.getData(); - } - - /** - * Execute deleteNamespacedWorkload request with HTTP info returned - * @return ApiResponse<V1Status> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteNamespacedWorkloadWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); - } - - /** - * Execute deleteNamespacedWorkload request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteNamespacedWorkloadAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); - } - } - - /** - * - * delete a Workload - * @param name name of the Workload (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIdeleteNamespacedWorkloadRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
- */ - public APIdeleteNamespacedWorkloadRequest deleteNamespacedWorkload(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIdeleteNamespacedWorkloadRequest(name, namespace); - } - private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); - - } - - - private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIgetAPIResourcesRequest { - - private APIgetAPIResourcesRequest() { - } - - /** - * Build call for getAPIResources - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return getAPIResourcesCall(_callback); - } - - /** - * Execute getAPIResources request - * @return V1APIResourceList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1APIResourceList execute() throws ApiException { - ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); - return localVarResp.getData(); - } - - /** - * Execute getAPIResources request with HTTP info returned - * @return ApiResponse<V1APIResourceList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return getAPIResourcesWithHttpInfo(); - } - - /** - * Execute getAPIResources request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return getAPIResourcesAsync(_callback); - } - } - - /** - * - * get available resources - * @return APIgetAPIResourcesRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIgetAPIResourcesRequest getAPIResources() { - return new APIgetAPIResourcesRequest(); - } - private okhttp3.Call listNamespacedWorkloadCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads" - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedWorkload(Async)"); - } - - return listNamespacedWorkloadCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - - } - - - private ApiResponse listNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedWorkloadValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call listNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listNamespacedWorkloadValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIlistNamespacedWorkloadRequest { - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private Boolean watch; - - private APIlistNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String namespace) { - this.namespace = namespace; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistNamespacedWorkloadRequest - */ - public APIlistNamespacedWorkloadRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set allowWatchBookmarks - * @param 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. (optional) - * @return APIlistNamespacedWorkloadRequest - */ - public APIlistNamespacedWorkloadRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; - return this; - } - - /** - * Set _continue - * @param _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. (optional) - * @return APIlistNamespacedWorkloadRequest - */ - public APIlistNamespacedWorkloadRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistNamespacedWorkloadRequest - */ - public APIlistNamespacedWorkloadRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistNamespacedWorkloadRequest - */ - public APIlistNamespacedWorkloadRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param 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. (optional) - * @return APIlistNamespacedWorkloadRequest - */ - public APIlistNamespacedWorkloadRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set resourceVersion - * @param 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 (optional) - * @return APIlistNamespacedWorkloadRequest - */ - public APIlistNamespacedWorkloadRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param 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 (optional) - * @return APIlistNamespacedWorkloadRequest - */ - public APIlistNamespacedWorkloadRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistNamespacedWorkloadRequest - */ - public APIlistNamespacedWorkloadRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistNamespacedWorkloadRequest - */ - public APIlistNamespacedWorkloadRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistNamespacedWorkloadRequest - */ - public APIlistNamespacedWorkloadRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; - return this; - } - - /** - * Build call for listNamespacedWorkload - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedWorkloadCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - - /** - * Execute listNamespacedWorkload request - * @return V1alpha1WorkloadList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha1WorkloadList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedWorkloadWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * Execute listNamespacedWorkload request with HTTP info returned - * @return ApiResponse<V1alpha1WorkloadList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedWorkloadWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - } - - /** - * Execute listNamespacedWorkload request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedWorkloadAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - } - - /** - * - * list or watch objects of kind Workload - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIlistNamespacedWorkloadRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIlistNamespacedWorkloadRequest listNamespacedWorkload(@jakarta.annotation.Nonnull String namespace) { - return new APIlistNamespacedWorkloadRequest(namespace); - } - private okhttp3.Call listWorkloadForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/workloads"; - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (allowWatchBookmarks != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); - } - - if (_continue != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); - } - - if (fieldSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); - } - - if (labelSelector != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); - } - - if (limit != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); - } - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (resourceVersion != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); - } - - if (resourceVersionMatch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); - } - - if (sendInitialEvents != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); - } - - if (timeoutSeconds != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - } - - if (watch != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call listWorkloadForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listWorkloadForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - - } - - - private ApiResponse listWorkloadForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listWorkloadForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call listWorkloadForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = listWorkloadForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIlistWorkloadForAllNamespacesRequest { - @jakarta.annotation.Nullable - private Boolean allowWatchBookmarks; - @jakarta.annotation.Nullable - private String _continue; - @jakarta.annotation.Nullable - private String fieldSelector; - @jakarta.annotation.Nullable - private String labelSelector; - @jakarta.annotation.Nullable - private Integer limit; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String resourceVersion; - @jakarta.annotation.Nullable - private String resourceVersionMatch; - @jakarta.annotation.Nullable - private Boolean sendInitialEvents; - @jakarta.annotation.Nullable - private Integer timeoutSeconds; - @jakarta.annotation.Nullable - private Boolean watch; - - private APIlistWorkloadForAllNamespacesRequest() { - } - - /** - * Set allowWatchBookmarks - * @param 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. (optional) - * @return APIlistWorkloadForAllNamespacesRequest - */ - public APIlistWorkloadForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { - this.allowWatchBookmarks = allowWatchBookmarks; - return this; - } - - /** - * Set _continue - * @param _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. (optional) - * @return APIlistWorkloadForAllNamespacesRequest - */ - public APIlistWorkloadForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { - this._continue = _continue; - return this; - } - - /** - * Set fieldSelector - * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) - * @return APIlistWorkloadForAllNamespacesRequest - */ - public APIlistWorkloadForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { - this.fieldSelector = fieldSelector; - return this; - } - - /** - * Set labelSelector - * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) - * @return APIlistWorkloadForAllNamespacesRequest - */ - public APIlistWorkloadForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { - this.labelSelector = labelSelector; - return this; - } - - /** - * Set limit - * @param 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. (optional) - * @return APIlistWorkloadForAllNamespacesRequest - */ - public APIlistWorkloadForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { - this.limit = limit; - return this; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIlistWorkloadForAllNamespacesRequest - */ - public APIlistWorkloadForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set resourceVersion - * @param 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 (optional) - * @return APIlistWorkloadForAllNamespacesRequest - */ - public APIlistWorkloadForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { - this.resourceVersion = resourceVersion; - return this; - } - - /** - * Set resourceVersionMatch - * @param 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 (optional) - * @return APIlistWorkloadForAllNamespacesRequest - */ - public APIlistWorkloadForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { - this.resourceVersionMatch = resourceVersionMatch; - return this; - } - - /** - * Set sendInitialEvents - * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) - * @return APIlistWorkloadForAllNamespacesRequest - */ - public APIlistWorkloadForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { - this.sendInitialEvents = sendInitialEvents; - return this; - } - - /** - * Set timeoutSeconds - * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) - * @return APIlistWorkloadForAllNamespacesRequest - */ - public APIlistWorkloadForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { - this.timeoutSeconds = timeoutSeconds; - return this; - } - - /** - * Set watch - * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @return APIlistWorkloadForAllNamespacesRequest - */ - public APIlistWorkloadForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { - this.watch = watch; - return this; - } - - /** - * Build call for listWorkloadForAllNamespaces - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listWorkloadForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - - /** - * Execute listWorkloadForAllNamespaces request - * @return V1alpha1WorkloadList - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha1WorkloadList execute() throws ApiException { - ApiResponse localVarResp = listWorkloadForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - return localVarResp.getData(); - } - - /** - * Execute listWorkloadForAllNamespaces request with HTTP info returned - * @return ApiResponse<V1alpha1WorkloadList> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return listWorkloadForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); - } - - /** - * Execute listWorkloadForAllNamespaces request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listWorkloadForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); - } - } - - /** - * - * list or watch objects of kind Workload - * @return APIlistWorkloadForAllNamespacesRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIlistWorkloadForAllNamespacesRequest listWorkloadForAllNamespaces() { - return new APIlistWorkloadForAllNamespacesRequest(); - } - private okhttp3.Call patchNamespacedWorkloadCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - if (force != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call patchNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedWorkload(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedWorkload(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedWorkload(Async)"); - } - - return patchNamespacedWorkloadCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - - } - - - private ApiResponse patchNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { - okhttp3.Call localVarCall = patchNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call patchNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = patchNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIpatchNamespacedWorkloadRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nonnull - private final V1Patch body; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - @jakarta.annotation.Nullable - private Boolean force; - - private APIpatchNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { - this.name = name; - this.namespace = namespace; - this.body = body; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIpatchNamespacedWorkloadRequest - */ - public APIpatchNamespacedWorkloadRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIpatchNamespacedWorkloadRequest - */ - public APIpatchNamespacedWorkloadRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) - * @return APIpatchNamespacedWorkloadRequest - */ - public APIpatchNamespacedWorkloadRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIpatchNamespacedWorkloadRequest - */ - public APIpatchNamespacedWorkloadRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Set force - * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @return APIpatchNamespacedWorkloadRequest - */ - public APIpatchNamespacedWorkloadRequest force(@jakarta.annotation.Nullable Boolean force) { - this.force = force; - return this; - } - - /** - * Build call for patchNamespacedWorkload - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return patchNamespacedWorkloadCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - } - - /** - * Execute patchNamespacedWorkload request - * @return V1alpha1Workload - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha1Workload execute() throws ApiException { - ApiResponse localVarResp = patchNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - return localVarResp.getData(); - } - - /** - * Execute patchNamespacedWorkload request with HTTP info returned - * @return ApiResponse<V1alpha1Workload> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return patchNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); - } - - /** - * Execute patchNamespacedWorkload request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return patchNamespacedWorkloadAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); - } - } - - /** - * - * partially update the specified Workload - * @param name name of the Workload (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @return APIpatchNamespacedWorkloadRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public APIpatchNamespacedWorkloadRequest patchNamespacedWorkload(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { - return new APIpatchNamespacedWorkloadRequest(name, namespace, body); - } - private okhttp3.Call readNamespacedWorkloadCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = null; - - // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call readNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling readNamespacedWorkload(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedWorkload(Async)"); - } - - return readNamespacedWorkloadCall(name, namespace, pretty, _callback); - - } - - - private ApiResponse readNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { - okhttp3.Call localVarCall = readNamespacedWorkloadValidateBeforeCall(name, namespace, pretty, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call readNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = readNamespacedWorkloadValidateBeforeCall(name, namespace, pretty, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreadNamespacedWorkloadRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nullable - private String pretty; - - private APIreadNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - this.name = name; - this.namespace = namespace; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreadNamespacedWorkloadRequest - */ - public APIreadNamespacedWorkloadRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Build call for readNamespacedWorkload - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return readNamespacedWorkloadCall(name, namespace, pretty, _callback); - } - - /** - * Execute readNamespacedWorkload request - * @return V1alpha1Workload - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public V1alpha1Workload execute() throws ApiException { - ApiResponse localVarResp = readNamespacedWorkloadWithHttpInfo(name, namespace, pretty); - return localVarResp.getData(); - } - - /** - * Execute readNamespacedWorkload request with HTTP info returned - * @return ApiResponse<V1alpha1Workload> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return readNamespacedWorkloadWithHttpInfo(name, namespace, pretty); - } - - /** - * Execute readNamespacedWorkload request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return readNamespacedWorkloadAsync(name, namespace, pretty, _callback); - } - } - - /** - * - * read the specified Workload - * @param name name of the Workload (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @return APIreadNamespacedWorkloadRequest - * @http.response.details - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
- */ - public APIreadNamespacedWorkloadRequest readNamespacedWorkload(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { - return new APIreadNamespacedWorkloadRequest(name, namespace); - } - private okhttp3.Call replaceNamespacedWorkloadCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - String basePath = null; - // Operation Servers - String[] localBasePaths = new String[] { }; - - // Determine Base Path to Use - if (localCustomBaseUrl != null){ - basePath = localCustomBaseUrl; - } else if ( localBasePaths.length > 0 ) { - basePath = localBasePaths[localHostIndex]; - } else { - basePath = null; - } - - Object localVarPostBody = body; - - // create path and map variables - String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name}" - .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) - .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); - - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - if (pretty != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); - } - - if (dryRun != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); - } - - if (fieldManager != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); - } - - if (fieldValidation != null) { - localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); - } - - final String[] localVarAccepts = { - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - }; - final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) { - localVarHeaderParams.put("Accept", localVarAccept); - } - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); - if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "BearerToken" }; - return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call replaceNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - // verify the required parameter 'name' is set - if (name == null) { - throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedWorkload(Async)"); - } - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedWorkload(Async)"); - } - - // verify the required parameter 'body' is set - if (body == null) { - throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedWorkload(Async)"); - } - - return replaceNamespacedWorkloadCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - - } - - - private ApiResponse replaceNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { - okhttp3.Call localVarCall = replaceNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - private okhttp3.Call replaceNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { - - okhttp3.Call localVarCall = replaceNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); - localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); - return localVarCall; - } - - public class APIreplaceNamespacedWorkloadRequest { - @jakarta.annotation.Nonnull - private final String name; - @jakarta.annotation.Nonnull - private final String namespace; - @jakarta.annotation.Nonnull - private final V1alpha1Workload body; - @jakarta.annotation.Nullable - private String pretty; - @jakarta.annotation.Nullable - private String dryRun; - @jakarta.annotation.Nullable - private String fieldManager; - @jakarta.annotation.Nullable - private String fieldValidation; - - private APIreplaceNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Workload body) { - this.name = name; - this.namespace = namespace; - this.body = body; - } - - /** - * Set pretty - * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) - * @return APIreplaceNamespacedWorkloadRequest - */ - public APIreplaceNamespacedWorkloadRequest pretty(@jakarta.annotation.Nullable String pretty) { - this.pretty = pretty; - return this; - } - - /** - * Set dryRun - * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) - * @return APIreplaceNamespacedWorkloadRequest - */ - public APIreplaceNamespacedWorkloadRequest dryRun(@jakarta.annotation.Nullable String dryRun) { - this.dryRun = dryRun; - return this; - } - - /** - * Set fieldManager - * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @return APIreplaceNamespacedWorkloadRequest - */ - public APIreplaceNamespacedWorkloadRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { - this.fieldManager = fieldManager; - return this; - } - - /** - * Set fieldValidation - * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) - * @return APIreplaceNamespacedWorkloadRequest - */ - public APIreplaceNamespacedWorkloadRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { - this.fieldValidation = fieldValidation; - return this; - } - - /** - * Build call for replaceNamespacedWorkload - * @param _callback ApiCallback API callback - * @return Call to execute - * @throws ApiException If fail to serialize the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return replaceNamespacedWorkloadCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - - /** - * Execute replaceNamespacedWorkload request - * @return V1alpha1Workload - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public V1alpha1Workload execute() throws ApiException { - ApiResponse localVarResp = replaceNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - return localVarResp.getData(); - } - - /** - * Execute replaceNamespacedWorkload request with HTTP info returned - * @return ApiResponse<V1alpha1Workload> - * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public ApiResponse executeWithHttpInfo() throws ApiException { - return replaceNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); - } - - /** - * Execute replaceNamespacedWorkload request (asynchronously) - * @param _callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return replaceNamespacedWorkloadAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); - } - } - - /** - * - * replace the specified Workload - * @param name name of the Workload (required) - * @param namespace object name and auth scope, such as for teams and projects (required) - * @param body (required) - * @return APIreplaceNamespacedWorkloadRequest - * @http.response.details - - - - - - -
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
- */ - public APIreplaceNamespacedWorkloadRequest replaceNamespacedWorkload(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha1Workload body) { - return new APIreplaceNamespacedWorkloadRequest(name, namespace, body); - } -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha2Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha2Api.java new file mode 100644 index 0000000000..d456493540 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/SchedulingV1alpha2Api.java @@ -0,0 +1,5733 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.apis; + +import io.kubernetes.client.openapi.ApiCallback; +import io.kubernetes.client.openapi.ApiClient; +import io.kubernetes.client.openapi.ApiException; +import io.kubernetes.client.openapi.ApiResponse; +import io.kubernetes.client.openapi.Configuration; +import io.kubernetes.client.openapi.Pair; +import io.kubernetes.client.openapi.ProgressRequestBody; +import io.kubernetes.client.openapi.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import io.kubernetes.client.openapi.models.V1APIResourceList; +import io.kubernetes.client.openapi.models.V1DeleteOptions; +import io.kubernetes.client.custom.V1Patch; +import io.kubernetes.client.openapi.models.V1Status; +import io.kubernetes.client.openapi.models.V1alpha2PodGroup; +import io.kubernetes.client.openapi.models.V1alpha2PodGroupList; +import io.kubernetes.client.openapi.models.V1alpha2Workload; +import io.kubernetes.client.openapi.models.V1alpha2WorkloadList; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class SchedulingV1alpha2Api { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public SchedulingV1alpha2Api() { + this(Configuration.getDefaultApiClient()); + } + + public SchedulingV1alpha2Api(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + private okhttp3.Call createNamespacedPodGroupCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedPodGroupValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedPodGroup(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodGroup(Async)"); + } + + return createNamespacedPodGroupCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedPodGroupValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedPodGroupValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateNamespacedPodGroupRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha2PodGroup body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateNamespacedPodGroupRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body) { + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateNamespacedPodGroupRequest + */ + public APIcreateNamespacedPodGroupRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateNamespacedPodGroupRequest + */ + public APIcreateNamespacedPodGroupRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateNamespacedPodGroupRequest + */ + public APIcreateNamespacedPodGroupRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateNamespacedPodGroupRequest + */ + public APIcreateNamespacedPodGroupRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createNamespacedPodGroup + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createNamespacedPodGroupCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createNamespacedPodGroup request + * @return V1alpha2PodGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha2PodGroup execute() throws ApiException { + ApiResponse localVarResp = createNamespacedPodGroupWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createNamespacedPodGroup request with HTTP info returned + * @return ApiResponse<V1alpha2PodGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createNamespacedPodGroupWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createNamespacedPodGroup request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createNamespacedPodGroupAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a PodGroup + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIcreateNamespacedPodGroupRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateNamespacedPodGroupRequest createNamespacedPodGroup(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body) { + return new APIcreateNamespacedPodGroupRequest(namespace, body); + } + private okhttp3.Call createNamespacedWorkloadCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createNamespacedWorkload(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling createNamespacedWorkload(Async)"); + } + + return createNamespacedWorkloadCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse createNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = createNamespacedWorkloadValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call createNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedWorkloadValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIcreateNamespacedWorkloadRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha2Workload body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIcreateNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body) { + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIcreateNamespacedWorkloadRequest + */ + public APIcreateNamespacedWorkloadRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIcreateNamespacedWorkloadRequest + */ + public APIcreateNamespacedWorkloadRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIcreateNamespacedWorkloadRequest + */ + public APIcreateNamespacedWorkloadRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIcreateNamespacedWorkloadRequest + */ + public APIcreateNamespacedWorkloadRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for createNamespacedWorkload + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return createNamespacedWorkloadCall(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute createNamespacedWorkload request + * @return V1alpha2Workload + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public V1alpha2Workload execute() throws ApiException { + ApiResponse localVarResp = createNamespacedWorkloadWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute createNamespacedWorkload request with HTTP info returned + * @return ApiResponse<V1alpha2Workload> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return createNamespacedWorkloadWithHttpInfo(namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute createNamespacedWorkload request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return createNamespacedWorkloadAsync(namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * create a Workload + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIcreateNamespacedWorkloadRequest + * @http.response.details + + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public APIcreateNamespacedWorkloadRequest createNamespacedWorkload(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body) { + return new APIcreateNamespacedWorkloadRequest(namespace, body); + } + private okhttp3.Call deleteCollectionNamespacedPodGroupCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedPodGroupValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodGroup(Async)"); + } + + return deleteCollectionNamespacedPodGroupCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPodGroupValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedPodGroupValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionNamespacedPodGroupRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionNamespacedPodGroupRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionNamespacedPodGroupRequest + */ + public APIdeleteCollectionNamespacedPodGroupRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionNamespacedPodGroup + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionNamespacedPodGroupCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionNamespacedPodGroup request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedPodGroupWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionNamespacedPodGroup request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionNamespacedPodGroupWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionNamespacedPodGroup request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionNamespacedPodGroupAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of PodGroup + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedPodGroupRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionNamespacedPodGroupRequest deleteCollectionNamespacedPodGroup(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedPodGroupRequest(namespace); + } + private okhttp3.Call deleteCollectionNamespacedWorkloadCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteCollectionNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedWorkload(Async)"); + } + + return deleteCollectionNamespacedWorkloadCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + + } + + + private ApiResponse deleteCollectionNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedWorkloadValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteCollectionNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteCollectionNamespacedWorkloadValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteCollectionNamespacedWorkloadRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteCollectionNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteCollectionNamespacedWorkloadRequest + */ + public APIdeleteCollectionNamespacedWorkloadRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteCollectionNamespacedWorkload + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteCollectionNamespacedWorkloadCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + + /** + * Execute deleteCollectionNamespacedWorkload request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedWorkloadWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + return localVarResp.getData(); + } + + /** + * Execute deleteCollectionNamespacedWorkload request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteCollectionNamespacedWorkloadWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); + } + + /** + * Execute deleteCollectionNamespacedWorkload request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteCollectionNamespacedWorkloadAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); + } + } + + /** + * + * delete collection of Workload + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteCollectionNamespacedWorkloadRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIdeleteCollectionNamespacedWorkloadRequest deleteCollectionNamespacedWorkload(@jakarta.annotation.Nonnull String namespace) { + return new APIdeleteCollectionNamespacedWorkloadRequest(namespace); + } + private okhttp3.Call deleteNamespacedPodGroupCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedPodGroupValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedPodGroup(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPodGroup(Async)"); + } + + return deleteNamespacedPodGroupCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedPodGroupValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedPodGroupValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteNamespacedPodGroupRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteNamespacedPodGroupRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteNamespacedPodGroupRequest + */ + public APIdeleteNamespacedPodGroupRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteNamespacedPodGroupRequest + */ + public APIdeleteNamespacedPodGroupRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteNamespacedPodGroupRequest + */ + public APIdeleteNamespacedPodGroupRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedPodGroupRequest + */ + public APIdeleteNamespacedPodGroupRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteNamespacedPodGroupRequest + */ + public APIdeleteNamespacedPodGroupRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteNamespacedPodGroupRequest + */ + public APIdeleteNamespacedPodGroupRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteNamespacedPodGroupRequest + */ + public APIdeleteNamespacedPodGroupRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteNamespacedPodGroup + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteNamespacedPodGroupCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteNamespacedPodGroup request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteNamespacedPodGroupWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteNamespacedPodGroup request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteNamespacedPodGroupWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteNamespacedPodGroup request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteNamespacedPodGroupAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a PodGroup + * @param name name of the PodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedPodGroupRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteNamespacedPodGroupRequest deleteNamespacedPodGroup(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedPodGroupRequest(name, namespace); + } + private okhttp3.Call deleteNamespacedWorkloadCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (ignoreStoreReadErrorWithClusterBreakingPotential != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ignoreStoreReadErrorWithClusterBreakingPotential", ignoreStoreReadErrorWithClusterBreakingPotential)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling deleteNamespacedWorkload(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedWorkload(Async)"); + } + + return deleteNamespacedWorkloadCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + + } + + + private ApiResponse deleteNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedWorkloadValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call deleteNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteNamespacedWorkloadValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIdeleteNamespacedWorkloadRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private Integer gracePeriodSeconds; + @jakarta.annotation.Nullable + private Boolean ignoreStoreReadErrorWithClusterBreakingPotential; + @jakarta.annotation.Nullable + private Boolean orphanDependents; + @jakarta.annotation.Nullable + private String propagationPolicy; + @jakarta.annotation.Nullable + private V1DeleteOptions body; + + private APIdeleteNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIdeleteNamespacedWorkloadRequest + */ + public APIdeleteNamespacedWorkloadRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIdeleteNamespacedWorkloadRequest + */ + public APIdeleteNamespacedWorkloadRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set gracePeriodSeconds + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) + * @return APIdeleteNamespacedWorkloadRequest + */ + public APIdeleteNamespacedWorkloadRequest gracePeriodSeconds(@jakarta.annotation.Nullable Integer gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; + return this; + } + + /** + * Set ignoreStoreReadErrorWithClusterBreakingPotential + * @param ignoreStoreReadErrorWithClusterBreakingPotential if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it (optional) + * @return APIdeleteNamespacedWorkloadRequest + */ + public APIdeleteNamespacedWorkloadRequest ignoreStoreReadErrorWithClusterBreakingPotential(@jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential) { + this.ignoreStoreReadErrorWithClusterBreakingPotential = ignoreStoreReadErrorWithClusterBreakingPotential; + return this; + } + + /** + * Set orphanDependents + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @return APIdeleteNamespacedWorkloadRequest + */ + public APIdeleteNamespacedWorkloadRequest orphanDependents(@jakarta.annotation.Nullable Boolean orphanDependents) { + this.orphanDependents = orphanDependents; + return this; + } + + /** + * Set propagationPolicy + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @return APIdeleteNamespacedWorkloadRequest + */ + public APIdeleteNamespacedWorkloadRequest propagationPolicy(@jakarta.annotation.Nullable String propagationPolicy) { + this.propagationPolicy = propagationPolicy; + return this; + } + + /** + * Set body + * @param body (optional) + * @return APIdeleteNamespacedWorkloadRequest + */ + public APIdeleteNamespacedWorkloadRequest body(@jakarta.annotation.Nullable V1DeleteOptions body) { + this.body = body; + return this; + } + + /** + * Build call for deleteNamespacedWorkload + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return deleteNamespacedWorkloadCall(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + + /** + * Execute deleteNamespacedWorkload request + * @return V1Status + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public V1Status execute() throws ApiException { + ApiResponse localVarResp = deleteNamespacedWorkloadWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); + } + + /** + * Execute deleteNamespacedWorkload request with HTTP info returned + * @return ApiResponse<V1Status> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return deleteNamespacedWorkloadWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body); + } + + /** + * Execute deleteNamespacedWorkload request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return deleteNamespacedWorkloadAsync(name, namespace, pretty, dryRun, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, orphanDependents, propagationPolicy, body, _callback); + } + } + + /** + * + * delete a Workload + * @param name name of the Workload (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIdeleteNamespacedWorkloadRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public APIdeleteNamespacedWorkloadRequest deleteNamespacedWorkload(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIdeleteNamespacedWorkloadRequest(name, namespace); + } + private okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + + } + + + private ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIgetAPIResourcesRequest { + + private APIgetAPIResourcesRequest() { + } + + /** + * Build call for getAPIResources + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return getAPIResourcesCall(_callback); + } + + /** + * Execute getAPIResources request + * @return V1APIResourceList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1APIResourceList execute() throws ApiException { + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * Execute getAPIResources request with HTTP info returned + * @return ApiResponse<V1APIResourceList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return getAPIResourcesWithHttpInfo(); + } + + /** + * Execute getAPIResources request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return getAPIResourcesAsync(_callback); + } + } + + /** + * + * get available resources + * @return APIgetAPIResourcesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIgetAPIResourcesRequest getAPIResources() { + return new APIgetAPIResourcesRequest(); + } + private okhttp3.Call listNamespacedPodGroupCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedPodGroupValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPodGroup(Async)"); + } + + return listNamespacedPodGroupCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedPodGroupValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedPodGroupValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistNamespacedPodGroupRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistNamespacedPodGroupRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param 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. (optional) + * @return APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistNamespacedPodGroupRequest + */ + public APIlistNamespacedPodGroupRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listNamespacedPodGroup + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listNamespacedPodGroupCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedPodGroup request + * @return V1alpha2PodGroupList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha2PodGroupList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedPodGroupWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNamespacedPodGroup request with HTTP info returned + * @return ApiResponse<V1alpha2PodGroupList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listNamespacedPodGroupWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listNamespacedPodGroup request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listNamespacedPodGroupAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind PodGroup + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedPodGroupRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistNamespacedPodGroupRequest listNamespacedPodGroup(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedPodGroupRequest(namespace); + } + private okhttp3.Call listNamespacedWorkloadCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads" + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedWorkload(Async)"); + } + + return listNamespacedWorkloadCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedWorkloadValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listNamespacedWorkloadValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistNamespacedWorkloadRequest { + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String namespace) { + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set allowWatchBookmarks + * @param 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. (optional) + * @return APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistNamespacedWorkloadRequest + */ + public APIlistNamespacedWorkloadRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listNamespacedWorkload + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listNamespacedWorkloadCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listNamespacedWorkload request + * @return V1alpha2WorkloadList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha2WorkloadList execute() throws ApiException { + ApiResponse localVarResp = listNamespacedWorkloadWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listNamespacedWorkload request with HTTP info returned + * @return ApiResponse<V1alpha2WorkloadList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listNamespacedWorkloadWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listNamespacedWorkload request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listNamespacedWorkloadAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind Workload + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIlistNamespacedWorkloadRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistNamespacedWorkloadRequest listNamespacedWorkload(@jakarta.annotation.Nonnull String namespace) { + return new APIlistNamespacedWorkloadRequest(namespace); + } + private okhttp3.Call listPodGroupForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/podgroups"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listPodGroupForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listPodGroupForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listPodGroupForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPodGroupForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listPodGroupForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listPodGroupForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistPodGroupForAllNamespacesRequest { + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistPodGroupForAllNamespacesRequest() { + } + + /** + * Set allowWatchBookmarks + * @param 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. (optional) + * @return APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistPodGroupForAllNamespacesRequest + */ + public APIlistPodGroupForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listPodGroupForAllNamespaces + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listPodGroupForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listPodGroupForAllNamespaces request + * @return V1alpha2PodGroupList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha2PodGroupList execute() throws ApiException { + ApiResponse localVarResp = listPodGroupForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listPodGroupForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1alpha2PodGroupList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listPodGroupForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listPodGroupForAllNamespaces request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listPodGroupForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind PodGroup + * @return APIlistPodGroupForAllNamespacesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistPodGroupForAllNamespacesRequest listPodGroupForAllNamespaces() { + return new APIlistPodGroupForAllNamespacesRequest(); + } + private okhttp3.Call listWorkloadForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/workloads"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (resourceVersionMatch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersionMatch", resourceVersionMatch)); + } + + if (sendInitialEvents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); + } + + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listWorkloadForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listWorkloadForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + + } + + + private ApiResponse listWorkloadForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listWorkloadForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call listWorkloadForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listWorkloadForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIlistWorkloadForAllNamespacesRequest { + @jakarta.annotation.Nullable + private Boolean allowWatchBookmarks; + @jakarta.annotation.Nullable + private String _continue; + @jakarta.annotation.Nullable + private String fieldSelector; + @jakarta.annotation.Nullable + private String labelSelector; + @jakarta.annotation.Nullable + private Integer limit; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String resourceVersion; + @jakarta.annotation.Nullable + private String resourceVersionMatch; + @jakarta.annotation.Nullable + private Boolean sendInitialEvents; + @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable + private Integer timeoutSeconds; + @jakarta.annotation.Nullable + private Boolean watch; + + private APIlistWorkloadForAllNamespacesRequest() { + } + + /** + * Set allowWatchBookmarks + * @param 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. (optional) + * @return APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest allowWatchBookmarks(@jakarta.annotation.Nullable Boolean allowWatchBookmarks) { + this.allowWatchBookmarks = allowWatchBookmarks; + return this; + } + + /** + * Set _continue + * @param _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. (optional) + * @return APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest _continue(@jakarta.annotation.Nullable String _continue) { + this._continue = _continue; + return this; + } + + /** + * Set fieldSelector + * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @return APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest fieldSelector(@jakarta.annotation.Nullable String fieldSelector) { + this.fieldSelector = fieldSelector; + return this; + } + + /** + * Set labelSelector + * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) + * @return APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest labelSelector(@jakarta.annotation.Nullable String labelSelector) { + this.labelSelector = labelSelector; + return this; + } + + /** + * Set limit + * @param 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. (optional) + * @return APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set resourceVersion + * @param 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 (optional) + * @return APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest resourceVersion(@jakarta.annotation.Nullable String resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + * Set resourceVersionMatch + * @param 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 (optional) + * @return APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest resourceVersionMatch(@jakarta.annotation.Nullable String resourceVersionMatch) { + this.resourceVersionMatch = resourceVersionMatch; + return this; + } + + /** + * Set sendInitialEvents + * @param sendInitialEvents `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise. (optional) + * @return APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest sendInitialEvents(@jakarta.annotation.Nullable Boolean sendInitialEvents) { + this.sendInitialEvents = sendInitialEvents; + return this; + } + + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + + /** + * Set timeoutSeconds + * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) + * @return APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest timeoutSeconds(@jakarta.annotation.Nullable Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * Set watch + * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @return APIlistWorkloadForAllNamespacesRequest + */ + public APIlistWorkloadForAllNamespacesRequest watch(@jakarta.annotation.Nullable Boolean watch) { + this.watch = watch; + return this; + } + + /** + * Build call for listWorkloadForAllNamespaces + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return listWorkloadForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + + /** + * Execute listWorkloadForAllNamespaces request + * @return V1alpha2WorkloadList + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha2WorkloadList execute() throws ApiException { + ApiResponse localVarResp = listWorkloadForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + return localVarResp.getData(); + } + + /** + * Execute listWorkloadForAllNamespaces request with HTTP info returned + * @return ApiResponse<V1alpha2WorkloadList> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listWorkloadForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); + } + + /** + * Execute listWorkloadForAllNamespaces request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return listWorkloadForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); + } + } + + /** + * + * list or watch objects of kind Workload + * @return APIlistWorkloadForAllNamespacesRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIlistWorkloadForAllNamespacesRequest listWorkloadForAllNamespaces() { + return new APIlistWorkloadForAllNamespacesRequest(); + } + private okhttp3.Call patchNamespacedPodGroupCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedPodGroupValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodGroup(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPodGroup(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodGroup(Async)"); + } + + return patchNamespacedPodGroupCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedPodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedPodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedPodGroupRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchNamespacedPodGroupRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchNamespacedPodGroupRequest + */ + public APIpatchNamespacedPodGroupRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchNamespacedPodGroupRequest + */ + public APIpatchNamespacedPodGroupRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchNamespacedPodGroupRequest + */ + public APIpatchNamespacedPodGroupRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchNamespacedPodGroupRequest + */ + public APIpatchNamespacedPodGroupRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchNamespacedPodGroupRequest + */ + public APIpatchNamespacedPodGroupRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedPodGroup + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchNamespacedPodGroupCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedPodGroup request + * @return V1alpha2PodGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha2PodGroup execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedPodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedPodGroup request with HTTP info returned + * @return ApiResponse<V1alpha2PodGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedPodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedPodGroup request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedPodGroupAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified PodGroup + * @param name name of the PodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedPodGroupRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedPodGroupRequest patchNamespacedPodGroup(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedPodGroupRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedPodGroupStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedPodGroupStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedPodGroupStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedPodGroupStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodGroupStatus(Async)"); + } + + return patchNamespacedPodGroupStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedPodGroupStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedPodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedPodGroupStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedPodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedPodGroupStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchNamespacedPodGroupStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchNamespacedPodGroupStatusRequest + */ + public APIpatchNamespacedPodGroupStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchNamespacedPodGroupStatusRequest + */ + public APIpatchNamespacedPodGroupStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchNamespacedPodGroupStatusRequest + */ + public APIpatchNamespacedPodGroupStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchNamespacedPodGroupStatusRequest + */ + public APIpatchNamespacedPodGroupStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchNamespacedPodGroupStatusRequest + */ + public APIpatchNamespacedPodGroupStatusRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedPodGroupStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchNamespacedPodGroupStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedPodGroupStatus request + * @return V1alpha2PodGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha2PodGroup execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedPodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedPodGroupStatus request with HTTP info returned + * @return ApiResponse<V1alpha2PodGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedPodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedPodGroupStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedPodGroupStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update status of the specified PodGroup + * @param name name of the PodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedPodGroupStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedPodGroupStatusRequest patchNamespacedPodGroupStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedPodGroupStatusRequest(name, namespace, body); + } + private okhttp3.Call patchNamespacedWorkloadCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call patchNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling patchNamespacedWorkload(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling patchNamespacedWorkload(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedWorkload(Async)"); + } + + return patchNamespacedWorkloadCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + + } + + + private ApiResponse patchNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call patchNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, @jakarta.annotation.Nullable Boolean force, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = patchNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIpatchNamespacedWorkloadRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1Patch body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + @jakarta.annotation.Nullable + private Boolean force; + + private APIpatchNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIpatchNamespacedWorkloadRequest + */ + public APIpatchNamespacedWorkloadRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIpatchNamespacedWorkloadRequest + */ + public APIpatchNamespacedWorkloadRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) + * @return APIpatchNamespacedWorkloadRequest + */ + public APIpatchNamespacedWorkloadRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIpatchNamespacedWorkloadRequest + */ + public APIpatchNamespacedWorkloadRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Set force + * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) + * @return APIpatchNamespacedWorkloadRequest + */ + public APIpatchNamespacedWorkloadRequest force(@jakarta.annotation.Nullable Boolean force) { + this.force = force; + return this; + } + + /** + * Build call for patchNamespacedWorkload + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return patchNamespacedWorkloadCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + + /** + * Execute patchNamespacedWorkload request + * @return V1alpha2Workload + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha2Workload execute() throws ApiException { + ApiResponse localVarResp = patchNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + return localVarResp.getData(); + } + + /** + * Execute patchNamespacedWorkload request with HTTP info returned + * @return ApiResponse<V1alpha2Workload> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return patchNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force); + } + + /** + * Execute patchNamespacedWorkload request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return patchNamespacedWorkloadAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, force, _callback); + } + } + + /** + * + * partially update the specified Workload + * @param name name of the Workload (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIpatchNamespacedWorkloadRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIpatchNamespacedWorkloadRequest patchNamespacedWorkload(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1Patch body) { + return new APIpatchNamespacedWorkloadRequest(name, namespace, body); + } + private okhttp3.Call readNamespacedPodGroupCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedPodGroupValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodGroup(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodGroup(Async)"); + } + + return readNamespacedPodGroupCall(name, namespace, pretty, _callback); + + } + + + private ApiResponse readNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedPodGroupValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedPodGroupValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedPodGroupRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedPodGroupRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadNamespacedPodGroupRequest + */ + public APIreadNamespacedPodGroupRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedPodGroup + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readNamespacedPodGroupCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedPodGroup request + * @return V1alpha2PodGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha2PodGroup execute() throws ApiException { + ApiResponse localVarResp = readNamespacedPodGroupWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * Execute readNamespacedPodGroup request with HTTP info returned + * @return ApiResponse<V1alpha2PodGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedPodGroupWithHttpInfo(name, namespace, pretty); + } + + /** + * Execute readNamespacedPodGroup request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedPodGroupAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * read the specified PodGroup + * @param name name of the PodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedPodGroupRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadNamespacedPodGroupRequest readNamespacedPodGroup(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedPodGroupRequest(name, namespace); + } + private okhttp3.Call readNamespacedPodGroupStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedPodGroupStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedPodGroupStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodGroupStatus(Async)"); + } + + return readNamespacedPodGroupStatusCall(name, namespace, pretty, _callback); + + } + + + private ApiResponse readNamespacedPodGroupStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedPodGroupStatusValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readNamespacedPodGroupStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedPodGroupStatusValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedPodGroupStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedPodGroupStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadNamespacedPodGroupStatusRequest + */ + public APIreadNamespacedPodGroupStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedPodGroupStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readNamespacedPodGroupStatusCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedPodGroupStatus request + * @return V1alpha2PodGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha2PodGroup execute() throws ApiException { + ApiResponse localVarResp = readNamespacedPodGroupStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * Execute readNamespacedPodGroupStatus request with HTTP info returned + * @return ApiResponse<V1alpha2PodGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedPodGroupStatusWithHttpInfo(name, namespace, pretty); + } + + /** + * Execute readNamespacedPodGroupStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedPodGroupStatusAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * read status of the specified PodGroup + * @param name name of the PodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedPodGroupStatusRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadNamespacedPodGroupStatusRequest readNamespacedPodGroupStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedPodGroupStatusRequest(name, namespace); + } + private okhttp3.Call readNamespacedWorkloadCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call readNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling readNamespacedWorkload(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedWorkload(Async)"); + } + + return readNamespacedWorkloadCall(name, namespace, pretty, _callback); + + } + + + private ApiResponse readNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty) throws ApiException { + okhttp3.Call localVarCall = readNamespacedWorkloadValidateBeforeCall(name, namespace, pretty, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call readNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = readNamespacedWorkloadValidateBeforeCall(name, namespace, pretty, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreadNamespacedWorkloadRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nullable + private String pretty; + + private APIreadNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + this.name = name; + this.namespace = namespace; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreadNamespacedWorkloadRequest + */ + public APIreadNamespacedWorkloadRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Build call for readNamespacedWorkload + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return readNamespacedWorkloadCall(name, namespace, pretty, _callback); + } + + /** + * Execute readNamespacedWorkload request + * @return V1alpha2Workload + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public V1alpha2Workload execute() throws ApiException { + ApiResponse localVarResp = readNamespacedWorkloadWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); + } + + /** + * Execute readNamespacedWorkload request with HTTP info returned + * @return ApiResponse<V1alpha2Workload> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return readNamespacedWorkloadWithHttpInfo(name, namespace, pretty); + } + + /** + * Execute readNamespacedWorkload request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return readNamespacedWorkloadAsync(name, namespace, pretty, _callback); + } + } + + /** + * + * read the specified Workload + * @param name name of the Workload (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @return APIreadNamespacedWorkloadRequest + * @http.response.details + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public APIreadNamespacedWorkloadRequest readNamespacedWorkload(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace) { + return new APIreadNamespacedWorkloadRequest(name, namespace); + } + private okhttp3.Call replaceNamespacedPodGroupCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedPodGroupValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodGroup(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedPodGroup(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodGroup(Async)"); + } + + return replaceNamespacedPodGroupCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceNamespacedPodGroupWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedPodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceNamespacedPodGroupAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedPodGroupValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceNamespacedPodGroupRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha2PodGroup body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceNamespacedPodGroupRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceNamespacedPodGroupRequest + */ + public APIreplaceNamespacedPodGroupRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceNamespacedPodGroupRequest + */ + public APIreplaceNamespacedPodGroupRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceNamespacedPodGroupRequest + */ + public APIreplaceNamespacedPodGroupRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceNamespacedPodGroupRequest + */ + public APIreplaceNamespacedPodGroupRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedPodGroup + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceNamespacedPodGroupCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceNamespacedPodGroup request + * @return V1alpha2PodGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha2PodGroup execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedPodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceNamespacedPodGroup request with HTTP info returned + * @return ApiResponse<V1alpha2PodGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedPodGroupWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceNamespacedPodGroup request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedPodGroupAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified PodGroup + * @param name name of the PodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedPodGroupRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceNamespacedPodGroupRequest replaceNamespacedPodGroup(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body) { + return new APIreplaceNamespacedPodGroupRequest(name, namespace, body); + } + private okhttp3.Call replaceNamespacedPodGroupStatusCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedPodGroupStatusValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedPodGroupStatus(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedPodGroupStatus(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodGroupStatus(Async)"); + } + + return replaceNamespacedPodGroupStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceNamespacedPodGroupStatusWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedPodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceNamespacedPodGroupStatusAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedPodGroupStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceNamespacedPodGroupStatusRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha2PodGroup body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceNamespacedPodGroupStatusRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceNamespacedPodGroupStatusRequest + */ + public APIreplaceNamespacedPodGroupStatusRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceNamespacedPodGroupStatusRequest + */ + public APIreplaceNamespacedPodGroupStatusRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceNamespacedPodGroupStatusRequest + */ + public APIreplaceNamespacedPodGroupStatusRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceNamespacedPodGroupStatusRequest + */ + public APIreplaceNamespacedPodGroupStatusRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedPodGroupStatus + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceNamespacedPodGroupStatusCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceNamespacedPodGroupStatus request + * @return V1alpha2PodGroup + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha2PodGroup execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedPodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceNamespacedPodGroupStatus request with HTTP info returned + * @return ApiResponse<V1alpha2PodGroup> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedPodGroupStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceNamespacedPodGroupStatus request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedPodGroupStatusAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace status of the specified PodGroup + * @param name name of the PodGroup (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedPodGroupStatusRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceNamespacedPodGroupStatusRequest replaceNamespacedPodGroupStatus(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2PodGroup body) { + return new APIreplaceNamespacedPodGroupStatusRequest(name, namespace, body); + } + private okhttp3.Call replaceNamespacedWorkloadCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = body; + + // create path and map variables + String localVarPath = "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}" + .replace("{" + "name" + "}", localVarApiClient.escapeString(name.toString())) + .replace("{" + "namespace" + "}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (fieldValidation != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldValidation", fieldValidation)); + } + + final String[] localVarAccepts = { + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "BearerToken" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call replaceNamespacedWorkloadValidateBeforeCall(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException("Missing the required parameter 'name' when calling replaceNamespacedWorkload(Async)"); + } + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling replaceNamespacedWorkload(Async)"); + } + + // verify the required parameter 'body' is set + if (body == null) { + throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedWorkload(Async)"); + } + + return replaceNamespacedWorkloadCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + + } + + + private ApiResponse replaceNamespacedWorkloadWithHttpInfo(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation) throws ApiException { + okhttp3.Call localVarCall = replaceNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + private okhttp3.Call replaceNamespacedWorkloadAsync(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldManager, @jakarta.annotation.Nullable String fieldValidation, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = replaceNamespacedWorkloadValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + + public class APIreplaceNamespacedWorkloadRequest { + @jakarta.annotation.Nonnull + private final String name; + @jakarta.annotation.Nonnull + private final String namespace; + @jakarta.annotation.Nonnull + private final V1alpha2Workload body; + @jakarta.annotation.Nullable + private String pretty; + @jakarta.annotation.Nullable + private String dryRun; + @jakarta.annotation.Nullable + private String fieldManager; + @jakarta.annotation.Nullable + private String fieldValidation; + + private APIreplaceNamespacedWorkloadRequest(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body) { + this.name = name; + this.namespace = namespace; + this.body = body; + } + + /** + * Set pretty + * @param pretty If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget). (optional) + * @return APIreplaceNamespacedWorkloadRequest + */ + public APIreplaceNamespacedWorkloadRequest pretty(@jakarta.annotation.Nullable String pretty) { + this.pretty = pretty; + return this; + } + + /** + * Set dryRun + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) + * @return APIreplaceNamespacedWorkloadRequest + */ + public APIreplaceNamespacedWorkloadRequest dryRun(@jakarta.annotation.Nullable String dryRun) { + this.dryRun = dryRun; + return this; + } + + /** + * Set fieldManager + * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) + * @return APIreplaceNamespacedWorkloadRequest + */ + public APIreplaceNamespacedWorkloadRequest fieldManager(@jakarta.annotation.Nullable String fieldManager) { + this.fieldManager = fieldManager; + return this; + } + + /** + * Set fieldValidation + * @param fieldValidation fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. (optional) + * @return APIreplaceNamespacedWorkloadRequest + */ + public APIreplaceNamespacedWorkloadRequest fieldValidation(@jakarta.annotation.Nullable String fieldValidation) { + this.fieldValidation = fieldValidation; + return this; + } + + /** + * Build call for replaceNamespacedWorkload + * @param _callback ApiCallback API callback + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { + return replaceNamespacedWorkloadCall(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + + /** + * Execute replaceNamespacedWorkload request + * @return V1alpha2Workload + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public V1alpha2Workload execute() throws ApiException { + ApiResponse localVarResp = replaceNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + return localVarResp.getData(); + } + + /** + * Execute replaceNamespacedWorkload request with HTTP info returned + * @return ApiResponse<V1alpha2Workload> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return replaceNamespacedWorkloadWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation); + } + + /** + * Execute replaceNamespacedWorkload request (asynchronously) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { + return replaceNamespacedWorkloadAsync(name, namespace, body, pretty, dryRun, fieldManager, fieldValidation, _callback); + } + } + + /** + * + * replace the specified Workload + * @param name name of the Workload (required) + * @param namespace object name and auth scope, such as for teams and projects (required) + * @param body (required) + * @return APIreplaceNamespacedWorkloadRequest + * @http.response.details + + + + + + +
Response Details
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public APIreplaceNamespacedWorkloadRequest replaceNamespacedWorkload(@jakarta.annotation.Nonnull String name, @jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nonnull V1alpha2Workload body) { + return new APIreplaceNamespacedWorkloadRequest(name, namespace, body); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java index 5a4d314c43..6c32e6c91b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1Api.java @@ -2096,7 +2096,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws public APIdeleteCSINodeRequest deleteCSINode(@jakarta.annotation.Nonnull String name) { return new APIdeleteCSINodeRequest(name); } - private okhttp3.Call deleteCollectionCSIDriverCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCSIDriverCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2173,6 +2173,10 @@ private okhttp3.Call deleteCollectionCSIDriverCall(@jakarta.annotation.Nullable localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2201,21 +2205,21 @@ private okhttp3.Call deleteCollectionCSIDriverCall(@jakarta.annotation.Nullable } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionCSIDriverValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionCSIDriverCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionCSIDriverValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionCSIDriverCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionCSIDriverWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCSIDriverValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionCSIDriverWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionCSIDriverValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionCSIDriverAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCSIDriverAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCSIDriverValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionCSIDriverValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2249,6 +2253,8 @@ public class APIdeleteCollectionCSIDriverRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -2386,6 +2392,16 @@ public APIdeleteCollectionCSIDriverRequest sendInitialEvents(@jakarta.annotation return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionCSIDriverRequest + */ + public APIdeleteCollectionCSIDriverRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2420,7 +2436,7 @@ public APIdeleteCollectionCSIDriverRequest body(@jakarta.annotation.Nullable V1D */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionCSIDriverCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionCSIDriverCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -2436,7 +2452,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionCSIDriverWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionCSIDriverWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -2453,7 +2469,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionCSIDriverWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionCSIDriverWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -2470,7 +2486,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionCSIDriverAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionCSIDriverAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2489,7 +2505,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionCSIDriverRequest deleteCollectionCSIDriver() { return new APIdeleteCollectionCSIDriverRequest(); } - private okhttp3.Call deleteCollectionCSINodeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCSINodeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2566,6 +2582,10 @@ private okhttp3.Call deleteCollectionCSINodeCall(@jakarta.annotation.Nullable St localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2594,21 +2614,21 @@ private okhttp3.Call deleteCollectionCSINodeCall(@jakarta.annotation.Nullable St } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionCSINodeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionCSINodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionCSINodeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionCSINodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionCSINodeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCSINodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionCSINodeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionCSINodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionCSINodeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionCSINodeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionCSINodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionCSINodeValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2642,6 +2662,8 @@ public class APIdeleteCollectionCSINodeRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -2779,6 +2801,16 @@ public APIdeleteCollectionCSINodeRequest sendInitialEvents(@jakarta.annotation.N return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionCSINodeRequest + */ + public APIdeleteCollectionCSINodeRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -2813,7 +2845,7 @@ public APIdeleteCollectionCSINodeRequest body(@jakarta.annotation.Nullable V1Del */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionCSINodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionCSINodeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -2829,7 +2861,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionCSINodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionCSINodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -2846,7 +2878,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionCSINodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionCSINodeWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -2863,7 +2895,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionCSINodeAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionCSINodeAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -2882,7 +2914,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionCSINodeRequest deleteCollectionCSINode() { return new APIdeleteCollectionCSINodeRequest(); } - private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -2960,6 +2992,10 @@ private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityCall(@jakarta.a localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -2988,26 +3024,26 @@ private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityCall(@jakarta.a } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedCSIStorageCapacity(Async)"); } - return deleteCollectionNamespacedCSIStorageCapacityCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedCSIStorageCapacityCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -3043,6 +3079,8 @@ public class APIdeleteCollectionNamespacedCSIStorageCapacityRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -3181,6 +3219,16 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest sendInitialEvents( return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionNamespacedCSIStorageCapacityRequest + */ + public APIdeleteCollectionNamespacedCSIStorageCapacityRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -3215,7 +3263,7 @@ public APIdeleteCollectionNamespacedCSIStorageCapacityRequest body(@jakarta.anno */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedCSIStorageCapacityCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedCSIStorageCapacityCall(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -3231,7 +3279,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -3248,7 +3296,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -3265,7 +3313,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionNamespacedCSIStorageCapacityAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionNamespacedCSIStorageCapacityAsync(namespace, pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -3285,7 +3333,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionNamespacedCSIStorageCapacityRequest deleteCollectionNamespacedCSIStorageCapacity(@jakarta.annotation.Nonnull String namespace) { return new APIdeleteCollectionNamespacedCSIStorageCapacityRequest(namespace); } - private okhttp3.Call deleteCollectionStorageClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3362,6 +3410,10 @@ private okhttp3.Call deleteCollectionStorageClassCall(@jakarta.annotation.Nullab localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -3390,21 +3442,21 @@ private okhttp3.Call deleteCollectionStorageClassCall(@jakarta.annotation.Nullab } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionStorageClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionStorageClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionStorageClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionStorageClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionStorageClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionStorageClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionStorageClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionStorageClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionStorageClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionStorageClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionStorageClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -3438,6 +3490,8 @@ public class APIdeleteCollectionStorageClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -3575,6 +3629,16 @@ public APIdeleteCollectionStorageClassRequest sendInitialEvents(@jakarta.annotat return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionStorageClassRequest + */ + public APIdeleteCollectionStorageClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -3609,7 +3673,7 @@ public APIdeleteCollectionStorageClassRequest body(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionStorageClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionStorageClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -3625,7 +3689,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionStorageClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionStorageClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -3642,7 +3706,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionStorageClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionStorageClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -3659,7 +3723,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionStorageClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionStorageClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -3678,7 +3742,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionStorageClassRequest deleteCollectionStorageClass() { return new APIdeleteCollectionStorageClassRequest(); } - private okhttp3.Call deleteCollectionVolumeAttachmentCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttachmentCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -3755,6 +3819,10 @@ private okhttp3.Call deleteCollectionVolumeAttachmentCall(@jakarta.annotation.Nu localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -3783,21 +3851,21 @@ private okhttp3.Call deleteCollectionVolumeAttachmentCall(@jakarta.annotation.Nu } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionVolumeAttachmentCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionVolumeAttachmentCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionVolumeAttachmentAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttachmentAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -3831,6 +3899,8 @@ public class APIdeleteCollectionVolumeAttachmentRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -3968,6 +4038,16 @@ public APIdeleteCollectionVolumeAttachmentRequest sendInitialEvents(@jakarta.ann return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionVolumeAttachmentRequest + */ + public APIdeleteCollectionVolumeAttachmentRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -4002,7 +4082,7 @@ public APIdeleteCollectionVolumeAttachmentRequest body(@jakarta.annotation.Nulla */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionVolumeAttachmentCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionVolumeAttachmentCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -4018,7 +4098,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -4035,7 +4115,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -4052,7 +4132,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionVolumeAttachmentAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionVolumeAttachmentAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -4071,7 +4151,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) throws A public APIdeleteCollectionVolumeAttachmentRequest deleteCollectionVolumeAttachment() { return new APIdeleteCollectionVolumeAttachmentRequest(); } - private okhttp3.Call deleteCollectionVolumeAttributesClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttributesClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4148,6 +4228,10 @@ private okhttp3.Call deleteCollectionVolumeAttributesClassCall(@jakarta.annotati localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -4176,21 +4260,21 @@ private okhttp3.Call deleteCollectionVolumeAttributesClassCall(@jakarta.annotati } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionVolumeAttributesClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttributesClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -4224,6 +4308,8 @@ public class APIdeleteCollectionVolumeAttributesClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -4361,6 +4447,16 @@ public APIdeleteCollectionVolumeAttributesClassRequest sendInitialEvents(@jakart return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionVolumeAttributesClassRequest + */ + public APIdeleteCollectionVolumeAttributesClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -4395,7 +4491,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest body(@jakarta.annotation. */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -4411,7 +4507,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -4428,7 +4524,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -4445,7 +4541,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionVolumeAttributesClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionVolumeAttributesClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -5750,7 +5846,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listCSIDriverCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSIDriverCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -5811,6 +5907,10 @@ private okhttp3.Call listCSIDriverCall(@jakarta.annotation.Nullable String prett localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -5845,21 +5945,21 @@ private okhttp3.Call listCSIDriverCall(@jakarta.annotation.Nullable String prett } @SuppressWarnings("rawtypes") - private okhttp3.Call listCSIDriverValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listCSIDriverCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listCSIDriverValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listCSIDriverCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listCSIDriverWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listCSIDriverValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listCSIDriverWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCSIDriverValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCSIDriverAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSIDriverAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCSIDriverValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listCSIDriverValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -5885,6 +5985,8 @@ public class APIlistCSIDriverRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -5982,6 +6084,16 @@ public APIlistCSIDriverRequest sendInitialEvents(@jakarta.annotation.Nullable Bo return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistCSIDriverRequest + */ + public APIlistCSIDriverRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -6016,7 +6128,7 @@ public APIlistCSIDriverRequest watch(@jakarta.annotation.Nullable Boolean watch) */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listCSIDriverCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listCSIDriverCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -6032,7 +6144,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1CSIDriverList execute() throws ApiException { - ApiResponse localVarResp = listCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -6049,7 +6161,7 @@ public V1CSIDriverList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -6066,7 +6178,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listCSIDriverAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listCSIDriverAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -6085,7 +6197,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) t public APIlistCSIDriverRequest listCSIDriver() { return new APIlistCSIDriverRequest(); } - private okhttp3.Call listCSINodeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSINodeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6146,6 +6258,10 @@ private okhttp3.Call listCSINodeCall(@jakarta.annotation.Nullable String pretty, localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -6180,21 +6296,21 @@ private okhttp3.Call listCSINodeCall(@jakarta.annotation.Nullable String pretty, } @SuppressWarnings("rawtypes") - private okhttp3.Call listCSINodeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listCSINodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listCSINodeValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listCSINodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listCSINodeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listCSINodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listCSINodeWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCSINodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCSINodeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSINodeAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCSINodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listCSINodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -6220,6 +6336,8 @@ public class APIlistCSINodeRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -6317,6 +6435,16 @@ public APIlistCSINodeRequest sendInitialEvents(@jakarta.annotation.Nullable Bool return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistCSINodeRequest + */ + public APIlistCSINodeRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -6351,7 +6479,7 @@ public APIlistCSINodeRequest watch(@jakarta.annotation.Nullable Boolean watch) { */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listCSINodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listCSINodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -6367,7 +6495,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1CSINodeList execute() throws ApiException { - ApiResponse localVarResp = listCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -6384,7 +6512,7 @@ public V1CSINodeList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -6401,7 +6529,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listCSINodeAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listCSINodeAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -6420,7 +6548,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) thr public APIlistCSINodeRequest listCSINode() { return new APIlistCSINodeRequest(); } - private okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6481,6 +6609,10 @@ private okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(@jakarta.annotat localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -6515,21 +6647,21 @@ private okhttp3.Call listCSIStorageCapacityForAllNamespacesCall(@jakarta.annotat } @SuppressWarnings("rawtypes") - private okhttp3.Call listCSIStorageCapacityForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listCSIStorageCapacityForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listCSIStorageCapacityForAllNamespacesValidateBeforeCall(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listCSIStorageCapacityForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listCSIStorageCapacityForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listCSIStorageCapacityForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listCSIStorageCapacityForAllNamespacesWithHttpInfo(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCSIStorageCapacityForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listCSIStorageCapacityForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listCSIStorageCapacityForAllNamespacesAsync(@jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listCSIStorageCapacityForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listCSIStorageCapacityForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -6555,6 +6687,8 @@ public class APIlistCSIStorageCapacityForAllNamespacesRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -6652,6 +6786,16 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest sendInitialEvents(@jakar return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistCSIStorageCapacityForAllNamespacesRequest + */ + public APIlistCSIStorageCapacityForAllNamespacesRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -6686,7 +6830,7 @@ public APIlistCSIStorageCapacityForAllNamespacesRequest watch(@jakarta.annotatio */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listCSIStorageCapacityForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listCSIStorageCapacityForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -6702,7 +6846,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1CSIStorageCapacityList execute() throws ApiException { - ApiResponse localVarResp = listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -6719,7 +6863,7 @@ public V1CSIStorageCapacityList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listCSIStorageCapacityForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -6736,7 +6880,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExc */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listCSIStorageCapacityForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listCSIStorageCapacityForAllNamespacesAsync(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -6755,7 +6899,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca public APIlistCSIStorageCapacityForAllNamespacesRequest listCSIStorageCapacityForAllNamespaces() { return new APIlistCSIStorageCapacityForAllNamespacesRequest(); } - private okhttp3.Call listNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCSIStorageCapacityCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -6817,6 +6961,10 @@ private okhttp3.Call listNamespacedCSIStorageCapacityCall(@jakarta.annotation.No localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -6851,26 +6999,26 @@ private okhttp3.Call listNamespacedCSIStorageCapacityCall(@jakarta.annotation.No } @SuppressWarnings("rawtypes") - private okhttp3.Call listNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCSIStorageCapacityValidateBeforeCall(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedCSIStorageCapacity(Async)"); } - return listNamespacedCSIStorageCapacityCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedCSIStorageCapacityCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listNamespacedCSIStorageCapacityWithHttpInfo(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listNamespacedCSIStorageCapacityAsync(@jakarta.annotation.Nonnull String namespace, @jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listNamespacedCSIStorageCapacityValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -6898,6 +7046,8 @@ public class APIlistNamespacedCSIStorageCapacityRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -6996,6 +7146,16 @@ public APIlistNamespacedCSIStorageCapacityRequest sendInitialEvents(@jakarta.ann return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistNamespacedCSIStorageCapacityRequest + */ + public APIlistNamespacedCSIStorageCapacityRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -7030,7 +7190,7 @@ public APIlistNamespacedCSIStorageCapacityRequest watch(@jakarta.annotation.Null */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listNamespacedCSIStorageCapacityCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedCSIStorageCapacityCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -7046,7 +7206,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1CSIStorageCapacityList execute() throws ApiException { - ApiResponse localVarResp = listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -7063,7 +7223,7 @@ public V1CSIStorageCapacityList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listNamespacedCSIStorageCapacityWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -7080,7 +7240,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExc */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listNamespacedCSIStorageCapacityAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listNamespacedCSIStorageCapacityAsync(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -7100,7 +7260,7 @@ public okhttp3.Call executeAsync(final ApiCallback _ca public APIlistNamespacedCSIStorageCapacityRequest listNamespacedCSIStorageCapacity(@jakarta.annotation.Nonnull String namespace) { return new APIlistNamespacedCSIStorageCapacityRequest(namespace); } - private okhttp3.Call listStorageClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7161,6 +7321,10 @@ private okhttp3.Call listStorageClassCall(@jakarta.annotation.Nullable String pr localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -7195,21 +7359,21 @@ private okhttp3.Call listStorageClassCall(@jakarta.annotation.Nullable String pr } @SuppressWarnings("rawtypes") - private okhttp3.Call listStorageClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listStorageClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listStorageClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listStorageClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listStorageClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listStorageClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listStorageClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -7235,6 +7399,8 @@ public class APIlistStorageClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -7332,6 +7498,16 @@ public APIlistStorageClassRequest sendInitialEvents(@jakarta.annotation.Nullable return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistStorageClassRequest + */ + public APIlistStorageClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -7366,7 +7542,7 @@ public APIlistStorageClassRequest watch(@jakarta.annotation.Nullable Boolean wat */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listStorageClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listStorageClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -7382,7 +7558,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1StorageClassList execute() throws ApiException { - ApiResponse localVarResp = listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -7399,7 +7575,7 @@ public V1StorageClassList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -7416,7 +7592,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listStorageClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listStorageClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -7435,7 +7611,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback public APIlistStorageClassRequest listStorageClass() { return new APIlistStorageClassRequest(); } - private okhttp3.Call listVolumeAttachmentCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttachmentCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7496,6 +7672,10 @@ private okhttp3.Call listVolumeAttachmentCall(@jakarta.annotation.Nullable Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -7530,21 +7710,21 @@ private okhttp3.Call listVolumeAttachmentCall(@jakarta.annotation.Nullable Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call listVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listVolumeAttachmentValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listVolumeAttachmentWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listVolumeAttachmentAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttachmentAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -7570,6 +7750,8 @@ public class APIlistVolumeAttachmentRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -7667,6 +7849,16 @@ public APIlistVolumeAttachmentRequest sendInitialEvents(@jakarta.annotation.Null return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistVolumeAttachmentRequest + */ + public APIlistVolumeAttachmentRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -7701,7 +7893,7 @@ public APIlistVolumeAttachmentRequest watch(@jakarta.annotation.Nullable Boolean */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -7717,7 +7909,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1VolumeAttachmentList execute() throws ApiException { - ApiResponse localVarResp = listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -7734,7 +7926,7 @@ public V1VolumeAttachmentList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -7751,7 +7943,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExcep */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listVolumeAttachmentAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listVolumeAttachmentAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } @@ -7770,7 +7962,7 @@ public okhttp3.Call executeAsync(final ApiCallback _call public APIlistVolumeAttachmentRequest listVolumeAttachment() { return new APIlistVolumeAttachmentRequest(); } - private okhttp3.Call listVolumeAttributesClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttributesClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -7831,6 +8023,10 @@ private okhttp3.Call listVolumeAttributesClassCall(@jakarta.annotation.Nullable localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -7865,21 +8061,21 @@ private okhttp3.Call listVolumeAttributesClassCall(@jakarta.annotation.Nullable } @SuppressWarnings("rawtypes") - private okhttp3.Call listVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listVolumeAttributesClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttributesClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -7905,6 +8101,8 @@ public class APIlistVolumeAttributesClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -8002,6 +8200,16 @@ public APIlistVolumeAttributesClassRequest sendInitialEvents(@jakarta.annotation return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistVolumeAttributesClassRequest + */ + public APIlistVolumeAttributesClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -8036,7 +8244,7 @@ public APIlistVolumeAttributesClassRequest watch(@jakarta.annotation.Nullable Bo */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -8052,7 +8260,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1VolumeAttributesClassList execute() throws ApiException { - ApiResponse localVarResp = listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -8069,7 +8277,7 @@ public V1VolumeAttributesClassList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -8086,7 +8294,7 @@ public ApiResponse executeWithHttpInfo() throws Api */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listVolumeAttributesClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listVolumeAttributesClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java index 5cc57cd7ea..90da2e4a9a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StorageV1beta1Api.java @@ -316,7 +316,7 @@ public okhttp3.Call executeAsync(final ApiCallback public APIcreateVolumeAttributesClassRequest createVolumeAttributesClass(@jakarta.annotation.Nonnull V1beta1VolumeAttributesClass body) { return new APIcreateVolumeAttributesClassRequest(body); } - private okhttp3.Call deleteCollectionVolumeAttributesClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttributesClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -393,6 +393,10 @@ private okhttp3.Call deleteCollectionVolumeAttributesClassCall(@jakarta.annotati localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -421,21 +425,21 @@ private okhttp3.Call deleteCollectionVolumeAttributesClassCall(@jakarta.annotati } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteCollectionVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - return deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + private okhttp3.Call deleteCollectionVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + return deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } - private ApiResponse deleteCollectionVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionVolumeAttributesClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttributesClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionVolumeAttributesClassValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -469,6 +473,8 @@ public class APIdeleteCollectionVolumeAttributesClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -606,6 +612,16 @@ public APIdeleteCollectionVolumeAttributesClassRequest sendInitialEvents(@jakart return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionVolumeAttributesClassRequest + */ + public APIdeleteCollectionVolumeAttributesClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -640,7 +656,7 @@ public APIdeleteCollectionVolumeAttributesClassRequest body(@jakarta.annotation. */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionVolumeAttributesClassCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -656,7 +672,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -673,7 +689,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionVolumeAttributesClassWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -690,7 +706,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionVolumeAttributesClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionVolumeAttributesClassAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1145,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listVolumeAttributesClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttributesClassCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1206,6 +1222,10 @@ private okhttp3.Call listVolumeAttributesClassCall(@jakarta.annotation.Nullable localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1240,21 +1260,21 @@ private okhttp3.Call listVolumeAttributesClassCall(@jakarta.annotation.Nullable } @SuppressWarnings("rawtypes") - private okhttp3.Call listVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listVolumeAttributesClassValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listVolumeAttributesClassWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listVolumeAttributesClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listVolumeAttributesClassAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listVolumeAttributesClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1280,6 +1300,8 @@ public class APIlistVolumeAttributesClassRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1377,6 +1399,16 @@ public APIlistVolumeAttributesClassRequest sendInitialEvents(@jakarta.annotation return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistVolumeAttributesClassRequest + */ + public APIlistVolumeAttributesClassRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1411,7 +1443,7 @@ public APIlistVolumeAttributesClassRequest watch(@jakarta.annotation.Nullable Bo */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listVolumeAttributesClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1427,7 +1459,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1VolumeAttributesClassList execute() throws ApiException { - ApiResponse localVarResp = listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1444,7 +1476,7 @@ public V1beta1VolumeAttributesClassList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listVolumeAttributesClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1461,7 +1493,7 @@ public ApiResponse executeWithHttpInfo() throw */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listVolumeAttributesClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listVolumeAttributesClassAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1beta1Api.java index 3ae3791c3f..97db234184 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/apis/StoragemigrationV1beta1Api.java @@ -316,7 +316,7 @@ public okhttp3.Call executeAsync(final ApiCallback deleteCollectionStorageVersionMigrationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionStorageVersionMigrationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, null); + private ApiResponse deleteCollectionStorageVersionMigrationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionStorageVersionMigrationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call deleteCollectionStorageVersionMigrationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + private okhttp3.Call deleteCollectionStorageVersionMigrationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String dryRun, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable Integer gracePeriodSeconds, @jakarta.annotation.Nullable Boolean ignoreStoreReadErrorWithClusterBreakingPotential, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable Boolean orphanDependents, @jakarta.annotation.Nullable String propagationPolicy, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteCollectionStorageVersionMigrationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + okhttp3.Call localVarCall = deleteCollectionStorageVersionMigrationValidateBeforeCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -469,6 +473,8 @@ public class APIdeleteCollectionStorageVersionMigrationRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private V1DeleteOptions body; @@ -606,6 +612,16 @@ public APIdeleteCollectionStorageVersionMigrationRequest sendInitialEvents(@jaka return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIdeleteCollectionStorageVersionMigrationRequest + */ + public APIdeleteCollectionStorageVersionMigrationRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -640,7 +656,7 @@ public APIdeleteCollectionStorageVersionMigrationRequest body(@jakarta.annotatio */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return deleteCollectionStorageVersionMigrationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionStorageVersionMigrationCall(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } /** @@ -656,7 +672,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1Status execute() throws ApiException { - ApiResponse localVarResp = deleteCollectionStorageVersionMigrationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + ApiResponse localVarResp = deleteCollectionStorageVersionMigrationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); return localVarResp.getData(); } @@ -673,7 +689,7 @@ public V1Status execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return deleteCollectionStorageVersionMigrationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body); + return deleteCollectionStorageVersionMigrationWithHttpInfo(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body); } /** @@ -690,7 +706,7 @@ public ApiResponse executeWithHttpInfo() throws ApiException { */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return deleteCollectionStorageVersionMigrationAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, body, _callback); + return deleteCollectionStorageVersionMigrationAsync(pretty, _continue, dryRun, fieldSelector, gracePeriodSeconds, ignoreStoreReadErrorWithClusterBreakingPotential, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, body, _callback); } } @@ -1145,7 +1161,7 @@ public okhttp3.Call executeAsync(final ApiCallback _callback) public APIgetAPIResourcesRequest getAPIResources() { return new APIgetAPIResourcesRequest(); } - private okhttp3.Call listStorageVersionMigrationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageVersionMigrationCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1206,6 +1222,10 @@ private okhttp3.Call listStorageVersionMigrationCall(@jakarta.annotation.Nullabl localVarQueryParams.addAll(localVarApiClient.parameterToPair("sendInitialEvents", sendInitialEvents)); } + if (shardSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("shardSelector", shardSelector)); + } + if (timeoutSeconds != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); } @@ -1240,21 +1260,21 @@ private okhttp3.Call listStorageVersionMigrationCall(@jakarta.annotation.Nullabl } @SuppressWarnings("rawtypes") - private okhttp3.Call listStorageVersionMigrationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - return listStorageVersionMigrationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + private okhttp3.Call listStorageVersionMigrationValidateBeforeCall(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + return listStorageVersionMigrationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } - private ApiResponse listStorageVersionMigrationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { - okhttp3.Call localVarCall = listStorageVersionMigrationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, null); + private ApiResponse listStorageVersionMigrationWithHttpInfo(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listStorageVersionMigrationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call listStorageVersionMigrationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { + private okhttp3.Call listStorageVersionMigrationAsync(@jakarta.annotation.Nullable String pretty, @jakarta.annotation.Nullable Boolean allowWatchBookmarks, @jakarta.annotation.Nullable String _continue, @jakarta.annotation.Nullable String fieldSelector, @jakarta.annotation.Nullable String labelSelector, @jakarta.annotation.Nullable Integer limit, @jakarta.annotation.Nullable String resourceVersion, @jakarta.annotation.Nullable String resourceVersionMatch, @jakarta.annotation.Nullable Boolean sendInitialEvents, @jakarta.annotation.Nullable String shardSelector, @jakarta.annotation.Nullable Integer timeoutSeconds, @jakarta.annotation.Nullable Boolean watch, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listStorageVersionMigrationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + okhttp3.Call localVarCall = listStorageVersionMigrationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1280,6 +1300,8 @@ public class APIlistStorageVersionMigrationRequest { @jakarta.annotation.Nullable private Boolean sendInitialEvents; @jakarta.annotation.Nullable + private String shardSelector; + @jakarta.annotation.Nullable private Integer timeoutSeconds; @jakarta.annotation.Nullable private Boolean watch; @@ -1377,6 +1399,16 @@ public APIlistStorageVersionMigrationRequest sendInitialEvents(@jakarta.annotati return this; } + /** + * Set shardSelector + * @param shardSelector shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges: shardRange(object.metadata.uid, '0x0', '0x8000000000000000') shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') Field paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths: - object.metadata.uid - object.metadata.namespace hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64. Examples: 2-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000') shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000') 4-shard split: shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000') shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000') shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000') shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000') This is an alpha field and requires enabling the ShardedListAndWatch feature gate. (optional) + * @return APIlistStorageVersionMigrationRequest + */ + public APIlistStorageVersionMigrationRequest shardSelector(@jakarta.annotation.Nullable String shardSelector) { + this.shardSelector = shardSelector; + return this; + } + /** * Set timeoutSeconds * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) @@ -1411,7 +1443,7 @@ public APIlistStorageVersionMigrationRequest watch(@jakarta.annotation.Nullable */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { - return listStorageVersionMigrationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listStorageVersionMigrationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } /** @@ -1427,7 +1459,7 @@ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { */ public V1beta1StorageVersionMigrationList execute() throws ApiException { - ApiResponse localVarResp = listStorageVersionMigrationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + ApiResponse localVarResp = listStorageVersionMigrationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); return localVarResp.getData(); } @@ -1444,7 +1476,7 @@ public V1beta1StorageVersionMigrationList execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listStorageVersionMigrationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch); + return listStorageVersionMigrationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch); } /** @@ -1461,7 +1493,7 @@ public ApiResponse executeWithHttpInfo() thr */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { - return listStorageVersionMigrationAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, timeoutSeconds, watch, _callback); + return listStorageVersionMigrationAsync(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, resourceVersionMatch, sendInitialEvents, shardSelector, timeoutSeconds, watch, _callback); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java index 376d20ca88..ecb07abb51 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/ApiKeyAuth.java @@ -19,7 +19,7 @@ import java.util.Map; import java.util.List; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java index ac279449fc..9cbbbbae76 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/Authentication.java @@ -19,7 +19,7 @@ import java.util.Map; import java.util.List; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public interface Authentication { /** * Apply authentication settings to header and query params. diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java index 5e4ddfbe2d..e3cf2be64e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/auth/HttpBearerAuth.java @@ -21,7 +21,7 @@ import java.util.Optional; import java.util.function.Supplier; -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class HttpBearerAuth implements Authentication { private final String scheme; private Supplier tokenSupplier; diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java index fed5e50f49..dc0734cf2a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AbstractOpenApiSchema.java @@ -20,7 +20,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java index 9a848407f7..027e513ba7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1ServiceReference.java @@ -50,7 +50,7 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class AdmissionregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -81,11 +81,11 @@ public AdmissionregistrationV1ServiceReference name(@jakarta.annotation.Nonnull } /** - * `name` is the name of the service. Required + * name is the name of the service. Required * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "`name` is the name of the service. Required") + @ApiModelProperty(required = true, value = "name is the name of the service. Required") public String getName() { return name; } @@ -101,11 +101,11 @@ public AdmissionregistrationV1ServiceReference namespace(@jakarta.annotation.Non } /** - * `namespace` is the namespace of the service. Required + * namespace is the namespace of the service. Required * @return namespace */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "`namespace` is the namespace of the service. Required") + @ApiModelProperty(required = true, value = "namespace is the namespace of the service. Required") public String getNamespace() { return namespace; } @@ -121,11 +121,11 @@ public AdmissionregistrationV1ServiceReference path(@jakarta.annotation.Nullable } /** - * `path` is an optional URL path which will be sent in any request to this service. + * path is an optional URL path which will be sent in any request to this service. * @return path */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "`path` is an optional URL path which will be sent in any request to this service.") + @ApiModelProperty(value = "path is an optional URL path which will be sent in any request to this service.") public String getPath() { return path; } @@ -141,11 +141,11 @@ public AdmissionregistrationV1ServiceReference port(@jakarta.annotation.Nullable } /** - * If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + * port is the port on the service that hosts the webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). * @return port */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).") + @ApiModelProperty(value = "port is the port on the service that hosts the webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).") public Integer getPort() { return port; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java index fc8871aba4..6224701231 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AdmissionregistrationV1WebhookClientConfig.java @@ -51,7 +51,7 @@ * WebhookClientConfig contains the information to make a TLS connection with the webhook */ @ApiModel(description = "WebhookClientConfig contains the information to make a TLS connection with the webhook") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class AdmissionregistrationV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) @@ -77,11 +77,11 @@ public AdmissionregistrationV1WebhookClientConfig caBundle(@jakarta.annotation.N } /** - * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. + * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. * @return caBundle */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.") + @ApiModelProperty(value = "caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.") public byte[] getCaBundle() { return caBundle; } @@ -117,11 +117,11 @@ public AdmissionregistrationV1WebhookClientConfig url(@jakarta.annotation.Nullab } /** - * `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. + * url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. * @return url */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.") + @ApiModelProperty(value = "url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.") public String getUrl() { return url; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java index 25c0594ac6..c92f8534b0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1ServiceReference.java @@ -50,7 +50,7 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class ApiextensionsV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java index cbe1d5c281..dd3104d19d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiextensionsV1WebhookClientConfig.java @@ -51,7 +51,7 @@ * WebhookClientConfig contains the information to make a TLS connection with the webhook. */ @ApiModel(description = "WebhookClientConfig contains the information to make a TLS connection with the webhook.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class ApiextensionsV1WebhookClientConfig { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java index 59d678f987..06fa34853a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ApiregistrationV1ServiceReference.java @@ -50,7 +50,7 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class ApiregistrationV1ServiceReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java index 47f8eb7168..2d0c0188ce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/AuthenticationV1TokenRequest.java @@ -53,7 +53,7 @@ * TokenRequest requests a token for a given service account. */ @ApiModel(description = "TokenRequest requests a token for a given service account.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class AuthenticationV1TokenRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -72,7 +72,7 @@ public class AuthenticationV1TokenRequest implements io.kubernetes.client.common public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private V1TokenRequestSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public AuthenticationV1TokenRequest spec(@jakarta.annotation.Nonnull V1TokenRequestSpec spec) { + public AuthenticationV1TokenRequest spec(@jakarta.annotation.Nullable V1TokenRequestSpec spec) { this.spec = spec; return this; } @@ -152,13 +152,13 @@ public AuthenticationV1TokenRequest spec(@jakarta.annotation.Nonnull V1TokenRequ * Get spec * @return spec */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1TokenRequestSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1TokenRequestSpec spec) { + public void setSpec(@jakarta.annotation.Nullable V1TokenRequestSpec spec) { this.spec = spec; } @@ -238,7 +238,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("spec")); + openapiRequiredFields = new HashSet(0); } /** @@ -261,13 +261,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `AuthenticationV1TokenRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : AuthenticationV1TokenRequest.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -279,8 +272,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the required field `spec` - V1TokenRequestSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1TokenRequestSpec.validateJsonElement(jsonObj.get("spec")); + } // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { V1TokenRequestStatus.validateJsonElement(jsonObj.get("status")); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java index ac7a0b6124..1c5d39db62 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EndpointPort.java @@ -50,7 +50,7 @@ * EndpointPort is a tuple that describes a single port. Deprecated: This API is deprecated in v1.33+. */ @ApiModel(description = "EndpointPort is a tuple that describes a single port. Deprecated: This API is deprecated in v1.33+.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class CoreV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java index b123f8f0e4..e074785d25 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1Event.java @@ -55,7 +55,7 @@ * Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. */ @ApiModel(description = "Event is a report of an event somewhere in the cluster. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class CoreV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java index 25637374be..ca381dcba6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventList.java @@ -54,7 +54,7 @@ * EventList is a list of events. */ @ApiModel(description = "EventList is a list of events.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class CoreV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java index 90bf1d982b..9bc553ffc1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1EventSeries.java @@ -51,7 +51,7 @@ * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. */ @ApiModel(description = "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class CoreV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java index c94b3ef00d..0e357ae279 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/CoreV1ResourceClaim.java @@ -50,7 +50,7 @@ * ResourceClaim references one entry in PodSpec.ResourceClaims. */ @ApiModel(description = "ResourceClaim references one entry in PodSpec.ResourceClaims.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class CoreV1ResourceClaim { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java index 218abb58c8..8ef5f0e190 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/DiscoveryV1EndpointPort.java @@ -50,7 +50,7 @@ * EndpointPort represents a Port used by an EndpointSlice */ @ApiModel(description = "EndpointPort represents a Port used by an EndpointSlice") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class DiscoveryV1EndpointPort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java index e5c1771d6e..3d78b7b5dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1Event.java @@ -55,7 +55,7 @@ * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data. */ @ApiModel(description = "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. Events have a limited retention time and triggers and messages may evolve with time. Event consumers should not rely on the timing of an event with a given Reason reflecting a consistent underlying trigger, or the continued existence of events with that Reason. Events should be treated as informative, best-effort, supplemental data.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class EventsV1Event implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java index d78140552f..0e25bae2b7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventList.java @@ -54,7 +54,7 @@ * EventList is a list of Event objects. */ @ApiModel(description = "EventList is a list of Event objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class EventsV1EventList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java index df8a807a91..37d6d0f184 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/EventsV1EventSeries.java @@ -51,7 +51,7 @@ * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct is updated on heartbeats and can guide customized reporter implementations. */ @ApiModel(description = "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. How often to update the EventSeries is up to the event reporters. The default event reporter in \"k8s.io/client-go/tools/events/event_broadcaster.go\" shows how this struct is updated on heartbeats and can guide customized reporter implementations.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class EventsV1EventSeries { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java index 3ce3d12434..0893de97da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/FlowcontrolV1Subject.java @@ -53,7 +53,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class FlowcontrolV1Subject { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java index 49c206aeec..434f161ede 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/RbacV1Subject.java @@ -50,7 +50,7 @@ * Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. */ @ApiModel(description = "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class RbacV1Subject { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java index fde614f866..0fff5d83e4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/ResourceV1ResourceClaim.java @@ -50,10 +50,10 @@ import io.kubernetes.client.openapi.JSON; /** - * ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + * ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. */ -@ApiModel(description = "ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@ApiModel(description = "ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class ResourceV1ResourceClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java index 7fef3d980a..d6f0b282df 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/StorageV1TokenRequest.java @@ -50,7 +50,7 @@ * TokenRequest contains parameters of a service account token. */ @ApiModel(description = "TokenRequest contains parameters of a service account token.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class StorageV1TokenRequest { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; @SerializedName(SERIALIZED_NAME_AUDIENCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java index 4ef12f3e7e..22e0db08dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroup.java @@ -54,7 +54,7 @@ * APIGroup contains the name, the supported versions, and the preferred version of a group. */ @ApiModel(description = "APIGroup contains the name, the supported versions, and the preferred version of a group.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIGroup { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java index a5624677c0..703f10efe5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIGroupList.java @@ -53,7 +53,7 @@ * APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. */ @ApiModel(description = "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIGroupList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java index dda85fc68d..7cf3955232 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResource.java @@ -52,7 +52,7 @@ * APIResource specifies the name of a resource and whether it is namespaced. */ @ApiModel(description = "APIResource specifies the name of a resource and whether it is namespaced.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIResource { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @SerializedName(SERIALIZED_NAME_CATEGORIES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java index 5999c2b7ee..97f9b90df3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIResourceList.java @@ -53,7 +53,7 @@ * APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced. */ @ApiModel(description = "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIResourceList { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java index cc365bc9c9..a6926b5197 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIService.java @@ -53,7 +53,7 @@ * APIService represents a server for a particular GroupVersion. Name must be \"version.group\". */ @ApiModel(description = "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIService implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java index a4508e5cc8..50a2ec4c4e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceCondition.java @@ -51,7 +51,7 @@ * APIServiceCondition describes the state of an APIService at a particular point */ @ApiModel(description = "APIServiceCondition describes the state of an APIService at a particular point") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIServiceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java index 329e347538..9bcb57c204 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceList.java @@ -54,7 +54,7 @@ * APIServiceList is a list of APIService objects. */ @ApiModel(description = "APIServiceList is a list of APIService objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java index 3cfe1eabbe..7fcef29452 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceSpec.java @@ -51,7 +51,7 @@ * APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. */ @ApiModel(description = "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIServiceSpec { public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; @SerializedName(SERIALIZED_NAME_CA_BUNDLE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java index ff1a59cd47..f9d4497160 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIServiceStatus.java @@ -53,7 +53,7 @@ * APIServiceStatus contains derived information about an API server */ @ApiModel(description = "APIServiceStatus contains derived information about an API server") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java index 14793b10b8..1a1d449196 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1APIVersions.java @@ -53,7 +53,7 @@ * APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API. */ @ApiModel(description = "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1APIVersions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java index 8099683d2d..834df4f0b2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AWSElasticBlockStoreVolumeSource.java @@ -50,7 +50,7 @@ * Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AWSElasticBlockStoreVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java index 07c4c8b899..2bb3b72159 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Affinity.java @@ -53,7 +53,7 @@ * Affinity is a group of affinity scheduling rules. */ @ApiModel(description = "Affinity is a group of affinity scheduling rules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Affinity { public static final String SERIALIZED_NAME_NODE_AFFINITY = "nodeAffinity"; @SerializedName(SERIALIZED_NAME_NODE_AFFINITY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java index 63f2fd9b91..a7ab9e27d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AggregationRule.java @@ -53,7 +53,7 @@ * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole */ @ApiModel(description = "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AggregationRule { public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; @SerializedName(SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java index 6ee027ab28..0546d1bf9a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocatedDeviceStatus.java @@ -54,7 +54,7 @@ * AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. */ @ApiModel(description = "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java index 62a393051c..d97c911076 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AllocationResult.java @@ -53,7 +53,7 @@ * AllocationResult contains attributes of an allocated resource. */ @ApiModel(description = "AllocationResult contains attributes of an allocated resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AllocationResult { public static final String SERIALIZED_NAME_ALLOCATION_TIMESTAMP = "allocationTimestamp"; @SerializedName(SERIALIZED_NAME_ALLOCATION_TIMESTAMP) @@ -79,11 +79,11 @@ public V1AllocationResult allocationTimestamp(@jakarta.annotation.Nullable Offse } /** - * AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + * AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. * @return allocationTimestamp */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.") + @ApiModelProperty(value = "AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.") public OffsetDateTime getAllocationTimestamp() { return allocationTimestamp; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java index cc4536c395..696272857b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AppArmorProfile.java @@ -50,7 +50,7 @@ * AppArmorProfile defines a pod or container's AppArmor settings. */ @ApiModel(description = "AppArmorProfile defines a pod or container's AppArmor settings.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AppArmorProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; @SerializedName(SERIALIZED_NAME_LOCALHOST_PROFILE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfiguration.java new file mode 100644 index 0000000000..ead4f53ed4 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ApplyConfiguration.java @@ -0,0 +1,207 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * ApplyConfiguration defines the desired configuration values of an object. + */ +@ApiModel(description = "ApplyConfiguration defines the desired configuration values of an object.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1ApplyConfiguration { + public static final String SERIALIZED_NAME_EXPRESSION = "expression"; + @SerializedName(SERIALIZED_NAME_EXPRESSION) + @jakarta.annotation.Nullable + private String expression; + + public V1ApplyConfiguration() { + } + + public V1ApplyConfiguration expression(@jakarta.annotation.Nullable String expression) { + this.expression = expression; + return this; + } + + /** + * expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field: Object{ spec: Object.spec{ serviceAccountName: \"example\" } } Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration. CEL expressions have access to the object types needed to create apply configurations: - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. + * @return expression + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field: Object{ spec: Object.spec{ serviceAccountName: \"example\" } } Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration. CEL expressions have access to the object types needed to create apply configurations: - 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.") + public String getExpression() { + return expression; + } + + public void setExpression(@jakarta.annotation.Nullable String expression) { + this.expression = expression; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ApplyConfiguration v1ApplyConfiguration = (V1ApplyConfiguration) o; + return Objects.equals(this.expression, v1ApplyConfiguration.expression); + } + + @Override + public int hashCode() { + return Objects.hash(expression); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ApplyConfiguration {\n"); + sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("expression")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ApplyConfiguration + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1ApplyConfiguration.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1ApplyConfiguration is not found in the empty JSON string", V1ApplyConfiguration.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1ApplyConfiguration.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ApplyConfiguration` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("expression") != null && !jsonObj.get("expression").isJsonNull()) && !jsonObj.get("expression").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ApplyConfiguration.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ApplyConfiguration' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ApplyConfiguration.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ApplyConfiguration value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ApplyConfiguration read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ApplyConfiguration given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ApplyConfiguration + * @throws IOException if the JSON string is invalid with respect to V1ApplyConfiguration + */ + public static V1ApplyConfiguration fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ApplyConfiguration.class); + } + + /** + * Convert an instance of V1ApplyConfiguration to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java index eaec603f71..ad5fe349bf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AttachedVolume.java @@ -50,7 +50,7 @@ * AttachedVolume describes a volume attached to a node */ @ApiModel(description = "AttachedVolume describes a volume attached to a node") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AttachedVolume { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; @SerializedName(SERIALIZED_NAME_DEVICE_PATH) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java index 1cf21fb7f1..42fcf86cae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AuditAnnotation.java @@ -50,7 +50,7 @@ * AuditAnnotation describes how to produce an audit annotation for an API request. */ @ApiModel(description = "AuditAnnotation describes how to produce an audit annotation for an API request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AuditAnnotation { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java index dcd767298d..8955fdbb37 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureDiskVolumeSource.java @@ -50,7 +50,7 @@ * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. */ @ApiModel(description = "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AzureDiskVolumeSource { public static final String SERIALIZED_NAME_CACHING_MODE = "cachingMode"; @SerializedName(SERIALIZED_NAME_CACHING_MODE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java index 7babc20df4..c9d1c12eca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFilePersistentVolumeSource.java @@ -50,7 +50,7 @@ * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. */ @ApiModel(description = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AzureFilePersistentVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java index 95e84cd443..3d5a321fba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1AzureFileVolumeSource.java @@ -50,7 +50,7 @@ * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. */ @ApiModel(description = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1AzureFileVolumeSource { public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; @SerializedName(SERIALIZED_NAME_READ_ONLY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java index 0dd98228dd..89f86436f9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Binding.java @@ -52,7 +52,7 @@ * Binding ties one object to another; for example, a pod is bound to a node by a scheduler. */ @ApiModel(description = "Binding ties one object to another; for example, a pod is bound to a node by a scheduler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Binding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java index 1a1e2d0c86..ac6d85b72a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1BoundObjectReference.java @@ -50,7 +50,7 @@ * BoundObjectReference is a reference to an object that a token is bound to. */ @ApiModel(description = "BoundObjectReference is a reference to an object that a token is bound to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1BoundObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -81,11 +81,11 @@ public V1BoundObjectReference apiVersion(@jakarta.annotation.Nullable String api } /** - * API version of the referent. + * apiVersion is API version of the referent. * @return apiVersion */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "API version of the referent.") + @ApiModelProperty(value = "apiVersion is API version of the referent.") public String getApiVersion() { return apiVersion; } @@ -101,11 +101,11 @@ public V1BoundObjectReference kind(@jakarta.annotation.Nullable String kind) { } /** - * Kind of the referent. Valid kinds are 'Pod' and 'Secret'. + * kind of the referent. Valid kinds are 'Pod' and 'Secret'. * @return kind */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Kind of the referent. Valid kinds are 'Pod' and 'Secret'.") + @ApiModelProperty(value = "kind of the referent. Valid kinds are 'Pod' and 'Secret'.") public String getKind() { return kind; } @@ -121,11 +121,11 @@ public V1BoundObjectReference name(@jakarta.annotation.Nullable String name) { } /** - * Name of the referent. + * name of the referent. * @return name */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Name of the referent.") + @ApiModelProperty(value = "name of the referent.") public String getName() { return name; } @@ -141,11 +141,11 @@ public V1BoundObjectReference uid(@jakarta.annotation.Nullable String uid) { } /** - * UID of the referent. + * uid of the referent. * @return uid */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "UID of the referent.") + @ApiModelProperty(value = "uid of the referent.") public String getUid() { return uid; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java index cf5bf6dbf1..97507c50c2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CELDeviceSelector.java @@ -50,7 +50,7 @@ * CELDeviceSelector contains a CEL expression for selecting a device. */ @ApiModel(description = "CELDeviceSelector contains a CEL expression for selecting a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CELDeviceSelector { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -66,11 +66,11 @@ public V1CELDeviceSelector expression(@jakarta.annotation.Nonnull String express } /** - * Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. + * Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. * @return expression */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.") + @ApiModelProperty(required = true, value = "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.") public String getExpression() { return expression; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java index ea554a1e93..a34b741c78 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriver.java @@ -52,7 +52,7 @@ * CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. */ @ApiModel(description = "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSIDriver implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java index 888cb6d0a3..f65ef51749 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverList.java @@ -54,7 +54,7 @@ * CSIDriverList is a collection of CSIDriver objects. */ @ApiModel(description = "CSIDriverList is a collection of CSIDriver objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSIDriverList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java index 713f2cebfb..3354b1e82e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIDriverSpec.java @@ -53,7 +53,7 @@ * CSIDriverSpec is the specification of a CSIDriver. */ @ApiModel(description = "CSIDriverSpec is the specification of a CSIDriver.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSIDriverSpec { public static final String SERIALIZED_NAME_ATTACH_REQUIRED = "attachRequired"; @SerializedName(SERIALIZED_NAME_ATTACH_REQUIRED) @@ -75,6 +75,11 @@ public class V1CSIDriverSpec { @jakarta.annotation.Nullable private Boolean podInfoOnMount; + public static final String SERIALIZED_NAME_PREVENT_POD_SCHEDULING_IF_MISSING = "preventPodSchedulingIfMissing"; + @SerializedName(SERIALIZED_NAME_PREVENT_POD_SCHEDULING_IF_MISSING) + @jakarta.annotation.Nullable + private Boolean preventPodSchedulingIfMissing; + public static final String SERIALIZED_NAME_REQUIRES_REPUBLISH = "requiresRepublish"; @SerializedName(SERIALIZED_NAME_REQUIRES_REPUBLISH) @jakarta.annotation.Nullable @@ -154,11 +159,11 @@ public V1CSIDriverSpec nodeAllocatableUpdatePeriodSeconds(@jakarta.annotation.Nu } /** - * nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. + * nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This feature requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. * @return nodeAllocatableUpdatePeriodSeconds */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable.") + @ApiModelProperty(value = "nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This feature requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable.") public Long getNodeAllocatableUpdatePeriodSeconds() { return nodeAllocatableUpdatePeriodSeconds; } @@ -188,6 +193,26 @@ public void setPodInfoOnMount(@jakarta.annotation.Nullable Boolean podInfoOnMoun } + public V1CSIDriverSpec preventPodSchedulingIfMissing(@jakarta.annotation.Nullable Boolean preventPodSchedulingIfMissing) { + this.preventPodSchedulingIfMissing = preventPodSchedulingIfMissing; + return this; + } + + /** + * PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod scheduling if the CSI driver on the node is missing. Enabling this option will prevent the scheduler (or any other component which embeds default scheduler such as cluster-autoscaler) from scheduling pods to nodes where CSI driver is not installed. For components(such as cluster-autoscaler) that embed the scheduler and run pod placement simulations using scheduler plugins, they MUST be aware of CSI driver registration information via CSINode object. They must create simulated CSINode objects in addition to Node objects during scheduling simulation, otherwise if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any newly created node may be rejected by the scheduler because of missing CSI driver information from the node. This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\". + * @return preventPodSchedulingIfMissing + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod scheduling if the CSI driver on the node is missing. Enabling this option will prevent the scheduler (or any other component which embeds default scheduler such as cluster-autoscaler) from scheduling pods to nodes where CSI driver is not installed. For components(such as cluster-autoscaler) that embed the scheduler and run pod placement simulations using scheduler plugins, they MUST be aware of CSI driver registration information via CSINode object. They must create simulated CSINode objects in addition to Node objects during scheduling simulation, otherwise if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any newly created node may be rejected by the scheduler because of missing CSI driver information from the node. This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\".") + public Boolean getPreventPodSchedulingIfMissing() { + return preventPodSchedulingIfMissing; + } + + public void setPreventPodSchedulingIfMissing(@jakarta.annotation.Nullable Boolean preventPodSchedulingIfMissing) { + this.preventPodSchedulingIfMissing = preventPodSchedulingIfMissing; + } + + public V1CSIDriverSpec requiresRepublish(@jakarta.annotation.Nullable Boolean requiresRepublish) { this.requiresRepublish = requiresRepublish; return this; @@ -338,6 +363,7 @@ public boolean equals(Object o) { Objects.equals(this.fsGroupPolicy, v1CSIDriverSpec.fsGroupPolicy) && Objects.equals(this.nodeAllocatableUpdatePeriodSeconds, v1CSIDriverSpec.nodeAllocatableUpdatePeriodSeconds) && Objects.equals(this.podInfoOnMount, v1CSIDriverSpec.podInfoOnMount) && + Objects.equals(this.preventPodSchedulingIfMissing, v1CSIDriverSpec.preventPodSchedulingIfMissing) && Objects.equals(this.requiresRepublish, v1CSIDriverSpec.requiresRepublish) && Objects.equals(this.seLinuxMount, v1CSIDriverSpec.seLinuxMount) && Objects.equals(this.serviceAccountTokenInSecrets, v1CSIDriverSpec.serviceAccountTokenInSecrets) && @@ -348,7 +374,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(attachRequired, fsGroupPolicy, nodeAllocatableUpdatePeriodSeconds, podInfoOnMount, requiresRepublish, seLinuxMount, serviceAccountTokenInSecrets, storageCapacity, tokenRequests, volumeLifecycleModes); + return Objects.hash(attachRequired, fsGroupPolicy, nodeAllocatableUpdatePeriodSeconds, podInfoOnMount, preventPodSchedulingIfMissing, requiresRepublish, seLinuxMount, serviceAccountTokenInSecrets, storageCapacity, tokenRequests, volumeLifecycleModes); } @Override @@ -359,6 +385,7 @@ public String toString() { sb.append(" fsGroupPolicy: ").append(toIndentedString(fsGroupPolicy)).append("\n"); sb.append(" nodeAllocatableUpdatePeriodSeconds: ").append(toIndentedString(nodeAllocatableUpdatePeriodSeconds)).append("\n"); sb.append(" podInfoOnMount: ").append(toIndentedString(podInfoOnMount)).append("\n"); + sb.append(" preventPodSchedulingIfMissing: ").append(toIndentedString(preventPodSchedulingIfMissing)).append("\n"); sb.append(" requiresRepublish: ").append(toIndentedString(requiresRepublish)).append("\n"); sb.append(" seLinuxMount: ").append(toIndentedString(seLinuxMount)).append("\n"); sb.append(" serviceAccountTokenInSecrets: ").append(toIndentedString(serviceAccountTokenInSecrets)).append("\n"); @@ -386,7 +413,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("attachRequired", "fsGroupPolicy", "nodeAllocatableUpdatePeriodSeconds", "podInfoOnMount", "requiresRepublish", "seLinuxMount", "serviceAccountTokenInSecrets", "storageCapacity", "tokenRequests", "volumeLifecycleModes")); + openapiFields = new HashSet(Arrays.asList("attachRequired", "fsGroupPolicy", "nodeAllocatableUpdatePeriodSeconds", "podInfoOnMount", "preventPodSchedulingIfMissing", "requiresRepublish", "seLinuxMount", "serviceAccountTokenInSecrets", "storageCapacity", "tokenRequests", "volumeLifecycleModes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java index b2e3f6ad07..f9aec3436a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINode.java @@ -52,7 +52,7 @@ * CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. */ @ApiModel(description = "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSINode implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java index bb6083c9db..714b5f24e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeDriver.java @@ -53,7 +53,7 @@ * CSINodeDriver holds information about the specification of one CSI driver installed on a node */ @ApiModel(description = "CSINodeDriver holds information about the specification of one CSI driver installed on a node") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSINodeDriver { public static final String SERIALIZED_NAME_ALLOCATABLE = "allocatable"; @SerializedName(SERIALIZED_NAME_ALLOCATABLE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java index f10a3e8143..a25c9ea8d7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeList.java @@ -54,7 +54,7 @@ * CSINodeList is a collection of CSINode objects. */ @ApiModel(description = "CSINodeList is a collection of CSINode objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSINodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java index 72bcb1d4a2..d2d868481f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSINodeSpec.java @@ -53,7 +53,7 @@ * CSINodeSpec holds information about the specification of all CSI drivers installed on a node */ @ApiModel(description = "CSINodeSpec holds information about the specification of all CSI drivers installed on a node") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSINodeSpec { public static final String SERIALIZED_NAME_DRIVERS = "drivers"; @SerializedName(SERIALIZED_NAME_DRIVERS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java index 5bb2daf4bb..d256b1edd0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIPersistentVolumeSource.java @@ -53,7 +53,7 @@ * Represents storage that is managed by an external CSI volume driver */ @ApiModel(description = "Represents storage that is managed by an external CSI volume driver") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF = "controllerExpandSecretRef"; @SerializedName(SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java index 566b3df365..9e8fc94007 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacity.java @@ -53,7 +53,7 @@ * 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 when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node. */ @ApiModel(description = "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 when a CSI driver opts into capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler compares the MaximumVolumeSize against the requested size of pending volumes to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back to a comparison against the less precise Capacity. If that is also unset, the scheduler assumes that capacity is insufficient and tries some other node.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSIStorageCapacity implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java index 2b249182d7..c450daa664 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIStorageCapacityList.java @@ -54,7 +54,7 @@ * CSIStorageCapacityList is a collection of CSIStorageCapacity objects. */ @ApiModel(description = "CSIStorageCapacityList is a collection of CSIStorageCapacity objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSIStorageCapacityList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java index 6128e31124..6d8895b4da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CSIVolumeSource.java @@ -53,7 +53,7 @@ * Represents a source location of a volume to mount, managed by an external CSI driver */ @ApiModel(description = "Represents a source location of a volume to mount, managed by an external CSI driver") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CSIVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java index f7201cbda6..986dcd0b7e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Capabilities.java @@ -52,7 +52,7 @@ * Adds and removes POSIX capabilities from running containers. */ @ApiModel(description = "Adds and removes POSIX capabilities from running containers.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Capabilities { public static final String SERIALIZED_NAME_ADD = "add"; @SerializedName(SERIALIZED_NAME_ADD) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java index 1f28bab1f0..ba6531859f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicy.java @@ -54,7 +54,7 @@ * CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. */ @ApiModel(description = "CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CapacityRequestPolicy { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java index 53ef5a8f9c..a4ea4259d7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequestPolicyRange.java @@ -51,7 +51,7 @@ * CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. */ @ApiModel(description = "CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CapacityRequestPolicyRange { public static final String SERIALIZED_NAME_MAX = "max"; @SerializedName(SERIALIZED_NAME_MAX) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java index ca603603fb..34268a4113 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CapacityRequirements.java @@ -53,7 +53,7 @@ * CapacityRequirements defines the capacity requirements for a specific device request. */ @ApiModel(description = "CapacityRequirements defines the capacity requirements for a specific device request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CapacityRequirements { public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java index 17fd2c433d..333e8825ab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSPersistentVolumeSource.java @@ -53,7 +53,7 @@ * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CephFSPersistentVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java index 3c1bb4edc9..2d5ed3cce0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CephFSVolumeSource.java @@ -53,7 +53,7 @@ * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CephFSVolumeSource { public static final String SERIALIZED_NAME_MONITORS = "monitors"; @SerializedName(SERIALIZED_NAME_MONITORS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java index b96c7b665c..a2676da041 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequest.java @@ -53,7 +53,7 @@ * CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. Kubelets use this API to obtain: 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName). 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName). This API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers. */ @ApiModel(description = "CertificateSigningRequest objects provide a mechanism to obtain x509 certificates by submitting a certificate signing request, and having it asynchronously approved and issued. Kubelets use this API to obtain: 1. client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client-kubelet\" signerName). 2. serving certificates for TLS endpoints kube-apiserver can connect to securely (with the \"kubernetes.io/kubelet-serving\" signerName). This API can be used to request client certificates to authenticate to kube-apiserver (with the \"kubernetes.io/kube-apiserver-client\" signerName), or to obtain certificates from custom non-Kubernetes signers.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CertificateSigningRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java index f09555c818..d362f2bf95 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestCondition.java @@ -51,7 +51,7 @@ * CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object */ @ApiModel(description = "CertificateSigningRequestCondition describes a condition of a CertificateSigningRequest object") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CertificateSigningRequestCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java index fa96b33343..e8a315ed34 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestList.java @@ -54,7 +54,7 @@ * CertificateSigningRequestList is a collection of CertificateSigningRequest objects */ @ApiModel(description = "CertificateSigningRequestList is a collection of CertificateSigningRequest objects") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CertificateSigningRequestList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java index cbb6c1a521..5b37840c09 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestSpec.java @@ -54,7 +54,7 @@ * CertificateSigningRequestSpec contains the certificate request. */ @ApiModel(description = "CertificateSigningRequestSpec contains the certificate request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CertificateSigningRequestSpec { public static final String SERIALIZED_NAME_EXPIRATION_SECONDS = "expirationSeconds"; @SerializedName(SERIALIZED_NAME_EXPIRATION_SECONDS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java index 9cab8ca931..7e15b36bb4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CertificateSigningRequestStatus.java @@ -53,7 +53,7 @@ * CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate. */ @ApiModel(description = "CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CertificateSigningRequestStatus { public static final String SERIALIZED_NAME_CERTIFICATE = "certificate"; @SerializedName(SERIALIZED_NAME_CERTIFICATE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java index 50c4bfd0fd..5328fac9d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderPersistentVolumeSource.java @@ -51,7 +51,7 @@ * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CinderPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java index 4b24f6d3d4..82c59d0f2c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CinderVolumeSource.java @@ -51,7 +51,7 @@ * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CinderVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java index 1f1f90a806..06f8217550 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClientIPConfig.java @@ -50,7 +50,7 @@ * ClientIPConfig represents the configurations of Client IP based session affinity. */ @ApiModel(description = "ClientIPConfig represents the configurations of Client IP based session affinity.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ClientIPConfig { public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java index 56103645ab..6d062f35f5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRole.java @@ -55,7 +55,7 @@ * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. */ @ApiModel(description = "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ClusterRole implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_AGGREGATION_RULE = "aggregationRule"; @SerializedName(SERIALIZED_NAME_AGGREGATION_RULE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java index e80365bb4a..3a3f1e56ae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBinding.java @@ -55,7 +55,7 @@ * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. */ @ApiModel(description = "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ClusterRoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java index 6be47681f6..49d53424c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleBindingList.java @@ -54,7 +54,7 @@ * ClusterRoleBindingList is a collection of ClusterRoleBindings */ @ApiModel(description = "ClusterRoleBindingList is a collection of ClusterRoleBindings") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ClusterRoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java index 305bbbaee2..154f02b426 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterRoleList.java @@ -54,7 +54,7 @@ * ClusterRoleList is a collection of ClusterRoles */ @ApiModel(description = "ClusterRoleList is a collection of ClusterRoles") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ClusterRoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java index 754349a4b3..d1d323d358 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ClusterTrustBundleProjection.java @@ -51,7 +51,7 @@ * ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem. */ @ApiModel(description = "ClusterTrustBundleProjection describes how to select a set of ClusterTrustBundle objects and project their contents into the pod filesystem.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ClusterTrustBundleProjection { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java index 92cb6c78d3..5d38d94ccc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentCondition.java @@ -50,7 +50,7 @@ * Information about the condition of a component. */ @ApiModel(description = "Information about the condition of a component.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ComponentCondition { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java index 7db4ed0235..fdcc5337af 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatus.java @@ -54,7 +54,7 @@ * ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+ */ @ApiModel(description = "ComponentStatus (and ComponentStatusList) holds the cluster validation info. Deprecated: This API is deprecated in v1.19+") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ComponentStatus implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java index 4637c6ea60..629c5c0b9b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ComponentStatusList.java @@ -54,7 +54,7 @@ * Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+ */ @ApiModel(description = "Status of all the conditions for the component as a list of ComponentStatus objects. Deprecated: This API is deprecated in v1.19+") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ComponentStatusList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java index 201f749316..6e88d8edb8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Condition.java @@ -51,7 +51,7 @@ * Condition contains details for one aspect of the current state of this API Resource. */ @ApiModel(description = "Condition contains details for one aspect of the current state of this API Resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Condition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java index 14cf81955b..8111575035 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMap.java @@ -53,7 +53,7 @@ * ConfigMap holds configuration data for pods to consume. */ @ApiModel(description = "ConfigMap holds configuration data for pods to consume.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ConfigMap implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java index 7f8c6206f3..38e1ec2b32 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapEnvSource.java @@ -50,7 +50,7 @@ * ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. */ @ApiModel(description = "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ConfigMapEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java index 3cae2c1f05..1dfbb2b6e9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapKeySelector.java @@ -50,7 +50,7 @@ * Selects a key from a ConfigMap. */ @ApiModel(description = "Selects a key from a ConfigMap.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ConfigMapKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java index 71d95af2b8..d1f119589f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapList.java @@ -54,7 +54,7 @@ * ConfigMapList is a resource containing a list of ConfigMap objects. */ @ApiModel(description = "ConfigMapList is a resource containing a list of ConfigMap objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ConfigMapList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java index fcb6a19b2d..21a4dc539e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapNodeConfigSource.java @@ -50,7 +50,7 @@ * ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration */ @ApiModel(description = "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. This API is deprecated since 1.22: https://git.k8s.io/enhancements/keps/sig-node/281-dynamic-kubelet-configuration") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ConfigMapNodeConfigSource { public static final String SERIALIZED_NAME_KUBELET_CONFIG_KEY = "kubeletConfigKey"; @SerializedName(SERIALIZED_NAME_KUBELET_CONFIG_KEY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java index 4276761242..a935d86fcc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapProjection.java @@ -53,7 +53,7 @@ * Adapts a ConfigMap into a projected volume. The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode. */ @ApiModel(description = "Adapts a ConfigMap into a projected volume. The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ConfigMapProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java index 7193e5b36c..df7f5d4535 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ConfigMapVolumeSource.java @@ -53,7 +53,7 @@ * Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ConfigMapVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java index b1ab8545bd..474f1e1946 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Container.java @@ -63,7 +63,7 @@ * A single application container that you want to run within a pod. */ @ApiModel(description = "A single application container that you want to run within a pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Container { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java index e48b36a7b5..81b1ce7a52 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerExtendedResourceRequest.java @@ -50,7 +50,7 @@ * ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name. */ @ApiModel(description = "ContainerExtendedResourceRequest has the mapping of container name, extended resource name to the device request name.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerExtendedResourceRequest { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java index 630f60dafa..5375d612dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerImage.java @@ -52,7 +52,7 @@ * Describe a container image */ @ApiModel(description = "Describe a container image") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerImage { public static final String SERIALIZED_NAME_NAMES = "names"; @SerializedName(SERIALIZED_NAME_NAMES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java index b3765f2d44..4e08a3f551 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerPort.java @@ -50,7 +50,7 @@ * ContainerPort represents a network port in a single container. */ @ApiModel(description = "ContainerPort represents a network port in a single container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerPort { public static final String SERIALIZED_NAME_CONTAINER_PORT = "containerPort"; @SerializedName(SERIALIZED_NAME_CONTAINER_PORT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java index c12ef3ace7..45e6d19c88 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerResizePolicy.java @@ -50,7 +50,7 @@ * ContainerResizePolicy represents resource resize policy for the container. */ @ApiModel(description = "ContainerResizePolicy represents resource resize policy for the container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerResizePolicy { public static final String SERIALIZED_NAME_RESOURCE_NAME = "resourceName"; @SerializedName(SERIALIZED_NAME_RESOURCE_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java index 97e2fd3813..1a22fd81b7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRule.java @@ -51,7 +51,7 @@ * ContainerRestartRule describes how a container exit is handled. */ @ApiModel(description = "ContainerRestartRule describes how a container exit is handled.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerRestartRule { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java index 5ceef91db4..75e3aa480a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerRestartRuleOnExitCodes.java @@ -52,7 +52,7 @@ * ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes. */ @ApiModel(description = "ContainerRestartRuleOnExitCodes describes the condition for handling an exited container based on its exit codes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerRestartRuleOnExitCodes { public static final String SERIALIZED_NAME_OPERATOR = "operator"; @SerializedName(SERIALIZED_NAME_OPERATOR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java index 4d5a71bc2f..274c0c63a2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerState.java @@ -53,7 +53,7 @@ * ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting. */ @ApiModel(description = "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerState { public static final String SERIALIZED_NAME_RUNNING = "running"; @SerializedName(SERIALIZED_NAME_RUNNING) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java index e20c5e2703..b98cd1b2eb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateRunning.java @@ -51,7 +51,7 @@ * ContainerStateRunning is a running state of a container. */ @ApiModel(description = "ContainerStateRunning is a running state of a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerStateRunning { public static final String SERIALIZED_NAME_STARTED_AT = "startedAt"; @SerializedName(SERIALIZED_NAME_STARTED_AT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java index 2bcd0bed10..80f56fc793 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateTerminated.java @@ -51,7 +51,7 @@ * ContainerStateTerminated is a terminated state of a container. */ @ApiModel(description = "ContainerStateTerminated is a terminated state of a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerStateTerminated { public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; @SerializedName(SERIALIZED_NAME_CONTAINER_I_D) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java index 0aea93bd2e..836225c21b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStateWaiting.java @@ -50,7 +50,7 @@ * ContainerStateWaiting is a waiting state of a container. */ @ApiModel(description = "ContainerStateWaiting is a waiting state of a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerStateWaiting { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java index 902e069d6d..1585d3e257 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerStatus.java @@ -60,7 +60,7 @@ * ContainerStatus contains details for the current status of this container. */ @ApiModel(description = "ContainerStatus contains details for the current status of this container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerStatus { public static final String SERIALIZED_NAME_ALLOCATED_RESOURCES = "allocatedResources"; @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java index d6c5308b63..f86907c095 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ContainerUser.java @@ -51,7 +51,7 @@ * ContainerUser represents user identity information */ @ApiModel(description = "ContainerUser represents user identity information") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ContainerUser { public static final String SERIALIZED_NAME_LINUX = "linux"; @SerializedName(SERIALIZED_NAME_LINUX) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java index 146f2e8597..5e2240a47c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevision.java @@ -51,7 +51,7 @@ * ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. */ @ApiModel(description = "ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ControllerRevision implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java index 876018a31e..2df329e95b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ControllerRevisionList.java @@ -54,7 +54,7 @@ * ControllerRevisionList is a resource containing a list of ControllerRevision objects. */ @ApiModel(description = "ControllerRevisionList is a resource containing a list of ControllerRevision objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ControllerRevisionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java index f19a5dc5e8..e53fbbd836 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Counter.java @@ -51,7 +51,7 @@ * Counter describes a quantity associated with a device. */ @ApiModel(description = "Counter describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Counter { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java index 637c21c12f..1f53187852 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CounterSet.java @@ -53,7 +53,7 @@ * CounterSet defines a named set of counters that are available to be used by devices defined in the ResourcePool. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. */ @ApiModel(description = "CounterSet defines a named set of counters that are available to be used by devices defined in the ResourcePool. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CounterSet { public static final String SERIALIZED_NAME_COUNTERS = "counters"; @SerializedName(SERIALIZED_NAME_COUNTERS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java index 130e00579b..baf7c18746 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJob.java @@ -53,7 +53,7 @@ * CronJob represents the configuration of a single cron job. */ @ApiModel(description = "CronJob represents the configuration of a single cron job.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CronJob implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -72,7 +72,7 @@ public class V1CronJob implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V1CronJobSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1CronJob spec(@jakarta.annotation.Nullable V1CronJobSpec spec) { + public V1CronJob spec(@jakarta.annotation.Nonnull V1CronJobSpec spec) { this.spec = spec; return this; } @@ -152,13 +152,13 @@ public V1CronJob spec(@jakarta.annotation.Nullable V1CronJobSpec spec) { * Get spec * @return spec */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1CronJobSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1CronJobSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1CronJobSpec spec) { this.spec = spec; } @@ -238,7 +238,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -261,6 +261,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1CronJob` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1CronJob.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -272,10 +279,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the optional field `spec` - if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { - V1CronJobSpec.validateJsonElement(jsonObj.get("spec")); - } + // validate the required field `spec` + V1CronJobSpec.validateJsonElement(jsonObj.get("spec")); // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { V1CronJobStatus.validateJsonElement(jsonObj.get("status")); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java index 6ea7cde71b..b66a3dcb30 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobList.java @@ -54,7 +54,7 @@ * CronJobList is a collection of cron jobs. */ @ApiModel(description = "CronJobList is a collection of cron jobs.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CronJobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java index 17b4c728d0..919d4b22b1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobSpec.java @@ -51,7 +51,7 @@ * CronJobSpec describes how the job execution will look like and when it will actually run. */ @ApiModel(description = "CronJobSpec describes how the job execution will look like and when it will actually run.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CronJobSpec { public static final String SERIALIZED_NAME_CONCURRENCY_POLICY = "concurrencyPolicy"; @SerializedName(SERIALIZED_NAME_CONCURRENCY_POLICY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java index 5226d4e70e..d91ef89ffc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CronJobStatus.java @@ -54,7 +54,7 @@ * CronJobStatus represents the current state of a cron job. */ @ApiModel(description = "CronJobStatus represents the current state of a cron job.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CronJobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java index f0c00963fc..a1fb87d30e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CrossVersionObjectReference.java @@ -50,7 +50,7 @@ * CrossVersionObjectReference contains enough information to let you identify the referred resource. */ @ApiModel(description = "CrossVersionObjectReference contains enough information to let you identify the referred resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java index 1486da6686..8d556207a2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceColumnDefinition.java @@ -50,7 +50,7 @@ * CustomResourceColumnDefinition specifies a column for server side printing. */ @ApiModel(description = "CustomResourceColumnDefinition specifies a column for server side printing.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceColumnDefinition { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java index fbe9c18ef0..d0b2b88c37 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceConversion.java @@ -51,7 +51,7 @@ * CustomResourceConversion describes how to convert different versions of a CR. */ @ApiModel(description = "CustomResourceConversion describes how to convert different versions of a CR.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceConversion { public static final String SERIALIZED_NAME_STRATEGY = "strategy"; @SerializedName(SERIALIZED_NAME_STRATEGY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java index 0234842833..36a47f7f14 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinition.java @@ -53,7 +53,7 @@ * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. */ @ApiModel(description = "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceDefinition implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java index 010874e374..2c162f329e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionCondition.java @@ -51,7 +51,7 @@ * CustomResourceDefinitionCondition contains details for the current condition of this pod. */ @ApiModel(description = "CustomResourceDefinitionCondition contains details for the current condition of this pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceDefinitionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java index 4f1454daff..653f522680 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionList.java @@ -54,7 +54,7 @@ * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. */ @ApiModel(description = "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceDefinitionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java index d706b7cf74..6b676e8ea1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionNames.java @@ -52,7 +52,7 @@ * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition */ @ApiModel(description = "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceDefinitionNames { public static final String SERIALIZED_NAME_CATEGORIES = "categories"; @SerializedName(SERIALIZED_NAME_CATEGORIES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java index 15ada3ce16..79be029d59 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionSpec.java @@ -55,7 +55,7 @@ * CustomResourceDefinitionSpec describes how a user wants their resource to appear */ @ApiModel(description = "CustomResourceDefinitionSpec describes how a user wants their resource to appear") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceDefinitionSpec { public static final String SERIALIZED_NAME_CONVERSION = "conversion"; @SerializedName(SERIALIZED_NAME_CONVERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java index aa49df1bf6..ad673f25f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionStatus.java @@ -54,7 +54,7 @@ * CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition */ @ApiModel(description = "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceDefinitionStatus { public static final String SERIALIZED_NAME_ACCEPTED_NAMES = "acceptedNames"; @SerializedName(SERIALIZED_NAME_ACCEPTED_NAMES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java index 53e1e9fc53..19a7bf1d8f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceDefinitionVersion.java @@ -56,7 +56,7 @@ * CustomResourceDefinitionVersion describes a version for CRD. */ @ApiModel(description = "CustomResourceDefinitionVersion describes a version for CRD.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceDefinitionVersion { public static final String SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS = "additionalPrinterColumns"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java index 11483f006b..aaa45eda08 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresourceScale.java @@ -50,7 +50,7 @@ * CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. */ @ApiModel(description = "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceSubresourceScale { public static final String SERIALIZED_NAME_LABEL_SELECTOR_PATH = "labelSelectorPath"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR_PATH) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java index 0d1e3db5f0..8e82fffdbf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceSubresources.java @@ -51,7 +51,7 @@ * CustomResourceSubresources defines the status and scale subresources for CustomResources. */ @ApiModel(description = "CustomResourceSubresources defines the status and scale subresources for CustomResources.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceSubresources { public static final String SERIALIZED_NAME_SCALE = "scale"; @SerializedName(SERIALIZED_NAME_SCALE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java index 5e6547155b..0feb95fcb7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1CustomResourceValidation.java @@ -51,7 +51,7 @@ * CustomResourceValidation is a list of validation methods for CustomResources. */ @ApiModel(description = "CustomResourceValidation is a list of validation methods for CustomResources.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1CustomResourceValidation { public static final String SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA = "openAPIV3Schema"; @SerializedName(SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java index 49ca3cab5a..e6402a5fa3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonEndpoint.java @@ -50,7 +50,7 @@ * DaemonEndpoint contains information about a single Daemon endpoint. */ @ApiModel(description = "DaemonEndpoint contains information about a single Daemon endpoint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DaemonEndpoint { public static final String SERIALIZED_NAME_PORT = "Port"; @SerializedName(SERIALIZED_NAME_PORT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java index 84f82e869e..f9684f86ab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSet.java @@ -53,7 +53,7 @@ * DaemonSet represents the configuration of a daemon set. */ @ApiModel(description = "DaemonSet represents the configuration of a daemon set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DaemonSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java index 5f9ef6a978..ed9294ced1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetCondition.java @@ -51,7 +51,7 @@ * DaemonSetCondition describes the state of a DaemonSet at a certain point. */ @ApiModel(description = "DaemonSetCondition describes the state of a DaemonSet at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DaemonSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java index 4da4c48bd7..a8a06290b5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetList.java @@ -54,7 +54,7 @@ * DaemonSetList is a collection of daemon sets. */ @ApiModel(description = "DaemonSetList is a collection of daemon sets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DaemonSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java index 1188c828a4..0b55663d9e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetSpec.java @@ -53,7 +53,7 @@ * DaemonSetSpec is the specification of a daemon set. */ @ApiModel(description = "DaemonSetSpec is the specification of a daemon set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DaemonSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java index 01ac03123e..d26b20daa3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetStatus.java @@ -53,7 +53,7 @@ * DaemonSetStatus represents the current status of a daemon set. */ @ApiModel(description = "DaemonSetStatus represents the current status of a daemon set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DaemonSetStatus { public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java index 1d29659fdd..50ff11a8e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DaemonSetUpdateStrategy.java @@ -51,7 +51,7 @@ * DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. */ @ApiModel(description = "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DaemonSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java index 1347e83c47..df63e2cec1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeleteOptions.java @@ -53,7 +53,7 @@ * DeleteOptions may be provided when deleting an API object. */ @ApiModel(description = "DeleteOptions may be provided when deleting an API object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeleteOptions { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java index 72baac6d0d..d39e010198 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Deployment.java @@ -53,7 +53,7 @@ * Deployment enables declarative updates for Pods and ReplicaSets. */ @ApiModel(description = "Deployment enables declarative updates for Pods and ReplicaSets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Deployment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java index a4ea09993a..e6cceed3f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentCondition.java @@ -51,7 +51,7 @@ * DeploymentCondition describes the state of a deployment at a certain point. */ @ApiModel(description = "DeploymentCondition describes the state of a deployment at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeploymentCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java index 2ad9e7549a..4b46143d2c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentList.java @@ -54,7 +54,7 @@ * DeploymentList is a list of Deployments. */ @ApiModel(description = "DeploymentList is a list of Deployments.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeploymentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java index 741c1d532a..6c80d0e16c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentSpec.java @@ -53,7 +53,7 @@ * DeploymentSpec is the specification of the desired behavior of the Deployment. */ @ApiModel(description = "DeploymentSpec is the specification of the desired behavior of the Deployment.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeploymentSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java index 10e3ada3ec..6122f986d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStatus.java @@ -53,7 +53,7 @@ * DeploymentStatus is the most recently observed status of the Deployment. */ @ApiModel(description = "DeploymentStatus is the most recently observed status of the Deployment.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeploymentStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java index 231d325a0b..c46a354e0c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeploymentStrategy.java @@ -51,7 +51,7 @@ * DeploymentStrategy describes how to replace existing pods with new ones. */ @ApiModel(description = "DeploymentStrategy describes how to replace existing pods with new ones.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeploymentStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java index 6568eb2b14..fc87ba73a7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Device.java @@ -22,6 +22,7 @@ import io.kubernetes.client.openapi.models.V1DeviceCapacity; import io.kubernetes.client.openapi.models.V1DeviceCounterConsumption; import io.kubernetes.client.openapi.models.V1DeviceTaint; +import io.kubernetes.client.openapi.models.V1NodeAllocatableResourceMapping; import io.kubernetes.client.openapi.models.V1NodeSelector; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -59,7 +60,7 @@ * Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. */ @ApiModel(description = "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Device { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -106,6 +107,11 @@ public class V1Device { @jakarta.annotation.Nonnull private String name; + public static final String SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCE_MAPPINGS = "nodeAllocatableResourceMappings"; + @SerializedName(SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCE_MAPPINGS) + @jakarta.annotation.Nullable + private Map nodeAllocatableResourceMappings = new HashMap<>(); + public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; @SerializedName(SERIALIZED_NAME_NODE_NAME) @jakarta.annotation.Nullable @@ -206,11 +212,11 @@ public V1Device addBindingConditionsItem(String bindingConditionsItem) { } /** - * BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. * @return bindingConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + @ApiModelProperty(value = "BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") public List getBindingConditions() { return bindingConditions; } @@ -234,11 +240,11 @@ public V1Device addBindingFailureConditionsItem(String bindingFailureConditionsI } /** - * BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. * @return bindingFailureConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + @ApiModelProperty(value = "BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") public List getBindingFailureConditions() { return bindingFailureConditions; } @@ -254,11 +260,11 @@ public V1Device bindsToNode(@jakarta.annotation.Nullable Boolean bindsToNode) { } /** - * BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. * @return bindsToNode */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + @ApiModelProperty(value = "BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") public Boolean getBindsToNode() { return bindsToNode; } @@ -344,6 +350,34 @@ public void setName(@jakarta.annotation.Nonnull String name) { } + public V1Device nodeAllocatableResourceMappings(@jakarta.annotation.Nullable Map nodeAllocatableResourceMappings) { + this.nodeAllocatableResourceMappings = nodeAllocatableResourceMappings; + return this; + } + + public V1Device putNodeAllocatableResourceMappingsItem(String key, V1NodeAllocatableResourceMapping nodeAllocatableResourceMappingsItem) { + if (this.nodeAllocatableResourceMappings == null) { + this.nodeAllocatableResourceMappings = new HashMap<>(); + } + this.nodeAllocatableResourceMappings.put(key, nodeAllocatableResourceMappingsItem); + return this; + } + + /** + * NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. + * @return nodeAllocatableResourceMappings + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.") + public Map getNodeAllocatableResourceMappings() { + return nodeAllocatableResourceMappings; + } + + public void setNodeAllocatableResourceMappings(@jakarta.annotation.Nullable Map nodeAllocatableResourceMappings) { + this.nodeAllocatableResourceMappings = nodeAllocatableResourceMappings; + } + + public V1Device nodeName(@jakarta.annotation.Nullable String nodeName) { this.nodeName = nodeName; return this; @@ -398,11 +432,11 @@ public V1Device addTaintsItem(V1DeviceTaint taintsItem) { } /** - * If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is a beta field and requires enabling the DRADeviceTaints feature gate. * @return taints */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + @ApiModelProperty(value = "If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is a beta field and requires enabling the DRADeviceTaints feature gate.") public List getTaints() { return taints; } @@ -431,6 +465,7 @@ public boolean equals(Object o) { Objects.equals(this.capacity, v1Device.capacity) && Objects.equals(this.consumesCounters, v1Device.consumesCounters) && Objects.equals(this.name, v1Device.name) && + Objects.equals(this.nodeAllocatableResourceMappings, v1Device.nodeAllocatableResourceMappings) && Objects.equals(this.nodeName, v1Device.nodeName) && Objects.equals(this.nodeSelector, v1Device.nodeSelector) && Objects.equals(this.taints, v1Device.taints); @@ -438,7 +473,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeName, nodeSelector, taints); + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeAllocatableResourceMappings, nodeName, nodeSelector, taints); } @Override @@ -454,6 +489,7 @@ public String toString() { sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); sb.append(" consumesCounters: ").append(toIndentedString(consumesCounters)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" nodeAllocatableResourceMappings: ").append(toIndentedString(nodeAllocatableResourceMappings)).append("\n"); sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); sb.append(" taints: ").append(toIndentedString(taints)).append("\n"); @@ -478,7 +514,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeName", "nodeSelector", "taints")); + openapiFields = new HashSet(Arrays.asList("allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeAllocatableResourceMappings", "nodeName", "nodeSelector", "taints")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("name")); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java index 4c4acc716c..44b0f8741c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationConfiguration.java @@ -53,7 +53,7 @@ * DeviceAllocationConfiguration gets embedded in an AllocationResult. */ @ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceAllocationConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java index aa8f2de063..2a63f56fb3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAllocationResult.java @@ -54,7 +54,7 @@ * DeviceAllocationResult is the result of allocating devices. */ @ApiModel(description = "DeviceAllocationResult is the result of allocating devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceAllocationResult { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java index f228020ee5..b281a780a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceAttribute.java @@ -21,7 +21,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; +import java.util.List; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -50,28 +52,48 @@ * DeviceAttribute must have exactly one field set. */ @ApiModel(description = "DeviceAttribute must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceAttribute { public static final String SERIALIZED_NAME_BOOL = "bool"; @SerializedName(SERIALIZED_NAME_BOOL) @jakarta.annotation.Nullable private Boolean bool; + public static final String SERIALIZED_NAME_BOOLS = "bools"; + @SerializedName(SERIALIZED_NAME_BOOLS) + @jakarta.annotation.Nullable + private List bools = new ArrayList<>(); + public static final String SERIALIZED_NAME_INT = "int"; @SerializedName(SERIALIZED_NAME_INT) @jakarta.annotation.Nullable private Long _int; + public static final String SERIALIZED_NAME_INTS = "ints"; + @SerializedName(SERIALIZED_NAME_INTS) + @jakarta.annotation.Nullable + private List ints = new ArrayList<>(); + public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) @jakarta.annotation.Nullable private String string; + public static final String SERIALIZED_NAME_STRINGS = "strings"; + @SerializedName(SERIALIZED_NAME_STRINGS) + @jakarta.annotation.Nullable + private List strings = new ArrayList<>(); + public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) @jakarta.annotation.Nullable private String version; + public static final String SERIALIZED_NAME_VERSIONS = "versions"; + @SerializedName(SERIALIZED_NAME_VERSIONS) + @jakarta.annotation.Nullable + private List versions = new ArrayList<>(); + public V1DeviceAttribute() { } @@ -95,6 +117,34 @@ public void setBool(@jakarta.annotation.Nullable Boolean bool) { } + public V1DeviceAttribute bools(@jakarta.annotation.Nullable List bools) { + this.bools = bools; + return this; + } + + public V1DeviceAttribute addBoolsItem(Boolean boolsItem) { + if (this.bools == null) { + this.bools = new ArrayList<>(); + } + this.bools.add(boolsItem); + return this; + } + + /** + * BoolValues is a non-empty list of true/false values. + * @return bools + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "BoolValues is a non-empty list of true/false values.") + public List getBools() { + return bools; + } + + public void setBools(@jakarta.annotation.Nullable List bools) { + this.bools = bools; + } + + public V1DeviceAttribute _int(@jakarta.annotation.Nullable Long _int) { this._int = _int; return this; @@ -115,6 +165,34 @@ public void setInt(@jakarta.annotation.Nullable Long _int) { } + public V1DeviceAttribute ints(@jakarta.annotation.Nullable List ints) { + this.ints = ints; + return this; + } + + public V1DeviceAttribute addIntsItem(Long intsItem) { + if (this.ints == null) { + this.ints = new ArrayList<>(); + } + this.ints.add(intsItem); + return this; + } + + /** + * IntValues is a non-empty list of numbers. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + * @return ints + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "IntValues is a non-empty list of numbers. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.") + public List getInts() { + return ints; + } + + public void setInts(@jakarta.annotation.Nullable List ints) { + this.ints = ints; + } + + public V1DeviceAttribute string(@jakarta.annotation.Nullable String string) { this.string = string; return this; @@ -135,6 +213,34 @@ public void setString(@jakarta.annotation.Nullable String string) { } + public V1DeviceAttribute strings(@jakarta.annotation.Nullable List strings) { + this.strings = strings; + return this; + } + + public V1DeviceAttribute addStringsItem(String stringsItem) { + if (this.strings == null) { + this.strings = new ArrayList<>(); + } + this.strings.add(stringsItem); + return this; + } + + /** + * StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + * @return strings + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.") + public List getStrings() { + return strings; + } + + public void setStrings(@jakarta.annotation.Nullable List strings) { + this.strings = strings; + } + + public V1DeviceAttribute version(@jakarta.annotation.Nullable String version) { this.version = version; return this; @@ -155,6 +261,34 @@ public void setVersion(@jakarta.annotation.Nullable String version) { } + public V1DeviceAttribute versions(@jakarta.annotation.Nullable List versions) { + this.versions = versions; + return this; + } + + public V1DeviceAttribute addVersionsItem(String versionsItem) { + if (this.versions == null) { + this.versions = new ArrayList<>(); + } + this.versions.add(versionsItem); + return this; + } + + /** + * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + * @return versions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.") + public List getVersions() { + return versions; + } + + public void setVersions(@jakarta.annotation.Nullable List versions) { + this.versions = versions; + } + + @Override public boolean equals(Object o) { @@ -166,14 +300,18 @@ public boolean equals(Object o) { } V1DeviceAttribute v1DeviceAttribute = (V1DeviceAttribute) o; return Objects.equals(this.bool, v1DeviceAttribute.bool) && + Objects.equals(this.bools, v1DeviceAttribute.bools) && Objects.equals(this._int, v1DeviceAttribute._int) && + Objects.equals(this.ints, v1DeviceAttribute.ints) && Objects.equals(this.string, v1DeviceAttribute.string) && - Objects.equals(this.version, v1DeviceAttribute.version); + Objects.equals(this.strings, v1DeviceAttribute.strings) && + Objects.equals(this.version, v1DeviceAttribute.version) && + Objects.equals(this.versions, v1DeviceAttribute.versions); } @Override public int hashCode() { - return Objects.hash(bool, _int, string, version); + return Objects.hash(bool, bools, _int, ints, string, strings, version, versions); } @Override @@ -181,9 +319,13 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DeviceAttribute {\n"); sb.append(" bool: ").append(toIndentedString(bool)).append("\n"); + sb.append(" bools: ").append(toIndentedString(bools)).append("\n"); sb.append(" _int: ").append(toIndentedString(_int)).append("\n"); + sb.append(" ints: ").append(toIndentedString(ints)).append("\n"); sb.append(" string: ").append(toIndentedString(string)).append("\n"); + sb.append(" strings: ").append(toIndentedString(strings)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" versions: ").append(toIndentedString(versions)).append("\n"); sb.append("}"); return sb.toString(); } @@ -205,7 +347,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("bool", "int", "string", "version")); + openapiFields = new HashSet(Arrays.asList("bool", "bools", "int", "ints", "string", "strings", "version", "versions")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -232,12 +374,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("bools") != null && !jsonObj.get("bools").isJsonNull() && !jsonObj.get("bools").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `bools` to be an array in the JSON string but got `%s`", jsonObj.get("bools").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("ints") != null && !jsonObj.get("ints").isJsonNull() && !jsonObj.get("ints").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `ints` to be an array in the JSON string but got `%s`", jsonObj.get("ints").toString())); + } if ((jsonObj.get("string") != null && !jsonObj.get("string").isJsonNull()) && !jsonObj.get("string").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `string` to be a primitive type in the JSON string but got `%s`", jsonObj.get("string").toString())); } + // ensure the optional json data is an array if present + if (jsonObj.get("strings") != null && !jsonObj.get("strings").isJsonNull() && !jsonObj.get("strings").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `strings` to be an array in the JSON string but got `%s`", jsonObj.get("strings").toString())); + } if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } + // ensure the optional json data is an array if present + if (jsonObj.get("versions") != null && !jsonObj.get("versions").isJsonNull() && !jsonObj.get("versions").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `versions` to be an array in the JSON string but got `%s`", jsonObj.get("versions").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java index f1e1a3aa52..21d27d9d71 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCapacity.java @@ -52,7 +52,7 @@ * DeviceCapacity describes a quantity associated with a device. */ @ApiModel(description = "DeviceCapacity describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceCapacity { public static final String SERIALIZED_NAME_REQUEST_POLICY = "requestPolicy"; @SerializedName(SERIALIZED_NAME_REQUEST_POLICY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java index b2bed4da4d..22b862c726 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaim.java @@ -55,7 +55,7 @@ * DeviceClaim defines how to request devices with a ResourceClaim. */ @ApiModel(description = "DeviceClaim defines how to request devices with a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceClaim { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java index f784bd60a0..8f12b05836 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClaimConfiguration.java @@ -53,7 +53,7 @@ * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. */ @ApiModel(description = "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceClaimConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java index 7dfe4bfccc..cf07c751ae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClass.java @@ -49,10 +49,10 @@ import io.kubernetes.client.openapi.JSON; /** - * DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + * DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. */ -@ApiModel(description = "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@ApiModel(description = "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java index 389b5918cc..85902a8f6f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassConfiguration.java @@ -51,7 +51,7 @@ * DeviceClassConfiguration is used in DeviceClass. */ @ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceClassConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java index e5c7ad6d3d..b98eab7bcb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassList.java @@ -54,7 +54,7 @@ * DeviceClassList is a collection of classes. */ @ApiModel(description = "DeviceClassList is a collection of classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java index a45fcd8237..139eb16986 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceClassSpec.java @@ -54,7 +54,7 @@ * DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. */ @ApiModel(description = "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -108,11 +108,11 @@ public V1DeviceClassSpec extendedResourceName(@jakarta.annotation.Nullable Strin } /** - * ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. + * ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field. * @return extendedResourceName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field.") + @ApiModelProperty(value = "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field.") public String getExtendedResourceName() { return extendedResourceName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java index c817dcc037..238cc91555 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceConstraint.java @@ -52,7 +52,7 @@ * DeviceConstraint must have exactly one field set besides Requests. */ @ApiModel(description = "DeviceConstraint must have exactly one field set besides Requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceConstraint { public static final String SERIALIZED_NAME_DISTINCT_ATTRIBUTE = "distinctAttribute"; @SerializedName(SERIALIZED_NAME_DISTINCT_ATTRIBUTE) @@ -78,11 +78,11 @@ public V1DeviceConstraint distinctAttribute(@jakarta.annotation.Nullable String } /** - * DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. + * DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. * @return distinctAttribute */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs.") + @ApiModelProperty(value = "DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs.") public String getDistinctAttribute() { return distinctAttribute; } @@ -98,11 +98,11 @@ public V1DeviceConstraint matchAttribute(@jakarta.annotation.Nullable String mat } /** - * MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. + * MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as single-element lists for backward compatibility. Must include the domain qualifier. * @return matchAttribute */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier.") + @ApiModelProperty(value = "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as single-element lists for backward compatibility. Must include the domain qualifier.") public String getMatchAttribute() { return matchAttribute; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java index d80c76c9a9..005ba7b189 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceCounterConsumption.java @@ -53,7 +53,7 @@ * DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. */ @ApiModel(description = "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceCounterConsumption { public static final String SERIALIZED_NAME_COUNTER_SET = "counterSet"; @SerializedName(SERIALIZED_NAME_COUNTER_SET) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java index 914ee18702..a3c84298ce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequest.java @@ -54,7 +54,7 @@ * DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. With FirstAvailable it is also possible to provide a prioritized list of requests. */ @ApiModel(description = "DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. With FirstAvailable it is also possible to provide a prioritized list of requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceRequest { public static final String SERIALIZED_NAME_EXACTLY = "exactly"; @SerializedName(SERIALIZED_NAME_EXACTLY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java index bf7bccea36..9d0f4f8729 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceRequestAllocationResult.java @@ -56,7 +56,7 @@ * DeviceRequestAllocationResult contains the allocation result for one request. */ @ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -117,11 +117,11 @@ public V1DeviceRequestAllocationResult adminAccess(@jakarta.annotation.Nullable } /** - * AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + * AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. * @return adminAccess */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.") + @ApiModelProperty(value = "AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.") public Boolean getAdminAccess() { return adminAccess; } @@ -145,11 +145,11 @@ public V1DeviceRequestAllocationResult addBindingConditionsItem(String bindingCo } /** - * BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. * @return bindingConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + @ApiModelProperty(value = "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") public List getBindingConditions() { return bindingConditions; } @@ -173,11 +173,11 @@ public V1DeviceRequestAllocationResult addBindingFailureConditionsItem(String bi } /** - * BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. * @return bindingFailureConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + @ApiModelProperty(value = "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") public List getBindingFailureConditions() { return bindingFailureConditions; } @@ -329,11 +329,11 @@ public V1DeviceRequestAllocationResult addTolerationsItem(V1DeviceToleration tol } /** - * A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. * @return tolerations */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + @ApiModelProperty(value = "A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate.") public List getTolerations() { return tolerations; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java index a410137222..cf71a5ca0c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSelector.java @@ -51,7 +51,7 @@ * DeviceSelector must have exactly one field set. */ @ApiModel(description = "DeviceSelector must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceSelector { public static final String SERIALIZED_NAME_CEL = "cel"; @SerializedName(SERIALIZED_NAME_CEL) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java index d13d611891..869d3ca74e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceSubRequest.java @@ -55,7 +55,7 @@ * DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device. */ @ApiModel(description = "DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceSubRequest { public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) @@ -237,11 +237,11 @@ public V1DeviceSubRequest addTolerationsItem(V1DeviceToleration tolerationsItem) } /** - * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. * @return tolerations */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate.") public List getTolerations() { return tolerations; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java index af69bbb0e5..40d815deb9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceTaint.java @@ -51,7 +51,7 @@ * The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. */ @ApiModel(description = "The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceTaint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -122,11 +122,11 @@ public V1DeviceTaint timeAdded(@jakarta.annotation.Nullable OffsetDateTime timeA } /** - * TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. + * TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). * @return timeAdded */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.") + @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule).") public OffsetDateTime getTimeAdded() { return timeAdded; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java index 8c7255b6f7..e3273b3f42 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DeviceToleration.java @@ -50,7 +50,7 @@ * The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. */ @ApiModel(description = "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DeviceToleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java index 98d21c065e..7ede632253 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIProjection.java @@ -53,7 +53,7 @@ * Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. */ @ApiModel(description = "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DownwardAPIProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java index fde5a94686..93e84264dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeFile.java @@ -52,7 +52,7 @@ * DownwardAPIVolumeFile represents information to create the file containing the pod field */ @ApiModel(description = "DownwardAPIVolumeFile represents information to create the file containing the pod field") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DownwardAPIVolumeFile { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java index d5040f93f0..dcc872caad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1DownwardAPIVolumeSource.java @@ -53,7 +53,7 @@ * DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1DownwardAPIVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java index 27a92b830a..843172ff79 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EmptyDirVolumeSource.java @@ -51,7 +51,7 @@ * Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EmptyDirVolumeSource { public static final String SERIALIZED_NAME_MEDIUM = "medium"; @SerializedName(SERIALIZED_NAME_MEDIUM) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java index a8395a0ff0..09516f331d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoint.java @@ -57,7 +57,7 @@ * Endpoint represents a single logical \"backend\" implementing a service. */ @ApiModel(description = "Endpoint represents a single logical \"backend\" implementing a service.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Endpoint { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java index 8ae1ae54c8..b6aaf7b18e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointAddress.java @@ -51,7 +51,7 @@ * EndpointAddress is a tuple that describes single IP address. Deprecated: This API is deprecated in v1.33+. */ @ApiModel(description = "EndpointAddress is a tuple that describes single IP address. Deprecated: This API is deprecated in v1.33+.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EndpointAddress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java index 85ec1d41a6..c905ac9a43 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointConditions.java @@ -50,7 +50,7 @@ * EndpointConditions represents the current condition of an endpoint. */ @ApiModel(description = "EndpointConditions represents the current condition of an endpoint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EndpointConditions { public static final String SERIALIZED_NAME_READY = "ready"; @SerializedName(SERIALIZED_NAME_READY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java index 971acb8e96..c7268348fd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointHints.java @@ -54,7 +54,7 @@ * EndpointHints provides hints describing how an endpoint should be consumed. */ @ApiModel(description = "EndpointHints provides hints describing how an endpoint should be consumed.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EndpointHints { public static final String SERIALIZED_NAME_FOR_NODES = "forNodes"; @SerializedName(SERIALIZED_NAME_FOR_NODES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java index 9d1d6652d5..19a8903b86 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSlice.java @@ -55,7 +55,7 @@ * EndpointSlice represents a set of service endpoints. Most EndpointSlices are created by the EndpointSlice controller to represent the Pods selected by Service objects. For a given service there may be multiple EndpointSlice objects which must be joined to produce the full set of endpoints; you can find all of the slices for a given service by listing EndpointSlices in the service's namespace whose `kubernetes.io/service-name` label contains the service's name. */ @ApiModel(description = "EndpointSlice represents a set of service endpoints. Most EndpointSlices are created by the EndpointSlice controller to represent the Pods selected by Service objects. For a given service there may be multiple EndpointSlice objects which must be joined to produce the full set of endpoints; you can find all of the slices for a given service by listing EndpointSlices in the service's namespace whose `kubernetes.io/service-name` label contains the service's name.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EndpointSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ADDRESS_TYPE = "addressType"; @SerializedName(SERIALIZED_NAME_ADDRESS_TYPE) @@ -69,7 +69,7 @@ public class V1EndpointSlice implements io.kubernetes.client.common.KubernetesOb public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private List endpoints = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @@ -130,7 +130,7 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1EndpointSlice endpoints(@jakarta.annotation.Nonnull List endpoints) { + public V1EndpointSlice endpoints(@jakarta.annotation.Nullable List endpoints) { this.endpoints = endpoints; return this; } @@ -147,13 +147,13 @@ public V1EndpointSlice addEndpointsItem(V1Endpoint endpointsItem) { * endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints. * @return endpoints */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "endpoints is a list of unique endpoints in this slice. Each slice may include a maximum of 1000 endpoints.") public List getEndpoints() { return endpoints; } - public void setEndpoints(@jakarta.annotation.Nonnull List endpoints) { + public void setEndpoints(@jakarta.annotation.Nullable List endpoints) { this.endpoints = endpoints; } @@ -283,7 +283,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("addressType", "apiVersion", "endpoints", "kind", "metadata", "ports")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("addressType", "endpoints")); + openapiRequiredFields = new HashSet(Arrays.asList("addressType")); } /** @@ -320,16 +320,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); } - // ensure the json data is an array - if (!jsonObj.get("endpoints").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `endpoints` to be an array in the JSON string but got `%s`", jsonObj.get("endpoints").toString())); - } + if (jsonObj.get("endpoints") != null && !jsonObj.get("endpoints").isJsonNull()) { + JsonArray jsonArrayendpoints = jsonObj.getAsJsonArray("endpoints"); + if (jsonArrayendpoints != null) { + // ensure the json data is an array + if (!jsonObj.get("endpoints").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `endpoints` to be an array in the JSON string but got `%s`", jsonObj.get("endpoints").toString())); + } - JsonArray jsonArrayendpoints = jsonObj.getAsJsonArray("endpoints"); - // validate the required field `endpoints` (array) - for (int i = 0; i < jsonArrayendpoints.size(); i++) { - V1Endpoint.validateJsonElement(jsonArrayendpoints.get(i)); - }; + // validate the optional field `endpoints` (array) + for (int i = 0; i < jsonArrayendpoints.size(); i++) { + V1Endpoint.validateJsonElement(jsonArrayendpoints.get(i)); + }; + } + } if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java index 7ac7e37cc7..d50c95d0d7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSliceList.java @@ -54,7 +54,7 @@ * EndpointSliceList represents a list of endpoint slices */ @ApiModel(description = "EndpointSliceList represents a list of endpoint slices") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EndpointSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java index 53037dcd47..fa379446da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointSubset.java @@ -54,7 +54,7 @@ * EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ] Deprecated: This API is deprecated in v1.33+. */ @ApiModel(description = "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ] Deprecated: This API is deprecated in v1.33+.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EndpointSubset { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java index 64f440b56a..54b6c90e36 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Endpoints.java @@ -54,7 +54,7 @@ * Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ] Endpoints is a legacy API and does not contain information about all Service features. Use discoveryv1.EndpointSlice for complete information about Service endpoints. Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice. */ @ApiModel(description = "Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ] Endpoints is a legacy API and does not contain information about all Service features. Use discoveryv1.EndpointSlice for complete information about Service endpoints. Deprecated: This API is deprecated in v1.33+. Use discoveryv1.EndpointSlice.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Endpoints implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java index 3124421135..2d50cd9ff7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EndpointsList.java @@ -54,7 +54,7 @@ * EndpointsList is a list of endpoints. Deprecated: This API is deprecated in v1.33+. */ @ApiModel(description = "EndpointsList is a list of endpoints. Deprecated: This API is deprecated in v1.33+.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EndpointsList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java index bd30ae7c4a..846b63640e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvFromSource.java @@ -52,7 +52,7 @@ * EnvFromSource represents the source of a set of ConfigMaps or Secrets */ @ApiModel(description = "EnvFromSource represents the source of a set of ConfigMaps or Secrets") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EnvFromSource { public static final String SERIALIZED_NAME_CONFIG_MAP_REF = "configMapRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_REF) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java index 22a5ab39e2..d842d2f492 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVar.java @@ -51,7 +51,7 @@ * EnvVar represents an environment variable present in a Container. */ @ApiModel(description = "EnvVar represents an environment variable present in a Container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EnvVar { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java index 5b5698878a..9b24dd8eba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EnvVarSource.java @@ -55,7 +55,7 @@ * EnvVarSource represents a source for the value of an EnvVar. */ @ApiModel(description = "EnvVarSource represents a source for the value of an EnvVar.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EnvVarSource { public static final String SERIALIZED_NAME_CONFIG_MAP_KEY_REF = "configMapKeyRef"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP_KEY_REF) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java index 4d55f81836..7b0f150b43 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralContainer.java @@ -63,7 +63,7 @@ * An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted. */ @ApiModel(description = "An EphemeralContainer is a temporary container that you may add to an existing Pod for user-initiated activities such as debugging. Ephemeral containers have no resource or scheduling guarantees, and they will not be restarted when they exit or when a Pod is removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the Pod to exceed its resource allocation. To add an ephemeral container, use the ephemeralcontainers subresource of an existing Pod. Ephemeral containers may not be removed or restarted.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EphemeralContainer { public static final String SERIALIZED_NAME_ARGS = "args"; @SerializedName(SERIALIZED_NAME_ARGS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java index 7b2312afa8..95730d4681 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EphemeralVolumeSource.java @@ -51,7 +51,7 @@ * Represents an ephemeral volume that is handled by a normal storage driver. */ @ApiModel(description = "Represents an ephemeral volume that is handled by a normal storage driver.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EphemeralVolumeSource { public static final String SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE = "volumeClaimTemplate"; @SerializedName(SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java index e377983c9b..53f0747b4f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1EventSource.java @@ -50,7 +50,7 @@ * EventSource contains information for an event. */ @ApiModel(description = "EventSource contains information for an event.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1EventSource { public static final String SERIALIZED_NAME_COMPONENT = "component"; @SerializedName(SERIALIZED_NAME_COMPONENT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java index 29a1fa9d23..41b618308b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Eviction.java @@ -52,7 +52,7 @@ * Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods/<pod name>/evictions. */ @ApiModel(description = "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Eviction implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java index b905f1b262..4c5ce9259a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExactDeviceRequest.java @@ -55,7 +55,7 @@ * ExactDeviceRequest is a request for one or more identical devices. */ @ApiModel(description = "ExactDeviceRequest is a request for one or more identical devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ExactDeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -101,11 +101,11 @@ public V1ExactDeviceRequest adminAccess(@jakarta.annotation.Nullable Boolean adm } /** - * AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. + * AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. * @return adminAccess */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.") + @ApiModelProperty(value = "AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.") public Boolean getAdminAccess() { return adminAccess; } @@ -237,11 +237,11 @@ public V1ExactDeviceRequest addTolerationsItem(V1DeviceToleration tolerationsIte } /** - * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. * @return tolerations */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate.") public List getTolerations() { return tolerations; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java index 95d42eee9d..90bad47396 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExecAction.java @@ -52,7 +52,7 @@ * ExecAction describes a \"run in container\" action. */ @ApiModel(description = "ExecAction describes a \"run in container\" action.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ExecAction { public static final String SERIALIZED_NAME_COMMAND = "command"; @SerializedName(SERIALIZED_NAME_COMMAND) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java index fc38b767be..240345c471 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExemptPriorityLevelConfiguration.java @@ -50,7 +50,7 @@ * ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`. */ @ApiModel(description = "ExemptPriorityLevelConfiguration describes the configurable aspects of the handling of exempt requests. In the mandatory exempt configuration object the values in the fields here can be modified by authorized users, unlike the rest of the `spec`.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ExemptPriorityLevelConfiguration { public static final String SERIALIZED_NAME_LENDABLE_PERCENT = "lendablePercent"; @SerializedName(SERIALIZED_NAME_LENDABLE_PERCENT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java index dedabc66e9..d0a16f3e72 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExpressionWarning.java @@ -50,7 +50,7 @@ * ExpressionWarning is a warning information that targets a specific expression. */ @ApiModel(description = "ExpressionWarning is a warning information that targets a specific expression.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ExpressionWarning { public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; @SerializedName(SERIALIZED_NAME_FIELD_REF) @@ -71,11 +71,11 @@ public V1ExpressionWarning fieldRef(@jakarta.annotation.Nonnull String fieldRef) } /** - * The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\" + * fieldRef is the path to the field that refers to the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\" * @return fieldRef */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"") + @ApiModelProperty(required = true, value = "fieldRef is the path to the field that refers to the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"") public String getFieldRef() { return fieldRef; } @@ -91,11 +91,11 @@ public V1ExpressionWarning warning(@jakarta.annotation.Nonnull String warning) { } /** - * The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. + * warning contains the content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. * @return warning */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.") + @ApiModelProperty(required = true, value = "warning contains the content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.") public String getWarning() { return warning; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java index a65340971b..66dedac01e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ExternalDocumentation.java @@ -50,7 +50,7 @@ * ExternalDocumentation allows referencing an external resource for extended documentation. */ @ApiModel(description = "ExternalDocumentation allows referencing an external resource for extended documentation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ExternalDocumentation { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java index bab9daae54..cfbdceb6f1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FCVolumeSource.java @@ -52,7 +52,7 @@ * Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FCVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java index 2c8f930e23..2eefb7fb5c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorAttributes.java @@ -53,7 +53,7 @@ * FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid. */ @ApiModel(description = "FieldSelectorAttributes indicates a field limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FieldSelectorAttributes { public static final String SERIALIZED_NAME_RAW_SELECTOR = "rawSelector"; @SerializedName(SERIALIZED_NAME_RAW_SELECTOR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java index 0fccb8c718..955885b005 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FieldSelectorRequirement.java @@ -52,7 +52,7 @@ * FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values. */ @ApiModel(description = "FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FieldSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java index db80c78cbe..814ac3c0f0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FileKeySelector.java @@ -50,7 +50,7 @@ * FileKeySelector selects a key of the env file. */ @ApiModel(description = "FileKeySelector selects a key of the env file.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FileKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java index 5b856e6638..d7070e38ff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexPersistentVolumeSource.java @@ -53,7 +53,7 @@ * FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. */ @ApiModel(description = "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlexPersistentVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java index 8cfd84def2..19632a084c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlexVolumeSource.java @@ -53,7 +53,7 @@ * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. */ @ApiModel(description = "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlexVolumeSource { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java index 105be63402..9f852662c8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlockerVolumeSource.java @@ -50,7 +50,7 @@ * Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlockerVolumeSource { public static final String SERIALIZED_NAME_DATASET_NAME = "datasetName"; @SerializedName(SERIALIZED_NAME_DATASET_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java index 21f8eb19c3..372c054186 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowDistinguisherMethod.java @@ -50,7 +50,7 @@ * FlowDistinguisherMethod specifies the method of a flow distinguisher. */ @ApiModel(description = "FlowDistinguisherMethod specifies the method of a flow distinguisher.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlowDistinguisherMethod { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java index 5d4a29cfdd..0dd2869db9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchema.java @@ -53,7 +53,7 @@ * 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\". */ @ApiModel(description = "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\".") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlowSchema implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java index fc3cbc4731..9ea55e3121 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaCondition.java @@ -51,7 +51,7 @@ * FlowSchemaCondition describes conditions for a FlowSchema. */ @ApiModel(description = "FlowSchemaCondition describes conditions for a FlowSchema.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlowSchemaCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java index 9762eccd89..fd8efb6499 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaList.java @@ -54,7 +54,7 @@ * FlowSchemaList is a list of FlowSchema objects. */ @ApiModel(description = "FlowSchemaList is a list of FlowSchema objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlowSchemaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java index e2684f47e0..a095503c86 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaSpec.java @@ -55,7 +55,7 @@ * FlowSchemaSpec describes how the FlowSchema's specification looks like. */ @ApiModel(description = "FlowSchemaSpec describes how the FlowSchema's specification looks like.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlowSchemaSpec { public static final String SERIALIZED_NAME_DISTINGUISHER_METHOD = "distinguisherMethod"; @SerializedName(SERIALIZED_NAME_DISTINGUISHER_METHOD) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java index 0447b1a261..b2f1a96d7a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1FlowSchemaStatus.java @@ -53,7 +53,7 @@ * FlowSchemaStatus represents the current state of a FlowSchema. */ @ApiModel(description = "FlowSchemaStatus represents the current state of a FlowSchema.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1FlowSchemaStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java index 3ecd9686c4..751c6111ba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForNode.java @@ -50,7 +50,7 @@ * ForNode provides information about which nodes should consume this endpoint. */ @ApiModel(description = "ForNode provides information about which nodes should consume this endpoint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ForNode { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java index 5b64b081d4..12b80a66b8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ForZone.java @@ -50,7 +50,7 @@ * ForZone provides information about which zones should consume this endpoint. */ @ApiModel(description = "ForZone provides information about which zones should consume this endpoint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ForZone { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java index d0640e6bea..e33d8b1e55 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GCEPersistentDiskVolumeSource.java @@ -50,7 +50,7 @@ * Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GCEPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java index 9da112544f..9ae348a3b9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GRPCAction.java @@ -50,7 +50,7 @@ * GRPCAction specifies an action involving a GRPC service. */ @ApiModel(description = "GRPCAction specifies an action involving a GRPC service.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GRPCAction { public static final String SERIALIZED_NAME_PORT = "port"; @SerializedName(SERIALIZED_NAME_PORT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java index 2fa8bf93c5..9f3145fcdf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GitRepoVolumeSource.java @@ -50,7 +50,7 @@ * Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. */ @ApiModel(description = "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GitRepoVolumeSource { public static final String SERIALIZED_NAME_DIRECTORY = "directory"; @SerializedName(SERIALIZED_NAME_DIRECTORY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java index bbcb409808..4aa28d8bb0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsPersistentVolumeSource.java @@ -50,7 +50,7 @@ * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GlusterfsPersistentVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java index 2115f5d868..66300e9e3e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GlusterfsVolumeSource.java @@ -50,7 +50,7 @@ * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GlusterfsVolumeSource { public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; @SerializedName(SERIALIZED_NAME_ENDPOINTS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupResource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupResource.java index 458661b63d..f942b31e26 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupResource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupResource.java @@ -50,7 +50,7 @@ * GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types */ @ApiModel(description = "GroupResource specifies a Group and a Resource, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GroupResource { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java index eab77ea0c2..1ad2433d7f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupSubject.java @@ -50,7 +50,7 @@ * GroupSubject holds detailed information for group-kind subject. */ @ApiModel(description = "GroupSubject holds detailed information for group-kind subject.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GroupSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java index c86f44306e..90bae3c084 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionForDiscovery.java @@ -50,7 +50,7 @@ * GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility. */ @ApiModel(description = "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1GroupVersionForDiscovery { public static final String SERIALIZED_NAME_GROUP_VERSION = "groupVersion"; @SerializedName(SERIALIZED_NAME_GROUP_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKind.java new file mode 100644 index 0000000000..19591d3643 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1GroupVersionKind.java @@ -0,0 +1,274 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * GroupVersionKind unambiguously identifies a kind. + */ +@ApiModel(description = "GroupVersionKind unambiguously identifies a kind.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1GroupVersionKind { + public static final String SERIALIZED_NAME_GROUP = "group"; + @SerializedName(SERIALIZED_NAME_GROUP) + @jakarta.annotation.Nonnull + private String group; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nonnull + private String kind; + + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + @jakarta.annotation.Nonnull + private String version; + + public V1GroupVersionKind() { + } + + public V1GroupVersionKind group(@jakarta.annotation.Nonnull String group) { + this.group = group; + return this; + } + + /** + * group is the group part of the GroupVersionKind. + * @return group + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "group is the group part of the GroupVersionKind.") + public String getGroup() { + return group; + } + + public void setGroup(@jakarta.annotation.Nonnull String group) { + this.group = group; + } + + + public V1GroupVersionKind kind(@jakarta.annotation.Nonnull String kind) { + this.kind = kind; + return this; + } + + /** + * kind is the kind part of the GroupVersionKind. + * @return kind + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "kind is the kind part of the GroupVersionKind.") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nonnull String kind) { + this.kind = kind; + } + + + public V1GroupVersionKind version(@jakarta.annotation.Nonnull String version) { + this.version = version; + return this; + } + + /** + * version is the version part of the GroupVersionKind. + * @return version + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "version is the version part of the GroupVersionKind.") + public String getVersion() { + return version; + } + + public void setVersion(@jakarta.annotation.Nonnull String version) { + this.version = version; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1GroupVersionKind v1GroupVersionKind = (V1GroupVersionKind) o; + return Objects.equals(this.group, v1GroupVersionKind.group) && + Objects.equals(this.kind, v1GroupVersionKind.kind) && + Objects.equals(this.version, v1GroupVersionKind.version); + } + + @Override + public int hashCode() { + return Objects.hash(group, kind, version); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1GroupVersionKind {\n"); + sb.append(" group: ").append(toIndentedString(group)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("group", "kind", "version")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("group", "kind", "version")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1GroupVersionKind + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1GroupVersionKind.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1GroupVersionKind is not found in the empty JSON string", V1GroupVersionKind.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1GroupVersionKind.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1GroupVersionKind` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1GroupVersionKind.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("group").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `group` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group").toString())); + } + if (!jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + if (!jsonObj.get("version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1GroupVersionKind.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1GroupVersionKind' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1GroupVersionKind.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1GroupVersionKind value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1GroupVersionKind read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1GroupVersionKind given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1GroupVersionKind + * @throws IOException if the JSON string is invalid with respect to V1GroupVersionKind + */ + public static V1GroupVersionKind fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1GroupVersionKind.class); + } + + /** + * Convert an instance of V1GroupVersionKind to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java index d346dfe57a..de580d2ba8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPGetAction.java @@ -54,7 +54,7 @@ * HTTPGetAction describes an action based on HTTP Get requests. */ @ApiModel(description = "HTTPGetAction describes an action based on HTTP Get requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HTTPGetAction { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java index 7e6f8dd14b..242b278699 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPHeader.java @@ -50,7 +50,7 @@ * HTTPHeader describes a custom header to be used in HTTP probes */ @ApiModel(description = "HTTPHeader describes a custom header to be used in HTTP probes") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HTTPHeader { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java index 7d08fbc20a..a308057b04 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressPath.java @@ -51,7 +51,7 @@ * HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend. */ @ApiModel(description = "HTTPIngressPath associates a path with a backend. Incoming urls matching the path are forwarded to the backend.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HTTPIngressPath { public static final String SERIALIZED_NAME_BACKEND = "backend"; @SerializedName(SERIALIZED_NAME_BACKEND) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java index aaa31b9c71..4f0f9ecceb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HTTPIngressRuleValue.java @@ -53,7 +53,7 @@ * HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart> -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. */ @ApiModel(description = "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HTTPIngressRuleValue { public static final String SERIALIZED_NAME_PATHS = "paths"; @SerializedName(SERIALIZED_NAME_PATHS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java index ac21e1f0a0..ee0d6947ee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscaler.java @@ -53,7 +53,7 @@ * configuration of a horizontal pod autoscaler. */ @ApiModel(description = "configuration of a horizontal pod autoscaler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -72,7 +72,7 @@ public class V1HorizontalPodAutoscaler implements io.kubernetes.client.common.Ku public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V1HorizontalPodAutoscalerSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1HorizontalPodAutoscaler spec(@jakarta.annotation.Nullable V1HorizontalPodAutoscalerSpec spec) { + public V1HorizontalPodAutoscaler spec(@jakarta.annotation.Nonnull V1HorizontalPodAutoscalerSpec spec) { this.spec = spec; return this; } @@ -152,13 +152,13 @@ public V1HorizontalPodAutoscaler spec(@jakarta.annotation.Nullable V1HorizontalP * Get spec * @return spec */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1HorizontalPodAutoscalerSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1HorizontalPodAutoscalerSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1HorizontalPodAutoscalerSpec spec) { this.spec = spec; } @@ -238,7 +238,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -261,6 +261,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1HorizontalPodAutoscaler` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1HorizontalPodAutoscaler.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -272,10 +279,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the optional field `spec` - if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { - V1HorizontalPodAutoscalerSpec.validateJsonElement(jsonObj.get("spec")); - } + // validate the required field `spec` + V1HorizontalPodAutoscalerSpec.validateJsonElement(jsonObj.get("spec")); // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { V1HorizontalPodAutoscalerStatus.validateJsonElement(jsonObj.get("status")); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java index 1fab88553b..17b0c09f03 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerList.java @@ -54,7 +54,7 @@ * list of horizontal pod autoscaler objects. */ @ApiModel(description = "list of horizontal pod autoscaler objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java index afed08613d..eaeedb4c5f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerSpec.java @@ -51,7 +51,7 @@ * specification of a horizontal pod autoscaler. */ @ApiModel(description = "specification of a horizontal pod autoscaler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_MAX_REPLICAS = "maxReplicas"; @SerializedName(SERIALIZED_NAME_MAX_REPLICAS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java index 96814c5a95..c73ba5573b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HorizontalPodAutoscalerStatus.java @@ -51,7 +51,7 @@ * current status of a horizontal pod autoscaler */ @ApiModel(description = "current status of a horizontal pod autoscaler") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE = "currentCPUUtilizationPercentage"; @SerializedName(SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java index 1ff5ab3f0c..5a99515bad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostAlias.java @@ -52,7 +52,7 @@ * HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. */ @ApiModel(description = "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HostAlias { public static final String SERIALIZED_NAME_HOSTNAMES = "hostnames"; @SerializedName(SERIALIZED_NAME_HOSTNAMES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java index 5a89b2c535..62998e210e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostIP.java @@ -50,7 +50,7 @@ * HostIP represents a single IP address allocated to the host. */ @ApiModel(description = "HostIP represents a single IP address allocated to the host.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HostIP { public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java index b8b61759a8..a4a5febaad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1HostPathVolumeSource.java @@ -50,7 +50,7 @@ * Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1HostPathVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java index 2bb9c2f16f..7ccf0faab9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddress.java @@ -52,7 +52,7 @@ * IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1 */ @ApiModel(description = "IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IPAddress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,7 +71,7 @@ public class V1IPAddress implements io.kubernetes.client.common.KubernetesObject public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V1IPAddressSpec spec; public V1IPAddress() { @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1IPAddress spec(@jakarta.annotation.Nullable V1IPAddressSpec spec) { + public V1IPAddress spec(@jakarta.annotation.Nonnull V1IPAddressSpec spec) { this.spec = spec; return this; } @@ -146,13 +146,13 @@ public V1IPAddress spec(@jakarta.annotation.Nullable V1IPAddressSpec spec) { * Get spec * @return spec */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1IPAddressSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1IPAddressSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1IPAddressSpec spec) { this.spec = spec; } @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -233,6 +233,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1IPAddress` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1IPAddress.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -244,10 +251,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the optional field `spec` - if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { - V1IPAddressSpec.validateJsonElement(jsonObj.get("spec")); - } + // validate the required field `spec` + V1IPAddressSpec.validateJsonElement(jsonObj.get("spec")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java index 12beadf639..71ce9f2ba7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressList.java @@ -54,7 +54,7 @@ * IPAddressList contains a list of IPAddress. */ @ApiModel(description = "IPAddressList contains a list of IPAddress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IPAddressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java index 5ef3e760ef..6f60a3070f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPAddressSpec.java @@ -51,7 +51,7 @@ * IPAddressSpec describe the attributes in an IP Address. */ @ApiModel(description = "IPAddressSpec describe the attributes in an IP Address.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IPAddressSpec { public static final String SERIALIZED_NAME_PARENT_REF = "parentRef"; @SerializedName(SERIALIZED_NAME_PARENT_REF) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java index f77a68f111..0f9b1733dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IPBlock.java @@ -52,7 +52,7 @@ * IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. */ @ApiModel(description = "IPBlock describes a particular CIDR (Ex. \"192.168.1.0/24\",\"2001:db8::/64\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IPBlock { public static final String SERIALIZED_NAME_CIDR = "cidr"; @SerializedName(SERIALIZED_NAME_CIDR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java index 0e45301e5e..bd356a56ac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIPersistentVolumeSource.java @@ -53,7 +53,7 @@ * ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ISCSIPersistentVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java index cf1733b720..31586e0144 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ISCSIVolumeSource.java @@ -53,7 +53,7 @@ * Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ISCSIVolumeSource { public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java index f005d9c8b8..b6dd306047 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeSource.java @@ -50,7 +50,7 @@ * ImageVolumeSource represents a image volume resource. */ @ApiModel(description = "ImageVolumeSource represents a image volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ImageVolumeSource { public static final String SERIALIZED_NAME_PULL_POLICY = "pullPolicy"; @SerializedName(SERIALIZED_NAME_PULL_POLICY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatus.java new file mode 100644 index 0000000000..fa14e8de4f --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ImageVolumeStatus.java @@ -0,0 +1,214 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * ImageVolumeStatus represents the image-based volume status. + */ +@ApiModel(description = "ImageVolumeStatus represents the image-based volume status.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1ImageVolumeStatus { + public static final String SERIALIZED_NAME_IMAGE_REF = "imageRef"; + @SerializedName(SERIALIZED_NAME_IMAGE_REF) + @jakarta.annotation.Nonnull + private String imageRef; + + public V1ImageVolumeStatus() { + } + + public V1ImageVolumeStatus imageRef(@jakarta.annotation.Nonnull String imageRef) { + this.imageRef = imageRef; + return this; + } + + /** + * ImageRef is the digest of the image used for this volume. It should have a value that's similar to the pod's status.containerStatuses[i].imageID. The ImageRef length should not exceed 256 characters. + * @return imageRef + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "ImageRef is the digest of the image used for this volume. It should have a value that's similar to the pod's status.containerStatuses[i].imageID. The ImageRef length should not exceed 256 characters.") + public String getImageRef() { + return imageRef; + } + + public void setImageRef(@jakarta.annotation.Nonnull String imageRef) { + this.imageRef = imageRef; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ImageVolumeStatus v1ImageVolumeStatus = (V1ImageVolumeStatus) o; + return Objects.equals(this.imageRef, v1ImageVolumeStatus.imageRef); + } + + @Override + public int hashCode() { + return Objects.hash(imageRef); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ImageVolumeStatus {\n"); + sb.append(" imageRef: ").append(toIndentedString(imageRef)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("imageRef")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("imageRef")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ImageVolumeStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1ImageVolumeStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1ImageVolumeStatus is not found in the empty JSON string", V1ImageVolumeStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1ImageVolumeStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ImageVolumeStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ImageVolumeStatus.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("imageRef").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `imageRef` to be a primitive type in the JSON string but got `%s`", jsonObj.get("imageRef").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ImageVolumeStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ImageVolumeStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ImageVolumeStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ImageVolumeStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ImageVolumeStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ImageVolumeStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ImageVolumeStatus + * @throws IOException if the JSON string is invalid with respect to V1ImageVolumeStatus + */ + public static V1ImageVolumeStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ImageVolumeStatus.class); + } + + /** + * Convert an instance of V1ImageVolumeStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java index 5647dd2d43..89397cb061 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Ingress.java @@ -53,7 +53,7 @@ * Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. */ @ApiModel(description = "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Ingress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java index c5c915c3d7..58f60a3636 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressBackend.java @@ -52,7 +52,7 @@ * IngressBackend describes all endpoints for a given service and port. */ @ApiModel(description = "IngressBackend describes all endpoints for a given service and port.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressBackend { public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java index b63406af71..51a7ffda5e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClass.java @@ -52,7 +52,7 @@ * IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class. */ @ApiModel(description = "IngressClass represents the class of the Ingress, referenced by the Ingress Spec. The `ingressclass.kubernetes.io/is-default-class` annotation can be used to indicate that an IngressClass should be considered default. When a single IngressClass resource has this annotation set to true, new Ingress resources without a class specified will be assigned this default class.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java index cbc6756f8f..2a8bd4df23 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassList.java @@ -54,7 +54,7 @@ * IngressClassList is a collection of IngressClasses. */ @ApiModel(description = "IngressClassList is a collection of IngressClasses.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java index 77d5021e5a..ea5de486bb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassParametersReference.java @@ -50,7 +50,7 @@ * IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource. */ @ApiModel(description = "IngressClassParametersReference identifies an API object. This can be used to specify a cluster or namespace-scoped resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressClassParametersReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java index e115d5d186..47bae16dd4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressClassSpec.java @@ -51,7 +51,7 @@ * IngressClassSpec provides information about the class of an Ingress. */ @ApiModel(description = "IngressClassSpec provides information about the class of an Ingress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressClassSpec { public static final String SERIALIZED_NAME_CONTROLLER = "controller"; @SerializedName(SERIALIZED_NAME_CONTROLLER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java index cc174fd453..65a1ff9cc9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressList.java @@ -54,7 +54,7 @@ * IngressList is a collection of Ingress. */ @ApiModel(description = "IngressList is a collection of Ingress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java index a3a5f2a035..aa98d1e225 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerIngress.java @@ -53,7 +53,7 @@ * IngressLoadBalancerIngress represents the status of a load-balancer ingress point. */ @ApiModel(description = "IngressLoadBalancerIngress represents the status of a load-balancer ingress point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressLoadBalancerIngress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java index c9bc4295c8..4ad673c6eb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressLoadBalancerStatus.java @@ -53,7 +53,7 @@ * IngressLoadBalancerStatus represents the status of a load-balancer. */ @ApiModel(description = "IngressLoadBalancerStatus represents the status of a load-balancer.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressLoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_INGRESS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java index 1a4c47e91b..8a5d4e3e59 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressPortStatus.java @@ -50,7 +50,7 @@ * IngressPortStatus represents the error condition of a service port */ @ApiModel(description = "IngressPortStatus represents the error condition of a service port") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressPortStatus { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java index e1881303b0..9a89149b36 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressRule.java @@ -51,7 +51,7 @@ * IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue. */ @ApiModel(description = "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressRule { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java index 6f8d8a5fc2..36053201a6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressServiceBackend.java @@ -51,7 +51,7 @@ * IngressServiceBackend references a Kubernetes Service as a Backend. */ @ApiModel(description = "IngressServiceBackend references a Kubernetes Service as a Backend.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressServiceBackend { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java index 7647f6c3f5..74b18f91a6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressSpec.java @@ -55,7 +55,7 @@ * IngressSpec describes the Ingress the user wishes to exist. */ @ApiModel(description = "IngressSpec describes the Ingress the user wishes to exist.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressSpec { public static final String SERIALIZED_NAME_DEFAULT_BACKEND = "defaultBackend"; @SerializedName(SERIALIZED_NAME_DEFAULT_BACKEND) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java index 8bb8c9ccb0..1a963a1e22 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressStatus.java @@ -51,7 +51,7 @@ * IngressStatus describe the current state of the Ingress. */ @ApiModel(description = "IngressStatus describe the current state of the Ingress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressStatus { public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; @SerializedName(SERIALIZED_NAME_LOAD_BALANCER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java index d766214b7b..8980aad9ec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1IngressTLS.java @@ -52,7 +52,7 @@ * IngressTLS describes the transport layer security associated with an ingress. */ @ApiModel(description = "IngressTLS describes the transport layer security associated with an ingress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1IngressTLS { public static final String SERIALIZED_NAME_HOSTS = "hosts"; @SerializedName(SERIALIZED_NAME_HOSTS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatch.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatch.java new file mode 100644 index 0000000000..1105ad73b5 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONPatch.java @@ -0,0 +1,207 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * JSONPatch defines a JSON Patch. + */ +@ApiModel(description = "JSONPatch defines a JSON Patch.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1JSONPatch { + public static final String SERIALIZED_NAME_EXPRESSION = "expression"; + @SerializedName(SERIALIZED_NAME_EXPRESSION) + @jakarta.annotation.Nullable + private String expression; + + public V1JSONPatch() { + } + + public V1JSONPatch expression(@jakarta.annotation.Nullable String expression) { + this.expression = expression; + return this; + } + + /** + * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec expression must return an array of JSONPatch values. For example, this CEL expression returns a JSON patch to conditionally modify a value: [ JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"}, JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"} ] To define an object for the patch value, use Object types. For example: [ JSONPatch{ op: \"add\", path: \"/spec/selector\", value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}} } ] To use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example: [ JSONPatch{ op: \"add\", path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"), value: \"test\" }, ] CEL expressions have access to the types needed to create JSON patches and objects: - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, integer, array, map or object. If set, the 'path' and 'from' fields must be set to a [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as: - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. + * @return expression + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec expression must return an array of JSONPatch values. For example, this CEL expression returns a JSON patch to conditionally modify a value: [ JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"}, JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"} ] To define an object for the patch value, use Object types. For example: [ JSONPatch{ op: \"add\", path: \"/spec/selector\", value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}} } ] To use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example: [ JSONPatch{ op: \"add\", path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"), value: \"test\" }, ] CEL expressions have access to the types needed to create JSON patches and objects: - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, integer, array, map or object. If set, the 'path' and 'from' fields must be set to a [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as: - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.") + public String getExpression() { + return expression; + } + + public void setExpression(@jakarta.annotation.Nullable String expression) { + this.expression = expression; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1JSONPatch v1JSONPatch = (V1JSONPatch) o; + return Objects.equals(this.expression, v1JSONPatch.expression); + } + + @Override + public int hashCode() { + return Objects.hash(expression); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1JSONPatch {\n"); + sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("expression")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1JSONPatch + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1JSONPatch.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1JSONPatch is not found in the empty JSON string", V1JSONPatch.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1JSONPatch.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1JSONPatch` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("expression") != null && !jsonObj.get("expression").isJsonNull()) && !jsonObj.get("expression").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `expression` to be a primitive type in the JSON string but got `%s`", jsonObj.get("expression").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1JSONPatch.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1JSONPatch' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1JSONPatch.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1JSONPatch value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1JSONPatch read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1JSONPatch given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1JSONPatch + * @throws IOException if the JSON string is invalid with respect to V1JSONPatch + */ + public static V1JSONPatch fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1JSONPatch.class); + } + + /** + * Convert an instance of V1JSONPatch to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java index 866545ed52..3fca3fedd2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JSONSchemaProps.java @@ -56,7 +56,7 @@ * JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). */ @ApiModel(description = "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1JSONSchemaProps { public static final String SERIALIZED_NAME_$_REF = "$ref"; @SerializedName(SERIALIZED_NAME_$_REF) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java index de2dbc297d..23641a9efd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Job.java @@ -53,7 +53,7 @@ * Job represents the configuration of a single job. */ @ApiModel(description = "Job represents the configuration of a single job.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Job implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java index 2c9d5efdcb..37dd039c2d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobCondition.java @@ -51,7 +51,7 @@ * JobCondition describes current state of a job. */ @ApiModel(description = "JobCondition describes current state of a job.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1JobCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java index e9a3f86865..35061a9e06 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobList.java @@ -54,7 +54,7 @@ * JobList is a collection of jobs. */ @ApiModel(description = "JobList is a collection of jobs.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1JobList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java index d4679a6ce4..33552f9675 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobSpec.java @@ -54,7 +54,7 @@ * JobSpec describes how the job execution will look like. */ @ApiModel(description = "JobSpec describes how the job execution will look like.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1JobSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java index ca167a8273..50f85df9c1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobStatus.java @@ -55,7 +55,7 @@ * JobStatus represents the current state of a Job. */ @ApiModel(description = "JobStatus represents the current state of a Job.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1JobStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java index 10660299c0..abaa9fe71c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1JobTemplateSpec.java @@ -52,7 +52,7 @@ * JobTemplateSpec describes the data a Job should have when created from a template */ @ApiModel(description = "JobTemplateSpec describes the data a Job should have when created from a template") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1JobTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java index 3c3829d780..6899bc1c7e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1KeyToPath.java @@ -50,7 +50,7 @@ * Maps a string key to a path within a volume. */ @ApiModel(description = "Maps a string key to a path within a volume.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1KeyToPath { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java index 77d029882a..7f64b3d38a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelector.java @@ -55,7 +55,7 @@ * A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. */ @ApiModel(description = "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LabelSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java index 9821023338..a0f4440366 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorAttributes.java @@ -53,7 +53,7 @@ * LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid. */ @ApiModel(description = "LabelSelectorAttributes indicates a label limited access. Webhook authors are encouraged to * ensure rawSelector and requirements are not both set * consider the requirements field if set * not try to parse or consider the rawSelector field if set. This is to avoid another CVE-2022-2880 (i.e. getting different systems to agree on how exactly to parse a query is not something we want), see https://www.oxeye.io/resources/golang-parameter-smuggling-attack for more details. For the *SubjectAccessReview endpoints of the kube-apiserver: * If rawSelector is empty and requirements are empty, the request is not limited. * If rawSelector is present and requirements are empty, the rawSelector will be parsed and limited if the parsing succeeds. * If rawSelector is empty and requirements are present, the requirements should be honored * If rawSelector is present and requirements are present, the request is invalid.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LabelSelectorAttributes { public static final String SERIALIZED_NAME_RAW_SELECTOR = "rawSelector"; @SerializedName(SERIALIZED_NAME_RAW_SELECTOR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java index 53c986f7f8..45c24ed002 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LabelSelectorRequirement.java @@ -52,7 +52,7 @@ * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ @ApiModel(description = "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LabelSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java index 834e66b100..44f9c79356 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lease.java @@ -52,7 +52,7 @@ * Lease defines a lease concept. */ @ApiModel(description = "Lease defines a lease concept.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Lease implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java index 70bbe19bee..20f226a159 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseList.java @@ -54,7 +54,7 @@ * LeaseList is a list of Lease objects. */ @ApiModel(description = "LeaseList is a list of Lease objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LeaseList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java index 0910e72e9d..b756324a7c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LeaseSpec.java @@ -51,7 +51,7 @@ * LeaseSpec is a specification of a Lease. */ @ApiModel(description = "LeaseSpec is a specification of a Lease.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LeaseSpec { public static final String SERIALIZED_NAME_ACQUIRE_TIME = "acquireTime"; @SerializedName(SERIALIZED_NAME_ACQUIRE_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java index 993e076959..933ded2a56 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Lifecycle.java @@ -51,7 +51,7 @@ * Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted. */ @ApiModel(description = "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Lifecycle { public static final String SERIALIZED_NAME_POST_START = "postStart"; @SerializedName(SERIALIZED_NAME_POST_START) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java index 3845b120bb..805ee979ba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LifecycleHandler.java @@ -54,7 +54,7 @@ * LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified. */ @ApiModel(description = "LifecycleHandler defines a specific action that should be taken in a lifecycle hook. One and only one of the fields, except TCPSocket must be specified.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LifecycleHandler { public static final String SERIALIZED_NAME_EXEC = "exec"; @SerializedName(SERIALIZED_NAME_EXEC) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java index 1a521cc8ee..f8a20ab7ad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRange.java @@ -52,7 +52,7 @@ * LimitRange sets resource usage limits for each kind of resource in a Namespace. */ @ApiModel(description = "LimitRange sets resource usage limits for each kind of resource in a Namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LimitRange implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java index 5c195f4142..b80a23eb21 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeItem.java @@ -53,7 +53,7 @@ * LimitRangeItem defines a min/max usage limit for any resource that matches on kind. */ @ApiModel(description = "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LimitRangeItem { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java index 5a1b90e576..7dac582a16 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeList.java @@ -54,7 +54,7 @@ * LimitRangeList is a list of LimitRange items. */ @ApiModel(description = "LimitRangeList is a list of LimitRange items.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LimitRangeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java index a4be5566ba..e7e89655f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitRangeSpec.java @@ -53,7 +53,7 @@ * LimitRangeSpec defines a min/max usage limit for resources that match on kind. */ @ApiModel(description = "LimitRangeSpec defines a min/max usage limit for resources that match on kind.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LimitRangeSpec { public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java index a92dd269b8..2fbe9dbda7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitResponse.java @@ -51,7 +51,7 @@ * LimitResponse defines how to handle requests that can not be executed right now. */ @ApiModel(description = "LimitResponse defines how to handle requests that can not be executed right now.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LimitResponse { public static final String SERIALIZED_NAME_QUEUING = "queuing"; @SerializedName(SERIALIZED_NAME_QUEUING) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java index ce51d8c113..e91289d3f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LimitedPriorityLevelConfiguration.java @@ -51,7 +51,7 @@ * 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? */ @ApiModel(description = "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?") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LimitedPriorityLevelConfiguration { public static final String SERIALIZED_NAME_BORROWING_LIMIT_PERCENT = "borrowingLimitPercent"; @SerializedName(SERIALIZED_NAME_BORROWING_LIMIT_PERCENT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java index 6d7b502fc7..e853d00479 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LinuxContainerUser.java @@ -52,7 +52,7 @@ * LinuxContainerUser represents user identity information in Linux containers */ @ApiModel(description = "LinuxContainerUser represents user identity information in Linux containers") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LinuxContainerUser { public static final String SERIALIZED_NAME_GID = "gid"; @SerializedName(SERIALIZED_NAME_GID) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java index ae7fa796b9..7fc609b7e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ListMeta.java @@ -18,6 +18,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ShardInfo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -50,7 +51,7 @@ * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. */ @ApiModel(description = "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ListMeta { public static final String SERIALIZED_NAME_CONTINUE = "continue"; @SerializedName(SERIALIZED_NAME_CONTINUE) @@ -72,6 +73,11 @@ public class V1ListMeta { @jakarta.annotation.Nullable private String selfLink; + public static final String SERIALIZED_NAME_SHARD_INFO = "shardInfo"; + @SerializedName(SERIALIZED_NAME_SHARD_INFO) + @jakarta.annotation.Nullable + private V1ShardInfo shardInfo; + public V1ListMeta() { } @@ -155,6 +161,26 @@ public void setSelfLink(@jakarta.annotation.Nullable String selfLink) { } + public V1ListMeta shardInfo(@jakarta.annotation.Nullable V1ShardInfo shardInfo) { + this.shardInfo = shardInfo; + return this; + } + + /** + * Get shardInfo + * @return shardInfo + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ShardInfo getShardInfo() { + return shardInfo; + } + + public void setShardInfo(@jakarta.annotation.Nullable V1ShardInfo shardInfo) { + this.shardInfo = shardInfo; + } + + @Override public boolean equals(Object o) { @@ -168,12 +194,13 @@ public boolean equals(Object o) { return Objects.equals(this._continue, v1ListMeta._continue) && Objects.equals(this.remainingItemCount, v1ListMeta.remainingItemCount) && Objects.equals(this.resourceVersion, v1ListMeta.resourceVersion) && - Objects.equals(this.selfLink, v1ListMeta.selfLink); + Objects.equals(this.selfLink, v1ListMeta.selfLink) && + Objects.equals(this.shardInfo, v1ListMeta.shardInfo); } @Override public int hashCode() { - return Objects.hash(_continue, remainingItemCount, resourceVersion, selfLink); + return Objects.hash(_continue, remainingItemCount, resourceVersion, selfLink, shardInfo); } @Override @@ -184,6 +211,7 @@ public String toString() { sb.append(" remainingItemCount: ").append(toIndentedString(remainingItemCount)).append("\n"); sb.append(" resourceVersion: ").append(toIndentedString(resourceVersion)).append("\n"); sb.append(" selfLink: ").append(toIndentedString(selfLink)).append("\n"); + sb.append(" shardInfo: ").append(toIndentedString(shardInfo)).append("\n"); sb.append("}"); return sb.toString(); } @@ -205,7 +233,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("continue", "remainingItemCount", "resourceVersion", "selfLink")); + openapiFields = new HashSet(Arrays.asList("continue", "remainingItemCount", "resourceVersion", "selfLink", "shardInfo")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -241,6 +269,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("selfLink") != null && !jsonObj.get("selfLink").isJsonNull()) && !jsonObj.get("selfLink").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `selfLink` to be a primitive type in the JSON string but got `%s`", jsonObj.get("selfLink").toString())); } + // validate the optional field `shardInfo` + if (jsonObj.get("shardInfo") != null && !jsonObj.get("shardInfo").isJsonNull()) { + V1ShardInfo.validateJsonElement(jsonObj.get("shardInfo")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java index ed4c42c5e6..3546de621a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerIngress.java @@ -53,7 +53,7 @@ * LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point. */ @ApiModel(description = "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LoadBalancerIngress { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java index c8c8a3d8ac..4ea1f1e0cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LoadBalancerStatus.java @@ -53,7 +53,7 @@ * LoadBalancerStatus represents the status of a load-balancer. */ @ApiModel(description = "LoadBalancerStatus represents the status of a load-balancer.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LoadBalancerStatus { public static final String SERIALIZED_NAME_INGRESS = "ingress"; @SerializedName(SERIALIZED_NAME_INGRESS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java index 438f624a67..68761fb62f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalObjectReference.java @@ -50,7 +50,7 @@ * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. */ @ApiModel(description = "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LocalObjectReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java index e0cecd84f9..0195ede33d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalSubjectAccessReview.java @@ -53,7 +53,7 @@ * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. */ @ApiModel(description = "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LocalSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java index 1944cc6dd6..f64495cf0e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1LocalVolumeSource.java @@ -50,7 +50,7 @@ * Local represents directly-attached storage with node affinity */ @ApiModel(description = "Local represents directly-attached storage with node affinity") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1LocalVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java index cbbe6a2986..36c723635b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ManagedFieldsEntry.java @@ -51,7 +51,7 @@ * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. */ @ApiModel(description = "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ManagedFieldsEntry { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java index a4dcc25617..a12b6df947 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchCondition.java @@ -50,7 +50,7 @@ * MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook. */ @ApiModel(description = "MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -71,11 +71,11 @@ public V1MatchCondition expression(@jakarta.annotation.Nonnull String expression } /** - * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. + * expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. * @return expression */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required.") + @ApiModelProperty(required = true, value = "expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required.") public String getExpression() { return expression; } @@ -91,11 +91,11 @@ public V1MatchCondition name(@jakarta.annotation.Nonnull String name) { } /** - * Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. + * name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required.") + @ApiModelProperty(required = true, value = "name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java index f3e149e252..1f710f8b93 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MatchResources.java @@ -54,7 +54,7 @@ * MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) */ @ApiModel(description = "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) @@ -98,11 +98,11 @@ public V1MatchResources addExcludeResourceRulesItem(V1NamedRuleWithOperations ex } /** - * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) + * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) * @return excludeResourceRules */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") + @ApiModelProperty(value = "excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") public List getExcludeResourceRules() { return excludeResourceRules; } @@ -186,11 +186,11 @@ public V1MatchResources addResourceRulesItem(V1NamedRuleWithOperations resourceR } /** - * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. + * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. * @return resourceRules */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.") + @ApiModelProperty(value = "resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.") public List getResourceRules() { return resourceRules; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java index 70dbd7c029..78734f00a2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ModifyVolumeStatus.java @@ -50,7 +50,7 @@ * ModifyVolumeStatus represents the status object of ControllerModifyVolume operation */ @ApiModel(description = "ModifyVolumeStatus represents the status object of ControllerModifyVolume operation") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ModifyVolumeStatus { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicy.java new file mode 100644 index 0000000000..8645cf8aee --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicy.java @@ -0,0 +1,301 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1MutatingAdmissionPolicySpec; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain. + */ +@ApiModel(description = "MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1MutatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable + private V1MutatingAdmissionPolicySpec spec; + + public V1MutatingAdmissionPolicy() { + } + + public V1MutatingAdmissionPolicy apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1MutatingAdmissionPolicy kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V1MutatingAdmissionPolicy metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1MutatingAdmissionPolicy spec(@jakarta.annotation.Nullable V1MutatingAdmissionPolicySpec spec) { + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1MutatingAdmissionPolicySpec getSpec() { + return spec; + } + + public void setSpec(@jakarta.annotation.Nullable V1MutatingAdmissionPolicySpec spec) { + this.spec = spec; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1MutatingAdmissionPolicy v1MutatingAdmissionPolicy = (V1MutatingAdmissionPolicy) o; + return Objects.equals(this.apiVersion, v1MutatingAdmissionPolicy.apiVersion) && + Objects.equals(this.kind, v1MutatingAdmissionPolicy.kind) && + Objects.equals(this.metadata, v1MutatingAdmissionPolicy.metadata) && + Objects.equals(this.spec, v1MutatingAdmissionPolicy.spec); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1MutatingAdmissionPolicy {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1MutatingAdmissionPolicy + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1MutatingAdmissionPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1MutatingAdmissionPolicy is not found in the empty JSON string", V1MutatingAdmissionPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1MutatingAdmissionPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1MutatingAdmissionPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1MutatingAdmissionPolicySpec.validateJsonElement(jsonObj.get("spec")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1MutatingAdmissionPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1MutatingAdmissionPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1MutatingAdmissionPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1MutatingAdmissionPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1MutatingAdmissionPolicy read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1MutatingAdmissionPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1MutatingAdmissionPolicy + * @throws IOException if the JSON string is invalid with respect to V1MutatingAdmissionPolicy + */ + public static V1MutatingAdmissionPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1MutatingAdmissionPolicy.class); + } + + /** + * Convert an instance of V1MutatingAdmissionPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBinding.java new file mode 100644 index 0000000000..7333aa7fa1 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBinding.java @@ -0,0 +1,301 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1MutatingAdmissionPolicyBindingSpec; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. + */ +@ApiModel(description = "MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1MutatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nullable + private V1MutatingAdmissionPolicyBindingSpec spec; + + public V1MutatingAdmissionPolicyBinding() { + } + + public V1MutatingAdmissionPolicyBinding apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1MutatingAdmissionPolicyBinding kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V1MutatingAdmissionPolicyBinding metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1MutatingAdmissionPolicyBinding spec(@jakarta.annotation.Nullable V1MutatingAdmissionPolicyBindingSpec spec) { + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1MutatingAdmissionPolicyBindingSpec getSpec() { + return spec; + } + + public void setSpec(@jakarta.annotation.Nullable V1MutatingAdmissionPolicyBindingSpec spec) { + this.spec = spec; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1MutatingAdmissionPolicyBinding v1MutatingAdmissionPolicyBinding = (V1MutatingAdmissionPolicyBinding) o; + return Objects.equals(this.apiVersion, v1MutatingAdmissionPolicyBinding.apiVersion) && + Objects.equals(this.kind, v1MutatingAdmissionPolicyBinding.kind) && + Objects.equals(this.metadata, v1MutatingAdmissionPolicyBinding.metadata) && + Objects.equals(this.spec, v1MutatingAdmissionPolicyBinding.spec); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1MutatingAdmissionPolicyBinding {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1MutatingAdmissionPolicyBinding + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1MutatingAdmissionPolicyBinding.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1MutatingAdmissionPolicyBinding is not found in the empty JSON string", V1MutatingAdmissionPolicyBinding.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1MutatingAdmissionPolicyBinding.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1MutatingAdmissionPolicyBinding` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); + } + // validate the optional field `spec` + if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { + V1MutatingAdmissionPolicyBindingSpec.validateJsonElement(jsonObj.get("spec")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1MutatingAdmissionPolicyBinding.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1MutatingAdmissionPolicyBinding' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1MutatingAdmissionPolicyBinding.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1MutatingAdmissionPolicyBinding value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1MutatingAdmissionPolicyBinding read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1MutatingAdmissionPolicyBinding given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1MutatingAdmissionPolicyBinding + * @throws IOException if the JSON string is invalid with respect to V1MutatingAdmissionPolicyBinding + */ + public static V1MutatingAdmissionPolicyBinding fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1MutatingAdmissionPolicyBinding.class); + } + + /** + * Convert an instance of V1MutatingAdmissionPolicyBinding to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingList.java new file mode 100644 index 0000000000..7ecae0e448 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingList.java @@ -0,0 +1,324 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V1MutatingAdmissionPolicyBinding; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. + */ +@ApiModel(description = "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1MutatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ListMeta metadata; + + public V1MutatingAdmissionPolicyBindingList() { + } + + public V1MutatingAdmissionPolicyBindingList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1MutatingAdmissionPolicyBindingList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1MutatingAdmissionPolicyBindingList addItemsItem(V1MutatingAdmissionPolicyBinding itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * List of PolicyBinding. + * @return items + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of PolicyBinding.") + public List getItems() { + return items; + } + + public void setItems(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + public V1MutatingAdmissionPolicyBindingList kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V1MutatingAdmissionPolicyBindingList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1MutatingAdmissionPolicyBindingList v1MutatingAdmissionPolicyBindingList = (V1MutatingAdmissionPolicyBindingList) o; + return Objects.equals(this.apiVersion, v1MutatingAdmissionPolicyBindingList.apiVersion) && + Objects.equals(this.items, v1MutatingAdmissionPolicyBindingList.items) && + Objects.equals(this.kind, v1MutatingAdmissionPolicyBindingList.kind) && + Objects.equals(this.metadata, v1MutatingAdmissionPolicyBindingList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1MutatingAdmissionPolicyBindingList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("items")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1MutatingAdmissionPolicyBindingList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1MutatingAdmissionPolicyBindingList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1MutatingAdmissionPolicyBindingList is not found in the empty JSON string", V1MutatingAdmissionPolicyBindingList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1MutatingAdmissionPolicyBindingList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1MutatingAdmissionPolicyBindingList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1MutatingAdmissionPolicyBindingList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1MutatingAdmissionPolicyBinding.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonElement(jsonObj.get("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1MutatingAdmissionPolicyBindingList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1MutatingAdmissionPolicyBindingList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1MutatingAdmissionPolicyBindingList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1MutatingAdmissionPolicyBindingList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1MutatingAdmissionPolicyBindingList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1MutatingAdmissionPolicyBindingList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1MutatingAdmissionPolicyBindingList + * @throws IOException if the JSON string is invalid with respect to V1MutatingAdmissionPolicyBindingList + */ + public static V1MutatingAdmissionPolicyBindingList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1MutatingAdmissionPolicyBindingList.class); + } + + /** + * Convert an instance of V1MutatingAdmissionPolicyBindingList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpec.java new file mode 100644 index 0000000000..e98299c1e7 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyBindingSpec.java @@ -0,0 +1,271 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1MatchResources; +import io.kubernetes.client.openapi.models.V1ParamRef; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * MutatingAdmissionPolicyBindingSpec defines the specification of the MutatingAdmissionPolicyBinding. + */ +@ApiModel(description = "MutatingAdmissionPolicyBindingSpec defines the specification of the MutatingAdmissionPolicyBinding.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1MutatingAdmissionPolicyBindingSpec { + public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; + @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) + @jakarta.annotation.Nullable + private V1MatchResources matchResources; + + public static final String SERIALIZED_NAME_PARAM_REF = "paramRef"; + @SerializedName(SERIALIZED_NAME_PARAM_REF) + @jakarta.annotation.Nullable + private V1ParamRef paramRef; + + public static final String SERIALIZED_NAME_POLICY_NAME = "policyName"; + @SerializedName(SERIALIZED_NAME_POLICY_NAME) + @jakarta.annotation.Nullable + private String policyName; + + public V1MutatingAdmissionPolicyBindingSpec() { + } + + public V1MutatingAdmissionPolicyBindingSpec matchResources(@jakarta.annotation.Nullable V1MatchResources matchResources) { + this.matchResources = matchResources; + return this; + } + + /** + * Get matchResources + * @return matchResources + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1MatchResources getMatchResources() { + return matchResources; + } + + public void setMatchResources(@jakarta.annotation.Nullable V1MatchResources matchResources) { + this.matchResources = matchResources; + } + + + public V1MutatingAdmissionPolicyBindingSpec paramRef(@jakarta.annotation.Nullable V1ParamRef paramRef) { + this.paramRef = paramRef; + return this; + } + + /** + * Get paramRef + * @return paramRef + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ParamRef getParamRef() { + return paramRef; + } + + public void setParamRef(@jakarta.annotation.Nullable V1ParamRef paramRef) { + this.paramRef = paramRef; + } + + + public V1MutatingAdmissionPolicyBindingSpec policyName(@jakarta.annotation.Nullable String policyName) { + this.policyName = policyName; + return this; + } + + /** + * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. + * @return policyName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.") + public String getPolicyName() { + return policyName; + } + + public void setPolicyName(@jakarta.annotation.Nullable String policyName) { + this.policyName = policyName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1MutatingAdmissionPolicyBindingSpec v1MutatingAdmissionPolicyBindingSpec = (V1MutatingAdmissionPolicyBindingSpec) o; + return Objects.equals(this.matchResources, v1MutatingAdmissionPolicyBindingSpec.matchResources) && + Objects.equals(this.paramRef, v1MutatingAdmissionPolicyBindingSpec.paramRef) && + Objects.equals(this.policyName, v1MutatingAdmissionPolicyBindingSpec.policyName); + } + + @Override + public int hashCode() { + return Objects.hash(matchResources, paramRef, policyName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1MutatingAdmissionPolicyBindingSpec {\n"); + sb.append(" matchResources: ").append(toIndentedString(matchResources)).append("\n"); + sb.append(" paramRef: ").append(toIndentedString(paramRef)).append("\n"); + sb.append(" policyName: ").append(toIndentedString(policyName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("matchResources", "paramRef", "policyName")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1MutatingAdmissionPolicyBindingSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1MutatingAdmissionPolicyBindingSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1MutatingAdmissionPolicyBindingSpec is not found in the empty JSON string", V1MutatingAdmissionPolicyBindingSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1MutatingAdmissionPolicyBindingSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1MutatingAdmissionPolicyBindingSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `matchResources` + if (jsonObj.get("matchResources") != null && !jsonObj.get("matchResources").isJsonNull()) { + V1MatchResources.validateJsonElement(jsonObj.get("matchResources")); + } + // validate the optional field `paramRef` + if (jsonObj.get("paramRef") != null && !jsonObj.get("paramRef").isJsonNull()) { + V1ParamRef.validateJsonElement(jsonObj.get("paramRef")); + } + if ((jsonObj.get("policyName") != null && !jsonObj.get("policyName").isJsonNull()) && !jsonObj.get("policyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `policyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("policyName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1MutatingAdmissionPolicyBindingSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1MutatingAdmissionPolicyBindingSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1MutatingAdmissionPolicyBindingSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1MutatingAdmissionPolicyBindingSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1MutatingAdmissionPolicyBindingSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1MutatingAdmissionPolicyBindingSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1MutatingAdmissionPolicyBindingSpec + * @throws IOException if the JSON string is invalid with respect to V1MutatingAdmissionPolicyBindingSpec + */ + public static V1MutatingAdmissionPolicyBindingSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1MutatingAdmissionPolicyBindingSpec.class); + } + + /** + * Convert an instance of V1MutatingAdmissionPolicyBindingSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyList.java new file mode 100644 index 0000000000..6084525cdd --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicyList.java @@ -0,0 +1,324 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V1MutatingAdmissionPolicy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. + */ +@ApiModel(description = "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1MutatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ListMeta metadata; + + public V1MutatingAdmissionPolicyList() { + } + + public V1MutatingAdmissionPolicyList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1MutatingAdmissionPolicyList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1MutatingAdmissionPolicyList addItemsItem(V1MutatingAdmissionPolicy itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * List of ValidatingAdmissionPolicy. + * @return items + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of ValidatingAdmissionPolicy.") + public List getItems() { + return items; + } + + public void setItems(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + public V1MutatingAdmissionPolicyList kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V1MutatingAdmissionPolicyList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1MutatingAdmissionPolicyList v1MutatingAdmissionPolicyList = (V1MutatingAdmissionPolicyList) o; + return Objects.equals(this.apiVersion, v1MutatingAdmissionPolicyList.apiVersion) && + Objects.equals(this.items, v1MutatingAdmissionPolicyList.items) && + Objects.equals(this.kind, v1MutatingAdmissionPolicyList.kind) && + Objects.equals(this.metadata, v1MutatingAdmissionPolicyList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1MutatingAdmissionPolicyList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("items")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1MutatingAdmissionPolicyList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1MutatingAdmissionPolicyList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1MutatingAdmissionPolicyList is not found in the empty JSON string", V1MutatingAdmissionPolicyList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1MutatingAdmissionPolicyList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1MutatingAdmissionPolicyList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1MutatingAdmissionPolicyList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1MutatingAdmissionPolicy.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonElement(jsonObj.get("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1MutatingAdmissionPolicyList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1MutatingAdmissionPolicyList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1MutatingAdmissionPolicyList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1MutatingAdmissionPolicyList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1MutatingAdmissionPolicyList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1MutatingAdmissionPolicyList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1MutatingAdmissionPolicyList + * @throws IOException if the JSON string is invalid with respect to V1MutatingAdmissionPolicyList + */ + public static V1MutatingAdmissionPolicyList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1MutatingAdmissionPolicyList.class); + } + + /** + * Convert an instance of V1MutatingAdmissionPolicyList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpec.java new file mode 100644 index 0000000000..b63ca257dc --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingAdmissionPolicySpec.java @@ -0,0 +1,453 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1MatchCondition; +import io.kubernetes.client.openapi.models.V1MatchResources; +import io.kubernetes.client.openapi.models.V1Mutation; +import io.kubernetes.client.openapi.models.V1ParamKind; +import io.kubernetes.client.openapi.models.V1Variable; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * MutatingAdmissionPolicySpec defines the desired behavior of the admission policy. + */ +@ApiModel(description = "MutatingAdmissionPolicySpec defines the desired behavior of the admission policy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1MutatingAdmissionPolicySpec { + public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; + @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) + @jakarta.annotation.Nullable + private String failurePolicy; + + public static final String SERIALIZED_NAME_MATCH_CONDITIONS = "matchConditions"; + @SerializedName(SERIALIZED_NAME_MATCH_CONDITIONS) + @jakarta.annotation.Nullable + private List matchConditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_MATCH_CONSTRAINTS = "matchConstraints"; + @SerializedName(SERIALIZED_NAME_MATCH_CONSTRAINTS) + @jakarta.annotation.Nullable + private V1MatchResources matchConstraints; + + public static final String SERIALIZED_NAME_MUTATIONS = "mutations"; + @SerializedName(SERIALIZED_NAME_MUTATIONS) + @jakarta.annotation.Nullable + private List mutations = new ArrayList<>(); + + public static final String SERIALIZED_NAME_PARAM_KIND = "paramKind"; + @SerializedName(SERIALIZED_NAME_PARAM_KIND) + @jakarta.annotation.Nullable + private V1ParamKind paramKind; + + public static final String SERIALIZED_NAME_REINVOCATION_POLICY = "reinvocationPolicy"; + @SerializedName(SERIALIZED_NAME_REINVOCATION_POLICY) + @jakarta.annotation.Nullable + private String reinvocationPolicy; + + public static final String SERIALIZED_NAME_VARIABLES = "variables"; + @SerializedName(SERIALIZED_NAME_VARIABLES) + @jakarta.annotation.Nullable + private List variables = new ArrayList<>(); + + public V1MutatingAdmissionPolicySpec() { + } + + public V1MutatingAdmissionPolicySpec failurePolicy(@jakarta.annotation.Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; + return this; + } + + /** + * failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. Allowed values are Ignore or Fail. Defaults to Fail. + * @return failurePolicy + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. Allowed values are Ignore or Fail. Defaults to Fail.") + public String getFailurePolicy() { + return failurePolicy; + } + + public void setFailurePolicy(@jakarta.annotation.Nullable String failurePolicy) { + this.failurePolicy = failurePolicy; + } + + + public V1MutatingAdmissionPolicySpec matchConditions(@jakarta.annotation.Nullable List matchConditions) { + this.matchConditions = matchConditions; + return this; + } + + public V1MutatingAdmissionPolicySpec addMatchConditionsItem(V1MatchCondition matchConditionsItem) { + if (this.matchConditions == null) { + this.matchConditions = new ArrayList<>(); + } + this.matchConditions.add(matchConditionsItem); + return this; + } + + /** + * matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped + * @return matchConditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped") + public List getMatchConditions() { + return matchConditions; + } + + public void setMatchConditions(@jakarta.annotation.Nullable List matchConditions) { + this.matchConditions = matchConditions; + } + + + public V1MutatingAdmissionPolicySpec matchConstraints(@jakarta.annotation.Nullable V1MatchResources matchConstraints) { + this.matchConstraints = matchConstraints; + return this; + } + + /** + * Get matchConstraints + * @return matchConstraints + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1MatchResources getMatchConstraints() { + return matchConstraints; + } + + public void setMatchConstraints(@jakarta.annotation.Nullable V1MatchResources matchConstraints) { + this.matchConstraints = matchConstraints; + } + + + public V1MutatingAdmissionPolicySpec mutations(@jakarta.annotation.Nullable List mutations) { + this.mutations = mutations; + return this; + } + + public V1MutatingAdmissionPolicySpec addMutationsItem(V1Mutation mutationsItem) { + if (this.mutations == null) { + this.mutations = new ArrayList<>(); + } + this.mutations.add(mutationsItem); + return this; + } + + /** + * mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis. + * @return mutations + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.") + public List getMutations() { + return mutations; + } + + public void setMutations(@jakarta.annotation.Nullable List mutations) { + this.mutations = mutations; + } + + + public V1MutatingAdmissionPolicySpec paramKind(@jakarta.annotation.Nullable V1ParamKind paramKind) { + this.paramKind = paramKind; + return this; + } + + /** + * Get paramKind + * @return paramKind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ParamKind getParamKind() { + return paramKind; + } + + public void setParamKind(@jakarta.annotation.Nullable V1ParamKind paramKind) { + this.paramKind = paramKind; + } + + + public V1MutatingAdmissionPolicySpec reinvocationPolicy(@jakarta.annotation.Nullable String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; + return this; + } + + /** + * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: These mutations will not be called more than once per binding in a single admission evaluation. IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required. + * @return reinvocationPolicy + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: These mutations will not be called more than once per binding in a single admission evaluation. IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.") + public String getReinvocationPolicy() { + return reinvocationPolicy; + } + + public void setReinvocationPolicy(@jakarta.annotation.Nullable String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; + } + + + public V1MutatingAdmissionPolicySpec variables(@jakarta.annotation.Nullable List variables) { + this.variables = variables; + return this; + } + + public V1MutatingAdmissionPolicySpec addVariablesItem(V1Variable variablesItem) { + if (this.variables == null) { + this.variables = new ArrayList<>(); + } + this.variables.add(variablesItem); + return this; + } + + /** + * variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic. + * @return variables + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic.") + public List getVariables() { + return variables; + } + + public void setVariables(@jakarta.annotation.Nullable List variables) { + this.variables = variables; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1MutatingAdmissionPolicySpec v1MutatingAdmissionPolicySpec = (V1MutatingAdmissionPolicySpec) o; + return Objects.equals(this.failurePolicy, v1MutatingAdmissionPolicySpec.failurePolicy) && + Objects.equals(this.matchConditions, v1MutatingAdmissionPolicySpec.matchConditions) && + Objects.equals(this.matchConstraints, v1MutatingAdmissionPolicySpec.matchConstraints) && + Objects.equals(this.mutations, v1MutatingAdmissionPolicySpec.mutations) && + Objects.equals(this.paramKind, v1MutatingAdmissionPolicySpec.paramKind) && + Objects.equals(this.reinvocationPolicy, v1MutatingAdmissionPolicySpec.reinvocationPolicy) && + Objects.equals(this.variables, v1MutatingAdmissionPolicySpec.variables); + } + + @Override + public int hashCode() { + return Objects.hash(failurePolicy, matchConditions, matchConstraints, mutations, paramKind, reinvocationPolicy, variables); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1MutatingAdmissionPolicySpec {\n"); + sb.append(" failurePolicy: ").append(toIndentedString(failurePolicy)).append("\n"); + sb.append(" matchConditions: ").append(toIndentedString(matchConditions)).append("\n"); + sb.append(" matchConstraints: ").append(toIndentedString(matchConstraints)).append("\n"); + sb.append(" mutations: ").append(toIndentedString(mutations)).append("\n"); + sb.append(" paramKind: ").append(toIndentedString(paramKind)).append("\n"); + sb.append(" reinvocationPolicy: ").append(toIndentedString(reinvocationPolicy)).append("\n"); + sb.append(" variables: ").append(toIndentedString(variables)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("failurePolicy", "matchConditions", "matchConstraints", "mutations", "paramKind", "reinvocationPolicy", "variables")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1MutatingAdmissionPolicySpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1MutatingAdmissionPolicySpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1MutatingAdmissionPolicySpec is not found in the empty JSON string", V1MutatingAdmissionPolicySpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1MutatingAdmissionPolicySpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1MutatingAdmissionPolicySpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("failurePolicy") != null && !jsonObj.get("failurePolicy").isJsonNull()) && !jsonObj.get("failurePolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `failurePolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("failurePolicy").toString())); + } + if (jsonObj.get("matchConditions") != null && !jsonObj.get("matchConditions").isJsonNull()) { + JsonArray jsonArraymatchConditions = jsonObj.getAsJsonArray("matchConditions"); + if (jsonArraymatchConditions != null) { + // ensure the json data is an array + if (!jsonObj.get("matchConditions").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `matchConditions` to be an array in the JSON string but got `%s`", jsonObj.get("matchConditions").toString())); + } + + // validate the optional field `matchConditions` (array) + for (int i = 0; i < jsonArraymatchConditions.size(); i++) { + V1MatchCondition.validateJsonElement(jsonArraymatchConditions.get(i)); + }; + } + } + // validate the optional field `matchConstraints` + if (jsonObj.get("matchConstraints") != null && !jsonObj.get("matchConstraints").isJsonNull()) { + V1MatchResources.validateJsonElement(jsonObj.get("matchConstraints")); + } + if (jsonObj.get("mutations") != null && !jsonObj.get("mutations").isJsonNull()) { + JsonArray jsonArraymutations = jsonObj.getAsJsonArray("mutations"); + if (jsonArraymutations != null) { + // ensure the json data is an array + if (!jsonObj.get("mutations").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `mutations` to be an array in the JSON string but got `%s`", jsonObj.get("mutations").toString())); + } + + // validate the optional field `mutations` (array) + for (int i = 0; i < jsonArraymutations.size(); i++) { + V1Mutation.validateJsonElement(jsonArraymutations.get(i)); + }; + } + } + // validate the optional field `paramKind` + if (jsonObj.get("paramKind") != null && !jsonObj.get("paramKind").isJsonNull()) { + V1ParamKind.validateJsonElement(jsonObj.get("paramKind")); + } + if ((jsonObj.get("reinvocationPolicy") != null && !jsonObj.get("reinvocationPolicy").isJsonNull()) && !jsonObj.get("reinvocationPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `reinvocationPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("reinvocationPolicy").toString())); + } + if (jsonObj.get("variables") != null && !jsonObj.get("variables").isJsonNull()) { + JsonArray jsonArrayvariables = jsonObj.getAsJsonArray("variables"); + if (jsonArrayvariables != null) { + // ensure the json data is an array + if (!jsonObj.get("variables").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `variables` to be an array in the JSON string but got `%s`", jsonObj.get("variables").toString())); + } + + // validate the optional field `variables` (array) + for (int i = 0; i < jsonArrayvariables.size(); i++) { + V1Variable.validateJsonElement(jsonArrayvariables.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1MutatingAdmissionPolicySpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1MutatingAdmissionPolicySpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1MutatingAdmissionPolicySpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1MutatingAdmissionPolicySpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1MutatingAdmissionPolicySpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1MutatingAdmissionPolicySpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1MutatingAdmissionPolicySpec + * @throws IOException if the JSON string is invalid with respect to V1MutatingAdmissionPolicySpec + */ + public static V1MutatingAdmissionPolicySpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1MutatingAdmissionPolicySpec.class); + } + + /** + * Convert an instance of V1MutatingAdmissionPolicySpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java index bb609fad47..58febd21bd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhook.java @@ -56,7 +56,7 @@ * MutatingWebhook describes an admission webhook and the resources and operations it applies to. */ @ApiModel(description = "MutatingWebhook describes an admission webhook and the resources and operations it applies to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MutatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) @@ -135,11 +135,11 @@ public V1MutatingWebhook addAdmissionReviewVersionsItem(String admissionReviewVe } /** - * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * admissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. * @return admissionReviewVersions */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.") + @ApiModelProperty(required = true, value = "admissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.") public List getAdmissionReviewVersions() { return admissionReviewVersions; } @@ -175,11 +175,11 @@ public V1MutatingWebhook failurePolicy(@jakarta.annotation.Nullable String failu } /** - * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * failurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. * @return failurePolicy */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.") + @ApiModelProperty(value = "failurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.") public String getFailurePolicy() { return failurePolicy; } @@ -203,11 +203,11 @@ public V1MutatingWebhook addMatchConditionsItem(V1MatchCondition matchConditions } /** - * MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped + * matchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped * @return matchConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped") + @ApiModelProperty(value = "matchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped") public List getMatchConditions() { return matchConditions; } @@ -243,11 +243,11 @@ public V1MutatingWebhook name(@jakarta.annotation.Nonnull String name) { } /** - * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * name is the name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.") + @ApiModelProperty(required = true, value = "name is the name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.") public String getName() { return name; } @@ -331,11 +331,11 @@ public V1MutatingWebhook addRulesItem(V1RuleWithOperations rulesItem) { } /** - * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. * @return rules */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.") + @ApiModelProperty(value = "rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.") public List getRules() { return rules; } @@ -351,11 +351,11 @@ public V1MutatingWebhook sideEffects(@jakarta.annotation.Nonnull String sideEffe } /** - * SideEffects states whether this webhook has side 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 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. + * sideEffects states whether this webhook has side 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 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. * @return sideEffects */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "SideEffects states whether this webhook has side 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 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.") + @ApiModelProperty(required = true, value = "sideEffects states whether this webhook has side 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 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.") public String getSideEffects() { return sideEffects; } @@ -371,11 +371,11 @@ public V1MutatingWebhook timeoutSeconds(@jakarta.annotation.Nullable Integer tim } /** - * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + * timeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. * @return timeoutSeconds */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.") + @ApiModelProperty(value = "timeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.") public Integer getTimeoutSeconds() { return timeoutSeconds; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java index 672a1740ee..8b4b6e3e73 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfiguration.java @@ -54,7 +54,7 @@ * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. */ @ApiModel(description = "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MutatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -153,11 +153,11 @@ public V1MutatingWebhookConfiguration addWebhooksItem(V1MutatingWebhook webhooks } /** - * Webhooks is a list of webhooks and the affected resources and operations. + * webhooks is a list of webhooks and the affected resources and operations. * @return webhooks */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Webhooks is a list of webhooks and the affected resources and operations.") + @ApiModelProperty(value = "webhooks is a list of webhooks and the affected resources and operations.") public List getWebhooks() { return webhooks; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java index 0268509905..b2ee345580 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1MutatingWebhookConfigurationList.java @@ -54,7 +54,7 @@ * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. */ @ApiModel(description = "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1MutatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Mutation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Mutation.java new file mode 100644 index 0000000000..ddf48b27f4 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Mutation.java @@ -0,0 +1,278 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ApplyConfiguration; +import io.kubernetes.client.openapi.models.V1JSONPatch; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * Mutation specifies the CEL expression which is used to apply the Mutation. + */ +@ApiModel(description = "Mutation specifies the CEL expression which is used to apply the Mutation.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1Mutation { + public static final String SERIALIZED_NAME_APPLY_CONFIGURATION = "applyConfiguration"; + @SerializedName(SERIALIZED_NAME_APPLY_CONFIGURATION) + @jakarta.annotation.Nullable + private V1ApplyConfiguration applyConfiguration; + + public static final String SERIALIZED_NAME_JSON_PATCH = "jsonPatch"; + @SerializedName(SERIALIZED_NAME_JSON_PATCH) + @jakarta.annotation.Nullable + private V1JSONPatch jsonPatch; + + public static final String SERIALIZED_NAME_PATCH_TYPE = "patchType"; + @SerializedName(SERIALIZED_NAME_PATCH_TYPE) + @jakarta.annotation.Nonnull + private String patchType; + + public V1Mutation() { + } + + public V1Mutation applyConfiguration(@jakarta.annotation.Nullable V1ApplyConfiguration applyConfiguration) { + this.applyConfiguration = applyConfiguration; + return this; + } + + /** + * Get applyConfiguration + * @return applyConfiguration + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ApplyConfiguration getApplyConfiguration() { + return applyConfiguration; + } + + public void setApplyConfiguration(@jakarta.annotation.Nullable V1ApplyConfiguration applyConfiguration) { + this.applyConfiguration = applyConfiguration; + } + + + public V1Mutation jsonPatch(@jakarta.annotation.Nullable V1JSONPatch jsonPatch) { + this.jsonPatch = jsonPatch; + return this; + } + + /** + * Get jsonPatch + * @return jsonPatch + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1JSONPatch getJsonPatch() { + return jsonPatch; + } + + public void setJsonPatch(@jakarta.annotation.Nullable V1JSONPatch jsonPatch) { + this.jsonPatch = jsonPatch; + } + + + public V1Mutation patchType(@jakarta.annotation.Nonnull String patchType) { + this.patchType = patchType; + return this; + } + + /** + * patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required. + * @return patchType + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required.") + public String getPatchType() { + return patchType; + } + + public void setPatchType(@jakarta.annotation.Nonnull String patchType) { + this.patchType = patchType; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1Mutation v1Mutation = (V1Mutation) o; + return Objects.equals(this.applyConfiguration, v1Mutation.applyConfiguration) && + Objects.equals(this.jsonPatch, v1Mutation.jsonPatch) && + Objects.equals(this.patchType, v1Mutation.patchType); + } + + @Override + public int hashCode() { + return Objects.hash(applyConfiguration, jsonPatch, patchType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1Mutation {\n"); + sb.append(" applyConfiguration: ").append(toIndentedString(applyConfiguration)).append("\n"); + sb.append(" jsonPatch: ").append(toIndentedString(jsonPatch)).append("\n"); + sb.append(" patchType: ").append(toIndentedString(patchType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("applyConfiguration", "jsonPatch", "patchType")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("patchType")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1Mutation + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1Mutation.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1Mutation is not found in the empty JSON string", V1Mutation.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1Mutation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1Mutation` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1Mutation.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `applyConfiguration` + if (jsonObj.get("applyConfiguration") != null && !jsonObj.get("applyConfiguration").isJsonNull()) { + V1ApplyConfiguration.validateJsonElement(jsonObj.get("applyConfiguration")); + } + // validate the optional field `jsonPatch` + if (jsonObj.get("jsonPatch") != null && !jsonObj.get("jsonPatch").isJsonNull()) { + V1JSONPatch.validateJsonElement(jsonObj.get("jsonPatch")); + } + if (!jsonObj.get("patchType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `patchType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("patchType").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1Mutation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1Mutation' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1Mutation.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1Mutation value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1Mutation read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1Mutation given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1Mutation + * @throws IOException if the JSON string is invalid with respect to V1Mutation + */ + public static V1Mutation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1Mutation.class); + } + + /** + * Convert an instance of V1Mutation to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java index 86d0790d17..340bd39cd2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NFSVolumeSource.java @@ -50,7 +50,7 @@ * Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NFSVolumeSource { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java index e7800b0b51..738dcb54ae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamedRuleWithOperations.java @@ -52,7 +52,7 @@ * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ @ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -101,11 +101,11 @@ public V1NamedRuleWithOperations addApiGroupsItem(String apiGroupsItem) { } /** - * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. * @return apiGroups */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") + @ApiModelProperty(value = "apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") public List getApiGroups() { return apiGroups; } @@ -129,11 +129,11 @@ public V1NamedRuleWithOperations addApiVersionsItem(String apiVersionsItem) { } /** - * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. * @return apiVersions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") + @ApiModelProperty(value = "apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") public List getApiVersions() { return apiVersions; } @@ -157,11 +157,11 @@ public V1NamedRuleWithOperations addOperationsItem(String operationsItem) { } /** - * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. + * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. * @return operations */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") + @ApiModelProperty(value = "operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") public List getOperations() { return operations; } @@ -185,11 +185,11 @@ public V1NamedRuleWithOperations addResourceNamesItem(String resourceNamesItem) } /** - * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. * @return resourceNames */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") + @ApiModelProperty(value = "resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") public List getResourceNames() { return resourceNames; } @@ -213,11 +213,11 @@ public V1NamedRuleWithOperations addResourcesItem(String resourcesItem) { } /** - * Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. + * resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. * @return resources */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") + @ApiModelProperty(value = "resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") public List getResources() { return resources; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java index 34216c50b3..6633a3220e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Namespace.java @@ -53,7 +53,7 @@ * Namespace provides a scope for Names. Use of multiple namespaces is optional. */ @ApiModel(description = "Namespace provides a scope for Names. Use of multiple namespaces is optional.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Namespace implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java index b31456c44f..2e0092f125 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceCondition.java @@ -51,7 +51,7 @@ * NamespaceCondition contains details about state of namespace. */ @ApiModel(description = "NamespaceCondition contains details about state of namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NamespaceCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java index 246b606b74..4bd3920aae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceList.java @@ -54,7 +54,7 @@ * NamespaceList is a list of Namespaces. */ @ApiModel(description = "NamespaceList is a list of Namespaces.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NamespaceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java index 7838fbc1e2..88e042c2ee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceSpec.java @@ -52,7 +52,7 @@ * NamespaceSpec describes the attributes on a Namespace. */ @ApiModel(description = "NamespaceSpec describes the attributes on a Namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NamespaceSpec { public static final String SERIALIZED_NAME_FINALIZERS = "finalizers"; @SerializedName(SERIALIZED_NAME_FINALIZERS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java index a63cf7d54c..000275935c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NamespaceStatus.java @@ -53,7 +53,7 @@ * NamespaceStatus is information about the current status of a Namespace. */ @ApiModel(description = "NamespaceStatus is information about the current status of a Namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NamespaceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java index ea65fcc785..33f30f350c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkDeviceData.java @@ -52,7 +52,7 @@ * NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context. */ @ApiModel(description = "NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkDeviceData { public static final String SERIALIZED_NAME_HARDWARE_ADDRESS = "hardwareAddress"; @SerializedName(SERIALIZED_NAME_HARDWARE_ADDRESS) @@ -78,11 +78,11 @@ public V1NetworkDeviceData hardwareAddress(@jakarta.annotation.Nullable String h } /** - * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. + * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 bytes. * @return hardwareAddress */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters.") + @ApiModelProperty(value = "HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 bytes.") public String getHardwareAddress() { return hardwareAddress; } @@ -98,11 +98,11 @@ public V1NetworkDeviceData interfaceName(@jakarta.annotation.Nullable String int } /** - * InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. + * InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 bytes. * @return interfaceName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters.") + @ApiModelProperty(value = "InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 bytes.") public String getInterfaceName() { return interfaceName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java index a0df59ffb9..1ad6d44389 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicy.java @@ -52,7 +52,7 @@ * NetworkPolicy describes what network traffic is allowed for a set of Pods */ @ApiModel(description = "NetworkPolicy describes what network traffic is allowed for a set of Pods") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java index d1f9219daf..6b4b08bcff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyEgressRule.java @@ -54,7 +54,7 @@ * NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8 */ @ApiModel(description = "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkPolicyEgressRule { public static final String SERIALIZED_NAME_PORTS = "ports"; @SerializedName(SERIALIZED_NAME_PORTS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java index c555e84d87..600c8b16c5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyIngressRule.java @@ -54,7 +54,7 @@ * NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. */ @ApiModel(description = "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkPolicyIngressRule { public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java index 04d3611943..a036e44a51 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyList.java @@ -54,7 +54,7 @@ * NetworkPolicyList is a list of NetworkPolicy objects. */ @ApiModel(description = "NetworkPolicyList is a list of NetworkPolicy objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java index 725545dee1..61e5cb49c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPeer.java @@ -52,7 +52,7 @@ * NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed */ @ApiModel(description = "NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkPolicyPeer { public static final String SERIALIZED_NAME_IP_BLOCK = "ipBlock"; @SerializedName(SERIALIZED_NAME_IP_BLOCK) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java index dbfe5ab1b5..dbbe3cb68f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicyPort.java @@ -51,7 +51,7 @@ * NetworkPolicyPort describes a port to allow traffic on */ @ApiModel(description = "NetworkPolicyPort describes a port to allow traffic on") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkPolicyPort { public static final String SERIALIZED_NAME_END_PORT = "endPort"; @SerializedName(SERIALIZED_NAME_END_PORT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java index 66320e6d1f..ad702d960c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NetworkPolicySpec.java @@ -55,7 +55,7 @@ * NetworkPolicySpec provides the specification of a NetworkPolicy */ @ApiModel(description = "NetworkPolicySpec provides the specification of a NetworkPolicy") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NetworkPolicySpec { public static final String SERIALIZED_NAME_EGRESS = "egress"; @SerializedName(SERIALIZED_NAME_EGRESS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java index 64614f0e94..ef0ae5ed77 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Node.java @@ -53,7 +53,7 @@ * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). */ @ApiModel(description = "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Node implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java index 3c187c7d14..437fd500d5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAddress.java @@ -50,7 +50,7 @@ * NodeAddress contains information for the node's address. */ @ApiModel(description = "NodeAddress contains information for the node's address.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeAddress { public static final String SERIALIZED_NAME_ADDRESS = "address"; @SerializedName(SERIALIZED_NAME_ADDRESS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java index b1153e78bd..e380cc60e2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAffinity.java @@ -54,7 +54,7 @@ * Node affinity is a group of node affinity scheduling rules. */ @ApiModel(description = "Node affinity is a group of node affinity scheduling rules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatus.java new file mode 100644 index 0000000000..e63196e840 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceClaimStatus.java @@ -0,0 +1,293 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * NodeAllocatableResourceClaimStatus describes the status of node allocatable resources allocated via DRA. + */ +@ApiModel(description = "NodeAllocatableResourceClaimStatus describes the status of node allocatable resources allocated via DRA.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1NodeAllocatableResourceClaimStatus { + public static final String SERIALIZED_NAME_CONTAINERS = "containers"; + @SerializedName(SERIALIZED_NAME_CONTAINERS) + @jakarta.annotation.Nullable + private List containers = new ArrayList<>(); + + public static final String SERIALIZED_NAME_RESOURCE_CLAIM_NAME = "resourceClaimName"; + @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_NAME) + @jakarta.annotation.Nonnull + private String resourceClaimName; + + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nonnull + private Map resources = new HashMap<>(); + + public V1NodeAllocatableResourceClaimStatus() { + } + + public V1NodeAllocatableResourceClaimStatus containers(@jakarta.annotation.Nullable List containers) { + this.containers = containers; + return this; + } + + public V1NodeAllocatableResourceClaimStatus addContainersItem(String containersItem) { + if (this.containers == null) { + this.containers = new ArrayList<>(); + } + this.containers.add(containersItem); + return this; + } + + /** + * Containers lists the names of all containers in this pod that reference the claim. + * @return containers + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Containers lists the names of all containers in this pod that reference the claim.") + public List getContainers() { + return containers; + } + + public void setContainers(@jakarta.annotation.Nullable List containers) { + this.containers = containers; + } + + + public V1NodeAllocatableResourceClaimStatus resourceClaimName(@jakarta.annotation.Nonnull String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return this; + } + + /** + * ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation. + * @return resourceClaimName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.") + public String getResourceClaimName() { + return resourceClaimName; + } + + public void setResourceClaimName(@jakarta.annotation.Nonnull String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + } + + + public V1NodeAllocatableResourceClaimStatus resources(@jakarta.annotation.Nonnull Map resources) { + this.resources = resources; + return this; + } + + public V1NodeAllocatableResourceClaimStatus putResourcesItem(String key, Quantity resourcesItem) { + if (this.resources == null) { + this.resources = new HashMap<>(); + } + this.resources.put(key, resourcesItem); + return this; + } + + /** + * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim. + * @return resources + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.") + public Map getResources() { + return resources; + } + + public void setResources(@jakarta.annotation.Nonnull Map resources) { + this.resources = resources; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1NodeAllocatableResourceClaimStatus v1NodeAllocatableResourceClaimStatus = (V1NodeAllocatableResourceClaimStatus) o; + return Objects.equals(this.containers, v1NodeAllocatableResourceClaimStatus.containers) && + Objects.equals(this.resourceClaimName, v1NodeAllocatableResourceClaimStatus.resourceClaimName) && + Objects.equals(this.resources, v1NodeAllocatableResourceClaimStatus.resources); + } + + @Override + public int hashCode() { + return Objects.hash(containers, resourceClaimName, resources); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1NodeAllocatableResourceClaimStatus {\n"); + sb.append(" containers: ").append(toIndentedString(containers)).append("\n"); + sb.append(" resourceClaimName: ").append(toIndentedString(resourceClaimName)).append("\n"); + sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("containers", "resourceClaimName", "resources")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("resourceClaimName", "resources")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeAllocatableResourceClaimStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1NodeAllocatableResourceClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1NodeAllocatableResourceClaimStatus is not found in the empty JSON string", V1NodeAllocatableResourceClaimStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1NodeAllocatableResourceClaimStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeAllocatableResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1NodeAllocatableResourceClaimStatus.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("containers") != null && !jsonObj.get("containers").isJsonNull() && !jsonObj.get("containers").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `containers` to be an array in the JSON string but got `%s`", jsonObj.get("containers").toString())); + } + if (!jsonObj.get("resourceClaimName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaimName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClaimName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeAllocatableResourceClaimStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeAllocatableResourceClaimStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeAllocatableResourceClaimStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeAllocatableResourceClaimStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeAllocatableResourceClaimStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeAllocatableResourceClaimStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeAllocatableResourceClaimStatus + * @throws IOException if the JSON string is invalid with respect to V1NodeAllocatableResourceClaimStatus + */ + public static V1NodeAllocatableResourceClaimStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeAllocatableResourceClaimStatus.class); + } + + /** + * Convert an instance of V1NodeAllocatableResourceClaimStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMapping.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMapping.java new file mode 100644 index 0000000000..e529662016 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeAllocatableResourceMapping.java @@ -0,0 +1,238 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. + */ +@ApiModel(description = "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1NodeAllocatableResourceMapping { + public static final String SERIALIZED_NAME_ALLOCATION_MULTIPLIER = "allocationMultiplier"; + @SerializedName(SERIALIZED_NAME_ALLOCATION_MULTIPLIER) + @jakarta.annotation.Nullable + private Quantity allocationMultiplier; + + public static final String SERIALIZED_NAME_CAPACITY_KEY = "capacityKey"; + @SerializedName(SERIALIZED_NAME_CAPACITY_KEY) + @jakarta.annotation.Nullable + private String capacityKey; + + public V1NodeAllocatableResourceMapping() { + } + + public V1NodeAllocatableResourceMapping allocationMultiplier(@jakarta.annotation.Nullable Quantity allocationMultiplier) { + this.allocationMultiplier = allocationMultiplier; + return this; + } + + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @return allocationMultiplier + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + public Quantity getAllocationMultiplier() { + return allocationMultiplier; + } + + public void setAllocationMultiplier(@jakarta.annotation.Nullable Quantity allocationMultiplier) { + this.allocationMultiplier = allocationMultiplier; + } + + + public V1NodeAllocatableResourceMapping capacityKey(@jakarta.annotation.Nullable String capacityKey) { + this.capacityKey = capacityKey; + return this; + } + + /** + * CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\". + * @return capacityKey + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\".") + public String getCapacityKey() { + return capacityKey; + } + + public void setCapacityKey(@jakarta.annotation.Nullable String capacityKey) { + this.capacityKey = capacityKey; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1NodeAllocatableResourceMapping v1NodeAllocatableResourceMapping = (V1NodeAllocatableResourceMapping) o; + return Objects.equals(this.allocationMultiplier, v1NodeAllocatableResourceMapping.allocationMultiplier) && + Objects.equals(this.capacityKey, v1NodeAllocatableResourceMapping.capacityKey); + } + + @Override + public int hashCode() { + return Objects.hash(allocationMultiplier, capacityKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1NodeAllocatableResourceMapping {\n"); + sb.append(" allocationMultiplier: ").append(toIndentedString(allocationMultiplier)).append("\n"); + sb.append(" capacityKey: ").append(toIndentedString(capacityKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("allocationMultiplier", "capacityKey")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1NodeAllocatableResourceMapping + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1NodeAllocatableResourceMapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1NodeAllocatableResourceMapping is not found in the empty JSON string", V1NodeAllocatableResourceMapping.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1NodeAllocatableResourceMapping.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1NodeAllocatableResourceMapping` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("allocationMultiplier") != null && !jsonObj.get("allocationMultiplier").isJsonNull()) && !jsonObj.get("allocationMultiplier").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `allocationMultiplier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMultiplier").toString())); + } + if ((jsonObj.get("capacityKey") != null && !jsonObj.get("capacityKey").isJsonNull()) && !jsonObj.get("capacityKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `capacityKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("capacityKey").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1NodeAllocatableResourceMapping.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1NodeAllocatableResourceMapping' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1NodeAllocatableResourceMapping.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1NodeAllocatableResourceMapping value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1NodeAllocatableResourceMapping read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1NodeAllocatableResourceMapping given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1NodeAllocatableResourceMapping + * @throws IOException if the JSON string is invalid with respect to V1NodeAllocatableResourceMapping + */ + public static V1NodeAllocatableResourceMapping fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1NodeAllocatableResourceMapping.class); + } + + /** + * Convert an instance of V1NodeAllocatableResourceMapping to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java index e54b1c4887..ed0be066f3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeCondition.java @@ -51,7 +51,7 @@ * NodeCondition contains condition information for a node. */ @ApiModel(description = "NodeCondition contains condition information for a node.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeCondition { public static final String SERIALIZED_NAME_LAST_HEARTBEAT_TIME = "lastHeartbeatTime"; @SerializedName(SERIALIZED_NAME_LAST_HEARTBEAT_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java index f2394da659..5cf7c854fd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigSource.java @@ -51,7 +51,7 @@ * NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22 */ @ApiModel(description = "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. This API is deprecated since 1.22") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeConfigSource { public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; @SerializedName(SERIALIZED_NAME_CONFIG_MAP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java index 0b5c5f7343..25676e60e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeConfigStatus.java @@ -51,7 +51,7 @@ * NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. */ @ApiModel(description = "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeConfigStatus { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java index c4857f617e..1fa4c26649 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeDaemonEndpoints.java @@ -51,7 +51,7 @@ * NodeDaemonEndpoints lists ports opened by daemons running on the Node. */ @ApiModel(description = "NodeDaemonEndpoints lists ports opened by daemons running on the Node.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeDaemonEndpoints { public static final String SERIALIZED_NAME_KUBELET_ENDPOINT = "kubeletEndpoint"; @SerializedName(SERIALIZED_NAME_KUBELET_ENDPOINT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java index fb3f72cb02..f183246167 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeFeatures.java @@ -50,7 +50,7 @@ * NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers. */ @ApiModel(description = "NodeFeatures describes the set of features implemented by the CRI implementation. The features contained in the NodeFeatures should depend only on the cri implementation independent of runtime handlers.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeFeatures { public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY = "supplementalGroupsPolicy"; @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS_POLICY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java index f82f9f049c..be79f728ca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeList.java @@ -54,7 +54,7 @@ * NodeList is the whole list of all Nodes which have been registered with master. */ @ApiModel(description = "NodeList is the whole list of all Nodes which have been registered with master.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java index 118bc7e454..fb896b3a63 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandler.java @@ -51,7 +51,7 @@ * NodeRuntimeHandler is a set of runtime handler information. */ @ApiModel(description = "NodeRuntimeHandler is a set of runtime handler information.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeRuntimeHandler { public static final String SERIALIZED_NAME_FEATURES = "features"; @SerializedName(SERIALIZED_NAME_FEATURES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java index 0054c3e450..5cbb581e2c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeRuntimeHandlerFeatures.java @@ -50,7 +50,7 @@ * NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler. */ @ApiModel(description = "NodeRuntimeHandlerFeatures is a set of features implemented by the runtime handler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeRuntimeHandlerFeatures { public static final String SERIALIZED_NAME_RECURSIVE_READ_ONLY_MOUNTS = "recursiveReadOnlyMounts"; @SerializedName(SERIALIZED_NAME_RECURSIVE_READ_ONLY_MOUNTS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java index b712db0252..7f79aab43f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelector.java @@ -53,7 +53,7 @@ * A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. */ @ApiModel(description = "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeSelector { public static final String SERIALIZED_NAME_NODE_SELECTOR_TERMS = "nodeSelectorTerms"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR_TERMS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java index bdeee84726..4979ea0096 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorRequirement.java @@ -52,7 +52,7 @@ * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ @ApiModel(description = "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeSelectorRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java index 8870829176..70b08289d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSelectorTerm.java @@ -53,7 +53,7 @@ * A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. */ @ApiModel(description = "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeSelectorTerm { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java index 1cc607c187..3207a52fcb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSpec.java @@ -54,7 +54,7 @@ * NodeSpec describes the attributes that a node is created with. */ @ApiModel(description = "NodeSpec describes the attributes that a node is created with.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeSpec { public static final String SERIALIZED_NAME_CONFIG_SOURCE = "configSource"; @SerializedName(SERIALIZED_NAME_CONFIG_SOURCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java index 8ae9bb09d1..7c1c431f68 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeStatus.java @@ -64,7 +64,7 @@ * NodeStatus is information about the current status of a node. */ @ApiModel(description = "NodeStatus is information about the current status of a node.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeStatus { public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; @SerializedName(SERIALIZED_NAME_ADDRESSES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java index 677731e1b5..b0fce1cb10 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSwapStatus.java @@ -50,7 +50,7 @@ * NodeSwapStatus represents swap memory information. */ @ApiModel(description = "NodeSwapStatus represents swap memory information.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeSwapStatus { public static final String SERIALIZED_NAME_CAPACITY = "capacity"; @SerializedName(SERIALIZED_NAME_CAPACITY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java index 76b3c967b8..49194ee569 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NodeSystemInfo.java @@ -51,7 +51,7 @@ * NodeSystemInfo is a set of ids/uuids to uniquely identify the node. */ @ApiModel(description = "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NodeSystemInfo { public static final String SERIALIZED_NAME_ARCHITECTURE = "architecture"; @SerializedName(SERIALIZED_NAME_ARCHITECTURE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java index 608e87457f..94b499f5c7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceAttributes.java @@ -50,7 +50,7 @@ * NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface */ @ApiModel(description = "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NonResourceAttributes { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) @@ -71,11 +71,11 @@ public V1NonResourceAttributes path(@jakarta.annotation.Nullable String path) { } /** - * Path is the URL path of the request + * path is the URL path of the request * @return path */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Path is the URL path of the request") + @ApiModelProperty(value = "path is the URL path of the request") public String getPath() { return path; } @@ -91,11 +91,11 @@ public V1NonResourceAttributes verb(@jakarta.annotation.Nullable String verb) { } /** - * Verb is the standard HTTP verb + * verb is the standard HTTP verb * @return verb */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Verb is the standard HTTP verb") + @ApiModelProperty(value = "verb is the standard HTTP verb") public String getVerb() { return verb; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java index f60e957b4d..69d669e588 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourcePolicyRule.java @@ -52,7 +52,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NonResourcePolicyRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java index 3504fa3548..cbd8424e65 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1NonResourceRule.java @@ -52,7 +52,7 @@ * NonResourceRule holds information that describes a rule for the non-resource */ @ApiModel(description = "NonResourceRule holds information that describes a rule for the non-resource") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1NonResourceRule { public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) @@ -81,11 +81,11 @@ public V1NonResourceRule addNonResourceURLsItem(String nonResourceURLsItem) { } /** - * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. + * nonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. * @return nonResourceURLs */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.") + @ApiModelProperty(value = "nonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.") public List getNonResourceURLs() { return nonResourceURLs; } @@ -109,11 +109,11 @@ public V1NonResourceRule addVerbsItem(String verbsItem) { } /** - * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. + * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all. * @return verbs */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.") + @ApiModelProperty(required = true, value = "verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.") public List getVerbs() { return verbs; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java index f08b93836e..48485f4113 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectFieldSelector.java @@ -50,7 +50,7 @@ * ObjectFieldSelector selects an APIVersioned field of an object. */ @ApiModel(description = "ObjectFieldSelector selects an APIVersioned field of an object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ObjectFieldSelector { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java index 9188abc7bd..b036a00033 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectMeta.java @@ -57,7 +57,7 @@ * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. */ @ApiModel(description = "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ObjectMeta { public static final String SERIALIZED_NAME_ANNOTATIONS = "annotations"; @SerializedName(SERIALIZED_NAME_ANNOTATIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java index c478427086..da7f547b94 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ObjectReference.java @@ -50,7 +50,7 @@ * ObjectReference contains enough information to let you inspect or modify the referred object. */ @ApiModel(description = "ObjectReference contains enough information to let you inspect or modify the referred object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java index 26b66e33b8..b4b915d924 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OpaqueDeviceConfiguration.java @@ -50,7 +50,7 @@ * OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. */ @ApiModel(description = "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1OpaqueDeviceConfiguration { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java index 4f0c8acfd6..4b26f8d21e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Overhead.java @@ -53,7 +53,7 @@ * Overhead structure represents the resource overhead associated with running a pod. */ @ApiModel(description = "Overhead structure represents the resource overhead associated with running a pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Overhead { public static final String SERIALIZED_NAME_POD_FIXED = "podFixed"; @SerializedName(SERIALIZED_NAME_POD_FIXED) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java index 4dcfc19553..190802da17 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1OwnerReference.java @@ -50,7 +50,7 @@ * OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. */ @ApiModel(description = "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1OwnerReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java index ed7feffabd..8fbe872683 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamKind.java @@ -50,7 +50,7 @@ * ParamKind is a tuple of Group Kind and Version. */ @ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,11 +71,11 @@ public V1ParamKind apiVersion(@jakarta.annotation.Nullable String apiVersion) { } /** - * APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. + * apiVersion is the API group version the resources belong to. In format of \"group/version\". Required. * @return apiVersion */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.") + @ApiModelProperty(value = "apiVersion is the API group version the resources belong to. In format of \"group/version\". Required.") public String getApiVersion() { return apiVersion; } @@ -91,11 +91,11 @@ public V1ParamKind kind(@jakarta.annotation.Nullable String kind) { } /** - * Kind is the API kind the resources belong to. Required. + * kind is the API kind the resources belong to. Required. * @return kind */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Kind is the API kind the resources belong to. Required.") + @ApiModelProperty(value = "kind is the API kind the resources belong to. Required.") public String getKind() { return kind; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java index 53a2e69aff..cd33c5c02f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParamRef.java @@ -51,7 +51,7 @@ * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. */ @ApiModel(description = "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ParamRef { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -122,11 +122,11 @@ public V1ParamRef parameterNotFoundAction(@jakarta.annotation.Nullable String pa } /** - * `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required + * parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required * @return parameterNotFoundAction */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required") + @ApiModelProperty(value = "parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required") public String getParameterNotFoundAction() { return parameterNotFoundAction; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java index 5881cce68c..7eec2038d6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ParentReference.java @@ -50,7 +50,7 @@ * ParentReference describes a reference to a parent object. */ @ApiModel(description = "ParentReference describes a reference to a parent object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ParentReference { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java index df5d293ee6..1c25aef0d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolume.java @@ -53,7 +53,7 @@ * PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes */ @ApiModel(description = "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolume implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java index 9ec68566cb..cdf4b7318a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaim.java @@ -53,7 +53,7 @@ * PersistentVolumeClaim is a user's request for and claim to a persistent volume */ @ApiModel(description = "PersistentVolumeClaim is a user's request for and claim to a persistent volume") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java index ea02139b46..558d0397fc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimCondition.java @@ -51,7 +51,7 @@ * PersistentVolumeClaimCondition contains details about state of pvc */ @ApiModel(description = "PersistentVolumeClaimCondition contains details about state of pvc") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeClaimCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java index 0d0c2761f3..ef3f169b5e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimList.java @@ -54,7 +54,7 @@ * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. */ @ApiModel(description = "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java index add21450ec..4f5128b22c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimSpec.java @@ -56,7 +56,7 @@ * PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes */ @ApiModel(description = "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeClaimSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java index 17b916d6e4..e67f70f37b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimStatus.java @@ -57,7 +57,7 @@ * PersistentVolumeClaimStatus is the current status of a persistent volume claim. */ @ApiModel(description = "PersistentVolumeClaimStatus is the current status of a persistent volume claim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeClaimStatus { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java index c9c419b320..6f278b61af 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimTemplate.java @@ -52,7 +52,7 @@ * PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource. */ @ApiModel(description = "PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeClaimTemplate { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java index 38da2d4879..e7cff57db9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeClaimVolumeSource.java @@ -50,7 +50,7 @@ * PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system). */ @ApiModel(description = "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeClaimVolumeSource { public static final String SERIALIZED_NAME_CLAIM_NAME = "claimName"; @SerializedName(SERIALIZED_NAME_CLAIM_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java index 1c7a22b4df..708f7c0e7c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeList.java @@ -54,7 +54,7 @@ * PersistentVolumeList is a list of PersistentVolume items. */ @ApiModel(description = "PersistentVolumeList is a list of PersistentVolume items.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java index 4434f4d29d..39976a5637 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeSpec.java @@ -79,7 +79,7 @@ * PersistentVolumeSpec is the specification of a persistent volume. */ @ApiModel(description = "PersistentVolumeSpec is the specification of a persistent volume.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeSpec { public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; @SerializedName(SERIALIZED_NAME_ACCESS_MODES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java index 513cb7d8cf..75549df1b1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PersistentVolumeStatus.java @@ -51,7 +51,7 @@ * PersistentVolumeStatus is the current status of a persistent volume. */ @ApiModel(description = "PersistentVolumeStatus is the current status of a persistent volume.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PersistentVolumeStatus { public static final String SERIALIZED_NAME_LAST_PHASE_TRANSITION_TIME = "lastPhaseTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_PHASE_TRANSITION_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java index d9ef813a7b..dc424de3e9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PhotonPersistentDiskVolumeSource.java @@ -50,7 +50,7 @@ * Represents a Photon Controller persistent disk resource. */ @ApiModel(description = "Represents a Photon Controller persistent disk resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PhotonPersistentDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java index b0c46846a3..2a41226264 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Pod.java @@ -53,7 +53,7 @@ * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. */ @ApiModel(description = "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Pod implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java index ce4e3fe50f..4a4949830e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinity.java @@ -54,7 +54,7 @@ * Pod affinity is a group of inter pod affinity scheduling rules. */ @ApiModel(description = "Pod affinity is a group of inter pod affinity scheduling rules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java index 4957608c86..ef45635041 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAffinityTerm.java @@ -53,7 +53,7 @@ * Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running */ @ApiModel(description = "Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key matches that of any node on which a pod of the set of pods is running") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodAffinityTerm { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java index 9eba1e5578..73a4179901 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodAntiAffinity.java @@ -54,7 +54,7 @@ * Pod anti affinity is a group of inter pod anti affinity scheduling rules. */ @ApiModel(description = "Pod anti affinity is a group of inter pod anti affinity scheduling rules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodAntiAffinity { public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java index 2f039e09ec..cc63b81d10 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCertificateProjection.java @@ -52,7 +52,7 @@ * PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem. */ @ApiModel(description = "PodCertificateProjection provides a private key and X.509 certificate in the pod filesystem.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodCertificateProjection { public static final String SERIALIZED_NAME_CERTIFICATE_CHAIN_PATH = "certificateChainPath"; @SerializedName(SERIALIZED_NAME_CERTIFICATE_CHAIN_PATH) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java index 5e2c1e1585..e4312ed273 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodCondition.java @@ -51,7 +51,7 @@ * PodCondition contains details for the current condition of this pod. */ @ApiModel(description = "PodCondition contains details for the current condition of this pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodCondition { public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) @@ -157,11 +157,11 @@ public V1PodCondition observedGeneration(@jakarta.annotation.Nullable Long obser } /** - * If set, this represents the .metadata.generation that the pod condition was set based upon. The PodObservedGenerationTracking feature gate must be enabled to use this field. + * If set, this represents the .metadata.generation that the pod condition was set based upon. * @return observedGeneration */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "If set, this represents the .metadata.generation that the pod condition was set based upon. The PodObservedGenerationTracking feature gate must be enabled to use this field.") + @ApiModelProperty(value = "If set, this represents the .metadata.generation that the pod condition was set based upon.") public Long getObservedGeneration() { return observedGeneration; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java index 02d0334035..d0064667b2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfig.java @@ -53,7 +53,7 @@ * PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy. */ @ApiModel(description = "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodDNSConfig { public static final String SERIALIZED_NAME_NAMESERVERS = "nameservers"; @SerializedName(SERIALIZED_NAME_NAMESERVERS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java index 478f66b9fe..c203f1a919 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDNSConfigOption.java @@ -50,7 +50,7 @@ * PodDNSConfigOption defines DNS resolver options of a pod. */ @ApiModel(description = "PodDNSConfigOption defines DNS resolver options of a pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodDNSConfigOption { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java index 454d0e20c4..7668e640cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudget.java @@ -53,7 +53,7 @@ * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods */ @ApiModel(description = "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodDisruptionBudget implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java index 525e7cf670..d496245e4f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetList.java @@ -54,7 +54,7 @@ * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. */ @ApiModel(description = "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodDisruptionBudgetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java index 02c08b8cf6..b1439fe1ec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetSpec.java @@ -52,7 +52,7 @@ * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. */ @ApiModel(description = "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodDisruptionBudgetSpec { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java index 0be8150c81..0e529d433a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodDisruptionBudgetStatus.java @@ -56,7 +56,7 @@ * PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. */ @ApiModel(description = "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodDisruptionBudgetStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -65,12 +65,12 @@ public class V1PodDisruptionBudgetStatus { public static final String SERIALIZED_NAME_CURRENT_HEALTHY = "currentHealthy"; @SerializedName(SERIALIZED_NAME_CURRENT_HEALTHY) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private Integer currentHealthy; public static final String SERIALIZED_NAME_DESIRED_HEALTHY = "desiredHealthy"; @SerializedName(SERIALIZED_NAME_DESIRED_HEALTHY) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private Integer desiredHealthy; public static final String SERIALIZED_NAME_DISRUPTED_PODS = "disruptedPods"; @@ -80,12 +80,12 @@ public class V1PodDisruptionBudgetStatus { public static final String SERIALIZED_NAME_DISRUPTIONS_ALLOWED = "disruptionsAllowed"; @SerializedName(SERIALIZED_NAME_DISRUPTIONS_ALLOWED) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private Integer disruptionsAllowed; public static final String SERIALIZED_NAME_EXPECTED_PODS = "expectedPods"; @SerializedName(SERIALIZED_NAME_EXPECTED_PODS) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private Integer expectedPods; public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; @@ -124,7 +124,7 @@ public void setConditions(@jakarta.annotation.Nullable List conditi } - public V1PodDisruptionBudgetStatus currentHealthy(@jakarta.annotation.Nonnull Integer currentHealthy) { + public V1PodDisruptionBudgetStatus currentHealthy(@jakarta.annotation.Nullable Integer currentHealthy) { this.currentHealthy = currentHealthy; return this; } @@ -133,18 +133,18 @@ public V1PodDisruptionBudgetStatus currentHealthy(@jakarta.annotation.Nonnull In * current number of healthy pods * @return currentHealthy */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "current number of healthy pods") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "current number of healthy pods") public Integer getCurrentHealthy() { return currentHealthy; } - public void setCurrentHealthy(@jakarta.annotation.Nonnull Integer currentHealthy) { + public void setCurrentHealthy(@jakarta.annotation.Nullable Integer currentHealthy) { this.currentHealthy = currentHealthy; } - public V1PodDisruptionBudgetStatus desiredHealthy(@jakarta.annotation.Nonnull Integer desiredHealthy) { + public V1PodDisruptionBudgetStatus desiredHealthy(@jakarta.annotation.Nullable Integer desiredHealthy) { this.desiredHealthy = desiredHealthy; return this; } @@ -153,13 +153,13 @@ public V1PodDisruptionBudgetStatus desiredHealthy(@jakarta.annotation.Nonnull In * minimum desired number of healthy pods * @return desiredHealthy */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "minimum desired number of healthy pods") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "minimum desired number of healthy pods") public Integer getDesiredHealthy() { return desiredHealthy; } - public void setDesiredHealthy(@jakarta.annotation.Nonnull Integer desiredHealthy) { + public void setDesiredHealthy(@jakarta.annotation.Nullable Integer desiredHealthy) { this.desiredHealthy = desiredHealthy; } @@ -192,7 +192,7 @@ public void setDisruptedPods(@jakarta.annotation.Nullable Map(Arrays.asList("conditions", "currentHealthy", "desiredHealthy", "disruptedPods", "disruptionsAllowed", "expectedPods", "observedGeneration")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("currentHealthy", "desiredHealthy", "disruptionsAllowed", "expectedPods")); + openapiRequiredFields = new HashSet(0); } /** @@ -334,13 +334,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodDisruptionBudgetStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1PodDisruptionBudgetStatus.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java index 93a660ad40..c2b43439fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodExtendedResourceClaimStatus.java @@ -53,7 +53,7 @@ * PodExtendedResourceClaimStatus is stored in the PodStatus for the extended resource requests backed by DRA. It stores the generated name for the corresponding special ResourceClaim created by the scheduler. */ @ApiModel(description = "PodExtendedResourceClaimStatus is stored in the PodStatus for the extended resource requests backed by DRA. It stores the generated name for the corresponding special ResourceClaim created by the scheduler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodExtendedResourceClaimStatus { public static final String SERIALIZED_NAME_REQUEST_MAPPINGS = "requestMappings"; @SerializedName(SERIALIZED_NAME_REQUEST_MAPPINGS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java index 028b95ece6..ac984a4159 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicy.java @@ -53,7 +53,7 @@ * PodFailurePolicy describes how failed pods influence the backoffLimit. */ @ApiModel(description = "PodFailurePolicy describes how failed pods influence the backoffLimit.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodFailurePolicy { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java index 5c3358b1c9..eeb1af4b9d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnExitCodesRequirement.java @@ -52,7 +52,7 @@ * PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check. */ @ApiModel(description = "PodFailurePolicyOnExitCodesRequirement describes the requirement for handling a failed pod based on its container exit codes. In particular, it lookups the .state.terminated.exitCode for each app container and init container status, represented by the .status.containerStatuses and .status.initContainerStatuses fields in the Pod status, respectively. Containers completed with success (exit code 0) are excluded from the requirement check.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodFailurePolicyOnExitCodesRequirement { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java index 6e614785a6..c891f39a0f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyOnPodConditionsPattern.java @@ -50,7 +50,7 @@ * PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type. */ @ApiModel(description = "PodFailurePolicyOnPodConditionsPattern describes a pattern for matching an actual pod condition type.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodFailurePolicyOnPodConditionsPattern { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java index c37e66fc40..d05400ce2f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodFailurePolicyRule.java @@ -54,7 +54,7 @@ * PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule. */ @ApiModel(description = "PodFailurePolicyRule describes how a pod failure is handled when the requirements are met. One of onExitCodes and onPodConditions, but not both, can be used in each rule.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodFailurePolicyRule { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java index 87754245d6..0d1ca3988d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodIP.java @@ -50,7 +50,7 @@ * PodIP represents a single IP address allocated to the pod. */ @ApiModel(description = "PodIP represents a single IP address allocated to the pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodIP { public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java index 03ea126dbf..96244fb000 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodList.java @@ -54,7 +54,7 @@ * PodList is a list of Pods. */ @ApiModel(description = "PodList is a list of Pods.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java index 8b7aca653b..c1c7028d94 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodOS.java @@ -50,7 +50,7 @@ * PodOS defines the OS parameters of a pod. */ @ApiModel(description = "PodOS defines the OS parameters of a pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodOS { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java index a53997ff30..01b4e80290 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodReadinessGate.java @@ -50,7 +50,7 @@ * PodReadinessGate contains the reference to a pod condition */ @ApiModel(description = "PodReadinessGate contains the reference to a pod condition") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodReadinessGate { public static final String SERIALIZED_NAME_CONDITION_TYPE = "conditionType"; @SerializedName(SERIALIZED_NAME_CONDITION_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java index c5e3499240..17a439341c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaim.java @@ -47,10 +47,10 @@ import io.kubernetes.client.openapi.JSON; /** - * PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. + * PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. When the DRAWorkloadResourceClaims feature gate is enabled and this Pod belongs to a PodGroup, a PodResourceClaim is matched to a PodGroupResourceClaim if all of their fields are equal (Name, ResourceClaimName, and ResourceClaimTemplateName). A matched claim references a single ResourceClaim shared across all Pods in the PodGroup, reserved for the PodGroup in ResourceClaimStatus.ReservedFor rather than for individual Pods. */ -@ApiModel(description = "PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@ApiModel(description = "PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod. It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name. When the DRAWorkloadResourceClaims feature gate is enabled and this Pod belongs to a PodGroup, a PodResourceClaim is matched to a PodGroupResourceClaim if all of their fields are equal (Name, ResourceClaimName, and ResourceClaimTemplateName). A matched claim references a single ResourceClaim shared across all Pods in the PodGroup, reserved for the PodGroup in ResourceClaimStatus.ReservedFor rather than for individual Pods.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodResourceClaim { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -116,11 +116,11 @@ public V1PodResourceClaim resourceClaimTemplateName(@jakarta.annotation.Nullable } /** - * ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. + * ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. When the DRAWorkloadResourceClaims feature gate is enabled and the pod belongs to a PodGroup that defines a PodGroupResourceClaim with the same Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the ResourceClaim generated for the PodGroup. All pods in the group that define an equivalent PodResourceClaim matching the PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same generated ResourceClaim. ResourceClaims generated for a PodGroup are owned by the PodGroup and their lifecycles are tied to the PodGroup instead of any individual pod. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. * @return resourceClaimTemplateName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.") + @ApiModelProperty(value = "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. When the DRAWorkloadResourceClaims feature gate is enabled and the pod belongs to a PodGroup that defines a PodGroupResourceClaim with the same Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the ResourceClaim generated for the PodGroup. All pods in the group that define an equivalent PodResourceClaim matching the PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same generated ResourceClaim. ResourceClaims generated for a PodGroup are owned by the PodGroup and their lifecycles are tied to the PodGroup instead of any individual pod. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.") public String getResourceClaimTemplateName() { return resourceClaimTemplateName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java index c8d9353a61..f8b1660b31 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodResourceClaimStatus.java @@ -50,7 +50,7 @@ * PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. */ @ApiModel(description = "PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodResourceClaimStatus { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -91,11 +91,11 @@ public V1PodResourceClaimStatus resourceClaimName(@jakarta.annotation.Nullable S } /** - * ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. + * ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. When the DRAWorkloadResourceClaims feature is enabled and the corresponding PodResourceClaim matches a PodGroupResourceClaim made by the Pod's PodGroup, then this is the name of the ResourceClaim generated and reserved for the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. * @return resourceClaimName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.") + @ApiModelProperty(value = "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. When the DRAWorkloadResourceClaims feature is enabled and the corresponding PodResourceClaim matches a PodGroupResourceClaim made by the Pod's PodGroup, then this is the name of the ResourceClaim generated and reserved for the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.") public String getResourceClaimName() { return resourceClaimName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java index e534b39089..1311ab5f74 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGate.java @@ -50,7 +50,7 @@ * PodSchedulingGate is associated to a Pod to guard its scheduling. */ @ApiModel(description = "PodSchedulingGate is associated to a Pod to guard its scheduling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodSchedulingGate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroup.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroup.java new file mode 100644 index 0000000000..9272200165 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSchedulingGroup.java @@ -0,0 +1,207 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * PodSchedulingGroup identifies the runtime scheduling group instance that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics. Exactly one field must be specified. + */ +@ApiModel(description = "PodSchedulingGroup identifies the runtime scheduling group instance that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics. Exactly one field must be specified.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1PodSchedulingGroup { + public static final String SERIALIZED_NAME_POD_GROUP_NAME = "podGroupName"; + @SerializedName(SERIALIZED_NAME_POD_GROUP_NAME) + @jakarta.annotation.Nullable + private String podGroupName; + + public V1PodSchedulingGroup() { + } + + public V1PodSchedulingGroup podGroupName(@jakarta.annotation.Nullable String podGroupName) { + this.podGroupName = podGroupName; + return this; + } + + /** + * PodGroupName specifies the name of the standalone PodGroup object that represents the runtime instance of this group. Must be a DNS subdomain. + * @return podGroupName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "PodGroupName specifies the name of the standalone PodGroup object that represents the runtime instance of this group. Must be a DNS subdomain.") + public String getPodGroupName() { + return podGroupName; + } + + public void setPodGroupName(@jakarta.annotation.Nullable String podGroupName) { + this.podGroupName = podGroupName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1PodSchedulingGroup v1PodSchedulingGroup = (V1PodSchedulingGroup) o; + return Objects.equals(this.podGroupName, v1PodSchedulingGroup.podGroupName); + } + + @Override + public int hashCode() { + return Objects.hash(podGroupName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1PodSchedulingGroup {\n"); + sb.append(" podGroupName: ").append(toIndentedString(podGroupName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("podGroupName")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1PodSchedulingGroup + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1PodSchedulingGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1PodSchedulingGroup is not found in the empty JSON string", V1PodSchedulingGroup.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1PodSchedulingGroup.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PodSchedulingGroup` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("podGroupName") != null && !jsonObj.get("podGroupName").isJsonNull()) && !jsonObj.get("podGroupName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podGroupName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podGroupName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1PodSchedulingGroup.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1PodSchedulingGroup' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1PodSchedulingGroup.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1PodSchedulingGroup value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1PodSchedulingGroup read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1PodSchedulingGroup given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1PodSchedulingGroup + * @throws IOException if the JSON string is invalid with respect to V1PodSchedulingGroup + */ + public static V1PodSchedulingGroup fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1PodSchedulingGroup.class); + } + + /** + * Convert an instance of V1PodSchedulingGroup to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java index e25bf2ab8d..8a4a45767b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSecurityContext.java @@ -57,7 +57,7 @@ * PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext. */ @ApiModel(description = "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodSecurityContext { public static final String SERIALIZED_NAME_APP_ARMOR_PROFILE = "appArmorProfile"; @SerializedName(SERIALIZED_NAME_APP_ARMOR_PROFILE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java index 648188d6ba..fb46cc193e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodSpec.java @@ -29,12 +29,12 @@ import io.kubernetes.client.openapi.models.V1PodReadinessGate; import io.kubernetes.client.openapi.models.V1PodResourceClaim; import io.kubernetes.client.openapi.models.V1PodSchedulingGate; +import io.kubernetes.client.openapi.models.V1PodSchedulingGroup; import io.kubernetes.client.openapi.models.V1PodSecurityContext; import io.kubernetes.client.openapi.models.V1ResourceRequirements; import io.kubernetes.client.openapi.models.V1Toleration; import io.kubernetes.client.openapi.models.V1TopologySpreadConstraint; import io.kubernetes.client.openapi.models.V1Volume; -import io.kubernetes.client.openapi.models.V1WorkloadReference; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -71,7 +71,7 @@ * PodSpec is a description of a pod. */ @ApiModel(description = "PodSpec is a description of a pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodSpec { public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) @@ -228,6 +228,11 @@ public class V1PodSpec { @jakarta.annotation.Nullable private List schedulingGates = new ArrayList<>(); + public static final String SERIALIZED_NAME_SCHEDULING_GROUP = "schedulingGroup"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_GROUP) + @jakarta.annotation.Nullable + private V1PodSchedulingGroup schedulingGroup; + public static final String SERIALIZED_NAME_SECURITY_CONTEXT = "securityContext"; @SerializedName(SERIALIZED_NAME_SECURITY_CONTEXT) @jakarta.annotation.Nullable @@ -278,11 +283,6 @@ public class V1PodSpec { @jakarta.annotation.Nullable private List volumes = new ArrayList<>(); - public static final String SERIALIZED_NAME_WORKLOAD_REF = "workloadRef"; - @SerializedName(SERIALIZED_NAME_WORKLOAD_REF) - @jakarta.annotation.Nullable - private V1WorkloadReference workloadRef; - public V1PodSpec() { } @@ -556,11 +556,11 @@ public V1PodSpec hostUsers(@jakarta.annotation.Nullable Boolean hostUsers) { } /** - * Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. + * Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. * @return hostUsers */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.") + @ApiModelProperty(value = "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host.") public Boolean getHostUsers() { return hostUsers; } @@ -986,6 +986,26 @@ public void setSchedulingGates(@jakarta.annotation.Nullable List volumes) { } - public V1PodSpec workloadRef(@jakarta.annotation.Nullable V1WorkloadReference workloadRef) { - this.workloadRef = workloadRef; - return this; - } - - /** - * Get workloadRef - * @return workloadRef - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") - public V1WorkloadReference getWorkloadRef() { - return workloadRef; - } - - public void setWorkloadRef(@jakarta.annotation.Nullable V1WorkloadReference workloadRef) { - this.workloadRef = workloadRef; - } - - @Override public boolean equals(Object o) { @@ -1271,6 +1271,7 @@ public boolean equals(Object o) { Objects.equals(this.runtimeClassName, v1PodSpec.runtimeClassName) && Objects.equals(this.schedulerName, v1PodSpec.schedulerName) && Objects.equals(this.schedulingGates, v1PodSpec.schedulingGates) && + Objects.equals(this.schedulingGroup, v1PodSpec.schedulingGroup) && Objects.equals(this.securityContext, v1PodSpec.securityContext) && Objects.equals(this.serviceAccount, v1PodSpec.serviceAccount) && Objects.equals(this.serviceAccountName, v1PodSpec.serviceAccountName) && @@ -1280,13 +1281,12 @@ public boolean equals(Object o) { Objects.equals(this.terminationGracePeriodSeconds, v1PodSpec.terminationGracePeriodSeconds) && Objects.equals(this.tolerations, v1PodSpec.tolerations) && Objects.equals(this.topologySpreadConstraints, v1PodSpec.topologySpreadConstraints) && - Objects.equals(this.volumes, v1PodSpec.volumes) && - Objects.equals(this.workloadRef, v1PodSpec.workloadRef); + Objects.equals(this.volumes, v1PodSpec.volumes); } @Override public int hashCode() { - return Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, hostnameOverride, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, resources, restartPolicy, runtimeClassName, schedulerName, schedulingGates, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes, workloadRef); + return Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, ephemeralContainers, hostAliases, hostIPC, hostNetwork, hostPID, hostUsers, hostname, hostnameOverride, imagePullSecrets, initContainers, nodeName, nodeSelector, os, overhead, preemptionPolicy, priority, priorityClassName, readinessGates, resourceClaims, resources, restartPolicy, runtimeClassName, schedulerName, schedulingGates, schedulingGroup, securityContext, serviceAccount, serviceAccountName, setHostnameAsFQDN, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, topologySpreadConstraints, volumes); } @Override @@ -1324,6 +1324,7 @@ public String toString() { sb.append(" runtimeClassName: ").append(toIndentedString(runtimeClassName)).append("\n"); sb.append(" schedulerName: ").append(toIndentedString(schedulerName)).append("\n"); sb.append(" schedulingGates: ").append(toIndentedString(schedulingGates)).append("\n"); + sb.append(" schedulingGroup: ").append(toIndentedString(schedulingGroup)).append("\n"); sb.append(" securityContext: ").append(toIndentedString(securityContext)).append("\n"); sb.append(" serviceAccount: ").append(toIndentedString(serviceAccount)).append("\n"); sb.append(" serviceAccountName: ").append(toIndentedString(serviceAccountName)).append("\n"); @@ -1334,7 +1335,6 @@ public String toString() { sb.append(" tolerations: ").append(toIndentedString(tolerations)).append("\n"); sb.append(" topologySpreadConstraints: ").append(toIndentedString(topologySpreadConstraints)).append("\n"); sb.append(" volumes: ").append(toIndentedString(volumes)).append("\n"); - sb.append(" workloadRef: ").append(toIndentedString(workloadRef)).append("\n"); sb.append("}"); return sb.toString(); } @@ -1356,7 +1356,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("activeDeadlineSeconds", "affinity", "automountServiceAccountToken", "containers", "dnsConfig", "dnsPolicy", "enableServiceLinks", "ephemeralContainers", "hostAliases", "hostIPC", "hostNetwork", "hostPID", "hostUsers", "hostname", "hostnameOverride", "imagePullSecrets", "initContainers", "nodeName", "nodeSelector", "os", "overhead", "preemptionPolicy", "priority", "priorityClassName", "readinessGates", "resourceClaims", "resources", "restartPolicy", "runtimeClassName", "schedulerName", "schedulingGates", "securityContext", "serviceAccount", "serviceAccountName", "setHostnameAsFQDN", "shareProcessNamespace", "subdomain", "terminationGracePeriodSeconds", "tolerations", "topologySpreadConstraints", "volumes", "workloadRef")); + openapiFields = new HashSet(Arrays.asList("activeDeadlineSeconds", "affinity", "automountServiceAccountToken", "containers", "dnsConfig", "dnsPolicy", "enableServiceLinks", "ephemeralContainers", "hostAliases", "hostIPC", "hostNetwork", "hostPID", "hostUsers", "hostname", "hostnameOverride", "imagePullSecrets", "initContainers", "nodeName", "nodeSelector", "os", "overhead", "preemptionPolicy", "priority", "priorityClassName", "readinessGates", "resourceClaims", "resources", "restartPolicy", "runtimeClassName", "schedulerName", "schedulingGates", "schedulingGroup", "securityContext", "serviceAccount", "serviceAccountName", "setHostnameAsFQDN", "shareProcessNamespace", "subdomain", "terminationGracePeriodSeconds", "tolerations", "topologySpreadConstraints", "volumes")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("containers")); @@ -1541,6 +1541,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } + // validate the optional field `schedulingGroup` + if (jsonObj.get("schedulingGroup") != null && !jsonObj.get("schedulingGroup").isJsonNull()) { + V1PodSchedulingGroup.validateJsonElement(jsonObj.get("schedulingGroup")); + } // validate the optional field `securityContext` if (jsonObj.get("securityContext") != null && !jsonObj.get("securityContext").isJsonNull()) { V1PodSecurityContext.validateJsonElement(jsonObj.get("securityContext")); @@ -1596,10 +1600,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti }; } } - // validate the optional field `workloadRef` - if (jsonObj.get("workloadRef") != null && !jsonObj.get("workloadRef").isJsonNull()) { - V1WorkloadReference.validateJsonElement(jsonObj.get("workloadRef")); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java index 7736a64074..c332ccc663 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodStatus.java @@ -21,6 +21,7 @@ import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.openapi.models.V1ContainerStatus; import io.kubernetes.client.openapi.models.V1HostIP; +import io.kubernetes.client.openapi.models.V1NodeAllocatableResourceClaimStatus; import io.kubernetes.client.openapi.models.V1PodCondition; import io.kubernetes.client.openapi.models.V1PodExtendedResourceClaimStatus; import io.kubernetes.client.openapi.models.V1PodIP; @@ -63,7 +64,7 @@ * PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane. */ @ApiModel(description = "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodStatus { public static final String SERIALIZED_NAME_ALLOCATED_RESOURCES = "allocatedResources"; @SerializedName(SERIALIZED_NAME_ALLOCATED_RESOURCES) @@ -110,6 +111,11 @@ public class V1PodStatus { @jakarta.annotation.Nullable private String message; + public static final String SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCE_CLAIM_STATUSES = "nodeAllocatableResourceClaimStatuses"; + @SerializedName(SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCE_CLAIM_STATUSES) + @jakarta.annotation.Nullable + private List nodeAllocatableResourceClaimStatuses = new ArrayList<>(); + public static final String SERIALIZED_NAME_NOMINATED_NODE_NAME = "nominatedNodeName"; @SerializedName(SERIALIZED_NAME_NOMINATED_NODE_NAME) @jakarta.annotation.Nullable @@ -396,6 +402,34 @@ public void setMessage(@jakarta.annotation.Nullable String message) { } + public V1PodStatus nodeAllocatableResourceClaimStatuses(@jakarta.annotation.Nullable List nodeAllocatableResourceClaimStatuses) { + this.nodeAllocatableResourceClaimStatuses = nodeAllocatableResourceClaimStatuses; + return this; + } + + public V1PodStatus addNodeAllocatableResourceClaimStatusesItem(V1NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatusesItem) { + if (this.nodeAllocatableResourceClaimStatuses == null) { + this.nodeAllocatableResourceClaimStatuses = new ArrayList<>(); + } + this.nodeAllocatableResourceClaimStatuses.add(nodeAllocatableResourceClaimStatusesItem); + return this; + } + + /** + * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources that were allocated for this pod through DRA claims. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. + * @return nodeAllocatableResourceClaimStatuses + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources that were allocated for this pod through DRA claims. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages.") + public List getNodeAllocatableResourceClaimStatuses() { + return nodeAllocatableResourceClaimStatuses; + } + + public void setNodeAllocatableResourceClaimStatuses(@jakarta.annotation.Nullable List nodeAllocatableResourceClaimStatuses) { + this.nodeAllocatableResourceClaimStatuses = nodeAllocatableResourceClaimStatuses; + } + + public V1PodStatus nominatedNodeName(@jakarta.annotation.Nullable String nominatedNodeName) { this.nominatedNodeName = nominatedNodeName; return this; @@ -651,6 +685,7 @@ public boolean equals(Object o) { Objects.equals(this.hostIPs, v1PodStatus.hostIPs) && Objects.equals(this.initContainerStatuses, v1PodStatus.initContainerStatuses) && Objects.equals(this.message, v1PodStatus.message) && + Objects.equals(this.nodeAllocatableResourceClaimStatuses, v1PodStatus.nodeAllocatableResourceClaimStatuses) && Objects.equals(this.nominatedNodeName, v1PodStatus.nominatedNodeName) && Objects.equals(this.observedGeneration, v1PodStatus.observedGeneration) && Objects.equals(this.phase, v1PodStatus.phase) && @@ -666,7 +701,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allocatedResources, conditions, containerStatuses, ephemeralContainerStatuses, extendedResourceClaimStatus, hostIP, hostIPs, initContainerStatuses, message, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, resources, startTime); + return Objects.hash(allocatedResources, conditions, containerStatuses, ephemeralContainerStatuses, extendedResourceClaimStatus, hostIP, hostIPs, initContainerStatuses, message, nodeAllocatableResourceClaimStatuses, nominatedNodeName, observedGeneration, phase, podIP, podIPs, qosClass, reason, resize, resourceClaimStatuses, resources, startTime); } @Override @@ -682,6 +717,7 @@ public String toString() { sb.append(" hostIPs: ").append(toIndentedString(hostIPs)).append("\n"); sb.append(" initContainerStatuses: ").append(toIndentedString(initContainerStatuses)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" nodeAllocatableResourceClaimStatuses: ").append(toIndentedString(nodeAllocatableResourceClaimStatuses)).append("\n"); sb.append(" nominatedNodeName: ").append(toIndentedString(nominatedNodeName)).append("\n"); sb.append(" observedGeneration: ").append(toIndentedString(observedGeneration)).append("\n"); sb.append(" phase: ").append(toIndentedString(phase)).append("\n"); @@ -714,7 +750,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allocatedResources", "conditions", "containerStatuses", "ephemeralContainerStatuses", "extendedResourceClaimStatus", "hostIP", "hostIPs", "initContainerStatuses", "message", "nominatedNodeName", "observedGeneration", "phase", "podIP", "podIPs", "qosClass", "reason", "resize", "resourceClaimStatuses", "resources", "startTime")); + openapiFields = new HashSet(Arrays.asList("allocatedResources", "conditions", "containerStatuses", "ephemeralContainerStatuses", "extendedResourceClaimStatus", "hostIP", "hostIPs", "initContainerStatuses", "message", "nodeAllocatableResourceClaimStatuses", "nominatedNodeName", "observedGeneration", "phase", "podIP", "podIPs", "qosClass", "reason", "resize", "resourceClaimStatuses", "resources", "startTime")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -821,6 +857,20 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); } + if (jsonObj.get("nodeAllocatableResourceClaimStatuses") != null && !jsonObj.get("nodeAllocatableResourceClaimStatuses").isJsonNull()) { + JsonArray jsonArraynodeAllocatableResourceClaimStatuses = jsonObj.getAsJsonArray("nodeAllocatableResourceClaimStatuses"); + if (jsonArraynodeAllocatableResourceClaimStatuses != null) { + // ensure the json data is an array + if (!jsonObj.get("nodeAllocatableResourceClaimStatuses").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `nodeAllocatableResourceClaimStatuses` to be an array in the JSON string but got `%s`", jsonObj.get("nodeAllocatableResourceClaimStatuses").toString())); + } + + // validate the optional field `nodeAllocatableResourceClaimStatuses` (array) + for (int i = 0; i < jsonArraynodeAllocatableResourceClaimStatuses.size(); i++) { + V1NodeAllocatableResourceClaimStatus.validateJsonElement(jsonArraynodeAllocatableResourceClaimStatuses.get(i)); + }; + } + } if ((jsonObj.get("nominatedNodeName") != null && !jsonObj.get("nominatedNodeName").isJsonNull()) && !jsonObj.get("nominatedNodeName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `nominatedNodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nominatedNodeName").toString())); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java index 6ad0bbf974..57eddc0f5a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplate.java @@ -52,7 +52,7 @@ * PodTemplate describes a template for creating copies of a predefined pod. */ @ApiModel(description = "PodTemplate describes a template for creating copies of a predefined pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java index dc39476b00..dfbcc1da3f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateList.java @@ -54,7 +54,7 @@ * PodTemplateList is a list of PodTemplates. */ @ApiModel(description = "PodTemplateList is a list of PodTemplates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java index 077d7ffbd5..c2342645c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PodTemplateSpec.java @@ -52,7 +52,7 @@ * PodTemplateSpec describes the data a pod should have when created from a template */ @ApiModel(description = "PodTemplateSpec describes the data a pod should have when created from a template") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PodTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java index 55d3f4e79b..e77c007e30 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRule.java @@ -52,7 +52,7 @@ * PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. */ @ApiModel(description = "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java index c5ab8ed94b..957974d66c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PolicyRulesWithSubjects.java @@ -55,7 +55,7 @@ * 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. */ @ApiModel(description = "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.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PolicyRulesWithSubjects { public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_RULES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java index 758c82431c..37d0eb5afd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortStatus.java @@ -50,7 +50,7 @@ * PortStatus represents the error condition of a service port */ @ApiModel(description = "PortStatus represents the error condition of a service port") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PortStatus { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java index 363ea247f8..4ccf5d0b9e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PortworxVolumeSource.java @@ -50,7 +50,7 @@ * PortworxVolumeSource represents a Portworx volume resource. */ @ApiModel(description = "PortworxVolumeSource represents a Portworx volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PortworxVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java index b5594a6059..d10e9806a6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Preconditions.java @@ -50,7 +50,7 @@ * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. */ @ApiModel(description = "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Preconditions { public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java index 62ddf24d76..5d7e37d5ac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PreferredSchedulingTerm.java @@ -51,7 +51,7 @@ * An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). */ @ApiModel(description = "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PreferredSchedulingTerm { public static final String SERIALIZED_NAME_PREFERENCE = "preference"; @SerializedName(SERIALIZED_NAME_PREFERENCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java index 51164a0536..7353bbc1ca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClass.java @@ -51,7 +51,7 @@ * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. */ @ApiModel(description = "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -85,7 +85,7 @@ public class V1PriorityClass implements io.kubernetes.client.common.KubernetesOb public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private Integer value; public V1PriorityClass() { @@ -211,7 +211,7 @@ public void setPreemptionPolicy(@jakarta.annotation.Nullable String preemptionPo } - public V1PriorityClass value(@jakarta.annotation.Nonnull Integer value) { + public V1PriorityClass value(@jakarta.annotation.Nullable Integer value) { this.value = value; return this; } @@ -220,13 +220,13 @@ public V1PriorityClass value(@jakarta.annotation.Nonnull Integer value) { * value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. * @return value */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "value represents the integer value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.") public Integer getValue() { return value; } - public void setValue(@jakarta.annotation.Nonnull Integer value) { + public void setValue(@jakarta.annotation.Nullable Integer value) { this.value = value; } @@ -290,7 +290,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "description", "globalDefault", "kind", "metadata", "preemptionPolicy", "value")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("value")); + openapiRequiredFields = new HashSet(0); } /** @@ -313,13 +313,6 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1PriorityClass` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1PriorityClass.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java index d954e07474..58ccf09de7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityClassList.java @@ -54,7 +54,7 @@ * PriorityClassList is a collection of priority classes. */ @ApiModel(description = "PriorityClassList is a collection of priority classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java index c2d5006ad3..21ae86d154 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfiguration.java @@ -53,7 +53,7 @@ * PriorityLevelConfiguration represents the configuration of a priority level. */ @ApiModel(description = "PriorityLevelConfiguration represents the configuration of a priority level.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityLevelConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java index 22fa9e77ac..4c232f6b97 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationCondition.java @@ -51,7 +51,7 @@ * PriorityLevelConfigurationCondition defines the condition of priority level. */ @ApiModel(description = "PriorityLevelConfigurationCondition defines the condition of priority level.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityLevelConfigurationCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java index 087aad104f..1926134082 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationList.java @@ -54,7 +54,7 @@ * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects. */ @ApiModel(description = "PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityLevelConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java index bd108eee6e..7f265e3fa5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationReference.java @@ -50,7 +50,7 @@ * PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used. */ @ApiModel(description = "PriorityLevelConfigurationReference contains information that points to the \"request-priority\" being used.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityLevelConfigurationReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java index a17594cb00..87c4cc6650 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationSpec.java @@ -52,7 +52,7 @@ * PriorityLevelConfigurationSpec specifies the configuration of a priority level. */ @ApiModel(description = "PriorityLevelConfigurationSpec specifies the configuration of a priority level.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityLevelConfigurationSpec { public static final String SERIALIZED_NAME_EXEMPT = "exempt"; @SerializedName(SERIALIZED_NAME_EXEMPT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java index 514f05a764..ab172f9433 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1PriorityLevelConfigurationStatus.java @@ -53,7 +53,7 @@ * PriorityLevelConfigurationStatus represents the current state of a \"request-priority\". */ @ApiModel(description = "PriorityLevelConfigurationStatus represents the current state of a \"request-priority\".") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1PriorityLevelConfigurationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java index 9b9aad7ec1..497e7b0adf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Probe.java @@ -54,7 +54,7 @@ * Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. */ @ApiModel(description = "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Probe { public static final String SERIALIZED_NAME_EXEC = "exec"; @SerializedName(SERIALIZED_NAME_EXEC) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java index 7f678917ba..77955f86bd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ProjectedVolumeSource.java @@ -53,7 +53,7 @@ * Represents a projected volume source */ @ApiModel(description = "Represents a projected volume source") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ProjectedVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java index 0ef6e31677..dc8da18bc4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QueuingConfiguration.java @@ -50,7 +50,7 @@ * QueuingConfiguration holds the configuration parameters for queuing */ @ApiModel(description = "QueuingConfiguration holds the configuration parameters for queuing") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1QueuingConfiguration { public static final String SERIALIZED_NAME_HAND_SIZE = "handSize"; @SerializedName(SERIALIZED_NAME_HAND_SIZE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java index eaa4152f7b..4d7159defb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1QuobyteVolumeSource.java @@ -50,7 +50,7 @@ * Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1QuobyteVolumeSource { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java index 6b5272ac6e..4c16978f4e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDPersistentVolumeSource.java @@ -53,7 +53,7 @@ * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RBDPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java index a4f0d627b9..917a12226d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RBDVolumeSource.java @@ -53,7 +53,7 @@ * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RBDVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java index 8491f78516..6679488c47 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSet.java @@ -53,7 +53,7 @@ * ReplicaSet ensures that a specified number of pod replicas are running at any given time. */ @ApiModel(description = "ReplicaSet ensures that a specified number of pod replicas are running at any given time.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicaSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java index 71abccbb6f..7bd052d937 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetCondition.java @@ -51,7 +51,7 @@ * ReplicaSetCondition describes the state of a replica set at a certain point. */ @ApiModel(description = "ReplicaSetCondition describes the state of a replica set at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicaSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java index af9dad3e24..4df3b15a7e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetList.java @@ -54,7 +54,7 @@ * ReplicaSetList is a collection of ReplicaSets. */ @ApiModel(description = "ReplicaSetList is a collection of ReplicaSets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicaSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java index 33c681b602..c1e1159e3f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetSpec.java @@ -52,7 +52,7 @@ * ReplicaSetSpec is the specification of a ReplicaSet. */ @ApiModel(description = "ReplicaSetSpec is the specification of a ReplicaSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicaSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java index 8f289ab197..96be7c4d83 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicaSetStatus.java @@ -53,7 +53,7 @@ * ReplicaSetStatus represents the current status of a ReplicaSet. */ @ApiModel(description = "ReplicaSetStatus represents the current status of a ReplicaSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicaSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java index 36de24596e..4e9d254a70 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationController.java @@ -53,7 +53,7 @@ * ReplicationController represents the configuration of a replication controller. */ @ApiModel(description = "ReplicationController represents the configuration of a replication controller.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicationController implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java index 042fe693cb..eb91c88ce0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerCondition.java @@ -51,7 +51,7 @@ * ReplicationControllerCondition describes the state of a replication controller at a certain point. */ @ApiModel(description = "ReplicationControllerCondition describes the state of a replication controller at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicationControllerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java index 1d3dafe1f5..17d266d707 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerList.java @@ -54,7 +54,7 @@ * ReplicationControllerList is a collection of replication controllers. */ @ApiModel(description = "ReplicationControllerList is a collection of replication controllers.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicationControllerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java index 67f2a814f5..bc96a6425a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerSpec.java @@ -53,7 +53,7 @@ * ReplicationControllerSpec is the specification of a replication controller. */ @ApiModel(description = "ReplicationControllerSpec is the specification of a replication controller.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicationControllerSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java index 9d89d9dbd9..44e1d17af1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ReplicationControllerStatus.java @@ -53,7 +53,7 @@ * ReplicationControllerStatus represents the current status of a replication controller. */ @ApiModel(description = "ReplicationControllerStatus represents the current status of a replication controller.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ReplicationControllerStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java index 57da801c78..fa5fca1e0e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceAttributes.java @@ -52,7 +52,7 @@ * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface */ @ApiModel(description = "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceAttributes { public static final String SERIALIZED_NAME_FIELD_SELECTOR = "fieldSelector"; @SerializedName(SERIALIZED_NAME_FIELD_SELECTOR) @@ -128,11 +128,11 @@ public V1ResourceAttributes group(@jakarta.annotation.Nullable String group) { } /** - * Group is the API Group of the Resource. \"*\" means all. + * group is the API Group of the Resource. \"*\" means all. * @return group */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Group is the API Group of the Resource. \"*\" means all.") + @ApiModelProperty(value = "group is the API Group of the Resource. \"*\" means all.") public String getGroup() { return group; } @@ -168,11 +168,11 @@ public V1ResourceAttributes name(@jakarta.annotation.Nullable String name) { } /** - * Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. + * name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. * @return name */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.") + @ApiModelProperty(value = "name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.") public String getName() { return name; } @@ -188,11 +188,11 @@ public V1ResourceAttributes namespace(@jakarta.annotation.Nullable String namesp } /** - * Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview + * namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview * @return namespace */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview") + @ApiModelProperty(value = "namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview") public String getNamespace() { return namespace; } @@ -208,11 +208,11 @@ public V1ResourceAttributes resource(@jakarta.annotation.Nullable String resourc } /** - * Resource is one of the existing resource types. \"*\" means all. + * resource is one of the existing resource types. \"*\" means all. * @return resource */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Resource is one of the existing resource types. \"*\" means all.") + @ApiModelProperty(value = "resource is one of the existing resource types. \"*\" means all.") public String getResource() { return resource; } @@ -228,11 +228,11 @@ public V1ResourceAttributes subresource(@jakarta.annotation.Nullable String subr } /** - * Subresource is one of the existing resource types. \"\" means none. + * subresource is one of the existing resource types. \"\" means none. * @return subresource */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Subresource is one of the existing resource types. \"\" means none.") + @ApiModelProperty(value = "subresource is one of the existing resource types. \"\" means none.") public String getSubresource() { return subresource; } @@ -248,11 +248,11 @@ public V1ResourceAttributes verb(@jakarta.annotation.Nullable String verb) { } /** - * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + * verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. * @return verb */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.") + @ApiModelProperty(value = "verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.") public String getVerb() { return verb; } @@ -268,11 +268,11 @@ public V1ResourceAttributes version(@jakarta.annotation.Nullable String version) } /** - * Version is the API Version of the Resource. \"*\" means all. + * version is the API Version of the Resource. \"*\" means all. * @return version */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Version is the API Version of the Resource. \"*\" means all.") + @ApiModelProperty(value = "version is the API Version of the Resource. \"*\" means all.") public String getVersion() { return version; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java index 9463f17532..6ae6c4d174 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimConsumerReference.java @@ -50,7 +50,7 @@ * ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim. */ @ApiModel(description = "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceClaimConsumerReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java index ff4af2f41f..33de18cf6a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimList.java @@ -54,7 +54,7 @@ * ResourceClaimList is a collection of claims. */ @ApiModel(description = "ResourceClaimList is a collection of claims.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java index 1b6c5b3e2e..e124ea52e3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimSpec.java @@ -51,7 +51,7 @@ * ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. */ @ApiModel(description = "ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceClaimSpec { public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java index f4e9407b21..9ab9715475 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimStatus.java @@ -55,7 +55,7 @@ * ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. */ @ApiModel(description = "ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceClaimStatus { public static final String SERIALIZED_NAME_ALLOCATION = "allocation"; @SerializedName(SERIALIZED_NAME_ALLOCATION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java index 3840c710c1..37b06d9cb6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplate.java @@ -49,10 +49,10 @@ import io.kubernetes.client.openapi.JSON; /** - * ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + * ResourceClaimTemplate is used to produce ResourceClaim objects. */ -@ApiModel(description = "ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@ApiModel(description = "ResourceClaimTemplate is used to produce ResourceClaim objects.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceClaimTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java index 5dbce7a6e3..c89564bc6d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateList.java @@ -54,7 +54,7 @@ * ResourceClaimTemplateList is a collection of claim templates. */ @ApiModel(description = "ResourceClaimTemplateList is a collection of claim templates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceClaimTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java index 979bad826f..1c117d2bd8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceClaimTemplateSpec.java @@ -52,7 +52,7 @@ * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. */ @ApiModel(description = "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java index b86677d525..43a972858e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceFieldSelector.java @@ -51,7 +51,7 @@ * ResourceFieldSelector represents container resources (cpu, memory) and their output format */ @ApiModel(description = "ResourceFieldSelector represents container resources (cpu, memory) and their output format") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceFieldSelector { public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java index d26fd445ed..86bc1bf3c1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceHealth.java @@ -50,13 +50,18 @@ * ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680. */ @ApiModel(description = "ResourceHealth represents the health of a resource. It has the latest device health information. This is a part of KEP https://kep.k8s.io/4680.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceHealth { public static final String SERIALIZED_NAME_HEALTH = "health"; @SerializedName(SERIALIZED_NAME_HEALTH) @jakarta.annotation.Nullable private String health; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + @jakarta.annotation.Nullable + private String message; + public static final String SERIALIZED_NAME_RESOURCE_I_D = "resourceID"; @SerializedName(SERIALIZED_NAME_RESOURCE_I_D) @jakarta.annotation.Nonnull @@ -85,6 +90,26 @@ public void setHealth(@jakarta.annotation.Nullable String health) { } + public V1ResourceHealth message(@jakarta.annotation.Nullable String message) { + this.message = message; + return this; + } + + /** + * Message provides human-readable context for Health (e.g. \"ECC error count exceeded threshold\"). This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise. + * @return message + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Message provides human-readable context for Health (e.g. \"ECC error count exceeded threshold\"). This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise.") + public String getMessage() { + return message; + } + + public void setMessage(@jakarta.annotation.Nullable String message) { + this.message = message; + } + + public V1ResourceHealth resourceID(@jakarta.annotation.Nonnull String resourceID) { this.resourceID = resourceID; return this; @@ -116,12 +141,13 @@ public boolean equals(Object o) { } V1ResourceHealth v1ResourceHealth = (V1ResourceHealth) o; return Objects.equals(this.health, v1ResourceHealth.health) && + Objects.equals(this.message, v1ResourceHealth.message) && Objects.equals(this.resourceID, v1ResourceHealth.resourceID); } @Override public int hashCode() { - return Objects.hash(health, resourceID); + return Objects.hash(health, message, resourceID); } @Override @@ -129,6 +155,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ResourceHealth {\n"); sb.append(" health: ").append(toIndentedString(health)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" resourceID: ").append(toIndentedString(resourceID)).append("\n"); sb.append("}"); return sb.toString(); @@ -151,7 +178,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("health", "resourceID")); + openapiFields = new HashSet(Arrays.asList("health", "message", "resourceID")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("resourceID")); @@ -188,6 +215,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("health") != null && !jsonObj.get("health").isJsonNull()) && !jsonObj.get("health").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `health` to be a primitive type in the JSON string but got `%s`", jsonObj.get("health").toString())); } + if ((jsonObj.get("message") != null && !jsonObj.get("message").isJsonNull()) && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } if (!jsonObj.get("resourceID").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceID").toString())); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java index b2c41b08f8..391c658952 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePolicyRule.java @@ -52,7 +52,7 @@ * 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) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace. */ @ApiModel(description = "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) either (d1) the request does not specify a namespace (i.e., `Namespace==\"\"`) and clusterScope is true or (d2) the request specifies a namespace and least one member of namespaces matches the request's namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourcePolicyRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java index 5ff61584a2..9f07c8edc3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourcePool.java @@ -50,7 +50,7 @@ * ResourcePool describes the pool that ResourceSlices belong to. */ @ApiModel(description = "ResourcePool describes the pool that ResourceSlices belong to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourcePool { public static final String SERIALIZED_NAME_GENERATION = "generation"; @SerializedName(SERIALIZED_NAME_GENERATION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java index feafabbb1d..922fe19c7c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuota.java @@ -53,7 +53,7 @@ * ResourceQuota sets aggregate quota restrictions enforced per namespace */ @ApiModel(description = "ResourceQuota sets aggregate quota restrictions enforced per namespace") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceQuota implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java index 6e66cb9f80..6021946071 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaList.java @@ -54,7 +54,7 @@ * ResourceQuotaList is a list of ResourceQuota items. */ @ApiModel(description = "ResourceQuotaList is a list of ResourceQuota items.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceQuotaList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java index f697752f0d..50473ac6c1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaSpec.java @@ -56,7 +56,7 @@ * ResourceQuotaSpec defines the desired hard limits to enforce for Quota. */ @ApiModel(description = "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceQuotaSpec { public static final String SERIALIZED_NAME_HARD = "hard"; @SerializedName(SERIALIZED_NAME_HARD) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java index 41514c2785..65831268c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceQuotaStatus.java @@ -53,7 +53,7 @@ * ResourceQuotaStatus defines the enforced hard limits and observed use. */ @ApiModel(description = "ResourceQuotaStatus defines the enforced hard limits and observed use.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceQuotaStatus { public static final String SERIALIZED_NAME_HARD = "hard"; @SerializedName(SERIALIZED_NAME_HARD) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java index 89206343d9..9e815b7ee1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRequirements.java @@ -56,7 +56,7 @@ * ResourceRequirements describes the compute resource requirements. */ @ApiModel(description = "ResourceRequirements describes the compute resource requirements.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceRequirements { public static final String SERIALIZED_NAME_CLAIMS = "claims"; @SerializedName(SERIALIZED_NAME_CLAIMS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java index 8557d1b18e..21d79271f3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceRule.java @@ -52,7 +52,7 @@ * ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. */ @ApiModel(description = "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceRule { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -91,11 +91,11 @@ public V1ResourceRule addApiGroupsItem(String apiGroupsItem) { } /** - * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. + * apiGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. * @return apiGroups */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.") + @ApiModelProperty(value = "apiGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.") public List getApiGroups() { return apiGroups; } @@ -119,11 +119,11 @@ public V1ResourceRule addResourceNamesItem(String resourceNamesItem) { } /** - * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. + * resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. * @return resourceNames */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.") + @ApiModelProperty(value = "resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.") public List getResourceNames() { return resourceNames; } @@ -147,11 +147,11 @@ public V1ResourceRule addResourcesItem(String resourcesItem) { } /** - * Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. + * resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. * @return resources */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.") + @ApiModelProperty(value = "resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.") public List getResources() { return resources; } @@ -175,11 +175,11 @@ public V1ResourceRule addVerbsItem(String verbsItem) { } /** - * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. + * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all. * @return verbs */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.") + @ApiModelProperty(required = true, value = "verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.") public List getVerbs() { return verbs; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java index d11b4c06bf..dc5232cbd7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSlice.java @@ -49,10 +49,10 @@ import io.kubernetes.client.openapi.JSON; /** - * ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>. Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. + * ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>. Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. */ -@ApiModel(description = "ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , . Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@ApiModel(description = "ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , . Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java index d76fb1549f..645dbb822e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceList.java @@ -54,7 +54,7 @@ * ResourceSliceList is a collection of ResourceSlices. */ @ApiModel(description = "ResourceSliceList is a collection of ResourceSlices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java index 73b64082d1..81e335eae2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceSliceSpec.java @@ -56,7 +56,7 @@ * ResourceSliceSpec contains the information published by the driver in one ResourceSlice. */ @ApiModel(description = "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceSliceSpec { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java index 1ecd3c4182..fc64edf110 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ResourceStatus.java @@ -53,7 +53,7 @@ * ResourceStatus represents the status of a single resource allocated to a Pod. */ @ApiModel(description = "ResourceStatus represents the status of a single resource allocated to a Pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ResourceStatus { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java index 588f643f79..2bc70ac611 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Role.java @@ -54,7 +54,7 @@ * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. */ @ApiModel(description = "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Role implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java index c772a42799..5e722b0e8e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBinding.java @@ -55,7 +55,7 @@ * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. */ @ApiModel(description = "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RoleBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java index daf1e6eca4..adf8bc9f6a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleBindingList.java @@ -54,7 +54,7 @@ * RoleBindingList is a collection of RoleBindings */ @ApiModel(description = "RoleBindingList is a collection of RoleBindings") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RoleBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java index 9dd452fffd..e034895fdd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleList.java @@ -54,7 +54,7 @@ * RoleList is a collection of Roles */ @ApiModel(description = "RoleList is a collection of Roles") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RoleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java index 57f184098f..5374705236 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RoleRef.java @@ -50,11 +50,11 @@ * RoleRef contains information that points to the role being used */ @ApiModel(description = "RoleRef contains information that points to the role being used") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RoleRef { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private String apiGroup; public static final String SERIALIZED_NAME_KIND = "kind"; @@ -70,7 +70,7 @@ public class V1RoleRef { public V1RoleRef() { } - public V1RoleRef apiGroup(@jakarta.annotation.Nonnull String apiGroup) { + public V1RoleRef apiGroup(@jakarta.annotation.Nullable String apiGroup) { this.apiGroup = apiGroup; return this; } @@ -79,13 +79,13 @@ public V1RoleRef apiGroup(@jakarta.annotation.Nonnull String apiGroup) { * APIGroup is the group for the resource being referenced * @return apiGroup */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "APIGroup is the group for the resource being referenced") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "APIGroup is the group for the resource being referenced") public String getApiGroup() { return apiGroup; } - public void setApiGroup(@jakarta.annotation.Nonnull String apiGroup) { + public void setApiGroup(@jakarta.annotation.Nullable String apiGroup) { this.apiGroup = apiGroup; } @@ -181,7 +181,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiGroup", "kind", "name")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("apiGroup", "kind", "name")); + openapiRequiredFields = new HashSet(Arrays.asList("kind", "name")); } /** @@ -212,7 +212,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("apiGroup").isJsonPrimitive()) { + if ((jsonObj.get("apiGroup") != null && !jsonObj.get("apiGroup").isJsonNull()) && !jsonObj.get("apiGroup").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiGroup` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiGroup").toString())); } if (!jsonObj.get("kind").isJsonPrimitive()) { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java index 8d839dacfc..9121e28b5b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDaemonSet.java @@ -51,7 +51,7 @@ * Spec to control the desired behavior of daemon set rolling update. */ @ApiModel(description = "Spec to control the desired behavior of daemon set rolling update.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RollingUpdateDaemonSet { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; @SerializedName(SERIALIZED_NAME_MAX_SURGE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java index 24a37aeab8..0c59000f2b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateDeployment.java @@ -51,7 +51,7 @@ * Spec to control the desired behavior of rolling update. */ @ApiModel(description = "Spec to control the desired behavior of rolling update.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RollingUpdateDeployment { public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; @SerializedName(SERIALIZED_NAME_MAX_SURGE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java index 6aa36c81d7..33ea3c1add 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RollingUpdateStatefulSetStrategy.java @@ -51,7 +51,7 @@ * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. */ @ApiModel(description = "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RollingUpdateStatefulSetStrategy { public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java index 719d7f658d..e671b3eaab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuleWithOperations.java @@ -52,7 +52,7 @@ * RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. */ @ApiModel(description = "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -96,11 +96,11 @@ public V1RuleWithOperations addApiGroupsItem(String apiGroupsItem) { } /** - * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. * @return apiGroups */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") + @ApiModelProperty(value = "apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") public List getApiGroups() { return apiGroups; } @@ -124,11 +124,11 @@ public V1RuleWithOperations addApiVersionsItem(String apiVersionsItem) { } /** - * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. * @return apiVersions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") + @ApiModelProperty(value = "apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") public List getApiVersions() { return apiVersions; } @@ -152,11 +152,11 @@ public V1RuleWithOperations addOperationsItem(String operationsItem) { } /** - * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. + * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. * @return operations */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") + @ApiModelProperty(value = "operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") public List getOperations() { return operations; } @@ -180,11 +180,11 @@ public V1RuleWithOperations addResourcesItem(String resourcesItem) { } /** - * Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. + * resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. * @return resources */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") + @ApiModelProperty(value = "resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") public List getResources() { return resources; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java index 16a8397048..99da8f6b62 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClass.java @@ -53,7 +53,7 @@ * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/ */ @ApiModel(description = "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://kubernetes.io/docs/concepts/containers/runtime-class/") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RuntimeClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java index d06001e065..04d491d340 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1RuntimeClassList.java @@ -54,7 +54,7 @@ * RuntimeClassList is a list of RuntimeClass objects. */ @ApiModel(description = "RuntimeClassList is a list of RuntimeClass objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1RuntimeClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java index 5af98c391e..2eba3f169d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SELinuxOptions.java @@ -50,7 +50,7 @@ * SELinuxOptions are the labels to be applied to the container */ @ApiModel(description = "SELinuxOptions are the labels to be applied to the container") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SELinuxOptions { public static final String SERIALIZED_NAME_LEVEL = "level"; @SerializedName(SERIALIZED_NAME_LEVEL) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java index dfaffc3e64..ae0c6b6e66 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scale.java @@ -53,7 +53,7 @@ * Scale represents a scaling request for a resource. */ @ApiModel(description = "Scale represents a scaling request for a resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Scale implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java index c4c76dd7a1..d9bb242a53 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOPersistentVolumeSource.java @@ -51,7 +51,7 @@ * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume */ @ApiModel(description = "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ScaleIOPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java index c482b4b7e2..74dd3c04f4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleIOVolumeSource.java @@ -51,7 +51,7 @@ * ScaleIOVolumeSource represents a persistent ScaleIO volume */ @ApiModel(description = "ScaleIOVolumeSource represents a persistent ScaleIO volume") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ScaleIOVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java index 4c0df0aa9e..319673a8a9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleSpec.java @@ -50,7 +50,7 @@ * ScaleSpec describes the attributes of a scale subresource. */ @ApiModel(description = "ScaleSpec describes the attributes of a scale subresource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ScaleSpec { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java index 6b0981777f..16c80984bb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScaleStatus.java @@ -50,7 +50,7 @@ * ScaleStatus represents the current status of a scale subresource. */ @ApiModel(description = "ScaleStatus represents the current status of a scale subresource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ScaleStatus { public static final String SERIALIZED_NAME_REPLICAS = "replicas"; @SerializedName(SERIALIZED_NAME_REPLICAS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java index 50b8a3eb6a..8aaf83ad29 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Scheduling.java @@ -55,7 +55,7 @@ * Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass. */ @ApiModel(description = "Scheduling specifies the scheduling constraints for nodes supporting a RuntimeClass.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Scheduling { public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java index 2e4ad28fe5..cecf816275 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopeSelector.java @@ -53,7 +53,7 @@ * A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. */ @ApiModel(description = "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ScopeSelector { public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java index 5c95626d9c..c3918a9254 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ScopedResourceSelectorRequirement.java @@ -52,7 +52,7 @@ * A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values. */ @ApiModel(description = "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ScopedResourceSelectorRequirement { public static final String SERIALIZED_NAME_OPERATOR = "operator"; @SerializedName(SERIALIZED_NAME_OPERATOR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java index e8df17cf11..ab46ce1476 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SeccompProfile.java @@ -50,7 +50,7 @@ * SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set. */ @ApiModel(description = "SeccompProfile defines a pod/container's seccomp profile settings. Only one profile source may be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SeccompProfile { public static final String SERIALIZED_NAME_LOCALHOST_PROFILE = "localhostProfile"; @SerializedName(SERIALIZED_NAME_LOCALHOST_PROFILE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java index 10856e8198..2c379425ea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Secret.java @@ -54,7 +54,7 @@ * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. */ @ApiModel(description = "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Secret implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java index e83db23277..269c30d6ea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretEnvSource.java @@ -50,7 +50,7 @@ * SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables. */ @ApiModel(description = "SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SecretEnvSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java index e2879e015a..aa0ca8abb2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretKeySelector.java @@ -50,7 +50,7 @@ * SecretKeySelector selects a key of a Secret. */ @ApiModel(description = "SecretKeySelector selects a key of a Secret.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SecretKeySelector { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java index 22d2d58be2..49ac91ceab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretList.java @@ -54,7 +54,7 @@ * SecretList is a list of Secret. */ @ApiModel(description = "SecretList is a list of Secret.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SecretList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java index 002ab490d3..60faa21a59 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretProjection.java @@ -53,7 +53,7 @@ * Adapts a secret into a projected volume. The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode. */ @ApiModel(description = "Adapts a secret into a projected volume. The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SecretProjection { public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java index 1f566314f8..b4ca7ec988 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretReference.java @@ -50,7 +50,7 @@ * SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace */ @ApiModel(description = "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SecretReference { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java index 2259600cde..a6f9ae6b22 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecretVolumeSource.java @@ -53,7 +53,7 @@ * Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SecretVolumeSource { public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java index 1ddd72ecca..480e9a6013 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SecurityContext.java @@ -55,7 +55,7 @@ * SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. */ @ApiModel(description = "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SecurityContext { public static final String SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION = "allowPrivilegeEscalation"; @SerializedName(SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION) @@ -206,11 +206,11 @@ public V1SecurityContext procMount(@jakarta.annotation.Nullable String procMount } /** - * procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows. + * procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. Note that this field cannot be set when spec.os.name is windows. * @return procMount */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.") + @ApiModelProperty(value = "procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. Note that this field cannot be set when spec.os.name is windows.") public String getProcMount() { return procMount; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java index 66719adc8a..4feae46adb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelectableField.java @@ -50,7 +50,7 @@ * SelectableField specifies the JSON path of a field that may be used with field selectors. */ @ApiModel(description = "SelectableField specifies the JSON path of a field that may be used with field selectors.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SelectableField { public static final String SERIALIZED_NAME_JSON_PATH = "jsonPath"; @SerializedName(SERIALIZED_NAME_JSON_PATH) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java index 99bc529453..833d5e22af 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReview.java @@ -53,7 +53,7 @@ * SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action */ @ApiModel(description = "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SelfSubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java index 31560828fd..e657b790ed 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectAccessReviewSpec.java @@ -49,10 +49,10 @@ import io.kubernetes.client.openapi.JSON; /** - * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set + * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of resourceAttributes and nonResourceAttributes must be set */ -@ApiModel(description = "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@ApiModel(description = "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of resourceAttributes and nonResourceAttributes must be set") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SelfSubjectAccessReviewSpec { public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; @SerializedName(SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java index 838b6ed275..56a0f2275c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReview.java @@ -52,7 +52,7 @@ * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase. */ @ApiModel(description = "SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. When using impersonation, users will receive the user info of the user being impersonated. If impersonation or request header authentication is used, any extra keys will have their case ignored and returned as lowercase.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SelfSubjectReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java index 24bfa6ad38..5b8c750d12 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectReviewStatus.java @@ -51,7 +51,7 @@ * SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user. */ @ApiModel(description = "SelfSubjectReviewStatus is filled by the kube-apiserver and sent back to a user.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SelfSubjectReviewStatus { public static final String SERIALIZED_NAME_USER_INFO = "userInfo"; @SerializedName(SERIALIZED_NAME_USER_INFO) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java index 124617ead2..cb4e679dad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReview.java @@ -53,7 +53,7 @@ * SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. */ @ApiModel(description = "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SelfSubjectRulesReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java index 78696414ac..b150fc4ad6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SelfSubjectRulesReviewSpec.java @@ -50,7 +50,7 @@ * SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview. */ @ApiModel(description = "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SelfSubjectRulesReviewSpec { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -66,11 +66,11 @@ public V1SelfSubjectRulesReviewSpec namespace(@jakarta.annotation.Nullable Strin } /** - * Namespace to evaluate rules for. Required. + * namespace to evaluate rules for. Required. * @return namespace */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Namespace to evaluate rules for. Required.") + @ApiModelProperty(value = "namespace to evaluate rules for. Required.") public String getNamespace() { return namespace; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java index f276b43c66..36d904fc70 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServerAddressByClientCIDR.java @@ -50,7 +50,7 @@ * ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. */ @ApiModel(description = "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServerAddressByClientCIDR { public static final String SERIALIZED_NAME_CLIENT_C_I_D_R = "clientCIDR"; @SerializedName(SERIALIZED_NAME_CLIENT_C_I_D_R) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java index 1f9b797266..413cddc34d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Service.java @@ -53,7 +53,7 @@ * Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. */ @ApiModel(description = "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Service implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java index dd82cc4826..11b361a7b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccount.java @@ -55,7 +55,7 @@ * ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets */ @ApiModel(description = "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceAccount implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java index 31eff7dccc..625da860b8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountList.java @@ -54,7 +54,7 @@ * ServiceAccountList is a list of ServiceAccount objects */ @ApiModel(description = "ServiceAccountList is a list of ServiceAccount objects") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceAccountList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java index 1c4f460970..a371efc605 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountSubject.java @@ -50,7 +50,7 @@ * ServiceAccountSubject holds detailed information for service-account-kind subject. */ @ApiModel(description = "ServiceAccountSubject holds detailed information for service-account-kind subject.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceAccountSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java index b3e2509e05..9c0ba1b21e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceAccountTokenProjection.java @@ -50,7 +50,7 @@ * ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise). */ @ApiModel(description = "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceAccountTokenProjection { public static final String SERIALIZED_NAME_AUDIENCE = "audience"; @SerializedName(SERIALIZED_NAME_AUDIENCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java index 19d24ed54e..2c7568c3ee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceBackendPort.java @@ -50,7 +50,7 @@ * ServiceBackendPort is the service port being referenced. */ @ApiModel(description = "ServiceBackendPort is the service port being referenced.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceBackendPort { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java index 92560603d9..046e31896f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDR.java @@ -53,7 +53,7 @@ * ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects. */ @ApiModel(description = "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceCIDR implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java index c54f8ce645..319ada61ac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRList.java @@ -54,7 +54,7 @@ * ServiceCIDRList contains a list of ServiceCIDR objects. */ @ApiModel(description = "ServiceCIDRList contains a list of ServiceCIDR objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceCIDRList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java index 3f548bb02a..627f0dcfd1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRSpec.java @@ -52,7 +52,7 @@ * ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. */ @ApiModel(description = "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceCIDRSpec { public static final String SERIALIZED_NAME_CIDRS = "cidrs"; @SerializedName(SERIALIZED_NAME_CIDRS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java index 06f956c611..c83918eca3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceCIDRStatus.java @@ -53,7 +53,7 @@ * ServiceCIDRStatus describes the current state of the ServiceCIDR. */ @ApiModel(description = "ServiceCIDRStatus describes the current state of the ServiceCIDR.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceCIDRStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java index 6e13f28917..e36085b1c5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceList.java @@ -54,7 +54,7 @@ * ServiceList holds a list of services. */ @ApiModel(description = "ServiceList holds a list of services.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java index 1c794f32f4..e80aa08c01 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServicePort.java @@ -51,7 +51,7 @@ * ServicePort contains information on service's port. */ @ApiModel(description = "ServicePort contains information on service's port.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServicePort { public static final String SERIALIZED_NAME_APP_PROTOCOL = "appProtocol"; @SerializedName(SERIALIZED_NAME_APP_PROTOCOL) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java index 7182c47671..8e7533c8aa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceSpec.java @@ -56,7 +56,7 @@ * ServiceSpec describes the attributes that a user creates on a service. */ @ApiModel(description = "ServiceSpec describes the attributes that a user creates on a service.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceSpec { public static final String SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS = "allocateLoadBalancerNodePorts"; @SerializedName(SERIALIZED_NAME_ALLOCATE_LOAD_BALANCER_NODE_PORTS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java index 2b0355592b..b6d07a4936 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ServiceStatus.java @@ -54,7 +54,7 @@ * ServiceStatus represents the current status of a service. */ @ApiModel(description = "ServiceStatus represents the current status of a service.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ServiceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java index 80122b4b31..6a5d8a7533 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SessionAffinityConfig.java @@ -51,7 +51,7 @@ * SessionAffinityConfig represents the configurations of session affinity. */ @ApiModel(description = "SessionAffinityConfig represents the configurations of session affinity.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SessionAffinityConfig { public static final String SERIALIZED_NAME_CLIENT_I_P = "clientIP"; @SerializedName(SERIALIZED_NAME_CLIENT_I_P) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfo.java new file mode 100644 index 0000000000..e5726549b3 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ShardInfo.java @@ -0,0 +1,214 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * ShardInfo describes the shard selector that was applied to produce a list response. Its presence on a list response indicates the list is a filtered subset. + */ +@ApiModel(description = "ShardInfo describes the shard selector that was applied to produce a list response. Its presence on a list response indicates the list is a filtered subset.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1ShardInfo { + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + @jakarta.annotation.Nonnull + private String selector; + + public V1ShardInfo() { + } + + public V1ShardInfo selector(@jakarta.annotation.Nonnull String selector) { + this.selector = selector; + return this; + } + + /** + * selector is the shard selector string from the request, echoed back so clients can verify which shard they received and merge responses from multiple shards. + * @return selector + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "selector is the shard selector string from the request, echoed back so clients can verify which shard they received and merge responses from multiple shards.") + public String getSelector() { + return selector; + } + + public void setSelector(@jakarta.annotation.Nonnull String selector) { + this.selector = selector; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1ShardInfo v1ShardInfo = (V1ShardInfo) o; + return Objects.equals(this.selector, v1ShardInfo.selector); + } + + @Override + public int hashCode() { + return Objects.hash(selector); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1ShardInfo {\n"); + sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("selector")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("selector")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1ShardInfo + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1ShardInfo.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1ShardInfo is not found in the empty JSON string", V1ShardInfo.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1ShardInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ShardInfo` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ShardInfo.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("selector").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `selector` to be a primitive type in the JSON string but got `%s`", jsonObj.get("selector").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1ShardInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1ShardInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1ShardInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1ShardInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1ShardInfo read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1ShardInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1ShardInfo + * @throws IOException if the JSON string is invalid with respect to V1ShardInfo + */ + public static V1ShardInfo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1ShardInfo.class); + } + + /** + * Convert an instance of V1ShardInfo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java index 14774602a3..85963e3a30 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SleepAction.java @@ -50,7 +50,7 @@ * SleepAction describes a \"sleep\" action. */ @ApiModel(description = "SleepAction describes a \"sleep\" action.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SleepAction { public static final String SERIALIZED_NAME_SECONDS = "seconds"; @SerializedName(SERIALIZED_NAME_SECONDS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java index c2c3f469f4..48af212d9c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSet.java @@ -53,7 +53,7 @@ * StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity. */ @ApiModel(description = "StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSet implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java index c1ec3f0f9a..585a991f38 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetCondition.java @@ -51,7 +51,7 @@ * StatefulSetCondition describes the state of a statefulset at a certain point. */ @ApiModel(description = "StatefulSetCondition describes the state of a statefulset at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSetCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java index 52038d7865..a5310bcef8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetList.java @@ -54,7 +54,7 @@ * StatefulSetList is a collection of StatefulSets. */ @ApiModel(description = "StatefulSetList is a collection of StatefulSets.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSetList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java index b28ec6e76b..9dbc06b6ae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetOrdinals.java @@ -50,7 +50,7 @@ * StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet. */ @ApiModel(description = "StatefulSetOrdinals describes the policy used for replica ordinal assignment in this StatefulSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSetOrdinals { public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java index ba7c55427b..38ee3d5fea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetPersistentVolumeClaimRetentionPolicy.java @@ -50,7 +50,7 @@ * StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates. */ @ApiModel(description = "StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from the StatefulSet VolumeClaimTemplates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSetPersistentVolumeClaimRetentionPolicy { public static final String SERIALIZED_NAME_WHEN_DELETED = "whenDeleted"; @SerializedName(SERIALIZED_NAME_WHEN_DELETED) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java index 7eb2fa37a4..283a111a72 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetSpec.java @@ -58,7 +58,7 @@ * A StatefulSetSpec is the specification of a StatefulSet. */ @ApiModel(description = "A StatefulSetSpec is the specification of a StatefulSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSetSpec { public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java index 27e2f67940..a384ec0172 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetStatus.java @@ -53,7 +53,7 @@ * StatefulSetStatus represents the current state of a StatefulSet. */ @ApiModel(description = "StatefulSetStatus represents the current state of a StatefulSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSetStatus { public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java index 8f7506a609..e0c2694156 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatefulSetUpdateStrategy.java @@ -51,7 +51,7 @@ * StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. */ @ApiModel(description = "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatefulSetUpdateStrategy { public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java index fa19e265eb..66f32bdd11 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Status.java @@ -52,7 +52,7 @@ * Status is a return value for calls that don't return other objects. */ @ApiModel(description = "Status is a return value for calls that don't return other objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Status { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java index 06c4117abb..e3e27e9ebc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusCause.java @@ -50,7 +50,7 @@ * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. */ @ApiModel(description = "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatusCause { public static final String SERIALIZED_NAME_FIELD = "field"; @SerializedName(SERIALIZED_NAME_FIELD) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java index 4d29a554bd..a44d9f45ad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StatusDetails.java @@ -53,7 +53,7 @@ * StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined. */ @ApiModel(description = "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StatusDetails { public static final String SERIALIZED_NAME_CAUSES = "causes"; @SerializedName(SERIALIZED_NAME_CAUSES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java index 76c0b29cb9..8d325cf7a9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClass.java @@ -56,7 +56,7 @@ * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. */ @ApiModel(description = "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StorageClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION = "allowVolumeExpansion"; @SerializedName(SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java index de49cce0f6..2f1cead903 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageClassList.java @@ -54,7 +54,7 @@ * StorageClassList is a collection of storage classes. */ @ApiModel(description = "StorageClassList is a collection of storage classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StorageClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java index 7614e253f1..6857359233 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSPersistentVolumeSource.java @@ -51,7 +51,7 @@ * Represents a StorageOS persistent volume resource. */ @ApiModel(description = "Represents a StorageOS persistent volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StorageOSPersistentVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java index dd98049213..9952823717 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1StorageOSVolumeSource.java @@ -51,7 +51,7 @@ * Represents a StorageOS persistent volume resource. */ @ApiModel(description = "Represents a StorageOS persistent volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1StorageOSVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java index 310b84c640..ebe0fb98e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReview.java @@ -53,7 +53,7 @@ * SubjectAccessReview checks whether or not a user or group can perform an action. */ @ApiModel(description = "SubjectAccessReview checks whether or not a user or group can perform an action.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SubjectAccessReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java index 7cde8930ce..bf85acec96 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewSpec.java @@ -53,10 +53,10 @@ import io.kubernetes.client.openapi.JSON; /** - * SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set + * SubjectAccessReviewSpec is a description of the access request. Exactly one of resourceAttributes and nonResourceAttributes must be set */ -@ApiModel(description = "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@ApiModel(description = "SubjectAccessReviewSpec is a description of the access request. Exactly one of resourceAttributes and nonResourceAttributes must be set") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SubjectAccessReviewSpec { public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) @@ -105,11 +105,11 @@ public V1SubjectAccessReviewSpec putExtraItem(String key, List extraItem } /** - * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. + * extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. * @return extra */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.") + @ApiModelProperty(value = "extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.") public Map> getExtra() { return extra; } @@ -133,11 +133,11 @@ public V1SubjectAccessReviewSpec addGroupsItem(String groupsItem) { } /** - * Groups is the groups you're testing for. + * groups is the groups you're testing for. * @return groups */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Groups is the groups you're testing for.") + @ApiModelProperty(value = "groups is the groups you're testing for.") public List getGroups() { return groups; } @@ -193,11 +193,11 @@ public V1SubjectAccessReviewSpec uid(@jakarta.annotation.Nullable String uid) { } /** - * UID information about the requesting user. + * uid information about the requesting user. * @return uid */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "UID information about the requesting user.") + @ApiModelProperty(value = "uid information about the requesting user.") public String getUid() { return uid; } @@ -213,11 +213,11 @@ public V1SubjectAccessReviewSpec user(@jakarta.annotation.Nullable String user) } /** - * User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups + * user is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups * @return user */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups") + @ApiModelProperty(value = "user is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups") public String getUser() { return user; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java index 555a0cfb46..d56c0eb891 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectAccessReviewStatus.java @@ -50,7 +50,7 @@ * SubjectAccessReviewStatus */ @ApiModel(description = "SubjectAccessReviewStatus") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SubjectAccessReviewStatus { public static final String SERIALIZED_NAME_ALLOWED = "allowed"; @SerializedName(SERIALIZED_NAME_ALLOWED) @@ -81,11 +81,11 @@ public V1SubjectAccessReviewStatus allowed(@jakarta.annotation.Nonnull Boolean a } /** - * Allowed is required. True if the action would be allowed, false otherwise. + * allowed is required. True if the action would be allowed, false otherwise. * @return allowed */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Allowed is required. True if the action would be allowed, false otherwise.") + @ApiModelProperty(required = true, value = "allowed is required. True if the action would be allowed, false otherwise.") public Boolean getAllowed() { return allowed; } @@ -101,11 +101,11 @@ public V1SubjectAccessReviewStatus denied(@jakarta.annotation.Nullable Boolean d } /** - * Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. + * denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. * @return denied */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.") + @ApiModelProperty(value = "denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.") public Boolean getDenied() { return denied; } @@ -121,11 +121,11 @@ public V1SubjectAccessReviewStatus evaluationError(@jakarta.annotation.Nullable } /** - * EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. + * evaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. * @return evaluationError */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.") + @ApiModelProperty(value = "evaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.") public String getEvaluationError() { return evaluationError; } @@ -141,11 +141,11 @@ public V1SubjectAccessReviewStatus reason(@jakarta.annotation.Nullable String re } /** - * Reason is optional. It indicates why a request was allowed or denied. + * reason is optional. It indicates why a request was allowed or denied. * @return reason */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Reason is optional. It indicates why a request was allowed or denied.") + @ApiModelProperty(value = "reason is optional. It indicates why a request was allowed or denied.") public String getReason() { return reason; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java index b6168bb8c0..2fb0400011 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SubjectRulesReviewStatus.java @@ -54,7 +54,7 @@ * SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete. */ @ApiModel(description = "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SubjectRulesReviewStatus { public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; @SerializedName(SERIALIZED_NAME_EVALUATION_ERROR) @@ -85,11 +85,11 @@ public V1SubjectRulesReviewStatus evaluationError(@jakarta.annotation.Nullable S } /** - * EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. + * evaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. * @return evaluationError */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.") + @ApiModelProperty(value = "evaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.") public String getEvaluationError() { return evaluationError; } @@ -105,11 +105,11 @@ public V1SubjectRulesReviewStatus incomplete(@jakarta.annotation.Nonnull Boolean } /** - * Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. + * incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation. * @return incomplete */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.") + @ApiModelProperty(required = true, value = "incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.") public Boolean getIncomplete() { return incomplete; } @@ -133,11 +133,11 @@ public V1SubjectRulesReviewStatus addNonResourceRulesItem(V1NonResourceRule nonR } /** - * NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + * nonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. * @return nonResourceRules */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") + @ApiModelProperty(required = true, value = "nonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") public List getNonResourceRules() { return nonResourceRules; } @@ -161,11 +161,11 @@ public V1SubjectRulesReviewStatus addResourceRulesItem(V1ResourceRule resourceRu } /** - * ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. + * resourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. * @return resourceRules */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") + @ApiModelProperty(required = true, value = "resourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") public List getResourceRules() { return resourceRules; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java index 24cb9a8bdb..fb1c3e2144 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicy.java @@ -53,7 +53,7 @@ * SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes. */ @ApiModel(description = "SuccessPolicy describes when a Job can be declared as succeeded based on the success of some indexes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SuccessPolicy { public static final String SERIALIZED_NAME_RULES = "rules"; @SerializedName(SERIALIZED_NAME_RULES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java index c4dde9eb8b..48a52b7a93 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1SuccessPolicyRule.java @@ -50,7 +50,7 @@ * SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified. */ @ApiModel(description = "SuccessPolicyRule describes rule for declaring a Job as succeeded. Each rule must have at least one of the \"succeededIndexes\" or \"succeededCount\" specified.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1SuccessPolicyRule { public static final String SERIALIZED_NAME_SUCCEEDED_COUNT = "succeededCount"; @SerializedName(SERIALIZED_NAME_SUCCEEDED_COUNT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java index 914e2fce79..13accf2fdc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Sysctl.java @@ -50,7 +50,7 @@ * Sysctl defines a kernel parameter to be set */ @ApiModel(description = "Sysctl defines a kernel parameter to be set") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Sysctl { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java index e2cc0d4678..97d446cfa7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TCPSocketAction.java @@ -51,7 +51,7 @@ * TCPSocketAction describes an action based on opening a socket */ @ApiModel(description = "TCPSocketAction describes an action based on opening a socket") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TCPSocketAction { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java index 2e0826c38a..43a7f1a95a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Taint.java @@ -51,7 +51,7 @@ * The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint. */ @ApiModel(description = "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Taint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java index d319df19f7..a0e079bfa4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestSpec.java @@ -53,11 +53,11 @@ * TokenRequestSpec contains client provided parameters of a token request. */ @ApiModel(description = "TokenRequestSpec contains client provided parameters of a token request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TokenRequestSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private List audiences = new ArrayList<>(); public static final String SERIALIZED_NAME_BOUND_OBJECT_REF = "boundObjectRef"; @@ -73,7 +73,7 @@ public class V1TokenRequestSpec { public V1TokenRequestSpec() { } - public V1TokenRequestSpec audiences(@jakarta.annotation.Nonnull List audiences) { + public V1TokenRequestSpec audiences(@jakarta.annotation.Nullable List audiences) { this.audiences = audiences; return this; } @@ -87,16 +87,16 @@ public V1TokenRequestSpec addAudiencesItem(String audiencesItem) { } /** - * Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. + * audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences. * @return audiences */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.") public List getAudiences() { return audiences; } - public void setAudiences(@jakarta.annotation.Nonnull List audiences) { + public void setAudiences(@jakarta.annotation.Nullable List audiences) { this.audiences = audiences; } @@ -127,11 +127,11 @@ public V1TokenRequestSpec expirationSeconds(@jakarta.annotation.Nullable Long ex } /** - * ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. + * expirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response. * @return expirationSeconds */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.") + @ApiModelProperty(value = "expirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.") public Long getExpirationSeconds() { return expirationSeconds; } @@ -192,7 +192,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("audiences", "boundObjectRef", "expirationSeconds")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("audiences")); + openapiRequiredFields = new HashSet(0); } /** @@ -215,18 +215,9 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1TokenRequestSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1TokenRequestSpec.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); - // ensure the required json array is present - if (jsonObj.get("audiences") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("audiences").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("audiences") != null && !jsonObj.get("audiences").isJsonNull() && !jsonObj.get("audiences").isJsonArray()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `audiences` to be an array in the JSON string but got `%s`", jsonObj.get("audiences").toString())); } // validate the optional field `boundObjectRef` diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java index fd503cf996..1186d648ec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenRequestStatus.java @@ -51,57 +51,57 @@ * TokenRequestStatus is the result of a token request. */ @ApiModel(description = "TokenRequestStatus is the result of a token request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TokenRequestStatus { public static final String SERIALIZED_NAME_EXPIRATION_TIMESTAMP = "expirationTimestamp"; @SerializedName(SERIALIZED_NAME_EXPIRATION_TIMESTAMP) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private OffsetDateTime expirationTimestamp; public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private String token; public V1TokenRequestStatus() { } - public V1TokenRequestStatus expirationTimestamp(@jakarta.annotation.Nonnull OffsetDateTime expirationTimestamp) { + public V1TokenRequestStatus expirationTimestamp(@jakarta.annotation.Nullable OffsetDateTime expirationTimestamp) { this.expirationTimestamp = expirationTimestamp; return this; } /** - * ExpirationTimestamp is the time of expiration of the returned token. + * expirationTimestamp is the time of expiration of the returned token. * @return expirationTimestamp */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "ExpirationTimestamp is the time of expiration of the returned token.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "expirationTimestamp is the time of expiration of the returned token.") public OffsetDateTime getExpirationTimestamp() { return expirationTimestamp; } - public void setExpirationTimestamp(@jakarta.annotation.Nonnull OffsetDateTime expirationTimestamp) { + public void setExpirationTimestamp(@jakarta.annotation.Nullable OffsetDateTime expirationTimestamp) { this.expirationTimestamp = expirationTimestamp; } - public V1TokenRequestStatus token(@jakarta.annotation.Nonnull String token) { + public V1TokenRequestStatus token(@jakarta.annotation.Nullable String token) { this.token = token; return this; } /** - * Token is the opaque bearer token. + * token is the opaque bearer token. * @return token */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Token is the opaque bearer token.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "token is the opaque bearer token.") public String getToken() { return token; } - public void setToken(@jakarta.annotation.Nonnull String token) { + public void setToken(@jakarta.annotation.Nullable String token) { this.token = token; } @@ -155,7 +155,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("expirationTimestamp", "token")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("expirationTimestamp", "token")); + openapiRequiredFields = new HashSet(0); } /** @@ -178,15 +178,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1TokenRequestStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1TokenRequestStatus.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("token").isJsonPrimitive()) { + if ((jsonObj.get("token") != null && !jsonObj.get("token").isJsonNull()) && !jsonObj.get("token").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `token` to be a primitive type in the JSON string but got `%s`", jsonObj.get("token").toString())); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java index 2027d41cc0..10c9d430a1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReview.java @@ -53,7 +53,7 @@ * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. */ @ApiModel(description = "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TokenReview implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java index 10e32fa54e..db4937919e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewSpec.java @@ -52,7 +52,7 @@ * TokenReviewSpec is a description of the token authentication request. */ @ApiModel(description = "TokenReviewSpec is a description of the token authentication request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TokenReviewSpec { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) @@ -61,7 +61,7 @@ public class V1TokenReviewSpec { public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private String token; public V1TokenReviewSpec() { @@ -81,11 +81,11 @@ public V1TokenReviewSpec addAudiencesItem(String audiencesItem) { } /** - * Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. + * audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. * @return audiences */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.") + @ApiModelProperty(value = "audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.") public List getAudiences() { return audiences; } @@ -95,22 +95,22 @@ public void setAudiences(@jakarta.annotation.Nullable List audiences) { } - public V1TokenReviewSpec token(@jakarta.annotation.Nullable String token) { + public V1TokenReviewSpec token(@jakarta.annotation.Nonnull String token) { this.token = token; return this; } /** - * Token is the opaque bearer token. + * token is the opaque bearer token. * @return token */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "Token is the opaque bearer token.") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "token is the opaque bearer token.") public String getToken() { return token; } - public void setToken(@jakarta.annotation.Nullable String token) { + public void setToken(@jakarta.annotation.Nonnull String token) { this.token = token; } @@ -164,7 +164,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("audiences", "token")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("token")); } /** @@ -187,12 +187,19 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1TokenReviewSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1TokenReviewSpec.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // ensure the optional json data is an array if present if (jsonObj.get("audiences") != null && !jsonObj.get("audiences").isJsonNull() && !jsonObj.get("audiences").isJsonArray()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `audiences` to be an array in the JSON string but got `%s`", jsonObj.get("audiences").toString())); } - if ((jsonObj.get("token") != null && !jsonObj.get("token").isJsonNull()) && !jsonObj.get("token").isJsonPrimitive()) { + if (!jsonObj.get("token").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `token` to be a primitive type in the JSON string but got `%s`", jsonObj.get("token").toString())); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java index c010626f64..f324944f41 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TokenReviewStatus.java @@ -53,7 +53,7 @@ * TokenReviewStatus is the result of the token authentication request. */ @ApiModel(description = "TokenReviewStatus is the result of the token authentication request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TokenReviewStatus { public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; @SerializedName(SERIALIZED_NAME_AUDIENCES) @@ -92,11 +92,11 @@ public V1TokenReviewStatus addAudiencesItem(String audiencesItem) { } /** - * Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. + * audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. * @return audiences */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.") + @ApiModelProperty(value = "audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.") public List getAudiences() { return audiences; } @@ -112,11 +112,11 @@ public V1TokenReviewStatus authenticated(@jakarta.annotation.Nullable Boolean au } /** - * Authenticated indicates that the token was associated with a known user. + * authenticated indicates that the token was associated with a known user. * @return authenticated */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Authenticated indicates that the token was associated with a known user.") + @ApiModelProperty(value = "authenticated indicates that the token was associated with a known user.") public Boolean getAuthenticated() { return authenticated; } @@ -132,11 +132,11 @@ public V1TokenReviewStatus error(@jakarta.annotation.Nullable String error) { } /** - * Error indicates that the token couldn't be checked + * error indicates that the token couldn't be checked * @return error */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Error indicates that the token couldn't be checked") + @ApiModelProperty(value = "error indicates that the token couldn't be checked") public String getError() { return error; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java index 8858932805..d840e8af8b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Toleration.java @@ -50,7 +50,7 @@ * The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. */ @ApiModel(description = "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Toleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java index 8082dbf35a..290cb3903b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorLabelRequirement.java @@ -52,7 +52,7 @@ * A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future. */ @ApiModel(description = "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TopologySelectorLabelRequirement { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java index b82c89dcdb..d8c3308595 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySelectorTerm.java @@ -53,7 +53,7 @@ * A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future. */ @ApiModel(description = "A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TopologySelectorTerm { public static final String SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS = "matchLabelExpressions"; @SerializedName(SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java index e1e401874e..a2cef3a37a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TopologySpreadConstraint.java @@ -53,7 +53,7 @@ * TopologySpreadConstraint specifies how to spread matching pods among the given topology. */ @ApiModel(description = "TopologySpreadConstraint specifies how to spread matching pods among the given topology.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TopologySpreadConstraint { public static final String SERIALIZED_NAME_LABEL_SELECTOR = "labelSelector"; @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java index 6a03d9c54c..cc7f0f9eae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypeChecking.java @@ -53,7 +53,7 @@ * TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy */ @ApiModel(description = "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TypeChecking { public static final String SERIALIZED_NAME_EXPRESSION_WARNINGS = "expressionWarnings"; @SerializedName(SERIALIZED_NAME_EXPRESSION_WARNINGS) @@ -77,11 +77,11 @@ public V1TypeChecking addExpressionWarningsItem(V1ExpressionWarning expressionWa } /** - * The type checking warnings for each expression. + * expressionWarnings contains the type checking warnings for each expression. * @return expressionWarnings */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "The type checking warnings for each expression.") + @ApiModelProperty(value = "expressionWarnings contains the type checking warnings for each expression.") public List getExpressionWarnings() { return expressionWarnings; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java index d315b43ed6..ea2ff36cd7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedLocalObjectReference.java @@ -50,7 +50,7 @@ * TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. */ @ApiModel(description = "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TypedLocalObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java index 1b053459fd..4345b2fa74 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1TypedObjectReference.java @@ -50,7 +50,7 @@ * TypedObjectReference contains enough information to let you locate the typed referenced object */ @ApiModel(description = "TypedObjectReference contains enough information to let you locate the typed referenced object") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1TypedObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java index 646efb5d48..fa32c41c35 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UncountedTerminatedPods.java @@ -52,7 +52,7 @@ * UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters. */ @ApiModel(description = "UncountedTerminatedPods holds UIDs of Pods that have terminated but haven't been accounted in Job status counters.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1UncountedTerminatedPods { public static final String SERIALIZED_NAME_FAILED = "failed"; @SerializedName(SERIALIZED_NAME_FAILED) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java index a2fa73921f..92b62fb5c5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserInfo.java @@ -54,7 +54,7 @@ * UserInfo holds the information about the user needed to implement the user.Info interface. */ @ApiModel(description = "UserInfo holds the information about the user needed to implement the user.Info interface.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1UserInfo { public static final String SERIALIZED_NAME_EXTRA = "extra"; @SerializedName(SERIALIZED_NAME_EXTRA) @@ -93,11 +93,11 @@ public V1UserInfo putExtraItem(String key, List extraItem) { } /** - * Any additional information provided by the authenticator. + * extra is any additional information provided by the authenticator. * @return extra */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Any additional information provided by the authenticator.") + @ApiModelProperty(value = "extra is any additional information provided by the authenticator.") public Map> getExtra() { return extra; } @@ -121,11 +121,11 @@ public V1UserInfo addGroupsItem(String groupsItem) { } /** - * The names of groups this user is a part of. + * groups is the names of groups this user is a part of. * @return groups */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "The names of groups this user is a part of.") + @ApiModelProperty(value = "groups is the names of groups this user is a part of.") public List getGroups() { return groups; } @@ -141,11 +141,11 @@ public V1UserInfo uid(@jakarta.annotation.Nullable String uid) { } /** - * A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. + * uid is a unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. * @return uid */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.") + @ApiModelProperty(value = "uid is a unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.") public String getUid() { return uid; } @@ -161,11 +161,11 @@ public V1UserInfo username(@jakarta.annotation.Nullable String username) { } /** - * The name that uniquely identifies this user among all active users. + * username is the name that uniquely identifies this user among all active users. * @return username */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "The name that uniquely identifies this user among all active users.") + @ApiModelProperty(value = "username is the name that uniquely identifies this user among all active users.") public String getUsername() { return username; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java index 44e98f33a5..0e5ec4aca2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1UserSubject.java @@ -50,7 +50,7 @@ * UserSubject holds detailed information for user-kind subject. */ @ApiModel(description = "UserSubject holds detailed information for user-kind subject.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1UserSubject { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java index 5978655aaf..fefd887da8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicy.java @@ -53,7 +53,7 @@ * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it. */ @ApiModel(description = "ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java index 778f8fc013..30e8d96d65 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBinding.java @@ -52,7 +52,7 @@ * ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. */ @ApiModel(description = "ValidatingAdmissionPolicyBinding binds the ValidatingAdmissionPolicy with paramerized resources. ValidatingAdmissionPolicyBinding and parameter CRDs together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. The CEL expressions of a policy must have a computed CEL cost below the maximum CEL budget. Each evaluation of the policy is given an independent CEL cost budget. Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,7 +71,7 @@ public class V1ValidatingAdmissionPolicyBinding implements io.kubernetes.client. public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V1ValidatingAdmissionPolicyBindingSpec spec; public V1ValidatingAdmissionPolicyBinding() { @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1ValidatingAdmissionPolicyBinding spec(@jakarta.annotation.Nullable V1ValidatingAdmissionPolicyBindingSpec spec) { + public V1ValidatingAdmissionPolicyBinding spec(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBindingSpec spec) { this.spec = spec; return this; } @@ -146,13 +146,13 @@ public V1ValidatingAdmissionPolicyBinding spec(@jakarta.annotation.Nullable V1Va * Get spec * @return spec */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1ValidatingAdmissionPolicyBindingSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1ValidatingAdmissionPolicyBindingSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1ValidatingAdmissionPolicyBindingSpec spec) { this.spec = spec; } @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -233,6 +233,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicyBinding` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ValidatingAdmissionPolicyBinding.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -244,10 +251,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the optional field `spec` - if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { - V1ValidatingAdmissionPolicyBindingSpec.validateJsonElement(jsonObj.get("spec")); - } + // validate the required field `spec` + V1ValidatingAdmissionPolicyBindingSpec.validateJsonElement(jsonObj.get("spec")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java index 689ed0cba4..8c18f43443 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingList.java @@ -54,7 +54,7 @@ * ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding. */ @ApiModel(description = "ValidatingAdmissionPolicyBindingList is a list of ValidatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java index c3fe71a479..8056e2f2ce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyBindingSpec.java @@ -54,7 +54,7 @@ * ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding. */ @ApiModel(description = "ValidatingAdmissionPolicyBindingSpec is the specification of the ValidatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) @@ -68,12 +68,12 @@ public class V1ValidatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_POLICY_NAME = "policyName"; @SerializedName(SERIALIZED_NAME_POLICY_NAME) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private String policyName; public static final String SERIALIZED_NAME_VALIDATION_ACTIONS = "validationActions"; @SerializedName(SERIALIZED_NAME_VALIDATION_ACTIONS) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private List validationActions = new ArrayList<>(); public V1ValidatingAdmissionPolicyBindingSpec() { @@ -119,27 +119,27 @@ public void setParamRef(@jakarta.annotation.Nullable V1ParamRef paramRef) { } - public V1ValidatingAdmissionPolicyBindingSpec policyName(@jakarta.annotation.Nullable String policyName) { + public V1ValidatingAdmissionPolicyBindingSpec policyName(@jakarta.annotation.Nonnull String policyName) { this.policyName = policyName; return this; } /** - * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. + * policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. * @return policyName */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.") public String getPolicyName() { return policyName; } - public void setPolicyName(@jakarta.annotation.Nullable String policyName) { + public void setPolicyName(@jakarta.annotation.Nonnull String policyName) { this.policyName = policyName; } - public V1ValidatingAdmissionPolicyBindingSpec validationActions(@jakarta.annotation.Nullable List validationActions) { + public V1ValidatingAdmissionPolicyBindingSpec validationActions(@jakarta.annotation.Nonnull List validationActions) { this.validationActions = validationActions; return this; } @@ -156,13 +156,13 @@ public V1ValidatingAdmissionPolicyBindingSpec addValidationActionsItem(String va * validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required. * @return validationActions */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required.") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required.") public List getValidationActions() { return validationActions; } - public void setValidationActions(@jakarta.annotation.Nullable List validationActions) { + public void setValidationActions(@jakarta.annotation.Nonnull List validationActions) { this.validationActions = validationActions; } @@ -220,7 +220,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("matchResources", "paramRef", "policyName", "validationActions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("policyName", "validationActions")); } /** @@ -243,6 +243,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1ValidatingAdmissionPolicyBindingSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1ValidatingAdmissionPolicyBindingSpec.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `matchResources` if (jsonObj.get("matchResources") != null && !jsonObj.get("matchResources").isJsonNull()) { @@ -252,11 +259,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("paramRef") != null && !jsonObj.get("paramRef").isJsonNull()) { V1ParamRef.validateJsonElement(jsonObj.get("paramRef")); } - if ((jsonObj.get("policyName") != null && !jsonObj.get("policyName").isJsonNull()) && !jsonObj.get("policyName").isJsonPrimitive()) { + if (!jsonObj.get("policyName").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `policyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("policyName").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("validationActions") != null && !jsonObj.get("validationActions").isJsonNull() && !jsonObj.get("validationActions").isJsonArray()) { + // ensure the required json array is present + if (jsonObj.get("validationActions") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("validationActions").isJsonArray()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `validationActions` to be an array in the JSON string but got `%s`", jsonObj.get("validationActions").toString())); } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java index 947b322c20..f0ff87ad8c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyList.java @@ -54,7 +54,7 @@ * ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy. */ @ApiModel(description = "ValidatingAdmissionPolicyList is a list of ValidatingAdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java index 74819d1322..0894eb790d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicySpec.java @@ -58,7 +58,7 @@ * ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy. */ @ApiModel(description = "ValidatingAdmissionPolicySpec is the specification of the desired behavior of the AdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_AUDIT_ANNOTATIONS = "auditAnnotations"; @SerializedName(SERIALIZED_NAME_AUDIT_ANNOTATIONS) @@ -160,11 +160,11 @@ public V1ValidatingAdmissionPolicySpec addMatchConditionsItem(V1MatchCondition m } /** - * MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped + * matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped * @return matchConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped") + @ApiModelProperty(value = "matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped") public List getMatchConditions() { return matchConditions; } @@ -228,11 +228,11 @@ public V1ValidatingAdmissionPolicySpec addValidationsItem(V1Validation validatio } /** - * Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. + * validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. * @return validations */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.") + @ApiModelProperty(value = "validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.") public List getValidations() { return validations; } @@ -256,11 +256,11 @@ public V1ValidatingAdmissionPolicySpec addVariablesItem(V1Variable variablesItem } /** - * Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. + * variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. * @return variables */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.") + @ApiModelProperty(value = "variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.") public List getVariables() { return variables; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java index e85c21df10..35c3a08519 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingAdmissionPolicyStatus.java @@ -54,7 +54,7 @@ * ValidatingAdmissionPolicyStatus represents the status of an admission validation policy. */ @ApiModel(description = "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingAdmissionPolicyStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) @@ -88,11 +88,11 @@ public V1ValidatingAdmissionPolicyStatus addConditionsItem(V1Condition condition } /** - * The conditions represent the latest available observations of a policy's current state. + * conditions represent the latest available observations of a policy's current state. * @return conditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "The conditions represent the latest available observations of a policy's current state.") + @ApiModelProperty(value = "conditions represent the latest available observations of a policy's current state.") public List getConditions() { return conditions; } @@ -108,11 +108,11 @@ public V1ValidatingAdmissionPolicyStatus observedGeneration(@jakarta.annotation. } /** - * The generation observed by the controller. + * observedGeneration is the generation observed by the controller. * @return observedGeneration */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "The generation observed by the controller.") + @ApiModelProperty(value = "observedGeneration is the generation observed by the controller.") public Long getObservedGeneration() { return observedGeneration; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java index 4353f68723..2fc4d82f6a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhook.java @@ -56,7 +56,7 @@ * ValidatingWebhook describes an admission webhook and the resources and operations it applies to. */ @ApiModel(description = "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingWebhook { public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) @@ -130,11 +130,11 @@ public V1ValidatingWebhook addAdmissionReviewVersionsItem(String admissionReview } /** - * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. + * admissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. * @return admissionReviewVersions */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.") + @ApiModelProperty(required = true, value = "admissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.") public List getAdmissionReviewVersions() { return admissionReviewVersions; } @@ -170,11 +170,11 @@ public V1ValidatingWebhook failurePolicy(@jakarta.annotation.Nullable String fai } /** - * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. + * failurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail. * @return failurePolicy */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.") + @ApiModelProperty(value = "failurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.") public String getFailurePolicy() { return failurePolicy; } @@ -198,11 +198,11 @@ public V1ValidatingWebhook addMatchConditionsItem(V1MatchCondition matchConditio } /** - * MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped + * matchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped * @return matchConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped") + @ApiModelProperty(value = "matchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped. 2. If ALL matchConditions evaluate to TRUE, the webhook is called. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the error is ignored and the webhook is skipped") public List getMatchConditions() { return matchConditions; } @@ -238,11 +238,11 @@ public V1ValidatingWebhook name(@jakarta.annotation.Nonnull String name) { } /** - * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * name is the name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.") + @ApiModelProperty(required = true, value = "name is the name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.") public String getName() { return name; } @@ -306,11 +306,11 @@ public V1ValidatingWebhook addRulesItem(V1RuleWithOperations rulesItem) { } /** - * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. * @return rules */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.") + @ApiModelProperty(value = "rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.") public List getRules() { return rules; } @@ -326,11 +326,11 @@ public V1ValidatingWebhook sideEffects(@jakarta.annotation.Nonnull String sideEf } /** - * SideEffects states whether this webhook has side 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 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. + * sideEffects states whether this webhook has side 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 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. * @return sideEffects */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "SideEffects states whether this webhook has side 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 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.") + @ApiModelProperty(required = true, value = "sideEffects states whether this webhook has side 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 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.") public String getSideEffects() { return sideEffects; } @@ -346,11 +346,11 @@ public V1ValidatingWebhook timeoutSeconds(@jakarta.annotation.Nullable Integer t } /** - * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. + * timeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds. * @return timeoutSeconds */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.") + @ApiModelProperty(value = "timeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.") public Integer getTimeoutSeconds() { return timeoutSeconds; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java index 85fa86520e..bd137e8532 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfiguration.java @@ -54,7 +54,7 @@ * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. */ @ApiModel(description = "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingWebhookConfiguration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -153,11 +153,11 @@ public V1ValidatingWebhookConfiguration addWebhooksItem(V1ValidatingWebhook webh } /** - * Webhooks is a list of webhooks and the affected resources and operations. + * webhooks is a list of webhooks and the affected resources and operations. * @return webhooks */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Webhooks is a list of webhooks and the affected resources and operations.") + @ApiModelProperty(value = "webhooks is a list of webhooks and the affected resources and operations.") public List getWebhooks() { return webhooks; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java index d9efa9e67a..f248faf775 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidatingWebhookConfigurationList.java @@ -54,7 +54,7 @@ * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. */ @ApiModel(description = "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidatingWebhookConfigurationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java index 3eb6f3ffcd..9dea05f2f1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Validation.java @@ -50,7 +50,7 @@ * Validation specifies the CEL expression which is used to apply the validation. */ @ApiModel(description = "Validation specifies the CEL expression which is used to apply the validation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Validation { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -81,11 +81,11 @@ public V1Validation expression(@jakarta.annotation.Nonnull String expression) { } /** - * Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. + * expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. * @return expression */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required.") + @ApiModelProperty(required = true, value = "expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required.") public String getExpression() { return expression; } @@ -101,11 +101,11 @@ public V1Validation message(@jakarta.annotation.Nullable String message) { } /** - * Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\". + * message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\". * @return message */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".") + @ApiModelProperty(value = "message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".") public String getMessage() { return message; } @@ -141,11 +141,11 @@ public V1Validation reason(@jakarta.annotation.Nullable String reason) { } /** - * Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client. + * reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client. * @return reason */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.") + @ApiModelProperty(value = "reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.") public String getReason() { return reason; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java index 6fafe276db..c665d7225d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1ValidationRule.java @@ -50,7 +50,7 @@ * ValidationRule describes a validation rule written in the CEL expression language. */ @ApiModel(description = "ValidationRule describes a validation rule written in the CEL expression language.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1ValidationRule { public static final String SERIALIZED_NAME_FIELD_PATH = "fieldPath"; @SerializedName(SERIALIZED_NAME_FIELD_PATH) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java index 6aff050f0f..9b105bf180 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Variable.java @@ -50,7 +50,7 @@ * Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. */ @ApiModel(description = "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Variable { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -71,11 +71,11 @@ public V1Variable expression(@jakarta.annotation.Nonnull String expression) { } /** - * Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. + * expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. * @return expression */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.") + @ApiModelProperty(required = true, value = "expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.") public String getExpression() { return expression; } @@ -91,11 +91,11 @@ public V1Variable name(@jakarta.annotation.Nonnull String name) { } /** - * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` + * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`") + @ApiModelProperty(required = true, value = "name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java index bfebc6eb8b..b48e37c77b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1Volume.java @@ -80,7 +80,7 @@ * Volume represents a named volume in a pod that may be accessed by any container in the pod. */ @ApiModel(description = "Volume represents a named volume in a pod that may be accessed by any container in the pod.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1Volume { public static final String SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE = "awsElasticBlockStore"; @SerializedName(SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java index 7afbb0ff66..3bc4f018e8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachment.java @@ -53,7 +53,7 @@ * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. */ @ApiModel(description = "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeAttachment implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java index bd3e7ca7cf..a5ff72e944 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentList.java @@ -54,7 +54,7 @@ * VolumeAttachmentList is a collection of VolumeAttachment objects. */ @ApiModel(description = "VolumeAttachmentList is a collection of VolumeAttachment objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeAttachmentList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java index 1553f4dcca..9bb432257a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSource.java @@ -51,7 +51,7 @@ * VolumeAttachmentSource represents a volume that should be attached. Right now only PersistentVolumes can be attached via external attacher, in the future we may allow also inline volumes in pods. Exactly one member can be set. */ @ApiModel(description = "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistentVolumes can be attached via external attacher, in the future we may allow also inline volumes in pods. Exactly one member can be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeAttachmentSource { public static final String SERIALIZED_NAME_INLINE_VOLUME_SPEC = "inlineVolumeSpec"; @SerializedName(SERIALIZED_NAME_INLINE_VOLUME_SPEC) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java index ff192d3ac8..960f196ef6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentSpec.java @@ -51,7 +51,7 @@ * VolumeAttachmentSpec is the specification of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentSpec is the specification of a VolumeAttachment request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeAttachmentSpec { public static final String SERIALIZED_NAME_ATTACHER = "attacher"; @SerializedName(SERIALIZED_NAME_ATTACHER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java index 952f7d25f9..b94c79a5cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttachmentStatus.java @@ -53,7 +53,7 @@ * VolumeAttachmentStatus is the status of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentStatus is the status of a VolumeAttachment request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeAttachmentStatus { public static final String SERIALIZED_NAME_ATTACH_ERROR = "attachError"; @SerializedName(SERIALIZED_NAME_ATTACH_ERROR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java index 49d6c07448..1c8d9673ee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClass.java @@ -53,7 +53,7 @@ * VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning. */ @ApiModel(description = "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeAttributesClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java index ff0d30b41a..d039347e8e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeAttributesClassList.java @@ -54,7 +54,7 @@ * VolumeAttributesClassList is a collection of VolumeAttributesClass objects. */ @ApiModel(description = "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeAttributesClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java index a954c2d926..6fa88d2cbf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeDevice.java @@ -50,7 +50,7 @@ * volumeDevice describes a mapping of a raw block device within a container. */ @ApiModel(description = "volumeDevice describes a mapping of a raw block device within a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeDevice { public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; @SerializedName(SERIALIZED_NAME_DEVICE_PATH) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java index 354f34bc39..7a6561c602 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeError.java @@ -51,7 +51,7 @@ * VolumeError captures an error encountered during a volume operation. */ @ApiModel(description = "VolumeError captures an error encountered during a volume operation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeError { public static final String SERIALIZED_NAME_ERROR_CODE = "errorCode"; @SerializedName(SERIALIZED_NAME_ERROR_CODE) @@ -77,11 +77,11 @@ public V1VolumeError errorCode(@jakarta.annotation.Nullable Integer errorCode) { } /** - * errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. + * errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This field requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. * @return errorCode */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.") + @ApiModelProperty(value = "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This field requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.") public Integer getErrorCode() { return errorCode; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java index 83bfbd23be..f6d25a79a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMount.java @@ -50,7 +50,7 @@ * VolumeMount describes a mounting of a Volume within a container. */ @ApiModel(description = "VolumeMount describes a mounting of a Volume within a container.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeMount { public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; @SerializedName(SERIALIZED_NAME_MOUNT_PATH) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java index 720c9282ee..8a7031ddf3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeMountStatus.java @@ -18,6 +18,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1VolumeStatus; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -50,7 +51,7 @@ * VolumeMountStatus shows status of volume mounts. */ @ApiModel(description = "VolumeMountStatus shows status of volume mounts.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeMountStatus { public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; @SerializedName(SERIALIZED_NAME_MOUNT_PATH) @@ -72,6 +73,11 @@ public class V1VolumeMountStatus { @jakarta.annotation.Nullable private String recursiveReadOnly; + public static final String SERIALIZED_NAME_VOLUME_STATUS = "volumeStatus"; + @SerializedName(SERIALIZED_NAME_VOLUME_STATUS) + @jakarta.annotation.Nullable + private V1VolumeStatus volumeStatus; + public V1VolumeMountStatus() { } @@ -155,6 +161,26 @@ public void setRecursiveReadOnly(@jakarta.annotation.Nullable String recursiveRe } + public V1VolumeMountStatus volumeStatus(@jakarta.annotation.Nullable V1VolumeStatus volumeStatus) { + this.volumeStatus = volumeStatus; + return this; + } + + /** + * Get volumeStatus + * @return volumeStatus + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1VolumeStatus getVolumeStatus() { + return volumeStatus; + } + + public void setVolumeStatus(@jakarta.annotation.Nullable V1VolumeStatus volumeStatus) { + this.volumeStatus = volumeStatus; + } + + @Override public boolean equals(Object o) { @@ -168,12 +194,13 @@ public boolean equals(Object o) { return Objects.equals(this.mountPath, v1VolumeMountStatus.mountPath) && Objects.equals(this.name, v1VolumeMountStatus.name) && Objects.equals(this.readOnly, v1VolumeMountStatus.readOnly) && - Objects.equals(this.recursiveReadOnly, v1VolumeMountStatus.recursiveReadOnly); + Objects.equals(this.recursiveReadOnly, v1VolumeMountStatus.recursiveReadOnly) && + Objects.equals(this.volumeStatus, v1VolumeMountStatus.volumeStatus); } @Override public int hashCode() { - return Objects.hash(mountPath, name, readOnly, recursiveReadOnly); + return Objects.hash(mountPath, name, readOnly, recursiveReadOnly, volumeStatus); } @Override @@ -184,6 +211,7 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); sb.append(" recursiveReadOnly: ").append(toIndentedString(recursiveReadOnly)).append("\n"); + sb.append(" volumeStatus: ").append(toIndentedString(volumeStatus)).append("\n"); sb.append("}"); return sb.toString(); } @@ -205,7 +233,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("mountPath", "name", "readOnly", "recursiveReadOnly")); + openapiFields = new HashSet(Arrays.asList("mountPath", "name", "readOnly", "recursiveReadOnly", "volumeStatus")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("mountPath", "name")); @@ -248,6 +276,10 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("recursiveReadOnly") != null && !jsonObj.get("recursiveReadOnly").isJsonNull()) && !jsonObj.get("recursiveReadOnly").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `recursiveReadOnly` to be a primitive type in the JSON string but got `%s`", jsonObj.get("recursiveReadOnly").toString())); } + // validate the optional field `volumeStatus` + if (jsonObj.get("volumeStatus") != null && !jsonObj.get("volumeStatus").isJsonNull()) { + V1VolumeStatus.validateJsonElement(jsonObj.get("volumeStatus")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java index b46f1abcce..867172db63 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeAffinity.java @@ -51,7 +51,7 @@ * VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. */ @ApiModel(description = "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeNodeAffinity { public static final String SERIALIZED_NAME_REQUIRED = "required"; @SerializedName(SERIALIZED_NAME_REQUIRED) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java index ec2896aad9..85ae7760cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeNodeResources.java @@ -50,7 +50,7 @@ * VolumeNodeResources is a set of resource limits for scheduling of volumes. */ @ApiModel(description = "VolumeNodeResources is a set of resource limits for scheduling of volumes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeNodeResources { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java index 6e1d0c7493..85899b2e73 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeProjection.java @@ -56,7 +56,7 @@ * Projection that may be projected along with other supported volume types. Exactly one of these fields must be set. */ @ApiModel(description = "Projection that may be projected along with other supported volume types. Exactly one of these fields must be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeProjection { public static final String SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE = "clusterTrustBundle"; @SerializedName(SERIALIZED_NAME_CLUSTER_TRUST_BUNDLE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java index 4f7190a6c1..edc88e477c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeResourceRequirements.java @@ -53,7 +53,7 @@ * VolumeResourceRequirements describes the storage resource requirements for a volume. */ @ApiModel(description = "VolumeResourceRequirements describes the storage resource requirements for a volume.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VolumeResourceRequirements { public static final String SERIALIZED_NAME_LIMITS = "limits"; @SerializedName(SERIALIZED_NAME_LIMITS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatus.java new file mode 100644 index 0000000000..912e529d4e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VolumeStatus.java @@ -0,0 +1,209 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ImageVolumeStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * VolumeStatus represents the status of a mounted volume. At most one of its members must be specified. + */ +@ApiModel(description = "VolumeStatus represents the status of a mounted volume. At most one of its members must be specified.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1VolumeStatus { + public static final String SERIALIZED_NAME_IMAGE = "image"; + @SerializedName(SERIALIZED_NAME_IMAGE) + @jakarta.annotation.Nullable + private V1ImageVolumeStatus image; + + public V1VolumeStatus() { + } + + public V1VolumeStatus image(@jakarta.annotation.Nullable V1ImageVolumeStatus image) { + this.image = image; + return this; + } + + /** + * Get image + * @return image + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ImageVolumeStatus getImage() { + return image; + } + + public void setImage(@jakarta.annotation.Nullable V1ImageVolumeStatus image) { + this.image = image; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1VolumeStatus v1VolumeStatus = (V1VolumeStatus) o; + return Objects.equals(this.image, v1VolumeStatus.image); + } + + @Override + public int hashCode() { + return Objects.hash(image); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1VolumeStatus {\n"); + sb.append(" image: ").append(toIndentedString(image)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("image")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1VolumeStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1VolumeStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1VolumeStatus is not found in the empty JSON string", V1VolumeStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1VolumeStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1VolumeStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `image` + if (jsonObj.get("image") != null && !jsonObj.get("image").isJsonNull()) { + V1ImageVolumeStatus.validateJsonElement(jsonObj.get("image")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1VolumeStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1VolumeStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1VolumeStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1VolumeStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1VolumeStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1VolumeStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1VolumeStatus + * @throws IOException if the JSON string is invalid with respect to V1VolumeStatus + */ + public static V1VolumeStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1VolumeStatus.class); + } + + /** + * Convert an instance of V1VolumeStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java index 360c42458c..4c5b48c737 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1VsphereVirtualDiskVolumeSource.java @@ -50,7 +50,7 @@ * Represents a vSphere volume resource. */ @ApiModel(description = "Represents a vSphere volume resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1VsphereVirtualDiskVolumeSource { public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; @SerializedName(SERIALIZED_NAME_FS_TYPE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java index e1f35acee3..42890448d5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WatchEvent.java @@ -50,7 +50,7 @@ * Event represents a single event to a watched resource. */ @ApiModel(description = "Event represents a single event to a watched resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1WatchEvent { public static final String SERIALIZED_NAME_OBJECT = "object"; @SerializedName(SERIALIZED_NAME_OBJECT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java index 8bc9c81bb4..7d2c1390c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WebhookConversion.java @@ -53,7 +53,7 @@ * WebhookConversion describes how to call a conversion webhook */ @ApiModel(description = "WebhookConversion describes how to call a conversion webhook") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1WebhookConversion { public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; @SerializedName(SERIALIZED_NAME_CLIENT_CONFIG) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java index 7e667c52eb..c1c592278a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WeightedPodAffinityTerm.java @@ -51,7 +51,7 @@ * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) */ @ApiModel(description = "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1WeightedPodAffinityTerm { public static final String SERIALIZED_NAME_POD_AFFINITY_TERM = "podAffinityTerm"; @SerializedName(SERIALIZED_NAME_POD_AFFINITY_TERM) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java index a186f8cd72..ba084a34f9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WindowsSecurityContextOptions.java @@ -50,7 +50,7 @@ * WindowsSecurityContextOptions contain Windows-specific options and credentials. */ @ApiModel(description = "WindowsSecurityContextOptions contain Windows-specific options and credentials.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1WindowsSecurityContextOptions { public static final String SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC = "gmsaCredentialSpec"; @SerializedName(SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReference.java deleted file mode 100644 index 7744284efd..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1WorkloadReference.java +++ /dev/null @@ -1,274 +0,0 @@ -/* -Copyright 2026 The Kubernetes Authors. -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at -http://www.apache.org/licenses/LICENSE-2.0 -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -package io.kubernetes.client.openapi.models; - -import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.Arrays; - -import com.google.gson.Gson; -import com.google.gson.GsonBuilder; -import com.google.gson.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; -import com.google.gson.TypeAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; - -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; - -import io.kubernetes.client.openapi.JSON; - -/** - * WorkloadReference identifies the Workload object and PodGroup membership that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics. - */ -@ApiModel(description = "WorkloadReference identifies the Workload object and PodGroup membership that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1WorkloadReference { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - @jakarta.annotation.Nonnull - private String name; - - public static final String SERIALIZED_NAME_POD_GROUP = "podGroup"; - @SerializedName(SERIALIZED_NAME_POD_GROUP) - @jakarta.annotation.Nonnull - private String podGroup; - - public static final String SERIALIZED_NAME_POD_GROUP_REPLICA_KEY = "podGroupReplicaKey"; - @SerializedName(SERIALIZED_NAME_POD_GROUP_REPLICA_KEY) - @jakarta.annotation.Nullable - private String podGroupReplicaKey; - - public V1WorkloadReference() { - } - - public V1WorkloadReference name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * Name defines the name of the Workload object this Pod belongs to. Workload must be in the same namespace as the Pod. If it doesn't match any existing Workload, the Pod will remain unschedulable until a Workload object is created and observed by the kube-scheduler. It must be a DNS subdomain. - * @return name - */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Name defines the name of the Workload object this Pod belongs to. Workload must be in the same namespace as the Pod. If it doesn't match any existing Workload, the Pod will remain unschedulable until a Workload object is created and observed by the kube-scheduler. It must be a DNS subdomain.") - public String getName() { - return name; - } - - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - - public V1WorkloadReference podGroup(@jakarta.annotation.Nonnull String podGroup) { - this.podGroup = podGroup; - return this; - } - - /** - * PodGroup is the name of the PodGroup within the Workload that this Pod belongs to. If it doesn't match any existing PodGroup within the Workload, the Pod will remain unschedulable until the Workload object is recreated and observed by the kube-scheduler. It must be a DNS label. - * @return podGroup - */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "PodGroup is the name of the PodGroup within the Workload that this Pod belongs to. If it doesn't match any existing PodGroup within the Workload, the Pod will remain unschedulable until the Workload object is recreated and observed by the kube-scheduler. It must be a DNS label.") - public String getPodGroup() { - return podGroup; - } - - public void setPodGroup(@jakarta.annotation.Nonnull String podGroup) { - this.podGroup = podGroup; - } - - - public V1WorkloadReference podGroupReplicaKey(@jakarta.annotation.Nullable String podGroupReplicaKey) { - this.podGroupReplicaKey = podGroupReplicaKey; - return this; - } - - /** - * PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs. It is used to distinguish pods belonging to different replicas of the same pod group. The pod group policy is applied separately to each replica. When set, it must be a DNS label. - * @return podGroupReplicaKey - */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs. It is used to distinguish pods belonging to different replicas of the same pod group. The pod group policy is applied separately to each replica. When set, it must be a DNS label.") - public String getPodGroupReplicaKey() { - return podGroupReplicaKey; - } - - public void setPodGroupReplicaKey(@jakarta.annotation.Nullable String podGroupReplicaKey) { - this.podGroupReplicaKey = podGroupReplicaKey; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1WorkloadReference v1WorkloadReference = (V1WorkloadReference) o; - return Objects.equals(this.name, v1WorkloadReference.name) && - Objects.equals(this.podGroup, v1WorkloadReference.podGroup) && - Objects.equals(this.podGroupReplicaKey, v1WorkloadReference.podGroupReplicaKey); - } - - @Override - public int hashCode() { - return Objects.hash(name, podGroup, podGroupReplicaKey); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1WorkloadReference {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" podGroup: ").append(toIndentedString(podGroup)).append("\n"); - sb.append(" podGroupReplicaKey: ").append(toIndentedString(podGroupReplicaKey)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - - - public static HashSet openapiFields; - public static HashSet openapiRequiredFields; - - static { - // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "podGroup", "podGroupReplicaKey")); - - // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("name", "podGroup")); - } - - /** - * Validates the JSON Element and throws an exception if issues found - * - * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1WorkloadReference - */ - public static void validateJsonElement(JsonElement jsonElement) throws IOException { - if (jsonElement == null) { - if (!V1WorkloadReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1WorkloadReference is not found in the empty JSON string", V1WorkloadReference.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonElement.getAsJsonObject().entrySet(); - // check to see if the JSON string contains additional fields - for (Map.Entry entry : entries) { - if (!V1WorkloadReference.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1WorkloadReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); - } - } - - // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1WorkloadReference.openapiRequiredFields) { - if (jsonElement.getAsJsonObject().get(requiredField) == null) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); - } - } - JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); - } - if (!jsonObj.get("podGroup").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podGroup` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podGroup").toString())); - } - if ((jsonObj.get("podGroupReplicaKey") != null && !jsonObj.get("podGroupReplicaKey").isJsonNull()) && !jsonObj.get("podGroupReplicaKey").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podGroupReplicaKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podGroupReplicaKey").toString())); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1WorkloadReference.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1WorkloadReference' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1WorkloadReference.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, V1WorkloadReference value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public V1WorkloadReference read(JsonReader in) throws IOException { - JsonElement jsonElement = elementAdapter.read(in); - validateJsonElement(jsonElement); - return thisAdapter.fromJsonTree(jsonElement); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of V1WorkloadReference given an JSON string - * - * @param jsonString JSON string - * @return An instance of V1WorkloadReference - * @throws IOException if the JSON string is invalid with respect to V1WorkloadReference - */ - public static V1WorkloadReference fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1WorkloadReference.class); - } - - /** - * Convert an instance of V1WorkloadReference to an JSON string - * - * @return JSON string - */ - public String toJson() { - return JSON.getGson().toJson(this); - } -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java index 9cfa5daf89..4aacb89d51 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ApplyConfiguration.java @@ -50,7 +50,7 @@ * ApplyConfiguration defines the desired configuration values of an object. */ @ApiModel(description = "ApplyConfiguration defines the desired configuration values of an object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1ApplyConfiguration { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java index c73d0f82cc..9114606011 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundle.java @@ -52,7 +52,7 @@ * ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle. */ @ApiModel(description = "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1ClusterTrustBundle implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java index b6c577cf51..b46ed60614 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleList.java @@ -54,7 +54,7 @@ * ClusterTrustBundleList is a collection of ClusterTrustBundle objects */ @ApiModel(description = "ClusterTrustBundleList is a collection of ClusterTrustBundle objects") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1ClusterTrustBundleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java index c5bd28023a..e6ef6d11eb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ClusterTrustBundleSpec.java @@ -50,7 +50,7 @@ * ClusterTrustBundleSpec contains the signer and trust anchors. */ @ApiModel(description = "ClusterTrustBundleSpec contains the signer and trust anchors.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1ClusterTrustBundleSpec { public static final String SERIALIZED_NAME_SIGNER_NAME = "signerName"; @SerializedName(SERIALIZED_NAME_SIGNER_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java index 88f31d8a24..4cff291f85 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1JSONPatch.java @@ -50,7 +50,7 @@ * JSONPatch defines a JSON Patch. */ @ApiModel(description = "JSONPatch defines a JSON Patch.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1JSONPatch { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java index a0cc76c51c..9149092db5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchCondition.java @@ -49,7 +49,7 @@ /** * V1alpha1MatchCondition */ -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -70,11 +70,11 @@ public V1alpha1MatchCondition expression(@jakarta.annotation.Nonnull String expr } /** - * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. + * expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. * @return expression */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required.") + @ApiModelProperty(required = true, value = "expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required.") public String getExpression() { return expression; } @@ -90,11 +90,11 @@ public V1alpha1MatchCondition name(@jakarta.annotation.Nonnull String name) { } /** - * Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. + * name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required.") + @ApiModelProperty(required = true, value = "name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java index 98092019c1..2d7ff991e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MatchResources.java @@ -54,7 +54,7 @@ * MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) */ @ApiModel(description = "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) @@ -98,11 +98,11 @@ public V1alpha1MatchResources addExcludeResourceRulesItem(V1alpha1NamedRuleWithO } /** - * ExcludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) + * excludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) * @return excludeResourceRules */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ExcludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") + @ApiModelProperty(value = "excludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") public List getExcludeResourceRules() { return excludeResourceRules; } @@ -186,11 +186,11 @@ public V1alpha1MatchResources addResourceRulesItem(V1alpha1NamedRuleWithOperatio } /** - * ResourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule. + * resourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule. * @return resourceRules */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ResourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule.") + @ApiModelProperty(value = "resourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule.") public List getResourceRules() { return resourceRules; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java index f147277444..160f2080a6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicy.java @@ -52,7 +52,7 @@ * MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain. */ @ApiModel(description = "MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MutatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java index a807baeceb..55a247c636 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBinding.java @@ -52,7 +52,7 @@ * MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. */ @ApiModel(description = "MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MutatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java index 83639530ce..0caaabfdb9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingList.java @@ -54,7 +54,7 @@ * MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MutatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java index 73f28f899c..e4f433ed79 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyBindingSpec.java @@ -52,7 +52,7 @@ * MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MutatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java index d4f83b2d78..8fadd7665a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicyList.java @@ -54,7 +54,7 @@ * MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. */ @ApiModel(description = "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MutatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java index 3173cc03b5..ac72d609f5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1MutatingAdmissionPolicySpec.java @@ -57,7 +57,7 @@ * MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy. */ @ApiModel(description = "MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1MutatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java index a5ff3fd599..55f84f568f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Mutation.java @@ -52,7 +52,7 @@ * Mutation specifies the CEL expression which is used to apply the Mutation. */ @ApiModel(description = "Mutation specifies the CEL expression which is used to apply the Mutation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1Mutation { public static final String SERIALIZED_NAME_APPLY_CONFIGURATION = "applyConfiguration"; @SerializedName(SERIALIZED_NAME_APPLY_CONFIGURATION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java index d79db90ef4..cf76560e59 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1NamedRuleWithOperations.java @@ -52,7 +52,7 @@ * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ @ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -101,11 +101,11 @@ public V1alpha1NamedRuleWithOperations addApiGroupsItem(String apiGroupsItem) { } /** - * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. * @return apiGroups */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") + @ApiModelProperty(value = "apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") public List getApiGroups() { return apiGroups; } @@ -129,11 +129,11 @@ public V1alpha1NamedRuleWithOperations addApiVersionsItem(String apiVersionsItem } /** - * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. * @return apiVersions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") + @ApiModelProperty(value = "apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") public List getApiVersions() { return apiVersions; } @@ -157,11 +157,11 @@ public V1alpha1NamedRuleWithOperations addOperationsItem(String operationsItem) } /** - * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. + * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. * @return operations */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") + @ApiModelProperty(value = "operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") public List getOperations() { return operations; } @@ -185,11 +185,11 @@ public V1alpha1NamedRuleWithOperations addResourceNamesItem(String resourceNames } /** - * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. * @return resourceNames */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") + @ApiModelProperty(value = "resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") public List getResourceNames() { return resourceNames; } @@ -213,11 +213,11 @@ public V1alpha1NamedRuleWithOperations addResourcesItem(String resourcesItem) { } /** - * Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. + * resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. * @return resources */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") + @ApiModelProperty(value = "resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") public List getResources() { return resources; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java index d25c182f5d..42b9bc152d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamKind.java @@ -50,7 +50,7 @@ * ParamKind is a tuple of Group Kind and Version. */ @ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,11 +71,11 @@ public V1alpha1ParamKind apiVersion(@jakarta.annotation.Nullable String apiVersi } /** - * APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. + * apiVersion is the API group version the resources belong to. In format of \"group/version\". Required. * @return apiVersion */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.") + @ApiModelProperty(value = "apiVersion is the API group version the resources belong to. In format of \"group/version\". Required.") public String getApiVersion() { return apiVersion; } @@ -91,11 +91,11 @@ public V1alpha1ParamKind kind(@jakarta.annotation.Nullable String kind) { } /** - * Kind is the API kind the resources belong to. Required. + * kind is the API kind the resources belong to. Required. * @return kind */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Kind is the API kind the resources belong to. Required.") + @ApiModelProperty(value = "kind is the API kind the resources belong to. Required.") public String getKind() { return kind; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java index 757d3466f3..561a540205 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ParamRef.java @@ -51,7 +51,7 @@ * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. */ @ApiModel(description = "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1ParamRef { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -82,11 +82,11 @@ public V1alpha1ParamRef name(@jakarta.annotation.Nullable String name) { } /** - * `name` is the name of the resource being referenced. `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. + * name is the name of the resource being referenced. `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset. * @return name */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "`name` is the name of the resource being referenced. `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.") + @ApiModelProperty(value = "name is the name of the resource being referenced. `name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.") public String getName() { return name; } @@ -122,11 +122,11 @@ public V1alpha1ParamRef parameterNotFoundAction(@jakarta.annotation.Nullable Str } /** - * `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Default to `Deny` + * parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Default to `Deny` * @return parameterNotFoundAction */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Default to `Deny`") + @ApiModelProperty(value = "parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Default to `Deny`") public String getParameterNotFoundAction() { return parameterNotFoundAction; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java index 121118f1a2..76f53f29f4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1ServerStorageVersion.java @@ -52,21 +52,21 @@ * An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend. */ @ApiModel(description = "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1ServerStorageVersion { public static final String SERIALIZED_NAME_API_SERVER_I_D = "apiServerID"; @SerializedName(SERIALIZED_NAME_API_SERVER_I_D) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private String apiServerID; public static final String SERIALIZED_NAME_DECODABLE_VERSIONS = "decodableVersions"; @SerializedName(SERIALIZED_NAME_DECODABLE_VERSIONS) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private List decodableVersions = new ArrayList<>(); public static final String SERIALIZED_NAME_ENCODING_VERSION = "encodingVersion"; @SerializedName(SERIALIZED_NAME_ENCODING_VERSION) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private String encodingVersion; public static final String SERIALIZED_NAME_SERVED_VERSIONS = "servedVersions"; @@ -77,27 +77,27 @@ public class V1alpha1ServerStorageVersion { public V1alpha1ServerStorageVersion() { } - public V1alpha1ServerStorageVersion apiServerID(@jakarta.annotation.Nullable String apiServerID) { + public V1alpha1ServerStorageVersion apiServerID(@jakarta.annotation.Nonnull String apiServerID) { this.apiServerID = apiServerID; return this; } /** - * The ID of the reporting API server. + * apiServerID is the ID of the reporting API server. * @return apiServerID */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "The ID of the reporting API server.") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "apiServerID is the ID of the reporting API server.") public String getApiServerID() { return apiServerID; } - public void setApiServerID(@jakarta.annotation.Nullable String apiServerID) { + public void setApiServerID(@jakarta.annotation.Nonnull String apiServerID) { this.apiServerID = apiServerID; } - public V1alpha1ServerStorageVersion decodableVersions(@jakarta.annotation.Nullable List decodableVersions) { + public V1alpha1ServerStorageVersion decodableVersions(@jakarta.annotation.Nonnull List decodableVersions) { this.decodableVersions = decodableVersions; return this; } @@ -111,36 +111,36 @@ public V1alpha1ServerStorageVersion addDecodableVersionsItem(String decodableVer } /** - * The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions. + * decodableVersions are the encoding versions the API server can handle to decode. The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions. * @return decodableVersions */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "decodableVersions are the encoding versions the API server can handle to decode. The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.") public List getDecodableVersions() { return decodableVersions; } - public void setDecodableVersions(@jakarta.annotation.Nullable List decodableVersions) { + public void setDecodableVersions(@jakarta.annotation.Nonnull List decodableVersions) { this.decodableVersions = decodableVersions; } - public V1alpha1ServerStorageVersion encodingVersion(@jakarta.annotation.Nullable String encodingVersion) { + public V1alpha1ServerStorageVersion encodingVersion(@jakarta.annotation.Nonnull String encodingVersion) { this.encodingVersion = encodingVersion; return this; } /** - * The API server encodes the object to this version when persisting it in the backend (e.g., etcd). + * encodingVersion the API server encodes the object to when persisting it in the backend (e.g., etcd). * @return encodingVersion */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "The API server encodes the object to this version when persisting it in the backend (e.g., etcd).") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "encodingVersion the API server encodes the object to when persisting it in the backend (e.g., etcd).") public String getEncodingVersion() { return encodingVersion; } - public void setEncodingVersion(@jakarta.annotation.Nullable String encodingVersion) { + public void setEncodingVersion(@jakarta.annotation.Nonnull String encodingVersion) { this.encodingVersion = encodingVersion; } @@ -159,11 +159,11 @@ public V1alpha1ServerStorageVersion addServedVersionsItem(String servedVersionsI } /** - * The API server can serve these versions. DecodableVersions must include all ServedVersions. + * servedVersions lists all versions the API server can serve. DecodableVersions must include all ServedVersions. * @return servedVersions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "The API server can serve these versions. DecodableVersions must include all ServedVersions.") + @ApiModelProperty(value = "servedVersions lists all versions the API server can serve. DecodableVersions must include all ServedVersions.") public List getServedVersions() { return servedVersions; } @@ -226,7 +226,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiServerID", "decodableVersions", "encodingVersion", "servedVersions")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("apiServerID", "decodableVersions", "encodingVersion")); } /** @@ -249,15 +249,24 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1ServerStorageVersion` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha1ServerStorageVersion.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if ((jsonObj.get("apiServerID") != null && !jsonObj.get("apiServerID").isJsonNull()) && !jsonObj.get("apiServerID").isJsonPrimitive()) { + if (!jsonObj.get("apiServerID").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiServerID` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiServerID").toString())); } - // ensure the optional json data is an array if present - if (jsonObj.get("decodableVersions") != null && !jsonObj.get("decodableVersions").isJsonNull() && !jsonObj.get("decodableVersions").isJsonArray()) { + // ensure the required json array is present + if (jsonObj.get("decodableVersions") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("decodableVersions").isJsonArray()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `decodableVersions` to be an array in the JSON string but got `%s`", jsonObj.get("decodableVersions").toString())); } - if ((jsonObj.get("encodingVersion") != null && !jsonObj.get("encodingVersion").isJsonNull()) && !jsonObj.get("encodingVersion").isJsonPrimitive()) { + if (!jsonObj.get("encodingVersion").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `encodingVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("encodingVersion").toString())); } // ensure the optional json data is an array if present diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java index 28da946971..d2340a8318 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersion.java @@ -52,7 +52,7 @@ * Storage version of a specific resource. */ @ApiModel(description = "Storage version of a specific resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1StorageVersion implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -66,17 +66,17 @@ public class V1alpha1StorageVersion implements io.kubernetes.client.common.Kuber public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V1ObjectMeta metadata; public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private Object spec; public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private V1alpha1StorageVersionStatus status; public V1alpha1StorageVersion() { @@ -122,7 +122,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha1StorageVersion metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + public V1alpha1StorageVersion metadata(@jakarta.annotation.Nonnull V1ObjectMeta metadata) { this.metadata = metadata; return this; } @@ -131,38 +131,38 @@ public V1alpha1StorageVersion metadata(@jakarta.annotation.Nullable V1ObjectMeta * Get metadata * @return metadata */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1ObjectMeta getMetadata() { return metadata; } - public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + public void setMetadata(@jakarta.annotation.Nonnull V1ObjectMeta metadata) { this.metadata = metadata; } - public V1alpha1StorageVersion spec(@jakarta.annotation.Nonnull Object spec) { + public V1alpha1StorageVersion spec(@jakarta.annotation.Nullable Object spec) { this.spec = spec; return this; } /** - * Spec is an empty spec. It is here to comply with Kubernetes API style. + * spec is an empty spec. It is here to comply with Kubernetes API style. * @return spec */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Spec is an empty spec. It is here to comply with Kubernetes API style.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "spec is an empty spec. It is here to comply with Kubernetes API style.") public Object getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull Object spec) { + public void setSpec(@jakarta.annotation.Nullable Object spec) { this.spec = spec; } - public V1alpha1StorageVersion status(@jakarta.annotation.Nonnull V1alpha1StorageVersionStatus status) { + public V1alpha1StorageVersion status(@jakarta.annotation.Nullable V1alpha1StorageVersionStatus status) { this.status = status; return this; } @@ -171,13 +171,13 @@ public V1alpha1StorageVersion status(@jakarta.annotation.Nonnull V1alpha1Storage * Get status * @return status */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") public V1alpha1StorageVersionStatus getStatus() { return status; } - public void setStatus(@jakarta.annotation.Nonnull V1alpha1StorageVersionStatus status) { + public void setStatus(@jakarta.annotation.Nullable V1alpha1StorageVersionStatus status) { this.status = status; } @@ -237,7 +237,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("spec", "status")); + openapiRequiredFields = new HashSet(Arrays.asList("metadata")); } /** @@ -274,12 +274,12 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); } - // validate the optional field `metadata` - if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { - V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); + // validate the required field `metadata` + V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1alpha1StorageVersionStatus.validateJsonElement(jsonObj.get("status")); } - // validate the required field `status` - V1alpha1StorageVersionStatus.validateJsonElement(jsonObj.get("status")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java index c9e38dae1a..508f7bef04 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionCondition.java @@ -51,7 +51,7 @@ * Describes the state of the storageVersion at a certain point. */ @ApiModel(description = "Describes the state of the storageVersion at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1StorageVersionCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) @@ -92,11 +92,11 @@ public V1alpha1StorageVersionCondition lastTransitionTime(@jakarta.annotation.Nu } /** - * Last time the condition transitioned from one status to another. + * lastTransitionTime is the last time the condition transitioned from one status to another. * @return lastTransitionTime */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") + @ApiModelProperty(value = "lastTransitionTime is the last time the condition transitioned from one status to another.") public OffsetDateTime getLastTransitionTime() { return lastTransitionTime; } @@ -112,11 +112,11 @@ public V1alpha1StorageVersionCondition message(@jakarta.annotation.Nonnull Strin } /** - * A human readable message indicating details about the transition. + * message is a human readable string indicating details about the transition. * @return message */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "A human readable message indicating details about the transition.") + @ApiModelProperty(required = true, value = "message is a human readable string indicating details about the transition.") public String getMessage() { return message; } @@ -132,11 +132,11 @@ public V1alpha1StorageVersionCondition observedGeneration(@jakarta.annotation.Nu } /** - * If set, this represents the .metadata.generation that the condition was set based upon. + * observedGeneration represents the .metadata.generation that the condition was set based upon, if field is set. * @return observedGeneration */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "If set, this represents the .metadata.generation that the condition was set based upon.") + @ApiModelProperty(value = "observedGeneration represents the .metadata.generation that the condition was set based upon, if field is set.") public Long getObservedGeneration() { return observedGeneration; } @@ -152,11 +152,11 @@ public V1alpha1StorageVersionCondition reason(@jakarta.annotation.Nonnull String } /** - * The reason for the condition's last transition. + * reason for the condition's last transition. * @return reason */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "The reason for the condition's last transition.") + @ApiModelProperty(required = true, value = "reason for the condition's last transition.") public String getReason() { return reason; } @@ -172,11 +172,11 @@ public V1alpha1StorageVersionCondition status(@jakarta.annotation.Nonnull String } /** - * Status of the condition, one of True, False, Unknown. + * status of the condition, one of True, False, Unknown. * @return status */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + @ApiModelProperty(required = true, value = "status of the condition, one of True, False, Unknown.") public String getStatus() { return status; } @@ -192,11 +192,11 @@ public V1alpha1StorageVersionCondition type(@jakarta.annotation.Nonnull String t } /** - * Type of the condition. + * type of the condition. * @return type */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Type of the condition.") + @ApiModelProperty(required = true, value = "type of the condition.") public String getType() { return type; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java index 240f130524..e738a04b9f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionList.java @@ -54,7 +54,7 @@ * A list of StorageVersions. */ @ApiModel(description = "A list of StorageVersions.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1StorageVersionList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java index d2a587e476..44744b3c87 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1StorageVersionStatus.java @@ -54,7 +54,7 @@ * API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend. */ @ApiModel(description = "API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1StorageVersionStatus { public static final String SERIALIZED_NAME_COMMON_ENCODING_VERSION = "commonEncodingVersion"; @SerializedName(SERIALIZED_NAME_COMMON_ENCODING_VERSION) @@ -80,11 +80,11 @@ public V1alpha1StorageVersionStatus commonEncodingVersion(@jakarta.annotation.Nu } /** - * If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality. + * commonEncodingVersion is set to an encoding storage version if all API server instances share that same version. If they don't share one storage version, this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality. * @return commonEncodingVersion */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.") + @ApiModelProperty(value = "commonEncodingVersion is set to an encoding storage version if all API server instances share that same version. If they don't share one storage version, this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.") public String getCommonEncodingVersion() { return commonEncodingVersion; } @@ -108,11 +108,11 @@ public V1alpha1StorageVersionStatus addConditionsItem(V1alpha1StorageVersionCond } /** - * The latest available observations of the storageVersion's state. + * conditions lists the latest available observations of the storageVersion's state. * @return conditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "The latest available observations of the storageVersion's state.") + @ApiModelProperty(value = "conditions lists the latest available observations of the storageVersion's state.") public List getConditions() { return conditions; } @@ -136,11 +136,11 @@ public V1alpha1StorageVersionStatus addStorageVersionsItem(V1alpha1ServerStorage } /** - * The reported versions per API server instance. + * storageVersions lists the reported versions per API server instance. * @return storageVersions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "The reported versions per API server instance.") + @ApiModelProperty(value = "storageVersions lists the reported versions per API server instance.") public List getStorageVersions() { return storageVersions; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java index 8e27bc22f0..d0062cab58 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Variable.java @@ -50,7 +50,7 @@ * Variable is the definition of a variable that is used for composition. */ @ApiModel(description = "Variable is the definition of a variable that is used for composition.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha1Variable { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -71,11 +71,11 @@ public V1alpha1Variable expression(@jakarta.annotation.Nonnull String expression } /** - * Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. + * expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. * @return expression */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.") + @ApiModelProperty(required = true, value = "expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.") public String getExpression() { return expression; } @@ -91,11 +91,11 @@ public V1alpha1Variable name(@jakarta.annotation.Nonnull String name) { } /** - * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` + * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`") + @ApiModelProperty(required = true, value = "name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicy.java similarity index 80% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicy.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicy.java index 9c44e1bdad..4b0a26a0eb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1GangSchedulingPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2GangSchedulingPolicy.java @@ -50,17 +50,17 @@ * GangSchedulingPolicy defines the parameters for gang scheduling. */ @ApiModel(description = "GangSchedulingPolicy defines the parameters for gang scheduling.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha1GangSchedulingPolicy { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2GangSchedulingPolicy { public static final String SERIALIZED_NAME_MIN_COUNT = "minCount"; @SerializedName(SERIALIZED_NAME_MIN_COUNT) @jakarta.annotation.Nonnull private Integer minCount; - public V1alpha1GangSchedulingPolicy() { + public V1alpha2GangSchedulingPolicy() { } - public V1alpha1GangSchedulingPolicy minCount(@jakarta.annotation.Nonnull Integer minCount) { + public V1alpha2GangSchedulingPolicy minCount(@jakarta.annotation.Nonnull Integer minCount) { this.minCount = minCount; return this; } @@ -89,8 +89,8 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha1GangSchedulingPolicy v1alpha1GangSchedulingPolicy = (V1alpha1GangSchedulingPolicy) o; - return Objects.equals(this.minCount, v1alpha1GangSchedulingPolicy.minCount); + V1alpha2GangSchedulingPolicy v1alpha2GangSchedulingPolicy = (V1alpha2GangSchedulingPolicy) o; + return Objects.equals(this.minCount, v1alpha2GangSchedulingPolicy.minCount); } @Override @@ -101,7 +101,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1GangSchedulingPolicy {\n"); + sb.append("class V1alpha2GangSchedulingPolicy {\n"); sb.append(" minCount: ").append(toIndentedString(minCount)).append("\n"); sb.append("}"); return sb.toString(); @@ -134,25 +134,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1GangSchedulingPolicy + * @throws IOException if the JSON Element is invalid with respect to V1alpha2GangSchedulingPolicy */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha1GangSchedulingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1GangSchedulingPolicy is not found in the empty JSON string", V1alpha1GangSchedulingPolicy.openapiRequiredFields.toString())); + if (!V1alpha2GangSchedulingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2GangSchedulingPolicy is not found in the empty JSON string", V1alpha2GangSchedulingPolicy.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha1GangSchedulingPolicy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1GangSchedulingPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha2GangSchedulingPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2GangSchedulingPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha1GangSchedulingPolicy.openapiRequiredFields) { + for (String requiredField : V1alpha2GangSchedulingPolicy.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -164,22 +164,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha1GangSchedulingPolicy.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha1GangSchedulingPolicy' and its subtypes + if (!V1alpha2GangSchedulingPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2GangSchedulingPolicy' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1GangSchedulingPolicy.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2GangSchedulingPolicy.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha1GangSchedulingPolicy value) throws IOException { + public void write(JsonWriter out, V1alpha2GangSchedulingPolicy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha1GangSchedulingPolicy read(JsonReader in) throws IOException { + public V1alpha2GangSchedulingPolicy read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -190,18 +190,18 @@ public V1alpha1GangSchedulingPolicy read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha1GangSchedulingPolicy given an JSON string + * Create an instance of V1alpha2GangSchedulingPolicy given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha1GangSchedulingPolicy - * @throws IOException if the JSON string is invalid with respect to V1alpha1GangSchedulingPolicy + * @return An instance of V1alpha2GangSchedulingPolicy + * @throws IOException if the JSON string is invalid with respect to V1alpha2GangSchedulingPolicy */ - public static V1alpha1GangSchedulingPolicy fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha1GangSchedulingPolicy.class); + public static V1alpha2GangSchedulingPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2GangSchedulingPolicy.class); } /** - * Convert an instance of V1alpha1GangSchedulingPolicy to an JSON string + * Convert an instance of V1alpha2GangSchedulingPolicy to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java index 1a84352585..45145021e7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidate.java @@ -52,7 +52,7 @@ * LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates. */ @ApiModel(description = "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha2LeaseCandidate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,7 +71,7 @@ public class V1alpha2LeaseCandidate implements io.kubernetes.client.common.Kuber public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V1alpha2LeaseCandidateSpec spec; public V1alpha2LeaseCandidate() { @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1alpha2LeaseCandidate spec(@jakarta.annotation.Nullable V1alpha2LeaseCandidateSpec spec) { + public V1alpha2LeaseCandidate spec(@jakarta.annotation.Nonnull V1alpha2LeaseCandidateSpec spec) { this.spec = spec; return this; } @@ -146,13 +146,13 @@ public V1alpha2LeaseCandidate spec(@jakarta.annotation.Nullable V1alpha2LeaseCan * Get spec * @return spec */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1alpha2LeaseCandidateSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1alpha2LeaseCandidateSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1alpha2LeaseCandidateSpec spec) { this.spec = spec; } @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -233,6 +233,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2LeaseCandidate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2LeaseCandidate.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -244,10 +251,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the optional field `spec` - if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { - V1alpha2LeaseCandidateSpec.validateJsonElement(jsonObj.get("spec")); - } + // validate the required field `spec` + V1alpha2LeaseCandidateSpec.validateJsonElement(jsonObj.get("spec")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java index 08d14a17dc..539ec55727 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateList.java @@ -54,7 +54,7 @@ * LeaseCandidateList is a list of Lease objects. */ @ApiModel(description = "LeaseCandidateList is a list of Lease objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha2LeaseCandidateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java index 7ec0a33ecf..5e79dbba5d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2LeaseCandidateSpec.java @@ -51,7 +51,7 @@ * LeaseCandidateSpec is a specification of a Lease. */ @ApiModel(description = "LeaseCandidateSpec is a specification of a Lease.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha2LeaseCandidateSpec { public static final String SERIALIZED_NAME_BINARY_VERSION = "binaryVersion"; @SerializedName(SERIALIZED_NAME_BINARY_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroup.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroup.java new file mode 100644 index 0000000000..e717ff4981 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroup.java @@ -0,0 +1,338 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.kubernetes.client.openapi.models.V1alpha2PodGroupSpec; +import io.kubernetes.client.openapi.models.V1alpha2PodGroupStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * PodGroup represents a runtime instance of pods grouped together. PodGroups are created by workload controllers (Job, LWS, JobSet, etc...) from Workload.podGroupTemplates. PodGroup API enablement is toggled by the GenericWorkload feature gate. + */ +@ApiModel(description = "PodGroup represents a runtime instance of pods grouped together. PodGroups are created by workload controllers (Job, LWS, JobSet, etc...) from Workload.podGroupTemplates. PodGroup API enablement is toggled by the GenericWorkload feature gate.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2PodGroup implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull + private V1alpha2PodGroupSpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable + private V1alpha2PodGroupStatus status; + + public V1alpha2PodGroup() { + } + + public V1alpha2PodGroup apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha2PodGroup kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V1alpha2PodGroup metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1alpha2PodGroup spec(@jakarta.annotation.Nonnull V1alpha2PodGroupSpec spec) { + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1alpha2PodGroupSpec getSpec() { + return spec; + } + + public void setSpec(@jakarta.annotation.Nonnull V1alpha2PodGroupSpec spec) { + this.spec = spec; + } + + + public V1alpha2PodGroup status(@jakarta.annotation.Nullable V1alpha2PodGroupStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha2PodGroupStatus getStatus() { + return status; + } + + public void setStatus(@jakarta.annotation.Nullable V1alpha2PodGroupStatus status) { + this.status = status; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha2PodGroup v1alpha2PodGroup = (V1alpha2PodGroup) o; + return Objects.equals(this.apiVersion, v1alpha2PodGroup.apiVersion) && + Objects.equals(this.kind, v1alpha2PodGroup.kind) && + Objects.equals(this.metadata, v1alpha2PodGroup.metadata) && + Objects.equals(this.spec, v1alpha2PodGroup.spec) && + Objects.equals(this.status, v1alpha2PodGroup.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha2PodGroup {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("spec")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroup + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha2PodGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroup is not found in the empty JSON string", V1alpha2PodGroup.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha2PodGroup.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroup` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2PodGroup.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); + } + // validate the required field `spec` + V1alpha2PodGroupSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1alpha2PodGroupStatus.validateJsonElement(jsonObj.get("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2PodGroup.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2PodGroup' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroup.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2PodGroup value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2PodGroup read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2PodGroup given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2PodGroup + * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroup + */ + public static V1alpha2PodGroup fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2PodGroup.class); + } + + /** + * Convert an instance of V1alpha2PodGroup to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupList.java new file mode 100644 index 0000000000..10bee27ad0 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupList.java @@ -0,0 +1,324 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V1alpha2PodGroup; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * PodGroupList contains a list of PodGroup resources. + */ +@ApiModel(description = "PodGroupList contains a list of PodGroup resources.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2PodGroupList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ListMeta metadata; + + public V1alpha2PodGroupList() { + } + + public V1alpha2PodGroupList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha2PodGroupList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1alpha2PodGroupList addItemsItem(V1alpha2PodGroup itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * Items is the list of PodGroups. + * @return items + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of PodGroups.") + public List getItems() { + return items; + } + + public void setItems(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + public V1alpha2PodGroupList kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V1alpha2PodGroupList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha2PodGroupList v1alpha2PodGroupList = (V1alpha2PodGroupList) o; + return Objects.equals(this.apiVersion, v1alpha2PodGroupList.apiVersion) && + Objects.equals(this.items, v1alpha2PodGroupList.items) && + Objects.equals(this.kind, v1alpha2PodGroupList.kind) && + Objects.equals(this.metadata, v1alpha2PodGroupList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha2PodGroupList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("items")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha2PodGroupList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupList is not found in the empty JSON string", V1alpha2PodGroupList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha2PodGroupList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2PodGroupList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1alpha2PodGroup.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonElement(jsonObj.get("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2PodGroupList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2PodGroupList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2PodGroupList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2PodGroupList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2PodGroupList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2PodGroupList + * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupList + */ + public static V1alpha2PodGroupList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupList.class); + } + + /** + * Convert an instance of V1alpha2PodGroupList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaim.java new file mode 100644 index 0000000000..7c4a72d9c5 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaim.java @@ -0,0 +1,274 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * PodGroupResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the PodGroup. It adds a name to it that uniquely identifies the ResourceClaim inside the PodGroup. Pods that need access to the ResourceClaim define a matching reference in its own Spec.ResourceClaims. The Pod's claim must match all fields of the PodGroup's claim exactly. + */ +@ApiModel(description = "PodGroupResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the PodGroup. It adds a name to it that uniquely identifies the ResourceClaim inside the PodGroup. Pods that need access to the ResourceClaim define a matching reference in its own Spec.ResourceClaims. The Pod's claim must match all fields of the PodGroup's claim exactly.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2PodGroupResourceClaim { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_RESOURCE_CLAIM_NAME = "resourceClaimName"; + @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_NAME) + @jakarta.annotation.Nullable + private String resourceClaimName; + + public static final String SERIALIZED_NAME_RESOURCE_CLAIM_TEMPLATE_NAME = "resourceClaimTemplateName"; + @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_TEMPLATE_NAME) + @jakarta.annotation.Nullable + private String resourceClaimTemplateName; + + public V1alpha2PodGroupResourceClaim() { + } + + public V1alpha2PodGroupResourceClaim name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1alpha2PodGroupResourceClaim resourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return this; + } + + /** + * ResourceClaimName is the name of a ResourceClaim object in the same namespace as this PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. + * @return resourceClaimName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.") + public String getResourceClaimName() { + return resourceClaimName; + } + + public void setResourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + } + + + public V1alpha2PodGroupResourceClaim resourceClaimTemplateName(@jakarta.annotation.Nullable String resourceClaimTemplateName) { + this.resourceClaimTemplateName = resourceClaimTemplateName; + return this; + } + + /** + * ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this PodGroup. The template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in podgroup.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set. + * @return resourceClaimTemplateName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this PodGroup. The template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in podgroup.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. Exactly one of ResourceClaimName and ResourceClaimTemplateName must be set.") + public String getResourceClaimTemplateName() { + return resourceClaimTemplateName; + } + + public void setResourceClaimTemplateName(@jakarta.annotation.Nullable String resourceClaimTemplateName) { + this.resourceClaimTemplateName = resourceClaimTemplateName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha2PodGroupResourceClaim v1alpha2PodGroupResourceClaim = (V1alpha2PodGroupResourceClaim) o; + return Objects.equals(this.name, v1alpha2PodGroupResourceClaim.name) && + Objects.equals(this.resourceClaimName, v1alpha2PodGroupResourceClaim.resourceClaimName) && + Objects.equals(this.resourceClaimTemplateName, v1alpha2PodGroupResourceClaim.resourceClaimTemplateName); + } + + @Override + public int hashCode() { + return Objects.hash(name, resourceClaimName, resourceClaimTemplateName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha2PodGroupResourceClaim {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" resourceClaimName: ").append(toIndentedString(resourceClaimName)).append("\n"); + sb.append(" resourceClaimTemplateName: ").append(toIndentedString(resourceClaimTemplateName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("name", "resourceClaimName", "resourceClaimTemplateName")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("name")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupResourceClaim + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha2PodGroupResourceClaim.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupResourceClaim is not found in the empty JSON string", V1alpha2PodGroupResourceClaim.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha2PodGroupResourceClaim.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupResourceClaim` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2PodGroupResourceClaim.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("resourceClaimName") != null && !jsonObj.get("resourceClaimName").isJsonNull()) && !jsonObj.get("resourceClaimName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaimName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClaimName").toString())); + } + if ((jsonObj.get("resourceClaimTemplateName") != null && !jsonObj.get("resourceClaimTemplateName").isJsonNull()) && !jsonObj.get("resourceClaimTemplateName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaimTemplateName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClaimTemplateName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2PodGroupResourceClaim.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2PodGroupResourceClaim' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupResourceClaim.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2PodGroupResourceClaim value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2PodGroupResourceClaim read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2PodGroupResourceClaim given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2PodGroupResourceClaim + * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupResourceClaim + */ + public static V1alpha2PodGroupResourceClaim fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupResourceClaim.class); + } + + /** + * Convert an instance of V1alpha2PodGroupResourceClaim to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatus.java new file mode 100644 index 0000000000..3b11831f18 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupResourceClaimStatus.java @@ -0,0 +1,244 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim. + */ +@ApiModel(description = "PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2PodGroupResourceClaimStatus { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_RESOURCE_CLAIM_NAME = "resourceClaimName"; + @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_NAME) + @jakarta.annotation.Nullable + private String resourceClaimName; + + public V1alpha2PodGroupResourceClaimStatus() { + } + + public V1alpha2PodGroupResourceClaimStatus name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Name uniquely identifies this resource claim inside the PodGroup. This must match the name of an entry in podgroup.spec.resourceClaims, which implies that the string must be a DNS_LABEL. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name uniquely identifies this resource claim inside the PodGroup. This must match the name of an entry in podgroup.spec.resourceClaims, which implies that the string must be a DNS_LABEL.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1alpha2PodGroupResourceClaimStatus resourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + return this; + } + + /** + * ResourceClaimName is the name of the ResourceClaim that was generated for the PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.spec.resourceClaims entry can be ignored in this case. + * @return resourceClaimName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceClaimName is the name of the ResourceClaim that was generated for the PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.spec.resourceClaims entry can be ignored in this case.") + public String getResourceClaimName() { + return resourceClaimName; + } + + public void setResourceClaimName(@jakarta.annotation.Nullable String resourceClaimName) { + this.resourceClaimName = resourceClaimName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha2PodGroupResourceClaimStatus v1alpha2PodGroupResourceClaimStatus = (V1alpha2PodGroupResourceClaimStatus) o; + return Objects.equals(this.name, v1alpha2PodGroupResourceClaimStatus.name) && + Objects.equals(this.resourceClaimName, v1alpha2PodGroupResourceClaimStatus.resourceClaimName); + } + + @Override + public int hashCode() { + return Objects.hash(name, resourceClaimName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha2PodGroupResourceClaimStatus {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" resourceClaimName: ").append(toIndentedString(resourceClaimName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("name", "resourceClaimName")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("name")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupResourceClaimStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha2PodGroupResourceClaimStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupResourceClaimStatus is not found in the empty JSON string", V1alpha2PodGroupResourceClaimStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha2PodGroupResourceClaimStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupResourceClaimStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2PodGroupResourceClaimStatus.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("resourceClaimName") != null && !jsonObj.get("resourceClaimName").isJsonNull()) && !jsonObj.get("resourceClaimName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaimName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resourceClaimName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2PodGroupResourceClaimStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2PodGroupResourceClaimStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupResourceClaimStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2PodGroupResourceClaimStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2PodGroupResourceClaimStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2PodGroupResourceClaimStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2PodGroupResourceClaimStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupResourceClaimStatus + */ + public static V1alpha2PodGroupResourceClaimStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupResourceClaimStatus.class); + } + + /** + * Convert an instance of V1alpha2PodGroupResourceClaimStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraints.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraints.java new file mode 100644 index 0000000000..c628204d4f --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingConstraints.java @@ -0,0 +1,229 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha2TopologyConstraint; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup. + */ +@ApiModel(description = "PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2PodGroupSchedulingConstraints { + public static final String SERIALIZED_NAME_TOPOLOGY = "topology"; + @SerializedName(SERIALIZED_NAME_TOPOLOGY) + @jakarta.annotation.Nullable + private List topology = new ArrayList<>(); + + public V1alpha2PodGroupSchedulingConstraints() { + } + + public V1alpha2PodGroupSchedulingConstraints topology(@jakarta.annotation.Nullable List topology) { + this.topology = topology; + return this; + } + + public V1alpha2PodGroupSchedulingConstraints addTopologyItem(V1alpha2TopologyConstraint topologyItem) { + if (this.topology == null) { + this.topology = new ArrayList<>(); + } + this.topology.add(topologyItem); + return this; + } + + /** + * Topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future. + * @return topology + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future.") + public List getTopology() { + return topology; + } + + public void setTopology(@jakarta.annotation.Nullable List topology) { + this.topology = topology; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha2PodGroupSchedulingConstraints v1alpha2PodGroupSchedulingConstraints = (V1alpha2PodGroupSchedulingConstraints) o; + return Objects.equals(this.topology, v1alpha2PodGroupSchedulingConstraints.topology); + } + + @Override + public int hashCode() { + return Objects.hash(topology); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha2PodGroupSchedulingConstraints {\n"); + sb.append(" topology: ").append(toIndentedString(topology)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("topology")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupSchedulingConstraints + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha2PodGroupSchedulingConstraints.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupSchedulingConstraints is not found in the empty JSON string", V1alpha2PodGroupSchedulingConstraints.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha2PodGroupSchedulingConstraints.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupSchedulingConstraints` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("topology") != null && !jsonObj.get("topology").isJsonNull()) { + JsonArray jsonArraytopology = jsonObj.getAsJsonArray("topology"); + if (jsonArraytopology != null) { + // ensure the json data is an array + if (!jsonObj.get("topology").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `topology` to be an array in the JSON string but got `%s`", jsonObj.get("topology").toString())); + } + + // validate the optional field `topology` (array) + for (int i = 0; i < jsonArraytopology.size(); i++) { + V1alpha2TopologyConstraint.validateJsonElement(jsonArraytopology.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2PodGroupSchedulingConstraints.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2PodGroupSchedulingConstraints' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupSchedulingConstraints.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2PodGroupSchedulingConstraints value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2PodGroupSchedulingConstraints read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2PodGroupSchedulingConstraints given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2PodGroupSchedulingConstraints + * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupSchedulingConstraints + */ + public static V1alpha2PodGroupSchedulingConstraints fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupSchedulingConstraints.class); + } + + /** + * Convert an instance of V1alpha2PodGroupSchedulingConstraints to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicy.java similarity index 67% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicy.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicy.java index b7d4345935..b71c9a3581 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroupPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSchedulingPolicy.java @@ -18,7 +18,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha1GangSchedulingPolicy; +import io.kubernetes.client.openapi.models.V1alpha2GangSchedulingPolicy; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -48,11 +48,11 @@ import io.kubernetes.client.openapi.JSON; /** - * PodGroupPolicy defines the scheduling configuration for a PodGroup. + * PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set. */ -@ApiModel(description = "PodGroupPolicy defines the scheduling configuration for a PodGroup.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha1PodGroupPolicy { +@ApiModel(description = "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2PodGroupSchedulingPolicy { public static final String SERIALIZED_NAME_BASIC = "basic"; @SerializedName(SERIALIZED_NAME_BASIC) @jakarta.annotation.Nullable @@ -61,12 +61,12 @@ public class V1alpha1PodGroupPolicy { public static final String SERIALIZED_NAME_GANG = "gang"; @SerializedName(SERIALIZED_NAME_GANG) @jakarta.annotation.Nullable - private V1alpha1GangSchedulingPolicy gang; + private V1alpha2GangSchedulingPolicy gang; - public V1alpha1PodGroupPolicy() { + public V1alpha2PodGroupSchedulingPolicy() { } - public V1alpha1PodGroupPolicy basic(@jakarta.annotation.Nullable Object basic) { + public V1alpha2PodGroupSchedulingPolicy basic(@jakarta.annotation.Nullable Object basic) { this.basic = basic; return this; } @@ -86,7 +86,7 @@ public void setBasic(@jakarta.annotation.Nullable Object basic) { } - public V1alpha1PodGroupPolicy gang(@jakarta.annotation.Nullable V1alpha1GangSchedulingPolicy gang) { + public V1alpha2PodGroupSchedulingPolicy gang(@jakarta.annotation.Nullable V1alpha2GangSchedulingPolicy gang) { this.gang = gang; return this; } @@ -97,11 +97,11 @@ public V1alpha1PodGroupPolicy gang(@jakarta.annotation.Nullable V1alpha1GangSche */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha1GangSchedulingPolicy getGang() { + public V1alpha2GangSchedulingPolicy getGang() { return gang; } - public void setGang(@jakarta.annotation.Nullable V1alpha1GangSchedulingPolicy gang) { + public void setGang(@jakarta.annotation.Nullable V1alpha2GangSchedulingPolicy gang) { this.gang = gang; } @@ -115,9 +115,9 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha1PodGroupPolicy v1alpha1PodGroupPolicy = (V1alpha1PodGroupPolicy) o; - return Objects.equals(this.basic, v1alpha1PodGroupPolicy.basic) && - Objects.equals(this.gang, v1alpha1PodGroupPolicy.gang); + V1alpha2PodGroupSchedulingPolicy v1alpha2PodGroupSchedulingPolicy = (V1alpha2PodGroupSchedulingPolicy) o; + return Objects.equals(this.basic, v1alpha2PodGroupSchedulingPolicy.basic) && + Objects.equals(this.gang, v1alpha2PodGroupSchedulingPolicy.gang); } @Override @@ -128,7 +128,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1PodGroupPolicy {\n"); + sb.append("class V1alpha2PodGroupSchedulingPolicy {\n"); sb.append(" basic: ").append(toIndentedString(basic)).append("\n"); sb.append(" gang: ").append(toIndentedString(gang)).append("\n"); sb.append("}"); @@ -162,26 +162,26 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1PodGroupPolicy + * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupSchedulingPolicy */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha1PodGroupPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1PodGroupPolicy is not found in the empty JSON string", V1alpha1PodGroupPolicy.openapiRequiredFields.toString())); + if (!V1alpha2PodGroupSchedulingPolicy.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupSchedulingPolicy is not found in the empty JSON string", V1alpha2PodGroupSchedulingPolicy.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha1PodGroupPolicy.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1PodGroupPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha2PodGroupSchedulingPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupSchedulingPolicy` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `gang` if (jsonObj.get("gang") != null && !jsonObj.get("gang").isJsonNull()) { - V1alpha1GangSchedulingPolicy.validateJsonElement(jsonObj.get("gang")); + V1alpha2GangSchedulingPolicy.validateJsonElement(jsonObj.get("gang")); } } @@ -189,22 +189,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha1PodGroupPolicy.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha1PodGroupPolicy' and its subtypes + if (!V1alpha2PodGroupSchedulingPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2PodGroupSchedulingPolicy' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1PodGroupPolicy.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupSchedulingPolicy.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha1PodGroupPolicy value) throws IOException { + public void write(JsonWriter out, V1alpha2PodGroupSchedulingPolicy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha1PodGroupPolicy read(JsonReader in) throws IOException { + public V1alpha2PodGroupSchedulingPolicy read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -215,18 +215,18 @@ public V1alpha1PodGroupPolicy read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha1PodGroupPolicy given an JSON string + * Create an instance of V1alpha2PodGroupSchedulingPolicy given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha1PodGroupPolicy - * @throws IOException if the JSON string is invalid with respect to V1alpha1PodGroupPolicy + * @return An instance of V1alpha2PodGroupSchedulingPolicy + * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupSchedulingPolicy */ - public static V1alpha1PodGroupPolicy fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha1PodGroupPolicy.class); + public static V1alpha2PodGroupSchedulingPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupSchedulingPolicy.class); } /** - * Convert an instance of V1alpha1PodGroupPolicy to an JSON string + * Convert an instance of V1alpha2PodGroupSchedulingPolicy to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpec.java new file mode 100644 index 0000000000..cfe78c072e --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupSpec.java @@ -0,0 +1,417 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha2PodGroupResourceClaim; +import io.kubernetes.client.openapi.models.V1alpha2PodGroupSchedulingConstraints; +import io.kubernetes.client.openapi.models.V1alpha2PodGroupSchedulingPolicy; +import io.kubernetes.client.openapi.models.V1alpha2PodGroupTemplateReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * PodGroupSpec defines the desired state of a PodGroup. + */ +@ApiModel(description = "PodGroupSpec defines the desired state of a PodGroup.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2PodGroupSpec { + public static final String SERIALIZED_NAME_DISRUPTION_MODE = "disruptionMode"; + @SerializedName(SERIALIZED_NAME_DISRUPTION_MODE) + @jakarta.annotation.Nullable + private String disruptionMode; + + public static final String SERIALIZED_NAME_POD_GROUP_TEMPLATE_REF = "podGroupTemplateRef"; + @SerializedName(SERIALIZED_NAME_POD_GROUP_TEMPLATE_REF) + @jakarta.annotation.Nullable + private V1alpha2PodGroupTemplateReference podGroupTemplateRef; + + public static final String SERIALIZED_NAME_PRIORITY = "priority"; + @SerializedName(SERIALIZED_NAME_PRIORITY) + @jakarta.annotation.Nullable + private Integer priority; + + public static final String SERIALIZED_NAME_PRIORITY_CLASS_NAME = "priorityClassName"; + @SerializedName(SERIALIZED_NAME_PRIORITY_CLASS_NAME) + @jakarta.annotation.Nullable + private String priorityClassName; + + public static final String SERIALIZED_NAME_RESOURCE_CLAIMS = "resourceClaims"; + @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIMS) + @jakarta.annotation.Nullable + private List resourceClaims = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SCHEDULING_CONSTRAINTS = "schedulingConstraints"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_CONSTRAINTS) + @jakarta.annotation.Nullable + private V1alpha2PodGroupSchedulingConstraints schedulingConstraints; + + public static final String SERIALIZED_NAME_SCHEDULING_POLICY = "schedulingPolicy"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_POLICY) + @jakarta.annotation.Nonnull + private V1alpha2PodGroupSchedulingPolicy schedulingPolicy; + + public V1alpha2PodGroupSpec() { + } + + public V1alpha2PodGroupSpec disruptionMode(@jakarta.annotation.Nullable String disruptionMode) { + this.disruptionMode = disruptionMode; + return this; + } + + /** + * DisruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if unset. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled. + * @return disruptionMode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "DisruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if unset. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.") + public String getDisruptionMode() { + return disruptionMode; + } + + public void setDisruptionMode(@jakarta.annotation.Nullable String disruptionMode) { + this.disruptionMode = disruptionMode; + } + + + public V1alpha2PodGroupSpec podGroupTemplateRef(@jakarta.annotation.Nullable V1alpha2PodGroupTemplateReference podGroupTemplateRef) { + this.podGroupTemplateRef = podGroupTemplateRef; + return this; + } + + /** + * Get podGroupTemplateRef + * @return podGroupTemplateRef + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha2PodGroupTemplateReference getPodGroupTemplateRef() { + return podGroupTemplateRef; + } + + public void setPodGroupTemplateRef(@jakarta.annotation.Nullable V1alpha2PodGroupTemplateReference podGroupTemplateRef) { + this.podGroupTemplateRef = podGroupTemplateRef; + } + + + public V1alpha2PodGroupSpec priority(@jakarta.annotation.Nullable Integer priority) { + this.priority = priority; + return this; + } + + /** + * Priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled. + * @return priority + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.") + public Integer getPriority() { + return priority; + } + + public void setPriority(@jakarta.annotation.Nullable Integer priority) { + this.priority = priority; + } + + + public V1alpha2PodGroupSpec priorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; + return this; + } + + /** + * PriorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled. + * @return priorityClassName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "PriorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.") + public String getPriorityClassName() { + return priorityClassName; + } + + public void setPriorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; + } + + + public V1alpha2PodGroupSpec resourceClaims(@jakarta.annotation.Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; + return this; + } + + public V1alpha2PodGroupSpec addResourceClaimsItem(V1alpha2PodGroupResourceClaim resourceClaimsItem) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + this.resourceClaims.add(resourceClaimsItem); + return this; + } + + /** + * ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. + * @return resourceClaims + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") + public List getResourceClaims() { + return resourceClaims; + } + + public void setResourceClaims(@jakarta.annotation.Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; + } + + + public V1alpha2PodGroupSpec schedulingConstraints(@jakarta.annotation.Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + return this; + } + + /** + * Get schedulingConstraints + * @return schedulingConstraints + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha2PodGroupSchedulingConstraints getSchedulingConstraints() { + return schedulingConstraints; + } + + public void setSchedulingConstraints(@jakarta.annotation.Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + } + + + public V1alpha2PodGroupSpec schedulingPolicy(@jakarta.annotation.Nonnull V1alpha2PodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + return this; + } + + /** + * Get schedulingPolicy + * @return schedulingPolicy + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1alpha2PodGroupSchedulingPolicy getSchedulingPolicy() { + return schedulingPolicy; + } + + public void setSchedulingPolicy(@jakarta.annotation.Nonnull V1alpha2PodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha2PodGroupSpec v1alpha2PodGroupSpec = (V1alpha2PodGroupSpec) o; + return Objects.equals(this.disruptionMode, v1alpha2PodGroupSpec.disruptionMode) && + Objects.equals(this.podGroupTemplateRef, v1alpha2PodGroupSpec.podGroupTemplateRef) && + Objects.equals(this.priority, v1alpha2PodGroupSpec.priority) && + Objects.equals(this.priorityClassName, v1alpha2PodGroupSpec.priorityClassName) && + Objects.equals(this.resourceClaims, v1alpha2PodGroupSpec.resourceClaims) && + Objects.equals(this.schedulingConstraints, v1alpha2PodGroupSpec.schedulingConstraints) && + Objects.equals(this.schedulingPolicy, v1alpha2PodGroupSpec.schedulingPolicy); + } + + @Override + public int hashCode() { + return Objects.hash(disruptionMode, podGroupTemplateRef, priority, priorityClassName, resourceClaims, schedulingConstraints, schedulingPolicy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha2PodGroupSpec {\n"); + sb.append(" disruptionMode: ").append(toIndentedString(disruptionMode)).append("\n"); + sb.append(" podGroupTemplateRef: ").append(toIndentedString(podGroupTemplateRef)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" priorityClassName: ").append(toIndentedString(priorityClassName)).append("\n"); + sb.append(" resourceClaims: ").append(toIndentedString(resourceClaims)).append("\n"); + sb.append(" schedulingConstraints: ").append(toIndentedString(schedulingConstraints)).append("\n"); + sb.append(" schedulingPolicy: ").append(toIndentedString(schedulingPolicy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("disruptionMode", "podGroupTemplateRef", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("schedulingPolicy")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha2PodGroupSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupSpec is not found in the empty JSON string", V1alpha2PodGroupSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha2PodGroupSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2PodGroupSpec.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("disruptionMode") != null && !jsonObj.get("disruptionMode").isJsonNull()) && !jsonObj.get("disruptionMode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `disruptionMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("disruptionMode").toString())); + } + // validate the optional field `podGroupTemplateRef` + if (jsonObj.get("podGroupTemplateRef") != null && !jsonObj.get("podGroupTemplateRef").isJsonNull()) { + V1alpha2PodGroupTemplateReference.validateJsonElement(jsonObj.get("podGroupTemplateRef")); + } + if ((jsonObj.get("priorityClassName") != null && !jsonObj.get("priorityClassName").isJsonNull()) && !jsonObj.get("priorityClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `priorityClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("priorityClassName").toString())); + } + if (jsonObj.get("resourceClaims") != null && !jsonObj.get("resourceClaims").isJsonNull()) { + JsonArray jsonArrayresourceClaims = jsonObj.getAsJsonArray("resourceClaims"); + if (jsonArrayresourceClaims != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceClaims").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaims` to be an array in the JSON string but got `%s`", jsonObj.get("resourceClaims").toString())); + } + + // validate the optional field `resourceClaims` (array) + for (int i = 0; i < jsonArrayresourceClaims.size(); i++) { + V1alpha2PodGroupResourceClaim.validateJsonElement(jsonArrayresourceClaims.get(i)); + }; + } + } + // validate the optional field `schedulingConstraints` + if (jsonObj.get("schedulingConstraints") != null && !jsonObj.get("schedulingConstraints").isJsonNull()) { + V1alpha2PodGroupSchedulingConstraints.validateJsonElement(jsonObj.get("schedulingConstraints")); + } + // validate the required field `schedulingPolicy` + V1alpha2PodGroupSchedulingPolicy.validateJsonElement(jsonObj.get("schedulingPolicy")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2PodGroupSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2PodGroupSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2PodGroupSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2PodGroupSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2PodGroupSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2PodGroupSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupSpec + */ + public static V1alpha2PodGroupSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupSpec.class); + } + + /** + * Convert an instance of V1alpha2PodGroupSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatus.java new file mode 100644 index 0000000000..6ad0d93d17 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupStatus.java @@ -0,0 +1,279 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1Condition; +import io.kubernetes.client.openapi.models.V1alpha2PodGroupResourceClaimStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * PodGroupStatus represents information about the status of a pod group. + */ +@ApiModel(description = "PodGroupStatus represents information about the status of a pod group.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2PodGroupStatus { + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable + private List conditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_RESOURCE_CLAIM_STATUSES = "resourceClaimStatuses"; + @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIM_STATUSES) + @jakarta.annotation.Nullable + private List resourceClaimStatuses = new ArrayList<>(); + + public V1alpha2PodGroupStatus() { + } + + public V1alpha2PodGroupStatus conditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + return this; + } + + public V1alpha2PodGroupStatus addConditionsItem(V1Condition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * Conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupScheduled\": Indicates whether the scheduling requirement has been satisfied. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints, affinity/anti-affinity rules, or insufficient capacity for the gang. - \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error that happened during scheduling, for example due to nodeAffinity parsing errors. Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for higher-priority PodGroups or Pods. + * @return conditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Conditions represent the latest observations of the PodGroup's state. Known condition types: - \"PodGroupScheduled\": Indicates whether the scheduling requirement has been satisfied. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated due to disruption such as preemption. Known reasons for the PodGroupScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints, affinity/anti-affinity rules, or insufficient capacity for the gang. - \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error that happened during scheduling, for example due to nodeAffinity parsing errors. Known reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for higher-priority PodGroups or Pods.") + public List getConditions() { + return conditions; + } + + public void setConditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + } + + + public V1alpha2PodGroupStatus resourceClaimStatuses(@jakarta.annotation.Nullable List resourceClaimStatuses) { + this.resourceClaimStatuses = resourceClaimStatuses; + return this; + } + + public V1alpha2PodGroupStatus addResourceClaimStatusesItem(V1alpha2PodGroupResourceClaimStatus resourceClaimStatusesItem) { + if (this.resourceClaimStatuses == null) { + this.resourceClaimStatuses = new ArrayList<>(); + } + this.resourceClaimStatuses.add(resourceClaimStatusesItem); + return this; + } + + /** + * Status of resource claims. + * @return resourceClaimStatuses + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Status of resource claims.") + public List getResourceClaimStatuses() { + return resourceClaimStatuses; + } + + public void setResourceClaimStatuses(@jakarta.annotation.Nullable List resourceClaimStatuses) { + this.resourceClaimStatuses = resourceClaimStatuses; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha2PodGroupStatus v1alpha2PodGroupStatus = (V1alpha2PodGroupStatus) o; + return Objects.equals(this.conditions, v1alpha2PodGroupStatus.conditions) && + Objects.equals(this.resourceClaimStatuses, v1alpha2PodGroupStatus.resourceClaimStatuses); + } + + @Override + public int hashCode() { + return Objects.hash(conditions, resourceClaimStatuses); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha2PodGroupStatus {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" resourceClaimStatuses: ").append(toIndentedString(resourceClaimStatuses)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("conditions", "resourceClaimStatuses")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha2PodGroupStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupStatus is not found in the empty JSON string", V1alpha2PodGroupStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha2PodGroupStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1Condition.validateJsonElement(jsonArrayconditions.get(i)); + }; + } + } + if (jsonObj.get("resourceClaimStatuses") != null && !jsonObj.get("resourceClaimStatuses").isJsonNull()) { + JsonArray jsonArrayresourceClaimStatuses = jsonObj.getAsJsonArray("resourceClaimStatuses"); + if (jsonArrayresourceClaimStatuses != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceClaimStatuses").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaimStatuses` to be an array in the JSON string but got `%s`", jsonObj.get("resourceClaimStatuses").toString())); + } + + // validate the optional field `resourceClaimStatuses` (array) + for (int i = 0; i < jsonArrayresourceClaimStatuses.size(); i++) { + V1alpha2PodGroupResourceClaimStatus.validateJsonElement(jsonArrayresourceClaimStatuses.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2PodGroupStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2PodGroupStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2PodGroupStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2PodGroupStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2PodGroupStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2PodGroupStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupStatus + */ + public static V1alpha2PodGroupStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupStatus.class); + } + + /** + * Convert an instance of V1alpha2PodGroupStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplate.java new file mode 100644 index 0000000000..4d14a498e0 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplate.java @@ -0,0 +1,415 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha2PodGroupResourceClaim; +import io.kubernetes.client.openapi.models.V1alpha2PodGroupSchedulingConstraints; +import io.kubernetes.client.openapi.models.V1alpha2PodGroupSchedulingPolicy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * PodGroupTemplate represents a template for a set of pods with a scheduling policy. + */ +@ApiModel(description = "PodGroupTemplate represents a template for a set of pods with a scheduling policy.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2PodGroupTemplate { + public static final String SERIALIZED_NAME_DISRUPTION_MODE = "disruptionMode"; + @SerializedName(SERIALIZED_NAME_DISRUPTION_MODE) + @jakarta.annotation.Nullable + private String disruptionMode; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @jakarta.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_PRIORITY = "priority"; + @SerializedName(SERIALIZED_NAME_PRIORITY) + @jakarta.annotation.Nullable + private Integer priority; + + public static final String SERIALIZED_NAME_PRIORITY_CLASS_NAME = "priorityClassName"; + @SerializedName(SERIALIZED_NAME_PRIORITY_CLASS_NAME) + @jakarta.annotation.Nullable + private String priorityClassName; + + public static final String SERIALIZED_NAME_RESOURCE_CLAIMS = "resourceClaims"; + @SerializedName(SERIALIZED_NAME_RESOURCE_CLAIMS) + @jakarta.annotation.Nullable + private List resourceClaims = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SCHEDULING_CONSTRAINTS = "schedulingConstraints"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_CONSTRAINTS) + @jakarta.annotation.Nullable + private V1alpha2PodGroupSchedulingConstraints schedulingConstraints; + + public static final String SERIALIZED_NAME_SCHEDULING_POLICY = "schedulingPolicy"; + @SerializedName(SERIALIZED_NAME_SCHEDULING_POLICY) + @jakarta.annotation.Nonnull + private V1alpha2PodGroupSchedulingPolicy schedulingPolicy; + + public V1alpha2PodGroupTemplate() { + } + + public V1alpha2PodGroupTemplate disruptionMode(@jakarta.annotation.Nullable String disruptionMode) { + this.disruptionMode = disruptionMode; + return this; + } + + /** + * DisruptionMode defines the mode in which a given PodGroup can be disrupted. One of Pod, PodGroup. This field is available only when the WorkloadAwarePreemption feature gate is enabled. + * @return disruptionMode + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "DisruptionMode defines the mode in which a given PodGroup can be disrupted. One of Pod, PodGroup. This field is available only when the WorkloadAwarePreemption feature gate is enabled.") + public String getDisruptionMode() { + return disruptionMode; + } + + public void setDisruptionMode(@jakarta.annotation.Nullable String disruptionMode) { + this.disruptionMode = disruptionMode; + } + + + public V1alpha2PodGroupTemplate name(@jakarta.annotation.Nonnull String name) { + this.name = name; + return this; + } + + /** + * Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable. + * @return name + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.") + public String getName() { + return name; + } + + public void setName(@jakarta.annotation.Nonnull String name) { + this.name = name; + } + + + public V1alpha2PodGroupTemplate priority(@jakarta.annotation.Nullable Integer priority) { + this.priority = priority; + return this; + } + + /** + * Priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. This field is available only when the WorkloadAwarePreemption feature gate is enabled. + * @return priority + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. This field is available only when the WorkloadAwarePreemption feature gate is enabled.") + public Integer getPriority() { + return priority; + } + + public void setPriority(@jakarta.annotation.Nullable Integer priority) { + this.priority = priority; + } + + + public V1alpha2PodGroupTemplate priorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; + return this; + } + + /** + * PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, pod groups created from this template will have the priority set to zero. This field is available only when the WorkloadAwarePreemption feature gate is enabled. + * @return priorityClassName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, pod groups created from this template will have the priority set to zero. This field is available only when the WorkloadAwarePreemption feature gate is enabled.") + public String getPriorityClassName() { + return priorityClassName; + } + + public void setPriorityClassName(@jakarta.annotation.Nullable String priorityClassName) { + this.priorityClassName = priorityClassName; + } + + + public V1alpha2PodGroupTemplate resourceClaims(@jakarta.annotation.Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; + return this; + } + + public V1alpha2PodGroupTemplate addResourceClaimsItem(V1alpha2PodGroupResourceClaim resourceClaimsItem) { + if (this.resourceClaims == null) { + this.resourceClaims = new ArrayList<>(); + } + this.resourceClaims.add(resourceClaimsItem); + return this; + } + + /** + * ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. + * @return resourceClaims + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable.") + public List getResourceClaims() { + return resourceClaims; + } + + public void setResourceClaims(@jakarta.annotation.Nullable List resourceClaims) { + this.resourceClaims = resourceClaims; + } + + + public V1alpha2PodGroupTemplate schedulingConstraints(@jakarta.annotation.Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + return this; + } + + /** + * Get schedulingConstraints + * @return schedulingConstraints + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha2PodGroupSchedulingConstraints getSchedulingConstraints() { + return schedulingConstraints; + } + + public void setSchedulingConstraints(@jakarta.annotation.Nullable V1alpha2PodGroupSchedulingConstraints schedulingConstraints) { + this.schedulingConstraints = schedulingConstraints; + } + + + public V1alpha2PodGroupTemplate schedulingPolicy(@jakarta.annotation.Nonnull V1alpha2PodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + return this; + } + + /** + * Get schedulingPolicy + * @return schedulingPolicy + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1alpha2PodGroupSchedulingPolicy getSchedulingPolicy() { + return schedulingPolicy; + } + + public void setSchedulingPolicy(@jakarta.annotation.Nonnull V1alpha2PodGroupSchedulingPolicy schedulingPolicy) { + this.schedulingPolicy = schedulingPolicy; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha2PodGroupTemplate v1alpha2PodGroupTemplate = (V1alpha2PodGroupTemplate) o; + return Objects.equals(this.disruptionMode, v1alpha2PodGroupTemplate.disruptionMode) && + Objects.equals(this.name, v1alpha2PodGroupTemplate.name) && + Objects.equals(this.priority, v1alpha2PodGroupTemplate.priority) && + Objects.equals(this.priorityClassName, v1alpha2PodGroupTemplate.priorityClassName) && + Objects.equals(this.resourceClaims, v1alpha2PodGroupTemplate.resourceClaims) && + Objects.equals(this.schedulingConstraints, v1alpha2PodGroupTemplate.schedulingConstraints) && + Objects.equals(this.schedulingPolicy, v1alpha2PodGroupTemplate.schedulingPolicy); + } + + @Override + public int hashCode() { + return Objects.hash(disruptionMode, name, priority, priorityClassName, resourceClaims, schedulingConstraints, schedulingPolicy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha2PodGroupTemplate {\n"); + sb.append(" disruptionMode: ").append(toIndentedString(disruptionMode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" priorityClassName: ").append(toIndentedString(priorityClassName)).append("\n"); + sb.append(" resourceClaims: ").append(toIndentedString(resourceClaims)).append("\n"); + sb.append(" schedulingConstraints: ").append(toIndentedString(schedulingConstraints)).append("\n"); + sb.append(" schedulingPolicy: ").append(toIndentedString(schedulingPolicy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("disruptionMode", "name", "priority", "priorityClassName", "resourceClaims", "schedulingConstraints", "schedulingPolicy")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("name", "schedulingPolicy")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupTemplate + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha2PodGroupTemplate.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupTemplate is not found in the empty JSON string", V1alpha2PodGroupTemplate.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha2PodGroupTemplate.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupTemplate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2PodGroupTemplate.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("disruptionMode") != null && !jsonObj.get("disruptionMode").isJsonNull()) && !jsonObj.get("disruptionMode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `disruptionMode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("disruptionMode").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("priorityClassName") != null && !jsonObj.get("priorityClassName").isJsonNull()) && !jsonObj.get("priorityClassName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `priorityClassName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("priorityClassName").toString())); + } + if (jsonObj.get("resourceClaims") != null && !jsonObj.get("resourceClaims").isJsonNull()) { + JsonArray jsonArrayresourceClaims = jsonObj.getAsJsonArray("resourceClaims"); + if (jsonArrayresourceClaims != null) { + // ensure the json data is an array + if (!jsonObj.get("resourceClaims").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resourceClaims` to be an array in the JSON string but got `%s`", jsonObj.get("resourceClaims").toString())); + } + + // validate the optional field `resourceClaims` (array) + for (int i = 0; i < jsonArrayresourceClaims.size(); i++) { + V1alpha2PodGroupResourceClaim.validateJsonElement(jsonArrayresourceClaims.get(i)); + }; + } + } + // validate the optional field `schedulingConstraints` + if (jsonObj.get("schedulingConstraints") != null && !jsonObj.get("schedulingConstraints").isJsonNull()) { + V1alpha2PodGroupSchedulingConstraints.validateJsonElement(jsonObj.get("schedulingConstraints")); + } + // validate the required field `schedulingPolicy` + V1alpha2PodGroupSchedulingPolicy.validateJsonElement(jsonObj.get("schedulingPolicy")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2PodGroupTemplate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2PodGroupTemplate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupTemplate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2PodGroupTemplate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2PodGroupTemplate read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2PodGroupTemplate given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2PodGroupTemplate + * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupTemplate + */ + public static V1alpha2PodGroupTemplate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupTemplate.class); + } + + /** + * Convert an instance of V1alpha2PodGroupTemplate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReference.java new file mode 100644 index 0000000000..9805670474 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2PodGroupTemplateReference.java @@ -0,0 +1,209 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1alpha2WorkloadPodGroupTemplateReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * PodGroupTemplateReference references a PodGroup template defined in some object (e.g. Workload). Exactly one reference must be set. + */ +@ApiModel(description = "PodGroupTemplateReference references a PodGroup template defined in some object (e.g. Workload). Exactly one reference must be set.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2PodGroupTemplateReference { + public static final String SERIALIZED_NAME_WORKLOAD = "workload"; + @SerializedName(SERIALIZED_NAME_WORKLOAD) + @jakarta.annotation.Nullable + private V1alpha2WorkloadPodGroupTemplateReference workload; + + public V1alpha2PodGroupTemplateReference() { + } + + public V1alpha2PodGroupTemplateReference workload(@jakarta.annotation.Nullable V1alpha2WorkloadPodGroupTemplateReference workload) { + this.workload = workload; + return this; + } + + /** + * Get workload + * @return workload + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha2WorkloadPodGroupTemplateReference getWorkload() { + return workload; + } + + public void setWorkload(@jakarta.annotation.Nullable V1alpha2WorkloadPodGroupTemplateReference workload) { + this.workload = workload; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha2PodGroupTemplateReference v1alpha2PodGroupTemplateReference = (V1alpha2PodGroupTemplateReference) o; + return Objects.equals(this.workload, v1alpha2PodGroupTemplateReference.workload); + } + + @Override + public int hashCode() { + return Objects.hash(workload); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha2PodGroupTemplateReference {\n"); + sb.append(" workload: ").append(toIndentedString(workload)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("workload")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha2PodGroupTemplateReference + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha2PodGroupTemplateReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2PodGroupTemplateReference is not found in the empty JSON string", V1alpha2PodGroupTemplateReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha2PodGroupTemplateReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2PodGroupTemplateReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `workload` + if (jsonObj.get("workload") != null && !jsonObj.get("workload").isJsonNull()) { + V1alpha2WorkloadPodGroupTemplateReference.validateJsonElement(jsonObj.get("workload")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2PodGroupTemplateReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2PodGroupTemplateReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2PodGroupTemplateReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2PodGroupTemplateReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2PodGroupTemplateReference read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2PodGroupTemplateReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2PodGroupTemplateReference + * @throws IOException if the JSON string is invalid with respect to V1alpha2PodGroupTemplateReference + */ + public static V1alpha2PodGroupTemplateReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2PodGroupTemplateReference.class); + } + + /** + * Convert an instance of V1alpha2PodGroupTemplateReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroup.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraint.java similarity index 56% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroup.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraint.java index 9c5ba80cf5..0917941d7a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1PodGroup.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TopologyConstraint.java @@ -18,7 +18,6 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha1PodGroupPolicy; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -48,61 +47,36 @@ import io.kubernetes.client.openapi.JSON; /** - * PodGroup represents a set of pods with a common scheduling policy. + * TopologyConstraint defines a topology constraint for a PodGroup. */ -@ApiModel(description = "PodGroup represents a set of pods with a common scheduling policy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha1PodGroup { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) +@ApiModel(description = "TopologyConstraint defines a topology constraint for a PodGroup.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2TopologyConstraint { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) @jakarta.annotation.Nonnull - private String name; + private String key; - public static final String SERIALIZED_NAME_POLICY = "policy"; - @SerializedName(SERIALIZED_NAME_POLICY) - @jakarta.annotation.Nonnull - private V1alpha1PodGroupPolicy policy; - - public V1alpha1PodGroup() { + public V1alpha2TopologyConstraint() { } - public V1alpha1PodGroup name(@jakarta.annotation.Nonnull String name) { - this.name = name; - return this; - } - - /** - * Name is a unique identifier for the PodGroup within the Workload. It must be a DNS label. This field is immutable. - * @return name - */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Name is a unique identifier for the PodGroup within the Workload. It must be a DNS label. This field is immutable.") - public String getName() { - return name; - } - - public void setName(@jakarta.annotation.Nonnull String name) { - this.name = name; - } - - - public V1alpha1PodGroup policy(@jakarta.annotation.Nonnull V1alpha1PodGroupPolicy policy) { - this.policy = policy; + public V1alpha2TopologyConstraint key(@jakarta.annotation.Nonnull String key) { + this.key = key; return this; } /** - * Get policy - * @return policy + * Key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\" + * @return key */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - public V1alpha1PodGroupPolicy getPolicy() { - return policy; + @ApiModelProperty(required = true, value = "Key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\"") + public String getKey() { + return key; } - public void setPolicy(@jakarta.annotation.Nonnull V1alpha1PodGroupPolicy policy) { - this.policy = policy; + public void setKey(@jakarta.annotation.Nonnull String key) { + this.key = key; } @@ -115,22 +89,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha1PodGroup v1alpha1PodGroup = (V1alpha1PodGroup) o; - return Objects.equals(this.name, v1alpha1PodGroup.name) && - Objects.equals(this.policy, v1alpha1PodGroup.policy); + V1alpha2TopologyConstraint v1alpha2TopologyConstraint = (V1alpha2TopologyConstraint) o; + return Objects.equals(this.key, v1alpha2TopologyConstraint.key); } @Override public int hashCode() { - return Objects.hash(name, policy); + return Objects.hash(key); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1PodGroup {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append("class V1alpha2TopologyConstraint {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append("}"); return sb.toString(); } @@ -152,67 +124,65 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("name", "policy")); + openapiFields = new HashSet(Arrays.asList("key")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("name", "policy")); + openapiRequiredFields = new HashSet(Arrays.asList("key")); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1PodGroup + * @throws IOException if the JSON Element is invalid with respect to V1alpha2TopologyConstraint */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha1PodGroup.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1PodGroup is not found in the empty JSON string", V1alpha1PodGroup.openapiRequiredFields.toString())); + if (!V1alpha2TopologyConstraint.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2TopologyConstraint is not found in the empty JSON string", V1alpha2TopologyConstraint.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha1PodGroup.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1PodGroup` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha2TopologyConstraint.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2TopologyConstraint` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha1PodGroup.openapiRequiredFields) { + for (String requiredField : V1alpha2TopologyConstraint.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } } JsonObject jsonObj = jsonElement.getAsJsonObject(); - if (!jsonObj.get("name").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + if (!jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); } - // validate the required field `policy` - V1alpha1PodGroupPolicy.validateJsonElement(jsonObj.get("policy")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha1PodGroup.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha1PodGroup' and its subtypes + if (!V1alpha2TopologyConstraint.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2TopologyConstraint' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1PodGroup.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2TopologyConstraint.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha1PodGroup value) throws IOException { + public void write(JsonWriter out, V1alpha2TopologyConstraint value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha1PodGroup read(JsonReader in) throws IOException { + public V1alpha2TopologyConstraint read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -223,18 +193,18 @@ public V1alpha1PodGroup read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha1PodGroup given an JSON string + * Create an instance of V1alpha2TopologyConstraint given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha1PodGroup - * @throws IOException if the JSON string is invalid with respect to V1alpha1PodGroup + * @return An instance of V1alpha2TopologyConstraint + * @throws IOException if the JSON string is invalid with respect to V1alpha2TopologyConstraint */ - public static V1alpha1PodGroup fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha1PodGroup.class); + public static V1alpha2TopologyConstraint fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2TopologyConstraint.class); } /** - * Convert an instance of V1alpha1PodGroup to an JSON string + * Convert an instance of V1alpha2TopologyConstraint to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypedLocalObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReference.java similarity index 82% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypedLocalObjectReference.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReference.java index f1af76d824..eef6b48082 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1TypedLocalObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2TypedLocalObjectReference.java @@ -50,8 +50,8 @@ * TypedLocalObjectReference allows to reference typed object inside the same namespace. */ @ApiModel(description = "TypedLocalObjectReference allows to reference typed object inside the same namespace.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha1TypedLocalObjectReference { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2TypedLocalObjectReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) @jakarta.annotation.Nullable @@ -67,10 +67,10 @@ public class V1alpha1TypedLocalObjectReference { @jakarta.annotation.Nonnull private String name; - public V1alpha1TypedLocalObjectReference() { + public V1alpha2TypedLocalObjectReference() { } - public V1alpha1TypedLocalObjectReference apiGroup(@jakarta.annotation.Nullable String apiGroup) { + public V1alpha2TypedLocalObjectReference apiGroup(@jakarta.annotation.Nullable String apiGroup) { this.apiGroup = apiGroup; return this; } @@ -90,7 +90,7 @@ public void setApiGroup(@jakarta.annotation.Nullable String apiGroup) { } - public V1alpha1TypedLocalObjectReference kind(@jakarta.annotation.Nonnull String kind) { + public V1alpha2TypedLocalObjectReference kind(@jakarta.annotation.Nonnull String kind) { this.kind = kind; return this; } @@ -110,7 +110,7 @@ public void setKind(@jakarta.annotation.Nonnull String kind) { } - public V1alpha1TypedLocalObjectReference name(@jakarta.annotation.Nonnull String name) { + public V1alpha2TypedLocalObjectReference name(@jakarta.annotation.Nonnull String name) { this.name = name; return this; } @@ -139,10 +139,10 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha1TypedLocalObjectReference v1alpha1TypedLocalObjectReference = (V1alpha1TypedLocalObjectReference) o; - return Objects.equals(this.apiGroup, v1alpha1TypedLocalObjectReference.apiGroup) && - Objects.equals(this.kind, v1alpha1TypedLocalObjectReference.kind) && - Objects.equals(this.name, v1alpha1TypedLocalObjectReference.name); + V1alpha2TypedLocalObjectReference v1alpha2TypedLocalObjectReference = (V1alpha2TypedLocalObjectReference) o; + return Objects.equals(this.apiGroup, v1alpha2TypedLocalObjectReference.apiGroup) && + Objects.equals(this.kind, v1alpha2TypedLocalObjectReference.kind) && + Objects.equals(this.name, v1alpha2TypedLocalObjectReference.name); } @Override @@ -153,7 +153,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1TypedLocalObjectReference {\n"); + sb.append("class V1alpha2TypedLocalObjectReference {\n"); sb.append(" apiGroup: ").append(toIndentedString(apiGroup)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -188,25 +188,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1TypedLocalObjectReference + * @throws IOException if the JSON Element is invalid with respect to V1alpha2TypedLocalObjectReference */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha1TypedLocalObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1TypedLocalObjectReference is not found in the empty JSON string", V1alpha1TypedLocalObjectReference.openapiRequiredFields.toString())); + if (!V1alpha2TypedLocalObjectReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2TypedLocalObjectReference is not found in the empty JSON string", V1alpha2TypedLocalObjectReference.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha1TypedLocalObjectReference.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1TypedLocalObjectReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha2TypedLocalObjectReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2TypedLocalObjectReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha1TypedLocalObjectReference.openapiRequiredFields) { + for (String requiredField : V1alpha2TypedLocalObjectReference.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -227,22 +227,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha1TypedLocalObjectReference.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha1TypedLocalObjectReference' and its subtypes + if (!V1alpha2TypedLocalObjectReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2TypedLocalObjectReference' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1TypedLocalObjectReference.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2TypedLocalObjectReference.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha1TypedLocalObjectReference value) throws IOException { + public void write(JsonWriter out, V1alpha2TypedLocalObjectReference value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha1TypedLocalObjectReference read(JsonReader in) throws IOException { + public V1alpha2TypedLocalObjectReference read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -253,18 +253,18 @@ public V1alpha1TypedLocalObjectReference read(JsonReader in) throws IOException } /** - * Create an instance of V1alpha1TypedLocalObjectReference given an JSON string + * Create an instance of V1alpha2TypedLocalObjectReference given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha1TypedLocalObjectReference - * @throws IOException if the JSON string is invalid with respect to V1alpha1TypedLocalObjectReference + * @return An instance of V1alpha2TypedLocalObjectReference + * @throws IOException if the JSON string is invalid with respect to V1alpha2TypedLocalObjectReference */ - public static V1alpha1TypedLocalObjectReference fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha1TypedLocalObjectReference.class); + public static V1alpha2TypedLocalObjectReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2TypedLocalObjectReference.class); } /** - * Convert an instance of V1alpha1TypedLocalObjectReference to an JSON string + * Convert an instance of V1alpha2TypedLocalObjectReference to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Workload.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2Workload.java similarity index 78% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Workload.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2Workload.java index f619a42963..91ad18031b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1Workload.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2Workload.java @@ -19,7 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ObjectMeta; -import io.kubernetes.client.openapi.models.V1alpha1WorkloadSpec; +import io.kubernetes.client.openapi.models.V1alpha2WorkloadSpec; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -49,11 +49,11 @@ import io.kubernetes.client.openapi.JSON; /** - * Workload allows for expressing scheduling constraints that should be used when managing lifecycle of workloads from scheduling perspective, including scheduling, preemption, eviction and other phases. + * Workload allows for expressing scheduling constraints that should be used when managing the lifecycle of workloads from the scheduling perspective, including scheduling, preemption, eviction and other phases. Workload API enablement is toggled by the GenericWorkload feature gate. */ -@ApiModel(description = "Workload allows for expressing scheduling constraints that should be used when managing lifecycle of workloads from scheduling perspective, including scheduling, preemption, eviction and other phases.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha1Workload implements io.kubernetes.client.common.KubernetesObject { +@ApiModel(description = "Workload allows for expressing scheduling constraints that should be used when managing the lifecycle of workloads from the scheduling perspective, including scheduling, preemption, eviction and other phases. Workload API enablement is toggled by the GenericWorkload feature gate.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2Workload implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @jakarta.annotation.Nullable @@ -72,12 +72,12 @@ public class V1alpha1Workload implements io.kubernetes.client.common.KubernetesO public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) @jakarta.annotation.Nonnull - private V1alpha1WorkloadSpec spec; + private V1alpha2WorkloadSpec spec; - public V1alpha1Workload() { + public V1alpha2Workload() { } - public V1alpha1Workload apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1alpha2Workload apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -97,7 +97,7 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha1Workload kind(@jakarta.annotation.Nullable String kind) { + public V1alpha2Workload kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -117,7 +117,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha1Workload metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + public V1alpha2Workload metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { this.metadata = metadata; return this; } @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1alpha1Workload spec(@jakarta.annotation.Nonnull V1alpha1WorkloadSpec spec) { + public V1alpha2Workload spec(@jakarta.annotation.Nonnull V1alpha2WorkloadSpec spec) { this.spec = spec; return this; } @@ -148,11 +148,11 @@ public V1alpha1Workload spec(@jakarta.annotation.Nonnull V1alpha1WorkloadSpec sp */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public V1alpha1WorkloadSpec getSpec() { + public V1alpha2WorkloadSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nonnull V1alpha1WorkloadSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1alpha2WorkloadSpec spec) { this.spec = spec; } @@ -166,11 +166,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha1Workload v1alpha1Workload = (V1alpha1Workload) o; - return Objects.equals(this.apiVersion, v1alpha1Workload.apiVersion) && - Objects.equals(this.kind, v1alpha1Workload.kind) && - Objects.equals(this.metadata, v1alpha1Workload.metadata) && - Objects.equals(this.spec, v1alpha1Workload.spec); + V1alpha2Workload v1alpha2Workload = (V1alpha2Workload) o; + return Objects.equals(this.apiVersion, v1alpha2Workload.apiVersion) && + Objects.equals(this.kind, v1alpha2Workload.kind) && + Objects.equals(this.metadata, v1alpha2Workload.metadata) && + Objects.equals(this.spec, v1alpha2Workload.spec); } @Override @@ -181,7 +181,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1Workload {\n"); + sb.append("class V1alpha2Workload {\n"); sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); @@ -217,25 +217,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1Workload + * @throws IOException if the JSON Element is invalid with respect to V1alpha2Workload */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha1Workload.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1Workload is not found in the empty JSON string", V1alpha1Workload.openapiRequiredFields.toString())); + if (!V1alpha2Workload.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2Workload is not found in the empty JSON string", V1alpha2Workload.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha1Workload.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1Workload` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha2Workload.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2Workload` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha1Workload.openapiRequiredFields) { + for (String requiredField : V1alpha2Workload.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -252,29 +252,29 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } // validate the required field `spec` - V1alpha1WorkloadSpec.validateJsonElement(jsonObj.get("spec")); + V1alpha2WorkloadSpec.validateJsonElement(jsonObj.get("spec")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha1Workload.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha1Workload' and its subtypes + if (!V1alpha2Workload.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2Workload' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1Workload.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2Workload.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha1Workload value) throws IOException { + public void write(JsonWriter out, V1alpha2Workload value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha1Workload read(JsonReader in) throws IOException { + public V1alpha2Workload read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -285,18 +285,18 @@ public V1alpha1Workload read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha1Workload given an JSON string + * Create an instance of V1alpha2Workload given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha1Workload - * @throws IOException if the JSON string is invalid with respect to V1alpha1Workload + * @return An instance of V1alpha2Workload + * @throws IOException if the JSON string is invalid with respect to V1alpha2Workload */ - public static V1alpha1Workload fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha1Workload.class); + public static V1alpha2Workload fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2Workload.class); } /** - * Convert an instance of V1alpha1Workload to an JSON string + * Convert an instance of V1alpha2Workload to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadList.java similarity index 82% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadList.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadList.java index 3d94c8c8bd..0023e97d80 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadList.java @@ -19,7 +19,7 @@ import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.openapi.models.V1ListMeta; -import io.kubernetes.client.openapi.models.V1alpha1Workload; +import io.kubernetes.client.openapi.models.V1alpha2Workload; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -54,8 +54,8 @@ * WorkloadList contains a list of Workload resources. */ @ApiModel(description = "WorkloadList contains a list of Workload resources.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha1WorkloadList implements io.kubernetes.client.common.KubernetesListObject { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2WorkloadList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @jakarta.annotation.Nullable @@ -64,7 +64,7 @@ public class V1alpha1WorkloadList implements io.kubernetes.client.common.Kuberne public static final String SERIALIZED_NAME_ITEMS = "items"; @SerializedName(SERIALIZED_NAME_ITEMS) @jakarta.annotation.Nonnull - private List items = new ArrayList<>(); + private List items = new ArrayList<>(); public static final String SERIALIZED_NAME_KIND = "kind"; @SerializedName(SERIALIZED_NAME_KIND) @@ -76,10 +76,10 @@ public class V1alpha1WorkloadList implements io.kubernetes.client.common.Kuberne @jakarta.annotation.Nullable private V1ListMeta metadata; - public V1alpha1WorkloadList() { + public V1alpha2WorkloadList() { } - public V1alpha1WorkloadList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + public V1alpha2WorkloadList apiVersion(@jakarta.annotation.Nullable String apiVersion) { this.apiVersion = apiVersion; return this; } @@ -99,12 +99,12 @@ public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { } - public V1alpha1WorkloadList items(@jakarta.annotation.Nonnull List items) { + public V1alpha2WorkloadList items(@jakarta.annotation.Nonnull List items) { this.items = items; return this; } - public V1alpha1WorkloadList addItemsItem(V1alpha1Workload itemsItem) { + public V1alpha2WorkloadList addItemsItem(V1alpha2Workload itemsItem) { if (this.items == null) { this.items = new ArrayList<>(); } @@ -118,16 +118,16 @@ public V1alpha1WorkloadList addItemsItem(V1alpha1Workload itemsItem) { */ @jakarta.annotation.Nonnull @ApiModelProperty(required = true, value = "Items is the list of Workloads.") - public List getItems() { + public List getItems() { return items; } - public void setItems(@jakarta.annotation.Nonnull List items) { + public void setItems(@jakarta.annotation.Nonnull List items) { this.items = items; } - public V1alpha1WorkloadList kind(@jakarta.annotation.Nullable String kind) { + public V1alpha2WorkloadList kind(@jakarta.annotation.Nullable String kind) { this.kind = kind; return this; } @@ -147,7 +147,7 @@ public void setKind(@jakarta.annotation.Nullable String kind) { } - public V1alpha1WorkloadList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + public V1alpha2WorkloadList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { this.metadata = metadata; return this; } @@ -176,11 +176,11 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha1WorkloadList v1alpha1WorkloadList = (V1alpha1WorkloadList) o; - return Objects.equals(this.apiVersion, v1alpha1WorkloadList.apiVersion) && - Objects.equals(this.items, v1alpha1WorkloadList.items) && - Objects.equals(this.kind, v1alpha1WorkloadList.kind) && - Objects.equals(this.metadata, v1alpha1WorkloadList.metadata); + V1alpha2WorkloadList v1alpha2WorkloadList = (V1alpha2WorkloadList) o; + return Objects.equals(this.apiVersion, v1alpha2WorkloadList.apiVersion) && + Objects.equals(this.items, v1alpha2WorkloadList.items) && + Objects.equals(this.kind, v1alpha2WorkloadList.kind) && + Objects.equals(this.metadata, v1alpha2WorkloadList.metadata); } @Override @@ -191,7 +191,7 @@ public int hashCode() { @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1WorkloadList {\n"); + sb.append("class V1alpha2WorkloadList {\n"); sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); @@ -227,25 +227,25 @@ private String toIndentedString(Object o) { * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1WorkloadList + * @throws IOException if the JSON Element is invalid with respect to V1alpha2WorkloadList */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha1WorkloadList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1WorkloadList is not found in the empty JSON string", V1alpha1WorkloadList.openapiRequiredFields.toString())); + if (!V1alpha2WorkloadList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2WorkloadList is not found in the empty JSON string", V1alpha2WorkloadList.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha1WorkloadList.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1WorkloadList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha2WorkloadList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2WorkloadList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha1WorkloadList.openapiRequiredFields) { + for (String requiredField : V1alpha2WorkloadList.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -262,7 +262,7 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); // validate the required field `items` (array) for (int i = 0; i < jsonArrayitems.size(); i++) { - V1alpha1Workload.validateJsonElement(jsonArrayitems.get(i)); + V1alpha2Workload.validateJsonElement(jsonArrayitems.get(i)); }; if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); @@ -277,22 +277,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha1WorkloadList.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha1WorkloadList' and its subtypes + if (!V1alpha2WorkloadList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2WorkloadList' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1WorkloadList.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2WorkloadList.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha1WorkloadList value) throws IOException { + public void write(JsonWriter out, V1alpha2WorkloadList value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha1WorkloadList read(JsonReader in) throws IOException { + public V1alpha2WorkloadList read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -303,18 +303,18 @@ public V1alpha1WorkloadList read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha1WorkloadList given an JSON string + * Create an instance of V1alpha2WorkloadList given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha1WorkloadList - * @throws IOException if the JSON string is invalid with respect to V1alpha1WorkloadList + * @return An instance of V1alpha2WorkloadList + * @throws IOException if the JSON string is invalid with respect to V1alpha2WorkloadList */ - public static V1alpha1WorkloadList fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha1WorkloadList.class); + public static V1alpha2WorkloadList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2WorkloadList.class); } /** - * Convert an instance of V1alpha1WorkloadList to an JSON string + * Convert an instance of V1alpha2WorkloadList to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReference.java new file mode 100644 index 0000000000..ffc1eaf1f4 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadPodGroupTemplateReference.java @@ -0,0 +1,244 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * WorkloadPodGroupTemplateReference references the PodGroupTemplate within the Workload object. + */ +@ApiModel(description = "WorkloadPodGroupTemplateReference references the PodGroupTemplate within the Workload object.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2WorkloadPodGroupTemplateReference { + public static final String SERIALIZED_NAME_POD_GROUP_TEMPLATE_NAME = "podGroupTemplateName"; + @SerializedName(SERIALIZED_NAME_POD_GROUP_TEMPLATE_NAME) + @jakarta.annotation.Nonnull + private String podGroupTemplateName; + + public static final String SERIALIZED_NAME_WORKLOAD_NAME = "workloadName"; + @SerializedName(SERIALIZED_NAME_WORKLOAD_NAME) + @jakarta.annotation.Nonnull + private String workloadName; + + public V1alpha2WorkloadPodGroupTemplateReference() { + } + + public V1alpha2WorkloadPodGroupTemplateReference podGroupTemplateName(@jakarta.annotation.Nonnull String podGroupTemplateName) { + this.podGroupTemplateName = podGroupTemplateName; + return this; + } + + /** + * PodGroupTemplateName defines the PodGroupTemplate name within the Workload object. + * @return podGroupTemplateName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "PodGroupTemplateName defines the PodGroupTemplate name within the Workload object.") + public String getPodGroupTemplateName() { + return podGroupTemplateName; + } + + public void setPodGroupTemplateName(@jakarta.annotation.Nonnull String podGroupTemplateName) { + this.podGroupTemplateName = podGroupTemplateName; + } + + + public V1alpha2WorkloadPodGroupTemplateReference workloadName(@jakarta.annotation.Nonnull String workloadName) { + this.workloadName = workloadName; + return this; + } + + /** + * WorkloadName defines the name of the Workload object. + * @return workloadName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "WorkloadName defines the name of the Workload object.") + public String getWorkloadName() { + return workloadName; + } + + public void setWorkloadName(@jakarta.annotation.Nonnull String workloadName) { + this.workloadName = workloadName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha2WorkloadPodGroupTemplateReference v1alpha2WorkloadPodGroupTemplateReference = (V1alpha2WorkloadPodGroupTemplateReference) o; + return Objects.equals(this.podGroupTemplateName, v1alpha2WorkloadPodGroupTemplateReference.podGroupTemplateName) && + Objects.equals(this.workloadName, v1alpha2WorkloadPodGroupTemplateReference.workloadName); + } + + @Override + public int hashCode() { + return Objects.hash(podGroupTemplateName, workloadName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha2WorkloadPodGroupTemplateReference {\n"); + sb.append(" podGroupTemplateName: ").append(toIndentedString(podGroupTemplateName)).append("\n"); + sb.append(" workloadName: ").append(toIndentedString(workloadName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("podGroupTemplateName", "workloadName")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("podGroupTemplateName", "workloadName")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha2WorkloadPodGroupTemplateReference + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha2WorkloadPodGroupTemplateReference.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2WorkloadPodGroupTemplateReference is not found in the empty JSON string", V1alpha2WorkloadPodGroupTemplateReference.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha2WorkloadPodGroupTemplateReference.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2WorkloadPodGroupTemplateReference` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha2WorkloadPodGroupTemplateReference.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("podGroupTemplateName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podGroupTemplateName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("podGroupTemplateName").toString())); + } + if (!jsonObj.get("workloadName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `workloadName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workloadName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha2WorkloadPodGroupTemplateReference.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2WorkloadPodGroupTemplateReference' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2WorkloadPodGroupTemplateReference.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha2WorkloadPodGroupTemplateReference value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha2WorkloadPodGroupTemplateReference read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha2WorkloadPodGroupTemplateReference given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha2WorkloadPodGroupTemplateReference + * @throws IOException if the JSON string is invalid with respect to V1alpha2WorkloadPodGroupTemplateReference + */ + public static V1alpha2WorkloadPodGroupTemplateReference fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2WorkloadPodGroupTemplateReference.class); + } + + /** + * Convert an instance of V1alpha2WorkloadPodGroupTemplateReference to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpec.java similarity index 61% rename from kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpec.java rename to kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpec.java index afdf7e0296..7c1d3a6cf8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha1WorkloadSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha2WorkloadSpec.java @@ -18,8 +18,8 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; -import io.kubernetes.client.openapi.models.V1alpha1PodGroup; -import io.kubernetes.client.openapi.models.V1alpha1TypedLocalObjectReference; +import io.kubernetes.client.openapi.models.V1alpha2PodGroupTemplate; +import io.kubernetes.client.openapi.models.V1alpha2TypedLocalObjectReference; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -54,22 +54,22 @@ * WorkloadSpec defines the desired state of a Workload. */ @ApiModel(description = "WorkloadSpec defines the desired state of a Workload.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") -public class V1alpha1WorkloadSpec { +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha2WorkloadSpec { public static final String SERIALIZED_NAME_CONTROLLER_REF = "controllerRef"; @SerializedName(SERIALIZED_NAME_CONTROLLER_REF) @jakarta.annotation.Nullable - private V1alpha1TypedLocalObjectReference controllerRef; + private V1alpha2TypedLocalObjectReference controllerRef; - public static final String SERIALIZED_NAME_POD_GROUPS = "podGroups"; - @SerializedName(SERIALIZED_NAME_POD_GROUPS) + public static final String SERIALIZED_NAME_POD_GROUP_TEMPLATES = "podGroupTemplates"; + @SerializedName(SERIALIZED_NAME_POD_GROUP_TEMPLATES) @jakarta.annotation.Nonnull - private List podGroups = new ArrayList<>(); + private List podGroupTemplates = new ArrayList<>(); - public V1alpha1WorkloadSpec() { + public V1alpha2WorkloadSpec() { } - public V1alpha1WorkloadSpec controllerRef(@jakarta.annotation.Nullable V1alpha1TypedLocalObjectReference controllerRef) { + public V1alpha2WorkloadSpec controllerRef(@jakarta.annotation.Nullable V1alpha2TypedLocalObjectReference controllerRef) { this.controllerRef = controllerRef; return this; } @@ -80,40 +80,40 @@ public V1alpha1WorkloadSpec controllerRef(@jakarta.annotation.Nullable V1alpha1T */ @jakarta.annotation.Nullable @ApiModelProperty(value = "") - public V1alpha1TypedLocalObjectReference getControllerRef() { + public V1alpha2TypedLocalObjectReference getControllerRef() { return controllerRef; } - public void setControllerRef(@jakarta.annotation.Nullable V1alpha1TypedLocalObjectReference controllerRef) { + public void setControllerRef(@jakarta.annotation.Nullable V1alpha2TypedLocalObjectReference controllerRef) { this.controllerRef = controllerRef; } - public V1alpha1WorkloadSpec podGroups(@jakarta.annotation.Nonnull List podGroups) { - this.podGroups = podGroups; + public V1alpha2WorkloadSpec podGroupTemplates(@jakarta.annotation.Nonnull List podGroupTemplates) { + this.podGroupTemplates = podGroupTemplates; return this; } - public V1alpha1WorkloadSpec addPodGroupsItem(V1alpha1PodGroup podGroupsItem) { - if (this.podGroups == null) { - this.podGroups = new ArrayList<>(); + public V1alpha2WorkloadSpec addPodGroupTemplatesItem(V1alpha2PodGroupTemplate podGroupTemplatesItem) { + if (this.podGroupTemplates == null) { + this.podGroupTemplates = new ArrayList<>(); } - this.podGroups.add(podGroupsItem); + this.podGroupTemplates.add(podGroupTemplatesItem); return this; } /** - * PodGroups is the list of pod groups that make up the Workload. The maximum number of pod groups is 8. This field is immutable. - * @return podGroups + * PodGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. This field is immutable. + * @return podGroupTemplates */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "PodGroups is the list of pod groups that make up the Workload. The maximum number of pod groups is 8. This field is immutable.") - public List getPodGroups() { - return podGroups; + @ApiModelProperty(required = true, value = "PodGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. This field is immutable.") + public List getPodGroupTemplates() { + return podGroupTemplates; } - public void setPodGroups(@jakarta.annotation.Nonnull List podGroups) { - this.podGroups = podGroups; + public void setPodGroupTemplates(@jakarta.annotation.Nonnull List podGroupTemplates) { + this.podGroupTemplates = podGroupTemplates; } @@ -126,22 +126,22 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - V1alpha1WorkloadSpec v1alpha1WorkloadSpec = (V1alpha1WorkloadSpec) o; - return Objects.equals(this.controllerRef, v1alpha1WorkloadSpec.controllerRef) && - Objects.equals(this.podGroups, v1alpha1WorkloadSpec.podGroups); + V1alpha2WorkloadSpec v1alpha2WorkloadSpec = (V1alpha2WorkloadSpec) o; + return Objects.equals(this.controllerRef, v1alpha2WorkloadSpec.controllerRef) && + Objects.equals(this.podGroupTemplates, v1alpha2WorkloadSpec.podGroupTemplates); } @Override public int hashCode() { - return Objects.hash(controllerRef, podGroups); + return Objects.hash(controllerRef, podGroupTemplates); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1alpha1WorkloadSpec {\n"); + sb.append("class V1alpha2WorkloadSpec {\n"); sb.append(" controllerRef: ").append(toIndentedString(controllerRef)).append("\n"); - sb.append(" podGroups: ").append(toIndentedString(podGroups)).append("\n"); + sb.append(" podGroupTemplates: ").append(toIndentedString(podGroupTemplates)).append("\n"); sb.append("}"); return sb.toString(); } @@ -163,35 +163,35 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("controllerRef", "podGroups")); + openapiFields = new HashSet(Arrays.asList("controllerRef", "podGroupTemplates")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("podGroups")); + openapiRequiredFields = new HashSet(Arrays.asList("podGroupTemplates")); } /** * Validates the JSON Element and throws an exception if issues found * * @param jsonElement JSON Element - * @throws IOException if the JSON Element is invalid with respect to V1alpha1WorkloadSpec + * @throws IOException if the JSON Element is invalid with respect to V1alpha2WorkloadSpec */ public static void validateJsonElement(JsonElement jsonElement) throws IOException { if (jsonElement == null) { - if (!V1alpha1WorkloadSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha1WorkloadSpec is not found in the empty JSON string", V1alpha1WorkloadSpec.openapiRequiredFields.toString())); + if (!V1alpha2WorkloadSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha2WorkloadSpec is not found in the empty JSON string", V1alpha2WorkloadSpec.openapiRequiredFields.toString())); } } Set> entries = jsonElement.getAsJsonObject().entrySet(); // check to see if the JSON string contains additional fields for (Map.Entry entry : entries) { - if (!V1alpha1WorkloadSpec.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha1WorkloadSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + if (!V1alpha2WorkloadSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha2WorkloadSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : V1alpha1WorkloadSpec.openapiRequiredFields) { + for (String requiredField : V1alpha2WorkloadSpec.openapiRequiredFields) { if (jsonElement.getAsJsonObject().get(requiredField) == null) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); } @@ -199,17 +199,17 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti JsonObject jsonObj = jsonElement.getAsJsonObject(); // validate the optional field `controllerRef` if (jsonObj.get("controllerRef") != null && !jsonObj.get("controllerRef").isJsonNull()) { - V1alpha1TypedLocalObjectReference.validateJsonElement(jsonObj.get("controllerRef")); + V1alpha2TypedLocalObjectReference.validateJsonElement(jsonObj.get("controllerRef")); } // ensure the json data is an array - if (!jsonObj.get("podGroups").isJsonArray()) { - throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podGroups` to be an array in the JSON string but got `%s`", jsonObj.get("podGroups").toString())); + if (!jsonObj.get("podGroupTemplates").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `podGroupTemplates` to be an array in the JSON string but got `%s`", jsonObj.get("podGroupTemplates").toString())); } - JsonArray jsonArraypodGroups = jsonObj.getAsJsonArray("podGroups"); - // validate the required field `podGroups` (array) - for (int i = 0; i < jsonArraypodGroups.size(); i++) { - V1alpha1PodGroup.validateJsonElement(jsonArraypodGroups.get(i)); + JsonArray jsonArraypodGroupTemplates = jsonObj.getAsJsonArray("podGroupTemplates"); + // validate the required field `podGroupTemplates` (array) + for (int i = 0; i < jsonArraypodGroupTemplates.size(); i++) { + V1alpha2PodGroupTemplate.validateJsonElement(jsonArraypodGroupTemplates.get(i)); }; } @@ -217,22 +217,22 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!V1alpha1WorkloadSpec.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'V1alpha1WorkloadSpec' and its subtypes + if (!V1alpha2WorkloadSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha2WorkloadSpec' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(V1alpha1WorkloadSpec.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha2WorkloadSpec.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, V1alpha1WorkloadSpec value) throws IOException { + public void write(JsonWriter out, V1alpha2WorkloadSpec value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); elementAdapter.write(out, obj); } @Override - public V1alpha1WorkloadSpec read(JsonReader in) throws IOException { + public V1alpha2WorkloadSpec read(JsonReader in) throws IOException { JsonElement jsonElement = elementAdapter.read(in); validateJsonElement(jsonElement); return thisAdapter.fromJsonTree(jsonElement); @@ -243,18 +243,18 @@ public V1alpha1WorkloadSpec read(JsonReader in) throws IOException { } /** - * Create an instance of V1alpha1WorkloadSpec given an JSON string + * Create an instance of V1alpha2WorkloadSpec given an JSON string * * @param jsonString JSON string - * @return An instance of V1alpha1WorkloadSpec - * @throws IOException if the JSON string is invalid with respect to V1alpha1WorkloadSpec + * @return An instance of V1alpha2WorkloadSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha2WorkloadSpec */ - public static V1alpha1WorkloadSpec fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, V1alpha1WorkloadSpec.class); + public static V1alpha2WorkloadSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha2WorkloadSpec.class); } /** - * Convert an instance of V1alpha1WorkloadSpec to an JSON string + * Convert an instance of V1alpha2WorkloadSpec to an JSON string * * @return JSON string */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java index d9bb20d9b8..4289f56746 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaint.java @@ -51,7 +51,7 @@ * The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. */ @ApiModel(description = "The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3DeviceTaint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -122,11 +122,11 @@ public V1alpha3DeviceTaint timeAdded(@jakarta.annotation.Nullable OffsetDateTime } /** - * TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. + * TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). * @return timeAdded */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.") + @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule).") public OffsetDateTime getTimeAdded() { return timeAdded; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java index d778884c6a..d756640545 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRule.java @@ -53,7 +53,7 @@ * DeviceTaintRule adds one taint to all devices which match the selector. This has the same effect as if the taint was specified directly in the ResourceSlice by the DRA driver. */ @ApiModel(description = "DeviceTaintRule adds one taint to all devices which match the selector. This has the same effect as if the taint was specified directly in the ResourceSlice by the DRA driver.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3DeviceTaintRule implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java index 7e5527285f..dba2c40db0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleList.java @@ -54,7 +54,7 @@ * DeviceTaintRuleList is a collection of DeviceTaintRules. */ @ApiModel(description = "DeviceTaintRuleList is a collection of DeviceTaintRules.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3DeviceTaintRuleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java index cbf1734e23..fd80c43f45 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleSpec.java @@ -52,7 +52,7 @@ * DeviceTaintRuleSpec specifies the selector and one taint. */ @ApiModel(description = "DeviceTaintRuleSpec specifies the selector and one taint.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3DeviceTaintRuleSpec { public static final String SERIALIZED_NAME_DEVICE_SELECTOR = "deviceSelector"; @SerializedName(SERIALIZED_NAME_DEVICE_SELECTOR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatus.java index f577fa53f7..a179027e8a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintRuleStatus.java @@ -53,7 +53,7 @@ * DeviceTaintRuleStatus provides information about an on-going pod eviction. */ @ApiModel(description = "DeviceTaintRuleStatus provides information about an on-going pod eviction.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3DeviceTaintRuleStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java index aaf5f4a0ae..f65618ebf8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3DeviceTaintSelector.java @@ -50,7 +50,7 @@ * DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched. */ @ApiModel(description = "DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1alpha3DeviceTaintSelector { public static final String SERIALIZED_NAME_DEVICE = "device"; @SerializedName(SERIALIZED_NAME_DEVICE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatus.java new file mode 100644 index 0000000000..3f7ad18ee4 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3PoolStatus.java @@ -0,0 +1,466 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * PoolStatus contains status information for a single resource pool. + */ +@ApiModel(description = "PoolStatus contains status information for a single resource pool.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3PoolStatus { + public static final String SERIALIZED_NAME_ALLOCATED_DEVICES = "allocatedDevices"; + @SerializedName(SERIALIZED_NAME_ALLOCATED_DEVICES) + @jakarta.annotation.Nullable + private Integer allocatedDevices; + + public static final String SERIALIZED_NAME_AVAILABLE_DEVICES = "availableDevices"; + @SerializedName(SERIALIZED_NAME_AVAILABLE_DEVICES) + @jakarta.annotation.Nullable + private Integer availableDevices; + + public static final String SERIALIZED_NAME_DRIVER = "driver"; + @SerializedName(SERIALIZED_NAME_DRIVER) + @jakarta.annotation.Nonnull + private String driver; + + public static final String SERIALIZED_NAME_GENERATION = "generation"; + @SerializedName(SERIALIZED_NAME_GENERATION) + @jakarta.annotation.Nonnull + private Long generation; + + public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; + @SerializedName(SERIALIZED_NAME_NODE_NAME) + @jakarta.annotation.Nullable + private String nodeName; + + public static final String SERIALIZED_NAME_POOL_NAME = "poolName"; + @SerializedName(SERIALIZED_NAME_POOL_NAME) + @jakarta.annotation.Nonnull + private String poolName; + + public static final String SERIALIZED_NAME_RESOURCE_SLICE_COUNT = "resourceSliceCount"; + @SerializedName(SERIALIZED_NAME_RESOURCE_SLICE_COUNT) + @jakarta.annotation.Nullable + private Integer resourceSliceCount; + + public static final String SERIALIZED_NAME_TOTAL_DEVICES = "totalDevices"; + @SerializedName(SERIALIZED_NAME_TOTAL_DEVICES) + @jakarta.annotation.Nullable + private Integer totalDevices; + + public static final String SERIALIZED_NAME_UNAVAILABLE_DEVICES = "unavailableDevices"; + @SerializedName(SERIALIZED_NAME_UNAVAILABLE_DEVICES) + @jakarta.annotation.Nullable + private Integer unavailableDevices; + + public static final String SERIALIZED_NAME_VALIDATION_ERROR = "validationError"; + @SerializedName(SERIALIZED_NAME_VALIDATION_ERROR) + @jakarta.annotation.Nullable + private String validationError; + + public V1alpha3PoolStatus() { + } + + public V1alpha3PoolStatus allocatedDevices(@jakarta.annotation.Nullable Integer allocatedDevices) { + this.allocatedDevices = allocatedDevices; + return this; + } + + /** + * AllocatedDevices is the number of devices currently allocated to claims. A value of 0 means no devices are allocated. May be unset when validationError is set. + * @return allocatedDevices + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "AllocatedDevices is the number of devices currently allocated to claims. A value of 0 means no devices are allocated. May be unset when validationError is set.") + public Integer getAllocatedDevices() { + return allocatedDevices; + } + + public void setAllocatedDevices(@jakarta.annotation.Nullable Integer allocatedDevices) { + this.allocatedDevices = allocatedDevices; + } + + + public V1alpha3PoolStatus availableDevices(@jakarta.annotation.Nullable Integer availableDevices) { + this.availableDevices = availableDevices; + return this; + } + + /** + * AvailableDevices is the number of devices available for allocation. This equals TotalDevices - AllocatedDevices - UnavailableDevices. A value of 0 means no devices are currently available. May be unset when validationError is set. + * @return availableDevices + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "AvailableDevices is the number of devices available for allocation. This equals TotalDevices - AllocatedDevices - UnavailableDevices. A value of 0 means no devices are currently available. May be unset when validationError is set.") + public Integer getAvailableDevices() { + return availableDevices; + } + + public void setAvailableDevices(@jakarta.annotation.Nullable Integer availableDevices) { + this.availableDevices = availableDevices; + } + + + public V1alpha3PoolStatus driver(@jakarta.annotation.Nonnull String driver) { + this.driver = driver; + return this; + } + + /** + * Driver is the DRA driver name for this pool. Must be a DNS subdomain (e.g., \"gpu.example.com\"). + * @return driver + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Driver is the DRA driver name for this pool. Must be a DNS subdomain (e.g., \"gpu.example.com\").") + public String getDriver() { + return driver; + } + + public void setDriver(@jakarta.annotation.Nonnull String driver) { + this.driver = driver; + } + + + public V1alpha3PoolStatus generation(@jakarta.annotation.Nonnull Long generation) { + this.generation = generation; + return this; + } + + /** + * Generation is the pool generation observed across all ResourceSlices in this pool. Only the latest generation is reported. During a generation rollout, if not all slices at the latest generation have been published, the pool is included with a validationError and device counts unset. + * @return generation + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Generation is the pool generation observed across all ResourceSlices in this pool. Only the latest generation is reported. During a generation rollout, if not all slices at the latest generation have been published, the pool is included with a validationError and device counts unset.") + public Long getGeneration() { + return generation; + } + + public void setGeneration(@jakarta.annotation.Nonnull Long generation) { + this.generation = generation; + } + + + public V1alpha3PoolStatus nodeName(@jakarta.annotation.Nullable String nodeName) { + this.nodeName = nodeName; + return this; + } + + /** + * NodeName is the node this pool is associated with. When omitted, the pool is not associated with a specific node. Must be a valid DNS subdomain name (RFC1123). + * @return nodeName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "NodeName is the node this pool is associated with. When omitted, the pool is not associated with a specific node. Must be a valid DNS subdomain name (RFC1123).") + public String getNodeName() { + return nodeName; + } + + public void setNodeName(@jakarta.annotation.Nullable String nodeName) { + this.nodeName = nodeName; + } + + + public V1alpha3PoolStatus poolName(@jakarta.annotation.Nonnull String poolName) { + this.poolName = poolName; + return this; + } + + /** + * PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by \"/\"). + * @return poolName + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by \"/\").") + public String getPoolName() { + return poolName; + } + + public void setPoolName(@jakarta.annotation.Nonnull String poolName) { + this.poolName = poolName; + } + + + public V1alpha3PoolStatus resourceSliceCount(@jakarta.annotation.Nullable Integer resourceSliceCount) { + this.resourceSliceCount = resourceSliceCount; + return this; + } + + /** + * ResourceSliceCount is the number of ResourceSlices that make up this pool. May be unset when validationError is set. + * @return resourceSliceCount + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "ResourceSliceCount is the number of ResourceSlices that make up this pool. May be unset when validationError is set.") + public Integer getResourceSliceCount() { + return resourceSliceCount; + } + + public void setResourceSliceCount(@jakarta.annotation.Nullable Integer resourceSliceCount) { + this.resourceSliceCount = resourceSliceCount; + } + + + public V1alpha3PoolStatus totalDevices(@jakarta.annotation.Nullable Integer totalDevices) { + this.totalDevices = totalDevices; + return this; + } + + /** + * TotalDevices is the total number of devices in the pool across all slices. A value of 0 means the pool has no devices. May be unset when validationError is set. + * @return totalDevices + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "TotalDevices is the total number of devices in the pool across all slices. A value of 0 means the pool has no devices. May be unset when validationError is set.") + public Integer getTotalDevices() { + return totalDevices; + } + + public void setTotalDevices(@jakarta.annotation.Nullable Integer totalDevices) { + this.totalDevices = totalDevices; + } + + + public V1alpha3PoolStatus unavailableDevices(@jakarta.annotation.Nullable Integer unavailableDevices) { + this.unavailableDevices = unavailableDevices; + return this; + } + + /** + * UnavailableDevices is the number of devices that are not available due to taints or other conditions, but are not allocated. A value of 0 means all unallocated devices are available. May be unset when validationError is set. + * @return unavailableDevices + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "UnavailableDevices is the number of devices that are not available due to taints or other conditions, but are not allocated. A value of 0 means all unallocated devices are available. May be unset when validationError is set.") + public Integer getUnavailableDevices() { + return unavailableDevices; + } + + public void setUnavailableDevices(@jakarta.annotation.Nullable Integer unavailableDevices) { + this.unavailableDevices = unavailableDevices; + } + + + public V1alpha3PoolStatus validationError(@jakarta.annotation.Nullable String validationError) { + this.validationError = validationError; + return this; + } + + /** + * ValidationError is set when the pool's data could not be fully validated (e.g., incomplete slice publication). When set, device count fields and ResourceSliceCount may be unset. + * @return validationError + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "ValidationError is set when the pool's data could not be fully validated (e.g., incomplete slice publication). When set, device count fields and ResourceSliceCount may be unset.") + public String getValidationError() { + return validationError; + } + + public void setValidationError(@jakarta.annotation.Nullable String validationError) { + this.validationError = validationError; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3PoolStatus v1alpha3PoolStatus = (V1alpha3PoolStatus) o; + return Objects.equals(this.allocatedDevices, v1alpha3PoolStatus.allocatedDevices) && + Objects.equals(this.availableDevices, v1alpha3PoolStatus.availableDevices) && + Objects.equals(this.driver, v1alpha3PoolStatus.driver) && + Objects.equals(this.generation, v1alpha3PoolStatus.generation) && + Objects.equals(this.nodeName, v1alpha3PoolStatus.nodeName) && + Objects.equals(this.poolName, v1alpha3PoolStatus.poolName) && + Objects.equals(this.resourceSliceCount, v1alpha3PoolStatus.resourceSliceCount) && + Objects.equals(this.totalDevices, v1alpha3PoolStatus.totalDevices) && + Objects.equals(this.unavailableDevices, v1alpha3PoolStatus.unavailableDevices) && + Objects.equals(this.validationError, v1alpha3PoolStatus.validationError); + } + + @Override + public int hashCode() { + return Objects.hash(allocatedDevices, availableDevices, driver, generation, nodeName, poolName, resourceSliceCount, totalDevices, unavailableDevices, validationError); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3PoolStatus {\n"); + sb.append(" allocatedDevices: ").append(toIndentedString(allocatedDevices)).append("\n"); + sb.append(" availableDevices: ").append(toIndentedString(availableDevices)).append("\n"); + sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); + sb.append(" generation: ").append(toIndentedString(generation)).append("\n"); + sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); + sb.append(" poolName: ").append(toIndentedString(poolName)).append("\n"); + sb.append(" resourceSliceCount: ").append(toIndentedString(resourceSliceCount)).append("\n"); + sb.append(" totalDevices: ").append(toIndentedString(totalDevices)).append("\n"); + sb.append(" unavailableDevices: ").append(toIndentedString(unavailableDevices)).append("\n"); + sb.append(" validationError: ").append(toIndentedString(validationError)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("allocatedDevices", "availableDevices", "driver", "generation", "nodeName", "poolName", "resourceSliceCount", "totalDevices", "unavailableDevices", "validationError")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("driver", "generation", "poolName")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3PoolStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3PoolStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3PoolStatus is not found in the empty JSON string", V1alpha3PoolStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3PoolStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3PoolStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3PoolStatus.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("driver").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); + } + if ((jsonObj.get("nodeName") != null && !jsonObj.get("nodeName").isJsonNull()) && !jsonObj.get("nodeName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `nodeName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("nodeName").toString())); + } + if (!jsonObj.get("poolName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `poolName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("poolName").toString())); + } + if ((jsonObj.get("validationError") != null && !jsonObj.get("validationError").isJsonNull()) && !jsonObj.get("validationError").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `validationError` to be a primitive type in the JSON string but got `%s`", jsonObj.get("validationError").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3PoolStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3PoolStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3PoolStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3PoolStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3PoolStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3PoolStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3PoolStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha3PoolStatus + */ + public static V1alpha3PoolStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3PoolStatus.class); + } + + /** + * Convert an instance of V1alpha3PoolStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequest.java new file mode 100644 index 0000000000..ff4a95ebf0 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequest.java @@ -0,0 +1,336 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.kubernetes.client.openapi.models.V1alpha3ResourcePoolStatusRequestSpec; +import io.kubernetes.client.openapi.models.V1alpha3ResourcePoolStatusRequestStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * ResourcePoolStatusRequest triggers a one-time calculation of resource pool status based on the provided filters. Once status is set, the request is considered complete and will not be reprocessed. Users should delete and recreate requests to get updated information. + */ +@ApiModel(description = "ResourcePoolStatusRequest triggers a one-time calculation of resource pool status based on the provided filters. Once status is set, the request is considered complete and will not be reprocessed. Users should delete and recreate requests to get updated information.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3ResourcePoolStatusRequest implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nonnull + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull + private V1alpha3ResourcePoolStatusRequestSpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable + private V1alpha3ResourcePoolStatusRequestStatus status; + + public V1alpha3ResourcePoolStatusRequest() { + } + + public V1alpha3ResourcePoolStatusRequest apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha3ResourcePoolStatusRequest kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V1alpha3ResourcePoolStatusRequest metadata(@jakarta.annotation.Nonnull V1ObjectMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1ObjectMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nonnull V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1alpha3ResourcePoolStatusRequest spec(@jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequestSpec spec) { + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1alpha3ResourcePoolStatusRequestSpec getSpec() { + return spec; + } + + public void setSpec(@jakarta.annotation.Nonnull V1alpha3ResourcePoolStatusRequestSpec spec) { + this.spec = spec; + } + + + public V1alpha3ResourcePoolStatusRequest status(@jakarta.annotation.Nullable V1alpha3ResourcePoolStatusRequestStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha3ResourcePoolStatusRequestStatus getStatus() { + return status; + } + + public void setStatus(@jakarta.annotation.Nullable V1alpha3ResourcePoolStatusRequestStatus status) { + this.status = status; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3ResourcePoolStatusRequest v1alpha3ResourcePoolStatusRequest = (V1alpha3ResourcePoolStatusRequest) o; + return Objects.equals(this.apiVersion, v1alpha3ResourcePoolStatusRequest.apiVersion) && + Objects.equals(this.kind, v1alpha3ResourcePoolStatusRequest.kind) && + Objects.equals(this.metadata, v1alpha3ResourcePoolStatusRequest.metadata) && + Objects.equals(this.spec, v1alpha3ResourcePoolStatusRequest.spec) && + Objects.equals(this.status, v1alpha3ResourcePoolStatusRequest.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3ResourcePoolStatusRequest {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("metadata", "spec")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3ResourcePoolStatusRequest + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3ResourcePoolStatusRequest.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3ResourcePoolStatusRequest is not found in the empty JSON string", V1alpha3ResourcePoolStatusRequest.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3ResourcePoolStatusRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3ResourcePoolStatusRequest` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3ResourcePoolStatusRequest.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the required field `metadata` + V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); + // validate the required field `spec` + V1alpha3ResourcePoolStatusRequestSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1alpha3ResourcePoolStatusRequestStatus.validateJsonElement(jsonObj.get("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3ResourcePoolStatusRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3ResourcePoolStatusRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourcePoolStatusRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3ResourcePoolStatusRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3ResourcePoolStatusRequest read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3ResourcePoolStatusRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3ResourcePoolStatusRequest + * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourcePoolStatusRequest + */ + public static V1alpha3ResourcePoolStatusRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3ResourcePoolStatusRequest.class); + } + + /** + * Convert an instance of V1alpha3ResourcePoolStatusRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestList.java new file mode 100644 index 0000000000..fab5bace86 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestList.java @@ -0,0 +1,324 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V1alpha3ResourcePoolStatusRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * ResourcePoolStatusRequestList is a collection of ResourcePoolStatusRequests. + */ +@ApiModel(description = "ResourcePoolStatusRequestList is a collection of ResourcePoolStatusRequests.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3ResourcePoolStatusRequestList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ListMeta metadata; + + public V1alpha3ResourcePoolStatusRequestList() { + } + + public V1alpha3ResourcePoolStatusRequestList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1alpha3ResourcePoolStatusRequestList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1alpha3ResourcePoolStatusRequestList addItemsItem(V1alpha3ResourcePoolStatusRequest itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * Items is the list of ResourcePoolStatusRequests. + * @return items + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of ResourcePoolStatusRequests.") + public List getItems() { + return items; + } + + public void setItems(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + public V1alpha3ResourcePoolStatusRequestList kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V1alpha3ResourcePoolStatusRequestList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3ResourcePoolStatusRequestList v1alpha3ResourcePoolStatusRequestList = (V1alpha3ResourcePoolStatusRequestList) o; + return Objects.equals(this.apiVersion, v1alpha3ResourcePoolStatusRequestList.apiVersion) && + Objects.equals(this.items, v1alpha3ResourcePoolStatusRequestList.items) && + Objects.equals(this.kind, v1alpha3ResourcePoolStatusRequestList.kind) && + Objects.equals(this.metadata, v1alpha3ResourcePoolStatusRequestList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3ResourcePoolStatusRequestList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("items")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3ResourcePoolStatusRequestList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3ResourcePoolStatusRequestList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3ResourcePoolStatusRequestList is not found in the empty JSON string", V1alpha3ResourcePoolStatusRequestList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3ResourcePoolStatusRequestList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3ResourcePoolStatusRequestList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3ResourcePoolStatusRequestList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1alpha3ResourcePoolStatusRequest.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonElement(jsonObj.get("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3ResourcePoolStatusRequestList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3ResourcePoolStatusRequestList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourcePoolStatusRequestList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3ResourcePoolStatusRequestList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3ResourcePoolStatusRequestList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3ResourcePoolStatusRequestList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3ResourcePoolStatusRequestList + * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourcePoolStatusRequestList + */ + public static V1alpha3ResourcePoolStatusRequestList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3ResourcePoolStatusRequestList.class); + } + + /** + * Convert an instance of V1alpha3ResourcePoolStatusRequestList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpec.java new file mode 100644 index 0000000000..033f45e135 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestSpec.java @@ -0,0 +1,271 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * ResourcePoolStatusRequestSpec defines the filters for the pool status request. + */ +@ApiModel(description = "ResourcePoolStatusRequestSpec defines the filters for the pool status request.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3ResourcePoolStatusRequestSpec { + public static final String SERIALIZED_NAME_DRIVER = "driver"; + @SerializedName(SERIALIZED_NAME_DRIVER) + @jakarta.annotation.Nonnull + private String driver; + + public static final String SERIALIZED_NAME_LIMIT = "limit"; + @SerializedName(SERIALIZED_NAME_LIMIT) + @jakarta.annotation.Nullable + private Integer limit; + + public static final String SERIALIZED_NAME_POOL_NAME = "poolName"; + @SerializedName(SERIALIZED_NAME_POOL_NAME) + @jakarta.annotation.Nullable + private String poolName; + + public V1alpha3ResourcePoolStatusRequestSpec() { + } + + public V1alpha3ResourcePoolStatusRequestSpec driver(@jakarta.annotation.Nonnull String driver) { + this.driver = driver; + return this; + } + + /** + * Driver specifies the DRA driver name to filter pools. Only pools from ResourceSlices with this driver will be included. Must be a DNS subdomain (e.g., \"gpu.example.com\"). + * @return driver + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Driver specifies the DRA driver name to filter pools. Only pools from ResourceSlices with this driver will be included. Must be a DNS subdomain (e.g., \"gpu.example.com\").") + public String getDriver() { + return driver; + } + + public void setDriver(@jakarta.annotation.Nonnull String driver) { + this.driver = driver; + } + + + public V1alpha3ResourcePoolStatusRequestSpec limit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + return this; + } + + /** + * Limit optionally specifies the maximum number of pools to return in the status. If more pools match the filter criteria, the response will be truncated (i.e., len(status.pools) < status.poolCount). Default: 100 Minimum: 1 Maximum: 1000 + * @return limit + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Limit optionally specifies the maximum number of pools to return in the status. If more pools match the filter criteria, the response will be truncated (i.e., len(status.pools) < status.poolCount). Default: 100 Minimum: 1 Maximum: 1000") + public Integer getLimit() { + return limit; + } + + public void setLimit(@jakarta.annotation.Nullable Integer limit) { + this.limit = limit; + } + + + public V1alpha3ResourcePoolStatusRequestSpec poolName(@jakarta.annotation.Nullable String poolName) { + this.poolName = poolName; + return this; + } + + /** + * PoolName optionally filters to a specific pool name. If not specified, all pools from the specified driver are included. When specified, must be a non-empty valid resource pool name (DNS subdomains separated by \"/\"). + * @return poolName + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "PoolName optionally filters to a specific pool name. If not specified, all pools from the specified driver are included. When specified, must be a non-empty valid resource pool name (DNS subdomains separated by \"/\").") + public String getPoolName() { + return poolName; + } + + public void setPoolName(@jakarta.annotation.Nullable String poolName) { + this.poolName = poolName; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3ResourcePoolStatusRequestSpec v1alpha3ResourcePoolStatusRequestSpec = (V1alpha3ResourcePoolStatusRequestSpec) o; + return Objects.equals(this.driver, v1alpha3ResourcePoolStatusRequestSpec.driver) && + Objects.equals(this.limit, v1alpha3ResourcePoolStatusRequestSpec.limit) && + Objects.equals(this.poolName, v1alpha3ResourcePoolStatusRequestSpec.poolName); + } + + @Override + public int hashCode() { + return Objects.hash(driver, limit, poolName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3ResourcePoolStatusRequestSpec {\n"); + sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" poolName: ").append(toIndentedString(poolName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("driver", "limit", "poolName")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("driver")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3ResourcePoolStatusRequestSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3ResourcePoolStatusRequestSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3ResourcePoolStatusRequestSpec is not found in the empty JSON string", V1alpha3ResourcePoolStatusRequestSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3ResourcePoolStatusRequestSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3ResourcePoolStatusRequestSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3ResourcePoolStatusRequestSpec.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("driver").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); + } + if ((jsonObj.get("poolName") != null && !jsonObj.get("poolName").isJsonNull()) && !jsonObj.get("poolName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `poolName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("poolName").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3ResourcePoolStatusRequestSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3ResourcePoolStatusRequestSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourcePoolStatusRequestSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3ResourcePoolStatusRequestSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3ResourcePoolStatusRequestSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3ResourcePoolStatusRequestSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3ResourcePoolStatusRequestSpec + * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourcePoolStatusRequestSpec + */ + public static V1alpha3ResourcePoolStatusRequestSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3ResourcePoolStatusRequestSpec.class); + } + + /** + * Convert an instance of V1alpha3ResourcePoolStatusRequestSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatus.java new file mode 100644 index 0000000000..08f25527d2 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1alpha3ResourcePoolStatusRequestStatus.java @@ -0,0 +1,313 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1Condition; +import io.kubernetes.client.openapi.models.V1alpha3PoolStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * ResourcePoolStatusRequestStatus contains the calculated pool status information. + */ +@ApiModel(description = "ResourcePoolStatusRequestStatus contains the calculated pool status information.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1alpha3ResourcePoolStatusRequestStatus { + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable + private List conditions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_POOL_COUNT = "poolCount"; + @SerializedName(SERIALIZED_NAME_POOL_COUNT) + @jakarta.annotation.Nonnull + private Integer poolCount; + + public static final String SERIALIZED_NAME_POOLS = "pools"; + @SerializedName(SERIALIZED_NAME_POOLS) + @jakarta.annotation.Nullable + private List pools = new ArrayList<>(); + + public V1alpha3ResourcePoolStatusRequestStatus() { + } + + public V1alpha3ResourcePoolStatusRequestStatus conditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + return this; + } + + public V1alpha3ResourcePoolStatusRequestStatus addConditionsItem(V1Condition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * Conditions provide information about the state of the request. A condition with type=Complete or type=Failed will always be set when the status is populated. Known condition types: - \"Complete\": True when the request has been processed successfully - \"Failed\": True when the request could not be processed + * @return conditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Conditions provide information about the state of the request. A condition with type=Complete or type=Failed will always be set when the status is populated. Known condition types: - \"Complete\": True when the request has been processed successfully - \"Failed\": True when the request could not be processed") + public List getConditions() { + return conditions; + } + + public void setConditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + } + + + public V1alpha3ResourcePoolStatusRequestStatus poolCount(@jakarta.annotation.Nonnull Integer poolCount) { + this.poolCount = poolCount; + return this; + } + + /** + * PoolCount is the total number of pools that matched the filter criteria, regardless of truncation. This helps users understand how many pools exist even when the response is truncated. A value of 0 means no pools matched the filter criteria. + * @return poolCount + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "PoolCount is the total number of pools that matched the filter criteria, regardless of truncation. This helps users understand how many pools exist even when the response is truncated. A value of 0 means no pools matched the filter criteria.") + public Integer getPoolCount() { + return poolCount; + } + + public void setPoolCount(@jakarta.annotation.Nonnull Integer poolCount) { + this.poolCount = poolCount; + } + + + public V1alpha3ResourcePoolStatusRequestStatus pools(@jakarta.annotation.Nullable List pools) { + this.pools = pools; + return this; + } + + public V1alpha3ResourcePoolStatusRequestStatus addPoolsItem(V1alpha3PoolStatus poolsItem) { + if (this.pools == null) { + this.pools = new ArrayList<>(); + } + this.pools.add(poolsItem); + return this; + } + + /** + * Pools contains the first `spec.limit` matching pools, sorted by driver then pool name. If `len(pools) < poolCount`, the list was truncated. When omitted, no pools matched the request filters. + * @return pools + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Pools contains the first `spec.limit` matching pools, sorted by driver then pool name. If `len(pools) < poolCount`, the list was truncated. When omitted, no pools matched the request filters.") + public List getPools() { + return pools; + } + + public void setPools(@jakarta.annotation.Nullable List pools) { + this.pools = pools; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1alpha3ResourcePoolStatusRequestStatus v1alpha3ResourcePoolStatusRequestStatus = (V1alpha3ResourcePoolStatusRequestStatus) o; + return Objects.equals(this.conditions, v1alpha3ResourcePoolStatusRequestStatus.conditions) && + Objects.equals(this.poolCount, v1alpha3ResourcePoolStatusRequestStatus.poolCount) && + Objects.equals(this.pools, v1alpha3ResourcePoolStatusRequestStatus.pools); + } + + @Override + public int hashCode() { + return Objects.hash(conditions, poolCount, pools); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1alpha3ResourcePoolStatusRequestStatus {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append(" poolCount: ").append(toIndentedString(poolCount)).append("\n"); + sb.append(" pools: ").append(toIndentedString(pools)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("conditions", "poolCount", "pools")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("poolCount")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1alpha3ResourcePoolStatusRequestStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1alpha3ResourcePoolStatusRequestStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1alpha3ResourcePoolStatusRequestStatus is not found in the empty JSON string", V1alpha3ResourcePoolStatusRequestStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1alpha3ResourcePoolStatusRequestStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1alpha3ResourcePoolStatusRequestStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1alpha3ResourcePoolStatusRequestStatus.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1Condition.validateJsonElement(jsonArrayconditions.get(i)); + }; + } + } + if (jsonObj.get("pools") != null && !jsonObj.get("pools").isJsonNull()) { + JsonArray jsonArraypools = jsonObj.getAsJsonArray("pools"); + if (jsonArraypools != null) { + // ensure the json data is an array + if (!jsonObj.get("pools").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `pools` to be an array in the JSON string but got `%s`", jsonObj.get("pools").toString())); + } + + // validate the optional field `pools` (array) + for (int i = 0; i < jsonArraypools.size(); i++) { + V1alpha3PoolStatus.validateJsonElement(jsonArraypools.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1alpha3ResourcePoolStatusRequestStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1alpha3ResourcePoolStatusRequestStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1alpha3ResourcePoolStatusRequestStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1alpha3ResourcePoolStatusRequestStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1alpha3ResourcePoolStatusRequestStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1alpha3ResourcePoolStatusRequestStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1alpha3ResourcePoolStatusRequestStatus + * @throws IOException if the JSON string is invalid with respect to V1alpha3ResourcePoolStatusRequestStatus + */ + public static V1alpha3ResourcePoolStatusRequestStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1alpha3ResourcePoolStatusRequestStatus.class); + } + + /** + * Convert an instance of V1alpha3ResourcePoolStatusRequestStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java index 7c6852f399..601b4451c5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocatedDeviceStatus.java @@ -54,7 +54,7 @@ * AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. */ @ApiModel(description = "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java index bf962bf9a8..007147765c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1AllocationResult.java @@ -53,7 +53,7 @@ * AllocationResult contains attributes of an allocated resource. */ @ApiModel(description = "AllocationResult contains attributes of an allocated resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1AllocationResult { public static final String SERIALIZED_NAME_ALLOCATION_TIMESTAMP = "allocationTimestamp"; @SerializedName(SERIALIZED_NAME_ALLOCATION_TIMESTAMP) @@ -79,11 +79,11 @@ public V1beta1AllocationResult allocationTimestamp(@jakarta.annotation.Nullable } /** - * AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + * AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. * @return allocationTimestamp */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.") + @ApiModelProperty(value = "AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.") public OffsetDateTime getAllocationTimestamp() { return allocationTimestamp; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java index 993dfc1204..fc4afb8ced 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ApplyConfiguration.java @@ -50,7 +50,7 @@ * ApplyConfiguration defines the desired configuration values of an object. */ @ApiModel(description = "ApplyConfiguration defines the desired configuration values of an object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ApplyConfiguration { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java index a57b915f6c..f8e08398ff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1BasicDevice.java @@ -23,6 +23,7 @@ import io.kubernetes.client.openapi.models.V1beta1DeviceCapacity; import io.kubernetes.client.openapi.models.V1beta1DeviceCounterConsumption; import io.kubernetes.client.openapi.models.V1beta1DeviceTaint; +import io.kubernetes.client.openapi.models.V1beta1NodeAllocatableResourceMapping; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -59,7 +60,7 @@ * BasicDevice defines one device instance. */ @ApiModel(description = "BasicDevice defines one device instance.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1BasicDevice { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -101,6 +102,11 @@ public class V1beta1BasicDevice { @jakarta.annotation.Nullable private List consumesCounters = new ArrayList<>(); + public static final String SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCE_MAPPINGS = "nodeAllocatableResourceMappings"; + @SerializedName(SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCE_MAPPINGS) + @jakarta.annotation.Nullable + private Map nodeAllocatableResourceMappings = new HashMap<>(); + public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; @SerializedName(SERIALIZED_NAME_NODE_NAME) @jakarta.annotation.Nullable @@ -201,11 +207,11 @@ public V1beta1BasicDevice addBindingConditionsItem(String bindingConditionsItem) } /** - * BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. * @return bindingConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + @ApiModelProperty(value = "BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") public List getBindingConditions() { return bindingConditions; } @@ -229,11 +235,11 @@ public V1beta1BasicDevice addBindingFailureConditionsItem(String bindingFailureC } /** - * BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is true, a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is true, a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. * @return bindingFailureConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is true, a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + @ApiModelProperty(value = "BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is true, a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") public List getBindingFailureConditions() { return bindingFailureConditions; } @@ -249,11 +255,11 @@ public V1beta1BasicDevice bindsToNode(@jakarta.annotation.Nullable Boolean binds } /** - * BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. * @return bindsToNode */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + @ApiModelProperty(value = "BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") public Boolean getBindsToNode() { return bindsToNode; } @@ -319,6 +325,34 @@ public void setConsumesCounters(@jakarta.annotation.Nullable List nodeAllocatableResourceMappings) { + this.nodeAllocatableResourceMappings = nodeAllocatableResourceMappings; + return this; + } + + public V1beta1BasicDevice putNodeAllocatableResourceMappingsItem(String key, V1beta1NodeAllocatableResourceMapping nodeAllocatableResourceMappingsItem) { + if (this.nodeAllocatableResourceMappings == null) { + this.nodeAllocatableResourceMappings = new HashMap<>(); + } + this.nodeAllocatableResourceMappings.put(key, nodeAllocatableResourceMappingsItem); + return this; + } + + /** + * NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. + * @return nodeAllocatableResourceMappings + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.") + public Map getNodeAllocatableResourceMappings() { + return nodeAllocatableResourceMappings; + } + + public void setNodeAllocatableResourceMappings(@jakarta.annotation.Nullable Map nodeAllocatableResourceMappings) { + this.nodeAllocatableResourceMappings = nodeAllocatableResourceMappings; + } + + public V1beta1BasicDevice nodeName(@jakarta.annotation.Nullable String nodeName) { this.nodeName = nodeName; return this; @@ -373,11 +407,11 @@ public V1beta1BasicDevice addTaintsItem(V1beta1DeviceTaint taintsItem) { } /** - * If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is a beta field and requires enabling the DRADeviceTaints feature gate. * @return taints */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + @ApiModelProperty(value = "If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is a beta field and requires enabling the DRADeviceTaints feature gate.") public List getTaints() { return taints; } @@ -405,6 +439,7 @@ public boolean equals(Object o) { Objects.equals(this.bindsToNode, v1beta1BasicDevice.bindsToNode) && Objects.equals(this.capacity, v1beta1BasicDevice.capacity) && Objects.equals(this.consumesCounters, v1beta1BasicDevice.consumesCounters) && + Objects.equals(this.nodeAllocatableResourceMappings, v1beta1BasicDevice.nodeAllocatableResourceMappings) && Objects.equals(this.nodeName, v1beta1BasicDevice.nodeName) && Objects.equals(this.nodeSelector, v1beta1BasicDevice.nodeSelector) && Objects.equals(this.taints, v1beta1BasicDevice.taints); @@ -412,7 +447,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, nodeName, nodeSelector, taints); + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, nodeAllocatableResourceMappings, nodeName, nodeSelector, taints); } @Override @@ -427,6 +462,7 @@ public String toString() { sb.append(" bindsToNode: ").append(toIndentedString(bindsToNode)).append("\n"); sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); sb.append(" consumesCounters: ").append(toIndentedString(consumesCounters)).append("\n"); + sb.append(" nodeAllocatableResourceMappings: ").append(toIndentedString(nodeAllocatableResourceMappings)).append("\n"); sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); sb.append(" taints: ").append(toIndentedString(taints)).append("\n"); @@ -451,7 +487,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "nodeName", "nodeSelector", "taints")); + openapiFields = new HashSet(Arrays.asList("allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "nodeAllocatableResourceMappings", "nodeName", "nodeSelector", "taints")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java index c406ca2167..c6d098fd5d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CELDeviceSelector.java @@ -50,7 +50,7 @@ * CELDeviceSelector contains a CEL expression for selecting a device. */ @ApiModel(description = "CELDeviceSelector contains a CEL expression for selecting a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1CELDeviceSelector { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -66,11 +66,11 @@ public V1beta1CELDeviceSelector expression(@jakarta.annotation.Nonnull String ex } /** - * Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. + * Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. * @return expression */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.") + @ApiModelProperty(required = true, value = "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.") public String getExpression() { return expression; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java index 532f357cb0..43c442fb10 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicy.java @@ -54,7 +54,7 @@ * CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. */ @ApiModel(description = "CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1CapacityRequestPolicy { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java index cff67d2b13..78f989bf39 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequestPolicyRange.java @@ -51,7 +51,7 @@ * CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. */ @ApiModel(description = "CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1CapacityRequestPolicyRange { public static final String SERIALIZED_NAME_MAX = "max"; @SerializedName(SERIALIZED_NAME_MAX) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java index 1313386c83..b8f578892e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CapacityRequirements.java @@ -53,7 +53,7 @@ * CapacityRequirements defines the capacity requirements for a specific device request. */ @ApiModel(description = "CapacityRequirements defines the capacity requirements for a specific device request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1CapacityRequirements { public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java index e4daccc46b..e2fc381d1b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundle.java @@ -52,7 +52,7 @@ * ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle. */ @ApiModel(description = "ClusterTrustBundle is a cluster-scoped container for X.509 trust anchors (root certificates). ClusterTrustBundle objects are considered to be readable by any authenticated user in the cluster, because they can be mounted by pods using the `clusterTrustBundle` projection. All service accounts have read access to ClusterTrustBundles by default. Users who only have namespace-level access to a cluster can read ClusterTrustBundles by impersonating a serviceaccount that they have access to. It can be optionally associated with a particular assigner, in which case it contains one valid set of trust anchors for that signer. Signers may have multiple associated ClusterTrustBundles; each is an independent set of trust anchors for that signer. Admission control is used to enforce that only users with permissions on the signer can create or modify the corresponding bundle.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ClusterTrustBundle implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java index f89d7508c1..1bfdc7c7df 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleList.java @@ -54,7 +54,7 @@ * ClusterTrustBundleList is a collection of ClusterTrustBundle objects */ @ApiModel(description = "ClusterTrustBundleList is a collection of ClusterTrustBundle objects") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ClusterTrustBundleList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java index b2f38517f6..0b05c1351e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ClusterTrustBundleSpec.java @@ -50,7 +50,7 @@ * ClusterTrustBundleSpec contains the signer and trust anchors. */ @ApiModel(description = "ClusterTrustBundleSpec contains the signer and trust anchors.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ClusterTrustBundleSpec { public static final String SERIALIZED_NAME_SIGNER_NAME = "signerName"; @SerializedName(SERIALIZED_NAME_SIGNER_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java index 2da603133c..3190a1c0ae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Counter.java @@ -51,7 +51,7 @@ * Counter describes a quantity associated with a device. */ @ApiModel(description = "Counter describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1Counter { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java index 9f8efda5f6..8dadf44084 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1CounterSet.java @@ -53,7 +53,7 @@ * CounterSet defines a named set of counters that are available to be used by devices defined in the ResourcePool. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. */ @ApiModel(description = "CounterSet defines a named set of counters that are available to be used by devices defined in the ResourcePool. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1CounterSet { public static final String SERIALIZED_NAME_COUNTERS = "counters"; @SerializedName(SERIALIZED_NAME_COUNTERS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java index ac7d1158d0..5305a23a3b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Device.java @@ -51,7 +51,7 @@ * Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. */ @ApiModel(description = "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1Device { public static final String SERIALIZED_NAME_BASIC = "basic"; @SerializedName(SERIALIZED_NAME_BASIC) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java index 5cb53df89c..0f66d2a70b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationConfiguration.java @@ -53,7 +53,7 @@ * DeviceAllocationConfiguration gets embedded in an AllocationResult. */ @ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceAllocationConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java index 4e7b7604db..f96dffc32a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAllocationResult.java @@ -54,7 +54,7 @@ * DeviceAllocationResult is the result of allocating devices. */ @ApiModel(description = "DeviceAllocationResult is the result of allocating devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceAllocationResult { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java index 501033d3c9..c1fc983e16 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceAttribute.java @@ -21,7 +21,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; +import java.util.List; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -50,28 +52,48 @@ * DeviceAttribute must have exactly one field set. */ @ApiModel(description = "DeviceAttribute must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceAttribute { public static final String SERIALIZED_NAME_BOOL = "bool"; @SerializedName(SERIALIZED_NAME_BOOL) @jakarta.annotation.Nullable private Boolean bool; + public static final String SERIALIZED_NAME_BOOLS = "bools"; + @SerializedName(SERIALIZED_NAME_BOOLS) + @jakarta.annotation.Nullable + private List bools = new ArrayList<>(); + public static final String SERIALIZED_NAME_INT = "int"; @SerializedName(SERIALIZED_NAME_INT) @jakarta.annotation.Nullable private Long _int; + public static final String SERIALIZED_NAME_INTS = "ints"; + @SerializedName(SERIALIZED_NAME_INTS) + @jakarta.annotation.Nullable + private List ints = new ArrayList<>(); + public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) @jakarta.annotation.Nullable private String string; + public static final String SERIALIZED_NAME_STRINGS = "strings"; + @SerializedName(SERIALIZED_NAME_STRINGS) + @jakarta.annotation.Nullable + private List strings = new ArrayList<>(); + public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) @jakarta.annotation.Nullable private String version; + public static final String SERIALIZED_NAME_VERSIONS = "versions"; + @SerializedName(SERIALIZED_NAME_VERSIONS) + @jakarta.annotation.Nullable + private List versions = new ArrayList<>(); + public V1beta1DeviceAttribute() { } @@ -95,6 +117,34 @@ public void setBool(@jakarta.annotation.Nullable Boolean bool) { } + public V1beta1DeviceAttribute bools(@jakarta.annotation.Nullable List bools) { + this.bools = bools; + return this; + } + + public V1beta1DeviceAttribute addBoolsItem(Boolean boolsItem) { + if (this.bools == null) { + this.bools = new ArrayList<>(); + } + this.bools.add(boolsItem); + return this; + } + + /** + * BoolValues is a non-empty list of true/false values. + * @return bools + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "BoolValues is a non-empty list of true/false values.") + public List getBools() { + return bools; + } + + public void setBools(@jakarta.annotation.Nullable List bools) { + this.bools = bools; + } + + public V1beta1DeviceAttribute _int(@jakarta.annotation.Nullable Long _int) { this._int = _int; return this; @@ -115,6 +165,34 @@ public void setInt(@jakarta.annotation.Nullable Long _int) { } + public V1beta1DeviceAttribute ints(@jakarta.annotation.Nullable List ints) { + this.ints = ints; + return this; + } + + public V1beta1DeviceAttribute addIntsItem(Long intsItem) { + if (this.ints == null) { + this.ints = new ArrayList<>(); + } + this.ints.add(intsItem); + return this; + } + + /** + * IntValues is a non-empty list of numbers. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + * @return ints + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "IntValues is a non-empty list of numbers. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.") + public List getInts() { + return ints; + } + + public void setInts(@jakarta.annotation.Nullable List ints) { + this.ints = ints; + } + + public V1beta1DeviceAttribute string(@jakarta.annotation.Nullable String string) { this.string = string; return this; @@ -135,6 +213,34 @@ public void setString(@jakarta.annotation.Nullable String string) { } + public V1beta1DeviceAttribute strings(@jakarta.annotation.Nullable List strings) { + this.strings = strings; + return this; + } + + public V1beta1DeviceAttribute addStringsItem(String stringsItem) { + if (this.strings == null) { + this.strings = new ArrayList<>(); + } + this.strings.add(stringsItem); + return this; + } + + /** + * StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + * @return strings + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.") + public List getStrings() { + return strings; + } + + public void setStrings(@jakarta.annotation.Nullable List strings) { + this.strings = strings; + } + + public V1beta1DeviceAttribute version(@jakarta.annotation.Nullable String version) { this.version = version; return this; @@ -155,6 +261,34 @@ public void setVersion(@jakarta.annotation.Nullable String version) { } + public V1beta1DeviceAttribute versions(@jakarta.annotation.Nullable List versions) { + this.versions = versions; + return this; + } + + public V1beta1DeviceAttribute addVersionsItem(String versionsItem) { + if (this.versions == null) { + this.versions = new ArrayList<>(); + } + this.versions.add(versionsItem); + return this; + } + + /** + * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + * @return versions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.") + public List getVersions() { + return versions; + } + + public void setVersions(@jakarta.annotation.Nullable List versions) { + this.versions = versions; + } + + @Override public boolean equals(Object o) { @@ -166,14 +300,18 @@ public boolean equals(Object o) { } V1beta1DeviceAttribute v1beta1DeviceAttribute = (V1beta1DeviceAttribute) o; return Objects.equals(this.bool, v1beta1DeviceAttribute.bool) && + Objects.equals(this.bools, v1beta1DeviceAttribute.bools) && Objects.equals(this._int, v1beta1DeviceAttribute._int) && + Objects.equals(this.ints, v1beta1DeviceAttribute.ints) && Objects.equals(this.string, v1beta1DeviceAttribute.string) && - Objects.equals(this.version, v1beta1DeviceAttribute.version); + Objects.equals(this.strings, v1beta1DeviceAttribute.strings) && + Objects.equals(this.version, v1beta1DeviceAttribute.version) && + Objects.equals(this.versions, v1beta1DeviceAttribute.versions); } @Override public int hashCode() { - return Objects.hash(bool, _int, string, version); + return Objects.hash(bool, bools, _int, ints, string, strings, version, versions); } @Override @@ -181,9 +319,13 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1DeviceAttribute {\n"); sb.append(" bool: ").append(toIndentedString(bool)).append("\n"); + sb.append(" bools: ").append(toIndentedString(bools)).append("\n"); sb.append(" _int: ").append(toIndentedString(_int)).append("\n"); + sb.append(" ints: ").append(toIndentedString(ints)).append("\n"); sb.append(" string: ").append(toIndentedString(string)).append("\n"); + sb.append(" strings: ").append(toIndentedString(strings)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" versions: ").append(toIndentedString(versions)).append("\n"); sb.append("}"); return sb.toString(); } @@ -205,7 +347,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("bool", "int", "string", "version")); + openapiFields = new HashSet(Arrays.asList("bool", "bools", "int", "ints", "string", "strings", "version", "versions")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -232,12 +374,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("bools") != null && !jsonObj.get("bools").isJsonNull() && !jsonObj.get("bools").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `bools` to be an array in the JSON string but got `%s`", jsonObj.get("bools").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("ints") != null && !jsonObj.get("ints").isJsonNull() && !jsonObj.get("ints").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `ints` to be an array in the JSON string but got `%s`", jsonObj.get("ints").toString())); + } if ((jsonObj.get("string") != null && !jsonObj.get("string").isJsonNull()) && !jsonObj.get("string").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `string` to be a primitive type in the JSON string but got `%s`", jsonObj.get("string").toString())); } + // ensure the optional json data is an array if present + if (jsonObj.get("strings") != null && !jsonObj.get("strings").isJsonNull() && !jsonObj.get("strings").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `strings` to be an array in the JSON string but got `%s`", jsonObj.get("strings").toString())); + } if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } + // ensure the optional json data is an array if present + if (jsonObj.get("versions") != null && !jsonObj.get("versions").isJsonNull() && !jsonObj.get("versions").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `versions` to be an array in the JSON string but got `%s`", jsonObj.get("versions").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java index 35f990461b..ae693f1c4e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCapacity.java @@ -52,7 +52,7 @@ * DeviceCapacity describes a quantity associated with a device. */ @ApiModel(description = "DeviceCapacity describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceCapacity { public static final String SERIALIZED_NAME_REQUEST_POLICY = "requestPolicy"; @SerializedName(SERIALIZED_NAME_REQUEST_POLICY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java index 7fc27b66c9..812f53900f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaim.java @@ -55,7 +55,7 @@ * DeviceClaim defines how to request devices with a ResourceClaim. */ @ApiModel(description = "DeviceClaim defines how to request devices with a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceClaim { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java index 9624b54cfc..d88068884a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClaimConfiguration.java @@ -53,7 +53,7 @@ * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. */ @ApiModel(description = "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceClaimConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java index 941d721028..129e37230e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClass.java @@ -52,7 +52,7 @@ * DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java index 7e8a8fcf15..246b53cd0b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassConfiguration.java @@ -51,7 +51,7 @@ * DeviceClassConfiguration is used in DeviceClass. */ @ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceClassConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java index 43312978e9..8630e627ac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassList.java @@ -54,7 +54,7 @@ * DeviceClassList is a collection of classes. */ @ApiModel(description = "DeviceClassList is a collection of classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java index e6ff7df273..26676b7b28 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceClassSpec.java @@ -54,7 +54,7 @@ * DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. */ @ApiModel(description = "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -108,11 +108,11 @@ public V1beta1DeviceClassSpec extendedResourceName(@jakarta.annotation.Nullable } /** - * ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. + * ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field. * @return extendedResourceName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field.") + @ApiModelProperty(value = "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field.") public String getExtendedResourceName() { return extendedResourceName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java index 08f22565f6..0c4da6edcf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceConstraint.java @@ -52,7 +52,7 @@ * DeviceConstraint must have exactly one field set besides Requests. */ @ApiModel(description = "DeviceConstraint must have exactly one field set besides Requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceConstraint { public static final String SERIALIZED_NAME_DISTINCT_ATTRIBUTE = "distinctAttribute"; @SerializedName(SERIALIZED_NAME_DISTINCT_ATTRIBUTE) @@ -78,11 +78,11 @@ public V1beta1DeviceConstraint distinctAttribute(@jakarta.annotation.Nullable St } /** - * DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. + * DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. * @return distinctAttribute */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs.") + @ApiModelProperty(value = "DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs.") public String getDistinctAttribute() { return distinctAttribute; } @@ -98,11 +98,11 @@ public V1beta1DeviceConstraint matchAttribute(@jakarta.annotation.Nullable Strin } /** - * MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. + * MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as singleton sets for backward compatibility. Must include the domain qualifier. * @return matchAttribute */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier.") + @ApiModelProperty(value = "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as singleton sets for backward compatibility. Must include the domain qualifier.") public String getMatchAttribute() { return matchAttribute; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java index ef2df693d2..a15f165a72 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceCounterConsumption.java @@ -53,7 +53,7 @@ * DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. */ @ApiModel(description = "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceCounterConsumption { public static final String SERIALIZED_NAME_COUNTER_SET = "counterSet"; @SerializedName(SERIALIZED_NAME_COUNTER_SET) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java index f5cd072a18..93c6800953 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequest.java @@ -56,7 +56,7 @@ * DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. */ @ApiModel(description = "DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -296,11 +296,11 @@ public V1beta1DeviceRequest addTolerationsItem(V1beta1DeviceToleration toleratio } /** - * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is a beta field and requires enabling the DRADeviceTaints feature gate. * @return tolerations */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is a beta field and requires enabling the DRADeviceTaints feature gate.") public List getTolerations() { return tolerations; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java index a26722ab58..40a9a6cd29 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceRequestAllocationResult.java @@ -56,7 +56,7 @@ * DeviceRequestAllocationResult contains the allocation result for one request. */ @ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -145,11 +145,11 @@ public V1beta1DeviceRequestAllocationResult addBindingConditionsItem(String bind } /** - * BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. * @return bindingConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + @ApiModelProperty(value = "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") public List getBindingConditions() { return bindingConditions; } @@ -173,11 +173,11 @@ public V1beta1DeviceRequestAllocationResult addBindingFailureConditionsItem(Stri } /** - * BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. * @return bindingFailureConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + @ApiModelProperty(value = "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") public List getBindingFailureConditions() { return bindingFailureConditions; } @@ -329,11 +329,11 @@ public V1beta1DeviceRequestAllocationResult addTolerationsItem(V1beta1DeviceTole } /** - * A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. * @return tolerations */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + @ApiModelProperty(value = "A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate.") public List getTolerations() { return tolerations; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java index 850f69f48e..cd27af287a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSelector.java @@ -51,7 +51,7 @@ * DeviceSelector must have exactly one field set. */ @ApiModel(description = "DeviceSelector must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceSelector { public static final String SERIALIZED_NAME_CEL = "cel"; @SerializedName(SERIALIZED_NAME_CEL) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java index f7c56bc3c3..eef930a55e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceSubRequest.java @@ -55,7 +55,7 @@ * DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported. */ @ApiModel(description = "DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to Request, but doesn't expose the AdminAccess or FirstAvailable fields, as those can only be set on the top-level request. AdminAccess is not supported for requests with a prioritized list, and recursive FirstAvailable fields are not supported.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceSubRequest { public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) @@ -237,11 +237,11 @@ public V1beta1DeviceSubRequest addTolerationsItem(V1beta1DeviceToleration tolera } /** - * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. * @return tolerations */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate.") public List getTolerations() { return tolerations; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java index d68c3ed3ec..5fbe17f5ff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceTaint.java @@ -51,7 +51,7 @@ * The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. */ @ApiModel(description = "The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceTaint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -122,11 +122,11 @@ public V1beta1DeviceTaint timeAdded(@jakarta.annotation.Nullable OffsetDateTime } /** - * TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. + * TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). * @return timeAdded */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.") + @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule).") public OffsetDateTime getTimeAdded() { return timeAdded; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java index bc0fc1bbd2..4b6e5b747f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1DeviceToleration.java @@ -50,7 +50,7 @@ * The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. */ @ApiModel(description = "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1DeviceToleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java index 58d3da5619..a8de0b4576 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddress.java @@ -52,7 +52,7 @@ * IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1 */ @ApiModel(description = "IPAddress represents a single IP of a single IP Family. The object is designed to be used by APIs that operate on IP addresses. The object is used by the Service core API for allocation of IP addresses. An IP address can be represented in different formats, to guarantee the uniqueness of the IP, the name of the object is the IP address in canonical format, four decimal digits separated by dots suppressing leading zeros for IPv4 and the representation defined by RFC 5952 for IPv6. Valid: 192.168.1.5 or 2001:db8::1 or 2001:db8:aaaa:bbbb:cccc:dddd:eeee:1 Invalid: 10.01.2.3 or 2001:db8:0:0:0::1") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1IPAddress implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,7 +71,7 @@ public class V1beta1IPAddress implements io.kubernetes.client.common.KubernetesO public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V1beta1IPAddressSpec spec; public V1beta1IPAddress() { @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1beta1IPAddress spec(@jakarta.annotation.Nullable V1beta1IPAddressSpec spec) { + public V1beta1IPAddress spec(@jakarta.annotation.Nonnull V1beta1IPAddressSpec spec) { this.spec = spec; return this; } @@ -146,13 +146,13 @@ public V1beta1IPAddress spec(@jakarta.annotation.Nullable V1beta1IPAddressSpec s * Get spec * @return spec */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1beta1IPAddressSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1beta1IPAddressSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1beta1IPAddressSpec spec) { this.spec = spec; } @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -233,6 +233,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1IPAddress` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1IPAddress.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -244,10 +251,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the optional field `spec` - if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { - V1beta1IPAddressSpec.validateJsonElement(jsonObj.get("spec")); - } + // validate the required field `spec` + V1beta1IPAddressSpec.validateJsonElement(jsonObj.get("spec")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java index bd196981d9..cc4621a294 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressList.java @@ -54,7 +54,7 @@ * IPAddressList contains a list of IPAddress. */ @ApiModel(description = "IPAddressList contains a list of IPAddress.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1IPAddressList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java index 626731fa19..01db6c5d4f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1IPAddressSpec.java @@ -51,7 +51,7 @@ * IPAddressSpec describe the attributes in an IP Address. */ @ApiModel(description = "IPAddressSpec describe the attributes in an IP Address.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1IPAddressSpec { public static final String SERIALIZED_NAME_PARENT_REF = "parentRef"; @SerializedName(SERIALIZED_NAME_PARENT_REF) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java index e328f0a525..e3b44893ac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1JSONPatch.java @@ -50,7 +50,7 @@ * JSONPatch defines a JSON Patch. */ @ApiModel(description = "JSONPatch defines a JSON Patch.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1JSONPatch { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java index 89e0c51326..db4dffd628 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidate.java @@ -52,7 +52,7 @@ * LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates. */ @ApiModel(description = "LeaseCandidate defines a candidate for a Lease object. Candidates are created such that coordinated leader election will pick the best leader from the list of candidates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1LeaseCandidate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,7 +71,7 @@ public class V1beta1LeaseCandidate implements io.kubernetes.client.common.Kubern public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V1beta1LeaseCandidateSpec spec; public V1beta1LeaseCandidate() { @@ -137,7 +137,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V1beta1LeaseCandidate spec(@jakarta.annotation.Nullable V1beta1LeaseCandidateSpec spec) { + public V1beta1LeaseCandidate spec(@jakarta.annotation.Nonnull V1beta1LeaseCandidateSpec spec) { this.spec = spec; return this; } @@ -146,13 +146,13 @@ public V1beta1LeaseCandidate spec(@jakarta.annotation.Nullable V1beta1LeaseCandi * Get spec * @return spec */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V1beta1LeaseCandidateSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V1beta1LeaseCandidateSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V1beta1LeaseCandidateSpec spec) { this.spec = spec; } @@ -210,7 +210,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -233,6 +233,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1LeaseCandidate` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta1LeaseCandidate.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -244,10 +251,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the optional field `spec` - if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { - V1beta1LeaseCandidateSpec.validateJsonElement(jsonObj.get("spec")); - } + // validate the required field `spec` + V1beta1LeaseCandidateSpec.validateJsonElement(jsonObj.get("spec")); } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java index bfff046f3b..509a980cd5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateList.java @@ -54,7 +54,7 @@ * LeaseCandidateList is a list of Lease objects. */ @ApiModel(description = "LeaseCandidateList is a list of Lease objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1LeaseCandidateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java index 500305dd33..ba50807678 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1LeaseCandidateSpec.java @@ -51,7 +51,7 @@ * LeaseCandidateSpec is a specification of a Lease. */ @ApiModel(description = "LeaseCandidateSpec is a specification of a Lease.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1LeaseCandidateSpec { public static final String SERIALIZED_NAME_BINARY_VERSION = "binaryVersion"; @SerializedName(SERIALIZED_NAME_BINARY_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java index b9950eb59d..71bb08494b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchCondition.java @@ -50,7 +50,7 @@ * MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook. */ @ApiModel(description = "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MatchCondition { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -71,11 +71,11 @@ public V1beta1MatchCondition expression(@jakarta.annotation.Nonnull String expre } /** - * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. + * expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required. * @return expression */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required.") + @ApiModelProperty(required = true, value = "expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables: 'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/ Required.") public String getExpression() { return expression; } @@ -91,11 +91,11 @@ public V1beta1MatchCondition name(@jakarta.annotation.Nonnull String name) { } /** - * Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. + * name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required. * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required.") + @ApiModelProperty(required = true, value = "name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName') Required.") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java index 7f7fde898a..bb5c509262 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MatchResources.java @@ -54,7 +54,7 @@ * MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) */ @ApiModel(description = "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MatchResources { public static final String SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES = "excludeResourceRules"; @SerializedName(SERIALIZED_NAME_EXCLUDE_RESOURCE_RULES) @@ -98,11 +98,11 @@ public V1beta1MatchResources addExcludeResourceRulesItem(V1beta1NamedRuleWithOpe } /** - * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) + * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded) * @return excludeResourceRules */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") + @ApiModelProperty(value = "excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)") public List getExcludeResourceRules() { return excludeResourceRules; } @@ -186,11 +186,11 @@ public V1beta1MatchResources addResourceRulesItem(V1beta1NamedRuleWithOperations } /** - * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. + * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule. * @return resourceRules */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.") + @ApiModelProperty(value = "resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.") public List getResourceRules() { return resourceRules; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java index 355cc59ab9..112bb24a88 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicy.java @@ -52,7 +52,7 @@ * MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain. */ @ApiModel(description = "MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MutatingAdmissionPolicy implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java index 9127fd21bb..f8953b935b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBinding.java @@ -52,7 +52,7 @@ * MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget. */ @ApiModel(description = "MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters. For a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget). Adding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MutatingAdmissionPolicyBinding implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java index 718d49b4cd..8f0140e9eb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingList.java @@ -54,7 +54,7 @@ * MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MutatingAdmissionPolicyBindingList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java index 22622b3d6b..22ed193d0f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyBindingSpec.java @@ -52,7 +52,7 @@ * MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding. */ @ApiModel(description = "MutatingAdmissionPolicyBindingSpec is the specification of the MutatingAdmissionPolicyBinding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MutatingAdmissionPolicyBindingSpec { public static final String SERIALIZED_NAME_MATCH_RESOURCES = "matchResources"; @SerializedName(SERIALIZED_NAME_MATCH_RESOURCES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java index e7470277d6..be1ae8aa58 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicyList.java @@ -54,7 +54,7 @@ * MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy. */ @ApiModel(description = "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MutatingAdmissionPolicyList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java index 4494b868e1..64580db5d7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1MutatingAdmissionPolicySpec.java @@ -57,7 +57,7 @@ * MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy. */ @ApiModel(description = "MutatingAdmissionPolicySpec is the specification of the desired behavior of the admission policy.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1MutatingAdmissionPolicySpec { public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java index 2cd5a1832b..92a8411c8f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Mutation.java @@ -52,7 +52,7 @@ * Mutation specifies the CEL expression which is used to apply the Mutation. */ @ApiModel(description = "Mutation specifies the CEL expression which is used to apply the Mutation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1Mutation { public static final String SERIALIZED_NAME_APPLY_CONFIGURATION = "applyConfiguration"; @SerializedName(SERIALIZED_NAME_APPLY_CONFIGURATION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java index e834e28b3c..64c9b4e6d0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NamedRuleWithOperations.java @@ -52,7 +52,7 @@ * NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames. */ @ApiModel(description = "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1NamedRuleWithOperations { public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; @SerializedName(SERIALIZED_NAME_API_GROUPS) @@ -101,11 +101,11 @@ public V1beta1NamedRuleWithOperations addApiGroupsItem(String apiGroupsItem) { } /** - * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. + * apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. * @return apiGroups */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") + @ApiModelProperty(value = "apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") public List getApiGroups() { return apiGroups; } @@ -129,11 +129,11 @@ public V1beta1NamedRuleWithOperations addApiVersionsItem(String apiVersionsItem) } /** - * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. + * apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. * @return apiVersions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") + @ApiModelProperty(value = "apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") public List getApiVersions() { return apiVersions; } @@ -157,11 +157,11 @@ public V1beta1NamedRuleWithOperations addOperationsItem(String operationsItem) { } /** - * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. + * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required. * @return operations */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") + @ApiModelProperty(value = "operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.") public List getOperations() { return operations; } @@ -185,11 +185,11 @@ public V1beta1NamedRuleWithOperations addResourceNamesItem(String resourceNamesI } /** - * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. + * resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. * @return resourceNames */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") + @ApiModelProperty(value = "resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") public List getResourceNames() { return resourceNames; } @@ -213,11 +213,11 @@ public V1beta1NamedRuleWithOperations addResourcesItem(String resourcesItem) { } /** - * Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. + * resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. * @return resources */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") + @ApiModelProperty(value = "resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") public List getResources() { return resources; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java index e0884ec54d..1ccb218978 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NetworkDeviceData.java @@ -52,7 +52,7 @@ * NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context. */ @ApiModel(description = "NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1NetworkDeviceData { public static final String SERIALIZED_NAME_HARDWARE_ADDRESS = "hardwareAddress"; @SerializedName(SERIALIZED_NAME_HARDWARE_ADDRESS) @@ -78,11 +78,11 @@ public V1beta1NetworkDeviceData hardwareAddress(@jakarta.annotation.Nullable Str } /** - * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. + * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 bytes. * @return hardwareAddress */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters.") + @ApiModelProperty(value = "HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 bytes.") public String getHardwareAddress() { return hardwareAddress; } @@ -98,11 +98,11 @@ public V1beta1NetworkDeviceData interfaceName(@jakarta.annotation.Nullable Strin } /** - * InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. + * InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 bytes. * @return interfaceName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters.") + @ApiModelProperty(value = "InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 bytes.") public String getInterfaceName() { return interfaceName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMapping.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMapping.java new file mode 100644 index 0000000000..6a2c505100 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1NodeAllocatableResourceMapping.java @@ -0,0 +1,238 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. + */ +@ApiModel(description = "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta1NodeAllocatableResourceMapping { + public static final String SERIALIZED_NAME_ALLOCATION_MULTIPLIER = "allocationMultiplier"; + @SerializedName(SERIALIZED_NAME_ALLOCATION_MULTIPLIER) + @jakarta.annotation.Nullable + private Quantity allocationMultiplier; + + public static final String SERIALIZED_NAME_CAPACITY_KEY = "capacityKey"; + @SerializedName(SERIALIZED_NAME_CAPACITY_KEY) + @jakarta.annotation.Nullable + private String capacityKey; + + public V1beta1NodeAllocatableResourceMapping() { + } + + public V1beta1NodeAllocatableResourceMapping allocationMultiplier(@jakarta.annotation.Nullable Quantity allocationMultiplier) { + this.allocationMultiplier = allocationMultiplier; + return this; + } + + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @return allocationMultiplier + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + public Quantity getAllocationMultiplier() { + return allocationMultiplier; + } + + public void setAllocationMultiplier(@jakarta.annotation.Nullable Quantity allocationMultiplier) { + this.allocationMultiplier = allocationMultiplier; + } + + + public V1beta1NodeAllocatableResourceMapping capacityKey(@jakarta.annotation.Nullable String capacityKey) { + this.capacityKey = capacityKey; + return this; + } + + /** + * CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\". + * @return capacityKey + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\".") + public String getCapacityKey() { + return capacityKey; + } + + public void setCapacityKey(@jakarta.annotation.Nullable String capacityKey) { + this.capacityKey = capacityKey; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta1NodeAllocatableResourceMapping v1beta1NodeAllocatableResourceMapping = (V1beta1NodeAllocatableResourceMapping) o; + return Objects.equals(this.allocationMultiplier, v1beta1NodeAllocatableResourceMapping.allocationMultiplier) && + Objects.equals(this.capacityKey, v1beta1NodeAllocatableResourceMapping.capacityKey); + } + + @Override + public int hashCode() { + return Objects.hash(allocationMultiplier, capacityKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1NodeAllocatableResourceMapping {\n"); + sb.append(" allocationMultiplier: ").append(toIndentedString(allocationMultiplier)).append("\n"); + sb.append(" capacityKey: ").append(toIndentedString(capacityKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("allocationMultiplier", "capacityKey")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta1NodeAllocatableResourceMapping + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta1NodeAllocatableResourceMapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta1NodeAllocatableResourceMapping is not found in the empty JSON string", V1beta1NodeAllocatableResourceMapping.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta1NodeAllocatableResourceMapping.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta1NodeAllocatableResourceMapping` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("allocationMultiplier") != null && !jsonObj.get("allocationMultiplier").isJsonNull()) && !jsonObj.get("allocationMultiplier").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `allocationMultiplier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMultiplier").toString())); + } + if ((jsonObj.get("capacityKey") != null && !jsonObj.get("capacityKey").isJsonNull()) && !jsonObj.get("capacityKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `capacityKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("capacityKey").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta1NodeAllocatableResourceMapping.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta1NodeAllocatableResourceMapping' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta1NodeAllocatableResourceMapping.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta1NodeAllocatableResourceMapping value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta1NodeAllocatableResourceMapping read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta1NodeAllocatableResourceMapping given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta1NodeAllocatableResourceMapping + * @throws IOException if the JSON string is invalid with respect to V1beta1NodeAllocatableResourceMapping + */ + public static V1beta1NodeAllocatableResourceMapping fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta1NodeAllocatableResourceMapping.class); + } + + /** + * Convert an instance of V1beta1NodeAllocatableResourceMapping to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java index c5cbf5f08b..7d04be6f59 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1OpaqueDeviceConfiguration.java @@ -50,7 +50,7 @@ * OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. */ @ApiModel(description = "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1OpaqueDeviceConfiguration { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java index 056c6fb5a0..753706f7c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamKind.java @@ -50,7 +50,7 @@ * ParamKind is a tuple of Group Kind and Version. */ @ApiModel(description = "ParamKind is a tuple of Group Kind and Version.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ParamKind { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -71,11 +71,11 @@ public V1beta1ParamKind apiVersion(@jakarta.annotation.Nullable String apiVersio } /** - * APIVersion is the API group version the resources belong to. In format of \"group/version\". Required. + * apiVersion is the API group version the resources belong to. In format of \"group/version\". Required. * @return apiVersion */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.") + @ApiModelProperty(value = "apiVersion is the API group version the resources belong to. In format of \"group/version\". Required.") public String getApiVersion() { return apiVersion; } @@ -91,11 +91,11 @@ public V1beta1ParamKind kind(@jakarta.annotation.Nullable String kind) { } /** - * Kind is the API kind the resources belong to. Required. + * kind is the API kind the resources belong to. Required. * @return kind */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "Kind is the API kind the resources belong to. Required.") + @ApiModelProperty(value = "kind is the API kind the resources belong to. Required.") public String getKind() { return kind; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java index ed973dab96..1ab59285b9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParamRef.java @@ -51,7 +51,7 @@ * ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding. */ @ApiModel(description = "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ParamRef { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -122,11 +122,11 @@ public V1beta1ParamRef parameterNotFoundAction(@jakarta.annotation.Nullable Stri } /** - * `parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required + * parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required * @return parameterNotFoundAction */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required") + @ApiModelProperty(value = "parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy. Allowed values are `Allow` or `Deny` Required") public String getParameterNotFoundAction() { return parameterNotFoundAction; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java index efdacb1865..47caeaae2f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ParentReference.java @@ -50,7 +50,7 @@ * ParentReference describes a reference to a parent object. */ @ApiModel(description = "ParentReference describes a reference to a parent object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ParentReference { public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequest.java index 001b6ca237..776897a82c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequest.java @@ -53,7 +53,7 @@ * PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes */ @ApiModel(description = "PodCertificateRequest encodes a pod requesting a certificate from a given signer. Kubelets use this API to implement podCertificate projected volumes") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1PodCertificateRequest implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestList.java index 55088f57d9..662ab29c74 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestList.java @@ -54,7 +54,7 @@ * PodCertificateRequestList is a collection of PodCertificateRequest objects */ @ApiModel(description = "PodCertificateRequestList is a collection of PodCertificateRequest objects") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1PodCertificateRequestList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpec.java index c0050f5196..e75861e2a6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestSpec.java @@ -52,7 +52,7 @@ * PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation. */ @ApiModel(description = "PodCertificateRequestSpec describes the certificate request. All fields are immutable after creation.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1PodCertificateRequestSpec { public static final String SERIALIZED_NAME_MAX_EXPIRATION_SECONDS = "maxExpirationSeconds"; @SerializedName(SERIALIZED_NAME_MAX_EXPIRATION_SECONDS) @@ -71,7 +71,7 @@ public class V1beta1PodCertificateRequestSpec { public static final String SERIALIZED_NAME_PKIX_PUBLIC_KEY = "pkixPublicKey"; @SerializedName(SERIALIZED_NAME_PKIX_PUBLIC_KEY) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private byte[] pkixPublicKey; public static final String SERIALIZED_NAME_POD_NAME = "podName"; @@ -86,7 +86,7 @@ public class V1beta1PodCertificateRequestSpec { public static final String SERIALIZED_NAME_PROOF_OF_POSSESSION = "proofOfPossession"; @SerializedName(SERIALIZED_NAME_PROOF_OF_POSSESSION) - @jakarta.annotation.Nonnull + @jakarta.annotation.Nullable private byte[] proofOfPossession; public static final String SERIALIZED_NAME_SERVICE_ACCOUNT_NAME = "serviceAccountName"; @@ -104,6 +104,11 @@ public class V1beta1PodCertificateRequestSpec { @jakarta.annotation.Nonnull private String signerName; + public static final String SERIALIZED_NAME_STUB_P_K_C_S10_REQUEST = "stubPKCS10Request"; + @SerializedName(SERIALIZED_NAME_STUB_P_K_C_S10_REQUEST) + @jakarta.annotation.Nonnull + private byte[] stubPKCS10Request; + public static final String SERIALIZED_NAME_UNVERIFIED_USER_ANNOTATIONS = "unverifiedUserAnnotations"; @SerializedName(SERIALIZED_NAME_UNVERIFIED_USER_ANNOTATIONS) @jakarta.annotation.Nullable @@ -172,22 +177,22 @@ public void setNodeUID(@jakarta.annotation.Nonnull String nodeUID) { } - public V1beta1PodCertificateRequestSpec pkixPublicKey(@jakarta.annotation.Nonnull byte[] pkixPublicKey) { + public V1beta1PodCertificateRequestSpec pkixPublicKey(@jakarta.annotation.Nullable byte[] pkixPublicKey) { this.pkixPublicKey = pkixPublicKey; return this; } /** - * pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to. The key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field. + * The PKIX-serialized public key the signer will issue the certificate to. The key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field. Deprecated: This field is replaced by StubPKCS10Request. If StubPKCS10Request is set, this field must be empty. Signer implementations should extract the public key from the StubPKCS10Request field. * @return pkixPublicKey */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to. The key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field.") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "The PKIX-serialized public key the signer will issue the certificate to. The key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field. Deprecated: This field is replaced by StubPKCS10Request. If StubPKCS10Request is set, this field must be empty. Signer implementations should extract the public key from the StubPKCS10Request field.") public byte[] getPkixPublicKey() { return pkixPublicKey; } - public void setPkixPublicKey(@jakarta.annotation.Nonnull byte[] pkixPublicKey) { + public void setPkixPublicKey(@jakarta.annotation.Nullable byte[] pkixPublicKey) { this.pkixPublicKey = pkixPublicKey; } @@ -232,22 +237,22 @@ public void setPodUID(@jakarta.annotation.Nonnull String podUID) { } - public V1beta1PodCertificateRequestSpec proofOfPossession(@jakarta.annotation.Nonnull byte[] proofOfPossession) { + public V1beta1PodCertificateRequestSpec proofOfPossession(@jakarta.annotation.Nullable byte[] proofOfPossession) { this.proofOfPossession = proofOfPossession; return this; } /** - * proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey. It is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`. kube-apiserver validates the proof of possession during creation of the PodCertificateRequest. If the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options). If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1) If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign). + * A proof that the requesting kubelet holds the private key corresponding to pkixPublicKey. It is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`. kube-apiserver validates the proof of possession during creation of the PodCertificateRequest. If the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options). If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1) If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign). Deprecated: This field is replaced by StubPKCS10Request. If StubPKCS10Request is set, this field must be empty. * @return proofOfPossession */ - @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey. It is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`. kube-apiserver validates the proof of possession during creation of the PodCertificateRequest. If the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options). If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1) If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign).") + @jakarta.annotation.Nullable + @ApiModelProperty(value = "A proof that the requesting kubelet holds the private key corresponding to pkixPublicKey. It is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`. kube-apiserver validates the proof of possession during creation of the PodCertificateRequest. If the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options). If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1) If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign). Deprecated: This field is replaced by StubPKCS10Request. If StubPKCS10Request is set, this field must be empty.") public byte[] getProofOfPossession() { return proofOfPossession; } - public void setProofOfPossession(@jakarta.annotation.Nonnull byte[] proofOfPossession) { + public void setProofOfPossession(@jakarta.annotation.Nullable byte[] proofOfPossession) { this.proofOfPossession = proofOfPossession; } @@ -312,6 +317,26 @@ public void setSignerName(@jakarta.annotation.Nonnull String signerName) { } + public V1beta1PodCertificateRequestSpec stubPKCS10Request(@jakarta.annotation.Nonnull byte[] stubPKCS10Request) { + this.stubPKCS10Request = stubPKCS10Request; + return this; + } + + /** + * A PKCS#10 certificate signing request (DER-serialized) generated by Kubelet using the subject private key. Most signer implementations will ignore the contents of the CSR except to extract the subject public key. The API server automatically verifies the CSR signature during admission, so the signer does not need to repeat the verification. CSRs generated by kubelet are completely empty. The subject public key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field. + * @return stubPKCS10Request + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "A PKCS#10 certificate signing request (DER-serialized) generated by Kubelet using the subject private key. Most signer implementations will ignore the contents of the CSR except to extract the subject public key. The API server automatically verifies the CSR signature during admission, so the signer does not need to repeat the verification. CSRs generated by kubelet are completely empty. The subject public key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field.") + public byte[] getStubPKCS10Request() { + return stubPKCS10Request; + } + + public void setStubPKCS10Request(@jakarta.annotation.Nonnull byte[] stubPKCS10Request) { + this.stubPKCS10Request = stubPKCS10Request; + } + + public V1beta1PodCertificateRequestSpec unverifiedUserAnnotations(@jakarta.annotation.Nullable Map unverifiedUserAnnotations) { this.unverifiedUserAnnotations = unverifiedUserAnnotations; return this; @@ -360,12 +385,13 @@ public boolean equals(Object o) { Objects.equals(this.serviceAccountName, v1beta1PodCertificateRequestSpec.serviceAccountName) && Objects.equals(this.serviceAccountUID, v1beta1PodCertificateRequestSpec.serviceAccountUID) && Objects.equals(this.signerName, v1beta1PodCertificateRequestSpec.signerName) && + Arrays.equals(this.stubPKCS10Request, v1beta1PodCertificateRequestSpec.stubPKCS10Request) && Objects.equals(this.unverifiedUserAnnotations, v1beta1PodCertificateRequestSpec.unverifiedUserAnnotations); } @Override public int hashCode() { - return Objects.hash(maxExpirationSeconds, nodeName, nodeUID, Arrays.hashCode(pkixPublicKey), podName, podUID, Arrays.hashCode(proofOfPossession), serviceAccountName, serviceAccountUID, signerName, unverifiedUserAnnotations); + return Objects.hash(maxExpirationSeconds, nodeName, nodeUID, Arrays.hashCode(pkixPublicKey), podName, podUID, Arrays.hashCode(proofOfPossession), serviceAccountName, serviceAccountUID, signerName, Arrays.hashCode(stubPKCS10Request), unverifiedUserAnnotations); } @Override @@ -382,6 +408,7 @@ public String toString() { sb.append(" serviceAccountName: ").append(toIndentedString(serviceAccountName)).append("\n"); sb.append(" serviceAccountUID: ").append(toIndentedString(serviceAccountUID)).append("\n"); sb.append(" signerName: ").append(toIndentedString(signerName)).append("\n"); + sb.append(" stubPKCS10Request: ").append(toIndentedString(stubPKCS10Request)).append("\n"); sb.append(" unverifiedUserAnnotations: ").append(toIndentedString(unverifiedUserAnnotations)).append("\n"); sb.append("}"); return sb.toString(); @@ -404,10 +431,10 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("maxExpirationSeconds", "nodeName", "nodeUID", "pkixPublicKey", "podName", "podUID", "proofOfPossession", "serviceAccountName", "serviceAccountUID", "signerName", "unverifiedUserAnnotations")); + openapiFields = new HashSet(Arrays.asList("maxExpirationSeconds", "nodeName", "nodeUID", "pkixPublicKey", "podName", "podUID", "proofOfPossession", "serviceAccountName", "serviceAccountUID", "signerName", "stubPKCS10Request", "unverifiedUserAnnotations")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(Arrays.asList("nodeName", "nodeUID", "pkixPublicKey", "podName", "podUID", "proofOfPossession", "serviceAccountName", "serviceAccountUID", "signerName")); + openapiRequiredFields = new HashSet(Arrays.asList("nodeName", "nodeUID", "podName", "podUID", "serviceAccountName", "serviceAccountUID", "signerName", "stubPKCS10Request")); } /** diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatus.java index 571f0dbc07..266c9bf79e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1PodCertificateRequestStatus.java @@ -54,7 +54,7 @@ * PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued. */ @ApiModel(description = "PodCertificateRequestStatus describes the status of the request, and holds the certificate data if the request is issued.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1PodCertificateRequestStatus { public static final String SERIALIZED_NAME_BEGIN_REFRESH_AT = "beginRefreshAt"; @SerializedName(SERIALIZED_NAME_BEGIN_REFRESH_AT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java index 5d5962d9c9..c73d00485f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaim.java @@ -53,7 +53,7 @@ * ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java index 7eb8c7bbe3..20ef5e460e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimConsumerReference.java @@ -50,7 +50,7 @@ * ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim. */ @ApiModel(description = "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaimConsumerReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java index b02fb273b7..b3e523130c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimList.java @@ -54,7 +54,7 @@ * ResourceClaimList is a collection of claims. */ @ApiModel(description = "ResourceClaimList is a collection of claims.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java index 24946ea6e4..c90fc931ff 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimSpec.java @@ -51,7 +51,7 @@ * ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. */ @ApiModel(description = "ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaimSpec { public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java index 6ac9ffdc15..d83ec2ae87 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimStatus.java @@ -55,7 +55,7 @@ * ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. */ @ApiModel(description = "ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaimStatus { public static final String SERIALIZED_NAME_ALLOCATION = "allocation"; @SerializedName(SERIALIZED_NAME_ALLOCATION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java index 6f1d0eb9c7..98252b6f0b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplate.java @@ -52,7 +52,7 @@ * ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaimTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java index 1234e2636f..97b211ee64 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateList.java @@ -54,7 +54,7 @@ * ResourceClaimTemplateList is a collection of claim templates. */ @ApiModel(description = "ResourceClaimTemplateList is a collection of claim templates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaimTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java index 5f49d5ffed..fb4cd6a030 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceClaimTemplateSpec.java @@ -52,7 +52,7 @@ * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. */ @ApiModel(description = "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java index ca13937b90..e76cbfe047 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourcePool.java @@ -50,7 +50,7 @@ * ResourcePool describes the pool that ResourceSlices belong to. */ @ApiModel(description = "ResourcePool describes the pool that ResourceSlices belong to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourcePool { public static final String SERIALIZED_NAME_GENERATION = "generation"; @SerializedName(SERIALIZED_NAME_GENERATION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java index fcbb871218..21239f24bb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSlice.java @@ -52,7 +52,7 @@ * ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>. Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , . Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java index e5046c21bc..0cc6a624de 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceList.java @@ -54,7 +54,7 @@ * ResourceSliceList is a collection of ResourceSlices. */ @ApiModel(description = "ResourceSliceList is a collection of ResourceSlices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java index 05d4dbb58e..1cb2ceefd1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ResourceSliceSpec.java @@ -56,7 +56,7 @@ * ResourceSliceSpec contains the information published by the driver in one ResourceSlice. */ @ApiModel(description = "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ResourceSliceSpec { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java index 160cc2d158..e85e310e80 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDR.java @@ -53,7 +53,7 @@ * ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects. */ @ApiModel(description = "ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64). This range is used to allocate ClusterIPs to Service objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ServiceCIDR implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java index 86f9504388..c9679872d1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRList.java @@ -54,7 +54,7 @@ * ServiceCIDRList contains a list of ServiceCIDR objects. */ @ApiModel(description = "ServiceCIDRList contains a list of ServiceCIDR objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ServiceCIDRList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java index 56c6a22cb4..ba1d80e966 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRSpec.java @@ -52,7 +52,7 @@ * ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services. */ @ApiModel(description = "ServiceCIDRSpec define the CIDRs the user wants to use for allocating ClusterIPs for Services.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ServiceCIDRSpec { public static final String SERIALIZED_NAME_CIDRS = "cidrs"; @SerializedName(SERIALIZED_NAME_CIDRS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java index c514a26df7..cca56fda31 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1ServiceCIDRStatus.java @@ -53,7 +53,7 @@ * ServiceCIDRStatus describes the current state of the ServiceCIDR. */ @ApiModel(description = "ServiceCIDRStatus describes the current state of the ServiceCIDR.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1ServiceCIDRStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigration.java index 3fb8042e7f..f6ba57d1ef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigration.java @@ -53,7 +53,7 @@ * StorageVersionMigration represents a migration of stored data to the latest storage version. */ @ApiModel(description = "StorageVersionMigration represents a migration of stored data to the latest storage version.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1StorageVersionMigration implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationList.java index 1b770f0cc8..dad8b99800 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationList.java @@ -54,7 +54,7 @@ * StorageVersionMigrationList is a collection of storage version migrations. */ @ApiModel(description = "StorageVersionMigrationList is a collection of storage version migrations.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1StorageVersionMigrationList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpec.java index f2996bbb87..909ea97437 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationSpec.java @@ -51,7 +51,7 @@ * Spec of the storage version migration. */ @ApiModel(description = "Spec of the storage version migration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1StorageVersionMigrationSpec { public static final String SERIALIZED_NAME_RESOURCE = "resource"; @SerializedName(SERIALIZED_NAME_RESOURCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatus.java index 0ada1c333f..f1f32fac6e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1StorageVersionMigrationStatus.java @@ -53,7 +53,7 @@ * Status of the storage version migration. */ @ApiModel(description = "Status of the storage version migration.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1StorageVersionMigrationStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java index acbce7b58b..cf8a664939 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1Variable.java @@ -50,7 +50,7 @@ * Variable is the definition of a variable that is used for composition. A variable is defined as a named expression. */ @ApiModel(description = "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1Variable { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -71,11 +71,11 @@ public V1beta1Variable expression(@jakarta.annotation.Nonnull String expression) } /** - * Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. + * expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation. * @return expression */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.") + @ApiModelProperty(required = true, value = "expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.") public String getExpression() { return expression; } @@ -91,11 +91,11 @@ public V1beta1Variable name(@jakarta.annotation.Nonnull String name) { } /** - * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` + * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo` * @return name */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`") + @ApiModelProperty(required = true, value = "name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`") public String getName() { return name; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java index 4161c7baee..a9af35b901 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClass.java @@ -53,7 +53,7 @@ * VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning. */ @ApiModel(description = "VolumeAttributesClass represents a specification of mutable volume attributes defined by the CSI driver. The class can be specified during dynamic provisioning of PersistentVolumeClaims, and changed in the PersistentVolumeClaim spec after provisioning.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1VolumeAttributesClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java index 0fdc1c3a88..bf727ae16c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta1VolumeAttributesClassList.java @@ -54,7 +54,7 @@ * VolumeAttributesClassList is a collection of VolumeAttributesClass objects. */ @ApiModel(description = "VolumeAttributesClassList is a collection of VolumeAttributesClass objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta1VolumeAttributesClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java index a04dbffaed..b4b7fc83fb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocatedDeviceStatus.java @@ -54,7 +54,7 @@ * AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices. */ @ApiModel(description = "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information. The combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2AllocatedDeviceStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java index 4aea7f06d8..3f49b5f59a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2AllocationResult.java @@ -53,7 +53,7 @@ * AllocationResult contains attributes of an allocated resource. */ @ApiModel(description = "AllocationResult contains attributes of an allocated resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2AllocationResult { public static final String SERIALIZED_NAME_ALLOCATION_TIMESTAMP = "allocationTimestamp"; @SerializedName(SERIALIZED_NAME_ALLOCATION_TIMESTAMP) @@ -79,11 +79,11 @@ public V1beta2AllocationResult allocationTimestamp(@jakarta.annotation.Nullable } /** - * AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. + * AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. * @return allocationTimestamp */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.") + @ApiModelProperty(value = "AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.") public OffsetDateTime getAllocationTimestamp() { return allocationTimestamp; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java index bdbcb4c243..44c4626960 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CELDeviceSelector.java @@ -50,7 +50,7 @@ * CELDeviceSelector contains a CEL expression for selecting a device. */ @ApiModel(description = "CELDeviceSelector contains a CEL expression for selecting a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2CELDeviceSelector { public static final String SERIALIZED_NAME_EXPRESSION = "expression"; @SerializedName(SERIALIZED_NAME_EXPRESSION) @@ -66,11 +66,11 @@ public V1beta2CELDeviceSelector expression(@jakarta.annotation.Nonnull String ex } /** - * Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. + * Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. * @return expression */ @jakarta.annotation.Nonnull - @ApiModelProperty(required = true, value = "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.") + @ApiModelProperty(required = true, value = "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) When the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example: device.attributes[\"dra.example.com\"].models.includes(\"some-model\") The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.") public String getExpression() { return expression; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java index 72d9345aad..bfa0e09709 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicy.java @@ -54,7 +54,7 @@ * CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues. */ @ApiModel(description = "CapacityRequestPolicy defines how requests consume device capacity. Must not set more than one ValidRequestValues.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2CapacityRequestPolicy { public static final String SERIALIZED_NAME_DEFAULT = "default"; @SerializedName(SERIALIZED_NAME_DEFAULT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java index 39ba6f4504..990e778bb3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequestPolicyRange.java @@ -51,7 +51,7 @@ * CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated. */ @ApiModel(description = "CapacityRequestPolicyRange defines a valid range for consumable capacity values. - If the requested amount is less than Min, it is rounded up to the Min value. - If Step is set and the requested amount is between Min and Max but not aligned with Step, it will be rounded up to the next value equal to Min + (n * Step). - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set). - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy, and the device cannot be allocated.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2CapacityRequestPolicyRange { public static final String SERIALIZED_NAME_MAX = "max"; @SerializedName(SERIALIZED_NAME_MAX) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java index e26143edf0..e14d0bc3f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CapacityRequirements.java @@ -53,7 +53,7 @@ * CapacityRequirements defines the capacity requirements for a specific device request. */ @ApiModel(description = "CapacityRequirements defines the capacity requirements for a specific device request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2CapacityRequirements { public static final String SERIALIZED_NAME_REQUESTS = "requests"; @SerializedName(SERIALIZED_NAME_REQUESTS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java index 3d8f33b0fe..5b1b9922e8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Counter.java @@ -51,7 +51,7 @@ * Counter describes a quantity associated with a device. */ @ApiModel(description = "Counter describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2Counter { public static final String SERIALIZED_NAME_VALUE = "value"; @SerializedName(SERIALIZED_NAME_VALUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java index 882af39170..a1b2bf902a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2CounterSet.java @@ -53,7 +53,7 @@ * CounterSet defines a named set of counters that are available to be used by devices defined in the ResourcePool. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices. */ @ApiModel(description = "CounterSet defines a named set of counters that are available to be used by devices defined in the ResourcePool. The counters are not allocatable by themselves, but can be referenced by devices. When a device is allocated, the portion of counters it uses will no longer be available for use by other devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2CounterSet { public static final String SERIALIZED_NAME_COUNTERS = "counters"; @SerializedName(SERIALIZED_NAME_COUNTERS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java index 9b72fd729a..f30e34f59b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2Device.java @@ -23,6 +23,7 @@ import io.kubernetes.client.openapi.models.V1beta2DeviceCapacity; import io.kubernetes.client.openapi.models.V1beta2DeviceCounterConsumption; import io.kubernetes.client.openapi.models.V1beta2DeviceTaint; +import io.kubernetes.client.openapi.models.V1beta2NodeAllocatableResourceMapping; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -59,7 +60,7 @@ * Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set. */ @ApiModel(description = "Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2Device { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) @@ -106,6 +107,11 @@ public class V1beta2Device { @jakarta.annotation.Nonnull private String name; + public static final String SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCE_MAPPINGS = "nodeAllocatableResourceMappings"; + @SerializedName(SERIALIZED_NAME_NODE_ALLOCATABLE_RESOURCE_MAPPINGS) + @jakarta.annotation.Nullable + private Map nodeAllocatableResourceMappings = new HashMap<>(); + public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; @SerializedName(SERIALIZED_NAME_NODE_NAME) @jakarta.annotation.Nullable @@ -206,11 +212,11 @@ public V1beta2Device addBindingConditionsItem(String bindingConditionsItem) { } /** - * BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. * @return bindingConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + @ApiModelProperty(value = "BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") public List getBindingConditions() { return bindingConditions; } @@ -234,11 +240,11 @@ public V1beta2Device addBindingFailureConditionsItem(String bindingFailureCondit } /** - * BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. * @return bindingFailureConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + @ApiModelProperty(value = "BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") public List getBindingFailureConditions() { return bindingFailureConditions; } @@ -254,11 +260,11 @@ public V1beta2Device bindsToNode(@jakarta.annotation.Nullable Boolean bindsToNod } /** - * BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. * @return bindsToNode */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + @ApiModelProperty(value = "BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") public Boolean getBindsToNode() { return bindsToNode; } @@ -344,6 +350,34 @@ public void setName(@jakarta.annotation.Nonnull String name) { } + public V1beta2Device nodeAllocatableResourceMappings(@jakarta.annotation.Nullable Map nodeAllocatableResourceMappings) { + this.nodeAllocatableResourceMappings = nodeAllocatableResourceMappings; + return this; + } + + public V1beta2Device putNodeAllocatableResourceMappingsItem(String key, V1beta2NodeAllocatableResourceMapping nodeAllocatableResourceMappingsItem) { + if (this.nodeAllocatableResourceMappings == null) { + this.nodeAllocatableResourceMappings = new HashMap<>(); + } + this.nodeAllocatableResourceMappings.put(key, nodeAllocatableResourceMappingsItem); + return this; + } + + /** + * NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys. + * @return nodeAllocatableResourceMappings + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.") + public Map getNodeAllocatableResourceMappings() { + return nodeAllocatableResourceMappings; + } + + public void setNodeAllocatableResourceMappings(@jakarta.annotation.Nullable Map nodeAllocatableResourceMappings) { + this.nodeAllocatableResourceMappings = nodeAllocatableResourceMappings; + } + + public V1beta2Device nodeName(@jakarta.annotation.Nullable String nodeName) { this.nodeName = nodeName; return this; @@ -398,11 +432,11 @@ public V1beta2Device addTaintsItem(V1beta2DeviceTaint taintsItem) { } /** - * If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is a beta field and requires enabling the DRADeviceTaints feature gate. * @return taints */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + @ApiModelProperty(value = "If specified, these are the driver-defined taints. The maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128. This is a beta field and requires enabling the DRADeviceTaints feature gate.") public List getTaints() { return taints; } @@ -431,6 +465,7 @@ public boolean equals(Object o) { Objects.equals(this.capacity, v1beta2Device.capacity) && Objects.equals(this.consumesCounters, v1beta2Device.consumesCounters) && Objects.equals(this.name, v1beta2Device.name) && + Objects.equals(this.nodeAllocatableResourceMappings, v1beta2Device.nodeAllocatableResourceMappings) && Objects.equals(this.nodeName, v1beta2Device.nodeName) && Objects.equals(this.nodeSelector, v1beta2Device.nodeSelector) && Objects.equals(this.taints, v1beta2Device.taints); @@ -438,7 +473,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeName, nodeSelector, taints); + return Objects.hash(allNodes, allowMultipleAllocations, attributes, bindingConditions, bindingFailureConditions, bindsToNode, capacity, consumesCounters, name, nodeAllocatableResourceMappings, nodeName, nodeSelector, taints); } @Override @@ -454,6 +489,7 @@ public String toString() { sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); sb.append(" consumesCounters: ").append(toIndentedString(consumesCounters)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" nodeAllocatableResourceMappings: ").append(toIndentedString(nodeAllocatableResourceMappings)).append("\n"); sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); sb.append(" taints: ").append(toIndentedString(taints)).append("\n"); @@ -478,7 +514,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeName", "nodeSelector", "taints")); + openapiFields = new HashSet(Arrays.asList("allNodes", "allowMultipleAllocations", "attributes", "bindingConditions", "bindingFailureConditions", "bindsToNode", "capacity", "consumesCounters", "name", "nodeAllocatableResourceMappings", "nodeName", "nodeSelector", "taints")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(Arrays.asList("name")); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java index 48a00489dc..3eb7f91cdc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationConfiguration.java @@ -53,7 +53,7 @@ * DeviceAllocationConfiguration gets embedded in an AllocationResult. */ @ApiModel(description = "DeviceAllocationConfiguration gets embedded in an AllocationResult.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceAllocationConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java index 82e940293e..8b495adc26 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAllocationResult.java @@ -54,7 +54,7 @@ * DeviceAllocationResult is the result of allocating devices. */ @ApiModel(description = "DeviceAllocationResult is the result of allocating devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceAllocationResult { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java index 43d96108a8..2b34b32736 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceAttribute.java @@ -21,7 +21,9 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.ArrayList; import java.util.Arrays; +import java.util.List; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -50,28 +52,48 @@ * DeviceAttribute must have exactly one field set. */ @ApiModel(description = "DeviceAttribute must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceAttribute { public static final String SERIALIZED_NAME_BOOL = "bool"; @SerializedName(SERIALIZED_NAME_BOOL) @jakarta.annotation.Nullable private Boolean bool; + public static final String SERIALIZED_NAME_BOOLS = "bools"; + @SerializedName(SERIALIZED_NAME_BOOLS) + @jakarta.annotation.Nullable + private List bools = new ArrayList<>(); + public static final String SERIALIZED_NAME_INT = "int"; @SerializedName(SERIALIZED_NAME_INT) @jakarta.annotation.Nullable private Long _int; + public static final String SERIALIZED_NAME_INTS = "ints"; + @SerializedName(SERIALIZED_NAME_INTS) + @jakarta.annotation.Nullable + private List ints = new ArrayList<>(); + public static final String SERIALIZED_NAME_STRING = "string"; @SerializedName(SERIALIZED_NAME_STRING) @jakarta.annotation.Nullable private String string; + public static final String SERIALIZED_NAME_STRINGS = "strings"; + @SerializedName(SERIALIZED_NAME_STRINGS) + @jakarta.annotation.Nullable + private List strings = new ArrayList<>(); + public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) @jakarta.annotation.Nullable private String version; + public static final String SERIALIZED_NAME_VERSIONS = "versions"; + @SerializedName(SERIALIZED_NAME_VERSIONS) + @jakarta.annotation.Nullable + private List versions = new ArrayList<>(); + public V1beta2DeviceAttribute() { } @@ -95,6 +117,34 @@ public void setBool(@jakarta.annotation.Nullable Boolean bool) { } + public V1beta2DeviceAttribute bools(@jakarta.annotation.Nullable List bools) { + this.bools = bools; + return this; + } + + public V1beta2DeviceAttribute addBoolsItem(Boolean boolsItem) { + if (this.bools == null) { + this.bools = new ArrayList<>(); + } + this.bools.add(boolsItem); + return this; + } + + /** + * BoolValues is a non-empty list of true/false values. + * @return bools + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "BoolValues is a non-empty list of true/false values.") + public List getBools() { + return bools; + } + + public void setBools(@jakarta.annotation.Nullable List bools) { + this.bools = bools; + } + + public V1beta2DeviceAttribute _int(@jakarta.annotation.Nullable Long _int) { this._int = _int; return this; @@ -115,6 +165,34 @@ public void setInt(@jakarta.annotation.Nullable Long _int) { } + public V1beta2DeviceAttribute ints(@jakarta.annotation.Nullable List ints) { + this.ints = ints; + return this; + } + + public V1beta2DeviceAttribute addIntsItem(Long intsItem) { + if (this.ints == null) { + this.ints = new ArrayList<>(); + } + this.ints.add(intsItem); + return this; + } + + /** + * IntValues is a non-empty list of numbers. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + * @return ints + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "IntValues is a non-empty list of numbers. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.") + public List getInts() { + return ints; + } + + public void setInts(@jakarta.annotation.Nullable List ints) { + this.ints = ints; + } + + public V1beta2DeviceAttribute string(@jakarta.annotation.Nullable String string) { this.string = string; return this; @@ -135,6 +213,34 @@ public void setString(@jakarta.annotation.Nullable String string) { } + public V1beta2DeviceAttribute strings(@jakarta.annotation.Nullable List strings) { + this.strings = strings; + return this; + } + + public V1beta2DeviceAttribute addStringsItem(String stringsItem) { + if (this.strings == null) { + this.strings = new ArrayList<>(); + } + this.strings.add(stringsItem); + return this; + } + + /** + * StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + * @return strings + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "StringValues is a non-empty list of strings. Each string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.") + public List getStrings() { + return strings; + } + + public void setStrings(@jakarta.annotation.Nullable List strings) { + this.strings = strings; + } + + public V1beta2DeviceAttribute version(@jakarta.annotation.Nullable String version) { this.version = version; return this; @@ -155,6 +261,34 @@ public void setVersion(@jakarta.annotation.Nullable String version) { } + public V1beta2DeviceAttribute versions(@jakarta.annotation.Nullable List versions) { + this.versions = versions; + return this; + } + + public V1beta2DeviceAttribute addVersionsItem(String versionsItem) { + if (this.versions == null) { + this.versions = new ArrayList<>(); + } + this.versions.add(versionsItem); + return this; + } + + /** + * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate. + * @return versions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters. This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.") + public List getVersions() { + return versions; + } + + public void setVersions(@jakarta.annotation.Nullable List versions) { + this.versions = versions; + } + + @Override public boolean equals(Object o) { @@ -166,14 +300,18 @@ public boolean equals(Object o) { } V1beta2DeviceAttribute v1beta2DeviceAttribute = (V1beta2DeviceAttribute) o; return Objects.equals(this.bool, v1beta2DeviceAttribute.bool) && + Objects.equals(this.bools, v1beta2DeviceAttribute.bools) && Objects.equals(this._int, v1beta2DeviceAttribute._int) && + Objects.equals(this.ints, v1beta2DeviceAttribute.ints) && Objects.equals(this.string, v1beta2DeviceAttribute.string) && - Objects.equals(this.version, v1beta2DeviceAttribute.version); + Objects.equals(this.strings, v1beta2DeviceAttribute.strings) && + Objects.equals(this.version, v1beta2DeviceAttribute.version) && + Objects.equals(this.versions, v1beta2DeviceAttribute.versions); } @Override public int hashCode() { - return Objects.hash(bool, _int, string, version); + return Objects.hash(bool, bools, _int, ints, string, strings, version, versions); } @Override @@ -181,9 +319,13 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DeviceAttribute {\n"); sb.append(" bool: ").append(toIndentedString(bool)).append("\n"); + sb.append(" bools: ").append(toIndentedString(bools)).append("\n"); sb.append(" _int: ").append(toIndentedString(_int)).append("\n"); + sb.append(" ints: ").append(toIndentedString(ints)).append("\n"); sb.append(" string: ").append(toIndentedString(string)).append("\n"); + sb.append(" strings: ").append(toIndentedString(strings)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" versions: ").append(toIndentedString(versions)).append("\n"); sb.append("}"); return sb.toString(); } @@ -205,7 +347,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) - openapiFields = new HashSet(Arrays.asList("bool", "int", "string", "version")); + openapiFields = new HashSet(Arrays.asList("bool", "bools", "int", "ints", "string", "strings", "version", "versions")); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(0); @@ -232,12 +374,28 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti } } JsonObject jsonObj = jsonElement.getAsJsonObject(); + // ensure the optional json data is an array if present + if (jsonObj.get("bools") != null && !jsonObj.get("bools").isJsonNull() && !jsonObj.get("bools").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `bools` to be an array in the JSON string but got `%s`", jsonObj.get("bools").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("ints") != null && !jsonObj.get("ints").isJsonNull() && !jsonObj.get("ints").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `ints` to be an array in the JSON string but got `%s`", jsonObj.get("ints").toString())); + } if ((jsonObj.get("string") != null && !jsonObj.get("string").isJsonNull()) && !jsonObj.get("string").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `string` to be a primitive type in the JSON string but got `%s`", jsonObj.get("string").toString())); } + // ensure the optional json data is an array if present + if (jsonObj.get("strings") != null && !jsonObj.get("strings").isJsonNull() && !jsonObj.get("strings").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `strings` to be an array in the JSON string but got `%s`", jsonObj.get("strings").toString())); + } if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !jsonObj.get("version").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); } + // ensure the optional json data is an array if present + if (jsonObj.get("versions") != null && !jsonObj.get("versions").isJsonNull() && !jsonObj.get("versions").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `versions` to be an array in the JSON string but got `%s`", jsonObj.get("versions").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java index 357ac9c3b2..5ccd579b7c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCapacity.java @@ -52,7 +52,7 @@ * DeviceCapacity describes a quantity associated with a device. */ @ApiModel(description = "DeviceCapacity describes a quantity associated with a device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceCapacity { public static final String SERIALIZED_NAME_REQUEST_POLICY = "requestPolicy"; @SerializedName(SERIALIZED_NAME_REQUEST_POLICY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java index 6b9c8771de..f1cae0247d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaim.java @@ -55,7 +55,7 @@ * DeviceClaim defines how to request devices with a ResourceClaim. */ @ApiModel(description = "DeviceClaim defines how to request devices with a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceClaim { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java index a528161cf4..bc881e9154 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClaimConfiguration.java @@ -53,7 +53,7 @@ * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim. */ @ApiModel(description = "DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceClaimConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java index 6605f841da..ae2cec6d96 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClass.java @@ -52,7 +52,7 @@ * DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceClass implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java index ea6fcd5f85..468ba27761 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassConfiguration.java @@ -51,7 +51,7 @@ * DeviceClassConfiguration is used in DeviceClass. */ @ApiModel(description = "DeviceClassConfiguration is used in DeviceClass.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceClassConfiguration { public static final String SERIALIZED_NAME_OPAQUE = "opaque"; @SerializedName(SERIALIZED_NAME_OPAQUE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java index 96ccc7b2ec..af530a7456 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassList.java @@ -54,7 +54,7 @@ * DeviceClassList is a collection of classes. */ @ApiModel(description = "DeviceClassList is a collection of classes.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceClassList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java index 94c7cdbf8c..565463d0d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceClassSpec.java @@ -54,7 +54,7 @@ * DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it. */ @ApiModel(description = "DeviceClassSpec is used in a [DeviceClass] to define what can be allocated and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceClassSpec { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -108,11 +108,11 @@ public V1beta2DeviceClassSpec extendedResourceName(@jakarta.annotation.Nullable } /** - * ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. + * ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field. * @return extendedResourceName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field.") + @ApiModelProperty(value = "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is a beta field.") public String getExtendedResourceName() { return extendedResourceName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java index 8d7ccd2bb8..e28fea7c31 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceConstraint.java @@ -52,7 +52,7 @@ * DeviceConstraint must have exactly one field set besides Requests. */ @ApiModel(description = "DeviceConstraint must have exactly one field set besides Requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceConstraint { public static final String SERIALIZED_NAME_DISTINCT_ATTRIBUTE = "distinctAttribute"; @SerializedName(SERIALIZED_NAME_DISTINCT_ATTRIBUTE) @@ -78,11 +78,11 @@ public V1beta2DeviceConstraint distinctAttribute(@jakarta.annotation.Nullable St } /** - * DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. + * DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. * @return distinctAttribute */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs.") + @ApiModelProperty(value = "DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs.") public String getDistinctAttribute() { return distinctAttribute; } @@ -98,11 +98,11 @@ public V1beta2DeviceConstraint matchAttribute(@jakarta.annotation.Nullable Strin } /** - * MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. + * MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as singleton sets for backward compatibility. Must include the domain qualifier. * @return matchAttribute */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier.") + @ApiModelProperty(value = "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. When the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as singleton sets for backward compatibility. Must include the domain qualifier.") public String getMatchAttribute() { return matchAttribute; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java index b455477aba..ece9f52c93 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceCounterConsumption.java @@ -53,7 +53,7 @@ * DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet. */ @ApiModel(description = "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceCounterConsumption { public static final String SERIALIZED_NAME_COUNTER_SET = "counterSet"; @SerializedName(SERIALIZED_NAME_COUNTER_SET) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java index 4cf7af65ad..1c0ae0a73d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequest.java @@ -54,7 +54,7 @@ * DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. With FirstAvailable it is also possible to provide a prioritized list of requests. */ @ApiModel(description = "DeviceRequest is a request for devices required for a claim. This is typically a request for a single resource like a device, but can also ask for several identical devices. With FirstAvailable it is also possible to provide a prioritized list of requests.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceRequest { public static final String SERIALIZED_NAME_EXACTLY = "exactly"; @SerializedName(SERIALIZED_NAME_EXACTLY) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java index c6bad6e854..fe31deb131 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceRequestAllocationResult.java @@ -56,7 +56,7 @@ * DeviceRequestAllocationResult contains the allocation result for one request. */ @ApiModel(description = "DeviceRequestAllocationResult contains the allocation result for one request.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceRequestAllocationResult { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -145,11 +145,11 @@ public V1beta2DeviceRequestAllocationResult addBindingConditionsItem(String bind } /** - * BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. * @return bindingConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + @ApiModelProperty(value = "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") public List getBindingConditions() { return bindingConditions; } @@ -173,11 +173,11 @@ public V1beta2DeviceRequestAllocationResult addBindingFailureConditionsItem(Stri } /** - * BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. + * BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. * @return bindingFailureConditions */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") + @ApiModelProperty(value = "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.") public List getBindingFailureConditions() { return bindingFailureConditions; } @@ -329,11 +329,11 @@ public V1beta2DeviceRequestAllocationResult addTolerationsItem(V1beta2DeviceTole } /** - * A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. * @return tolerations */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + @ApiModelProperty(value = "A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate.") public List getTolerations() { return tolerations; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java index 4f8d6b99aa..f5d98aa347 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSelector.java @@ -51,7 +51,7 @@ * DeviceSelector must have exactly one field set. */ @ApiModel(description = "DeviceSelector must have exactly one field set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceSelector { public static final String SERIALIZED_NAME_CEL = "cel"; @SerializedName(SERIALIZED_NAME_CEL) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java index d45a161594..b2f146b5f7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceSubRequest.java @@ -55,7 +55,7 @@ * DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device. */ @ApiModel(description = "DeviceSubRequest describes a request for device provided in the claim.spec.devices.requests[].firstAvailable array. Each is typically a request for a single resource like a device, but can also ask for several identical devices. DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the AdminAccess field as that one is only supported when requesting a specific device.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceSubRequest { public static final String SERIALIZED_NAME_ALLOCATION_MODE = "allocationMode"; @SerializedName(SERIALIZED_NAME_ALLOCATION_MODE) @@ -237,11 +237,11 @@ public V1beta2DeviceSubRequest addTolerationsItem(V1beta2DeviceToleration tolera } /** - * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. * @return tolerations */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate.") public List getTolerations() { return tolerations; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java index 29aff7ec01..3a8d6147d6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaint.java @@ -51,7 +51,7 @@ * The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim. */ @ApiModel(description = "The device this taint is attached to has the \"effect\" on any claim which does not tolerate the taint and, through the claim, to pods using the claim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceTaint { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) @@ -122,11 +122,11 @@ public V1beta2DeviceTaint timeAdded(@jakarta.annotation.Nullable OffsetDateTime } /** - * TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. + * TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule). * @return timeAdded */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.") + @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set. In addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule).") public OffsetDateTime getTimeAdded() { return timeAdded; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRule.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRule.java new file mode 100644 index 0000000000..d1d3165cab --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRule.java @@ -0,0 +1,338 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.kubernetes.client.openapi.models.V1beta2DeviceTaintRuleSpec; +import io.kubernetes.client.openapi.models.V1beta2DeviceTaintRuleStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * DeviceTaintRule adds one taint to all devices which match the selector. This has the same effect as if the taint was specified directly in the ResourceSlice by the DRA driver. + */ +@ApiModel(description = "DeviceTaintRule adds one taint to all devices which match the selector. This has the same effect as if the taint was specified directly in the ResourceSlice by the DRA driver.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta2DeviceTaintRule implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + @jakarta.annotation.Nonnull + private V1beta2DeviceTaintRuleSpec spec; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @jakarta.annotation.Nullable + private V1beta2DeviceTaintRuleStatus status; + + public V1beta2DeviceTaintRule() { + } + + public V1beta2DeviceTaintRule apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1beta2DeviceTaintRule kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V1beta2DeviceTaintRule metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V1beta2DeviceTaintRule spec(@jakarta.annotation.Nonnull V1beta2DeviceTaintRuleSpec spec) { + this.spec = spec; + return this; + } + + /** + * Get spec + * @return spec + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1beta2DeviceTaintRuleSpec getSpec() { + return spec; + } + + public void setSpec(@jakarta.annotation.Nonnull V1beta2DeviceTaintRuleSpec spec) { + this.spec = spec; + } + + + public V1beta2DeviceTaintRule status(@jakarta.annotation.Nullable V1beta2DeviceTaintRuleStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2DeviceTaintRuleStatus getStatus() { + return status; + } + + public void setStatus(@jakarta.annotation.Nullable V1beta2DeviceTaintRuleStatus status) { + this.status = status; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta2DeviceTaintRule v1beta2DeviceTaintRule = (V1beta2DeviceTaintRule) o; + return Objects.equals(this.apiVersion, v1beta2DeviceTaintRule.apiVersion) && + Objects.equals(this.kind, v1beta2DeviceTaintRule.kind) && + Objects.equals(this.metadata, v1beta2DeviceTaintRule.metadata) && + Objects.equals(this.spec, v1beta2DeviceTaintRule.spec) && + Objects.equals(this.status, v1beta2DeviceTaintRule.status); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, spec, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta2DeviceTaintRule {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("spec")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta2DeviceTaintRule + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta2DeviceTaintRule.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta2DeviceTaintRule is not found in the empty JSON string", V1beta2DeviceTaintRule.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta2DeviceTaintRule.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceTaintRule` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2DeviceTaintRule.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); + } + // validate the required field `spec` + V1beta2DeviceTaintRuleSpec.validateJsonElement(jsonObj.get("spec")); + // validate the optional field `status` + if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { + V1beta2DeviceTaintRuleStatus.validateJsonElement(jsonObj.get("status")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2DeviceTaintRule.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2DeviceTaintRule' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2DeviceTaintRule.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2DeviceTaintRule value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2DeviceTaintRule read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2DeviceTaintRule given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2DeviceTaintRule + * @throws IOException if the JSON string is invalid with respect to V1beta2DeviceTaintRule + */ + public static V1beta2DeviceTaintRule fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2DeviceTaintRule.class); + } + + /** + * Convert an instance of V1beta2DeviceTaintRule to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleList.java new file mode 100644 index 0000000000..356e1cbf40 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleList.java @@ -0,0 +1,324 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V1beta2DeviceTaintRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * DeviceTaintRuleList is a collection of DeviceTaintRules. + */ +@ApiModel(description = "DeviceTaintRuleList is a collection of DeviceTaintRules.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta2DeviceTaintRuleList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull + private List items = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ListMeta metadata; + + public V1beta2DeviceTaintRuleList() { + } + + public V1beta2DeviceTaintRuleList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * 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 + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V1beta2DeviceTaintRuleList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V1beta2DeviceTaintRuleList addItemsItem(V1beta2DeviceTaintRule itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * Items is the list of DeviceTaintRules. + * @return items + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "Items is the list of DeviceTaintRules.") + public List getItems() { + return items; + } + + public void setItems(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + public V1beta2DeviceTaintRuleList kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * 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 + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "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") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V1beta2DeviceTaintRuleList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta2DeviceTaintRuleList v1beta2DeviceTaintRuleList = (V1beta2DeviceTaintRuleList) o; + return Objects.equals(this.apiVersion, v1beta2DeviceTaintRuleList.apiVersion) && + Objects.equals(this.items, v1beta2DeviceTaintRuleList.items) && + Objects.equals(this.kind, v1beta2DeviceTaintRuleList.kind) && + Objects.equals(this.metadata, v1beta2DeviceTaintRuleList.metadata); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, items, kind, metadata); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta2DeviceTaintRuleList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("apiVersion", "items", "kind", "metadata")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("items")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta2DeviceTaintRuleList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta2DeviceTaintRuleList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta2DeviceTaintRuleList is not found in the empty JSON string", V1beta2DeviceTaintRuleList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta2DeviceTaintRuleList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceTaintRuleList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2DeviceTaintRuleList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V1beta2DeviceTaintRule.validateJsonElement(jsonArrayitems.get(i)); + }; + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonElement(jsonObj.get("metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2DeviceTaintRuleList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2DeviceTaintRuleList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2DeviceTaintRuleList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2DeviceTaintRuleList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2DeviceTaintRuleList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2DeviceTaintRuleList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2DeviceTaintRuleList + * @throws IOException if the JSON string is invalid with respect to V1beta2DeviceTaintRuleList + */ + public static V1beta2DeviceTaintRuleList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2DeviceTaintRuleList.class); + } + + /** + * Convert an instance of V1beta2DeviceTaintRuleList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpec.java new file mode 100644 index 0000000000..e7c14bac82 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleSpec.java @@ -0,0 +1,246 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1beta2DeviceTaint; +import io.kubernetes.client.openapi.models.V1beta2DeviceTaintSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * DeviceTaintRuleSpec specifies the selector and one taint. + */ +@ApiModel(description = "DeviceTaintRuleSpec specifies the selector and one taint.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta2DeviceTaintRuleSpec { + public static final String SERIALIZED_NAME_DEVICE_SELECTOR = "deviceSelector"; + @SerializedName(SERIALIZED_NAME_DEVICE_SELECTOR) + @jakarta.annotation.Nullable + private V1beta2DeviceTaintSelector deviceSelector; + + public static final String SERIALIZED_NAME_TAINT = "taint"; + @SerializedName(SERIALIZED_NAME_TAINT) + @jakarta.annotation.Nonnull + private V1beta2DeviceTaint taint; + + public V1beta2DeviceTaintRuleSpec() { + } + + public V1beta2DeviceTaintRuleSpec deviceSelector(@jakarta.annotation.Nullable V1beta2DeviceTaintSelector deviceSelector) { + this.deviceSelector = deviceSelector; + return this; + } + + /** + * Get deviceSelector + * @return deviceSelector + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2DeviceTaintSelector getDeviceSelector() { + return deviceSelector; + } + + public void setDeviceSelector(@jakarta.annotation.Nullable V1beta2DeviceTaintSelector deviceSelector) { + this.deviceSelector = deviceSelector; + } + + + public V1beta2DeviceTaintRuleSpec taint(@jakarta.annotation.Nonnull V1beta2DeviceTaint taint) { + this.taint = taint; + return this; + } + + /** + * Get taint + * @return taint + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public V1beta2DeviceTaint getTaint() { + return taint; + } + + public void setTaint(@jakarta.annotation.Nonnull V1beta2DeviceTaint taint) { + this.taint = taint; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta2DeviceTaintRuleSpec v1beta2DeviceTaintRuleSpec = (V1beta2DeviceTaintRuleSpec) o; + return Objects.equals(this.deviceSelector, v1beta2DeviceTaintRuleSpec.deviceSelector) && + Objects.equals(this.taint, v1beta2DeviceTaintRuleSpec.taint); + } + + @Override + public int hashCode() { + return Objects.hash(deviceSelector, taint); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta2DeviceTaintRuleSpec {\n"); + sb.append(" deviceSelector: ").append(toIndentedString(deviceSelector)).append("\n"); + sb.append(" taint: ").append(toIndentedString(taint)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("deviceSelector", "taint")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("taint")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta2DeviceTaintRuleSpec + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta2DeviceTaintRuleSpec.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta2DeviceTaintRuleSpec is not found in the empty JSON string", V1beta2DeviceTaintRuleSpec.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta2DeviceTaintRuleSpec.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceTaintRuleSpec` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V1beta2DeviceTaintRuleSpec.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + // validate the optional field `deviceSelector` + if (jsonObj.get("deviceSelector") != null && !jsonObj.get("deviceSelector").isJsonNull()) { + V1beta2DeviceTaintSelector.validateJsonElement(jsonObj.get("deviceSelector")); + } + // validate the required field `taint` + V1beta2DeviceTaint.validateJsonElement(jsonObj.get("taint")); + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2DeviceTaintRuleSpec.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2DeviceTaintRuleSpec' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2DeviceTaintRuleSpec.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2DeviceTaintRuleSpec value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2DeviceTaintRuleSpec read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2DeviceTaintRuleSpec given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2DeviceTaintRuleSpec + * @throws IOException if the JSON string is invalid with respect to V1beta2DeviceTaintRuleSpec + */ + public static V1beta2DeviceTaintRuleSpec fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2DeviceTaintRuleSpec.class); + } + + /** + * Convert an instance of V1beta2DeviceTaintRuleSpec to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatus.java new file mode 100644 index 0000000000..529dbed37f --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintRuleStatus.java @@ -0,0 +1,229 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1Condition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * DeviceTaintRuleStatus provides information about an on-going pod eviction. + */ +@ApiModel(description = "DeviceTaintRuleStatus provides information about an on-going pod eviction.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta2DeviceTaintRuleStatus { + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) + @jakarta.annotation.Nullable + private List conditions = new ArrayList<>(); + + public V1beta2DeviceTaintRuleStatus() { + } + + public V1beta2DeviceTaintRuleStatus conditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + return this; + } + + public V1beta2DeviceTaintRuleStatus addConditionsItem(V1Condition conditionsItem) { + if (this.conditions == null) { + this.conditions = new ArrayList<>(); + } + this.conditions.add(conditionsItem); + return this; + } + + /** + * Conditions provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format. The following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise (includes the effects which don't cause eviction). - Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods in a human-readable format, updated periodically, may change For `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status. Must have 8 or fewer entries. + * @return conditions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Conditions provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format. The following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise (includes the effects which don't cause eviction). - Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods in a human-readable format, updated periodically, may change For `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status. Must have 8 or fewer entries.") + public List getConditions() { + return conditions; + } + + public void setConditions(@jakarta.annotation.Nullable List conditions) { + this.conditions = conditions; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta2DeviceTaintRuleStatus v1beta2DeviceTaintRuleStatus = (V1beta2DeviceTaintRuleStatus) o; + return Objects.equals(this.conditions, v1beta2DeviceTaintRuleStatus.conditions); + } + + @Override + public int hashCode() { + return Objects.hash(conditions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta2DeviceTaintRuleStatus {\n"); + sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("conditions")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta2DeviceTaintRuleStatus + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta2DeviceTaintRuleStatus.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta2DeviceTaintRuleStatus is not found in the empty JSON string", V1beta2DeviceTaintRuleStatus.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta2DeviceTaintRuleStatus.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceTaintRuleStatus` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (jsonObj.get("conditions") != null && !jsonObj.get("conditions").isJsonNull()) { + JsonArray jsonArrayconditions = jsonObj.getAsJsonArray("conditions"); + if (jsonArrayconditions != null) { + // ensure the json data is an array + if (!jsonObj.get("conditions").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `conditions` to be an array in the JSON string but got `%s`", jsonObj.get("conditions").toString())); + } + + // validate the optional field `conditions` (array) + for (int i = 0; i < jsonArrayconditions.size(); i++) { + V1Condition.validateJsonElement(jsonArrayconditions.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2DeviceTaintRuleStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2DeviceTaintRuleStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2DeviceTaintRuleStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2DeviceTaintRuleStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2DeviceTaintRuleStatus read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2DeviceTaintRuleStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2DeviceTaintRuleStatus + * @throws IOException if the JSON string is invalid with respect to V1beta2DeviceTaintRuleStatus + */ + public static V1beta2DeviceTaintRuleStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2DeviceTaintRuleStatus.class); + } + + /** + * Convert an instance of V1beta2DeviceTaintRuleStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelector.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelector.java new file mode 100644 index 0000000000..dbc7af90bb --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceTaintSelector.java @@ -0,0 +1,267 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched. + */ +@ApiModel(description = "DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta2DeviceTaintSelector { + public static final String SERIALIZED_NAME_DEVICE = "device"; + @SerializedName(SERIALIZED_NAME_DEVICE) + @jakarta.annotation.Nullable + private String device; + + public static final String SERIALIZED_NAME_DRIVER = "driver"; + @SerializedName(SERIALIZED_NAME_DRIVER) + @jakarta.annotation.Nullable + private String driver; + + public static final String SERIALIZED_NAME_POOL = "pool"; + @SerializedName(SERIALIZED_NAME_POOL) + @jakarta.annotation.Nullable + private String pool; + + public V1beta2DeviceTaintSelector() { + } + + public V1beta2DeviceTaintSelector device(@jakarta.annotation.Nullable String device) { + this.device = device; + return this; + } + + /** + * If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. Setting also driver and pool may be required to avoid ambiguity, but is not required. + * @return device + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. Setting also driver and pool may be required to avoid ambiguity, but is not required.") + public String getDevice() { + return device; + } + + public void setDevice(@jakarta.annotation.Nullable String device) { + this.device = device; + } + + + public V1beta2DeviceTaintSelector driver(@jakarta.annotation.Nullable String driver) { + this.driver = driver; + return this; + } + + /** + * If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver. + * @return driver + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver.") + public String getDriver() { + return driver; + } + + public void setDriver(@jakarta.annotation.Nullable String driver) { + this.driver = driver; + } + + + public V1beta2DeviceTaintSelector pool(@jakarta.annotation.Nullable String pool) { + this.pool = pool; + return this; + } + + /** + * If pool is set, only devices in that pool are selected. Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name. + * @return pool + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "If pool is set, only devices in that pool are selected. Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name.") + public String getPool() { + return pool; + } + + public void setPool(@jakarta.annotation.Nullable String pool) { + this.pool = pool; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta2DeviceTaintSelector v1beta2DeviceTaintSelector = (V1beta2DeviceTaintSelector) o; + return Objects.equals(this.device, v1beta2DeviceTaintSelector.device) && + Objects.equals(this.driver, v1beta2DeviceTaintSelector.driver) && + Objects.equals(this.pool, v1beta2DeviceTaintSelector.pool); + } + + @Override + public int hashCode() { + return Objects.hash(device, driver, pool); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta2DeviceTaintSelector {\n"); + sb.append(" device: ").append(toIndentedString(device)).append("\n"); + sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); + sb.append(" pool: ").append(toIndentedString(pool)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("device", "driver", "pool")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta2DeviceTaintSelector + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta2DeviceTaintSelector.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta2DeviceTaintSelector is not found in the empty JSON string", V1beta2DeviceTaintSelector.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta2DeviceTaintSelector.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2DeviceTaintSelector` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("device") != null && !jsonObj.get("device").isJsonNull()) && !jsonObj.get("device").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `device` to be a primitive type in the JSON string but got `%s`", jsonObj.get("device").toString())); + } + if ((jsonObj.get("driver") != null && !jsonObj.get("driver").isJsonNull()) && !jsonObj.get("driver").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `driver` to be a primitive type in the JSON string but got `%s`", jsonObj.get("driver").toString())); + } + if ((jsonObj.get("pool") != null && !jsonObj.get("pool").isJsonNull()) && !jsonObj.get("pool").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `pool` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pool").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2DeviceTaintSelector.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2DeviceTaintSelector' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2DeviceTaintSelector.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2DeviceTaintSelector value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2DeviceTaintSelector read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2DeviceTaintSelector given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2DeviceTaintSelector + * @throws IOException if the JSON string is invalid with respect to V1beta2DeviceTaintSelector + */ + public static V1beta2DeviceTaintSelector fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2DeviceTaintSelector.class); + } + + /** + * Convert an instance of V1beta2DeviceTaintSelector to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java index 20f44ee426..c4e5b05a35 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2DeviceToleration.java @@ -50,7 +50,7 @@ * The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. */ @ApiModel(description = "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2DeviceToleration { public static final String SERIALIZED_NAME_EFFECT = "effect"; @SerializedName(SERIALIZED_NAME_EFFECT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java index 7c77cc6f99..e5b8916739 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ExactDeviceRequest.java @@ -55,7 +55,7 @@ * ExactDeviceRequest is a request for one or more identical devices. */ @ApiModel(description = "ExactDeviceRequest is a request for one or more identical devices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ExactDeviceRequest { public static final String SERIALIZED_NAME_ADMIN_ACCESS = "adminAccess"; @SerializedName(SERIALIZED_NAME_ADMIN_ACCESS) @@ -237,11 +237,11 @@ public V1beta2ExactDeviceRequest addTolerationsItem(V1beta2DeviceToleration tole } /** - * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. + * If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate. * @return tolerations */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate.") + @ApiModelProperty(value = "If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is a beta field and requires enabling the DRADeviceTaints feature gate.") public List getTolerations() { return tolerations; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java index b002d3cd02..7e1b210917 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NetworkDeviceData.java @@ -52,7 +52,7 @@ * NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context. */ @ApiModel(description = "NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2NetworkDeviceData { public static final String SERIALIZED_NAME_HARDWARE_ADDRESS = "hardwareAddress"; @SerializedName(SERIALIZED_NAME_HARDWARE_ADDRESS) @@ -78,11 +78,11 @@ public V1beta2NetworkDeviceData hardwareAddress(@jakarta.annotation.Nullable Str } /** - * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. + * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 bytes. * @return hardwareAddress */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters.") + @ApiModelProperty(value = "HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 bytes.") public String getHardwareAddress() { return hardwareAddress; } @@ -98,11 +98,11 @@ public V1beta2NetworkDeviceData interfaceName(@jakarta.annotation.Nullable Strin } /** - * InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. + * InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 bytes. * @return interfaceName */ @jakarta.annotation.Nullable - @ApiModelProperty(value = "InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters.") + @ApiModelProperty(value = "InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 bytes.") public String getInterfaceName() { return interfaceName; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMapping.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMapping.java new file mode 100644 index 0000000000..832ed64464 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2NodeAllocatableResourceMapping.java @@ -0,0 +1,238 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.Arrays; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource. + */ +@ApiModel(description = "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V1beta2NodeAllocatableResourceMapping { + public static final String SERIALIZED_NAME_ALLOCATION_MULTIPLIER = "allocationMultiplier"; + @SerializedName(SERIALIZED_NAME_ALLOCATION_MULTIPLIER) + @jakarta.annotation.Nullable + private Quantity allocationMultiplier; + + public static final String SERIALIZED_NAME_CAPACITY_KEY = "capacityKey"; + @SerializedName(SERIALIZED_NAME_CAPACITY_KEY) + @jakarta.annotation.Nullable + private String capacityKey; + + public V1beta2NodeAllocatableResourceMapping() { + } + + public V1beta2NodeAllocatableResourceMapping allocationMultiplier(@jakarta.annotation.Nullable Quantity allocationMultiplier) { + this.allocationMultiplier = allocationMultiplier; + return this; + } + + /** + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. + * @return allocationMultiplier + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + public Quantity getAllocationMultiplier() { + return allocationMultiplier; + } + + public void setAllocationMultiplier(@jakarta.annotation.Nullable Quantity allocationMultiplier) { + this.allocationMultiplier = allocationMultiplier; + } + + + public V1beta2NodeAllocatableResourceMapping capacityKey(@jakarta.annotation.Nullable String capacityKey) { + this.capacityKey = capacityKey; + return this; + } + + /** + * CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\". + * @return capacityKey + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\".") + public String getCapacityKey() { + return capacityKey; + } + + public void setCapacityKey(@jakarta.annotation.Nullable String capacityKey) { + this.capacityKey = capacityKey; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V1beta2NodeAllocatableResourceMapping v1beta2NodeAllocatableResourceMapping = (V1beta2NodeAllocatableResourceMapping) o; + return Objects.equals(this.allocationMultiplier, v1beta2NodeAllocatableResourceMapping.allocationMultiplier) && + Objects.equals(this.capacityKey, v1beta2NodeAllocatableResourceMapping.capacityKey); + } + + @Override + public int hashCode() { + return Objects.hash(allocationMultiplier, capacityKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta2NodeAllocatableResourceMapping {\n"); + sb.append(" allocationMultiplier: ").append(toIndentedString(allocationMultiplier)).append("\n"); + sb.append(" capacityKey: ").append(toIndentedString(capacityKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("allocationMultiplier", "capacityKey")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V1beta2NodeAllocatableResourceMapping + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V1beta2NodeAllocatableResourceMapping.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V1beta2NodeAllocatableResourceMapping is not found in the empty JSON string", V1beta2NodeAllocatableResourceMapping.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V1beta2NodeAllocatableResourceMapping.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V1beta2NodeAllocatableResourceMapping` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("allocationMultiplier") != null && !jsonObj.get("allocationMultiplier").isJsonNull()) && !jsonObj.get("allocationMultiplier").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `allocationMultiplier` to be a primitive type in the JSON string but got `%s`", jsonObj.get("allocationMultiplier").toString())); + } + if ((jsonObj.get("capacityKey") != null && !jsonObj.get("capacityKey").isJsonNull()) && !jsonObj.get("capacityKey").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `capacityKey` to be a primitive type in the JSON string but got `%s`", jsonObj.get("capacityKey").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V1beta2NodeAllocatableResourceMapping.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V1beta2NodeAllocatableResourceMapping' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V1beta2NodeAllocatableResourceMapping.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V1beta2NodeAllocatableResourceMapping value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V1beta2NodeAllocatableResourceMapping read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V1beta2NodeAllocatableResourceMapping given an JSON string + * + * @param jsonString JSON string + * @return An instance of V1beta2NodeAllocatableResourceMapping + * @throws IOException if the JSON string is invalid with respect to V1beta2NodeAllocatableResourceMapping + */ + public static V1beta2NodeAllocatableResourceMapping fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V1beta2NodeAllocatableResourceMapping.class); + } + + /** + * Convert an instance of V1beta2NodeAllocatableResourceMapping to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java index 288b5961dc..cbd85f9e7a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2OpaqueDeviceConfiguration.java @@ -50,7 +50,7 @@ * OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor. */ @ApiModel(description = "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2OpaqueDeviceConfiguration { public static final String SERIALIZED_NAME_DRIVER = "driver"; @SerializedName(SERIALIZED_NAME_DRIVER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java index 6dec20f4b4..ff3eb35344 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaim.java @@ -53,7 +53,7 @@ * ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaim implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java index bec8fccaa3..3526c85912 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimConsumerReference.java @@ -50,7 +50,7 @@ * ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim. */ @ApiModel(description = "ResourceClaimConsumerReference contains enough information to let you locate the consumer of a ResourceClaim. The user must be a resource in the same namespace as the ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaimConsumerReference { public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; @SerializedName(SERIALIZED_NAME_API_GROUP) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java index 76e8b0b8db..333379f5d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimList.java @@ -54,7 +54,7 @@ * ResourceClaimList is a collection of claims. */ @ApiModel(description = "ResourceClaimList is a collection of claims.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaimList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java index 53f9c9b18d..943f123268 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimSpec.java @@ -51,7 +51,7 @@ * ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it. */ @ApiModel(description = "ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaimSpec { public static final String SERIALIZED_NAME_DEVICES = "devices"; @SerializedName(SERIALIZED_NAME_DEVICES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java index 18099efcf5..951879cdeb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimStatus.java @@ -55,7 +55,7 @@ * ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was. */ @ApiModel(description = "ResourceClaimStatus tracks whether the resource has been allocated and what the result of that was.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaimStatus { public static final String SERIALIZED_NAME_ALLOCATION = "allocation"; @SerializedName(SERIALIZED_NAME_ALLOCATION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java index 1b81f2560b..422b76c974 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplate.java @@ -52,7 +52,7 @@ * ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceClaimTemplate is used to produce ResourceClaim objects. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaimTemplate implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java index 91067ca83e..d53a9b063c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateList.java @@ -54,7 +54,7 @@ * ResourceClaimTemplateList is a collection of claim templates. */ @ApiModel(description = "ResourceClaimTemplateList is a collection of claim templates.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaimTemplateList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java index f70677da8e..51ad24792d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceClaimTemplateSpec.java @@ -52,7 +52,7 @@ * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim. */ @ApiModel(description = "ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceClaimTemplateSpec { public static final String SERIALIZED_NAME_METADATA = "metadata"; @SerializedName(SERIALIZED_NAME_METADATA) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java index 0b32a33828..bb7accb1f9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourcePool.java @@ -50,7 +50,7 @@ * ResourcePool describes the pool that ResourceSlices belong to. */ @ApiModel(description = "ResourcePool describes the pool that ResourceSlices belong to.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourcePool { public static final String SERIALIZED_NAME_GENERATION = "generation"; @SerializedName(SERIALIZED_NAME_GENERATION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java index a77e30d0f7..7acf41edd2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSlice.java @@ -52,7 +52,7 @@ * ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple <driver name>, <pool name>, <device name>. Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate. */ @ApiModel(description = "ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver. At the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , . Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others. When allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool. For resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available. This is an alpha type and requires enabling the DynamicResourceAllocation feature gate.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceSlice implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java index e5e00e2143..a635e5b0da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceList.java @@ -54,7 +54,7 @@ * ResourceSliceList is a collection of ResourceSlices. */ @ApiModel(description = "ResourceSliceList is a collection of ResourceSlices.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceSliceList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java index 456ccb356f..bc478f2be1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V1beta2ResourceSliceSpec.java @@ -56,7 +56,7 @@ * ResourceSliceSpec contains the information published by the driver in one ResourceSlice. */ @ApiModel(description = "ResourceSliceSpec contains the information published by the driver in one ResourceSlice.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V1beta2ResourceSliceSpec { public static final String SERIALIZED_NAME_ALL_NODES = "allNodes"; @SerializedName(SERIALIZED_NAME_ALL_NODES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscovery.java new file mode 100644 index 0000000000..3f71e45c17 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscovery.java @@ -0,0 +1,321 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.kubernetes.client.openapi.models.V2APIVersionDiscovery; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry. + */ +@ApiModel(description = "APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V2APIGroupDiscovery implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_VERSIONS = "versions"; + @SerializedName(SERIALIZED_NAME_VERSIONS) + @jakarta.annotation.Nullable + private List versions = new ArrayList<>(); + + public V2APIGroupDiscovery() { + } + + public V2APIGroupDiscovery apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Get apiVersion + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V2APIGroupDiscovery kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * Get kind + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V2APIGroupDiscovery metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V2APIGroupDiscovery versions(@jakarta.annotation.Nullable List versions) { + this.versions = versions; + return this; + } + + public V2APIGroupDiscovery addVersionsItem(V2APIVersionDiscovery versionsItem) { + if (this.versions == null) { + this.versions = new ArrayList<>(); + } + this.versions.add(versionsItem); + return this; + } + + /** + * Get versions + * @return versions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public List getVersions() { + return versions; + } + + public void setVersions(@jakarta.annotation.Nullable List versions) { + this.versions = versions; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2APIGroupDiscovery v2APIGroupDiscovery = (V2APIGroupDiscovery) o; + return Objects.equals(this.apiVersion, v2APIGroupDiscovery.apiVersion) && + Objects.equals(this.kind, v2APIGroupDiscovery.kind) && + Objects.equals(this.metadata, v2APIGroupDiscovery.metadata) && + Objects.equals(this.versions, v2APIGroupDiscovery.versions); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, versions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V2APIGroupDiscovery {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" versions: ").append(toIndentedString(versions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "versions")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V2APIGroupDiscovery + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V2APIGroupDiscovery.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V2APIGroupDiscovery is not found in the empty JSON string", V2APIGroupDiscovery.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V2APIGroupDiscovery.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2APIGroupDiscovery` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); + } + if (jsonObj.get("versions") != null && !jsonObj.get("versions").isJsonNull()) { + JsonArray jsonArrayversions = jsonObj.getAsJsonArray("versions"); + if (jsonArrayversions != null) { + // ensure the json data is an array + if (!jsonObj.get("versions").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `versions` to be an array in the JSON string but got `%s`", jsonObj.get("versions").toString())); + } + + // validate the optional field `versions` (array) + for (int i = 0; i < jsonArrayversions.size(); i++) { + V2APIVersionDiscovery.validateJsonElement(jsonArrayversions.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2APIGroupDiscovery.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2APIGroupDiscovery' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2APIGroupDiscovery.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2APIGroupDiscovery value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2APIGroupDiscovery read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2APIGroupDiscovery given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2APIGroupDiscovery + * @throws IOException if the JSON string is invalid with respect to V2APIGroupDiscovery + */ + public static V2APIGroupDiscovery fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2APIGroupDiscovery.class); + } + + /** + * Convert an instance of V2APIGroupDiscovery to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryList.java new file mode 100644 index 0000000000..f9abc9ecd7 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIGroupDiscoveryList.java @@ -0,0 +1,324 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V2APIGroupDiscovery; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports. + */ +@ApiModel(description = "APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V2APIGroupDiscoveryList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ListMeta metadata; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull + private List items = new ArrayList<>(); + + public V2APIGroupDiscoveryList() { + } + + public V2APIGroupDiscoveryList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Get apiVersion + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V2APIGroupDiscoveryList kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * Get kind + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V2APIGroupDiscoveryList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + } + + + public V2APIGroupDiscoveryList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V2APIGroupDiscoveryList addItemsItem(V2APIGroupDiscovery itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * Get items + * @return items + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public List getItems() { + return items; + } + + public void setItems(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2APIGroupDiscoveryList v2APIGroupDiscoveryList = (V2APIGroupDiscoveryList) o; + return Objects.equals(this.apiVersion, v2APIGroupDiscoveryList.apiVersion) && + Objects.equals(this.kind, v2APIGroupDiscoveryList.kind) && + Objects.equals(this.metadata, v2APIGroupDiscoveryList.metadata) && + Objects.equals(this.items, v2APIGroupDiscoveryList.items); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, items); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V2APIGroupDiscoveryList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "items")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("items")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V2APIGroupDiscoveryList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V2APIGroupDiscoveryList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V2APIGroupDiscoveryList is not found in the empty JSON string", V2APIGroupDiscoveryList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V2APIGroupDiscoveryList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2APIGroupDiscoveryList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2APIGroupDiscoveryList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonElement(jsonObj.get("metadata")); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V2APIGroupDiscovery.validateJsonElement(jsonArrayitems.get(i)); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2APIGroupDiscoveryList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2APIGroupDiscoveryList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2APIGroupDiscoveryList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2APIGroupDiscoveryList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2APIGroupDiscoveryList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2APIGroupDiscoveryList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2APIGroupDiscoveryList + * @throws IOException if the JSON string is invalid with respect to V2APIGroupDiscoveryList + */ + public static V2APIGroupDiscoveryList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2APIGroupDiscoveryList.class); + } + + /** + * Convert an instance of V2APIGroupDiscoveryList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscovery.java new file mode 100644 index 0000000000..372233313a --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIResourceDiscovery.java @@ -0,0 +1,477 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1GroupVersionKind; +import io.kubernetes.client.openapi.models.V2APISubresourceDiscovery; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * APIResourceDiscovery provides information about an API resource for discovery. + */ +@ApiModel(description = "APIResourceDiscovery provides information about an API resource for discovery.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V2APIResourceDiscovery { + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + @jakarta.annotation.Nonnull + private String resource; + + public static final String SERIALIZED_NAME_RESPONSE_KIND = "responseKind"; + @SerializedName(SERIALIZED_NAME_RESPONSE_KIND) + @jakarta.annotation.Nullable + private V1GroupVersionKind responseKind; + + public static final String SERIALIZED_NAME_SCOPE = "scope"; + @SerializedName(SERIALIZED_NAME_SCOPE) + @jakarta.annotation.Nonnull + private String scope; + + public static final String SERIALIZED_NAME_SINGULAR_RESOURCE = "singularResource"; + @SerializedName(SERIALIZED_NAME_SINGULAR_RESOURCE) + @jakarta.annotation.Nonnull + private String singularResource; + + public static final String SERIALIZED_NAME_VERBS = "verbs"; + @SerializedName(SERIALIZED_NAME_VERBS) + @jakarta.annotation.Nonnull + private List verbs = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SHORT_NAMES = "shortNames"; + @SerializedName(SERIALIZED_NAME_SHORT_NAMES) + @jakarta.annotation.Nullable + private List shortNames = new ArrayList<>(); + + public static final String SERIALIZED_NAME_CATEGORIES = "categories"; + @SerializedName(SERIALIZED_NAME_CATEGORIES) + @jakarta.annotation.Nullable + private List categories = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SUBRESOURCES = "subresources"; + @SerializedName(SERIALIZED_NAME_SUBRESOURCES) + @jakarta.annotation.Nullable + private List subresources = new ArrayList<>(); + + public V2APIResourceDiscovery() { + } + + public V2APIResourceDiscovery resource(@jakarta.annotation.Nonnull String resource) { + this.resource = resource; + return this; + } + + /** + * resource is the plural name of the resource. + * @return resource + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "resource is the plural name of the resource.") + public String getResource() { + return resource; + } + + public void setResource(@jakarta.annotation.Nonnull String resource) { + this.resource = resource; + } + + + public V2APIResourceDiscovery responseKind(@jakarta.annotation.Nullable V1GroupVersionKind responseKind) { + this.responseKind = responseKind; + return this; + } + + /** + * Get responseKind + * @return responseKind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1GroupVersionKind getResponseKind() { + return responseKind; + } + + public void setResponseKind(@jakarta.annotation.Nullable V1GroupVersionKind responseKind) { + this.responseKind = responseKind; + } + + + public V2APIResourceDiscovery scope(@jakarta.annotation.Nonnull String scope) { + this.scope = scope; + return this; + } + + /** + * scope indicates the scope of a resource, either Cluster or Namespaced + * @return scope + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "scope indicates the scope of a resource, either Cluster or Namespaced") + public String getScope() { + return scope; + } + + public void setScope(@jakarta.annotation.Nonnull String scope) { + this.scope = scope; + } + + + public V2APIResourceDiscovery singularResource(@jakarta.annotation.Nonnull String singularResource) { + this.singularResource = singularResource; + return this; + } + + /** + * singularResource is the singular name of the resource. + * @return singularResource + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "singularResource is the singular name of the resource.") + public String getSingularResource() { + return singularResource; + } + + public void setSingularResource(@jakarta.annotation.Nonnull String singularResource) { + this.singularResource = singularResource; + } + + + public V2APIResourceDiscovery verbs(@jakarta.annotation.Nonnull List verbs) { + this.verbs = verbs; + return this; + } + + public V2APIResourceDiscovery addVerbsItem(String verbsItem) { + if (this.verbs == null) { + this.verbs = new ArrayList<>(); + } + this.verbs.add(verbsItem); + return this; + } + + /** + * verbs is a list of supported API operation types + * @return verbs + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "verbs is a list of supported API operation types") + public List getVerbs() { + return verbs; + } + + public void setVerbs(@jakarta.annotation.Nonnull List verbs) { + this.verbs = verbs; + } + + + public V2APIResourceDiscovery shortNames(@jakarta.annotation.Nullable List shortNames) { + this.shortNames = shortNames; + return this; + } + + public V2APIResourceDiscovery addShortNamesItem(String shortNamesItem) { + if (this.shortNames == null) { + this.shortNames = new ArrayList<>(); + } + this.shortNames.add(shortNamesItem); + return this; + } + + /** + * shortNames is a list of suggested short names of the resource. + * @return shortNames + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "shortNames is a list of suggested short names of the resource.") + public List getShortNames() { + return shortNames; + } + + public void setShortNames(@jakarta.annotation.Nullable List shortNames) { + this.shortNames = shortNames; + } + + + public V2APIResourceDiscovery categories(@jakarta.annotation.Nullable List categories) { + this.categories = categories; + return this; + } + + public V2APIResourceDiscovery addCategoriesItem(String categoriesItem) { + if (this.categories == null) { + this.categories = new ArrayList<>(); + } + this.categories.add(categoriesItem); + return this; + } + + /** + * categories is a list of the grouped resources this resource belongs to. + * @return categories + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "categories is a list of the grouped resources this resource belongs to.") + public List getCategories() { + return categories; + } + + public void setCategories(@jakarta.annotation.Nullable List categories) { + this.categories = categories; + } + + + public V2APIResourceDiscovery subresources(@jakarta.annotation.Nullable List subresources) { + this.subresources = subresources; + return this; + } + + public V2APIResourceDiscovery addSubresourcesItem(V2APISubresourceDiscovery subresourcesItem) { + if (this.subresources == null) { + this.subresources = new ArrayList<>(); + } + this.subresources.add(subresourcesItem); + return this; + } + + /** + * Get subresources + * @return subresources + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public List getSubresources() { + return subresources; + } + + public void setSubresources(@jakarta.annotation.Nullable List subresources) { + this.subresources = subresources; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2APIResourceDiscovery v2APIResourceDiscovery = (V2APIResourceDiscovery) o; + return Objects.equals(this.resource, v2APIResourceDiscovery.resource) && + Objects.equals(this.responseKind, v2APIResourceDiscovery.responseKind) && + Objects.equals(this.scope, v2APIResourceDiscovery.scope) && + Objects.equals(this.singularResource, v2APIResourceDiscovery.singularResource) && + Objects.equals(this.verbs, v2APIResourceDiscovery.verbs) && + Objects.equals(this.shortNames, v2APIResourceDiscovery.shortNames) && + Objects.equals(this.categories, v2APIResourceDiscovery.categories) && + Objects.equals(this.subresources, v2APIResourceDiscovery.subresources); + } + + @Override + public int hashCode() { + return Objects.hash(resource, responseKind, scope, singularResource, verbs, shortNames, categories, subresources); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V2APIResourceDiscovery {\n"); + sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); + sb.append(" responseKind: ").append(toIndentedString(responseKind)).append("\n"); + sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); + sb.append(" singularResource: ").append(toIndentedString(singularResource)).append("\n"); + sb.append(" verbs: ").append(toIndentedString(verbs)).append("\n"); + sb.append(" shortNames: ").append(toIndentedString(shortNames)).append("\n"); + sb.append(" categories: ").append(toIndentedString(categories)).append("\n"); + sb.append(" subresources: ").append(toIndentedString(subresources)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("resource", "responseKind", "scope", "singularResource", "verbs", "shortNames", "categories", "subresources")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("resource", "scope", "singularResource", "verbs")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V2APIResourceDiscovery + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V2APIResourceDiscovery.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V2APIResourceDiscovery is not found in the empty JSON string", V2APIResourceDiscovery.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V2APIResourceDiscovery.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2APIResourceDiscovery` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2APIResourceDiscovery.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("resource").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource").toString())); + } + // validate the optional field `responseKind` + if (jsonObj.get("responseKind") != null && !jsonObj.get("responseKind").isJsonNull()) { + V1GroupVersionKind.validateJsonElement(jsonObj.get("responseKind")); + } + if (!jsonObj.get("scope").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); + } + if (!jsonObj.get("singularResource").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `singularResource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("singularResource").toString())); + } + // ensure the required json array is present + if (jsonObj.get("verbs") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("verbs").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("shortNames") != null && !jsonObj.get("shortNames").isJsonNull() && !jsonObj.get("shortNames").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `shortNames` to be an array in the JSON string but got `%s`", jsonObj.get("shortNames").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("categories") != null && !jsonObj.get("categories").isJsonNull() && !jsonObj.get("categories").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `categories` to be an array in the JSON string but got `%s`", jsonObj.get("categories").toString())); + } + if (jsonObj.get("subresources") != null && !jsonObj.get("subresources").isJsonNull()) { + JsonArray jsonArraysubresources = jsonObj.getAsJsonArray("subresources"); + if (jsonArraysubresources != null) { + // ensure the json data is an array + if (!jsonObj.get("subresources").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `subresources` to be an array in the JSON string but got `%s`", jsonObj.get("subresources").toString())); + } + + // validate the optional field `subresources` (array) + for (int i = 0; i < jsonArraysubresources.size(); i++) { + V2APISubresourceDiscovery.validateJsonElement(jsonArraysubresources.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2APIResourceDiscovery.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2APIResourceDiscovery' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2APIResourceDiscovery.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2APIResourceDiscovery value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2APIResourceDiscovery read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2APIResourceDiscovery given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2APIResourceDiscovery + * @throws IOException if the JSON string is invalid with respect to V2APIResourceDiscovery + */ + public static V2APIResourceDiscovery fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2APIResourceDiscovery.class); + } + + /** + * Convert an instance of V2APIResourceDiscovery to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscovery.java new file mode 100644 index 0000000000..b051b83022 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APISubresourceDiscovery.java @@ -0,0 +1,338 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1GroupVersionKind; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * APISubresourceDiscovery provides information about an API subresource for discovery. + */ +@ApiModel(description = "APISubresourceDiscovery provides information about an API subresource for discovery.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V2APISubresourceDiscovery { + public static final String SERIALIZED_NAME_SUBRESOURCE = "subresource"; + @SerializedName(SERIALIZED_NAME_SUBRESOURCE) + @jakarta.annotation.Nonnull + private String subresource; + + public static final String SERIALIZED_NAME_RESPONSE_KIND = "responseKind"; + @SerializedName(SERIALIZED_NAME_RESPONSE_KIND) + @jakarta.annotation.Nullable + private V1GroupVersionKind responseKind; + + public static final String SERIALIZED_NAME_ACCEPTED_TYPES = "acceptedTypes"; + @SerializedName(SERIALIZED_NAME_ACCEPTED_TYPES) + @jakarta.annotation.Nullable + private List acceptedTypes = new ArrayList<>(); + + public static final String SERIALIZED_NAME_VERBS = "verbs"; + @SerializedName(SERIALIZED_NAME_VERBS) + @jakarta.annotation.Nonnull + private List verbs = new ArrayList<>(); + + public V2APISubresourceDiscovery() { + } + + public V2APISubresourceDiscovery subresource(@jakarta.annotation.Nonnull String subresource) { + this.subresource = subresource; + return this; + } + + /** + * subresource is the name of the subresource. + * @return subresource + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "subresource is the name of the subresource.") + public String getSubresource() { + return subresource; + } + + public void setSubresource(@jakarta.annotation.Nonnull String subresource) { + this.subresource = subresource; + } + + + public V2APISubresourceDiscovery responseKind(@jakarta.annotation.Nullable V1GroupVersionKind responseKind) { + this.responseKind = responseKind; + return this; + } + + /** + * Get responseKind + * @return responseKind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1GroupVersionKind getResponseKind() { + return responseKind; + } + + public void setResponseKind(@jakarta.annotation.Nullable V1GroupVersionKind responseKind) { + this.responseKind = responseKind; + } + + + public V2APISubresourceDiscovery acceptedTypes(@jakarta.annotation.Nullable List acceptedTypes) { + this.acceptedTypes = acceptedTypes; + return this; + } + + public V2APISubresourceDiscovery addAcceptedTypesItem(V1GroupVersionKind acceptedTypesItem) { + if (this.acceptedTypes == null) { + this.acceptedTypes = new ArrayList<>(); + } + this.acceptedTypes.add(acceptedTypesItem); + return this; + } + + /** + * Get acceptedTypes + * @return acceptedTypes + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public List getAcceptedTypes() { + return acceptedTypes; + } + + public void setAcceptedTypes(@jakarta.annotation.Nullable List acceptedTypes) { + this.acceptedTypes = acceptedTypes; + } + + + public V2APISubresourceDiscovery verbs(@jakarta.annotation.Nonnull List verbs) { + this.verbs = verbs; + return this; + } + + public V2APISubresourceDiscovery addVerbsItem(String verbsItem) { + if (this.verbs == null) { + this.verbs = new ArrayList<>(); + } + this.verbs.add(verbsItem); + return this; + } + + /** + * verbs is a list of supported API operation types + * @return verbs + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "verbs is a list of supported API operation types") + public List getVerbs() { + return verbs; + } + + public void setVerbs(@jakarta.annotation.Nonnull List verbs) { + this.verbs = verbs; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2APISubresourceDiscovery v2APISubresourceDiscovery = (V2APISubresourceDiscovery) o; + return Objects.equals(this.subresource, v2APISubresourceDiscovery.subresource) && + Objects.equals(this.responseKind, v2APISubresourceDiscovery.responseKind) && + Objects.equals(this.acceptedTypes, v2APISubresourceDiscovery.acceptedTypes) && + Objects.equals(this.verbs, v2APISubresourceDiscovery.verbs); + } + + @Override + public int hashCode() { + return Objects.hash(subresource, responseKind, acceptedTypes, verbs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V2APISubresourceDiscovery {\n"); + sb.append(" subresource: ").append(toIndentedString(subresource)).append("\n"); + sb.append(" responseKind: ").append(toIndentedString(responseKind)).append("\n"); + sb.append(" acceptedTypes: ").append(toIndentedString(acceptedTypes)).append("\n"); + sb.append(" verbs: ").append(toIndentedString(verbs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("subresource", "responseKind", "acceptedTypes", "verbs")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("subresource", "verbs")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V2APISubresourceDiscovery + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V2APISubresourceDiscovery.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V2APISubresourceDiscovery is not found in the empty JSON string", V2APISubresourceDiscovery.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V2APISubresourceDiscovery.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2APISubresourceDiscovery` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2APISubresourceDiscovery.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("subresource").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `subresource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subresource").toString())); + } + // validate the optional field `responseKind` + if (jsonObj.get("responseKind") != null && !jsonObj.get("responseKind").isJsonNull()) { + V1GroupVersionKind.validateJsonElement(jsonObj.get("responseKind")); + } + if (jsonObj.get("acceptedTypes") != null && !jsonObj.get("acceptedTypes").isJsonNull()) { + JsonArray jsonArrayacceptedTypes = jsonObj.getAsJsonArray("acceptedTypes"); + if (jsonArrayacceptedTypes != null) { + // ensure the json data is an array + if (!jsonObj.get("acceptedTypes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `acceptedTypes` to be an array in the JSON string but got `%s`", jsonObj.get("acceptedTypes").toString())); + } + + // validate the optional field `acceptedTypes` (array) + for (int i = 0; i < jsonArrayacceptedTypes.size(); i++) { + V1GroupVersionKind.validateJsonElement(jsonArrayacceptedTypes.get(i)); + }; + } + } + // ensure the required json array is present + if (jsonObj.get("verbs") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("verbs").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2APISubresourceDiscovery.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2APISubresourceDiscovery' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2APISubresourceDiscovery.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2APISubresourceDiscovery value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2APISubresourceDiscovery read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2APISubresourceDiscovery given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2APISubresourceDiscovery + * @throws IOException if the JSON string is invalid with respect to V2APISubresourceDiscovery + */ + public static V2APISubresourceDiscovery fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2APISubresourceDiscovery.class); + } + + /** + * Convert an instance of V2APISubresourceDiscovery to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscovery.java new file mode 100644 index 0000000000..0f6f0ebe46 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2APIVersionDiscovery.java @@ -0,0 +1,296 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V2APIResourceDiscovery; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group. + */ +@ApiModel(description = "APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V2APIVersionDiscovery { + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + @jakarta.annotation.Nonnull + private String version; + + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nullable + private List resources = new ArrayList<>(); + + public static final String SERIALIZED_NAME_FRESHNESS = "freshness"; + @SerializedName(SERIALIZED_NAME_FRESHNESS) + @jakarta.annotation.Nullable + private String freshness; + + public V2APIVersionDiscovery() { + } + + public V2APIVersionDiscovery version(@jakarta.annotation.Nonnull String version) { + this.version = version; + return this; + } + + /** + * version is the name of the version within a group version. + * @return version + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "version is the name of the version within a group version.") + public String getVersion() { + return version; + } + + public void setVersion(@jakarta.annotation.Nonnull String version) { + this.version = version; + } + + + public V2APIVersionDiscovery resources(@jakarta.annotation.Nullable List resources) { + this.resources = resources; + return this; + } + + public V2APIVersionDiscovery addResourcesItem(V2APIResourceDiscovery resourcesItem) { + if (this.resources == null) { + this.resources = new ArrayList<>(); + } + this.resources.add(resourcesItem); + return this; + } + + /** + * Get resources + * @return resources + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public List getResources() { + return resources; + } + + public void setResources(@jakarta.annotation.Nullable List resources) { + this.resources = resources; + } + + + public V2APIVersionDiscovery freshness(@jakarta.annotation.Nullable String freshness) { + this.freshness = freshness; + return this; + } + + /** + * freshness marks whether a group version's discovery document is up to date. + * @return freshness + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "freshness marks whether a group version's discovery document is up to date.") + public String getFreshness() { + return freshness; + } + + public void setFreshness(@jakarta.annotation.Nullable String freshness) { + this.freshness = freshness; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2APIVersionDiscovery v2APIVersionDiscovery = (V2APIVersionDiscovery) o; + return Objects.equals(this.version, v2APIVersionDiscovery.version) && + Objects.equals(this.resources, v2APIVersionDiscovery.resources) && + Objects.equals(this.freshness, v2APIVersionDiscovery.freshness); + } + + @Override + public int hashCode() { + return Objects.hash(version, resources, freshness); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V2APIVersionDiscovery {\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); + sb.append(" freshness: ").append(toIndentedString(freshness)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("version", "resources", "freshness")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("version")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V2APIVersionDiscovery + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V2APIVersionDiscovery.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V2APIVersionDiscovery is not found in the empty JSON string", V2APIVersionDiscovery.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V2APIVersionDiscovery.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2APIVersionDiscovery` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2APIVersionDiscovery.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); + } + if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonNull()) { + JsonArray jsonArrayresources = jsonObj.getAsJsonArray("resources"); + if (jsonArrayresources != null) { + // ensure the json data is an array + if (!jsonObj.get("resources").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resources` to be an array in the JSON string but got `%s`", jsonObj.get("resources").toString())); + } + + // validate the optional field `resources` (array) + for (int i = 0; i < jsonArrayresources.size(); i++) { + V2APIResourceDiscovery.validateJsonElement(jsonArrayresources.get(i)); + }; + } + } + if ((jsonObj.get("freshness") != null && !jsonObj.get("freshness").isJsonNull()) && !jsonObj.get("freshness").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `freshness` to be a primitive type in the JSON string but got `%s`", jsonObj.get("freshness").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2APIVersionDiscovery.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2APIVersionDiscovery' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2APIVersionDiscovery.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2APIVersionDiscovery value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2APIVersionDiscovery read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2APIVersionDiscovery given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2APIVersionDiscovery + * @throws IOException if the JSON string is invalid with respect to V2APIVersionDiscovery + */ + public static V2APIVersionDiscovery fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2APIVersionDiscovery.class); + } + + /** + * Convert an instance of V2APIVersionDiscovery to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java index 8e58985a89..f7abf556e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricSource.java @@ -51,7 +51,7 @@ * ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set. */ @ApiModel(description = "ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ContainerResourceMetricSource { public static final String SERIALIZED_NAME_CONTAINER = "container"; @SerializedName(SERIALIZED_NAME_CONTAINER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java index 934d851486..670f741ce2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ContainerResourceMetricStatus.java @@ -51,7 +51,7 @@ * ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. */ @ApiModel(description = "ContainerResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing a single container in each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ContainerResourceMetricStatus { public static final String SERIALIZED_NAME_CONTAINER = "container"; @SerializedName(SERIALIZED_NAME_CONTAINER) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java index 78c0152618..30c07975f9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2CrossVersionObjectReference.java @@ -50,7 +50,7 @@ * CrossVersionObjectReference contains enough information to let you identify the referred resource. */ @ApiModel(description = "CrossVersionObjectReference contains enough information to let you identify the referred resource.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2CrossVersionObjectReference { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java index 52101a16ef..fbc6087c3c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricSource.java @@ -52,7 +52,7 @@ * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). */ @ApiModel(description = "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ExternalMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; @SerializedName(SERIALIZED_NAME_METRIC) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java index 0dd8c28124..133f490c07 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ExternalMetricStatus.java @@ -52,7 +52,7 @@ * ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. */ @ApiModel(description = "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ExternalMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java index fa90b560da..5f9e5e2f5e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingPolicy.java @@ -50,7 +50,7 @@ * HPAScalingPolicy is a single policy which must hold true for a specified past interval. */ @ApiModel(description = "HPAScalingPolicy is a single policy which must hold true for a specified past interval.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HPAScalingPolicy { public static final String SERIALIZED_NAME_PERIOD_SECONDS = "periodSeconds"; @SerializedName(SERIALIZED_NAME_PERIOD_SECONDS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java index 3ae2d98e5a..7e3f407ced 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HPAScalingRules.java @@ -54,7 +54,7 @@ * HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance. Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires the beta HPAConfigurableTolerance feature gate to be enabled.) */ @ApiModel(description = "HPAScalingRules configures the scaling behavior for one direction via scaling Policy Rules and a configurable metric tolerance. Scaling Policy Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen. The tolerance is applied to the metric values and prevents scaling too eagerly for small metric variations. (Note that setting a tolerance requires the beta HPAConfigurableTolerance feature gate to be enabled.)") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HPAScalingRules { public static final String SERIALIZED_NAME_POLICIES = "policies"; @SerializedName(SERIALIZED_NAME_POLICIES) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java index 04706b3757..9c4eed3bf7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscaler.java @@ -53,7 +53,7 @@ * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. */ @ApiModel(description = "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HorizontalPodAutoscaler implements io.kubernetes.client.common.KubernetesObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) @@ -72,7 +72,7 @@ public class V2HorizontalPodAutoscaler implements io.kubernetes.client.common.Ku public static final String SERIALIZED_NAME_SPEC = "spec"; @SerializedName(SERIALIZED_NAME_SPEC) - @jakarta.annotation.Nullable + @jakarta.annotation.Nonnull private V2HorizontalPodAutoscalerSpec spec; public static final String SERIALIZED_NAME_STATUS = "status"; @@ -143,7 +143,7 @@ public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { } - public V2HorizontalPodAutoscaler spec(@jakarta.annotation.Nullable V2HorizontalPodAutoscalerSpec spec) { + public V2HorizontalPodAutoscaler spec(@jakarta.annotation.Nonnull V2HorizontalPodAutoscalerSpec spec) { this.spec = spec; return this; } @@ -152,13 +152,13 @@ public V2HorizontalPodAutoscaler spec(@jakarta.annotation.Nullable V2HorizontalP * Get spec * @return spec */ - @jakarta.annotation.Nullable - @ApiModelProperty(value = "") + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public V2HorizontalPodAutoscalerSpec getSpec() { return spec; } - public void setSpec(@jakarta.annotation.Nullable V2HorizontalPodAutoscalerSpec spec) { + public void setSpec(@jakarta.annotation.Nonnull V2HorizontalPodAutoscalerSpec spec) { this.spec = spec; } @@ -238,7 +238,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "spec", "status")); // a set of required properties/fields (JSON key names) - openapiRequiredFields = new HashSet(0); + openapiRequiredFields = new HashSet(Arrays.asList("spec")); } /** @@ -261,6 +261,13 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2HorizontalPodAutoscaler` properties. JSON: %s", entry.getKey(), jsonElement.toString())); } } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2HorizontalPodAutoscaler.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } JsonObject jsonObj = jsonElement.getAsJsonObject(); if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); @@ -272,10 +279,8 @@ public static void validateJsonElement(JsonElement jsonElement) throws IOExcepti if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); } - // validate the optional field `spec` - if (jsonObj.get("spec") != null && !jsonObj.get("spec").isJsonNull()) { - V2HorizontalPodAutoscalerSpec.validateJsonElement(jsonObj.get("spec")); - } + // validate the required field `spec` + V2HorizontalPodAutoscalerSpec.validateJsonElement(jsonObj.get("spec")); // validate the optional field `status` if (jsonObj.get("status") != null && !jsonObj.get("status").isJsonNull()) { V2HorizontalPodAutoscalerStatus.validateJsonElement(jsonObj.get("status")); diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java index b82d72e321..a7b7ae721c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerBehavior.java @@ -51,7 +51,7 @@ * HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively). */ @ApiModel(description = "HorizontalPodAutoscalerBehavior configures the scaling behavior of the target in both Up and Down directions (scaleUp and scaleDown fields respectively).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HorizontalPodAutoscalerBehavior { public static final String SERIALIZED_NAME_SCALE_DOWN = "scaleDown"; @SerializedName(SERIALIZED_NAME_SCALE_DOWN) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java index b1e8b3fbd2..d0ce018c16 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerCondition.java @@ -51,7 +51,7 @@ * HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. */ @ApiModel(description = "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HorizontalPodAutoscalerCondition { public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java index 54e85d57f3..5db1ced9d4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerList.java @@ -54,7 +54,7 @@ * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. */ @ApiModel(description = "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HorizontalPodAutoscalerList implements io.kubernetes.client.common.KubernetesListObject { public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; @SerializedName(SERIALIZED_NAME_API_VERSION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java index 0d9fa35afd..8a4ff05b10 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerSpec.java @@ -55,7 +55,7 @@ * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. */ @ApiModel(description = "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HorizontalPodAutoscalerSpec { public static final String SERIALIZED_NAME_BEHAVIOR = "behavior"; @SerializedName(SERIALIZED_NAME_BEHAVIOR) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java index 3145722c82..d352536f3f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2HorizontalPodAutoscalerStatus.java @@ -55,7 +55,7 @@ * HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. */ @ApiModel(description = "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2HorizontalPodAutoscalerStatus { public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; @SerializedName(SERIALIZED_NAME_CONDITIONS) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java index 26d1ac9fce..c494f2ade5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricIdentifier.java @@ -51,7 +51,7 @@ * MetricIdentifier defines the name and optionally selector for a metric */ @ApiModel(description = "MetricIdentifier defines the name and optionally selector for a metric") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2MetricIdentifier { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java index 8b8ab72019..94161306a5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricSpec.java @@ -55,7 +55,7 @@ * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). */ @ApiModel(description = "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2MetricSpec { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; @SerializedName(SERIALIZED_NAME_CONTAINER_RESOURCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java index d19e63c0c0..23a38ba2d6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricStatus.java @@ -55,7 +55,7 @@ * MetricStatus describes the last-read state of a single metric. */ @ApiModel(description = "MetricStatus describes the last-read state of a single metric.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2MetricStatus { public static final String SERIALIZED_NAME_CONTAINER_RESOURCE = "containerResource"; @SerializedName(SERIALIZED_NAME_CONTAINER_RESOURCE) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java index 49b2abb0b4..9a7046f8c2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricTarget.java @@ -51,7 +51,7 @@ * MetricTarget defines the target value, average value, or average utilization of a specific metric */ @ApiModel(description = "MetricTarget defines the target value, average value, or average utilization of a specific metric") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2MetricTarget { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; @SerializedName(SERIALIZED_NAME_AVERAGE_UTILIZATION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java index b6076b383b..6a9eda7e60 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2MetricValueStatus.java @@ -51,7 +51,7 @@ * MetricValueStatus holds the current value for a metric */ @ApiModel(description = "MetricValueStatus holds the current value for a metric") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2MetricValueStatus { public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; @SerializedName(SERIALIZED_NAME_AVERAGE_UTILIZATION) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java index f1b5f8814a..44156c4d7f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricSource.java @@ -53,7 +53,7 @@ * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). */ @ApiModel(description = "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ObjectMetricSource { public static final String SERIALIZED_NAME_DESCRIBED_OBJECT = "describedObject"; @SerializedName(SERIALIZED_NAME_DESCRIBED_OBJECT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java index e7fbdef7c0..20afd2fafe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ObjectMetricStatus.java @@ -53,7 +53,7 @@ * ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). */ @ApiModel(description = "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ObjectMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java index a85efcbd35..35c689627f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricSource.java @@ -52,7 +52,7 @@ * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. */ @ApiModel(description = "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2PodsMetricSource { public static final String SERIALIZED_NAME_METRIC = "metric"; @SerializedName(SERIALIZED_NAME_METRIC) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java index 0e3c4e075a..3c7a0901a5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2PodsMetricStatus.java @@ -52,7 +52,7 @@ * PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). */ @ApiModel(description = "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2PodsMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java index f6d120807f..3a267b3d7a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricSource.java @@ -51,7 +51,7 @@ * ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set. */ @ApiModel(description = "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ResourceMetricSource { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java index 5c1f8f62d8..bfbe9a7ca9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2ResourceMetricStatus.java @@ -51,7 +51,7 @@ * ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. */ @ApiModel(description = "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class V2ResourceMetricStatus { public static final String SERIALIZED_NAME_CURRENT = "current"; @SerializedName(SERIALIZED_NAME_CURRENT) diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscovery.java new file mode 100644 index 0000000000..c2b7dae6c6 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscovery.java @@ -0,0 +1,321 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ObjectMeta; +import io.kubernetes.client.openapi.models.V2beta1APIVersionDiscovery; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry. + */ +@ApiModel(description = "APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V2beta1APIGroupDiscovery implements io.kubernetes.client.common.KubernetesObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_VERSIONS = "versions"; + @SerializedName(SERIALIZED_NAME_VERSIONS) + @jakarta.annotation.Nullable + private List versions = new ArrayList<>(); + + public V2beta1APIGroupDiscovery() { + } + + public V2beta1APIGroupDiscovery apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Get apiVersion + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V2beta1APIGroupDiscovery kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * Get kind + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V2beta1APIGroupDiscovery metadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ObjectMeta metadata) { + this.metadata = metadata; + } + + + public V2beta1APIGroupDiscovery versions(@jakarta.annotation.Nullable List versions) { + this.versions = versions; + return this; + } + + public V2beta1APIGroupDiscovery addVersionsItem(V2beta1APIVersionDiscovery versionsItem) { + if (this.versions == null) { + this.versions = new ArrayList<>(); + } + this.versions.add(versionsItem); + return this; + } + + /** + * Get versions + * @return versions + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public List getVersions() { + return versions; + } + + public void setVersions(@jakarta.annotation.Nullable List versions) { + this.versions = versions; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2beta1APIGroupDiscovery v2beta1APIGroupDiscovery = (V2beta1APIGroupDiscovery) o; + return Objects.equals(this.apiVersion, v2beta1APIGroupDiscovery.apiVersion) && + Objects.equals(this.kind, v2beta1APIGroupDiscovery.kind) && + Objects.equals(this.metadata, v2beta1APIGroupDiscovery.metadata) && + Objects.equals(this.versions, v2beta1APIGroupDiscovery.versions); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, versions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V2beta1APIGroupDiscovery {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" versions: ").append(toIndentedString(versions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "versions")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(0); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V2beta1APIGroupDiscovery + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V2beta1APIGroupDiscovery.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V2beta1APIGroupDiscovery is not found in the empty JSON string", V2beta1APIGroupDiscovery.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V2beta1APIGroupDiscovery.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2beta1APIGroupDiscovery` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ObjectMeta.validateJsonElement(jsonObj.get("metadata")); + } + if (jsonObj.get("versions") != null && !jsonObj.get("versions").isJsonNull()) { + JsonArray jsonArrayversions = jsonObj.getAsJsonArray("versions"); + if (jsonArrayversions != null) { + // ensure the json data is an array + if (!jsonObj.get("versions").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `versions` to be an array in the JSON string but got `%s`", jsonObj.get("versions").toString())); + } + + // validate the optional field `versions` (array) + for (int i = 0; i < jsonArrayversions.size(); i++) { + V2beta1APIVersionDiscovery.validateJsonElement(jsonArrayversions.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2beta1APIGroupDiscovery.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2beta1APIGroupDiscovery' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2beta1APIGroupDiscovery.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2beta1APIGroupDiscovery value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2beta1APIGroupDiscovery read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2beta1APIGroupDiscovery given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2beta1APIGroupDiscovery + * @throws IOException if the JSON string is invalid with respect to V2beta1APIGroupDiscovery + */ + public static V2beta1APIGroupDiscovery fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2beta1APIGroupDiscovery.class); + } + + /** + * Convert an instance of V2beta1APIGroupDiscovery to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryList.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryList.java new file mode 100644 index 0000000000..cbd9cfce4b --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIGroupDiscoveryList.java @@ -0,0 +1,324 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1ListMeta; +import io.kubernetes.client.openapi.models.V2beta1APIGroupDiscovery; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports. + */ +@ApiModel(description = "APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V2beta1APIGroupDiscoveryList implements io.kubernetes.client.common.KubernetesListObject { + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + @jakarta.annotation.Nullable + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + @jakarta.annotation.Nullable + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + @jakarta.annotation.Nullable + private V1ListMeta metadata; + + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + @jakarta.annotation.Nonnull + private List items = new ArrayList<>(); + + public V2beta1APIGroupDiscoveryList() { + } + + public V2beta1APIGroupDiscoveryList apiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + return this; + } + + /** + * Get apiVersion + * @return apiVersion + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public String getApiVersion() { + return apiVersion; + } + + public void setApiVersion(@jakarta.annotation.Nullable String apiVersion) { + this.apiVersion = apiVersion; + } + + + public V2beta1APIGroupDiscoveryList kind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + return this; + } + + /** + * Get kind + * @return kind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public String getKind() { + return kind; + } + + public void setKind(@jakarta.annotation.Nullable String kind) { + this.kind = kind; + } + + + public V2beta1APIGroupDiscoveryList metadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + return this; + } + + /** + * Get metadata + * @return metadata + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { + return metadata; + } + + public void setMetadata(@jakarta.annotation.Nullable V1ListMeta metadata) { + this.metadata = metadata; + } + + + public V2beta1APIGroupDiscoveryList items(@jakarta.annotation.Nonnull List items) { + this.items = items; + return this; + } + + public V2beta1APIGroupDiscoveryList addItemsItem(V2beta1APIGroupDiscovery itemsItem) { + if (this.items == null) { + this.items = new ArrayList<>(); + } + this.items.add(itemsItem); + return this; + } + + /** + * Get items + * @return items + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public List getItems() { + return items; + } + + public void setItems(@jakarta.annotation.Nonnull List items) { + this.items = items; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2beta1APIGroupDiscoveryList v2beta1APIGroupDiscoveryList = (V2beta1APIGroupDiscoveryList) o; + return Objects.equals(this.apiVersion, v2beta1APIGroupDiscoveryList.apiVersion) && + Objects.equals(this.kind, v2beta1APIGroupDiscoveryList.kind) && + Objects.equals(this.metadata, v2beta1APIGroupDiscoveryList.metadata) && + Objects.equals(this.items, v2beta1APIGroupDiscoveryList.items); + } + + @Override + public int hashCode() { + return Objects.hash(apiVersion, kind, metadata, items); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V2beta1APIGroupDiscoveryList {\n"); + sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); + sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); + sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("apiVersion", "kind", "metadata", "items")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("items")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V2beta1APIGroupDiscoveryList + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V2beta1APIGroupDiscoveryList.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V2beta1APIGroupDiscoveryList is not found in the empty JSON string", V2beta1APIGroupDiscoveryList.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V2beta1APIGroupDiscoveryList.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2beta1APIGroupDiscoveryList` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2beta1APIGroupDiscoveryList.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if ((jsonObj.get("apiVersion") != null && !jsonObj.get("apiVersion").isJsonNull()) && !jsonObj.get("apiVersion").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `apiVersion` to be a primitive type in the JSON string but got `%s`", jsonObj.get("apiVersion").toString())); + } + if ((jsonObj.get("kind") != null && !jsonObj.get("kind").isJsonNull()) && !jsonObj.get("kind").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `kind` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kind").toString())); + } + // validate the optional field `metadata` + if (jsonObj.get("metadata") != null && !jsonObj.get("metadata").isJsonNull()) { + V1ListMeta.validateJsonElement(jsonObj.get("metadata")); + } + // ensure the json data is an array + if (!jsonObj.get("items").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `items` to be an array in the JSON string but got `%s`", jsonObj.get("items").toString())); + } + + JsonArray jsonArrayitems = jsonObj.getAsJsonArray("items"); + // validate the required field `items` (array) + for (int i = 0; i < jsonArrayitems.size(); i++) { + V2beta1APIGroupDiscovery.validateJsonElement(jsonArrayitems.get(i)); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2beta1APIGroupDiscoveryList.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2beta1APIGroupDiscoveryList' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2beta1APIGroupDiscoveryList.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2beta1APIGroupDiscoveryList value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2beta1APIGroupDiscoveryList read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2beta1APIGroupDiscoveryList given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2beta1APIGroupDiscoveryList + * @throws IOException if the JSON string is invalid with respect to V2beta1APIGroupDiscoveryList + */ + public static V2beta1APIGroupDiscoveryList fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2beta1APIGroupDiscoveryList.class); + } + + /** + * Convert an instance of V2beta1APIGroupDiscoveryList to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscovery.java new file mode 100644 index 0000000000..e2d7a0b3b2 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIResourceDiscovery.java @@ -0,0 +1,477 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1GroupVersionKind; +import io.kubernetes.client.openapi.models.V2beta1APISubresourceDiscovery; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * APIResourceDiscovery provides information about an API resource for discovery. + */ +@ApiModel(description = "APIResourceDiscovery provides information about an API resource for discovery.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V2beta1APIResourceDiscovery { + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + @jakarta.annotation.Nonnull + private String resource; + + public static final String SERIALIZED_NAME_RESPONSE_KIND = "responseKind"; + @SerializedName(SERIALIZED_NAME_RESPONSE_KIND) + @jakarta.annotation.Nullable + private V1GroupVersionKind responseKind; + + public static final String SERIALIZED_NAME_SCOPE = "scope"; + @SerializedName(SERIALIZED_NAME_SCOPE) + @jakarta.annotation.Nonnull + private String scope; + + public static final String SERIALIZED_NAME_SINGULAR_RESOURCE = "singularResource"; + @SerializedName(SERIALIZED_NAME_SINGULAR_RESOURCE) + @jakarta.annotation.Nonnull + private String singularResource; + + public static final String SERIALIZED_NAME_VERBS = "verbs"; + @SerializedName(SERIALIZED_NAME_VERBS) + @jakarta.annotation.Nonnull + private List verbs = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SHORT_NAMES = "shortNames"; + @SerializedName(SERIALIZED_NAME_SHORT_NAMES) + @jakarta.annotation.Nullable + private List shortNames = new ArrayList<>(); + + public static final String SERIALIZED_NAME_CATEGORIES = "categories"; + @SerializedName(SERIALIZED_NAME_CATEGORIES) + @jakarta.annotation.Nullable + private List categories = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SUBRESOURCES = "subresources"; + @SerializedName(SERIALIZED_NAME_SUBRESOURCES) + @jakarta.annotation.Nullable + private List subresources = new ArrayList<>(); + + public V2beta1APIResourceDiscovery() { + } + + public V2beta1APIResourceDiscovery resource(@jakarta.annotation.Nonnull String resource) { + this.resource = resource; + return this; + } + + /** + * resource is the plural name of the resource. + * @return resource + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "resource is the plural name of the resource.") + public String getResource() { + return resource; + } + + public void setResource(@jakarta.annotation.Nonnull String resource) { + this.resource = resource; + } + + + public V2beta1APIResourceDiscovery responseKind(@jakarta.annotation.Nullable V1GroupVersionKind responseKind) { + this.responseKind = responseKind; + return this; + } + + /** + * Get responseKind + * @return responseKind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1GroupVersionKind getResponseKind() { + return responseKind; + } + + public void setResponseKind(@jakarta.annotation.Nullable V1GroupVersionKind responseKind) { + this.responseKind = responseKind; + } + + + public V2beta1APIResourceDiscovery scope(@jakarta.annotation.Nonnull String scope) { + this.scope = scope; + return this; + } + + /** + * scope indicates the scope of a resource, either Cluster or Namespaced + * @return scope + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "scope indicates the scope of a resource, either Cluster or Namespaced") + public String getScope() { + return scope; + } + + public void setScope(@jakarta.annotation.Nonnull String scope) { + this.scope = scope; + } + + + public V2beta1APIResourceDiscovery singularResource(@jakarta.annotation.Nonnull String singularResource) { + this.singularResource = singularResource; + return this; + } + + /** + * singularResource is the singular name of the resource. + * @return singularResource + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "singularResource is the singular name of the resource.") + public String getSingularResource() { + return singularResource; + } + + public void setSingularResource(@jakarta.annotation.Nonnull String singularResource) { + this.singularResource = singularResource; + } + + + public V2beta1APIResourceDiscovery verbs(@jakarta.annotation.Nonnull List verbs) { + this.verbs = verbs; + return this; + } + + public V2beta1APIResourceDiscovery addVerbsItem(String verbsItem) { + if (this.verbs == null) { + this.verbs = new ArrayList<>(); + } + this.verbs.add(verbsItem); + return this; + } + + /** + * verbs is a list of supported API operation types + * @return verbs + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "verbs is a list of supported API operation types") + public List getVerbs() { + return verbs; + } + + public void setVerbs(@jakarta.annotation.Nonnull List verbs) { + this.verbs = verbs; + } + + + public V2beta1APIResourceDiscovery shortNames(@jakarta.annotation.Nullable List shortNames) { + this.shortNames = shortNames; + return this; + } + + public V2beta1APIResourceDiscovery addShortNamesItem(String shortNamesItem) { + if (this.shortNames == null) { + this.shortNames = new ArrayList<>(); + } + this.shortNames.add(shortNamesItem); + return this; + } + + /** + * shortNames is a list of suggested short names of the resource. + * @return shortNames + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "shortNames is a list of suggested short names of the resource.") + public List getShortNames() { + return shortNames; + } + + public void setShortNames(@jakarta.annotation.Nullable List shortNames) { + this.shortNames = shortNames; + } + + + public V2beta1APIResourceDiscovery categories(@jakarta.annotation.Nullable List categories) { + this.categories = categories; + return this; + } + + public V2beta1APIResourceDiscovery addCategoriesItem(String categoriesItem) { + if (this.categories == null) { + this.categories = new ArrayList<>(); + } + this.categories.add(categoriesItem); + return this; + } + + /** + * categories is a list of the grouped resources this resource belongs to. + * @return categories + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "categories is a list of the grouped resources this resource belongs to.") + public List getCategories() { + return categories; + } + + public void setCategories(@jakarta.annotation.Nullable List categories) { + this.categories = categories; + } + + + public V2beta1APIResourceDiscovery subresources(@jakarta.annotation.Nullable List subresources) { + this.subresources = subresources; + return this; + } + + public V2beta1APIResourceDiscovery addSubresourcesItem(V2beta1APISubresourceDiscovery subresourcesItem) { + if (this.subresources == null) { + this.subresources = new ArrayList<>(); + } + this.subresources.add(subresourcesItem); + return this; + } + + /** + * Get subresources + * @return subresources + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public List getSubresources() { + return subresources; + } + + public void setSubresources(@jakarta.annotation.Nullable List subresources) { + this.subresources = subresources; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2beta1APIResourceDiscovery v2beta1APIResourceDiscovery = (V2beta1APIResourceDiscovery) o; + return Objects.equals(this.resource, v2beta1APIResourceDiscovery.resource) && + Objects.equals(this.responseKind, v2beta1APIResourceDiscovery.responseKind) && + Objects.equals(this.scope, v2beta1APIResourceDiscovery.scope) && + Objects.equals(this.singularResource, v2beta1APIResourceDiscovery.singularResource) && + Objects.equals(this.verbs, v2beta1APIResourceDiscovery.verbs) && + Objects.equals(this.shortNames, v2beta1APIResourceDiscovery.shortNames) && + Objects.equals(this.categories, v2beta1APIResourceDiscovery.categories) && + Objects.equals(this.subresources, v2beta1APIResourceDiscovery.subresources); + } + + @Override + public int hashCode() { + return Objects.hash(resource, responseKind, scope, singularResource, verbs, shortNames, categories, subresources); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V2beta1APIResourceDiscovery {\n"); + sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); + sb.append(" responseKind: ").append(toIndentedString(responseKind)).append("\n"); + sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); + sb.append(" singularResource: ").append(toIndentedString(singularResource)).append("\n"); + sb.append(" verbs: ").append(toIndentedString(verbs)).append("\n"); + sb.append(" shortNames: ").append(toIndentedString(shortNames)).append("\n"); + sb.append(" categories: ").append(toIndentedString(categories)).append("\n"); + sb.append(" subresources: ").append(toIndentedString(subresources)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("resource", "responseKind", "scope", "singularResource", "verbs", "shortNames", "categories", "subresources")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("resource", "scope", "singularResource", "verbs")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V2beta1APIResourceDiscovery + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V2beta1APIResourceDiscovery.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V2beta1APIResourceDiscovery is not found in the empty JSON string", V2beta1APIResourceDiscovery.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V2beta1APIResourceDiscovery.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2beta1APIResourceDiscovery` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2beta1APIResourceDiscovery.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("resource").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("resource").toString())); + } + // validate the optional field `responseKind` + if (jsonObj.get("responseKind") != null && !jsonObj.get("responseKind").isJsonNull()) { + V1GroupVersionKind.validateJsonElement(jsonObj.get("responseKind")); + } + if (!jsonObj.get("scope").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); + } + if (!jsonObj.get("singularResource").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `singularResource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("singularResource").toString())); + } + // ensure the required json array is present + if (jsonObj.get("verbs") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("verbs").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("shortNames") != null && !jsonObj.get("shortNames").isJsonNull() && !jsonObj.get("shortNames").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `shortNames` to be an array in the JSON string but got `%s`", jsonObj.get("shortNames").toString())); + } + // ensure the optional json data is an array if present + if (jsonObj.get("categories") != null && !jsonObj.get("categories").isJsonNull() && !jsonObj.get("categories").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `categories` to be an array in the JSON string but got `%s`", jsonObj.get("categories").toString())); + } + if (jsonObj.get("subresources") != null && !jsonObj.get("subresources").isJsonNull()) { + JsonArray jsonArraysubresources = jsonObj.getAsJsonArray("subresources"); + if (jsonArraysubresources != null) { + // ensure the json data is an array + if (!jsonObj.get("subresources").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `subresources` to be an array in the JSON string but got `%s`", jsonObj.get("subresources").toString())); + } + + // validate the optional field `subresources` (array) + for (int i = 0; i < jsonArraysubresources.size(); i++) { + V2beta1APISubresourceDiscovery.validateJsonElement(jsonArraysubresources.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2beta1APIResourceDiscovery.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2beta1APIResourceDiscovery' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2beta1APIResourceDiscovery.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2beta1APIResourceDiscovery value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2beta1APIResourceDiscovery read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2beta1APIResourceDiscovery given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2beta1APIResourceDiscovery + * @throws IOException if the JSON string is invalid with respect to V2beta1APIResourceDiscovery + */ + public static V2beta1APIResourceDiscovery fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2beta1APIResourceDiscovery.class); + } + + /** + * Convert an instance of V2beta1APIResourceDiscovery to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscovery.java new file mode 100644 index 0000000000..1568282101 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APISubresourceDiscovery.java @@ -0,0 +1,338 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V1GroupVersionKind; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * APISubresourceDiscovery provides information about an API subresource for discovery. + */ +@ApiModel(description = "APISubresourceDiscovery provides information about an API subresource for discovery.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V2beta1APISubresourceDiscovery { + public static final String SERIALIZED_NAME_SUBRESOURCE = "subresource"; + @SerializedName(SERIALIZED_NAME_SUBRESOURCE) + @jakarta.annotation.Nonnull + private String subresource; + + public static final String SERIALIZED_NAME_RESPONSE_KIND = "responseKind"; + @SerializedName(SERIALIZED_NAME_RESPONSE_KIND) + @jakarta.annotation.Nullable + private V1GroupVersionKind responseKind; + + public static final String SERIALIZED_NAME_VERBS = "verbs"; + @SerializedName(SERIALIZED_NAME_VERBS) + @jakarta.annotation.Nonnull + private List verbs = new ArrayList<>(); + + public static final String SERIALIZED_NAME_ACCEPTED_TYPES = "acceptedTypes"; + @SerializedName(SERIALIZED_NAME_ACCEPTED_TYPES) + @jakarta.annotation.Nullable + private List acceptedTypes = new ArrayList<>(); + + public V2beta1APISubresourceDiscovery() { + } + + public V2beta1APISubresourceDiscovery subresource(@jakarta.annotation.Nonnull String subresource) { + this.subresource = subresource; + return this; + } + + /** + * subresource is the name of the subresource. + * @return subresource + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "subresource is the name of the subresource.") + public String getSubresource() { + return subresource; + } + + public void setSubresource(@jakarta.annotation.Nonnull String subresource) { + this.subresource = subresource; + } + + + public V2beta1APISubresourceDiscovery responseKind(@jakarta.annotation.Nullable V1GroupVersionKind responseKind) { + this.responseKind = responseKind; + return this; + } + + /** + * Get responseKind + * @return responseKind + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public V1GroupVersionKind getResponseKind() { + return responseKind; + } + + public void setResponseKind(@jakarta.annotation.Nullable V1GroupVersionKind responseKind) { + this.responseKind = responseKind; + } + + + public V2beta1APISubresourceDiscovery verbs(@jakarta.annotation.Nonnull List verbs) { + this.verbs = verbs; + return this; + } + + public V2beta1APISubresourceDiscovery addVerbsItem(String verbsItem) { + if (this.verbs == null) { + this.verbs = new ArrayList<>(); + } + this.verbs.add(verbsItem); + return this; + } + + /** + * verbs is a list of supported API operation types + * @return verbs + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "verbs is a list of supported API operation types") + public List getVerbs() { + return verbs; + } + + public void setVerbs(@jakarta.annotation.Nonnull List verbs) { + this.verbs = verbs; + } + + + public V2beta1APISubresourceDiscovery acceptedTypes(@jakarta.annotation.Nullable List acceptedTypes) { + this.acceptedTypes = acceptedTypes; + return this; + } + + public V2beta1APISubresourceDiscovery addAcceptedTypesItem(V1GroupVersionKind acceptedTypesItem) { + if (this.acceptedTypes == null) { + this.acceptedTypes = new ArrayList<>(); + } + this.acceptedTypes.add(acceptedTypesItem); + return this; + } + + /** + * Get acceptedTypes + * @return acceptedTypes + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public List getAcceptedTypes() { + return acceptedTypes; + } + + public void setAcceptedTypes(@jakarta.annotation.Nullable List acceptedTypes) { + this.acceptedTypes = acceptedTypes; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2beta1APISubresourceDiscovery v2beta1APISubresourceDiscovery = (V2beta1APISubresourceDiscovery) o; + return Objects.equals(this.subresource, v2beta1APISubresourceDiscovery.subresource) && + Objects.equals(this.responseKind, v2beta1APISubresourceDiscovery.responseKind) && + Objects.equals(this.verbs, v2beta1APISubresourceDiscovery.verbs) && + Objects.equals(this.acceptedTypes, v2beta1APISubresourceDiscovery.acceptedTypes); + } + + @Override + public int hashCode() { + return Objects.hash(subresource, responseKind, verbs, acceptedTypes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V2beta1APISubresourceDiscovery {\n"); + sb.append(" subresource: ").append(toIndentedString(subresource)).append("\n"); + sb.append(" responseKind: ").append(toIndentedString(responseKind)).append("\n"); + sb.append(" verbs: ").append(toIndentedString(verbs)).append("\n"); + sb.append(" acceptedTypes: ").append(toIndentedString(acceptedTypes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("subresource", "responseKind", "verbs", "acceptedTypes")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("subresource", "verbs")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V2beta1APISubresourceDiscovery + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V2beta1APISubresourceDiscovery.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V2beta1APISubresourceDiscovery is not found in the empty JSON string", V2beta1APISubresourceDiscovery.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V2beta1APISubresourceDiscovery.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2beta1APISubresourceDiscovery` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2beta1APISubresourceDiscovery.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("subresource").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `subresource` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subresource").toString())); + } + // validate the optional field `responseKind` + if (jsonObj.get("responseKind") != null && !jsonObj.get("responseKind").isJsonNull()) { + V1GroupVersionKind.validateJsonElement(jsonObj.get("responseKind")); + } + // ensure the required json array is present + if (jsonObj.get("verbs") == null) { + throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); + } else if (!jsonObj.get("verbs").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `verbs` to be an array in the JSON string but got `%s`", jsonObj.get("verbs").toString())); + } + if (jsonObj.get("acceptedTypes") != null && !jsonObj.get("acceptedTypes").isJsonNull()) { + JsonArray jsonArrayacceptedTypes = jsonObj.getAsJsonArray("acceptedTypes"); + if (jsonArrayacceptedTypes != null) { + // ensure the json data is an array + if (!jsonObj.get("acceptedTypes").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `acceptedTypes` to be an array in the JSON string but got `%s`", jsonObj.get("acceptedTypes").toString())); + } + + // validate the optional field `acceptedTypes` (array) + for (int i = 0; i < jsonArrayacceptedTypes.size(); i++) { + V1GroupVersionKind.validateJsonElement(jsonArrayacceptedTypes.get(i)); + }; + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2beta1APISubresourceDiscovery.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2beta1APISubresourceDiscovery' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2beta1APISubresourceDiscovery.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2beta1APISubresourceDiscovery value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2beta1APISubresourceDiscovery read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2beta1APISubresourceDiscovery given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2beta1APISubresourceDiscovery + * @throws IOException if the JSON string is invalid with respect to V2beta1APISubresourceDiscovery + */ + public static V2beta1APISubresourceDiscovery fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2beta1APISubresourceDiscovery.class); + } + + /** + * Convert an instance of V2beta1APISubresourceDiscovery to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscovery.java new file mode 100644 index 0000000000..dd688cd14c --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/V2beta1APIVersionDiscovery.java @@ -0,0 +1,296 @@ +/* +Copyright 2026 The Kubernetes Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at +http://www.apache.org/licenses/LICENSE-2.0 +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ +package io.kubernetes.client.openapi.models; + +import java.util.Objects; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.openapi.models.V2beta1APIResourceDiscovery; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; +import com.google.gson.TypeAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; + +import io.kubernetes.client.openapi.JSON; + +/** + * APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group. + */ +@ApiModel(description = "APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") +public class V2beta1APIVersionDiscovery { + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + @jakarta.annotation.Nonnull + private String version; + + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) + @jakarta.annotation.Nullable + private List resources = new ArrayList<>(); + + public static final String SERIALIZED_NAME_FRESHNESS = "freshness"; + @SerializedName(SERIALIZED_NAME_FRESHNESS) + @jakarta.annotation.Nullable + private String freshness; + + public V2beta1APIVersionDiscovery() { + } + + public V2beta1APIVersionDiscovery version(@jakarta.annotation.Nonnull String version) { + this.version = version; + return this; + } + + /** + * version is the name of the version within a group version. + * @return version + */ + @jakarta.annotation.Nonnull + @ApiModelProperty(required = true, value = "version is the name of the version within a group version.") + public String getVersion() { + return version; + } + + public void setVersion(@jakarta.annotation.Nonnull String version) { + this.version = version; + } + + + public V2beta1APIVersionDiscovery resources(@jakarta.annotation.Nullable List resources) { + this.resources = resources; + return this; + } + + public V2beta1APIVersionDiscovery addResourcesItem(V2beta1APIResourceDiscovery resourcesItem) { + if (this.resources == null) { + this.resources = new ArrayList<>(); + } + this.resources.add(resourcesItem); + return this; + } + + /** + * Get resources + * @return resources + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "") + public List getResources() { + return resources; + } + + public void setResources(@jakarta.annotation.Nullable List resources) { + this.resources = resources; + } + + + public V2beta1APIVersionDiscovery freshness(@jakarta.annotation.Nullable String freshness) { + this.freshness = freshness; + return this; + } + + /** + * freshness marks whether a group version's discovery document is up to date. + * @return freshness + */ + @jakarta.annotation.Nullable + @ApiModelProperty(value = "freshness marks whether a group version's discovery document is up to date.") + public String getFreshness() { + return freshness; + } + + public void setFreshness(@jakarta.annotation.Nullable String freshness) { + this.freshness = freshness; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2beta1APIVersionDiscovery v2beta1APIVersionDiscovery = (V2beta1APIVersionDiscovery) o; + return Objects.equals(this.version, v2beta1APIVersionDiscovery.version) && + Objects.equals(this.resources, v2beta1APIVersionDiscovery.resources) && + Objects.equals(this.freshness, v2beta1APIVersionDiscovery.freshness); + } + + @Override + public int hashCode() { + return Objects.hash(version, resources, freshness); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V2beta1APIVersionDiscovery {\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); + sb.append(" freshness: ").append(toIndentedString(freshness)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(Arrays.asList("version", "resources", "freshness")); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(Arrays.asList("version")); + } + + /** + * Validates the JSON Element and throws an exception if issues found + * + * @param jsonElement JSON Element + * @throws IOException if the JSON Element is invalid with respect to V2beta1APIVersionDiscovery + */ + public static void validateJsonElement(JsonElement jsonElement) throws IOException { + if (jsonElement == null) { + if (!V2beta1APIVersionDiscovery.openapiRequiredFields.isEmpty()) { // has required fields but JSON element is null + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field(s) %s in V2beta1APIVersionDiscovery is not found in the empty JSON string", V2beta1APIVersionDiscovery.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonElement.getAsJsonObject().entrySet(); + // check to see if the JSON string contains additional fields + for (Map.Entry entry : entries) { + if (!V2beta1APIVersionDiscovery.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The field `%s` in the JSON string is not defined in the `V2beta1APIVersionDiscovery` properties. JSON: %s", entry.getKey(), jsonElement.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : V2beta1APIVersionDiscovery.openapiRequiredFields) { + if (jsonElement.getAsJsonObject().get(requiredField) == null) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "The required field `%s` is not found in the JSON string: %s", requiredField, jsonElement.toString())); + } + } + JsonObject jsonObj = jsonElement.getAsJsonObject(); + if (!jsonObj.get("version").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `version` to be a primitive type in the JSON string but got `%s`", jsonObj.get("version").toString())); + } + if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonNull()) { + JsonArray jsonArrayresources = jsonObj.getAsJsonArray("resources"); + if (jsonArrayresources != null) { + // ensure the json data is an array + if (!jsonObj.get("resources").isJsonArray()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `resources` to be an array in the JSON string but got `%s`", jsonObj.get("resources").toString())); + } + + // validate the optional field `resources` (array) + for (int i = 0; i < jsonArrayresources.size(); i++) { + V2beta1APIResourceDiscovery.validateJsonElement(jsonArrayresources.get(i)); + }; + } + } + if ((jsonObj.get("freshness") != null && !jsonObj.get("freshness").isJsonNull()) && !jsonObj.get("freshness").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format(java.util.Locale.ROOT, "Expected the field `freshness` to be a primitive type in the JSON string but got `%s`", jsonObj.get("freshness").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!V2beta1APIVersionDiscovery.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'V2beta1APIVersionDiscovery' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(V2beta1APIVersionDiscovery.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, V2beta1APIVersionDiscovery value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public V2beta1APIVersionDiscovery read(JsonReader in) throws IOException { + JsonElement jsonElement = elementAdapter.read(in); + validateJsonElement(jsonElement); + return thisAdapter.fromJsonTree(jsonElement); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of V2beta1APIVersionDiscovery given an JSON string + * + * @param jsonString JSON string + * @return An instance of V2beta1APIVersionDiscovery + * @throws IOException if the JSON string is invalid with respect to V2beta1APIVersionDiscovery + */ + public static V2beta1APIVersionDiscovery fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, V2beta1APIVersionDiscovery.class); + } + + /** + * Convert an instance of V2beta1APIVersionDiscovery to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java index eb32382cdc..56c368b792 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/openapi/models/VersionInfo.java @@ -50,7 +50,7 @@ * Info contains versioning information. how we'll want to distribute that information. */ @ApiModel(description = "Info contains versioning information. how we'll want to distribute that information.") -@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-01-21T21:30:13.305152Z[Etc/UTC]", comments = "Generator version: 7.18.0") +@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2026-06-26T22:35:15.319369Z[Etc/UTC]", comments = "Generator version: 7.18.0") public class VersionInfo { public static final String SERIALIZED_NAME_BUILD_DATE = "buildDate"; @SerializedName(SERIALIZED_NAME_BUILD_DATE) diff --git a/kubernetes/swagger.json b/kubernetes/swagger.json index 3bbd552be1..c39e9d892f 100644 --- a/kubernetes/swagger.json +++ b/kubernetes/swagger.json @@ -1,5 +1,15 @@ { "definitions": { + "v1.ApplyConfiguration": { + "description": "ApplyConfiguration defines the desired configuration values of an object.", + "properties": { + "expression": { + "description": "expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec\n\nApply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field:\n\n\tObject{\n\t spec: Object.spec{\n\t serviceAccountName: \"example\"\n\t }\n\t}\n\nApply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration.\n\nCEL expressions have access to the object types needed to create apply configurations:\n\n- 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.", + "type": "string" + } + }, + "type": "object" + }, "v1.AuditAnnotation": { "description": "AuditAnnotation describes how to produce an audit annotation for an API request.", "properties": { @@ -22,11 +32,11 @@ "description": "ExpressionWarning is a warning information that targets a specific expression.", "properties": { "fieldRef": { - "description": "The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", + "description": "fieldRef is the path to the field that refers to the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\"", "type": "string" }, "warning": { - "description": "The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", + "description": "warning contains the content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler.", "type": "string" } }, @@ -36,15 +46,25 @@ ], "type": "object" }, + "v1.JSONPatch": { + "description": "JSONPatch defines a JSON Patch.", + "properties": { + "expression": { + "description": "expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec\n\nexpression must return an array of JSONPatch values.\n\nFor example, this CEL expression returns a JSON patch to conditionally modify a value:\n\n\t [\n\t JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"},\n\t JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"}\n\t ]\n\nTo define an object for the patch value, use Object types. For example:\n\n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/spec/selector\",\n\t value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}}\n\t }\n\t ]\n\nTo use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example:\n\n\t [\n\t JSONPatch{\n\t op: \"add\",\n\t path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"),\n\t value: \"test\"\n\t },\n\t ]\n\nCEL expressions have access to the types needed to create JSON patches and objects:\n\n- 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.\n See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,\n integer, array, map or object. If set, the 'path' and 'from' fields must be set to a\n [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL\n function may be used to escape path keys containing '/' and '~'.\n- 'Object' - CEL type of the resource object. - 'Object.' - CEL type of object field (such as 'Object.spec') - 'Object.....` - CEL type of nested field (such as 'Object.spec.containers')\n\nCEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nCEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as:\n\n- 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively).\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required.", + "type": "string" + } + }, + "type": "object" + }, "v1.MatchCondition": { "description": "MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.", "properties": { "expression": { - "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "description": "expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", "type": "string" }, "name": { - "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "description": "name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", "type": "string" } }, @@ -58,7 +78,7 @@ "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", "properties": { "excludeResourceRules": { - "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "description": "excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", "items": { "$ref": "#/definitions/v1.NamedRuleWithOperations" }, @@ -71,14 +91,14 @@ }, "namespaceSelector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + "description": "namespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." }, "objectSelector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + "description": "objectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." }, "resourceRules": { - "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "description": "resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", "items": { "$ref": "#/definitions/v1.NamedRuleWithOperations" }, @@ -89,11 +109,220 @@ "type": "object", "x-kubernetes-map-type": "atomic" }, + "v1.MutatingAdmissionPolicy": { + "description": "MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.", + "properties": { + "apiVersion": { + "description": "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", + "type": "string" + }, + "kind": { + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/v1.MutatingAdmissionPolicySpec", + "description": "spec defines the desired behavior of the MutatingAdmissionPolicy." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicy", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v1.MutatingAdmissionPolicyBinding": { + "description": "MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources. MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators configure policies for clusters.\n\nFor a given admission request, each binding will cause its policy to be evaluated N times, where N is 1 for policies/bindings that don't use params, otherwise N is the number of parameters selected by the binding. Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget).\n\nAdding/removing policies, bindings, or params can not affect whether a given (policy, binding, param) combination is within its own CEL budget.", + "properties": { + "apiVersion": { + "description": "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", + "type": "string" + }, + "kind": { + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + }, + "spec": { + "$ref": "#/definitions/v1.MutatingAdmissionPolicyBindingSpec", + "description": "spec defines the desired behavior of the MutatingAdmissionPolicyBinding." + } + }, + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v1.MutatingAdmissionPolicyBindingList": { + "description": "MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.", + "properties": { + "apiVersion": { + "description": "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", + "type": "string" + }, + "items": { + "description": "List of PolicyBinding.", + "items": { + "$ref": "#/definitions/v1.MutatingAdmissionPolicyBinding" + }, + "type": "array" + }, + "kind": { + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBindingList", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v1.MutatingAdmissionPolicyBindingSpec": { + "description": "MutatingAdmissionPolicyBindingSpec defines the specification of the MutatingAdmissionPolicyBinding.", + "properties": { + "matchResources": { + "$ref": "#/definitions/v1.MatchResources", + "description": "matchResources limits what resources match this binding and may be mutated by it. Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and matchConditions before the resource may be mutated. When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints and matchConditions must match for the resource to be mutated. Additionally, matchResources.resourceRules are optional and do not constraint matching when unset. Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT." + }, + "paramRef": { + "$ref": "#/definitions/v1.ParamRef", + "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." + }, + "policyName": { + "description": "policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "type": "string" + } + }, + "type": "object" + }, + "v1.MutatingAdmissionPolicyList": { + "description": "MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.", + "properties": { + "apiVersion": { + "description": "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", + "type": "string" + }, + "items": { + "description": "List of ValidatingAdmissionPolicy.", + "items": { + "$ref": "#/definitions/v1.MutatingAdmissionPolicy" + }, + "type": "array" + }, + "kind": { + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyList", + "version": "v1" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v1.MutatingAdmissionPolicySpec": { + "description": "MutatingAdmissionPolicySpec defines the desired behavior of the admission policy.", + "properties": { + "failurePolicy": { + "description": "failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings.\n\nA policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource.\n\nfailurePolicy does not define how validations that evaluate to false are handled.\n\nAllowed values are Ignore or Fail. Defaults to Fail.", + "type": "string" + }, + "matchConditions": { + "description": "matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "items": { + "$ref": "#/definitions/v1.MatchCondition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge" + }, + "matchConstraints": { + "$ref": "#/definitions/v1.MatchResources", + "description": "matchConstraints specifies what resources this policy is designed to validate. The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding. The CREATE, UPDATE and CONNECT operations are allowed. The DELETE operation may not be matched. '*' matches CREATE, UPDATE and CONNECT. Required." + }, + "mutations": { + "description": "mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis.", + "items": { + "$ref": "#/definitions/v1.Mutation" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, + "paramKind": { + "$ref": "#/definitions/v1.ParamKind", + "description": "paramKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null." + }, + "reinvocationPolicy": { + "description": "reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: These mutations will not be called more than once per binding in a single admission evaluation.\n\nIfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required.", + "type": "string" + }, + "variables": { + "description": "variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic.", + "items": { + "$ref": "#/definitions/v1.Variable" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, "v1.MutatingWebhook": { "description": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.", "properties": { "admissionReviewVersions": { - "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", + "description": "admissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", "items": { "type": "string" }, @@ -102,14 +331,14 @@ }, "clientConfig": { "$ref": "#/definitions/admissionregistration.v1.WebhookClientConfig", - "description": "ClientConfig defines how to communicate with the hook. Required" + "description": "clientConfig defines how to communicate with the hook. Required" }, "failurePolicy": { - "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", + "description": "failurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", "type": "string" }, "matchConditions": { - "description": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped", + "description": "matchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped", "items": { "$ref": "#/definitions/v1.MatchCondition" }, @@ -126,23 +355,23 @@ "type": "string" }, "name": { - "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "description": "name is the name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", "type": "string" }, "namespaceSelector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + "description": "namespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." }, "objectSelector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + "description": "objectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." }, "reinvocationPolicy": { "description": "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".", "type": "string" }, "rules": { - "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "description": "rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", "items": { "$ref": "#/definitions/v1.RuleWithOperations" }, @@ -150,11 +379,11 @@ "x-kubernetes-list-type": "atomic" }, "sideEffects": { - "description": "SideEffects states whether this webhook has side 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 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.", + "description": "sideEffects states whether this webhook has side 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 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.", "type": "string" }, "timeoutSeconds": { - "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", + "description": "timeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", "format": "int32", "type": "integer" } @@ -180,10 +409,10 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + "description": "metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, "webhooks": { - "description": "Webhooks is a list of webhooks and the affected resources and operations.", + "description": "webhooks is a list of webhooks and the affected resources and operations.", "items": { "$ref": "#/definitions/v1.MutatingWebhook" }, @@ -228,7 +457,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -246,11 +475,32 @@ "io.kubernetes.client.common.KubernetesListObject" ] }, + "v1.Mutation": { + "description": "Mutation specifies the CEL expression which is used to apply the Mutation.", + "properties": { + "applyConfiguration": { + "$ref": "#/definitions/v1.ApplyConfiguration", + "description": "applyConfiguration defines the desired configuration values of an object. The configuration is applied to the admission object using [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff). A CEL expression is used to create apply configuration." + }, + "jsonPatch": { + "$ref": "#/definitions/v1.JSONPatch", + "description": "jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object. A CEL expression is used to create the JSON patch." + }, + "patchType": { + "description": "patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required.", + "type": "string" + } + }, + "required": [ + "patchType" + ], + "type": "object" + }, "v1.NamedRuleWithOperations": { "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", "properties": { "apiGroups": { - "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "description": "apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, @@ -258,7 +508,7 @@ "x-kubernetes-list-type": "atomic" }, "apiVersions": { - "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "description": "apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, @@ -266,7 +516,7 @@ "x-kubernetes-list-type": "atomic" }, "operations": { - "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "description": "operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, @@ -274,7 +524,7 @@ "x-kubernetes-list-type": "atomic" }, "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "description": "resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", "items": { "type": "string" }, @@ -282,7 +532,7 @@ "x-kubernetes-list-type": "atomic" }, "resources": { - "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "description": "resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", "items": { "type": "string" }, @@ -301,11 +551,11 @@ "description": "ParamKind is a tuple of Group Kind and Version.", "properties": { "apiVersion": { - "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "description": "apiVersion is the API group version the resources belong to. In format of \"group/version\". Required.", "type": "string" }, "kind": { - "description": "Kind is the API kind the resources belong to. Required.", + "description": "kind is the API kind the resources belong to. Required.", "type": "string" } }, @@ -324,7 +574,7 @@ "type": "string" }, "parameterNotFoundAction": { - "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", + "description": "parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", "type": "string" }, "selector": { @@ -339,7 +589,7 @@ "description": "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.", "properties": { "apiGroups": { - "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "description": "apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, @@ -347,7 +597,7 @@ "x-kubernetes-list-type": "atomic" }, "apiVersions": { - "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "description": "apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, @@ -355,7 +605,7 @@ "x-kubernetes-list-type": "atomic" }, "operations": { - "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "description": "operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, @@ -363,7 +613,7 @@ "x-kubernetes-list-type": "atomic" }, "resources": { - "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "description": "resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", "items": { "type": "string" }, @@ -381,19 +631,19 @@ "description": "ServiceReference holds a reference to Service.legacy.k8s.io", "properties": { "name": { - "description": "`name` is the name of the service. Required", + "description": "name is the name of the service. Required", "type": "string" }, "namespace": { - "description": "`namespace` is the namespace of the service. Required", + "description": "namespace is the namespace of the service. Required", "type": "string" }, "path": { - "description": "`path` is an optional URL path which will be sent in any request to this service.", + "description": "path is an optional URL path which will be sent in any request to this service.", "type": "string" }, "port": { - "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "description": "port is the port on the service that hosts the webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", "format": "int32", "type": "integer" } @@ -408,7 +658,7 @@ "description": "TypeChecking contains results of type checking the expressions in the ValidatingAdmissionPolicy", "properties": { "expressionWarnings": { - "description": "The type checking warnings for each expression.", + "description": "expressionWarnings contains the type checking warnings for each expression.", "items": { "$ref": "#/definitions/v1.ExpressionWarning" }, @@ -431,15 +681,15 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + "description": "metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, "spec": { "$ref": "#/definitions/v1.ValidatingAdmissionPolicySpec", - "description": "Specification of the desired behavior of the ValidatingAdmissionPolicy." + "description": "spec defines the desired behavior of the ValidatingAdmissionPolicy." }, "status": { "$ref": "#/definitions/v1.ValidatingAdmissionPolicyStatus", - "description": "The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." + "description": "status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy behaves in the expected way. Populated by the system. Read-only." } }, "type": "object", @@ -467,13 +717,16 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + "description": "metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, "spec": { "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBindingSpec", - "description": "Specification of the desired behavior of the ValidatingAdmissionPolicyBinding." + "description": "spec defines the desired behavior of the ValidatingAdmissionPolicyBinding." } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -506,7 +759,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -529,14 +782,14 @@ "properties": { "matchResources": { "$ref": "#/definitions/v1.MatchResources", - "description": "MatchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." + "description": "matchResources declares what resources match this binding and will be validated by it. Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this. If this is unset, all resources matched by the policy are validated by this binding When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated. Note that this is differs from ValidatingAdmissionPolicy matchConstraints, where resourceRules are required." }, "paramRef": { "$ref": "#/definitions/v1.ParamRef", "description": "paramRef specifies the parameter resource used to configure the admission control policy. It should point to a resource of the type specified in ParamKind of the bound ValidatingAdmissionPolicy. If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the ValidatingAdmissionPolicy applied. If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param." }, "policyName": { - "description": "PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", + "description": "policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required.", "type": "string" }, "validationActions": { @@ -548,6 +801,10 @@ "x-kubernetes-list-type": "set" } }, + "required": [ + "policyName", + "validationActions" + ], "type": "object" }, "v1.ValidatingAdmissionPolicyList": { @@ -570,7 +827,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -604,7 +861,7 @@ "type": "string" }, "matchConditions": { - "description": "MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", + "description": "matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nIf a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the policy is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the policy is skipped", "items": { "$ref": "#/definitions/v1.MatchCondition" }, @@ -618,14 +875,14 @@ }, "matchConstraints": { "$ref": "#/definitions/v1.MatchResources", - "description": "MatchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." + "description": "matchConstraints specifies what resources this policy is designed to validate. The AdmissionPolicy cares about a request if it matches _all_ Constraints. However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding. Required." }, "paramKind": { "$ref": "#/definitions/v1.ParamKind", - "description": "ParamKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." + "description": "paramKind specifies the kind of resources used to parameterize this policy. If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions. If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied. If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null." }, "validations": { - "description": "Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", + "description": "validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required.", "items": { "$ref": "#/definitions/v1.Validation" }, @@ -633,7 +890,7 @@ "x-kubernetes-list-type": "atomic" }, "variables": { - "description": "Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", + "description": "variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy.\n\nThe expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic.", "items": { "$ref": "#/definitions/v1.Variable" }, @@ -652,7 +909,7 @@ "description": "ValidatingAdmissionPolicyStatus represents the status of an admission validation policy.", "properties": { "conditions": { - "description": "The conditions represent the latest available observations of a policy's current state.", + "description": "conditions represent the latest available observations of a policy's current state.", "items": { "$ref": "#/definitions/v1.Condition" }, @@ -663,13 +920,13 @@ "x-kubernetes-list-type": "map" }, "observedGeneration": { - "description": "The generation observed by the controller.", + "description": "observedGeneration is the generation observed by the controller.", "format": "int64", "type": "integer" }, "typeChecking": { "$ref": "#/definitions/v1.TypeChecking", - "description": "The results of type checking for each expression. Presence of this field indicates the completion of the type checking." + "description": "typeChecking contains the results of type checking for each expression. Presence of this field indicates the completion of the type checking." } }, "type": "object" @@ -678,7 +935,7 @@ "description": "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.", "properties": { "admissionReviewVersions": { - "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", + "description": "admissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy.", "items": { "type": "string" }, @@ -687,14 +944,14 @@ }, "clientConfig": { "$ref": "#/definitions/admissionregistration.v1.WebhookClientConfig", - "description": "ClientConfig defines how to communicate with the hook. Required" + "description": "clientConfig defines how to communicate with the hook. Required" }, "failurePolicy": { - "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", + "description": "failurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Fail.", "type": "string" }, "matchConditions": { - "description": "MatchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped", + "description": "matchConditions is a list of conditions that must be met for a request to be sent to this webhook. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed.\n\nThe exact matching logic is (in order):\n 1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.\n 2. If ALL matchConditions evaluate to TRUE, the webhook is called.\n 3. If any matchCondition evaluates to an error (but none are FALSE):\n - If failurePolicy=Fail, reject the request\n - If failurePolicy=Ignore, the error is ignored and the webhook is skipped", "items": { "$ref": "#/definitions/v1.MatchCondition" }, @@ -711,19 +968,19 @@ "type": "string" }, "name": { - "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "description": "name is the name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", "type": "string" }, "namespaceSelector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + "description": "namespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." }, "objectSelector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + "description": "objectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." }, "rules": { - "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "description": "rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", "items": { "$ref": "#/definitions/v1.RuleWithOperations" }, @@ -731,11 +988,11 @@ "x-kubernetes-list-type": "atomic" }, "sideEffects": { - "description": "SideEffects states whether this webhook has side 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 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.", + "description": "sideEffects states whether this webhook has side 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 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.", "type": "string" }, "timeoutSeconds": { - "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", + "description": "timeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 10 seconds.", "format": "int32", "type": "integer" } @@ -761,10 +1018,10 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + "description": "metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, "webhooks": { - "description": "Webhooks is a list of webhooks and the affected resources and operations.", + "description": "webhooks is a list of webhooks and the affected resources and operations.", "items": { "$ref": "#/definitions/v1.ValidatingWebhook" }, @@ -809,7 +1066,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -831,11 +1088,11 @@ "description": "Validation specifies the CEL expression which is used to apply the validation.", "properties": { "expression": { - "description": "Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", + "description": "expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:\n\n- 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value.\n For example, a variable named 'foo' can be accessed as 'variables.foo'.\n- 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n- 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\n\nThe `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible.\n\nOnly property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are:\n\t \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\",\n\t \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\".\nExamples:\n - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"}\n - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"}\n - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"}\n\nEquality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n non-intersecting elements in `Y` are appended, retaining their partial order.\n - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values\n are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with\n non-intersecting keys are appended, retaining their partial order.\nRequired.", "type": "string" }, "message": { - "description": "Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", + "description": "message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\".", "type": "string" }, "messageExpression": { @@ -843,7 +1100,7 @@ "type": "string" }, "reason": { - "description": "Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", + "description": "reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client.", "type": "string" } }, @@ -856,11 +1113,11 @@ "description": "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", "properties": { "expression": { - "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "description": "expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", "type": "string" }, "name": { - "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "description": "name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", "type": "string" } }, @@ -875,16 +1132,16 @@ "description": "WebhookClientConfig contains the information to make a TLS connection with the webhook", "properties": { "caBundle": { - "description": "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", + "description": "caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.", "format": "byte", "type": "string" }, "service": { "$ref": "#/definitions/admissionregistration.v1.ServiceReference", - "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." + "description": "service is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." }, "url": { - "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", + "description": "url gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", "type": "string" } }, @@ -913,11 +1170,11 @@ "v1alpha1.MatchCondition": { "properties": { "expression": { - "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "description": "expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", "type": "string" }, "name": { - "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "description": "name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", "type": "string" } }, @@ -931,7 +1188,7 @@ "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", "properties": { "excludeResourceRules": { - "description": "ExcludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "description": "excludeResourceRules describes what operations on what resources/subresources the policy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", "items": { "$ref": "#/definitions/v1alpha1.NamedRuleWithOperations" }, @@ -944,14 +1201,14 @@ }, "namespaceSelector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + "description": "namespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." }, "objectSelector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "ObjectSelector decides whether to run the policy based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the policy's expression (CEL), and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + "description": "objectSelector decides whether to run the policy based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the policy's expression (CEL), and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." }, "resourceRules": { - "description": "ResourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule.", + "description": "resourceRules describes what operations on what resources/subresources the admission policy matches. The policy cares about an operation if it matches _any_ Rule.", "items": { "$ref": "#/definitions/v1alpha1.NamedRuleWithOperations" }, @@ -975,11 +1232,11 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + "description": "metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, "spec": { "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicySpec", - "description": "Specification of the desired behavior of the MutatingAdmissionPolicy." + "description": "spec defines the desired behavior of the MutatingAdmissionPolicy." } }, "type": "object", @@ -1007,11 +1264,11 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + "description": "metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, "spec": { "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBindingSpec", - "description": "Specification of the desired behavior of the MutatingAdmissionPolicyBinding." + "description": "spec defines the desired behavior of the MutatingAdmissionPolicyBinding." } }, "type": "object", @@ -1046,7 +1303,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -1102,7 +1359,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -1196,7 +1453,7 @@ "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", "properties": { "apiGroups": { - "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "description": "apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, @@ -1204,7 +1461,7 @@ "x-kubernetes-list-type": "atomic" }, "apiVersions": { - "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "description": "apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, @@ -1212,7 +1469,7 @@ "x-kubernetes-list-type": "atomic" }, "operations": { - "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "description": "operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, @@ -1220,7 +1477,7 @@ "x-kubernetes-list-type": "atomic" }, "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "description": "resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", "items": { "type": "string" }, @@ -1228,7 +1485,7 @@ "x-kubernetes-list-type": "atomic" }, "resources": { - "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "description": "resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", "items": { "type": "string" }, @@ -1247,11 +1504,11 @@ "description": "ParamKind is a tuple of Group Kind and Version.", "properties": { "apiVersion": { - "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "description": "apiVersion is the API group version the resources belong to. In format of \"group/version\". Required.", "type": "string" }, "kind": { - "description": "Kind is the API kind the resources belong to. Required.", + "description": "kind is the API kind the resources belong to. Required.", "type": "string" } }, @@ -1262,7 +1519,7 @@ "description": "ParamRef describes how to locate the params to be used as input to expressions of rules applied by a policy binding.", "properties": { "name": { - "description": "`name` is the name of the resource being referenced.\n\n`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.", + "description": "name is the name of the resource being referenced.\n\n`name` and `selector` are mutually exclusive properties. If one is set, the other must be unset.", "type": "string" }, "namespace": { @@ -1270,7 +1527,7 @@ "type": "string" }, "parameterNotFoundAction": { - "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny` Default to `Deny`", + "description": "parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny` Default to `Deny`", "type": "string" }, "selector": { @@ -1285,11 +1542,11 @@ "description": "Variable is the definition of a variable that is used for composition.", "properties": { "expression": { - "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "description": "expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", "type": "string" }, "name": { - "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "description": "name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", "type": "string" } }, @@ -1323,11 +1580,11 @@ "description": "MatchCondition represents a condition which must be fulfilled for a request to be sent to a webhook.", "properties": { "expression": { - "description": "Expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", + "description": "expression represents the expression which will be evaluated by CEL. Must evaluate to bool. CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:\n\n'object' - The object from the incoming request. The value is null for DELETE requests. 'oldObject' - The existing object. The value is null for CREATE requests. 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest). 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.\n See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz\n'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the\n request resource.\nDocumentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/\n\nRequired.", "type": "string" }, "name": { - "description": "Name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", + "description": "name is an identifier for this match condition, used for strategic merging of MatchConditions, as well as providing an identifier for logging purposes. A good name should be descriptive of the associated expression. Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName', or 'my.name', or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')\n\nRequired.", "type": "string" } }, @@ -1341,7 +1598,7 @@ "description": "MatchResources decides whether to run the admission control policy on an object based on whether it meets the match criteria. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", "properties": { "excludeResourceRules": { - "description": "ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", + "description": "excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about. The exclude rules take precedence over include rules (if a resource matches both, it is excluded)", "items": { "$ref": "#/definitions/v1beta1.NamedRuleWithOperations" }, @@ -1354,14 +1611,14 @@ }, "namespaceSelector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "NamespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + "description": "namespaceSelector decides whether to run the admission control policy on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the policy.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the policy on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." }, "objectSelector": { "$ref": "#/definitions/v1.LabelSelector", - "description": "ObjectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + "description": "objectSelector decides whether to run the validation based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the cel validation, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." }, "resourceRules": { - "description": "ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", + "description": "resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches. The policy cares about an operation if it matches _any_ Rule.", "items": { "$ref": "#/definitions/v1beta1.NamedRuleWithOperations" }, @@ -1385,11 +1642,11 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + "description": "metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, "spec": { "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicySpec", - "description": "Specification of the desired behavior of the MutatingAdmissionPolicy." + "description": "spec defines the desired behavior of the MutatingAdmissionPolicy." } }, "type": "object", @@ -1417,11 +1674,11 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." + "description": "metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata." }, "spec": { "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBindingSpec", - "description": "Specification of the desired behavior of the MutatingAdmissionPolicyBinding." + "description": "spec defines the desired behavior of the MutatingAdmissionPolicyBinding." } }, "type": "object", @@ -1456,7 +1713,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -1512,7 +1769,7 @@ }, "metadata": { "$ref": "#/definitions/v1.ListMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds" } }, "required": [ @@ -1606,7 +1863,7 @@ "description": "NamedRuleWithOperations is a tuple of Operations and Resources with ResourceNames.", "properties": { "apiGroups": { - "description": "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", + "description": "apiGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, @@ -1614,7 +1871,7 @@ "x-kubernetes-list-type": "atomic" }, "apiVersions": { - "description": "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", + "description": "apiVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, @@ -1622,7 +1879,7 @@ "x-kubernetes-list-type": "atomic" }, "operations": { - "description": "Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", + "description": "operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or * for all of those operations and any future admission operations that are added. If '*' is present, the length of the slice must be one. Required.", "items": { "type": "string" }, @@ -1630,7 +1887,7 @@ "x-kubernetes-list-type": "atomic" }, "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", + "description": "resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.", "items": { "type": "string" }, @@ -1638,7 +1895,7 @@ "x-kubernetes-list-type": "atomic" }, "resources": { - "description": "Resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", + "description": "resources is a list of resources this rule applies to.\n\nFor example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nDepending on the enclosing object, subresources might not be allowed. Required.", "items": { "type": "string" }, @@ -1657,11 +1914,11 @@ "description": "ParamKind is a tuple of Group Kind and Version.", "properties": { "apiVersion": { - "description": "APIVersion is the API group version the resources belong to. In format of \"group/version\". Required.", + "description": "apiVersion is the API group version the resources belong to. In format of \"group/version\". Required.", "type": "string" }, "kind": { - "description": "Kind is the API kind the resources belong to. Required.", + "description": "kind is the API kind the resources belong to. Required.", "type": "string" } }, @@ -1680,7 +1937,7 @@ "type": "string" }, "parameterNotFoundAction": { - "description": "`parameterNotFoundAction` controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", + "description": "parameterNotFoundAction controls the behavior of the binding when the resource exists, and name or selector is valid, but there are no parameters matched by the binding. If the value is set to `Allow`, then no matched parameters will be treated as successful validation by the binding. If set to `Deny`, then no matched parameters will be subject to the `failurePolicy` of the policy.\n\nAllowed values are `Allow` or `Deny`\n\nRequired", "type": "string" }, "selector": { @@ -1695,11 +1952,11 @@ "description": "Variable is the definition of a variable that is used for composition. A variable is defined as a named expression.", "properties": { "expression": { - "description": "Expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", + "description": "expression is the expression that will be evaluated as the value of the variable. The CEL expression has access to the same identifiers as the CEL expressions in Validation.", "type": "string" }, "name": { - "description": "Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", + "description": "name is the name of the variable. The name must be a valid CEL identifier and unique among all variables. The variable can be accessed in other expressions through `variables` For example, if name is \"foo\", the variable will be available as `variables.foo`", "type": "string" } }, @@ -1714,11 +1971,11 @@ "description": "An API server instance reports the version it can decode and the version it encodes objects to when persisting objects in the backend.", "properties": { "apiServerID": { - "description": "The ID of the reporting API server.", + "description": "apiServerID is the ID of the reporting API server.", "type": "string" }, "decodableVersions": { - "description": "The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.", + "description": "decodableVersions are the encoding versions the API server can handle to decode. The API server can decode objects encoded in these versions. The encodingVersion must be included in the decodableVersions.", "items": { "type": "string" }, @@ -1726,11 +1983,11 @@ "x-kubernetes-list-type": "set" }, "encodingVersion": { - "description": "The API server encodes the object to this version when persisting it in the backend (e.g., etcd).", + "description": "encodingVersion the API server encodes the object to when persisting it in the backend (e.g., etcd).", "type": "string" }, "servedVersions": { - "description": "The API server can serve these versions. DecodableVersions must include all ServedVersions.", + "description": "servedVersions lists all versions the API server can serve. DecodableVersions must include all ServedVersions.", "items": { "type": "string" }, @@ -1738,6 +1995,11 @@ "x-kubernetes-list-type": "set" } }, + "required": [ + "apiServerID", + "encodingVersion", + "decodableVersions" + ], "type": "object" }, "v1alpha1.StorageVersion": { @@ -1753,20 +2015,19 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "The name is .." + "description": "metadata is the standard object metadata. The name is .." }, "spec": { - "description": "Spec is an empty spec. It is here to comply with Kubernetes API style.", + "description": "spec is an empty spec. It is here to comply with Kubernetes API style.", "type": "object" }, "status": { "$ref": "#/definitions/v1alpha1.StorageVersionStatus", - "description": "API server instances report the version they can decode and the version they encode objects to when persisting objects in the backend." + "description": "status on the version the API server instance can decode from and encode objects to when persisting objects in the backend." } }, "required": [ - "spec", - "status" + "metadata" ], "type": "object", "x-kubernetes-group-version-kind": [ @@ -1784,29 +2045,29 @@ "description": "Describes the state of the storageVersion at a certain point.", "properties": { "lastTransitionTime": { - "description": "Last time the condition transitioned from one status to another.", + "description": "lastTransitionTime is the last time the condition transitioned from one status to another.", "format": "date-time", "type": "string" }, "message": { - "description": "A human readable message indicating details about the transition.", + "description": "message is a human readable string indicating details about the transition.", "type": "string" }, "observedGeneration": { - "description": "If set, this represents the .metadata.generation that the condition was set based upon.", + "description": "observedGeneration represents the .metadata.generation that the condition was set based upon, if field is set.", "format": "int64", "type": "integer" }, "reason": { - "description": "The reason for the condition's last transition.", + "description": "reason for the condition's last transition.", "type": "string" }, "status": { - "description": "Status of the condition, one of True, False, Unknown.", + "description": "status of the condition, one of True, False, Unknown.", "type": "string" }, "type": { - "description": "Type of the condition.", + "description": "type of the condition.", "type": "string" } }, @@ -1860,11 +2121,11 @@ "description": "API server instances report the versions they can decode and the version they encode objects to when persisting objects in the backend.", "properties": { "commonEncodingVersion": { - "description": "If all API server instances agree on the same encoding storage version, then this field is set to that version. Otherwise this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.", + "description": "commonEncodingVersion is set to an encoding storage version if all API server instances share that same version. If they don't share one storage version, this field is left empty. API servers should finish updating its storageVersionStatus entry before serving write operations, so that this field will be in sync with the reality.", "type": "string" }, "conditions": { - "description": "The latest available observations of the storageVersion's state.", + "description": "conditions lists the latest available observations of the storageVersion's state.", "items": { "$ref": "#/definitions/v1alpha1.StorageVersionCondition" }, @@ -1875,7 +2136,7 @@ "x-kubernetes-list-type": "map" }, "storageVersions": { - "description": "The reported versions per API server instance.", + "description": "storageVersions lists the reported versions per API server instance.", "items": { "$ref": "#/definitions/v1alpha1.ServerStorageVersion" }, @@ -2918,19 +3179,19 @@ "description": "BoundObjectReference is a reference to an object that a token is bound to.", "properties": { "apiVersion": { - "description": "API version of the referent.", + "description": "apiVersion is API version of the referent.", "type": "string" }, "kind": { - "description": "Kind of the referent. Valid kinds are 'Pod' and 'Secret'.", + "description": "kind of the referent. Valid kinds are 'Pod' and 'Secret'.", "type": "string" }, "name": { - "description": "Name of the referent.", + "description": "name of the referent.", "type": "string" }, "uid": { - "description": "UID of the referent.", + "description": "uid of the referent.", "type": "string" } }, @@ -2949,11 +3210,11 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "status": { "$ref": "#/definitions/v1.SelfSubjectReviewStatus", - "description": "Status is filled in by the server with the user attributes." + "description": "status is filled in by the server with the user attributes." } }, "type": "object", @@ -2973,7 +3234,7 @@ "properties": { "userInfo": { "$ref": "#/definitions/v1.UserInfo", - "description": "User attributes of the user making this request." + "description": "userInfo is a set of attributes belonging to the user making this request." } }, "type": "object" @@ -2991,20 +3252,17 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/v1.TokenRequestSpec", - "description": "Spec holds information about the request being evaluated" + "description": "spec holds information about the request being evaluated" }, "status": { "$ref": "#/definitions/v1.TokenRequestStatus", - "description": "Status is filled in by the server and indicates whether the token can be authenticated." + "description": "status is filled in by the server and indicates whether the token can be authenticated." } }, - "required": [ - "spec" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -3021,7 +3279,7 @@ "description": "TokenRequestSpec contains client provided parameters of a token request.", "properties": { "audiences": { - "description": "Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", + "description": "audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.", "items": { "type": "string" }, @@ -3030,36 +3288,29 @@ }, "boundObjectRef": { "$ref": "#/definitions/v1.BoundObjectReference", - "description": "BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation." + "description": "boundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation." }, "expirationSeconds": { - "description": "ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.", + "description": "expirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.", "format": "int64", "type": "integer" } }, - "required": [ - "audiences" - ], "type": "object" }, "v1.TokenRequestStatus": { "description": "TokenRequestStatus is the result of a token request.", "properties": { "expirationTimestamp": { - "description": "ExpirationTimestamp is the time of expiration of the returned token.", + "description": "expirationTimestamp is the time of expiration of the returned token.", "format": "date-time", "type": "string" }, "token": { - "description": "Token is the opaque bearer token.", + "description": "token is the opaque bearer token.", "type": "string" } }, - "required": [ - "token", - "expirationTimestamp" - ], "type": "object" }, "v1.TokenReview": { @@ -3075,15 +3326,15 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/v1.TokenReviewSpec", - "description": "Spec holds information about the request being evaluated" + "description": "spec holds information about the request being evaluated" }, "status": { "$ref": "#/definitions/v1.TokenReviewStatus", - "description": "Status is filled in by the server and indicates whether the request can be authenticated." + "description": "status is filled in by the server and indicates whether the request can be authenticated." } }, "required": [ @@ -3105,7 +3356,7 @@ "description": "TokenReviewSpec is a description of the token authentication request.", "properties": { "audiences": { - "description": "Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.", + "description": "audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.", "items": { "type": "string" }, @@ -3113,17 +3364,20 @@ "x-kubernetes-list-type": "atomic" }, "token": { - "description": "Token is the opaque bearer token.", + "description": "token is the opaque bearer token.", "type": "string" } }, + "required": [ + "token" + ], "type": "object" }, "v1.TokenReviewStatus": { "description": "TokenReviewStatus is the result of the token authentication request.", "properties": { "audiences": { - "description": "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.", + "description": "audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.", "items": { "type": "string" }, @@ -3131,16 +3385,16 @@ "x-kubernetes-list-type": "atomic" }, "authenticated": { - "description": "Authenticated indicates that the token was associated with a known user.", + "description": "authenticated indicates that the token was associated with a known user.", "type": "boolean" }, "error": { - "description": "Error indicates that the token couldn't be checked", + "description": "error indicates that the token couldn't be checked", "type": "string" }, "user": { "$ref": "#/definitions/v1.UserInfo", - "description": "User is the UserInfo associated with the provided token." + "description": "user is the UserInfo associated with the provided token." } }, "type": "object" @@ -3155,11 +3409,11 @@ }, "type": "array" }, - "description": "Any additional information provided by the authenticator.", + "description": "extra is any additional information provided by the authenticator.", "type": "object" }, "groups": { - "description": "The names of groups this user is a part of.", + "description": "groups is the names of groups this user is a part of.", "items": { "type": "string" }, @@ -3167,11 +3421,11 @@ "x-kubernetes-list-type": "atomic" }, "uid": { - "description": "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", + "description": "uid is a unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.", "type": "string" }, "username": { - "description": "The name that uniquely identifies this user among all active users.", + "description": "username is the name that uniquely identifies this user among all active users.", "type": "string" } }, @@ -3226,15 +3480,15 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/v1.SubjectAccessReviewSpec", - "description": "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted." + "description": "spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted." }, "status": { "$ref": "#/definitions/v1.SubjectAccessReviewStatus", - "description": "Status is filled in by the server and indicates whether the request is allowed or not" + "description": "status is filled in by the server and indicates whether the request is allowed or not" } }, "required": [ @@ -3256,11 +3510,11 @@ "description": "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface", "properties": { "path": { - "description": "Path is the URL path of the request", + "description": "path is the URL path of the request", "type": "string" }, "verb": { - "description": "Verb is the standard HTTP verb", + "description": "verb is the standard HTTP verb", "type": "string" } }, @@ -3270,7 +3524,7 @@ "description": "NonResourceRule holds information that describes a rule for the non-resource", "properties": { "nonResourceURLs": { - "description": "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.", + "description": "nonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.", "items": { "type": "string" }, @@ -3278,7 +3532,7 @@ "x-kubernetes-list-type": "atomic" }, "verbs": { - "description": "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", + "description": "verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.", "items": { "type": "string" }, @@ -3299,7 +3553,7 @@ "description": "fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it." }, "group": { - "description": "Group is the API Group of the Resource. \"*\" means all.", + "description": "group is the API Group of the Resource. \"*\" means all.", "type": "string" }, "labelSelector": { @@ -3307,27 +3561,27 @@ "description": "labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it." }, "name": { - "description": "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", + "description": "name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.", "type": "string" }, "namespace": { - "description": "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview", + "description": "namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview", "type": "string" }, "resource": { - "description": "Resource is one of the existing resource types. \"*\" means all.", + "description": "resource is one of the existing resource types. \"*\" means all.", "type": "string" }, "subresource": { - "description": "Subresource is one of the existing resource types. \"\" means none.", + "description": "subresource is one of the existing resource types. \"\" means none.", "type": "string" }, "verb": { - "description": "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "description": "verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", "type": "string" }, "version": { - "description": "Version is the API Version of the Resource. \"*\" means all.", + "description": "version is the API Version of the Resource. \"*\" means all.", "type": "string" } }, @@ -3337,7 +3591,7 @@ "description": "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", "properties": { "apiGroups": { - "description": "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.", + "description": "apiGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.", "items": { "type": "string" }, @@ -3345,7 +3599,7 @@ "x-kubernetes-list-type": "atomic" }, "resourceNames": { - "description": "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.", + "description": "resourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.", "items": { "type": "string" }, @@ -3353,7 +3607,7 @@ "x-kubernetes-list-type": "atomic" }, "resources": { - "description": "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups.\n \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.", + "description": "resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups.\n \"*/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.", "items": { "type": "string" }, @@ -3361,7 +3615,7 @@ "x-kubernetes-list-type": "atomic" }, "verbs": { - "description": "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", + "description": "verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.", "items": { "type": "string" }, @@ -3387,15 +3641,15 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/v1.SelfSubjectAccessReviewSpec", - "description": "Spec holds information about the request being evaluated. user and groups must be empty" + "description": "spec holds information about the request being evaluated. user and groups must be empty" }, "status": { "$ref": "#/definitions/v1.SubjectAccessReviewStatus", - "description": "Status is filled in by the server and indicates whether the request is allowed or not" + "description": "status is filled in by the server and indicates whether the request is allowed or not" } }, "required": [ @@ -3414,15 +3668,15 @@ ] }, "v1.SelfSubjectAccessReviewSpec": { - "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "description": "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of resourceAttributes and nonResourceAttributes must be set", "properties": { "nonResourceAttributes": { "$ref": "#/definitions/v1.NonResourceAttributes", - "description": "NonResourceAttributes describes information for a non-resource access request" + "description": "nonResourceAttributes describes information for a non-resource access request" }, "resourceAttributes": { "$ref": "#/definitions/v1.ResourceAttributes", - "description": "ResourceAuthorizationAttributes describes information for a resource access request" + "description": "resourceAttributes describes information for a resource access request" } }, "type": "object" @@ -3440,15 +3694,15 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/v1.SelfSubjectRulesReviewSpec", - "description": "Spec holds information about the request being evaluated." + "description": "spec holds information about the request being evaluated." }, "status": { "$ref": "#/definitions/v1.SubjectRulesReviewStatus", - "description": "Status is filled in by the server and indicates the set of actions a user can perform." + "description": "status is filled in by the server and indicates the set of actions a user can perform." } }, "required": [ @@ -3470,7 +3724,7 @@ "description": "SelfSubjectRulesReviewSpec defines the specification for SelfSubjectRulesReview.", "properties": { "namespace": { - "description": "Namespace to evaluate rules for. Required.", + "description": "namespace to evaluate rules for. Required.", "type": "string" } }, @@ -3489,15 +3743,15 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + "description": "metadata is the standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { "$ref": "#/definitions/v1.SubjectAccessReviewSpec", - "description": "Spec holds information about the request being evaluated" + "description": "spec holds information about the request being evaluated" }, "status": { "$ref": "#/definitions/v1.SubjectAccessReviewStatus", - "description": "Status is filled in by the server and indicates whether the request is allowed or not" + "description": "status is filled in by the server and indicates whether the request is allowed or not" } }, "required": [ @@ -3516,7 +3770,7 @@ ] }, "v1.SubjectAccessReviewSpec": { - "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set", + "description": "SubjectAccessReviewSpec is a description of the access request. Exactly one of resourceAttributes and nonResourceAttributes must be set", "properties": { "extra": { "additionalProperties": { @@ -3525,11 +3779,11 @@ }, "type": "array" }, - "description": "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", + "description": "extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.", "type": "object" }, "groups": { - "description": "Groups is the groups you're testing for.", + "description": "groups is the groups you're testing for.", "items": { "type": "string" }, @@ -3538,18 +3792,18 @@ }, "nonResourceAttributes": { "$ref": "#/definitions/v1.NonResourceAttributes", - "description": "NonResourceAttributes describes information for a non-resource access request" + "description": "nonResourceAttributes describes information for a non-resource access request" }, "resourceAttributes": { "$ref": "#/definitions/v1.ResourceAttributes", - "description": "ResourceAuthorizationAttributes describes information for a resource access request" + "description": "resourceAttributes describes information for a resource access request" }, "uid": { - "description": "UID information about the requesting user.", + "description": "uid information about the requesting user.", "type": "string" }, "user": { - "description": "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", + "description": "user is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups", "type": "string" } }, @@ -3559,19 +3813,19 @@ "description": "SubjectAccessReviewStatus", "properties": { "allowed": { - "description": "Allowed is required. True if the action would be allowed, false otherwise.", + "description": "allowed is required. True if the action would be allowed, false otherwise.", "type": "boolean" }, "denied": { - "description": "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", + "description": "denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.", "type": "boolean" }, "evaluationError": { - "description": "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", + "description": "evaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.", "type": "string" }, "reason": { - "description": "Reason is optional. It indicates why a request was allowed or denied.", + "description": "reason is optional. It indicates why a request was allowed or denied.", "type": "string" } }, @@ -3584,15 +3838,15 @@ "description": "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.", "properties": { "evaluationError": { - "description": "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", + "description": "evaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.", "type": "string" }, "incomplete": { - "description": "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", + "description": "incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.", "type": "boolean" }, "nonResourceRules": { - "description": "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "description": "nonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", "items": { "$ref": "#/definitions/v1.NonResourceRule" }, @@ -3600,7 +3854,7 @@ "x-kubernetes-list-type": "atomic" }, "resourceRules": { - "description": "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", + "description": "resourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.", "items": { "$ref": "#/definitions/v1.ResourceRule" }, @@ -3662,6 +3916,9 @@ "description": "status is the current information about the autoscaler." } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -4021,6 +4278,9 @@ "description": "status is the current information about the autoscaler." } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -4472,6 +4732,9 @@ "description": "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -5463,7 +5726,7 @@ "type": "string" }, "pkixPublicKey": { - "description": "pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to.\n\nThe key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future.\n\nSigner implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field.", + "description": "The PKIX-serialized public key the signer will issue the certificate to.\n\nThe key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future.\n\nSigner implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field.\n\nDeprecated: This field is replaced by StubPKCS10Request. If StubPKCS10Request is set, this field must be empty. Signer implementations should extract the public key from the StubPKCS10Request field.", "format": "byte", "type": "string" }, @@ -5476,7 +5739,7 @@ "type": "string" }, "proofOfPossession": { - "description": "proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey.\n\nIt is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`.\n\nkube-apiserver validates the proof of possession during creation of the PodCertificateRequest.\n\nIf the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options).\n\nIf the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1)\n\nIf the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign).", + "description": "A proof that the requesting kubelet holds the private key corresponding to pkixPublicKey.\n\nIt is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`.\n\nkube-apiserver validates the proof of possession during creation of the PodCertificateRequest.\n\nIf the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options).\n\nIf the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1)\n\nIf the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign).\n\nDeprecated: This field is replaced by StubPKCS10Request. If StubPKCS10Request is set, this field must be empty.", "format": "byte", "type": "string" }, @@ -5492,6 +5755,11 @@ "description": "signerName indicates the requested signer.\n\nAll signer names beginning with `kubernetes.io` are reserved for use by the Kubernetes project. There is currently one well-known signer documented by the Kubernetes project, `kubernetes.io/kube-apiserver-client-pod`, which will issue client certificates understood by kube-apiserver. It is currently unimplemented.", "type": "string" }, + "stubPKCS10Request": { + "description": "A PKCS#10 certificate signing request (DER-serialized) generated by Kubelet using the subject private key.\n\nMost signer implementations will ignore the contents of the CSR except to extract the subject public key. The API server automatically verifies the CSR signature during admission, so the signer does not need to repeat the verification. CSRs generated by kubelet are completely empty.\n\nThe subject public key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future.\n\nSigner implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field.", + "format": "byte", + "type": "string" + }, "unverifiedUserAnnotations": { "additionalProperties": { "type": "string" @@ -5508,8 +5776,7 @@ "serviceAccountUID", "nodeName", "nodeUID", - "pkixPublicKey", - "proofOfPossession" + "stubPKCS10Request" ], "type": "object" }, @@ -5679,6 +5946,9 @@ "description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -5786,6 +6056,9 @@ "description": "spec contains the specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -8292,6 +8565,19 @@ }, "type": "object" }, + "v1.ImageVolumeStatus": { + "description": "ImageVolumeStatus represents the image-based volume status.", + "properties": { + "imageRef": { + "description": "ImageRef is the digest of the image used for this volume. It should have a value that's similar to the pod's status.containerStatuses[i].imageID. The ImageRef length should not exceed 256 characters.", + "type": "string" + } + }, + "required": [ + "imageRef" + ], + "type": "object" + }, "v1.KeyToPath": { "description": "Maps a string key to a path within a volume.", "properties": { @@ -8840,6 +9126,35 @@ }, "type": "object" }, + "v1.NodeAllocatableResourceClaimStatus": { + "description": "NodeAllocatableResourceClaimStatus describes the status of node allocatable resources allocated via DRA.", + "properties": { + "containers": { + "description": "Containers lists the names of all containers in this pod that reference the claim.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "set" + }, + "resourceClaimName": { + "description": "ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.", + "type": "string" + }, + "resources": { + "additionalProperties": { + "$ref": "#/definitions/resource.Quantity" + }, + "description": "Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.", + "type": "object" + } + }, + "required": [ + "resourceClaimName", + "resources" + ], + "type": "object" + }, "v1.NodeCondition": { "description": "NodeCondition contains condition information for a node.", "properties": { @@ -9766,7 +10081,7 @@ }, "portworxVolume": { "$ref": "#/definitions/v1.PortworxVolumeSource", - "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on." + "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver." }, "quobyte": { "$ref": "#/definitions/v1.QuobyteVolumeSource", @@ -10028,7 +10343,7 @@ "type": "string" }, "observedGeneration": { - "description": "If set, this represents the .metadata.generation that the pod condition was set based upon. The PodObservedGenerationTracking feature gate must be enabled to use this field.", + "description": "If set, this represents the .metadata.generation that the pod condition was set based upon.", "format": "int64", "type": "integer" }, @@ -10195,7 +10510,7 @@ "type": "object" }, "v1.PodResourceClaim": { - "description": "PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod.\n\nIt adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.", + "description": "PodResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the pod.\n\nIt adds a name to it that uniquely identifies the ResourceClaim inside the Pod. Containers that need access to the ResourceClaim reference it with this name.\n\nWhen the DRAWorkloadResourceClaims feature gate is enabled and this Pod belongs to a PodGroup, a PodResourceClaim is matched to a PodGroupResourceClaim if all of their fields are equal (Name, ResourceClaimName, and ResourceClaimTemplateName). A matched claim references a single ResourceClaim shared across all Pods in the PodGroup, reserved for the PodGroup in ResourceClaimStatus.ReservedFor rather than for individual Pods.", "properties": { "name": { "description": "Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL.", @@ -10206,7 +10521,7 @@ "type": "string" }, "resourceClaimTemplateName": { - "description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", + "description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses.\n\nWhen the DRAWorkloadResourceClaims feature gate is enabled and the pod belongs to a PodGroup that defines a PodGroupResourceClaim with the same Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the ResourceClaim generated for the PodGroup. All pods in the group that define an equivalent PodResourceClaim matching the PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same generated ResourceClaim. ResourceClaims generated for a PodGroup are owned by the PodGroup and their lifecycles are tied to the PodGroup instead of any individual pod.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", "type": "string" } }, @@ -10223,7 +10538,7 @@ "type": "string" }, "resourceClaimName": { - "description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. If this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.", + "description": "ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod.\n\nWhen the DRAWorkloadResourceClaims feature is enabled and the corresponding PodResourceClaim matches a PodGroupResourceClaim made by the Pod's PodGroup, then this is the name of the ResourceClaim generated and reserved for the PodGroup.\n\nIf this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case.", "type": "string" } }, @@ -10245,6 +10560,23 @@ ], "type": "object" }, + "v1.PodSchedulingGroup": { + "description": "PodSchedulingGroup identifies the runtime scheduling group instance that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics. Exactly one field must be specified.", + "properties": { + "podGroupName": { + "description": "PodGroupName specifies the name of the standalone PodGroup object that represents the runtime instance of this group. Must be a DNS subdomain.", + "type": "string" + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "podGroupName": "PodGroupName" + } + } + ] + }, "v1.PodSecurityContext": { "description": "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.", "properties": { @@ -10395,7 +10727,7 @@ "type": "boolean" }, "hostUsers": { - "description": "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature.", + "description": "Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host.", "type": "boolean" }, "hostname": { @@ -10518,6 +10850,10 @@ "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge" }, + "schedulingGroup": { + "$ref": "#/definitions/v1.PodSchedulingGroup", + "description": "SchedulingGroup provides a reference to the immediate scheduling runtime grouping object that this Pod belongs to. This field is used by the scheduler to identify the group and apply the correct group scheduling policies. The association with a group also impacts other lifecycle aspects of a Pod that are relevant in a wider context of scheduling like preemption, resource attachment, etc. If not specified, the Pod is treated as a single unit in all of these aspects. The group object referenced by this field may not exist at the time the Pod is created. This field is immutable, but a group object with the same name may be recreated with different policies. Doing this during pod scheduling may result in the placement not conforming to the expected policies." + }, "securityContext": { "$ref": "#/definitions/v1.PodSecurityContext", "description": "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field." @@ -10581,10 +10917,6 @@ "x-kubernetes-list-type": "map", "x-kubernetes-patch-merge-key": "name", "x-kubernetes-patch-strategy": "merge,retainKeys" - }, - "workloadRef": { - "$ref": "#/definitions/v1.WorkloadReference", - "description": "WorkloadRef provides a reference to the Workload object that this Pod belongs to. This field is used by the scheduler to identify the PodGroup and apply the correct group scheduling policies. The Workload object referenced by this field may not exist at the time the Pod is created. This field is immutable, but a Workload object with the same name may be recreated with different policies. Doing this during pod scheduling may result in the placement not conforming to the expected policies." } }, "required": [ @@ -10661,6 +10993,14 @@ "description": "A human readable message indicating details about why the pod is in this condition.", "type": "string" }, + "nodeAllocatableResourceClaimStatuses": { + "description": "NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources that were allocated for this pod through DRA claims. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages.", + "items": { + "$ref": "#/definitions/v1.NodeAllocatableResourceClaimStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "nominatedNodeName": { "description": "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.", "type": "string" @@ -11298,6 +11638,10 @@ "description": "Health of the resource. can be one of:\n - Healthy: operates as normal\n - Unhealthy: reported unhealthy. We consider this a temporary health issue\n since we do not have a mechanism today to distinguish\n temporary and permanent issues.\n - Unknown: The status cannot be determined.\n For example, Device Plugin got unregistered and hasn't been re-registered since.\n\nIn future we may want to introduce the PermanentlyUnhealthy Status.", "type": "string" }, + "message": { + "description": "Message provides human-readable context for Health (e.g. \"ECC error count exceeded threshold\"). This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise.", + "type": "string" + }, "resourceID": { "description": "ResourceID is the unique identifier of the resource. See the ResourceID type for more information.", "type": "string" @@ -11881,7 +12225,7 @@ "type": "boolean" }, "procMount": { - "description": "procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. Note that this field cannot be set when spec.os.name is windows.", + "description": "procMount denotes the type of proc mount to use for the containers. The default value is Default which uses the container runtime defaults for readonly paths and masked paths. Note that this field cannot be set when spec.os.name is windows.", "type": "string" }, "readOnlyRootFilesystem": { @@ -12652,7 +12996,7 @@ }, "image": { "$ref": "#/definitions/v1.ImageVolumeSource", - "description": "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro) and non-executable files (noexec). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type." + "description": "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine. The volume is resolved at pod startup depending on which PullPolicy value is provided:\n\n- Always: the kubelet always attempts to pull the reference. Container creation will fail If the pull fails. - Never: the kubelet never pulls the reference and only uses a local image or artifact. Container creation will fail if the reference isn't present. - IfNotPresent: the kubelet pulls if the reference isn't already present on disk. Container creation will fail if the reference isn't present and the pull fails.\n\nThe volume gets re-resolved if the pod gets deleted and recreated, which means that new remote content will become available on pod recreation. A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. The volume will be mounted read-only (ro). Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type." }, "iscsi": { "$ref": "#/definitions/v1.ISCSIVolumeSource", @@ -12676,7 +13020,7 @@ }, "portworxVolume": { "$ref": "#/definitions/v1.PortworxVolumeSource", - "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver when the CSIMigrationPortworx feature-gate is on." + "description": "portworxVolume represents a portworx volume attached and mounted on kubelets host machine. Deprecated: PortworxVolume is deprecated. All operations for the in-tree portworxVolume type are redirected to the pxd.portworx.com CSI driver." }, "projected": { "$ref": "#/definitions/v1.ProjectedVolumeSource", @@ -12786,6 +13130,10 @@ "recursiveReadOnly": { "description": "RecursiveReadOnly must be set to Disabled, Enabled, or unspecified (for non-readonly mounts). An IfPossible value in the original VolumeMount must be translated to Disabled or Enabled, depending on the mount result.", "type": "string" + }, + "volumeStatus": { + "$ref": "#/definitions/v1.VolumeStatus", + "description": "volumeStatus represents volume-type-specific status about the mounted volume." } }, "required": [ @@ -12854,6 +13202,16 @@ }, "type": "object" }, + "v1.VolumeStatus": { + "description": "VolumeStatus represents the status of a mounted volume. At most one of its members must be specified.", + "properties": { + "image": { + "$ref": "#/definitions/v1.ImageVolumeStatus", + "description": "image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine." + } + }, + "type": "object" + }, "v1.VsphereVirtualDiskVolumeSource": { "description": "Represents a vSphere volume resource.", "properties": { @@ -12920,28 +13278,6 @@ }, "type": "object" }, - "v1.WorkloadReference": { - "description": "WorkloadReference identifies the Workload object and PodGroup membership that a Pod belongs to. The scheduler uses this information to apply workload-aware scheduling semantics.", - "properties": { - "name": { - "description": "Name defines the name of the Workload object this Pod belongs to. Workload must be in the same namespace as the Pod. If it doesn't match any existing Workload, the Pod will remain unschedulable until a Workload object is created and observed by the kube-scheduler. It must be a DNS subdomain.", - "type": "string" - }, - "podGroup": { - "description": "PodGroup is the name of the PodGroup within the Workload that this Pod belongs to. If it doesn't match any existing PodGroup within the Workload, the Pod will remain unschedulable until the Workload object is recreated and observed by the kube-scheduler. It must be a DNS label.", - "type": "string" - }, - "podGroupReplicaKey": { - "description": "PodGroupReplicaKey specifies the replica key of the PodGroup to which this Pod belongs. It is used to distinguish pods belonging to different replicas of the same pod group. The pod group policy is applied separately to each replica. When set, it must be a DNS label.", - "type": "string" - } - }, - "required": [ - "name", - "podGroup" - ], - "type": "object" - }, "v1.Endpoint": { "description": "Endpoint represents a single logical \"backend\" implementing a service.", "properties": { @@ -13091,8 +13427,7 @@ } }, "required": [ - "addressType", - "endpoints" + "addressType" ], "type": "object", "x-kubernetes-group-version-kind": [ @@ -13976,6 +14311,9 @@ "description": "spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -14763,6 +15101,9 @@ "description": "spec is the desired state of the IPAddress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status" } }, + "required": [ + "spec" + ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -15255,12 +15596,6 @@ "type": "integer" } }, - "required": [ - "disruptionsAllowed", - "currentHealthy", - "desiredHealthy", - "expectedPods" - ], "type": "object" }, "v1.AggregationRule": { @@ -15657,7 +15992,6 @@ } }, "required": [ - "apiGroup", "kind", "name" ], @@ -15741,7 +16075,7 @@ "description": "AllocationResult contains attributes of an allocated resource.", "properties": { "allocationTimestamp": { - "description": "AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.", + "description": "AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.", "format": "date-time", "type": "string" }, @@ -15760,7 +16094,7 @@ "description": "CELDeviceSelector contains a CEL expression for selecting a device.", "properties": { "expression": { - "description": "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\".\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device\n (v1.34+ with the DRAConsumableCapacity feature enabled).\n\nExample: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.\n\nThe value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.\n\nIf an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nFor ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)\n\nThe length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.", + "description": "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\".\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device\n (v1.34+ with the DRAConsumableCapacity feature enabled).\n\nExample: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.\n\nThe value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.\n\nIf an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nFor ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)\n\nWhen the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example:\n\n device.attributes[\"dra.example.com\"].models.includes(\"some-model\")\n\nThe length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.", "type": "string" } }, @@ -15878,7 +16212,7 @@ "type": "object" }, "bindingConditions": { - "description": "BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod.\n\nThe maximum number of binding conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "description": "BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod.\n\nThe maximum number of binding conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "items": { "type": "string" }, @@ -15886,7 +16220,7 @@ "x-kubernetes-list-type": "atomic" }, "bindingFailureConditions": { - "description": "BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred.\n\nThe maximum number of binding failure conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "description": "BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred.\n\nThe maximum number of binding failure conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "items": { "type": "string" }, @@ -15894,7 +16228,7 @@ "x-kubernetes-list-type": "atomic" }, "bindsToNode": { - "description": "BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "description": "BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "type": "boolean" }, "capacity": { @@ -15916,6 +16250,13 @@ "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", "type": "string" }, + "nodeAllocatableResourceMappings": { + "additionalProperties": { + "$ref": "#/definitions/v1.NodeAllocatableResourceMapping" + }, + "description": "NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.", + "type": "object" + }, "nodeName": { "description": "NodeName identifies the node where the device is available.\n\nMust only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.", "type": "string" @@ -15925,7 +16266,7 @@ "description": "NodeSelector defines the nodes where the device is available.\n\nMust use exactly one term.\n\nMust only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set." }, "taints": { - "description": "If specified, these are the driver-defined taints.\n\nThe maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "description": "If specified, these are the driver-defined taints.\n\nThe maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128.\n\nThis is a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { "$ref": "#/definitions/v1.DeviceTaint" }, @@ -15992,18 +16333,51 @@ "description": "BoolValue is a true/false value.", "type": "boolean" }, + "bools": { + "description": "BoolValues is a non-empty list of true/false values.", + "items": { + "type": "boolean" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "int": { "description": "IntValue is a number.", "format": "int64", "type": "integer" }, + "ints": { + "description": "IntValues is a non-empty list of numbers.\n\nThis is an alpha field and requires enabling the DRAListTypeAttributes feature gate.", + "items": { + "format": "int64", + "type": "integer" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "string": { "description": "StringValue is a string. Must not be longer than 64 characters.", "type": "string" }, + "strings": { + "description": "StringValues is a non-empty list of strings. Each string must not be longer than 64 characters.\n\nThis is an alpha field and requires enabling the DRAListTypeAttributes feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "version": { "description": "VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.", "type": "string" + }, + "versions": { + "description": "VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters.\n\nThis is an alpha field and requires enabling the DRAListTypeAttributes feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "type": "object" @@ -16074,7 +16448,7 @@ "type": "object" }, "v1.DeviceClass": { - "description": "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "description": "DeviceClass is a vendor- or admin-provided resource that contains device configuration and selectors. It can be referenced in the device requests of a claim to apply these presets. Cluster scoped.", "properties": { "apiVersion": { "description": "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", @@ -16168,7 +16542,7 @@ "x-kubernetes-list-type": "atomic" }, "extendedResourceName": { - "description": "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.\n\nThis is an alpha field.", + "description": "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.\n\nThis is a beta field.", "type": "string" }, "selectors": { @@ -16186,11 +16560,11 @@ "description": "DeviceConstraint must have exactly one field set besides Requests.", "properties": { "distinctAttribute": { - "description": "DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices.\n\nThis acts as the inverse of MatchAttribute.\n\nThis constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation.\n\nThis is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs.", + "description": "DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices.\n\nWhen the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility.\n\nThis acts as the inverse of MatchAttribute.\n\nThis constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation.\n\nThis is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs.", "type": "string" }, "matchAttribute": { - "description": "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.\n\nFor example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.\n\nMust include the domain qualifier.", + "description": "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.\n\nFor example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.\n\nWhen the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as single-element lists for backward compatibility.\n\nMust include the domain qualifier.", "type": "string" }, "requests": { @@ -16254,11 +16628,11 @@ "description": "DeviceRequestAllocationResult contains the allocation result for one request.", "properties": { "adminAccess": { - "description": "AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.\n\nThis is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.", + "description": "AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode.\n\nAdmin access is disabled if this field is unset or set to false, otherwise it is enabled.", "type": "boolean" }, "bindingConditions": { - "description": "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "description": "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "items": { "type": "string" }, @@ -16266,7 +16640,7 @@ "x-kubernetes-list-type": "atomic" }, "bindingFailureConditions": { - "description": "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "description": "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "items": { "type": "string" }, @@ -16301,7 +16675,7 @@ "type": "string" }, "tolerations": { - "description": "A copy of all tolerations specified in the request at the time when the device got allocated.\n\nThe maximum number of tolerations is 16.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "description": "A copy of all tolerations specified in the request at the time when the device got allocated.\n\nThe maximum number of tolerations is 16.\n\nThis is a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { "$ref": "#/definitions/v1.DeviceToleration" }, @@ -16360,7 +16734,7 @@ "x-kubernetes-list-type": "atomic" }, "tolerations": { - "description": "If specified, the request's tolerations.\n\nTolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.\n\nIn addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.\n\nThe maximum number of tolerations is 16.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "description": "If specified, the request's tolerations.\n\nTolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.\n\nIn addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.\n\nThe maximum number of tolerations is 16.\n\nThis is a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { "$ref": "#/definitions/v1.DeviceToleration" }, @@ -16386,7 +16760,7 @@ "type": "string" }, "timeAdded": { - "description": "TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.", + "description": "TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set.\n\nIn addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule).", "format": "date-time", "type": "string" }, @@ -16432,7 +16806,7 @@ "description": "ExactDeviceRequest is a request for one or more identical devices.", "properties": { "adminAccess": { - "description": "AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.\n\nThis is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled.", + "description": "AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations.\n\nAdmin access is disabled if this field is unset or set to false, otherwise it is enabled.", "type": "boolean" }, "allocationMode": { @@ -16461,7 +16835,7 @@ "x-kubernetes-list-type": "atomic" }, "tolerations": { - "description": "If specified, the request's tolerations.\n\nTolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.\n\nIn addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.\n\nThe maximum number of tolerations is 16.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "description": "If specified, the request's tolerations.\n\nTolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.\n\nIn addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.\n\nThe maximum number of tolerations is 16.\n\nThis is a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { "$ref": "#/definitions/v1.DeviceToleration" }, @@ -16478,11 +16852,11 @@ "description": "NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.", "properties": { "hardwareAddress": { - "description": "HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.\n\nMust not be longer than 128 characters.", + "description": "HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.\n\nMust not be longer than 128 bytes.", "type": "string" }, "interfaceName": { - "description": "InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.\n\nMust not be longer than 256 characters.", + "description": "InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.\n\nMust not be longer than 256 bytes.", "type": "string" }, "ips": { @@ -16496,6 +16870,20 @@ }, "type": "object" }, + "v1.NodeAllocatableResourceMapping": { + "description": "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.", + "properties": { + "allocationMultiplier": { + "$ref": "#/definitions/resource.Quantity", + "description": "AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim. It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set. 1. If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.\n\t a. A DRA driver representing each CPU core as a device would have\n {ResourceName: \"cpu\", allocationMultiplier: \"2\"} in its\n `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,\n\t\t 4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.\n b. A GPU device that needs additional node memory per GPU allocation would\n have {ResourceName: \"memory\", allocationMultiplier: \"2Gi\"}. Each allocated\n\t\t GPU device instance of this type will account for 2Gi of memory.\n\n2. If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.\n\t The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.\n For example, if a Device's capacity \"dra.example.com/cores\" is consumed,\n and each \"core\" provides 2 \"cpu\"s, the mapping would be:\n {ResourceName: \"cpu\", capacityKey: \"dra.example.com/cores\", allocationMultiplier: \"2\"}.\n If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16." + }, + "capacityKey": { + "description": "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\".", + "type": "string" + } + }, + "type": "object" + }, "v1.OpaqueDeviceConfiguration": { "description": "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.", "properties": { @@ -16515,7 +16903,7 @@ "type": "object" }, "resource.v1.ResourceClaim": { - "description": "ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "description": "ResourceClaim describes a request for access to resources in the cluster, for use by workloads. For example, if a workload needs an accelerator device with specific properties, this is how that request is expressed. The status stanza tracks whether this claim has been satisfied and what specific resources have been allocated.", "properties": { "apiVersion": { "description": "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", @@ -16666,7 +17054,7 @@ "type": "object" }, "v1.ResourceClaimTemplate": { - "description": "ResourceClaimTemplate is used to produce ResourceClaim objects.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "description": "ResourceClaimTemplate is used to produce ResourceClaim objects.", "properties": { "apiVersion": { "description": "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", @@ -16781,7 +17169,7 @@ "type": "object" }, "v1.ResourceSlice": { - "description": "ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.\n\nAt the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , .\n\nWhenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.\n\nWhen allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.\n\nFor resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.\n\nThis is an alpha type and requires enabling the DynamicResourceAllocation feature gate.", + "description": "ResourceSlice represents one or more resources in a pool of similar resources, managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many ResourceSlices comprise a pool is determined by the driver.\n\nAt the moment, the only supported resources are devices with attributes and capacities. Each device in a given pool, regardless of how many ResourceSlices, must have a unique name. The ResourceSlice in which a device gets published may change over time. The unique identifier for a device is the tuple , , .\n\nWhenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number and updates all ResourceSlices with that new number and new resource definitions. A consumer must only use ResourceSlices with the highest generation number and ignore all others.\n\nWhen allocating all resources in a pool matching certain criteria or when looking for the best solution among several different alternatives, a consumer should check the number of ResourceSlices in a pool (included in each ResourceSlice) to determine whether its view of a pool is complete and if not, should wait until the driver has completed updating the pool.\n\nFor resources that are not local to a node, the node name is not set. Instead, the driver may use a node selector to specify where the devices are available.", "properties": { "apiVersion": { "description": "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", @@ -16915,7 +17303,7 @@ "type": "string" }, "timeAdded": { - "description": "TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.", + "description": "TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set.\n\nIn addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule).", "format": "date-time", "type": "string" }, @@ -17061,6 +17449,198 @@ }, "type": "object" }, + "v1alpha3.PoolStatus": { + "description": "PoolStatus contains status information for a single resource pool.", + "properties": { + "allocatedDevices": { + "description": "AllocatedDevices is the number of devices currently allocated to claims. A value of 0 means no devices are allocated. May be unset when validationError is set.", + "format": "int32", + "type": "integer" + }, + "availableDevices": { + "description": "AvailableDevices is the number of devices available for allocation. This equals TotalDevices - AllocatedDevices - UnavailableDevices. A value of 0 means no devices are currently available. May be unset when validationError is set.", + "format": "int32", + "type": "integer" + }, + "driver": { + "description": "Driver is the DRA driver name for this pool. Must be a DNS subdomain (e.g., \"gpu.example.com\").", + "type": "string" + }, + "generation": { + "description": "Generation is the pool generation observed across all ResourceSlices in this pool. Only the latest generation is reported. During a generation rollout, if not all slices at the latest generation have been published, the pool is included with a validationError and device counts unset.", + "format": "int64", + "type": "integer" + }, + "nodeName": { + "description": "NodeName is the node this pool is associated with. When omitted, the pool is not associated with a specific node. Must be a valid DNS subdomain name (RFC1123).", + "type": "string" + }, + "poolName": { + "description": "PoolName is the name of the pool. Must be a valid resource pool name (DNS subdomains separated by \"/\").", + "type": "string" + }, + "resourceSliceCount": { + "description": "ResourceSliceCount is the number of ResourceSlices that make up this pool. May be unset when validationError is set.", + "format": "int32", + "type": "integer" + }, + "totalDevices": { + "description": "TotalDevices is the total number of devices in the pool across all slices. A value of 0 means the pool has no devices. May be unset when validationError is set.", + "format": "int32", + "type": "integer" + }, + "unavailableDevices": { + "description": "UnavailableDevices is the number of devices that are not available due to taints or other conditions, but are not allocated. A value of 0 means all unallocated devices are available. May be unset when validationError is set.", + "format": "int32", + "type": "integer" + }, + "validationError": { + "description": "ValidationError is set when the pool's data could not be fully validated (e.g., incomplete slice publication). When set, device count fields and ResourceSliceCount may be unset.", + "type": "string" + } + }, + "required": [ + "driver", + "poolName", + "generation" + ], + "type": "object" + }, + "v1alpha3.ResourcePoolStatusRequest": { + "description": "ResourcePoolStatusRequest triggers a one-time calculation of resource pool status based on the provided filters. Once status is set, the request is considered complete and will not be reprocessed. Users should delete and recreate requests to get updated information.", + "properties": { + "apiVersion": { + "description": "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", + "type": "string" + }, + "kind": { + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequestSpec", + "description": "Spec defines the filters for which pools to include in the status. The spec is immutable once created." + }, + "status": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequestStatus", + "description": "Status is populated by the controller with the calculated pool status. When status is non-nil, the request is considered complete and the entire object becomes immutable." + } + }, + "required": [ + "metadata", + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequest", + "version": "v1alpha3" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v1alpha3.ResourcePoolStatusRequestList": { + "description": "ResourcePoolStatusRequestList is a collection of ResourcePoolStatusRequests.", + "properties": { + "apiVersion": { + "description": "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", + "type": "string" + }, + "items": { + "description": "Items is the list of ResourcePoolStatusRequests.", + "items": { + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" + }, + "type": "array" + }, + "kind": { + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "ResourcePoolStatusRequestList", + "version": "v1alpha3" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v1alpha3.ResourcePoolStatusRequestSpec": { + "description": "ResourcePoolStatusRequestSpec defines the filters for the pool status request.", + "properties": { + "driver": { + "description": "Driver specifies the DRA driver name to filter pools. Only pools from ResourceSlices with this driver will be included. Must be a DNS subdomain (e.g., \"gpu.example.com\").", + "type": "string" + }, + "limit": { + "description": "Limit optionally specifies the maximum number of pools to return in the status. If more pools match the filter criteria, the response will be truncated (i.e., len(status.pools) < status.poolCount).\n\nDefault: 100 Minimum: 1 Maximum: 1000", + "format": "int32", + "type": "integer" + }, + "poolName": { + "description": "PoolName optionally filters to a specific pool name. If not specified, all pools from the specified driver are included. When specified, must be a non-empty valid resource pool name (DNS subdomains separated by \"/\").", + "type": "string" + } + }, + "required": [ + "driver" + ], + "type": "object" + }, + "v1alpha3.ResourcePoolStatusRequestStatus": { + "description": "ResourcePoolStatusRequestStatus contains the calculated pool status information.", + "properties": { + "conditions": { + "description": "Conditions provide information about the state of the request. A condition with type=Complete or type=Failed will always be set when the status is populated.\n\nKnown condition types: - \"Complete\": True when the request has been processed successfully - \"Failed\": True when the request could not be processed", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "poolCount": { + "description": "PoolCount is the total number of pools that matched the filter criteria, regardless of truncation. This helps users understand how many pools exist even when the response is truncated. A value of 0 means no pools matched the filter criteria.", + "format": "int32", + "type": "integer" + }, + "pools": { + "description": "Pools contains the first `spec.limit` matching pools, sorted by driver then pool name. If `len(pools) < poolCount`, the list was truncated. When omitted, no pools matched the request filters.", + "items": { + "$ref": "#/definitions/v1alpha3.PoolStatus" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "required": [ + "poolCount" + ], + "type": "object" + }, "v1beta1.AllocatedDeviceStatus": { "description": "AllocatedDeviceStatus contains the status of an allocated device, if the driver chooses to report it. This may include driver-specific information.\n\nThe combination of Driver, Pool, Device, and ShareID must match the corresponding key in Status.Allocation.Devices.", "properties": { @@ -17111,7 +17691,7 @@ "description": "AllocationResult contains attributes of an allocated resource.", "properties": { "allocationTimestamp": { - "description": "AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.", + "description": "AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.", "format": "date-time", "type": "string" }, @@ -17145,7 +17725,7 @@ "type": "object" }, "bindingConditions": { - "description": "BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod.\n\nThe maximum number of binding conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "description": "BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod.\n\nThe maximum number of binding conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "items": { "type": "string" }, @@ -17153,7 +17733,7 @@ "x-kubernetes-list-type": "atomic" }, "bindingFailureConditions": { - "description": "BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is true, a binding failure occurred.\n\nThe maximum number of binding failure conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "description": "BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is true, a binding failure occurred.\n\nThe maximum number of binding failure conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "items": { "type": "string" }, @@ -17161,7 +17741,7 @@ "x-kubernetes-list-type": "atomic" }, "bindsToNode": { - "description": "BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "description": "BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "type": "boolean" }, "capacity": { @@ -17179,6 +17759,13 @@ "type": "array", "x-kubernetes-list-type": "atomic" }, + "nodeAllocatableResourceMappings": { + "additionalProperties": { + "$ref": "#/definitions/v1beta1.NodeAllocatableResourceMapping" + }, + "description": "NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.", + "type": "object" + }, "nodeName": { "description": "NodeName identifies the node where the device is available.\n\nMust only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.", "type": "string" @@ -17188,7 +17775,7 @@ "description": "NodeSelector defines the nodes where the device is available.\n\nMust use exactly one term.\n\nMust only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set." }, "taints": { - "description": "If specified, these are the driver-defined taints.\n\nThe maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "description": "If specified, these are the driver-defined taints.\n\nThe maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128.\n\nThis is a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { "$ref": "#/definitions/v1beta1.DeviceTaint" }, @@ -17202,7 +17789,7 @@ "description": "CELDeviceSelector contains a CEL expression for selecting a device.", "properties": { "expression": { - "description": "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\".\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device\n (v1.34+ with the DRAConsumableCapacity feature enabled).\n\nExample: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.\n\nThe value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.\n\nIf an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nFor ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)\n\nThe length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.", + "description": "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\".\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device\n (v1.34+ with the DRAConsumableCapacity feature enabled).\n\nExample: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.\n\nThe value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.\n\nIf an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nFor ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)\n\nWhen the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example:\n\n device.attributes[\"dra.example.com\"].models.includes(\"some-model\")\n\nThe length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.", "type": "string" } }, @@ -17372,18 +17959,51 @@ "description": "BoolValue is a true/false value.", "type": "boolean" }, + "bools": { + "description": "BoolValues is a non-empty list of true/false values.", + "items": { + "type": "boolean" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "int": { "description": "IntValue is a number.", "format": "int64", "type": "integer" }, + "ints": { + "description": "IntValues is a non-empty list of numbers.\n\nThis is an alpha field and requires enabling the DRAListTypeAttributes feature gate.", + "items": { + "format": "int64", + "type": "integer" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "string": { "description": "StringValue is a string. Must not be longer than 64 characters.", "type": "string" }, + "strings": { + "description": "StringValues is a non-empty list of strings. Each string must not be longer than 64 characters.\n\nThis is an alpha field and requires enabling the DRAListTypeAttributes feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "version": { "description": "VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.", "type": "string" + }, + "versions": { + "description": "VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters.\n\nThis is an alpha field and requires enabling the DRAListTypeAttributes feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "type": "object" @@ -17548,7 +18168,7 @@ "x-kubernetes-list-type": "atomic" }, "extendedResourceName": { - "description": "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.\n\nThis is an alpha field.", + "description": "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.\n\nThis is a beta field.", "type": "string" }, "selectors": { @@ -17566,11 +18186,11 @@ "description": "DeviceConstraint must have exactly one field set besides Requests.", "properties": { "distinctAttribute": { - "description": "DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices.\n\nThis acts as the inverse of MatchAttribute.\n\nThis constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation.\n\nThis is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs.", + "description": "DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices.\n\nWhen the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility.\n\nThis acts as the inverse of MatchAttribute.\n\nThis constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation.\n\nThis is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs.", "type": "string" }, "matchAttribute": { - "description": "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.\n\nFor example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.\n\nMust include the domain qualifier.", + "description": "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.\n\nFor example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.\n\nWhen the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as singleton sets for backward compatibility.\n\nMust include the domain qualifier.", "type": "string" }, "requests": { @@ -17650,7 +18270,7 @@ "x-kubernetes-list-type": "atomic" }, "tolerations": { - "description": "If specified, the request's tolerations.\n\nTolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.\n\nIn addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.\n\nThe maximum number of tolerations is 16.\n\nThis field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "description": "If specified, the request's tolerations.\n\nTolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.\n\nIn addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.\n\nThe maximum number of tolerations is 16.\n\nThis field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list.\n\nThis is a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { "$ref": "#/definitions/v1beta1.DeviceToleration" }, @@ -17671,7 +18291,7 @@ "type": "boolean" }, "bindingConditions": { - "description": "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "description": "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "items": { "type": "string" }, @@ -17679,7 +18299,7 @@ "x-kubernetes-list-type": "atomic" }, "bindingFailureConditions": { - "description": "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "description": "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "items": { "type": "string" }, @@ -17714,7 +18334,7 @@ "type": "string" }, "tolerations": { - "description": "A copy of all tolerations specified in the request at the time when the device got allocated.\n\nThe maximum number of tolerations is 16.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "description": "A copy of all tolerations specified in the request at the time when the device got allocated.\n\nThe maximum number of tolerations is 16.\n\nThis is a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { "$ref": "#/definitions/v1beta1.DeviceToleration" }, @@ -17773,7 +18393,7 @@ "x-kubernetes-list-type": "atomic" }, "tolerations": { - "description": "If specified, the request's tolerations.\n\nTolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.\n\nIn addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.\n\nThe maximum number of tolerations is 16.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "description": "If specified, the request's tolerations.\n\nTolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.\n\nIn addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.\n\nThe maximum number of tolerations is 16.\n\nThis is a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { "$ref": "#/definitions/v1beta1.DeviceToleration" }, @@ -17799,7 +18419,7 @@ "type": "string" }, "timeAdded": { - "description": "TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.", + "description": "TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set.\n\nIn addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule).", "format": "date-time", "type": "string" }, @@ -17845,11 +18465,11 @@ "description": "NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.", "properties": { "hardwareAddress": { - "description": "HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.\n\nMust not be longer than 128 characters.", + "description": "HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.\n\nMust not be longer than 128 bytes.", "type": "string" }, "interfaceName": { - "description": "InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.\n\nMust not be longer than 256 characters.", + "description": "InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.\n\nMust not be longer than 256 bytes.", "type": "string" }, "ips": { @@ -17863,6 +18483,20 @@ }, "type": "object" }, + "v1beta1.NodeAllocatableResourceMapping": { + "description": "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.", + "properties": { + "allocationMultiplier": { + "$ref": "#/definitions/resource.Quantity", + "description": "AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim. It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set. 1. If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.\n\t a. A DRA driver representing each CPU core as a device would have\n {ResourceName: \"cpu\", allocationMultiplier: \"2\"} in its\n `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,\n\t\t 4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.\n b. A GPU device that needs additional node memory per GPU allocation would\n have {ResourceName: \"memory\", allocationMultiplier: \"2Gi\"}. Each allocated\n\t\t GPU device instance of this type will account for 2Gi of memory.\n\n2. If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.\n\t The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.\n For example, if a Device's capacity \"dra.example.com/cores\" is consumed,\n and each \"core\" provides 2 \"cpu\"s, the mapping would be:\n {ResourceName: \"cpu\", capacityKey: \"dra.example.com/cores\", allocationMultiplier: \"2\"}.\n If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16." + }, + "capacityKey": { + "description": "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\".", + "type": "string" + } + }, + "type": "object" + }, "v1beta1.OpaqueDeviceConfiguration": { "description": "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.", "properties": { @@ -18320,7 +18954,7 @@ "description": "AllocationResult contains attributes of an allocated resource.", "properties": { "allocationTimestamp": { - "description": "AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.", + "description": "AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.", "format": "date-time", "type": "string" }, @@ -18339,7 +18973,7 @@ "description": "CELDeviceSelector contains a CEL expression for selecting a device.", "properties": { "expression": { - "description": "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\".\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device\n (v1.34+ with the DRAConsumableCapacity feature enabled).\n\nExample: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.\n\nThe value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.\n\nIf an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nFor ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)\n\nThe length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.", + "description": "Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort.\n\nThe expression's input is an object named \"device\", which carries the following properties:\n - driver (string): the name of the driver which defines this device.\n - attributes (map[string]object): the device's attributes, grouped by prefix\n (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all\n of the attributes which were prefixed by \"dra.example.com\".\n - capacity (map[string]object): the device's capacities, grouped by prefix.\n - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device\n (v1.34+ with the DRAConsumableCapacity feature enabled).\n\nExample: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields:\n\n device.driver\n device.attributes[\"dra.example.com\"].model\n device.attributes[\"ext.example.com\"].family\n device.capacity[\"dra.example.com\"].modules\n\nThe device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers.\n\nThe value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity.\n\nIf an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort.\n\nA robust expression should check for the existence of attributes before referencing them.\n\nFor ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example:\n\n cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool)\n\nWhen the DRAListTypeAttributes feature gate is enabled, the includes() helper is available and it can work for both scalar and list-type attributes. It was introduced to support smooth migration from scalar attributes to list-type attributes while keeping CEL expressions simple. For example:\n\n device.attributes[\"dra.example.com\"].models.includes(\"some-model\")\n\nThe length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps.", "type": "string" } }, @@ -18457,7 +19091,7 @@ "type": "object" }, "bindingConditions": { - "description": "BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod.\n\nThe maximum number of binding conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "description": "BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod.\n\nThe maximum number of binding conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "items": { "type": "string" }, @@ -18465,7 +19099,7 @@ "x-kubernetes-list-type": "atomic" }, "bindingFailureConditions": { - "description": "BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred.\n\nThe maximum number of binding failure conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "description": "BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred.\n\nThe maximum number of binding failure conditions is 4.\n\nThe conditions must be a valid condition type string.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "items": { "type": "string" }, @@ -18473,7 +19107,7 @@ "x-kubernetes-list-type": "atomic" }, "bindsToNode": { - "description": "BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "description": "BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "type": "boolean" }, "capacity": { @@ -18495,6 +19129,13 @@ "description": "Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label.", "type": "string" }, + "nodeAllocatableResourceMappings": { + "additionalProperties": { + "$ref": "#/definitions/v1beta2.NodeAllocatableResourceMapping" + }, + "description": "NodeAllocatableResourceMappings defines the mapping of node resources that are managed by the DRA driver exposing this device. This includes resources currently reported in v1.Node `status.allocatable` that are not extended resources (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources). Examples include \"cpu\", \"memory\", \"ephemeral-storage\", and hugepages. In addition to standard requests made through the Pod `spec`, these resources can also be requested through claims and allocated by the DRA driver. For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory dependencies of an accelerator device. The keys of this map are the node-allocatable resource names (e.g., \"cpu\", \"memory\"). Extended resource names are not permitted as keys.", + "type": "object" + }, "nodeName": { "description": "NodeName identifies the node where the device is available.\n\nMust only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.", "type": "string" @@ -18504,7 +19145,7 @@ "description": "NodeSelector defines the nodes where the device is available.\n\nMust use exactly one term.\n\nMust only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set." }, "taints": { - "description": "If specified, these are the driver-defined taints.\n\nThe maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "description": "If specified, these are the driver-defined taints.\n\nThe maximum number of taints is 16. If taints are set for any device in a ResourceSlice, then the maximum number of allowed devices per ResourceSlice is 64 instead of 128.\n\nThis is a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { "$ref": "#/definitions/v1beta2.DeviceTaint" }, @@ -18571,18 +19212,51 @@ "description": "BoolValue is a true/false value.", "type": "boolean" }, + "bools": { + "description": "BoolValues is a non-empty list of true/false values.", + "items": { + "type": "boolean" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "int": { "description": "IntValue is a number.", "format": "int64", "type": "integer" }, + "ints": { + "description": "IntValues is a non-empty list of numbers.\n\nThis is an alpha field and requires enabling the DRAListTypeAttributes feature gate.", + "items": { + "format": "int64", + "type": "integer" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "string": { "description": "StringValue is a string. Must not be longer than 64 characters.", "type": "string" }, + "strings": { + "description": "StringValues is a non-empty list of strings. Each string must not be longer than 64 characters.\n\nThis is an alpha field and requires enabling the DRAListTypeAttributes feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + }, "version": { "description": "VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters.", "type": "string" + }, + "versions": { + "description": "VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0. Each version string must not be longer than 64 characters.\n\nThis is an alpha field and requires enabling the DRAListTypeAttributes feature gate.", + "items": { + "type": "string" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" } }, "type": "object" @@ -18747,7 +19421,7 @@ "x-kubernetes-list-type": "atomic" }, "extendedResourceName": { - "description": "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.\n\nThis is an alpha field.", + "description": "ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked.\n\nThis is a beta field.", "type": "string" }, "selectors": { @@ -18765,11 +19439,11 @@ "description": "DeviceConstraint must have exactly one field set besides Requests.", "properties": { "distinctAttribute": { - "description": "DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices.\n\nThis acts as the inverse of MatchAttribute.\n\nThis constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation.\n\nThis is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs.", + "description": "DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices.\n\nWhen the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics (i.e., element order and duplicates are ignored): list-valued attributes must be pairwise disjoint across devices. Scalar values are treated as singleton sets for backward compatibility.\n\nThis acts as the inverse of MatchAttribute.\n\nThis constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation.\n\nThis is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs.", "type": "string" }, "matchAttribute": { - "description": "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.\n\nFor example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.\n\nMust include the domain qualifier.", + "description": "MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices.\n\nFor example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen.\n\nWhen the DRAListTypeAttributes feature gate is enabled, comparison uses set semantics(i.e., element order and duplicates are ignored): list-valued attributes match when the intersection across all devices is non-empty. Scalar values are treated as singleton sets for backward compatibility.\n\nMust include the domain qualifier.", "type": "string" }, "requests": { @@ -18837,7 +19511,7 @@ "type": "boolean" }, "bindingConditions": { - "description": "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "description": "BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "items": { "type": "string" }, @@ -18845,7 +19519,7 @@ "x-kubernetes-list-type": "atomic" }, "bindingFailureConditions": { - "description": "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.\n\nThis is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", + "description": "BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation.\n\nThis is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates.", "items": { "type": "string" }, @@ -18880,7 +19554,7 @@ "type": "string" }, "tolerations": { - "description": "A copy of all tolerations specified in the request at the time when the device got allocated.\n\nThe maximum number of tolerations is 16.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "description": "A copy of all tolerations specified in the request at the time when the device got allocated.\n\nThe maximum number of tolerations is 16.\n\nThis is a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { "$ref": "#/definitions/v1beta2.DeviceToleration" }, @@ -18939,7 +19613,7 @@ "x-kubernetes-list-type": "atomic" }, "tolerations": { - "description": "If specified, the request's tolerations.\n\nTolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.\n\nIn addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.\n\nThe maximum number of tolerations is 16.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "description": "If specified, the request's tolerations.\n\nTolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.\n\nIn addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.\n\nThe maximum number of tolerations is 16.\n\nThis is a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { "$ref": "#/definitions/v1beta2.DeviceToleration" }, @@ -18965,7 +19639,7 @@ "type": "string" }, "timeAdded": { - "description": "TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set.", + "description": "TimeAdded represents the time at which the taint was added or (only in a DeviceTaintRule) the effect was modified. Added automatically during create or update if not set.\n\nIn addition, in a DeviceTaintRule a value provided during an update gets replaced with the current time if the provided value is the same as the old one and the new effect is different. Changing the key and/or value while keeping the effect unchanged is possible and does not update the time stamp because the eviction which uses it is either already started (NoExecute) or not started yet (NoEffect, NoSchedule).", "format": "date-time", "type": "string" }, @@ -18980,6 +19654,137 @@ ], "type": "object" }, + "v1beta2.DeviceTaintRule": { + "description": "DeviceTaintRule adds one taint to all devices which match the selector. This has the same effect as if the taint was specified directly in the ResourceSlice by the DRA driver.", + "properties": { + "apiVersion": { + "description": "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", + "type": "string" + }, + "kind": { + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object metadata" + }, + "spec": { + "$ref": "#/definitions/v1beta2.DeviceTaintRuleSpec", + "description": "Spec specifies the selector and one taint.\n\nChanging the spec automatically increments the metadata.generation number." + }, + "status": { + "$ref": "#/definitions/v1beta2.DeviceTaintRuleStatus", + "description": "Status provides information about what was requested in the spec." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v1beta2.DeviceTaintRuleList": { + "description": "DeviceTaintRuleList is a collection of DeviceTaintRules.", + "properties": { + "apiVersion": { + "description": "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", + "type": "string" + }, + "items": { + "description": "Items is the list of DeviceTaintRules.", + "items": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + }, + "type": "array" + }, + "kind": { + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata" + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "resource.k8s.io", + "kind": "DeviceTaintRuleList", + "version": "v1beta2" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v1beta2.DeviceTaintRuleSpec": { + "description": "DeviceTaintRuleSpec specifies the selector and one taint.", + "properties": { + "deviceSelector": { + "$ref": "#/definitions/v1beta2.DeviceTaintSelector", + "description": "DeviceSelector defines which device(s) the taint is applied to. All selector criteria must be satisfied for a device to match. The empty selector matches all devices. Without a selector, no devices are matches." + }, + "taint": { + "$ref": "#/definitions/v1beta2.DeviceTaint", + "description": "The taint that gets applied to matching devices." + } + }, + "required": [ + "taint" + ], + "type": "object" + }, + "v1beta2.DeviceTaintRuleStatus": { + "description": "DeviceTaintRuleStatus provides information about an on-going pod eviction.", + "properties": { + "conditions": { + "description": "Conditions provide information about the state of the DeviceTaintRule and the cluster at some point in time, in a machine-readable and human-readable format.\n\nThe following condition is currently defined as part of this API, more may get added: - Type: EvictionInProgress - Status: True if there are currently pods which need to be evicted, False otherwise\n (includes the effects which don't cause eviction).\n- Reason: not specified, may change - Message: includes information about number of pending pods and already evicted pods\n in a human-readable format, updated periodically, may change\n\nFor `effect: None`, the condition above gets set once for each change to the spec, with the message containing information about what would happen if the effect was `NoExecute`. This feedback can be used to decide whether changing the effect to `NoExecute` will work as intended. It only gets set once to avoid having to constantly update the status.\n\nMust have 8 or fewer entries.", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + } + }, + "type": "object" + }, + "v1beta2.DeviceTaintSelector": { + "description": "DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched.", + "properties": { + "device": { + "description": "If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name.\n\nSetting also driver and pool may be required to avoid ambiguity, but is not required.", + "type": "string" + }, + "driver": { + "description": "If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver.", + "type": "string" + }, + "pool": { + "description": "If pool is set, only devices in that pool are selected.\n\nAlso setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name.", + "type": "string" + } + }, + "type": "object" + }, "v1beta2.DeviceToleration": { "description": "The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches the triple using the matching operator .", "properties": { @@ -19040,7 +19845,7 @@ "x-kubernetes-list-type": "atomic" }, "tolerations": { - "description": "If specified, the request's tolerations.\n\nTolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.\n\nIn addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.\n\nThe maximum number of tolerations is 16.\n\nThis is an alpha field and requires enabling the DRADeviceTaints feature gate.", + "description": "If specified, the request's tolerations.\n\nTolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute.\n\nIn addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated.\n\nThe maximum number of tolerations is 16.\n\nThis is a beta field and requires enabling the DRADeviceTaints feature gate.", "items": { "$ref": "#/definitions/v1beta2.DeviceToleration" }, @@ -19057,11 +19862,11 @@ "description": "NetworkDeviceData provides network-related details for the allocated device. This information may be filled by drivers or other components to configure or identify the device within a network context.", "properties": { "hardwareAddress": { - "description": "HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.\n\nMust not be longer than 128 characters.", + "description": "HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.\n\nMust not be longer than 128 bytes.", "type": "string" }, "interfaceName": { - "description": "InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.\n\nMust not be longer than 256 characters.", + "description": "InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod.\n\nMust not be longer than 256 bytes.", "type": "string" }, "ips": { @@ -19075,6 +19880,20 @@ }, "type": "object" }, + "v1beta2.NodeAllocatableResourceMapping": { + "description": "NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.", + "properties": { + "allocationMultiplier": { + "$ref": "#/definitions/resource.Quantity", + "description": "AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim. It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set. 1. If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.\n\t a. A DRA driver representing each CPU core as a device would have\n {ResourceName: \"cpu\", allocationMultiplier: \"2\"} in its\n `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,\n\t\t 4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.\n b. A GPU device that needs additional node memory per GPU allocation would\n have {ResourceName: \"memory\", allocationMultiplier: \"2Gi\"}. Each allocated\n\t\t GPU device instance of this type will account for 2Gi of memory.\n\n2. If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.\n\t The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.\n For example, if a Device's capacity \"dra.example.com/cores\" is consumed,\n and each \"core\" provides 2 \"cpu\"s, the mapping would be:\n {ResourceName: \"cpu\", capacityKey: \"dra.example.com/cores\", allocationMultiplier: \"2\"}.\n If a claim consumes 8 \"dra.example.com/cores\", the CPU footprint is 8 * 2 = 16." + }, + "capacityKey": { + "description": "CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry \"dra.example.com/memory\": \"128Gi\", and this field is set to \"dra.example.com/memory\", then for a claim allocation that consumes { \"dra.example.com/memory\": \"4Gi\" } the base quantity for the node allocatable resource mapping will be \"4Gi\", and `allocationMultiplier` should be omitted or set to \"1\".", + "type": "string" + } + }, + "type": "object" + }, "v1beta2.OpaqueDeviceConfiguration": { "description": "OpaqueDeviceConfiguration contains configuration parameters for a driver in a format defined by the driver vendor.", "properties": { @@ -19515,9 +20334,6 @@ "type": "integer" } }, - "required": [ - "value" - ], "type": "object", "x-kubernetes-group-version-kind": [ { @@ -19568,7 +20384,7 @@ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1alpha1.GangSchedulingPolicy": { + "v1alpha2.GangSchedulingPolicy": { "description": "GangSchedulingPolicy defines the parameters for gang scheduling.", "properties": { "minCount": { @@ -19582,39 +20398,315 @@ ], "type": "object" }, - "v1alpha1.PodGroup": { - "description": "PodGroup represents a set of pods with a common scheduling policy.", + "v1alpha2.PodGroup": { + "description": "PodGroup represents a runtime instance of pods grouped together. PodGroups are created by workload controllers (Job, LWS, JobSet, etc...) from Workload.podGroupTemplates. PodGroup API enablement is toggled by the GenericWorkload feature gate.", + "properties": { + "apiVersion": { + "description": "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", + "type": "string" + }, + "kind": { + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta", + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" + }, + "spec": { + "$ref": "#/definitions/v1alpha2.PodGroupSpec", + "description": "Spec defines the desired state of the PodGroup." + }, + "status": { + "$ref": "#/definitions/v1alpha2.PodGroupStatus", + "description": "Status represents the current observed state of the PodGroup." + } + }, + "required": [ + "spec" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha2" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v1alpha2.PodGroupList": { + "description": "PodGroupList contains a list of PodGroup resources.", + "properties": { + "apiVersion": { + "description": "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", + "type": "string" + }, + "items": { + "description": "Items is the list of PodGroups.", + "items": { + "$ref": "#/definitions/v1alpha2.PodGroup" + }, + "type": "array" + }, + "kind": { + "description": "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", + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta", + "description": "Standard list metadata." + } + }, + "required": [ + "items" + ], + "type": "object", + "x-kubernetes-group-version-kind": [ + { + "group": "scheduling.k8s.io", + "kind": "PodGroupList", + "version": "v1alpha2" + } + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v1alpha2.PodGroupResourceClaim": { + "description": "PodGroupResourceClaim references exactly one ResourceClaim, either directly or by naming a ResourceClaimTemplate which is then turned into a ResourceClaim for the PodGroup.\n\nIt adds a name to it that uniquely identifies the ResourceClaim inside the PodGroup. Pods that need access to the ResourceClaim define a matching reference in its own Spec.ResourceClaims. The Pod's claim must match all fields of the PodGroup's claim exactly.", + "properties": { + "name": { + "description": "Name uniquely identifies this resource claim inside the PodGroup. This must be a DNS_LABEL.", + "type": "string" + }, + "resourceClaimName": { + "description": "ResourceClaimName is the name of a ResourceClaim object in the same namespace as this PodGroup. The ResourceClaim will be reserved for the PodGroup instead of its individual pods.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", + "type": "string" + }, + "resourceClaimTemplateName": { + "description": "ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this PodGroup.\n\nThe template will be used to create a new ResourceClaim, which will be bound to this PodGroup. When this PodGroup is deleted, the ResourceClaim will also be deleted. The PodGroup name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in podgroup.status.resourceClaimStatuses.\n\nThis field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim.\n\nExactly one of ResourceClaimName and ResourceClaimTemplateName must be set.", + "type": "string" + } + }, + "required": [ + "name" + ], + "type": "object" + }, + "v1alpha2.PodGroupResourceClaimStatus": { + "description": "PodGroupResourceClaimStatus is stored in the PodGroupStatus for each PodGroupResourceClaim which references a ResourceClaimTemplate. It stores the generated name for the corresponding ResourceClaim.", "properties": { "name": { - "description": "Name is a unique identifier for the PodGroup within the Workload. It must be a DNS label. This field is immutable.", + "description": "Name uniquely identifies this resource claim inside the PodGroup. This must match the name of an entry in podgroup.spec.resourceClaims, which implies that the string must be a DNS_LABEL.", "type": "string" }, - "policy": { - "$ref": "#/definitions/v1alpha1.PodGroupPolicy", - "description": "Policy defines the scheduling policy for this PodGroup." + "resourceClaimName": { + "description": "ResourceClaimName is the name of the ResourceClaim that was generated for the PodGroup in the namespace of the PodGroup. If this is unset, then generating a ResourceClaim was not necessary. The podgroup.spec.resourceClaims entry can be ignored in this case.", + "type": "string" } }, "required": [ - "name", - "policy" + "name" ], "type": "object" }, - "v1alpha1.PodGroupPolicy": { - "description": "PodGroupPolicy defines the scheduling configuration for a PodGroup.", + "v1alpha2.PodGroupSchedulingConstraints": { + "description": "PodGroupSchedulingConstraints defines scheduling constraints (e.g. topology) for a PodGroup.", + "properties": { + "topology": { + "description": "Topology defines the topology constraints for the pod group. Currently only a single topology constraint can be specified. This may change in the future.", + "items": { + "$ref": "#/definitions/v1alpha2.TopologyConstraint" + }, + "type": "array", + "x-kubernetes-list-type": "atomic" + } + }, + "type": "object" + }, + "v1alpha2.PodGroupSchedulingPolicy": { + "description": "PodGroupSchedulingPolicy defines the scheduling configuration for a PodGroup. Exactly one policy must be set.", "properties": { "basic": { "description": "Basic specifies that the pods in this group should be scheduled using standard Kubernetes scheduling behavior.", "type": "object" }, "gang": { - "$ref": "#/definitions/v1alpha1.GangSchedulingPolicy", + "$ref": "#/definitions/v1alpha2.GangSchedulingPolicy", "description": "Gang specifies that the pods in this group should be scheduled using all-or-nothing semantics." } }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "basic": "Basic", + "gang": "Gang" + } + } + ] + }, + "v1alpha2.PodGroupSpec": { + "description": "PodGroupSpec defines the desired state of a PodGroup.", + "properties": { + "disruptionMode": { + "description": "DisruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if unset. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.", + "type": "string" + }, + "podGroupTemplateRef": { + "$ref": "#/definitions/v1alpha2.PodGroupTemplateReference", + "description": "PodGroupTemplateRef references an optional PodGroup template within other object (e.g. Workload) that was used to create the PodGroup. This field is immutable." + }, + "priority": { + "description": "Priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "PriorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group's priority will be zero). This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled.", + "type": "string" + }, + "resourceClaims": { + "description": "ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate.\n\nThis is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/v1alpha2.PodGroupResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, + "schedulingConstraints": { + "$ref": "#/definitions/v1alpha2.PodGroupSchedulingConstraints", + "description": "SchedulingConstraints defines optional scheduling constraints (e.g. topology) for this PodGroup. Controllers are expected to fill this field by copying it from a PodGroupTemplate. This field is immutable. This field is only available when the TopologyAwareWorkloadScheduling feature gate is enabled." + }, + "schedulingPolicy": { + "$ref": "#/definitions/v1alpha2.PodGroupSchedulingPolicy", + "description": "SchedulingPolicy defines the scheduling policy for this instance of the PodGroup. Controllers are expected to fill this field by copying it from a PodGroupTemplate. This field is immutable." + } + }, + "required": [ + "schedulingPolicy" + ], + "type": "object" + }, + "v1alpha2.PodGroupStatus": { + "description": "PodGroupStatus represents information about the status of a pod group.", + "properties": { + "conditions": { + "description": "Conditions represent the latest observations of the PodGroup's state.\n\nKnown condition types: - \"PodGroupScheduled\": Indicates whether the scheduling requirement has been satisfied. - \"DisruptionTarget\": Indicates whether the PodGroup is about to be terminated\n due to disruption such as preemption.\n\nKnown reasons for the PodGroupScheduled condition: - \"Unschedulable\": The PodGroup cannot be scheduled due to resource constraints,\n affinity/anti-affinity rules, or insufficient capacity for the gang.\n- \"SchedulerError\": The PodGroup cannot be scheduled due to some internal error\n that happened during scheduling, for example due to nodeAffinity parsing errors.\n\nKnown reasons for the DisruptionTarget condition: - \"PreemptionByScheduler\": The PodGroup was preempted by the scheduler to make room for\n higher-priority PodGroups or Pods.", + "items": { + "$ref": "#/definitions/v1.Condition" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "type" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "type", + "x-kubernetes-patch-strategy": "merge" + }, + "resourceClaimStatuses": { + "description": "Status of resource claims.", + "items": { + "$ref": "#/definitions/v1alpha2.PodGroupResourceClaimStatus" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + } + }, + "type": "object" + }, + "v1alpha2.PodGroupTemplate": { + "description": "PodGroupTemplate represents a template for a set of pods with a scheduling policy.", + "properties": { + "disruptionMode": { + "description": "DisruptionMode defines the mode in which a given PodGroup can be disrupted. One of Pod, PodGroup. This field is available only when the WorkloadAwarePreemption feature gate is enabled.", + "type": "string" + }, + "name": { + "description": "Name is a unique identifier for the PodGroupTemplate within the Workload. It must be a DNS label. This field is immutable.", + "type": "string" + }, + "priority": { + "description": "Priority is the value of priority of pod groups created from this template. Various system components use this field to find the priority of the pod group. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. This field is available only when the WorkloadAwarePreemption feature gate is enabled.", + "format": "int32", + "type": "integer" + }, + "priorityClassName": { + "description": "PriorityClassName indicates the priority that should be considered when scheduling a pod group created from this template. If no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, pod groups created from this template will have the priority set to zero. This field is available only when the WorkloadAwarePreemption feature gate is enabled.", + "type": "string" + }, + "resourceClaims": { + "description": "ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup's claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup's claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate.\n\nThis is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled.\n\nThis field is immutable.", + "items": { + "$ref": "#/definitions/v1alpha2.PodGroupResourceClaim" + }, + "type": "array", + "x-kubernetes-list-map-keys": [ + "name" + ], + "x-kubernetes-list-type": "map", + "x-kubernetes-patch-merge-key": "name", + "x-kubernetes-patch-strategy": "merge,retainKeys" + }, + "schedulingConstraints": { + "$ref": "#/definitions/v1alpha2.PodGroupSchedulingConstraints", + "description": "SchedulingConstraints defines optional scheduling constraints (e.g. topology) for this PodGroupTemplate. This field is only available when the TopologyAwareWorkloadScheduling feature gate is enabled." + }, + "schedulingPolicy": { + "$ref": "#/definitions/v1alpha2.PodGroupSchedulingPolicy", + "description": "SchedulingPolicy defines the scheduling policy for this PodGroupTemplate." + } + }, + "required": [ + "name", + "schedulingPolicy" + ], + "type": "object" + }, + "v1alpha2.PodGroupTemplateReference": { + "description": "PodGroupTemplateReference references a PodGroup template defined in some object (e.g. Workload). Exactly one reference must be set.", + "properties": { + "workload": { + "$ref": "#/definitions/v1alpha2.WorkloadPodGroupTemplateReference", + "description": "Workload references the PodGroupTemplate within the Workload object that was used to create the PodGroup." + } + }, + "type": "object", + "x-kubernetes-unions": [ + { + "fields-to-discriminateBy": { + "workload": "Workload" + } + } + ] + }, + "v1alpha2.TopologyConstraint": { + "description": "TopologyConstraint defines a topology constraint for a PodGroup.", + "properties": { + "key": { + "description": "Key specifies the key of the node label representing the topology domain. All pods within the PodGroup must be colocated within the same domain instance. Different PodGroups can land on different domain instances even if they derive from the same PodGroupTemplate. Examples: \"topology.kubernetes.io/rack\"", + "type": "string" + } + }, + "required": [ + "key" + ], "type": "object" }, - "v1alpha1.TypedLocalObjectReference": { + "v1alpha2.TypedLocalObjectReference": { "description": "TypedLocalObjectReference allows to reference typed object inside the same namespace.", "properties": { "apiGroup": { @@ -19636,8 +20728,8 @@ ], "type": "object" }, - "v1alpha1.Workload": { - "description": "Workload allows for expressing scheduling constraints that should be used when managing lifecycle of workloads from scheduling perspective, including scheduling, preemption, eviction and other phases.", + "v1alpha2.Workload": { + "description": "Workload allows for expressing scheduling constraints that should be used when managing the lifecycle of workloads from the scheduling perspective, including scheduling, preemption, eviction and other phases. Workload API enablement is toggled by the GenericWorkload feature gate.", "properties": { "apiVersion": { "description": "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", @@ -19649,10 +20741,10 @@ }, "metadata": { "$ref": "#/definitions/v1.ObjectMeta", - "description": "Standard object's metadata. Name must be a DNS subdomain." + "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, "spec": { - "$ref": "#/definitions/v1alpha1.WorkloadSpec", + "$ref": "#/definitions/v1alpha2.WorkloadSpec", "description": "Spec defines the desired behavior of a Workload." } }, @@ -19664,14 +20756,14 @@ { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha1" + "version": "v1alpha2" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesObject" ] }, - "v1alpha1.WorkloadList": { + "v1alpha2.WorkloadList": { "description": "WorkloadList contains a list of Workload resources.", "properties": { "apiVersion": { @@ -19681,7 +20773,7 @@ "items": { "description": "Items is the list of Workloads.", "items": { - "$ref": "#/definitions/v1alpha1.Workload" + "$ref": "#/definitions/v1alpha2.Workload" }, "type": "array" }, @@ -19702,24 +20794,42 @@ { "group": "scheduling.k8s.io", "kind": "WorkloadList", - "version": "v1alpha1" + "version": "v1alpha2" } ], "x-implements": [ "io.kubernetes.client.common.KubernetesListObject" ] }, - "v1alpha1.WorkloadSpec": { + "v1alpha2.WorkloadPodGroupTemplateReference": { + "description": "WorkloadPodGroupTemplateReference references the PodGroupTemplate within the Workload object.", + "properties": { + "podGroupTemplateName": { + "description": "PodGroupTemplateName defines the PodGroupTemplate name within the Workload object.", + "type": "string" + }, + "workloadName": { + "description": "WorkloadName defines the name of the Workload object.", + "type": "string" + } + }, + "required": [ + "workloadName", + "podGroupTemplateName" + ], + "type": "object" + }, + "v1alpha2.WorkloadSpec": { "description": "WorkloadSpec defines the desired state of a Workload.", "properties": { "controllerRef": { - "$ref": "#/definitions/v1alpha1.TypedLocalObjectReference", - "description": "ControllerRef is an optional reference to the controlling object, such as a Deployment or Job. This field is intended for use by tools like CLIs to provide a link back to the original workload definition. When set, it cannot be changed." + "$ref": "#/definitions/v1alpha2.TypedLocalObjectReference", + "description": "ControllerRef is an optional reference to the controlling object, such as a Deployment or Job. This field is intended for use by tools like CLIs to provide a link back to the original workload definition. This field is immutable." }, - "podGroups": { - "description": "PodGroups is the list of pod groups that make up the Workload. The maximum number of pod groups is 8. This field is immutable.", + "podGroupTemplates": { + "description": "PodGroupTemplates is the list of templates that make up the Workload. The maximum number of templates is 8. This field is immutable.", "items": { - "$ref": "#/definitions/v1alpha1.PodGroup" + "$ref": "#/definitions/v1alpha2.PodGroupTemplate" }, "type": "array", "x-kubernetes-list-map-keys": [ @@ -19729,7 +20839,7 @@ } }, "required": [ - "podGroups" + "podGroupTemplates" ], "type": "object" }, @@ -19818,7 +20928,7 @@ "type": "string" }, "nodeAllocatableUpdatePeriodSeconds": { - "description": "nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds.\n\nThis is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", + "description": "nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds.\n\nThis feature requires the MutableCSINodeAllocatableCount feature gate to be enabled.\n\nThis field is mutable.", "format": "int64", "type": "integer" }, @@ -19826,6 +20936,10 @@ "description": "podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations, if set to true. If set to false, pod information will not be passed on mount. Default is false.\n\nThe CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext.\n\nThe following VolumeContext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix 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\" if the volume is an ephemeral inline volume\n defined by a CSIVolumeSource, otherwise \"false\"\n\n\"csi.storage.k8s.io/ephemeral\" is a new feature in Kubernetes 1.16. It is only required for drivers which support both the \"Persistent\" and \"Ephemeral\" VolumeLifecycleMode. Other drivers can leave pod 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.\n\nThis field was immutable in Kubernetes < 1.29 and now is mutable.", "type": "boolean" }, + "preventPodSchedulingIfMissing": { + "description": "PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod scheduling if the CSI driver on the node is missing.\n\nEnabling this option will prevent the scheduler (or any other component which embeds default scheduler such as cluster-autoscaler) from scheduling pods to nodes where CSI driver is not installed.\n\nFor components(such as cluster-autoscaler) that embed the scheduler and run pod placement simulations using scheduler plugins, they MUST be aware of CSI driver registration information via CSINode object. They must create simulated CSINode objects in addition to Node objects during scheduling simulation, otherwise if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any newly created node may be rejected by the scheduler because of missing CSI driver information from the node.\n\nThis is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled. Default is \"false\".", + "type": "boolean" + }, "requiresRepublish": { "description": "requiresRepublish indicates the CSI driver wants `NodePublishVolume` being periodically called to reflect any possible change in the mounted volume. This field defaults to false.\n\nNote: After a successful initial NodePublishVolume call, subsequent calls to NodePublishVolume should only update the contents of the volume. New mount points will not be seen by a running container.", "type": "boolean" @@ -20423,7 +21537,7 @@ "description": "VolumeError captures an error encountered during a volume operation.", "properties": { "errorCode": { - "description": "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.\n\nThis is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.", + "description": "errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.\n\nThis field requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.", "format": "int32", "type": "integer" }, @@ -21765,16 +22879,6 @@ "kind": "DeleteOptions", "version": "v2" }, - { - "group": "autoscaling", - "kind": "DeleteOptions", - "version": "v2beta1" - }, - { - "group": "autoscaling", - "kind": "DeleteOptions", - "version": "v2beta2" - }, { "group": "batch", "kind": "DeleteOptions", @@ -21948,7 +23052,7 @@ { "group": "scheduling.k8s.io", "kind": "DeleteOptions", - "version": "v1alpha1" + "version": "v1alpha2" }, { "group": "scheduling.k8s.io", @@ -22104,6 +23208,10 @@ "selfLink": { "description": "Deprecated: selfLink is a legacy read-only field that is no longer populated by the system.", "type": "string" + }, + "shardInfo": { + "$ref": "#/definitions/v1.ShardInfo", + "description": "shardInfo is set when the list is a filtered subset of the full collection, as selected by a shard selector on the request. It echoes back the selector so clients can verify which shard they received and merge sharded responses. Clients should not cache sharded list responses as a full representation of the collection.\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate." } }, "type": "object" @@ -22311,6 +23419,19 @@ ], "type": "object" }, + "v1.ShardInfo": { + "description": "ShardInfo describes the shard selector that was applied to produce a list response. Its presence on a list response indicates the list is a filtered subset.", + "properties": { + "selector": { + "description": "selector is the shard selector string from the request, echoed back so clients can verify which shard they received and merge responses from multiple shards.", + "type": "string" + } + }, + "required": [ + "selector" + ], + "type": "object" + }, "v1.Status": { "description": "Status is a return value for calls that don't return other objects.", "properties": { @@ -22527,16 +23648,6 @@ "kind": "WatchEvent", "version": "v2" }, - { - "group": "autoscaling", - "kind": "WatchEvent", - "version": "v2beta1" - }, - { - "group": "autoscaling", - "kind": "WatchEvent", - "version": "v2beta2" - }, { "group": "batch", "kind": "WatchEvent", @@ -22710,7 +23821,7 @@ { "group": "scheduling.k8s.io", "kind": "WatchEvent", - "version": "v1alpha1" + "version": "v1alpha2" }, { "group": "scheduling.k8s.io", @@ -22990,11 +24101,408 @@ } }, "type": "object" + }, + "v2beta1.APIGroupDiscoveryList": { + "type": "object", + "description": "APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports.", + "x-kubernetes-group-version-kind": [ + { + "group": "apidiscovery.k8s.io", + "kind": "APIGroupDiscoveryList", + "version": "v2beta1" + } + ], + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/v2beta1.APIGroupDiscovery" + } + } + }, + "required": [ + "items" + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v2beta1.APIGroupDiscovery": { + "type": "object", + "description": "APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry.", + "x-kubernetes-group-version-kind": [ + { + "group": "apidiscovery.k8s.io", + "kind": "APIGroupDiscovery", + "version": "v2beta1" + } + ], + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "versions": { + "type": "array", + "items": { + "$ref": "#/definitions/v2beta1.APIVersionDiscovery" + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-list-map-keys": [ + "version" + ] + } + }, + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v2beta1.APIVersionDiscovery": { + "type": "object", + "description": "APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.", + "properties": { + "version": { + "type": "string", + "description": "version is the name of the version within a group version." + }, + "resources": { + "type": "array", + "items": { + "$ref": "#/definitions/v2beta1.APIResourceDiscovery" + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-list-map-keys": [ + "resource" + ] + }, + "freshness": { + "type": "string", + "description": "freshness marks whether a group version's discovery document is up to date." + } + }, + "required": [ + "version" + ] + }, + "v2beta1.APIResourceDiscovery": { + "type": "object", + "description": "APIResourceDiscovery provides information about an API resource for discovery.", + "properties": { + "resource": { + "type": "string", + "description": "resource is the plural name of the resource." + }, + "responseKind": { + "$ref": "#/definitions/v1.GroupVersionKind" + }, + "scope": { + "type": "string", + "description": "scope indicates the scope of a resource, either Cluster or Namespaced" + }, + "singularResource": { + "type": "string", + "description": "singularResource is the singular name of the resource." + }, + "verbs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "verbs is a list of supported API operation types" + }, + "shortNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "shortNames is a list of suggested short names of the resource." + }, + "categories": { + "type": "array", + "items": { + "type": "string" + }, + "description": "categories is a list of the grouped resources this resource belongs to." + }, + "subresources": { + "type": "array", + "items": { + "$ref": "#/definitions/v2beta1.APISubresourceDiscovery" + } + } + }, + "required": [ + "resource", + "scope", + "singularResource", + "verbs" + ] + }, + "v2beta1.APISubresourceDiscovery": { + "type": "object", + "description": "APISubresourceDiscovery provides information about an API subresource for discovery.", + "properties": { + "subresource": { + "type": "string", + "description": "subresource is the name of the subresource." + }, + "responseKind": { + "$ref": "#/definitions/v1.GroupVersionKind" + }, + "verbs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "verbs is a list of supported API operation types" + }, + "acceptedTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.GroupVersionKind" + } + } + }, + "required": [ + "subresource", + "verbs" + ] + }, + "v2.APIGroupDiscoveryList": { + "type": "object", + "description": "APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery. This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers) that a cluster supports.", + "x-kubernetes-group-version-kind": [ + { + "group": "apidiscovery.k8s.io", + "kind": "APIGroupDiscoveryList", + "version": "v2" + } + ], + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ListMeta" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/definitions/v2.APIGroupDiscovery" + } + } + }, + "required": [ + "items" + ], + "x-implements": [ + "io.kubernetes.client.common.KubernetesListObject" + ] + }, + "v2.APIGroupDiscovery": { + "type": "object", + "description": "APIGroupDiscovery holds information about which resources are being served for all version of the API Group. It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version. Versions are in descending order of preference, with the first version being the preferred entry.", + "x-kubernetes-group-version-kind": [ + { + "group": "apidiscovery.k8s.io", + "kind": "APIGroupDiscovery", + "version": "v2" + } + ], + "properties": { + "apiVersion": { + "type": "string" + }, + "kind": { + "type": "string" + }, + "metadata": { + "$ref": "#/definitions/v1.ObjectMeta" + }, + "versions": { + "type": "array", + "items": { + "$ref": "#/definitions/v2.APIVersionDiscovery" + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-list-map-keys": [ + "version" + ] + } + }, + "x-implements": [ + "io.kubernetes.client.common.KubernetesObject" + ] + }, + "v2.APIVersionDiscovery": { + "type": "object", + "description": "APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.", + "properties": { + "version": { + "type": "string", + "description": "version is the name of the version within a group version." + }, + "resources": { + "type": "array", + "items": { + "$ref": "#/definitions/v2.APIResourceDiscovery" + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-list-map-keys": [ + "resource" + ] + }, + "freshness": { + "type": "string", + "description": "freshness marks whether a group version's discovery document is up to date." + } + }, + "required": [ + "version" + ] + }, + "v2.APIResourceDiscovery": { + "type": "object", + "description": "APIResourceDiscovery provides information about an API resource for discovery.", + "properties": { + "resource": { + "type": "string", + "description": "resource is the plural name of the resource." + }, + "responseKind": { + "$ref": "#/definitions/v1.GroupVersionKind" + }, + "scope": { + "type": "string", + "description": "scope indicates the scope of a resource, either Cluster or Namespaced" + }, + "singularResource": { + "type": "string", + "description": "singularResource is the singular name of the resource." + }, + "verbs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "verbs is a list of supported API operation types", + "x-kubernetes-list-type": "set" + }, + "shortNames": { + "type": "array", + "items": { + "type": "string" + }, + "description": "shortNames is a list of suggested short names of the resource.", + "x-kubernetes-list-type": "set" + }, + "categories": { + "type": "array", + "items": { + "type": "string" + }, + "description": "categories is a list of the grouped resources this resource belongs to.", + "x-kubernetes-list-type": "set" + }, + "subresources": { + "type": "array", + "items": { + "$ref": "#/definitions/v2.APISubresourceDiscovery" + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-list-map-keys": [ + "subresource" + ] + } + }, + "required": [ + "resource", + "scope", + "singularResource", + "verbs" + ] + }, + "v2.APISubresourceDiscovery": { + "type": "object", + "description": "APISubresourceDiscovery provides information about an API subresource for discovery.", + "properties": { + "subresource": { + "type": "string", + "description": "subresource is the name of the subresource." + }, + "responseKind": { + "$ref": "#/definitions/v1.GroupVersionKind" + }, + "acceptedTypes": { + "type": "array", + "items": { + "$ref": "#/definitions/v1.GroupVersionKind" + }, + "x-kubernetes-list-type": "map", + "x-kubernetes-list-map-keys": [ + "group", + "version", + "kind" + ] + }, + "verbs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "verbs is a list of supported API operation types", + "x-kubernetes-list-type": "set" + } + }, + "required": [ + "subresource", + "verbs" + ] + }, + "v1.GroupVersionKind": { + "description": "GroupVersionKind unambiguously identifies a kind.", + "type": "object", + "properties": { + "group": { + "type": "string", + "description": "group is the group part of the GroupVersionKind." + }, + "kind": { + "type": "string", + "description": "kind is the kind part of the GroupVersionKind." + }, + "version": { + "type": "string", + "description": "version is the version part of the GroupVersionKind." + } + }, + "required": [ + "group", + "kind", + "version" + ] } }, "info": { "title": "Kubernetes", - "version": "release-1.35" + "version": "release-1.36" }, "paths": { "/api/": { @@ -23164,6 +24672,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -23339,6 +24854,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -23459,6 +24981,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -23579,6 +25108,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -23699,6 +25235,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -23779,6 +25322,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -24115,6 +25665,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -24217,6 +25774,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -24767,6 +26331,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -24869,6 +26440,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -25419,6 +26997,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -25521,6 +27106,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -26071,6 +27663,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -26173,6 +27772,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -26723,6 +28329,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -26825,6 +28438,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -27593,6 +29213,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -27695,6 +29322,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -30106,6 +31740,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -30208,6 +31849,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -30758,6 +32406,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -30860,6 +32515,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -31846,6 +33508,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -31948,6 +33617,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -32716,6 +34392,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -32818,6 +34501,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -33368,6 +35058,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -33470,6 +35167,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -34127,6 +35831,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -34229,6 +35940,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -36121,6 +37839,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -36223,6 +37948,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -37480,6 +39212,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -37595,6 +39334,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -37697,6 +39443,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -38446,6 +40199,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -38566,6 +40326,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -38686,6 +40453,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -38806,6 +40580,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -38926,6 +40707,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -39046,6 +40834,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -39166,6 +40961,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -39247,6 +41049,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -39328,6 +41137,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -39409,6 +41225,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -39490,6 +41313,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -39571,6 +41401,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -39660,6 +41497,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -39757,6 +41601,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -39846,6 +41697,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -39943,6 +41801,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -40032,6 +41897,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -40129,6 +42001,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -40218,6 +42097,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -40315,6 +42201,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -40404,6 +42297,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -40501,6 +42401,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -40590,6 +42497,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -40687,6 +42601,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -40776,6 +42697,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -40873,6 +42801,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -40962,6 +42897,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -41059,6 +43001,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -41148,6 +43097,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -41245,6 +43201,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -41334,6 +43297,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -41431,6 +43401,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -41520,6 +43497,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -41617,6 +43601,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -41706,6 +43697,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -41803,6 +43801,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -41893,86 +43898,12 @@ "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/nodes": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", + "name": "shardSelector", "type": "string", "uniqueItems": true }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -41989,7 +43920,7 @@ } ] }, - "/api/v1/watch/nodes/{name}": { + "/api/v1/watch/nodes": { "parameters": [ { "description": "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.", @@ -42026,14 +43957,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the Node", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -42063,86 +43986,12 @@ "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/api/v1/watch/persistentvolumeclaims": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", + "name": "shardSelector", "type": "string", "uniqueItems": true }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -42159,7 +44008,191 @@ } ] }, - "/api/v1/watch/persistentvolumes": { + "/api/v1/watch/nodes/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the Node", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/api/v1/watch/persistentvolumeclaims": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/api/v1/watch/persistentvolumes": { "parameters": [ { "description": "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.", @@ -42224,6 +44257,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -42313,6 +44353,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -42394,6 +44441,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -42475,6 +44529,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -42556,6 +44617,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -42637,6 +44705,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -42718,6 +44793,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -42799,6 +44881,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -42880,6 +44969,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -42990,13 +45086,13 @@ ] } }, - "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations": { + "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of MutatingWebhookConfiguration", - "operationId": "deleteCollectionMutatingWebhookConfiguration", + "description": "delete collection of MutatingAdmissionPolicy", + "operationId": "deleteCollectionMutatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -43089,6 +45185,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -43123,7 +45226,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", + "kind": "MutatingAdmissionPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -43132,8 +45235,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind MutatingWebhookConfiguration", - "operationId": "listMutatingWebhookConfiguration", + "description": "list or watch objects of kind MutatingAdmissionPolicy", + "operationId": "listMutatingAdmissionPolicy", "parameters": [ { "description": "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.", @@ -43191,6 +45294,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -43219,7 +45329,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.MutatingWebhookConfigurationList" + "$ref": "#/definitions/v1.MutatingAdmissionPolicyList" } }, "401": { @@ -43235,7 +45345,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", + "kind": "MutatingAdmissionPolicy", "version": "v1" } }, @@ -43252,15 +45362,15 @@ "consumes": [ "application/json" ], - "description": "create a MutatingWebhookConfiguration", - "operationId": "createMutatingWebhookConfiguration", + "description": "create a MutatingAdmissionPolicy", + "operationId": "createMutatingAdmissionPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.MutatingWebhookConfiguration" + "$ref": "#/definitions/v1.MutatingAdmissionPolicy" } }, { @@ -43295,19 +45405,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.MutatingWebhookConfiguration" + "$ref": "#/definitions/v1.MutatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.MutatingWebhookConfiguration" + "$ref": "#/definitions/v1.MutatingAdmissionPolicy" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.MutatingWebhookConfiguration" + "$ref": "#/definitions/v1.MutatingAdmissionPolicy" } }, "401": { @@ -43323,19 +45433,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", + "kind": "MutatingAdmissionPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}": { + "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicies/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a MutatingWebhookConfiguration", - "operationId": "deleteMutatingWebhookConfiguration", + "description": "delete a MutatingAdmissionPolicy", + "operationId": "deleteMutatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -43412,7 +45522,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", + "kind": "MutatingAdmissionPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -43421,8 +45531,8 @@ "consumes": [ "application/json" ], - "description": "read the specified MutatingWebhookConfiguration", - "operationId": "readMutatingWebhookConfiguration", + "description": "read the specified MutatingAdmissionPolicy", + "operationId": "readMutatingAdmissionPolicy", "produces": [ "application/json", "application/yaml", @@ -43433,7 +45543,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.MutatingWebhookConfiguration" + "$ref": "#/definitions/v1.MutatingAdmissionPolicy" } }, "401": { @@ -43449,13 +45559,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", + "kind": "MutatingAdmissionPolicy", "version": "v1" } }, "parameters": [ { - "description": "name of the MutatingWebhookConfiguration", + "description": "name of the MutatingAdmissionPolicy", "in": "path", "name": "name", "required": true, @@ -43474,8 +45584,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified MutatingWebhookConfiguration", - "operationId": "patchMutatingWebhookConfiguration", + "description": "partially update the specified MutatingAdmissionPolicy", + "operationId": "patchMutatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -43524,13 +45634,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.MutatingWebhookConfiguration" + "$ref": "#/definitions/v1.MutatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.MutatingWebhookConfiguration" + "$ref": "#/definitions/v1.MutatingAdmissionPolicy" } }, "401": { @@ -43546,7 +45656,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", + "kind": "MutatingAdmissionPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -43555,15 +45665,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified MutatingWebhookConfiguration", - "operationId": "replaceMutatingWebhookConfiguration", + "description": "replace the specified MutatingAdmissionPolicy", + "operationId": "replaceMutatingAdmissionPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.MutatingWebhookConfiguration" + "$ref": "#/definitions/v1.MutatingAdmissionPolicy" } }, { @@ -43598,13 +45708,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.MutatingWebhookConfiguration" + "$ref": "#/definitions/v1.MutatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.MutatingWebhookConfiguration" + "$ref": "#/definitions/v1.MutatingAdmissionPolicy" } }, "401": { @@ -43620,19 +45730,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingWebhookConfiguration", + "kind": "MutatingAdmissionPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies": { + "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ValidatingAdmissionPolicy", - "operationId": "deleteCollectionValidatingAdmissionPolicy", + "description": "delete collection of MutatingAdmissionPolicyBinding", + "operationId": "deleteCollectionMutatingAdmissionPolicyBinding", "parameters": [ { "in": "body", @@ -43725,6 +45835,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -43759,7 +45876,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicy", + "kind": "MutatingAdmissionPolicyBinding", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -43768,8 +45885,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ValidatingAdmissionPolicy", - "operationId": "listValidatingAdmissionPolicy", + "description": "list or watch objects of kind MutatingAdmissionPolicyBinding", + "operationId": "listMutatingAdmissionPolicyBinding", "parameters": [ { "description": "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.", @@ -43827,6 +45944,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -43855,7 +45979,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicyList" + "$ref": "#/definitions/v1.MutatingAdmissionPolicyBindingList" } }, "401": { @@ -43871,7 +45995,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicy", + "kind": "MutatingAdmissionPolicyBinding", "version": "v1" } }, @@ -43888,15 +46012,15 @@ "consumes": [ "application/json" ], - "description": "create a ValidatingAdmissionPolicy", - "operationId": "createValidatingAdmissionPolicy", + "description": "create a MutatingAdmissionPolicyBinding", + "operationId": "createMutatingAdmissionPolicyBinding", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + "$ref": "#/definitions/v1.MutatingAdmissionPolicyBinding" } }, { @@ -43931,19 +46055,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + "$ref": "#/definitions/v1.MutatingAdmissionPolicyBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + "$ref": "#/definitions/v1.MutatingAdmissionPolicyBinding" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + "$ref": "#/definitions/v1.MutatingAdmissionPolicyBinding" } }, "401": { @@ -43959,19 +46083,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicy", + "kind": "MutatingAdmissionPolicyBinding", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}": { + "/apis/admissionregistration.k8s.io/v1/mutatingadmissionpolicybindings/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ValidatingAdmissionPolicy", - "operationId": "deleteValidatingAdmissionPolicy", + "description": "delete a MutatingAdmissionPolicyBinding", + "operationId": "deleteMutatingAdmissionPolicyBinding", "parameters": [ { "in": "body", @@ -44048,227 +46172,17 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicy", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified ValidatingAdmissionPolicy", - "operationId": "readValidatingAdmissionPolicy", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicy", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ValidatingAdmissionPolicy", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified ValidatingAdmissionPolicy", - "operationId": "patchValidatingAdmissionPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicy", + "kind": "MutatingAdmissionPolicyBinding", "version": "v1" }, "x-codegen-request-body-name": "body" }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified ValidatingAdmissionPolicy", - "operationId": "replaceValidatingAdmissionPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicy", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified ValidatingAdmissionPolicy", - "operationId": "readValidatingAdmissionPolicyStatus", + "description": "read the specified MutatingAdmissionPolicyBinding", + "operationId": "readMutatingAdmissionPolicyBinding", "produces": [ "application/json", "application/yaml", @@ -44279,7 +46193,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + "$ref": "#/definitions/v1.MutatingAdmissionPolicyBinding" } }, "401": { @@ -44295,13 +46209,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicy", + "kind": "MutatingAdmissionPolicyBinding", "version": "v1" } }, "parameters": [ { - "description": "name of the ValidatingAdmissionPolicy", + "description": "name of the MutatingAdmissionPolicyBinding", "in": "path", "name": "name", "required": true, @@ -44320,8 +46234,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified ValidatingAdmissionPolicy", - "operationId": "patchValidatingAdmissionPolicyStatus", + "description": "partially update the specified MutatingAdmissionPolicyBinding", + "operationId": "patchMutatingAdmissionPolicyBinding", "parameters": [ { "in": "body", @@ -44370,13 +46284,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + "$ref": "#/definitions/v1.MutatingAdmissionPolicyBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + "$ref": "#/definitions/v1.MutatingAdmissionPolicyBinding" } }, "401": { @@ -44392,7 +46306,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicy", + "kind": "MutatingAdmissionPolicyBinding", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -44401,15 +46315,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified ValidatingAdmissionPolicy", - "operationId": "replaceValidatingAdmissionPolicyStatus", + "description": "replace the specified MutatingAdmissionPolicyBinding", + "operationId": "replaceMutatingAdmissionPolicyBinding", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + "$ref": "#/definitions/v1.MutatingAdmissionPolicyBinding" } }, { @@ -44444,13 +46358,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + "$ref": "#/definitions/v1.MutatingAdmissionPolicyBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + "$ref": "#/definitions/v1.MutatingAdmissionPolicyBinding" } }, "401": { @@ -44466,19 +46380,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicy", + "kind": "MutatingAdmissionPolicyBinding", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings": { + "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ValidatingAdmissionPolicyBinding", - "operationId": "deleteCollectionValidatingAdmissionPolicyBinding", + "description": "delete collection of MutatingWebhookConfiguration", + "operationId": "deleteCollectionMutatingWebhookConfiguration", "parameters": [ { "in": "body", @@ -44571,6 +46485,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -44605,7 +46526,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicyBinding", + "kind": "MutatingWebhookConfiguration", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -44614,8 +46535,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ValidatingAdmissionPolicyBinding", - "operationId": "listValidatingAdmissionPolicyBinding", + "description": "list or watch objects of kind MutatingWebhookConfiguration", + "operationId": "listMutatingWebhookConfiguration", "parameters": [ { "description": "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.", @@ -44673,6 +46594,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -44701,7 +46629,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBindingList" + "$ref": "#/definitions/v1.MutatingWebhookConfigurationList" } }, "401": { @@ -44717,7 +46645,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicyBinding", + "kind": "MutatingWebhookConfiguration", "version": "v1" } }, @@ -44734,15 +46662,15 @@ "consumes": [ "application/json" ], - "description": "create a ValidatingAdmissionPolicyBinding", - "operationId": "createValidatingAdmissionPolicyBinding", + "description": "create a MutatingWebhookConfiguration", + "operationId": "createMutatingWebhookConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1.MutatingWebhookConfiguration" } }, { @@ -44777,19 +46705,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1.MutatingWebhookConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1.MutatingWebhookConfiguration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1.MutatingWebhookConfiguration" } }, "401": { @@ -44805,19 +46733,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicyBinding", + "kind": "MutatingWebhookConfiguration", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}": { + "/apis/admissionregistration.k8s.io/v1/mutatingwebhookconfigurations/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ValidatingAdmissionPolicyBinding", - "operationId": "deleteValidatingAdmissionPolicyBinding", + "description": "delete a MutatingWebhookConfiguration", + "operationId": "deleteMutatingWebhookConfiguration", "parameters": [ { "in": "body", @@ -44894,7 +46822,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicyBinding", + "kind": "MutatingWebhookConfiguration", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -44903,8 +46831,8 @@ "consumes": [ "application/json" ], - "description": "read the specified ValidatingAdmissionPolicyBinding", - "operationId": "readValidatingAdmissionPolicyBinding", + "description": "read the specified MutatingWebhookConfiguration", + "operationId": "readMutatingWebhookConfiguration", "produces": [ "application/json", "application/yaml", @@ -44915,7 +46843,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1.MutatingWebhookConfiguration" } }, "401": { @@ -44931,13 +46859,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicyBinding", + "kind": "MutatingWebhookConfiguration", "version": "v1" } }, "parameters": [ { - "description": "name of the ValidatingAdmissionPolicyBinding", + "description": "name of the MutatingWebhookConfiguration", "in": "path", "name": "name", "required": true, @@ -44956,8 +46884,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified ValidatingAdmissionPolicyBinding", - "operationId": "patchValidatingAdmissionPolicyBinding", + "description": "partially update the specified MutatingWebhookConfiguration", + "operationId": "patchMutatingWebhookConfiguration", "parameters": [ { "in": "body", @@ -45006,13 +46934,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1.MutatingWebhookConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1.MutatingWebhookConfiguration" } }, "401": { @@ -45028,7 +46956,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicyBinding", + "kind": "MutatingWebhookConfiguration", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -45037,15 +46965,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified ValidatingAdmissionPolicyBinding", - "operationId": "replaceValidatingAdmissionPolicyBinding", + "description": "replace the specified MutatingWebhookConfiguration", + "operationId": "replaceMutatingWebhookConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1.MutatingWebhookConfiguration" } }, { @@ -45080,13 +47008,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1.MutatingWebhookConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1.MutatingWebhookConfiguration" } }, "401": { @@ -45102,19 +47030,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingAdmissionPolicyBinding", + "kind": "MutatingWebhookConfiguration", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations": { + "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ValidatingWebhookConfiguration", - "operationId": "deleteCollectionValidatingWebhookConfiguration", + "description": "delete collection of ValidatingAdmissionPolicy", + "operationId": "deleteCollectionValidatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -45207,6 +47135,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -45241,7 +47176,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", + "kind": "ValidatingAdmissionPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -45250,8 +47185,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ValidatingWebhookConfiguration", - "operationId": "listValidatingWebhookConfiguration", + "description": "list or watch objects of kind ValidatingAdmissionPolicy", + "operationId": "listValidatingAdmissionPolicy", "parameters": [ { "description": "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.", @@ -45309,6 +47244,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -45337,7 +47279,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ValidatingWebhookConfigurationList" + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyList" } }, "401": { @@ -45353,7 +47295,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", + "kind": "ValidatingAdmissionPolicy", "version": "v1" } }, @@ -45370,15 +47312,15 @@ "consumes": [ "application/json" ], - "description": "create a ValidatingWebhookConfiguration", - "operationId": "createValidatingWebhookConfiguration", + "description": "create a ValidatingAdmissionPolicy", + "operationId": "createValidatingAdmissionPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" } }, { @@ -45413,19 +47355,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" } }, "401": { @@ -45441,19 +47383,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", + "kind": "ValidatingAdmissionPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}": { + "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ValidatingWebhookConfiguration", - "operationId": "deleteValidatingWebhookConfiguration", + "description": "delete a ValidatingAdmissionPolicy", + "operationId": "deleteValidatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -45530,7 +47472,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", + "kind": "ValidatingAdmissionPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -45539,8 +47481,8 @@ "consumes": [ "application/json" ], - "description": "read the specified ValidatingWebhookConfiguration", - "operationId": "readValidatingWebhookConfiguration", + "description": "read the specified ValidatingAdmissionPolicy", + "operationId": "readValidatingAdmissionPolicy", "produces": [ "application/json", "application/yaml", @@ -45551,7 +47493,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" } }, "401": { @@ -45567,13 +47509,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", + "kind": "ValidatingAdmissionPolicy", "version": "v1" } }, "parameters": [ { - "description": "name of the ValidatingWebhookConfiguration", + "description": "name of the ValidatingAdmissionPolicy", "in": "path", "name": "name", "required": true, @@ -45592,8 +47534,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified ValidatingWebhookConfiguration", - "operationId": "patchValidatingWebhookConfiguration", + "description": "partially update the specified ValidatingAdmissionPolicy", + "operationId": "patchValidatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -45642,13 +47584,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" } }, "401": { @@ -45664,7 +47606,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", + "kind": "ValidatingAdmissionPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -45673,15 +47615,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified ValidatingWebhookConfiguration", - "operationId": "replaceValidatingWebhookConfiguration", + "description": "replace the specified ValidatingAdmissionPolicy", + "operationId": "replaceValidatingAdmissionPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" } }, { @@ -45716,13 +47658,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" } }, "401": { @@ -45738,132 +47680,52 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", + "kind": "ValidatingAdmissionPolicy", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicies/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified ValidatingAdmissionPolicy", + "operationId": "readValidatingAdmissionPolicyStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1" } - ] - }, - "/apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations/{name}": { + }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the MutatingWebhookConfiguration", + "description": "name of the ValidatingAdmissionPolicy", "in": "path", "name": "name", "required": true, @@ -45876,561 +47738,702 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified ValidatingAdmissionPolicy", + "operationId": "patchValidatingAdmissionPolicyStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1" }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified ValidatingAdmissionPolicy", + "operationId": "replaceValidatingAdmissionPolicyStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicy" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicy", + "version": "v1" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicies": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of ValidatingAdmissionPolicyBinding", + "operationId": "deleteCollectionValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1" }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind ValidatingAdmissionPolicyBinding", + "operationId": "listValidatingAdmissionPolicyBinding", + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBindingList" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1" + } + }, + "parameters": [ { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a ValidatingAdmissionPolicyBinding", + "operationId": "createValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1" }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/admissionregistration.k8s.io/v1/validatingadmissionpolicybindings/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a ValidatingAdmissionPolicyBinding", + "operationId": "deleteValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified ValidatingAdmissionPolicyBinding", + "operationId": "readValidatingAdmissionPolicyBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1" + } + }, + "parameters": [ { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", + "description": "name of the ValidatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", "uniqueItems": true }, { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", - "name": "watch", - "type": "boolean", + "name": "pretty", + "type": "string", "uniqueItems": true } - ] - }, - "/apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicies/{name}": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ValidatingAdmissionPolicy", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicybindings": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicybindings/{name}": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ValidatingAdmissionPolicyBinding", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations/{name}": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ValidatingWebhookConfiguration", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/admissionregistration.k8s.io/v1alpha1/": { - "get": { + ], + "patch": { "consumes": [ "application/json" ], - "description": "get available resources", - "operationId": "getAPIResources", + "description": "partially update the specified ValidatingAdmissionPolicyBinding", + "operationId": "patchValidatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -46441,7 +48444,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" } }, "401": { @@ -46452,32 +48461,113 @@ "https" ], "tags": [ - "admissionregistration_v1alpha1" - ] - } - }, - "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies": { - "delete": { + "admissionregistration_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { "consumes": [ "application/json" ], - "description": "delete collection of MutatingAdmissionPolicy", - "operationId": "deleteCollectionMutatingAdmissionPolicy", + "description": "replace the specified ValidatingAdmissionPolicyBinding", + "operationId": "replaceValidatingAdmissionPolicyBinding", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" } }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ValidatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingAdmissionPolicyBinding", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of ValidatingWebhookConfiguration", + "operationId": "deleteCollectionValidatingWebhookConfiguration", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, { "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", @@ -46555,6 +48645,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -46584,13 +48681,13 @@ "https" ], "tags": [ - "admissionregistration_v1alpha1" + "admissionregistration_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicy", - "version": "v1alpha1" + "kind": "ValidatingWebhookConfiguration", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -46598,8 +48695,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind MutatingAdmissionPolicy", - "operationId": "listMutatingAdmissionPolicy", + "description": "list or watch objects of kind ValidatingWebhookConfiguration", + "operationId": "listValidatingWebhookConfiguration", "parameters": [ { "description": "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.", @@ -46657,6 +48754,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -46685,7 +48789,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyList" + "$ref": "#/definitions/v1.ValidatingWebhookConfigurationList" } }, "401": { @@ -46696,13 +48800,13 @@ "https" ], "tags": [ - "admissionregistration_v1alpha1" + "admissionregistration_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicy", - "version": "v1alpha1" + "kind": "ValidatingWebhookConfiguration", + "version": "v1" } }, "parameters": [ @@ -46718,15 +48822,15 @@ "consumes": [ "application/json" ], - "description": "create a MutatingAdmissionPolicy", - "operationId": "createMutatingAdmissionPolicy", + "description": "create a ValidatingWebhookConfiguration", + "operationId": "createValidatingWebhookConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" + "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" } }, { @@ -46761,19 +48865,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" + "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" + "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" + "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" } }, "401": { @@ -46784,24 +48888,24 @@ "https" ], "tags": [ - "admissionregistration_v1alpha1" + "admissionregistration_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicy", - "version": "v1alpha1" + "kind": "ValidatingWebhookConfiguration", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name}": { + "/apis/admissionregistration.k8s.io/v1/validatingwebhookconfigurations/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a MutatingAdmissionPolicy", - "operationId": "deleteMutatingAdmissionPolicy", + "description": "delete a ValidatingWebhookConfiguration", + "operationId": "deleteValidatingWebhookConfiguration", "parameters": [ { "in": "body", @@ -46873,13 +48977,13 @@ "https" ], "tags": [ - "admissionregistration_v1alpha1" + "admissionregistration_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicy", - "version": "v1alpha1" + "kind": "ValidatingWebhookConfiguration", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -46887,8 +48991,8 @@ "consumes": [ "application/json" ], - "description": "read the specified MutatingAdmissionPolicy", - "operationId": "readMutatingAdmissionPolicy", + "description": "read the specified ValidatingWebhookConfiguration", + "operationId": "readValidatingWebhookConfiguration", "produces": [ "application/json", "application/yaml", @@ -46899,7 +49003,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" + "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" } }, "401": { @@ -46910,18 +49014,18 @@ "https" ], "tags": [ - "admissionregistration_v1alpha1" + "admissionregistration_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicy", - "version": "v1alpha1" + "kind": "ValidatingWebhookConfiguration", + "version": "v1" } }, "parameters": [ { - "description": "name of the MutatingAdmissionPolicy", + "description": "name of the ValidatingWebhookConfiguration", "in": "path", "name": "name", "required": true, @@ -46940,8 +49044,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified MutatingAdmissionPolicy", - "operationId": "patchMutatingAdmissionPolicy", + "description": "partially update the specified ValidatingWebhookConfiguration", + "operationId": "patchValidatingWebhookConfiguration", "parameters": [ { "in": "body", @@ -46990,13 +49094,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" + "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" + "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" } }, "401": { @@ -47007,13 +49111,13 @@ "https" ], "tags": [ - "admissionregistration_v1alpha1" + "admissionregistration_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicy", - "version": "v1alpha1" + "kind": "ValidatingWebhookConfiguration", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -47021,15 +49125,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified MutatingAdmissionPolicy", - "operationId": "replaceMutatingAdmissionPolicy", + "description": "replace the specified ValidatingWebhookConfiguration", + "operationId": "replaceValidatingWebhookConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" + "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" } }, { @@ -47064,13 +49168,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" + "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" + "$ref": "#/definitions/v1.ValidatingWebhookConfiguration" } }, "401": { @@ -47081,483 +49185,144 @@ "https" ], "tags": [ - "admissionregistration_v1alpha1" + "admissionregistration_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicy", - "version": "v1alpha1" + "kind": "ValidatingWebhookConfiguration", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of MutatingAdmissionPolicyBinding", - "operationId": "deleteCollectionMutatingAdmissionPolicyBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/admissionregistration.k8s.io/v1/watch/mutatingadmissionpolicies": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicyBinding", - "version": "v1alpha1" + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind MutatingAdmissionPolicyBinding", - "operationId": "listMutatingAdmissionPolicyBinding", - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBindingList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicyBinding", - "version": "v1alpha1" - } - }, - "parameters": [ { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a MutatingAdmissionPolicyBinding", - "operationId": "createMutatingAdmissionPolicyBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" - } - }, - "401": { - "description": "Unauthorized" - } + ] + }, + "/apis/admissionregistration.k8s.io/v1/watch/mutatingadmissionpolicies/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicyBinding", - "version": "v1alpha1" + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete a MutatingAdmissionPolicyBinding", - "operationId": "deleteMutatingAdmissionPolicyBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicyBinding", - "version": "v1alpha1" + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified MutatingAdmissionPolicyBinding", - "operationId": "readMutatingAdmissionPolicyBinding", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicyBinding", - "version": "v1alpha1" - } - }, - "parameters": [ { - "description": "name of the MutatingAdmissionPolicyBinding", + "description": "name of the MutatingAdmissionPolicy", "in": "path", "name": "name", "required": true, @@ -47570,165 +49335,52 @@ "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified MutatingAdmissionPolicyBinding", - "operationId": "patchMutatingAdmissionPolicyBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicyBinding", - "version": "v1alpha1" + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified MutatingAdmissionPolicyBinding", - "operationId": "replaceMutatingAdmissionPolicyBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1alpha1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicyBinding", - "version": "v1alpha1" + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicies": { + "/apis/admissionregistration.k8s.io/v1/watch/mutatingadmissionpolicybindings": { "parameters": [ { "description": "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.", @@ -47793,6 +49445,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -47809,7 +49468,7 @@ } ] }, - "/apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicies/{name}": { + "/apis/admissionregistration.k8s.io/v1/watch/mutatingadmissionpolicybindings/{name}": { "parameters": [ { "description": "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.", @@ -47847,7 +49506,7 @@ "uniqueItems": true }, { - "description": "name of the MutatingAdmissionPolicy", + "description": "name of the MutatingAdmissionPolicyBinding", "in": "path", "name": "name", "required": true, @@ -47882,6 +49541,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -47898,7 +49564,7 @@ } ] }, - "/apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicybindings": { + "/apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations": { "parameters": [ { "description": "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.", @@ -47963,6 +49629,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -47979,7 +49652,7 @@ } ] }, - "/apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicybindings/{name}": { + "/apis/admissionregistration.k8s.io/v1/watch/mutatingwebhookconfigurations/{name}": { "parameters": [ { "description": "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.", @@ -48017,7 +49690,7 @@ "uniqueItems": true }, { - "description": "name of the MutatingAdmissionPolicyBinding", + "description": "name of the MutatingWebhookConfiguration", "in": "path", "name": "name", "required": true, @@ -48052,6 +49725,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -48068,562 +49748,565 @@ } ] }, - "/apis/admissionregistration.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicies": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1beta1" - ] - } - }, - "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of MutatingAdmissionPolicy", - "operationId": "deleteCollectionMutatingAdmissionPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicy", - "version": "v1beta1" + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind MutatingAdmissionPolicy", - "operationId": "listMutatingAdmissionPolicy", - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicy", - "version": "v1beta1" - } - }, - "parameters": [ { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a MutatingAdmissionPolicy", - "operationId": "createMutatingAdmissionPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1beta1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicy", - "version": "v1beta1" + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete a MutatingAdmissionPolicy", - "operationId": "deleteMutatingAdmissionPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1beta1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicy", - "version": "v1beta1" + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified MutatingAdmissionPolicy", - "operationId": "readMutatingAdmissionPolicy", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicy", - "version": "v1beta1" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicies/{name}": { "parameters": [ { - "description": "name of the MutatingAdmissionPolicy", - "in": "path", - "name": "name", - "required": true, + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "pretty", + "name": "fieldSelector", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified MutatingAdmissionPolicy", - "operationId": "patchMutatingAdmissionPolicy", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ValidatingAdmissionPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicybindings": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/admissionregistration.k8s.io/v1/watch/validatingadmissionpolicybindings/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ValidatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/admissionregistration.k8s.io/v1/watch/validatingwebhookconfigurations/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ValidatingWebhookConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/admissionregistration.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json" ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -48634,13 +50317,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -48651,108 +50328,27 @@ "https" ], "tags": [ - "admissionregistration_v1beta1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicy", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { + "admissionregistration_v1alpha1" + ] + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies": { + "delete": { "consumes": [ "application/json" ], - "description": "replace the specified MutatingAdmissionPolicy", - "operationId": "replaceMutatingAdmissionPolicy", + "description": "delete collection of MutatingAdmissionPolicy", + "operationId": "deleteCollectionMutatingAdmissionPolicy", "parameters": [ { "in": "body", "name": "body", - "required": true, "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" + "$ref": "#/definitions/v1.DeleteOptions" } }, { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicy", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of MutatingAdmissionPolicyBinding", - "operationId": "deleteCollectionMutatingAdmissionPolicyBinding", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "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\".\n\nThis 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.", + "description": "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\".\n\nThis 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.", "in": "query", "name": "continue", "type": "string", @@ -48835,6 +50431,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -48864,13 +50467,13 @@ "https" ], "tags": [ - "admissionregistration_v1beta1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicyBinding", - "version": "v1beta1" + "kind": "MutatingAdmissionPolicy", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -48878,8 +50481,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind MutatingAdmissionPolicyBinding", - "operationId": "listMutatingAdmissionPolicyBinding", + "description": "list or watch objects of kind MutatingAdmissionPolicy", + "operationId": "listMutatingAdmissionPolicy", "parameters": [ { "description": "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.", @@ -48937,6 +50540,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -48965,7 +50575,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBindingList" + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyList" } }, "401": { @@ -48976,13 +50586,13 @@ "https" ], "tags": [ - "admissionregistration_v1beta1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicyBinding", - "version": "v1beta1" + "kind": "MutatingAdmissionPolicy", + "version": "v1alpha1" } }, "parameters": [ @@ -48998,15 +50608,15 @@ "consumes": [ "application/json" ], - "description": "create a MutatingAdmissionPolicyBinding", - "operationId": "createMutatingAdmissionPolicyBinding", + "description": "create a MutatingAdmissionPolicy", + "operationId": "createMutatingAdmissionPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" } }, { @@ -49041,19 +50651,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" } }, "401": { @@ -49064,24 +50674,24 @@ "https" ], "tags": [ - "admissionregistration_v1beta1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicyBinding", - "version": "v1beta1" + "kind": "MutatingAdmissionPolicy", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}": { + "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicies/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a MutatingAdmissionPolicyBinding", - "operationId": "deleteMutatingAdmissionPolicyBinding", + "description": "delete a MutatingAdmissionPolicy", + "operationId": "deleteMutatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -49153,13 +50763,13 @@ "https" ], "tags": [ - "admissionregistration_v1beta1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicyBinding", - "version": "v1beta1" + "kind": "MutatingAdmissionPolicy", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -49167,8 +50777,8 @@ "consumes": [ "application/json" ], - "description": "read the specified MutatingAdmissionPolicyBinding", - "operationId": "readMutatingAdmissionPolicyBinding", + "description": "read the specified MutatingAdmissionPolicy", + "operationId": "readMutatingAdmissionPolicy", "produces": [ "application/json", "application/yaml", @@ -49179,7 +50789,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" } }, "401": { @@ -49190,18 +50800,18 @@ "https" ], "tags": [ - "admissionregistration_v1beta1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicyBinding", - "version": "v1beta1" + "kind": "MutatingAdmissionPolicy", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the MutatingAdmissionPolicyBinding", + "description": "name of the MutatingAdmissionPolicy", "in": "path", "name": "name", "required": true, @@ -49220,8 +50830,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified MutatingAdmissionPolicyBinding", - "operationId": "patchMutatingAdmissionPolicyBinding", + "description": "partially update the specified MutatingAdmissionPolicy", + "operationId": "patchMutatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -49270,13 +50880,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" } }, "401": { @@ -49287,13 +50897,13 @@ "https" ], "tags": [ - "admissionregistration_v1beta1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicyBinding", - "version": "v1beta1" + "kind": "MutatingAdmissionPolicy", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -49301,15 +50911,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified MutatingAdmissionPolicyBinding", - "operationId": "replaceMutatingAdmissionPolicyBinding", + "description": "replace the specified MutatingAdmissionPolicy", + "operationId": "replaceMutatingAdmissionPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" } }, { @@ -49344,13 +50954,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicy" } }, "401": { @@ -49361,106 +50971,763 @@ "https" ], "tags": [ - "admissionregistration_v1beta1" + "admissionregistration_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "admissionregistration.k8s.io", - "kind": "MutatingAdmissionPolicyBinding", - "version": "v1beta1" + "kind": "MutatingAdmissionPolicy", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicies": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of MutatingAdmissionPolicyBinding", + "operationId": "deleteCollectionMutatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1alpha1" }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind MutatingAdmissionPolicyBinding", + "operationId": "listMutatingAdmissionPolicyBinding", + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBindingList" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicies/{name}": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a MutatingAdmissionPolicyBinding", + "operationId": "createMutatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/mutatingadmissionpolicybindings/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a MutatingAdmissionPolicyBinding", + "operationId": "deleteMutatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified MutatingAdmissionPolicyBinding", + "operationId": "readMutatingAdmissionPolicyBinding", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1alpha1" + } + }, + "parameters": [ + { + "description": "name of the MutatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified MutatingAdmissionPolicyBinding", + "operationId": "patchMutatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified MutatingAdmissionPolicyBinding", + "operationId": "replaceMutatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.MutatingAdmissionPolicyBinding" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicies": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicies/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, { "description": "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\".\n\nThis 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.", @@ -49526,6 +51793,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -49542,7 +51816,7 @@ } ] }, - "/apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicybindings": { + "/apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicybindings": { "parameters": [ { "description": "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.", @@ -49607,6 +51881,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -49623,7 +51904,7 @@ } ] }, - "/apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicybindings/{name}": { + "/apis/admissionregistration.k8s.io/v1alpha1/watch/mutatingadmissionpolicybindings/{name}": { "parameters": [ { "description": "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.", @@ -49696,6 +51977,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -49712,23 +52000,24 @@ } ] }, - "/apis/apiextensions.k8s.io/": { + "/apis/admissionregistration.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json" ], - "description": "get information of a group", - "operationId": "getAPIGroup", + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf" + "application/vnd.kubernetes.protobuf", + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -49739,49 +52028,17 @@ "https" ], "tags": [ - "apiextensions" + "admissionregistration_v1beta1" ] } }, - "/apis/apiextensions.k8s.io/v1/": { - "get": { + "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies": { + "delete": { "consumes": [ "application/json" ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1" - ] - } - }, - "/apis/apiextensions.k8s.io/v1/customresourcedefinitions": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of CustomResourceDefinition", - "operationId": "deleteCollectionCustomResourceDefinition", + "description": "delete collection of MutatingAdmissionPolicy", + "operationId": "deleteCollectionMutatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -49874,6 +52131,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -49903,13 +52167,13 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicy", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -49917,8 +52181,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind CustomResourceDefinition", - "operationId": "listCustomResourceDefinition", + "description": "list or watch objects of kind MutatingAdmissionPolicy", + "operationId": "listMutatingAdmissionPolicy", "parameters": [ { "description": "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.", @@ -49976,6 +52240,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -50004,7 +52275,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinitionList" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyList" } }, "401": { @@ -50015,13 +52286,13 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicy", + "version": "v1beta1" } }, "parameters": [ @@ -50037,15 +52308,15 @@ "consumes": [ "application/json" ], - "description": "create a CustomResourceDefinition", - "operationId": "createCustomResourceDefinition", + "description": "create a MutatingAdmissionPolicy", + "operationId": "createMutatingAdmissionPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" } }, { @@ -50080,19 +52351,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" } }, "401": { @@ -50103,24 +52374,24 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicy", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}": { + "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a CustomResourceDefinition", - "operationId": "deleteCustomResourceDefinition", + "description": "delete a MutatingAdmissionPolicy", + "operationId": "deleteMutatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -50192,13 +52463,13 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicy", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -50206,8 +52477,8 @@ "consumes": [ "application/json" ], - "description": "read the specified CustomResourceDefinition", - "operationId": "readCustomResourceDefinition", + "description": "read the specified MutatingAdmissionPolicy", + "operationId": "readMutatingAdmissionPolicy", "produces": [ "application/json", "application/yaml", @@ -50218,7 +52489,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" } }, "401": { @@ -50229,18 +52500,18 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicy", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the CustomResourceDefinition", + "description": "name of the MutatingAdmissionPolicy", "in": "path", "name": "name", "required": true, @@ -50259,8 +52530,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified CustomResourceDefinition", - "operationId": "patchCustomResourceDefinition", + "description": "partially update the specified MutatingAdmissionPolicy", + "operationId": "patchMutatingAdmissionPolicy", "parameters": [ { "in": "body", @@ -50309,13 +52580,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" } }, "401": { @@ -50326,13 +52597,13 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicy", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -50340,15 +52611,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified CustomResourceDefinition", - "operationId": "replaceCustomResourceDefinition", + "description": "replace the specified MutatingAdmissionPolicy", + "operationId": "replaceMutatingAdmissionPolicy", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" } }, { @@ -50383,13 +52654,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicy" } }, "401": { @@ -50400,24 +52671,131 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicy", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status": { - "get": { + "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings": { + "delete": { "consumes": [ "application/json" ], - "description": "read status of the specified CustomResourceDefinition", - "operationId": "readCustomResourceDefinitionStatus", + "description": "delete collection of MutatingAdmissionPolicyBinding", + "operationId": "deleteCollectionMutatingAdmissionPolicyBinding", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -50428,7 +52806,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -50439,72 +52817,97 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1beta1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the CustomResourceDefinition", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1beta1" }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { + "x-codegen-request-body-name": "body" + }, + "get": { "consumes": [ "application/json" ], - "description": "partially update status of the specified CustomResourceDefinition", - "operationId": "patchCustomResourceDefinitionStatus", + "description": "list or watch objects of kind MutatingAdmissionPolicyBinding", + "operationId": "listMutatingAdmissionPolicyBinding", "parameters": [ { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "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\".\n\nThis 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.", "in": "query", - "name": "dryRun", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "fieldManager", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "fieldValidation", + "name": "labelSelector", "type": "string", "uniqueItems": true }, { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "description": "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.\n\nThe 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.", "in": "query", - "name": "force", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", "type": "boolean", "uniqueItems": true } @@ -50513,19 +52916,16 @@ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBindingList" } }, "401": { @@ -50536,29 +52936,37 @@ "https" ], "tags": [ - "apiextensions_v1" + "admissionregistration_v1beta1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - }, - "x-codegen-request-body-name": "body" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1beta1" + } }, - "put": { + "parameters": [ + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { "consumes": [ "application/json" ], - "description": "replace status of the specified CustomResourceDefinition", - "operationId": "replaceCustomResourceDefinitionStatus", + "description": "create a MutatingAdmissionPolicyBinding", + "operationId": "createMutatingAdmissionPolicyBinding", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" } }, { @@ -50593,221 +53001,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CustomResourceDefinition" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" } }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiextensions_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apiextensions.k8s.io", - "kind": "CustomResourceDefinition", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name}": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the CustomResourceDefinition", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apiregistration.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", + "202": { + "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.APIGroup" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" } }, "401": { @@ -50818,49 +53024,24 @@ "https" ], "tags": [ - "apiregistration" - ] - } - }, - "/apis/apiregistration.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "admissionregistration_v1beta1" ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1beta1" }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ] + "x-codegen-request-body-name": "body" } }, - "/apis/apiregistration.k8s.io/v1/apiservices": { + "/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of APIService", - "operationId": "deleteCollectionAPIService", + "description": "delete a MutatingAdmissionPolicyBinding", + "operationId": "deleteMutatingAdmissionPolicyBinding", "parameters": [ { "in": "body", @@ -50869,13 +53050,6 @@ "$ref": "#/definitions/v1.DeleteOptions" } }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, { "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", @@ -50883,13 +53057,6 @@ "type": "string", "uniqueItems": true }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, { "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "in": "query", @@ -50904,20 +53071,6 @@ "type": "boolean", "uniqueItems": true }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "in": "query", @@ -50931,34 +53084,6 @@ "name": "propagationPolicy", "type": "string", "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true } ], "produces": [ @@ -50974,6 +53099,12 @@ "$ref": "#/definitions/v1.Status" } }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, "401": { "description": "Unauthorized" } @@ -50982,13 +53113,13 @@ "https" ], "tags": [ - "apiregistration_v1" + "admissionregistration_v1beta1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -50996,94 +53127,19 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind APIService", - "operationId": "listAPIService", - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "read the specified MutatingAdmissionPolicyBinding", + "operationId": "readMutatingAdmissionPolicyBinding", "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIServiceList" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" } }, "401": { @@ -51094,16 +53150,24 @@ "https" ], "tags": [ - "apiregistration_v1" + "admissionregistration_v1beta1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1beta1" } }, "parameters": [ + { + "description": "name of the MutatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -51112,19 +53176,19 @@ "uniqueItems": true } ], - "post": { + "patch": { "consumes": [ "application/json" ], - "description": "create an APIService", - "operationId": "createAPIService", + "description": "partially update the specified MutatingAdmissionPolicyBinding", + "operationId": "patchMutatingAdmissionPolicyBinding", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1.Patch" } }, { @@ -51135,7 +53199,7 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", "in": "query", "name": "fieldManager", "type": "string", @@ -51147,6 +53211,13 @@ "name": "fieldValidation", "type": "string", "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true } ], "produces": [ @@ -51159,19 +53230,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.APIService" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.APIService" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" } }, "401": { @@ -51182,30 +53247,29 @@ "https" ], "tags": [ - "apiregistration_v1" + "admissionregistration_v1beta1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/apiregistration.k8s.io/v1/apiservices/{name}": { - "delete": { + }, + "put": { "consumes": [ "application/json" ], - "description": "delete an APIService", - "operationId": "deleteAPIService", + "description": "replace the specified MutatingAdmissionPolicyBinding", + "operationId": "replaceMutatingAdmissionPolicyBinding", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" } }, { @@ -51216,30 +53280,16 @@ "uniqueItems": true }, { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", - "name": "orphanDependents", - "type": "boolean", + "name": "fieldManager", + "type": "string", "uniqueItems": true }, { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "propagationPolicy", + "name": "fieldValidation", "type": "string", "uniqueItems": true } @@ -51254,13 +53304,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1beta1.MutatingAdmissionPolicyBinding" } }, "401": { @@ -51271,436 +53321,106 @@ "https" ], "tags": [ - "apiregistration_v1" + "admissionregistration_v1beta1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" + "group": "admissionregistration.k8s.io", + "kind": "MutatingAdmissionPolicyBinding", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified APIService", - "operationId": "readAPIService", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - }, + } + }, + "/apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicies": { "parameters": [ { - "description": "name of the APIService", - "in": "path", - "name": "name", - "required": true, - "type": "string", + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "description": "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\".\n\nThis 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.", "in": "query", - "name": "pretty", + "name": "continue", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified APIService", - "operationId": "patchAPIService", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified APIService", - "operationId": "replaceAPIService", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.APIService" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status": { - "get": { - "consumes": [ - "application/json" - ], - "description": "read status of the specified APIService", - "operationId": "readAPIServiceStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" - } - }, - "parameters": [ { - "description": "name of the APIService", - "in": "path", - "name": "name", - "required": true, + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", "type": "string", "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "description": "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.\n\nDefaults to unset", "in": "query", - "name": "pretty", + "name": "resourceVersionMatch", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update status of the specified APIService", - "operationId": "patchAPIServiceStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace status of the specified APIService", - "operationId": "replaceAPIServiceStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.APIService" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIService" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.APIService" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "apiregistration_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apiregistration.k8s.io", - "kind": "APIService", - "version": "v1" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/apiregistration.k8s.io/v1/watch/apiservices": { + "/apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicies/{name}": { "parameters": [ { "description": "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.", @@ -51737,6 +53457,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the MutatingAdmissionPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -51765,6 +53493,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -51781,7 +53516,7 @@ } ] }, - "/apis/apiregistration.k8s.io/v1/watch/apiservices/{name}": { + "/apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicybindings": { "parameters": [ { "description": "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.", @@ -51818,14 +53553,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the APIService", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -51854,6 +53581,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -51870,109 +53604,7 @@ } ] }, - "/apis/apps/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps" - ] - } - }, - "/apis/apps/v1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ] - } - }, - "/apis/apps/v1/controllerrevisions": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind ControllerRevision", - "operationId": "listControllerRevisionForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.ControllerRevisionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1" - } - }, + "/apis/admissionregistration.k8s.io/v1beta1/watch/mutatingadmissionpolicybindings/{name}": { "parameters": [ { "description": "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.", @@ -52009,6 +53641,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the MutatingAdmissionPolicyBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -52037,6 +53677,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -52053,27 +53700,23 @@ } ] }, - "/apis/apps/v1/daemonsets": { + "/apis/apiextensions.k8s.io/": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind DaemonSet", - "operationId": "listDaemonSetForAllNamespaces", + "description": "get information of a group", + "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DaemonSetList" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -52084,116 +53727,28 @@ "https" ], "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", - "version": "v1" - } - }, - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "apiextensions" + ] + } }, - "/apis/apps/v1/deployments": { + "/apis/apiextensions.k8s.io/v1/": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind Deployment", - "operationId": "listDeploymentForAllNamespaces", + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DeploymentList" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -52204,102 +53759,17 @@ "https" ], "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - } - }, - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "apiextensions_v1" + ] + } }, - "/apis/apps/v1/namespaces/{namespace}/controllerrevisions": { + "/apis/apiextensions.k8s.io/v1/customresourcedefinitions": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ControllerRevision", - "operationId": "deleteCollectionNamespacedControllerRevision", + "description": "delete collection of CustomResourceDefinition", + "operationId": "deleteCollectionCustomResourceDefinition", "parameters": [ { "in": "body", @@ -52392,6 +53862,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -52421,12 +53898,12 @@ "https" ], "tags": [ - "apps_v1" + "apiextensions_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -52435,8 +53912,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ControllerRevision", - "operationId": "listNamespacedControllerRevision", + "description": "list or watch objects of kind CustomResourceDefinition", + "operationId": "listCustomResourceDefinition", "parameters": [ { "description": "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.", @@ -52494,6 +53971,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -52522,7 +54006,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ControllerRevisionList" + "$ref": "#/definitions/v1.CustomResourceDefinitionList" } }, "401": { @@ -52533,24 +54017,16 @@ "https" ], "tags": [ - "apps_v1" + "apiextensions_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -52563,15 +54039,15 @@ "consumes": [ "application/json" ], - "description": "create a ControllerRevision", - "operationId": "createNamespacedControllerRevision", + "description": "create a CustomResourceDefinition", + "operationId": "createCustomResourceDefinition", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, { @@ -52606,19 +54082,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "401": { @@ -52629,24 +54105,24 @@ "https" ], "tags": [ - "apps_v1" + "apiextensions_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}": { + "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ControllerRevision", - "operationId": "deleteNamespacedControllerRevision", + "description": "delete a CustomResourceDefinition", + "operationId": "deleteCustomResourceDefinition", "parameters": [ { "in": "body", @@ -52718,12 +54194,12 @@ "https" ], "tags": [ - "apps_v1" + "apiextensions_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -52732,8 +54208,8 @@ "consumes": [ "application/json" ], - "description": "read the specified ControllerRevision", - "operationId": "readNamespacedControllerRevision", + "description": "read the specified CustomResourceDefinition", + "operationId": "readCustomResourceDefinition", "produces": [ "application/json", "application/yaml", @@ -52744,7 +54220,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "401": { @@ -52755,32 +54231,24 @@ "https" ], "tags": [ - "apps_v1" + "apiextensions_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" } }, "parameters": [ { - "description": "name of the ControllerRevision", + "description": "name of the CustomResourceDefinition", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -52793,8 +54261,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified ControllerRevision", - "operationId": "patchNamespacedControllerRevision", + "description": "partially update the specified CustomResourceDefinition", + "operationId": "patchCustomResourceDefinition", "parameters": [ { "in": "body", @@ -52843,13 +54311,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "401": { @@ -52860,12 +54328,12 @@ "https" ], "tags": [ - "apps_v1" + "apiextensions_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -52874,15 +54342,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified ControllerRevision", - "operationId": "replaceNamespacedControllerRevision", + "description": "replace the specified CustomResourceDefinition", + "operationId": "replaceCustomResourceDefinition", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, { @@ -52917,13 +54385,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ControllerRevision" + "$ref": "#/definitions/v1.CustomResourceDefinition" } }, "401": { @@ -52934,55 +54402,512 @@ "https" ], "tags": [ - "apps_v1" + "apiextensions_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/daemonsets": { - "delete": { + "/apis/apiextensions.k8s.io/v1/customresourcedefinitions/{name}/status": { + "get": { "consumes": [ "application/json" ], - "description": "delete collection of DaemonSet", - "operationId": "deleteCollectionNamespacedDaemonSet", + "description": "read status of the specified CustomResourceDefinition", + "operationId": "readCustomResourceDefinitionStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.CustomResourceDefinition" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the CustomResourceDefinition", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified CustomResourceDefinition", + "operationId": "patchCustomResourceDefinitionStatus", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.Patch" } }, { - "description": "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\".\n\nThis 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.", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", - "name": "continue", + "name": "dryRun", "type": "string", "uniqueItems": true }, { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", "in": "query", - "name": "dryRun", + "name": "fieldManager", "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "fieldSelector", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.CustomResourceDefinition" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.CustomResourceDefinition" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified CustomResourceDefinition", + "operationId": "replaceCustomResourceDefinitionStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.CustomResourceDefinition" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.CustomResourceDefinition" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.CustomResourceDefinition" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiextensions_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apiextensions.k8s.io", + "kind": "CustomResourceDefinition", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apiextensions.k8s.io/v1/watch/customresourcedefinitions/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the CustomResourceDefinition", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apiregistration.k8s.io/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration" + ] + } + }, + "/apis/apiregistration.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apiregistration_v1" + ] + } + }, + "/apis/apiregistration.k8s.io/v1/apiservices": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of APIService", + "operationId": "deleteCollectionAPIService", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "in": "query", "name": "gracePeriodSeconds", "type": "integer", @@ -53044,6 +54969,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -53073,12 +55005,12 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -53087,8 +55019,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind DaemonSet", - "operationId": "listNamespacedDaemonSet", + "description": "list or watch objects of kind APIService", + "operationId": "listAPIService", "parameters": [ { "description": "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.", @@ -53146,6 +55078,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -53174,7 +55113,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DaemonSetList" + "$ref": "#/definitions/v1.APIServiceList" } }, "401": { @@ -53185,24 +55124,16 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -53215,15 +55146,15 @@ "consumes": [ "application/json" ], - "description": "create a DaemonSet", - "operationId": "createNamespacedDaemonSet", + "description": "create an APIService", + "operationId": "createAPIService", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, { @@ -53258,19 +55189,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "401": { @@ -53281,24 +55212,24 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}": { + "/apis/apiregistration.k8s.io/v1/apiservices/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a DaemonSet", - "operationId": "deleteNamespacedDaemonSet", + "description": "delete an APIService", + "operationId": "deleteAPIService", "parameters": [ { "in": "body", @@ -53370,12 +55301,12 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -53384,8 +55315,8 @@ "consumes": [ "application/json" ], - "description": "read the specified DaemonSet", - "operationId": "readNamespacedDaemonSet", + "description": "read the specified APIService", + "operationId": "readAPIService", "produces": [ "application/json", "application/yaml", @@ -53396,7 +55327,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "401": { @@ -53407,32 +55338,24 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } }, "parameters": [ { - "description": "name of the DaemonSet", + "description": "name of the APIService", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -53445,8 +55368,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified DaemonSet", - "operationId": "patchNamespacedDaemonSet", + "description": "partially update the specified APIService", + "operationId": "patchAPIService", "parameters": [ { "in": "body", @@ -53495,13 +55418,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "401": { @@ -53512,12 +55435,12 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -53526,15 +55449,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified DaemonSet", - "operationId": "replaceNamespacedDaemonSet", + "description": "replace the specified APIService", + "operationId": "replaceAPIService", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, { @@ -53569,13 +55492,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "401": { @@ -53586,24 +55509,24 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status": { + "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified DaemonSet", - "operationId": "readNamespacedDaemonSetStatus", + "description": "read status of the specified APIService", + "operationId": "readAPIServiceStatus", "produces": [ "application/json", "application/yaml", @@ -53614,7 +55537,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "401": { @@ -53625,32 +55548,24 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" } }, "parameters": [ { - "description": "name of the DaemonSet", + "description": "name of the APIService", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -53663,8 +55578,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified DaemonSet", - "operationId": "patchNamespacedDaemonSetStatus", + "description": "partially update status of the specified APIService", + "operationId": "patchAPIServiceStatus", "parameters": [ { "in": "body", @@ -53713,13 +55628,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "401": { @@ -53730,12 +55645,12 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -53744,15 +55659,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified DaemonSet", - "operationId": "replaceNamespacedDaemonSetStatus", + "description": "replace status of the specified APIService", + "operationId": "replaceAPIServiceStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, { @@ -53787,13 +55702,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.DaemonSet" + "$ref": "#/definitions/v1.APIService" } }, "401": { @@ -53804,124 +55719,239 @@ "https" ], "tags": [ - "apps_v1" + "apiregistration_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "DaemonSet", + "group": "apiregistration.k8s.io", + "kind": "APIService", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/deployments": { - "delete": { + "/apis/apiregistration.k8s.io/v1/watch/apiservices": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apiregistration.k8s.io/v1/watch/apiservices/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the APIService", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/": { + "get": { "consumes": [ "application/json" ], - "description": "delete collection of Deployment", - "operationId": "deleteCollectionNamespacedDeployment", - "parameters": [ - { - "in": "body", - "name": "body", + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.APIGroup" } }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "401": { + "description": "Unauthorized" } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps" + ] + } + }, + "/apis/apps/v1/": { + "get": { + "consumes": [ + "application/json" ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -53932,7 +55962,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -53944,93 +55974,16 @@ ], "tags": [ "apps_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, + ] + } + }, + "/apis/apps/v1/controllerrevisions": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind Deployment", - "operationId": "listNamespacedDeployment", - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "list or watch objects of kind ControllerRevision", + "operationId": "listControllerRevisionForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -54044,7 +55997,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.DeploymentList" + "$ref": "#/definitions/v1.ControllerRevisionList" } }, "401": { @@ -54060,87 +56013,245 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" } }, "parameters": [ { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": true }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a Deployment", - "operationId": "createNamespacedDeployment", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Deployment" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/daemonsets": { + "get": { + "consumes": [ + "application/json" ], + "description": "list or watch objects of kind DaemonSet", + "operationId": "listDaemonSetForAllNamespaces", "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Deployment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.DaemonSetList" } }, - "202": { - "description": "Accepted", + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "DaemonSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/deployments": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind Deployment", + "operationId": "listDeploymentForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.DeploymentList" } }, "401": { @@ -54153,22 +56264,107 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", "kind": "Deployment", "version": "v1" + } + }, + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/apps/v1/namespaces/{namespace}/deployments/{name}": { + "/apis/apps/v1/namespaces/{namespace}/controllerrevisions": { "delete": { "consumes": [ "application/json" ], - "description": "delete a Deployment", - "operationId": "deleteNamespacedDeployment", + "description": "delete collection of ControllerRevision", + "operationId": "deleteCollectionNamespacedControllerRevision", "parameters": [ { "in": "body", @@ -54177,6 +56373,13 @@ "$ref": "#/definitions/v1.DeleteOptions" } }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, { "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", @@ -54184,6 +56387,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, { "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "in": "query", @@ -54198,6 +56408,20 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "in": "query", @@ -54211,6 +56435,41 @@ "name": "propagationPolicy", "type": "string", "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true } ], "produces": [ @@ -54226,12 +56485,6 @@ "$ref": "#/definitions/v1.Status" } }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, "401": { "description": "Unauthorized" } @@ -54242,10 +56495,10 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -54254,19 +56507,101 @@ "consumes": [ "application/json" ], - "description": "read the specified Deployment", - "operationId": "readNamespacedDeployment", + "description": "list or watch objects of kind ControllerRevision", + "operationId": "listNamespacedControllerRevision", + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevisionList" } }, "401": { @@ -54279,22 +56614,14 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" } }, "parameters": [ - { - "description": "name of the Deployment", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -54311,19 +56638,19 @@ "uniqueItems": true } ], - "patch": { + "post": { "consumes": [ "application/json" ], - "description": "partially update the specified Deployment", - "operationId": "patchNamespacedDeployment", + "description": "create a ControllerRevision", + "operationId": "createNamespacedControllerRevision", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "$ref": "#/definitions/v1.ControllerRevision" } }, { @@ -54334,7 +56661,7 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", "name": "fieldManager", "type": "string", @@ -54346,13 +56673,6 @@ "name": "fieldValidation", "type": "string", "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -54365,13 +56685,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ControllerRevision" } }, "401": { @@ -54384,164 +56710,28 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified Deployment", - "operationId": "replaceNamespacedDeployment", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Deployment" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Deployment" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Deployment" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale": { - "get": { - "consumes": [ - "application/json" - ], - "description": "read scale of the specified Deployment", - "operationId": "readNamespacedDeploymentScale", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Scale", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { + "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}": { + "delete": { "consumes": [ "application/json" ], - "description": "partially update scale of the specified Deployment", - "operationId": "patchNamespacedDeploymentScale", + "description": "delete a ControllerRevision", + "operationId": "deleteNamespacedControllerRevision", "parameters": [ { "in": "body", "name": "body", - "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "$ref": "#/definitions/v1.DeleteOptions" } }, { @@ -54552,97 +56742,30 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "in": "query", - "name": "fieldValidation", - "type": "string", + "name": "gracePeriodSeconds", + "type": "integer", "uniqueItems": true }, { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", "in": "query", - "name": "force", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", "type": "boolean", "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace scale of the specified Deployment", - "operationId": "replaceNamespacedDeploymentScale", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "in": "query", - "name": "fieldManager", - "type": "string", + "name": "orphanDependents", + "type": "boolean", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", "in": "query", - "name": "fieldValidation", + "name": "propagationPolicy", "type": "string", "uniqueItems": true } @@ -54657,13 +56780,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Scale" + "$ref": "#/definitions/v1.Status" } }, - "201": { - "description": "Created", + "202": { + "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Scale" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -54676,22 +56799,20 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", + "group": "apps", + "kind": "ControllerRevision", "version": "v1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status": { + }, "get": { "consumes": [ "application/json" ], - "description": "read status of the specified Deployment", - "operationId": "readNamespacedDeploymentStatus", + "description": "read the specified ControllerRevision", + "operationId": "readNamespacedControllerRevision", "produces": [ "application/json", "application/yaml", @@ -54702,7 +56823,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" } }, "401": { @@ -54718,13 +56839,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" } }, "parameters": [ { - "description": "name of the Deployment", + "description": "name of the ControllerRevision", "in": "path", "name": "name", "required": true, @@ -54751,8 +56872,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified Deployment", - "operationId": "patchNamespacedDeploymentStatus", + "description": "partially update the specified ControllerRevision", + "operationId": "patchNamespacedControllerRevision", "parameters": [ { "in": "body", @@ -54801,13 +56922,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" } }, "401": { @@ -54823,7 +56944,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -54832,15 +56953,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified Deployment", - "operationId": "replaceNamespacedDeploymentStatus", + "description": "replace the specified ControllerRevision", + "operationId": "replaceNamespacedControllerRevision", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" } }, { @@ -54875,13 +56996,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Deployment" + "$ref": "#/definitions/v1.ControllerRevision" } }, "401": { @@ -54897,19 +57018,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "Deployment", + "kind": "ControllerRevision", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/replicasets": { + "/apis/apps/v1/namespaces/{namespace}/daemonsets": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ReplicaSet", - "operationId": "deleteCollectionNamespacedReplicaSet", + "description": "delete collection of DaemonSet", + "operationId": "deleteCollectionNamespacedDaemonSet", "parameters": [ { "in": "body", @@ -55002,6 +57123,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -55036,7 +57164,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -55045,8 +57173,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ReplicaSet", - "operationId": "listNamespacedReplicaSet", + "description": "list or watch objects of kind DaemonSet", + "operationId": "listNamespacedDaemonSet", "parameters": [ { "description": "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.", @@ -55104,6 +57232,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -55132,7 +57267,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSetList" + "$ref": "#/definitions/v1.DaemonSetList" } }, "401": { @@ -55148,7 +57283,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" } }, @@ -55173,15 +57308,15 @@ "consumes": [ "application/json" ], - "description": "create a ReplicaSet", - "operationId": "createNamespacedReplicaSet", + "description": "create a DaemonSet", + "operationId": "createNamespacedDaemonSet", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, { @@ -55216,19 +57351,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "401": { @@ -55244,19 +57379,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}": { + "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ReplicaSet", - "operationId": "deleteNamespacedReplicaSet", + "description": "delete a DaemonSet", + "operationId": "deleteNamespacedDaemonSet", "parameters": [ { "in": "body", @@ -55333,7 +57468,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -55342,8 +57477,8 @@ "consumes": [ "application/json" ], - "description": "read the specified ReplicaSet", - "operationId": "readNamespacedReplicaSet", + "description": "read the specified DaemonSet", + "operationId": "readNamespacedDaemonSet", "produces": [ "application/json", "application/yaml", @@ -55354,7 +57489,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "401": { @@ -55370,13 +57505,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" } }, "parameters": [ { - "description": "name of the ReplicaSet", + "description": "name of the DaemonSet", "in": "path", "name": "name", "required": true, @@ -55403,8 +57538,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified ReplicaSet", - "operationId": "patchNamespacedReplicaSet", + "description": "partially update the specified DaemonSet", + "operationId": "patchNamespacedDaemonSet", "parameters": [ { "in": "body", @@ -55453,13 +57588,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "401": { @@ -55475,7 +57610,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -55484,15 +57619,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified ReplicaSet", - "operationId": "replaceNamespacedReplicaSet", + "description": "replace the specified DaemonSet", + "operationId": "replaceNamespacedDaemonSet", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, { @@ -55527,13 +57662,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "401": { @@ -55549,237 +57684,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale": { - "get": { - "consumes": [ - "application/json" - ], - "description": "read scale of the specified ReplicaSet", - "operationId": "readNamespacedReplicaSetScale", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the Scale", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update scale of the specified ReplicaSet", - "operationId": "patchNamespacedReplicaSetScale", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace scale of the specified ReplicaSet", - "operationId": "replaceNamespacedReplicaSetScale", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.Scale" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "Scale", + "kind": "DaemonSet", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status": { + "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified ReplicaSet", - "operationId": "readNamespacedReplicaSetStatus", + "description": "read status of the specified DaemonSet", + "operationId": "readNamespacedDaemonSetStatus", "produces": [ "application/json", "application/yaml", @@ -55790,7 +57707,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "401": { @@ -55806,13 +57723,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" } }, "parameters": [ { - "description": "name of the ReplicaSet", + "description": "name of the DaemonSet", "in": "path", "name": "name", "required": true, @@ -55839,8 +57756,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified ReplicaSet", - "operationId": "patchNamespacedReplicaSetStatus", + "description": "partially update status of the specified DaemonSet", + "operationId": "patchNamespacedDaemonSetStatus", "parameters": [ { "in": "body", @@ -55889,13 +57806,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "401": { @@ -55911,7 +57828,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -55920,15 +57837,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified ReplicaSet", - "operationId": "replaceNamespacedReplicaSetStatus", + "description": "replace status of the specified DaemonSet", + "operationId": "replaceNamespacedDaemonSetStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, { @@ -55963,13 +57880,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ReplicaSet" + "$ref": "#/definitions/v1.DaemonSet" } }, "401": { @@ -55985,19 +57902,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "ReplicaSet", + "kind": "DaemonSet", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets": { + "/apis/apps/v1/namespaces/{namespace}/deployments": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of StatefulSet", - "operationId": "deleteCollectionNamespacedStatefulSet", + "description": "delete collection of Deployment", + "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ { "in": "body", @@ -56090,6 +58007,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -56124,7 +58048,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -56133,8 +58057,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind StatefulSet", - "operationId": "listNamespacedStatefulSet", + "description": "list or watch objects of kind Deployment", + "operationId": "listNamespacedDeployment", "parameters": [ { "description": "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.", @@ -56192,6 +58116,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -56220,7 +58151,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSetList" + "$ref": "#/definitions/v1.DeploymentList" } }, "401": { @@ -56236,7 +58167,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" } }, @@ -56261,15 +58192,15 @@ "consumes": [ "application/json" ], - "description": "create a StatefulSet", - "operationId": "createNamespacedStatefulSet", + "description": "create a Deployment", + "operationId": "createNamespacedDeployment", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, { @@ -56304,19 +58235,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "401": { @@ -56332,19 +58263,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}": { + "/apis/apps/v1/namespaces/{namespace}/deployments/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a StatefulSet", - "operationId": "deleteNamespacedStatefulSet", + "description": "delete a Deployment", + "operationId": "deleteNamespacedDeployment", "parameters": [ { "in": "body", @@ -56421,7 +58352,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -56430,8 +58361,8 @@ "consumes": [ "application/json" ], - "description": "read the specified StatefulSet", - "operationId": "readNamespacedStatefulSet", + "description": "read the specified Deployment", + "operationId": "readNamespacedDeployment", "produces": [ "application/json", "application/yaml", @@ -56442,7 +58373,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "401": { @@ -56458,13 +58389,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" } }, "parameters": [ { - "description": "name of the StatefulSet", + "description": "name of the Deployment", "in": "path", "name": "name", "required": true, @@ -56491,8 +58422,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified StatefulSet", - "operationId": "patchNamespacedStatefulSet", + "description": "partially update the specified Deployment", + "operationId": "patchNamespacedDeployment", "parameters": [ { "in": "body", @@ -56541,13 +58472,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "401": { @@ -56563,7 +58494,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -56572,15 +58503,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified StatefulSet", - "operationId": "replaceNamespacedStatefulSet", + "description": "replace the specified Deployment", + "operationId": "replaceNamespacedDeployment", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, { @@ -56615,13 +58546,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "401": { @@ -56637,19 +58568,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale": { + "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale": { "get": { "consumes": [ "application/json" ], - "description": "read scale of the specified StatefulSet", - "operationId": "readNamespacedStatefulSetScale", + "description": "read scale of the specified Deployment", + "operationId": "readNamespacedDeploymentScale", "produces": [ "application/json", "application/yaml", @@ -56709,8 +58640,8 @@ "consumes": [ "application/json" ], - "description": "partially update scale of the specified StatefulSet", - "operationId": "patchNamespacedStatefulSetScale", + "description": "partially update scale of the specified Deployment", + "operationId": "patchNamespacedDeploymentScale", "parameters": [ { "in": "body", @@ -56790,8 +58721,8 @@ "consumes": [ "application/json" ], - "description": "replace scale of the specified StatefulSet", - "operationId": "replaceNamespacedStatefulSetScale", + "description": "replace scale of the specified Deployment", + "operationId": "replaceNamespacedDeploymentScale", "parameters": [ { "in": "body", @@ -56861,13 +58792,13 @@ "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status": { + "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified StatefulSet", - "operationId": "readNamespacedStatefulSetStatus", + "description": "read status of the specified Deployment", + "operationId": "readNamespacedDeploymentStatus", "produces": [ "application/json", "application/yaml", @@ -56878,7 +58809,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "401": { @@ -56894,13 +58825,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" } }, "parameters": [ { - "description": "name of the StatefulSet", + "description": "name of the Deployment", "in": "path", "name": "name", "required": true, @@ -56927,8 +58858,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified StatefulSet", - "operationId": "patchNamespacedStatefulSetStatus", + "description": "partially update status of the specified Deployment", + "operationId": "patchNamespacedDeploymentStatus", "parameters": [ { "in": "body", @@ -56977,13 +58908,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "401": { @@ -56999,7 +58930,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -57008,15 +58939,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified StatefulSet", - "operationId": "replaceNamespacedStatefulSetStatus", + "description": "replace status of the specified Deployment", + "operationId": "replaceNamespacedDeploymentStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, { @@ -57051,13 +58982,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.StatefulSet" + "$ref": "#/definitions/v1.Deployment" } }, "401": { @@ -57073,19 +59004,242 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "Deployment", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/apps/v1/replicasets": { + "/apis/apps/v1/namespaces/{namespace}/replicasets": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of ReplicaSet", + "operationId": "deleteCollectionNamespacedReplicaSet", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, "get": { "consumes": [ "application/json" ], "description": "list or watch objects of kind ReplicaSet", - "operationId": "listReplicaSetForAllNamespaces", + "operationId": "listNamespacedReplicaSet", + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -57121,105 +59275,207 @@ }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a ReplicaSet", + "operationId": "createNamespacedReplicaSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a ReplicaSet", + "operationId": "deleteNamespacedReplicaSet", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/statefulsets": { + "x-codegen-request-body-name": "body" + }, "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind StatefulSet", - "operationId": "listStatefulSetForAllNamespaces", + "description": "read the specified ReplicaSet", + "operationId": "readNamespacedReplicaSet", "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.StatefulSetList" + "$ref": "#/definitions/v1.ReplicaSet" } }, "401": { @@ -57232,373 +59488,458 @@ "tags": [ "apps_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "apps", - "kind": "StatefulSet", + "kind": "ReplicaSet", "version": "v1" } }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", + "description": "name of the ReplicaSet", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified ReplicaSet", + "operationId": "patchNamespacedReplicaSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified ReplicaSet", + "operationId": "replaceNamespacedReplicaSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read scale of the specified ReplicaSet", + "operationId": "readNamespacedReplicaSetScale", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + } + }, + "parameters": [ { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", + "description": "name of the Scale", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/controllerrevisions": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", + "name": "pretty", + "type": "string", "uniqueItems": true } - ] - }, - "/apis/apps/v1/watch/daemonsets": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update scale of the specified ReplicaSet", + "operationId": "patchNamespacedReplicaSetScale", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace scale of the specified ReplicaSet", + "operationId": "replaceNamespacedReplicaSetScale", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/apps/v1/watch/deployments": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified ReplicaSet", + "operationId": "readNamespacedReplicaSetStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions": { + }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "name of the ReplicaSet", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -57613,89 +59954,428 @@ "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified ReplicaSet", + "operationId": "patchNamespacedReplicaSetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified ReplicaSet", + "operationId": "replaceNamespacedReplicaSetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ReplicaSet" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" }, - { - "description": "name of the ControllerRevision", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/apps/v1/namespaces/{namespace}/statefulsets": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of StatefulSet", + "operationId": "deleteCollectionNamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind StatefulSet", + "operationId": "listNamespacedStatefulSet", + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSetList" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "parameters": [ { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -57710,79 +60390,220 @@ "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a StatefulSet", + "operationId": "createNamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a StatefulSet", + "operationId": "deleteNamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified StatefulSet", + "operationId": "readNamespacedStatefulSet", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the StatefulSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", "uniqueItems": true }, { @@ -57799,83 +60620,204 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified StatefulSet", + "operationId": "patchNamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified StatefulSet", + "operationId": "replaceNamespacedStatefulSet", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read scale of the specified StatefulSet", + "operationId": "readNamespacedStatefulSetScale", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}": { + }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the DaemonSet", + "description": "name of the Scale", "in": "path", "name": "name", "required": true, @@ -57896,45 +60838,422 @@ "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/deployments": { + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update scale of the specified StatefulSet", + "operationId": "patchNamespacedStatefulSetScale", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace scale of the specified StatefulSet", + "operationId": "replaceNamespacedStatefulSetScale", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Scale" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "Scale", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified StatefulSet", + "operationId": "readNamespacedStatefulSetStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the StatefulSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified StatefulSet", + "operationId": "patchNamespacedStatefulSetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified StatefulSet", + "operationId": "replaceNamespacedStatefulSetStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.StatefulSet" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/apps/v1/replicasets": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind ReplicaSet", + "operationId": "listReplicaSetForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ReplicaSetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ReplicaSet", + "version": "v1" + } + }, "parameters": [ { "description": "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.", @@ -57971,14 +61290,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -58007,6 +61318,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -58023,7 +61341,46 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}": { + "/apis/apps/v1/statefulsets": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind StatefulSet", + "operationId": "listStatefulSetForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.StatefulSetList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "StatefulSet", + "version": "v1" + } + }, "parameters": [ { "description": "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.", @@ -58060,22 +61417,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the Deployment", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -58104,6 +61445,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -58120,7 +61468,7 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/replicasets": { + "/apis/apps/v1/watch/controllerrevisions": { "parameters": [ { "description": "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.", @@ -58157,14 +61505,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -58193,6 +61533,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -58209,7 +61556,7 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}": { + "/apis/apps/v1/watch/daemonsets": { "parameters": [ { "description": "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.", @@ -58247,21 +61594,93 @@ "uniqueItems": true }, { - "description": "name of the ReplicaSet", - "in": "path", - "name": "name", - "required": true, - "type": "string", + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/watch/deployments": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": true }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -58290,6 +61709,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -58306,7 +61732,7 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets": { + "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions": { "parameters": [ { "description": "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.", @@ -58379,6 +61805,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -58395,7 +61828,7 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}": { + "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}": { "parameters": [ { "description": "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.", @@ -58433,7 +61866,7 @@ "uniqueItems": true }, { - "description": "name of the StatefulSet", + "description": "name of the ControllerRevision", "in": "path", "name": "name", "required": true, @@ -58476,6 +61909,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -58492,7 +61932,7 @@ } ] }, - "/apis/apps/v1/watch/replicasets": { + "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets": { "parameters": [ { "description": "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.", @@ -58529,6 +61969,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -58557,6 +62005,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -58573,7 +62028,7 @@ } ] }, - "/apis/apps/v1/watch/statefulsets": { + "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}": { "parameters": [ { "description": "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.", @@ -58610,6 +62065,22 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the DaemonSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -58638,6 +62109,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -58654,89 +62132,48 @@ } ] }, - "/apis/authentication.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/apps/v1/watch/namespaces/{namespace}/deployments": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "authentication" - ] - } - }, - "/apis/authentication.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1" - ] - } - }, - "/apis/authentication.k8s.io/v1/selfsubjectreviews": { - "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "dryRun", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "fieldManager", + "name": "labelSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "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.\n\nThe 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.", "in": "query", - "name": "fieldValidation", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, @@ -58746,242 +62183,93 @@ "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a SelfSubjectReview", - "operationId": "createSelfSubjectReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.SelfSubjectReview" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authentication.k8s.io", - "kind": "SelfSubjectReview", - "version": "v1" }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/authentication.k8s.io/v1/tokenreviews": { - "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "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.\n\nDefaults to unset", "in": "query", - "name": "dryRun", + "name": "resourceVersion", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "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.\n\nDefaults to unset", "in": "query", - "name": "fieldManager", + "name": "resourceVersionMatch", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", "in": "query", - "name": "fieldValidation", - "type": "string", + "name": "sendInitialEvents", + "type": "boolean", "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "in": "query", - "name": "pretty", + "name": "shardSelector", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a TokenReview", - "operationId": "createTokenReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.TokenReview" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.TokenReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.TokenReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.TokenReview" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "authentication_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authentication.k8s.io", - "kind": "TokenReview", - "version": "v1" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/authorization.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "authorization" - ] - } - }, - "/apis/authorization.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ] - } - }, - "/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews": { - "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "dryRun", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "fieldManager", + "name": "labelSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "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.\n\nThe 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.", "in": "query", - "name": "fieldValidation", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the Deployment", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, @@ -58999,444 +62287,148 @@ "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a LocalSubjectAccessReview", - "operationId": "createNamespacedLocalSubjectAccessReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.LocalSubjectAccessReview" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LocalSubjectAccessReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.LocalSubjectAccessReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.LocalSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "LocalSubjectAccessReview", - "version": "v1" }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/authorization.k8s.io/v1/selfsubjectaccessreviews": { - "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "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.\n\nDefaults to unset", "in": "query", - "name": "dryRun", + "name": "resourceVersion", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "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.\n\nDefaults to unset", "in": "query", - "name": "fieldManager", + "name": "resourceVersionMatch", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", "in": "query", - "name": "fieldValidation", - "type": "string", + "name": "sendInitialEvents", + "type": "boolean", "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "in": "query", - "name": "pretty", + "name": "shardSelector", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a SelfSubjectAccessReview", - "operationId": "createSelfSubjectAccessReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.SelfSubjectAccessReview" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectAccessReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectAccessReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectAccessReview", - "version": "v1" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/authorization.k8s.io/v1/selfsubjectrulesreviews": { + "/apis/apps/v1/watch/namespaces/{namespace}/replicasets": { "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "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.", "in": "query", - "name": "dryRun", - "type": "string", + "name": "allowWatchBookmarks", + "type": "boolean", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "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\".\n\nThis 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.", "in": "query", - "name": "fieldManager", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "fieldValidation", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "pretty", + "name": "labelSelector", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a SelfSubjectRulesReview", - "operationId": "createSelfSubjectRulesReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.SelfSubjectRulesReview" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectRulesReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectRulesReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.SelfSubjectRulesReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SelfSubjectRulesReview", - "version": "v1" }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/authorization.k8s.io/v1/subjectaccessreviews": { - "parameters": [ { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "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.\n\nThe 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.", "in": "query", - "name": "dryRun", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", - "name": "fieldManager", + "name": "pretty", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "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.\n\nDefaults to unset", "in": "query", - "name": "fieldValidation", + "name": "resourceVersion", "type": "string", "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "description": "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.\n\nDefaults to unset", "in": "query", - "name": "pretty", + "name": "resourceVersionMatch", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a SubjectAccessReview", - "operationId": "createSubjectAccessReview", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.SubjectAccessReview" - } - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.SubjectAccessReview" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.SubjectAccessReview" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.SubjectAccessReview" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "authorization_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "authorization.k8s.io", - "kind": "SubjectAccessReview", - "version": "v1" }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/autoscaling/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling" - ] - } - }, - "/apis/autoscaling/v1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ] - } - }, - "/apis/autoscaling/v1/horizontalpodautoscalers": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listHorizontalPodAutoscalerForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}": { "parameters": [ { "description": "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.", @@ -59473,6 +62465,22 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the ReplicaSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -59501,6 +62509,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -59517,256 +62532,43 @@ } ] }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of HorizontalPodAutoscaler", - "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -59781,216 +62583,90 @@ "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a HorizontalPodAutoscaler", - "operationId": "createNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete a HorizontalPodAutoscaler", - "operationId": "deleteNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified HorizontalPodAutoscaler", - "operationId": "readNamespacedHorizontalPodAutoscaler", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}": { "parameters": [ { - "description": "name of the HorizontalPodAutoscaler", + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the StatefulSet", "in": "path", "name": "name", "required": true, @@ -60005,425 +62681,6 @@ "type": "string", "uniqueItems": true }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified HorizontalPodAutoscaler", - "operationId": "patchNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified HorizontalPodAutoscaler", - "operationId": "replaceNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { - "get": { - "consumes": [ - "application/json" - ], - "description": "read status of the specified HorizontalPodAutoscaler", - "operationId": "readNamespacedHorizontalPodAutoscalerStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update status of the specified HorizontalPodAutoscaler", - "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace status of the specified HorizontalPodAutoscaler", - "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.HorizontalPodAutoscaler" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -60452,6 +62709,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -60468,7 +62732,7 @@ } ] }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { + "/apis/apps/v1/watch/replicasets": { "parameters": [ { "description": "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.", @@ -60505,14 +62769,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -60541,6 +62797,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -60557,7 +62820,7 @@ } ] }, - "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "/apis/apps/v1/watch/statefulsets": { "parameters": [ { "description": "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.", @@ -60594,22 +62857,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -60638,6 +62885,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -60654,24 +62908,23 @@ } ] }, - "/apis/autoscaling/v2/": { + "/apis/authentication.k8s.io/": { "get": { "consumes": [ "application/json" ], - "description": "get available resources", - "operationId": "getAPIResources", + "description": "get information of a group", + "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -60682,31 +62935,28 @@ "https" ], "tags": [ - "autoscaling_v2" + "authentication" ] } }, - "/apis/autoscaling/v2/horizontalpodautoscalers": { + "/apis/authentication.k8s.io/v1/": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listHorizontalPodAutoscalerForAllNamespaces", + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -60717,200 +62967,55 @@ "https" ], "tags": [ - "autoscaling_v2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" - } - }, + "authentication_v1" + ] + } + }, + "/apis/authentication.k8s.io/v1/selfsubjectreviews": { "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", - "name": "continue", + "name": "dryRun", "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", - "name": "fieldSelector", + "name": "fieldManager", "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "labelSelector", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers": { - "delete": { + ], + "post": { "consumes": [ "application/json" ], - "description": "delete collection of HorizontalPodAutoscaler", - "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", + "description": "create a SelfSubjectReview", + "operationId": "createSelfSubjectReview", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.SelfSubjectReview" } - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true } ], "produces": [ @@ -60923,119 +63028,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.SelfSubjectReview" } }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "autoscaling_v2" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" - }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind HorizontalPodAutoscaler", - "operationId": "listNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.SelfSubjectReview" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", + "202": { + "description": "Accepted", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscalerList" + "$ref": "#/definitions/v1.SelfSubjectReview" } }, "401": { @@ -61046,21 +63051,37 @@ "https" ], "tags": [ - "autoscaling_v2" + "authentication_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" - } - }, + "group": "authentication.k8s.io", + "kind": "SelfSubjectReview", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/authentication.k8s.io/v1/tokenreviews": { "parameters": [ { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, @@ -61076,37 +63097,16 @@ "consumes": [ "application/json" ], - "description": "create a HorizontalPodAutoscaler", - "operationId": "createNamespacedHorizontalPodAutoscaler", + "description": "create a TokenReview", + "operationId": "createTokenReview", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.TokenReview" } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true } ], "produces": [ @@ -61119,19 +63119,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.TokenReview" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.TokenReview" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.TokenReview" } }, "401": { @@ -61142,85 +63142,34 @@ "https" ], "tags": [ - "autoscaling_v2" + "authentication_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" + "group": "authentication.k8s.io", + "kind": "TokenReview", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "delete": { + "/apis/authorization.k8s.io/": { + "get": { "consumes": [ "application/json" ], - "description": "delete a HorizontalPodAutoscaler", - "operationId": "deleteNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], + "description": "get information of a group", + "operationId": "getAPIGroup", "produces": [ "application/json", "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/vnd.kubernetes.protobuf" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.APIGroup" } }, "401": { @@ -61231,22 +63180,17 @@ "https" ], "tags": [ - "autoscaling_v2" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" - }, - "x-codegen-request-body-name": "body" - }, + "authorization" + ] + } + }, + "/apis/authorization.k8s.io/v1/": { "get": { "consumes": [ "application/json" ], - "description": "read the specified HorizontalPodAutoscaler", - "operationId": "readNamespacedHorizontalPodAutoscaler", + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -61257,7 +63201,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -61268,21 +63212,30 @@ "https" ], "tags": [ - "autoscaling_v2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" - } - }, + "authorization_v1" + ] + } + }, + "/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews": { "parameters": [ { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, @@ -61302,48 +63255,20 @@ "uniqueItems": true } ], - "patch": { + "post": { "consumes": [ "application/json" ], - "description": "partially update the specified HorizontalPodAutoscaler", - "operationId": "patchNamespacedHorizontalPodAutoscaler", + "description": "create a LocalSubjectAccessReview", + "operationId": "createNamespacedLocalSubjectAccessReview", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "$ref": "#/definitions/v1.LocalSubjectAccessReview" } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -61356,13 +63281,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.LocalSubjectAccessReview" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.LocalSubjectAccessReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.LocalSubjectAccessReview" } }, "401": { @@ -61373,51 +63304,62 @@ "https" ], "tags": [ - "autoscaling_v2" + "authorization_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" + "group": "authorization.k8s.io", + "kind": "LocalSubjectAccessReview", + "version": "v1" }, "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified HorizontalPodAutoscaler", - "operationId": "replaceNamespacedHorizontalPodAutoscaler", - "parameters": [ - { - "in": "body", - "name": "body", + } + }, + "/apis/authorization.k8s.io/v1/selfsubjectaccessreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a SelfSubjectAccessReview", + "operationId": "createSelfSubjectAccessReview", + "parameters": [ + { + "in": "body", + "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.SelfSubjectAccessReview" } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true } ], "produces": [ @@ -61430,13 +63372,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.SelfSubjectAccessReview" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.SelfSubjectAccessReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.SelfSubjectAccessReview" } }, "401": { @@ -61447,24 +63395,64 @@ "https" ], "tags": [ - "autoscaling_v2" + "authorization_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" + "group": "authorization.k8s.io", + "kind": "SelfSubjectAccessReview", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { - "get": { + "/apis/authorization.k8s.io/v1/selfsubjectrulesreviews": { + "parameters": [ + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { "consumes": [ "application/json" ], - "description": "read status of the specified HorizontalPodAutoscaler", - "operationId": "readNamespacedHorizontalPodAutoscalerStatus", + "description": "create a SelfSubjectRulesReview", + "operationId": "createSelfSubjectRulesReview", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.SelfSubjectRulesReview" + } + } + ], "produces": [ "application/json", "application/yaml", @@ -61475,7 +63463,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.SelfSubjectRulesReview" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.SelfSubjectRulesReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.SelfSubjectRulesReview" } }, "401": { @@ -61486,29 +63486,37 @@ "https" ], "tags": [ - "autoscaling_v2" + "authorization_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" - } - }, + "group": "authorization.k8s.io", + "kind": "SelfSubjectRulesReview", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/authorization.k8s.io/v1/subjectaccessreviews": { "parameters": [ { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, @@ -61520,48 +63528,20 @@ "uniqueItems": true } ], - "patch": { + "post": { "consumes": [ "application/json" ], - "description": "partially update status of the specified HorizontalPodAutoscaler", - "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", + "description": "create a SubjectAccessReview", + "operationId": "createSubjectAccessReview", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "$ref": "#/definitions/v1.SubjectAccessReview" } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -61574,13 +63554,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.SubjectAccessReview" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.SubjectAccessReview" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.SubjectAccessReview" } }, "401": { @@ -61591,53 +63577,55 @@ "https" ], "tags": [ - "autoscaling_v2" + "authorization_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "autoscaling", - "kind": "HorizontalPodAutoscaler", - "version": "v2" + "group": "authorization.k8s.io", + "kind": "SubjectAccessReview", + "version": "v1" }, "x-codegen-request-body-name": "body" - }, - "put": { + } + }, + "/apis/autoscaling/": { + "get": { "consumes": [ "application/json" ], - "description": "replace status of the specified HorizontalPodAutoscaler", - "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.APIGroup" } }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true + "401": { + "description": "Unauthorized" } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling" + ] + } + }, + "/apis/autoscaling/v1/": { + "get": { + "consumes": [ + "application/json" ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -61648,13 +63636,42 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.APIResourceList" } }, - "201": { - "description": "Created", + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v1" + ] + } + }, + "/apis/autoscaling/v1/horizontalpodautoscalers": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind HorizontalPodAutoscaler", + "operationId": "listHorizontalPodAutoscalerForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v2.HorizontalPodAutoscaler" + "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" } }, "401": { @@ -61665,18 +63682,15 @@ "https" ], "tags": [ - "autoscaling_v2" + "autoscaling_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "autoscaling", "kind": "HorizontalPodAutoscaler", - "version": "v2" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/autoscaling/v2/watch/horizontalpodautoscalers": { + "version": "v1" + } + }, "parameters": [ { "description": "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.", @@ -61742,94 +63756,12 @@ "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "in": "query", - "name": "resourceVersionMatch", + "name": "shardSelector", "type": "string", "uniqueItems": true }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -61846,413 +63778,13 @@ } ] }, - "/apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the HorizontalPodAutoscaler", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch" - ] - } - }, - "/apis/batch/v1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ] - } - }, - "/apis/batch/v1/cronjobs": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind CronJob", - "operationId": "listCronJobForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.CronJobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", - "version": "v1" - } - }, - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1/jobs": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind Job", - "operationId": "listJobForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.JobList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "batch_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" - } - }, - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1/namespaces/{namespace}/cronjobs": { + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of CronJob", - "operationId": "deleteCollectionNamespacedCronJob", + "description": "delete collection of HorizontalPodAutoscaler", + "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", @@ -62345,6 +63877,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -62374,12 +63913,12 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -62388,8 +63927,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind CronJob", - "operationId": "listNamespacedCronJob", + "description": "list or watch objects of kind HorizontalPodAutoscaler", + "operationId": "listNamespacedHorizontalPodAutoscaler", "parameters": [ { "description": "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.", @@ -62447,6 +63986,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -62475,7 +64021,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJobList" + "$ref": "#/definitions/v1.HorizontalPodAutoscalerList" } }, "401": { @@ -62486,12 +64032,12 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", "version": "v1" } }, @@ -62516,15 +64062,15 @@ "consumes": [ "application/json" ], - "description": "create a CronJob", - "operationId": "createNamespacedCronJob", + "description": "create a HorizontalPodAutoscaler", + "operationId": "createNamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, { @@ -62559,19 +64105,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "401": { @@ -62582,24 +64128,24 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}": { + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a CronJob", - "operationId": "deleteNamespacedCronJob", + "description": "delete a HorizontalPodAutoscaler", + "operationId": "deleteNamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", @@ -62671,12 +64217,12 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -62685,8 +64231,8 @@ "consumes": [ "application/json" ], - "description": "read the specified CronJob", - "operationId": "readNamespacedCronJob", + "description": "read the specified HorizontalPodAutoscaler", + "operationId": "readNamespacedHorizontalPodAutoscaler", "produces": [ "application/json", "application/yaml", @@ -62697,7 +64243,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "401": { @@ -62708,18 +64254,18 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", "version": "v1" } }, "parameters": [ { - "description": "name of the CronJob", + "description": "name of the HorizontalPodAutoscaler", "in": "path", "name": "name", "required": true, @@ -62746,8 +64292,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified CronJob", - "operationId": "patchNamespacedCronJob", + "description": "partially update the specified HorizontalPodAutoscaler", + "operationId": "patchNamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", @@ -62796,13 +64342,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "401": { @@ -62813,12 +64359,12 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -62827,15 +64373,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified CronJob", - "operationId": "replaceNamespacedCronJob", + "description": "replace the specified HorizontalPodAutoscaler", + "operationId": "replaceNamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, { @@ -62870,13 +64416,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "401": { @@ -62887,24 +64433,24 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status": { + "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified CronJob", - "operationId": "readNamespacedCronJobStatus", + "description": "read status of the specified HorizontalPodAutoscaler", + "operationId": "readNamespacedHorizontalPodAutoscalerStatus", "produces": [ "application/json", "application/yaml", @@ -62915,7 +64461,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "401": { @@ -62926,18 +64472,18 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", "version": "v1" } }, "parameters": [ { - "description": "name of the CronJob", + "description": "name of the HorizontalPodAutoscaler", "in": "path", "name": "name", "required": true, @@ -62964,8 +64510,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified CronJob", - "operationId": "patchNamespacedCronJobStatus", + "description": "partially update status of the specified HorizontalPodAutoscaler", + "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "in": "body", @@ -63014,13 +64560,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "401": { @@ -63031,12 +64577,12 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -63045,15 +64591,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified CronJob", - "operationId": "replaceNamespacedCronJobStatus", + "description": "replace status of the specified HorizontalPodAutoscaler", + "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, { @@ -63088,13 +64634,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CronJob" + "$ref": "#/definitions/v1.HorizontalPodAutoscaler" } }, "401": { @@ -63105,49 +64651,496 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "CronJob", + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/batch/v1/namespaces/{namespace}/jobs": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of Job", - "operationId": "deleteCollectionNamespacedJob", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", + "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the HorizontalPodAutoscaler", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/autoscaling/v2/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ] + } + }, + "/apis/autoscaling/v2/horizontalpodautoscalers": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind HorizontalPodAutoscaler", + "operationId": "listHorizontalPodAutoscalerForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v2.HorizontalPodAutoscalerList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "autoscaling_v2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" + } + }, + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of HorizontalPodAutoscaler", + "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", "name": "fieldSelector", "type": "string", "uniqueItems": true @@ -63215,6 +65208,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -63244,13 +65244,13 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" }, "x-codegen-request-body-name": "body" }, @@ -63258,8 +65258,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind Job", - "operationId": "listNamespacedJob", + "description": "list or watch objects of kind HorizontalPodAutoscaler", + "operationId": "listNamespacedHorizontalPodAutoscaler", "parameters": [ { "description": "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.", @@ -63317,6 +65317,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -63345,7 +65352,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.JobList" + "$ref": "#/definitions/v2.HorizontalPodAutoscalerList" } }, "401": { @@ -63356,13 +65363,13 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" } }, "parameters": [ @@ -63386,15 +65393,15 @@ "consumes": [ "application/json" ], - "description": "create a Job", - "operationId": "createNamespacedJob", + "description": "create a HorizontalPodAutoscaler", + "operationId": "createNamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, { @@ -63429,19 +65436,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "401": { @@ -63452,24 +65459,24 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" }, "x-codegen-request-body-name": "body" } }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}": { + "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a Job", - "operationId": "deleteNamespacedJob", + "description": "delete a HorizontalPodAutoscaler", + "operationId": "deleteNamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", @@ -63541,13 +65548,13 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" }, "x-codegen-request-body-name": "body" }, @@ -63555,8 +65562,8 @@ "consumes": [ "application/json" ], - "description": "read the specified Job", - "operationId": "readNamespacedJob", + "description": "read the specified HorizontalPodAutoscaler", + "operationId": "readNamespacedHorizontalPodAutoscaler", "produces": [ "application/json", "application/yaml", @@ -63567,7 +65574,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "401": { @@ -63578,18 +65585,18 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" } }, "parameters": [ { - "description": "name of the Job", + "description": "name of the HorizontalPodAutoscaler", "in": "path", "name": "name", "required": true, @@ -63616,8 +65623,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified Job", - "operationId": "patchNamespacedJob", + "description": "partially update the specified HorizontalPodAutoscaler", + "operationId": "patchNamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", @@ -63666,13 +65673,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "401": { @@ -63683,13 +65690,13 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" }, "x-codegen-request-body-name": "body" }, @@ -63697,15 +65704,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified Job", - "operationId": "replaceNamespacedJob", + "description": "replace the specified HorizontalPodAutoscaler", + "operationId": "replaceNamespacedHorizontalPodAutoscaler", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, { @@ -63740,13 +65747,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "401": { @@ -63757,24 +65764,24 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" }, "x-codegen-request-body-name": "body" } }, - "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status": { + "/apis/autoscaling/v2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified Job", - "operationId": "readNamespacedJobStatus", + "description": "read status of the specified HorizontalPodAutoscaler", + "operationId": "readNamespacedHorizontalPodAutoscalerStatus", "produces": [ "application/json", "application/yaml", @@ -63785,7 +65792,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "401": { @@ -63796,18 +65803,18 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" } }, "parameters": [ { - "description": "name of the Job", + "description": "name of the HorizontalPodAutoscaler", "in": "path", "name": "name", "required": true, @@ -63834,8 +65841,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified Job", - "operationId": "patchNamespacedJobStatus", + "description": "partially update status of the specified HorizontalPodAutoscaler", + "operationId": "patchNamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "in": "body", @@ -63884,13 +65891,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "401": { @@ -63901,13 +65908,13 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" }, "x-codegen-request-body-name": "body" }, @@ -63915,15 +65922,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified Job", - "operationId": "replaceNamespacedJobStatus", + "description": "replace status of the specified HorizontalPodAutoscaler", + "operationId": "replaceNamespacedHorizontalPodAutoscalerStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, { @@ -63958,13 +65965,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Job" + "$ref": "#/definitions/v2.HorizontalPodAutoscaler" } }, "401": { @@ -63975,18 +65982,18 @@ "https" ], "tags": [ - "batch_v1" + "autoscaling_v2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "batch", - "kind": "Job", - "version": "v1" + "group": "autoscaling", + "kind": "HorizontalPodAutoscaler", + "version": "v2" }, "x-codegen-request-body-name": "body" } }, - "/apis/batch/v1/watch/cronjobs": { + "/apis/autoscaling/v2/watch/horizontalpodautoscalers": { "parameters": [ { "description": "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.", @@ -64051,6 +66058,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -64067,7 +66081,7 @@ } ] }, - "/apis/batch/v1/watch/jobs": { + "/apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers": { "parameters": [ { "description": "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.", @@ -64104,6 +66118,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -64132,6 +66154,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -64148,7 +66177,7 @@ } ] }, - "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs": { + "/apis/autoscaling/v2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "parameters": [ { "description": "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.", @@ -64185,6 +66214,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the HorizontalPodAutoscaler", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -64221,6 +66258,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -64237,7 +66281,109 @@ } ] }, - "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}": { + "/apis/batch/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch" + ] + } + }, + "/apis/batch/v1/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ] + } + }, + "/apis/batch/v1/cronjobs": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind CronJob", + "operationId": "listCronJobForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.CronJobList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "CronJob", + "version": "v1" + } + }, "parameters": [ { "description": "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.", @@ -64274,22 +66420,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the CronJob", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -64319,94 +66449,12 @@ "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "in": "query", - "name": "pretty", + "name": "shardSelector", "type": "string", "uniqueItems": true }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -64423,7 +66471,46 @@ } ] }, - "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { + "/apis/batch/v1/jobs": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind Job", + "operationId": "listJobForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.JobList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + }, "parameters": [ { "description": "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.", @@ -64460,22 +66547,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the Job", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -64504,6 +66575,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -64520,76 +66598,13 @@ } ] }, - "/apis/certificates.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates" - ] - } - }, - "/apis/certificates.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1" - ] - } - }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests": { + "/apis/batch/v1/namespaces/{namespace}/cronjobs": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of CertificateSigningRequest", - "operationId": "deleteCollectionCertificateSigningRequest", + "description": "delete collection of CronJob", + "operationId": "deleteCollectionNamespacedCronJob", "parameters": [ { "in": "body", @@ -64682,6 +66697,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -64711,12 +66733,12 @@ "https" ], "tags": [ - "certificates_v1" + "batch_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "batch", + "kind": "CronJob", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -64725,8 +66747,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind CertificateSigningRequest", - "operationId": "listCertificateSigningRequest", + "description": "list or watch objects of kind CronJob", + "operationId": "listNamespacedCronJob", "parameters": [ { "description": "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.", @@ -64784,6 +66806,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -64812,7 +66841,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequestList" + "$ref": "#/definitions/v1.CronJobList" } }, "401": { @@ -64823,16 +66852,24 @@ "https" ], "tags": [ - "certificates_v1" + "batch_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "batch", + "kind": "CronJob", "version": "v1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -64845,15 +66882,15 @@ "consumes": [ "application/json" ], - "description": "create a CertificateSigningRequest", - "operationId": "createCertificateSigningRequest", + "description": "create a CronJob", + "operationId": "createNamespacedCronJob", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, { @@ -64888,19 +66925,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -64911,24 +66948,24 @@ "https" ], "tags": [ - "certificates_v1" + "batch_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "batch", + "kind": "CronJob", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}": { + "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a CertificateSigningRequest", - "operationId": "deleteCertificateSigningRequest", + "description": "delete a CronJob", + "operationId": "deleteNamespacedCronJob", "parameters": [ { "in": "body", @@ -65000,12 +67037,12 @@ "https" ], "tags": [ - "certificates_v1" + "batch_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "batch", + "kind": "CronJob", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -65014,8 +67051,8 @@ "consumes": [ "application/json" ], - "description": "read the specified CertificateSigningRequest", - "operationId": "readCertificateSigningRequest", + "description": "read the specified CronJob", + "operationId": "readNamespacedCronJob", "produces": [ "application/json", "application/yaml", @@ -65026,7 +67063,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -65037,24 +67074,32 @@ "https" ], "tags": [ - "certificates_v1" + "batch_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "batch", + "kind": "CronJob", "version": "v1" } }, "parameters": [ { - "description": "name of the CertificateSigningRequest", + "description": "name of the CronJob", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -65067,8 +67112,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified CertificateSigningRequest", - "operationId": "patchCertificateSigningRequest", + "description": "partially update the specified CronJob", + "operationId": "patchNamespacedCronJob", "parameters": [ { "in": "body", @@ -65117,13 +67162,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -65134,12 +67179,12 @@ "https" ], "tags": [ - "certificates_v1" + "batch_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "batch", + "kind": "CronJob", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -65148,15 +67193,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified CertificateSigningRequest", - "operationId": "replaceCertificateSigningRequest", + "description": "replace the specified CronJob", + "operationId": "replaceNamespacedCronJob", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, { @@ -65191,13 +67236,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -65208,24 +67253,24 @@ "https" ], "tags": [ - "certificates_v1" + "batch_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "batch", + "kind": "CronJob", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval": { + "/apis/batch/v1/namespaces/{namespace}/cronjobs/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read approval of the specified CertificateSigningRequest", - "operationId": "readCertificateSigningRequestApproval", + "description": "read status of the specified CronJob", + "operationId": "readNamespacedCronJobStatus", "produces": [ "application/json", "application/yaml", @@ -65236,7 +67281,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -65247,24 +67292,32 @@ "https" ], "tags": [ - "certificates_v1" + "batch_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "batch", + "kind": "CronJob", "version": "v1" } }, "parameters": [ { - "description": "name of the CertificateSigningRequest", + "description": "name of the CronJob", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -65277,8 +67330,8 @@ "consumes": [ "application/json" ], - "description": "partially update approval of the specified CertificateSigningRequest", - "operationId": "patchCertificateSigningRequestApproval", + "description": "partially update status of the specified CronJob", + "operationId": "patchNamespacedCronJobStatus", "parameters": [ { "in": "body", @@ -65327,13 +67380,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -65344,12 +67397,12 @@ "https" ], "tags": [ - "certificates_v1" + "batch_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "batch", + "kind": "CronJob", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -65358,15 +67411,15 @@ "consumes": [ "application/json" ], - "description": "replace approval of the specified CertificateSigningRequest", - "operationId": "replaceCertificateSigningRequestApproval", + "description": "replace status of the specified CronJob", + "operationId": "replaceNamespacedCronJobStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, { @@ -65401,13 +67454,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.CronJob" } }, "401": { @@ -65418,24 +67471,131 @@ "https" ], "tags": [ - "certificates_v1" + "batch_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "batch", + "kind": "CronJob", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status": { - "get": { + "/apis/batch/v1/namespaces/{namespace}/jobs": { + "delete": { "consumes": [ "application/json" ], - "description": "read status of the specified CertificateSigningRequest", - "operationId": "readCertificateSigningRequestStatus", + "description": "delete collection of Job", + "operationId": "deleteCollectionNamespacedJob", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -65446,7 +67606,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -65457,20 +67617,139 @@ "https" ], "tags": [ - "certificates_v1" + "batch_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "batch", + "kind": "Job", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind Job", + "operationId": "listNamespacedJob", + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.JobList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", "version": "v1" } }, "parameters": [ { - "description": "name of the CertificateSigningRequest", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -65483,19 +67762,19 @@ "uniqueItems": true } ], - "patch": { + "post": { "consumes": [ "application/json" ], - "description": "partially update status of the specified CertificateSigningRequest", - "operationId": "patchCertificateSigningRequestStatus", + "description": "create a Job", + "operationId": "createNamespacedJob", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "$ref": "#/definitions/v1.Job" } }, { @@ -65506,7 +67785,7 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", "name": "fieldManager", "type": "string", @@ -65518,13 +67797,6 @@ "name": "fieldValidation", "type": "string", "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true } ], "produces": [ @@ -65537,13 +67809,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.Job" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.Job" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -65554,29 +67832,30 @@ "https" ], "tags": [ - "certificates_v1" + "batch_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "batch", + "kind": "Job", "version": "v1" }, "x-codegen-request-body-name": "body" - }, - "put": { + } + }, + "/apis/batch/v1/namespaces/{namespace}/jobs/{name}": { + "delete": { "consumes": [ "application/json" ], - "description": "replace status of the specified CertificateSigningRequest", - "operationId": "replaceCertificateSigningRequestStatus", + "description": "delete a Job", + "operationId": "deleteNamespacedJob", "parameters": [ { "in": "body", "name": "body", - "required": true, "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.DeleteOptions" } }, { @@ -65587,16 +67866,30 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "in": "query", - "name": "fieldManager", - "type": "string", + "name": "gracePeriodSeconds", + "type": "integer", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", "in": "query", - "name": "fieldValidation", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", "type": "string", "uniqueItems": true } @@ -65611,13 +67904,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.Status" } }, - "201": { - "description": "Created", + "202": { + "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.CertificateSigningRequest" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -65628,241 +67921,92 @@ "https" ], "tags": [ - "certificates_v1" + "batch_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "CertificateSigningRequest", + "group": "batch", + "kind": "Job", "version": "v1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified Job", + "operationId": "readNamespacedJob", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Job" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + } + }, + "parameters": [ { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", + "description": "name of the Job", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", - "name": "labelSelector", + "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the CertificateSigningRequest", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/certificates.k8s.io/v1alpha1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1alpha1" - ] - } - }, - "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles": { - "delete": { + ], + "patch": { "consumes": [ "application/json" ], - "description": "delete collection of ClusterTrustBundle", - "operationId": "deleteCollectionClusterTrustBundle", + "description": "partially update the specified Job", + "operationId": "patchNamespacedJob", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.Patch" } }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, { "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", @@ -65871,81 +68015,25 @@ "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", "in": "query", - "name": "resourceVersion", + "name": "fieldManager", "type": "string", "uniqueItems": true }, { - "description": "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.\n\nDefaults to unset", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "resourceVersionMatch", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", "in": "query", - "name": "sendInitialEvents", + "name": "force", "type": "boolean", "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true } ], "produces": [ @@ -65958,7 +68046,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.Job" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -65969,108 +68063,109 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "batch_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "group": "batch", + "kind": "Job", + "version": "v1" }, "x-codegen-request-body-name": "body" }, - "get": { + "put": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind ClusterTrustBundle", - "operationId": "listClusterTrustBundle", + "description": "replace the specified Job", + "operationId": "replaceNamespacedJob", "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Job" + } }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", - "name": "labelSelector", + "name": "dryRun", "type": "string", "uniqueItems": true }, { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", - "name": "resourceVersion", + "name": "fieldManager", "type": "string", "uniqueItems": true }, { - "description": "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.\n\nDefaults to unset", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "resourceVersionMatch", + "name": "fieldValidation", "type": "string", "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Job" + } }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Job" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "401": { + "description": "Unauthorized" } + }, + "schemes": [ + "https" + ], + "tags": [ + "batch_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "batch", + "kind": "Job", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status": { + "get": { + "consumes": [ + "application/json" ], + "description": "read status of the specified Job", + "operationId": "readNamespacedJobStatus", "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundleList" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -66081,16 +68176,32 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "batch_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "group": "batch", + "kind": "Job", + "version": "v1" } }, "parameters": [ + { + "description": "name of the Job", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -66099,19 +68210,19 @@ "uniqueItems": true } ], - "post": { + "patch": { "consumes": [ "application/json" ], - "description": "create a ClusterTrustBundle", - "operationId": "createClusterTrustBundle", + "description": "partially update status of the specified Job", + "operationId": "patchNamespacedJobStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.Patch" } }, { @@ -66122,7 +68233,7 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", "in": "query", "name": "fieldManager", "type": "string", @@ -66134,6 +68245,13 @@ "name": "fieldValidation", "type": "string", "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true } ], "produces": [ @@ -66146,19 +68264,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.Job" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -66169,30 +68281,29 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "batch_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "group": "batch", + "kind": "Job", + "version": "v1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}": { - "delete": { + }, + "put": { "consumes": [ "application/json" ], - "description": "delete a ClusterTrustBundle", - "operationId": "deleteClusterTrustBundle", + "description": "replace status of the specified Job", + "operationId": "replaceNamespacedJobStatus", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.Job" } }, { @@ -66203,30 +68314,16 @@ "uniqueItems": true }, { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", - "name": "orphanDependents", - "type": "boolean", + "name": "fieldManager", + "type": "string", "uniqueItems": true }, { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "propagationPolicy", + "name": "fieldValidation", "type": "string", "uniqueItems": true } @@ -66241,13 +68338,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.Job" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.Job" } }, "401": { @@ -66258,226 +68355,194 @@ "https" ], "tags": [ - "certificates_v1alpha1" + "batch_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1alpha1" + "group": "batch", + "kind": "Job", + "version": "v1" }, "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified ClusterTrustBundle", - "operationId": "readClusterTrustBundle", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" - } - }, - "401": { - "description": "Unauthorized" - } + } + }, + "/apis/batch/v1/watch/cronjobs": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1alpha1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1alpha1" + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/batch/v1/watch/jobs": { "parameters": [ { - "description": "name of the ClusterTrustBundle", - "in": "path", - "name": "name", - "required": true, + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": true }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified ClusterTrustBundle", - "operationId": "patchClusterTrustBundle", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1alpha1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1alpha1" + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified ClusterTrustBundle", - "operationId": "replaceClusterTrustBundle", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1alpha1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1alpha1" + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles": { + "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs": { "parameters": [ { "description": "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.", @@ -66514,6 +68579,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -66542,6 +68615,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -66558,7 +68638,7 @@ } ] }, - "/apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles/{name}": { + "/apis/batch/v1/watch/namespaces/{namespace}/cronjobs/{name}": { "parameters": [ { "description": "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.", @@ -66596,13 +68676,21 @@ "uniqueItems": true }, { - "description": "name of the ClusterTrustBundle", + "description": "name of the CronJob", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -66631,6 +68719,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -66647,50 +68742,281 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ] - } + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/certificates.k8s.io/v1beta1/clustertrustbundles": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of ClusterTrustBundle", - "operationId": "deleteCollectionClusterTrustBundle", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { + "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the Job", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/certificates.k8s.io/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates" + ] + } + }, + "/apis/certificates.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1" + ] + } + }, + "/apis/certificates.k8s.io/v1/certificatesigningrequests": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of CertificateSigningRequest", + "operationId": "deleteCollectionCertificateSigningRequest", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { "$ref": "#/definitions/v1.DeleteOptions" } }, @@ -66778,6 +69104,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -66807,13 +69140,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -66821,8 +69154,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ClusterTrustBundle", - "operationId": "listClusterTrustBundle", + "description": "list or watch objects of kind CertificateSigningRequest", + "operationId": "listCertificateSigningRequest", "parameters": [ { "description": "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.", @@ -66880,6 +69213,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -66908,7 +69248,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundleList" + "$ref": "#/definitions/v1.CertificateSigningRequestList" } }, "401": { @@ -66919,13 +69259,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" } }, "parameters": [ @@ -66941,15 +69281,15 @@ "consumes": [ "application/json" ], - "description": "create a ClusterTrustBundle", - "operationId": "createClusterTrustBundle", + "description": "create a CertificateSigningRequest", + "operationId": "createCertificateSigningRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, { @@ -66984,19 +69324,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -67007,24 +69347,24 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}": { + "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ClusterTrustBundle", - "operationId": "deleteClusterTrustBundle", + "description": "delete a CertificateSigningRequest", + "operationId": "deleteCertificateSigningRequest", "parameters": [ { "in": "body", @@ -67096,13 +69436,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -67110,8 +69450,8 @@ "consumes": [ "application/json" ], - "description": "read the specified ClusterTrustBundle", - "operationId": "readClusterTrustBundle", + "description": "read the specified CertificateSigningRequest", + "operationId": "readCertificateSigningRequest", "produces": [ "application/json", "application/yaml", @@ -67122,7 +69462,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -67133,18 +69473,18 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" } }, "parameters": [ { - "description": "name of the ClusterTrustBundle", + "description": "name of the CertificateSigningRequest", "in": "path", "name": "name", "required": true, @@ -67163,8 +69503,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified ClusterTrustBundle", - "operationId": "patchClusterTrustBundle", + "description": "partially update the specified CertificateSigningRequest", + "operationId": "patchCertificateSigningRequest", "parameters": [ { "in": "body", @@ -67213,13 +69553,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -67230,13 +69570,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -67244,15 +69584,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified ClusterTrustBundle", - "operationId": "replaceClusterTrustBundle", + "description": "replace the specified CertificateSigningRequest", + "operationId": "replaceCertificateSigningRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, { @@ -67287,13 +69627,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.ClusterTrustBundle" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -67304,247 +69644,35 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "ClusterTrustBundle", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of PodCertificateRequest", - "operationId": "deleteCollectionNamespacedPodCertificateRequest", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" - }, + "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/approval": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind PodCertificateRequest", - "operationId": "listNamespacedPodCertificateRequest", - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "read approval of the specified CertificateSigningRequest", + "operationId": "readCertificateSigningRequestApproval", "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequestList" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -67555,20 +69683,20 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" } }, "parameters": [ { - "description": "object name and auth scope, such as for teams and projects", + "description": "name of the CertificateSigningRequest", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -67581,19 +69709,19 @@ "uniqueItems": true } ], - "post": { + "patch": { "consumes": [ "application/json" ], - "description": "create a PodCertificateRequest", - "operationId": "createNamespacedPodCertificateRequest", + "description": "partially update approval of the specified CertificateSigningRequest", + "operationId": "patchCertificateSigningRequestApproval", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.Patch" } }, { @@ -67604,7 +69732,7 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", "in": "query", "name": "fieldManager", "type": "string", @@ -67616,6 +69744,13 @@ "name": "fieldValidation", "type": "string", "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true } ], "produces": [ @@ -67628,19 +69763,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -67651,30 +69780,29 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" - } - }, - "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}": { - "delete": { + }, + "put": { "consumes": [ "application/json" ], - "description": "delete a PodCertificateRequest", - "operationId": "deleteNamespacedPodCertificateRequest", + "description": "replace approval of the specified CertificateSigningRequest", + "operationId": "replaceCertificateSigningRequestApproval", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, { @@ -67685,30 +69813,16 @@ "uniqueItems": true }, { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", "in": "query", - "name": "orphanDependents", - "type": "boolean", + "name": "fieldManager", + "type": "string", "uniqueItems": true }, { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "propagationPolicy", + "name": "fieldValidation", "type": "string", "uniqueItems": true } @@ -67723,13 +69837,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, - "202": { - "description": "Accepted", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -67740,22 +69854,24 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], - "x-kubernetes-action": "delete", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" - }, + } + }, + "/apis/certificates.k8s.io/v1/certificatesigningrequests/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read the specified PodCertificateRequest", - "operationId": "readNamespacedPodCertificateRequest", + "description": "read status of the specified CertificateSigningRequest", + "operationId": "readCertificateSigningRequestStatus", "produces": [ "application/json", "application/yaml", @@ -67766,7 +69882,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -67777,32 +69893,24 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" } }, "parameters": [ { - "description": "name of the PodCertificateRequest", + "description": "name of the CertificateSigningRequest", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -67815,8 +69923,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified PodCertificateRequest", - "operationId": "patchNamespacedPodCertificateRequest", + "description": "partially update status of the specified CertificateSigningRequest", + "operationId": "patchCertificateSigningRequestStatus", "parameters": [ { "in": "body", @@ -67865,13 +69973,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -67882,13 +69990,13 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -67896,15 +70004,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified PodCertificateRequest", - "operationId": "replaceNamespacedPodCertificateRequest", + "description": "replace status of the specified CertificateSigningRequest", + "operationId": "replaceCertificateSigningRequestStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, { @@ -67939,13 +70047,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.CertificateSigningRequest" } }, "401": { @@ -67956,94 +70064,255 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" + "kind": "CertificateSigningRequest", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status": { - "get": { - "consumes": [ - "application/json" - ], - "description": "read status of the specified PodCertificateRequest", - "operationId": "readNamespacedPodCertificateRequestStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "certificates_v1beta1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" - } - }, + "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests": { "parameters": [ { - "description": "name of the PodCertificateRequest", - "in": "path", - "name": "name", - "required": true, + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": true }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update status of the specified PodCertificateRequest", - "operationId": "patchNamespacedPodCertificateRequestStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, + ] + }, + "/apis/certificates.k8s.io/v1/watch/certificatesigningrequests/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the CertificateSigningRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/certificates.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v1.Patch" + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1alpha1" + ] + } + }, + "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of ClusterTrustBundle", + "operationId": "deleteCollectionClusterTrustBundle", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" } }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, { "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", @@ -68052,25 +70321,88 @@ "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "fieldManager", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "in": "query", - "name": "fieldValidation", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": true }, { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "description": "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.\n\nThe 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.", "in": "query", - "name": "force", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", "type": "boolean", "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true } ], "produces": [ @@ -68083,13 +70415,126 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1.Status" } }, - "201": { - "description": "Created", + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1alpha1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind ClusterTrustBundle", + "operationId": "listClusterTrustBundle", + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1alpha1.ClusterTrustBundleList" } }, "401": { @@ -68100,29 +70545,37 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1alpha1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" - }, - "x-codegen-request-body-name": "body" + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + } }, - "put": { + "parameters": [ + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { "consumes": [ "application/json" ], - "description": "replace status of the specified PodCertificateRequest", - "operationId": "replaceNamespacedPodCertificateRequestStatus", + "description": "create a ClusterTrustBundle", + "operationId": "createClusterTrustBundle", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" } }, { @@ -68157,13 +70610,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequest" + "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" } }, "401": { @@ -68174,38 +70633,122 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1alpha1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" + "kind": "ClusterTrustBundle", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/certificates.k8s.io/v1beta1/podcertificaterequests": { + "/apis/certificates.k8s.io/v1alpha1/clustertrustbundles/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a ClusterTrustBundle", + "operationId": "deleteClusterTrustBundle", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1alpha1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" + }, + "x-codegen-request-body-name": "body" + }, "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind PodCertificateRequest", - "operationId": "listPodCertificateRequestForAllNamespaces", + "description": "read the specified ClusterTrustBundle", + "operationId": "readClusterTrustBundle", "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.PodCertificateRequestList" + "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" } }, "401": { @@ -68216,177 +70759,189 @@ "https" ], "tags": [ - "certificates_v1beta1" + "certificates_v1alpha1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "certificates.k8s.io", - "kind": "PodCertificateRequest", - "version": "v1beta1" + "kind": "ClusterTrustBundle", + "version": "v1alpha1" } }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", + "description": "name of the ClusterTrustBundle", + "in": "path", + "name": "name", + "required": true, + "type": "string", "uniqueItems": true }, { - "description": "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\".\n\nThis 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.", + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", - "name": "continue", + "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified ClusterTrustBundle", + "operationId": "patchClusterTrustBundle", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1alpha1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified ClusterTrustBundle", + "operationId": "replaceClusterTrustBundle", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha1.ClusterTrustBundle" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1alpha1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1alpha1" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}": { + "/apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles": { "parameters": [ { "description": "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.", @@ -68423,14 +70978,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the ClusterTrustBundle", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -68460,94 +71007,12 @@ "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", + "name": "shardSelector", "type": "string", "uniqueItems": true }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -68564,7 +71029,7 @@ } ] }, - "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests/{name}": { + "/apis/certificates.k8s.io/v1alpha1/watch/clustertrustbundles/{name}": { "parameters": [ { "description": "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.", @@ -68602,21 +71067,13 @@ "uniqueItems": true }, { - "description": "name of the PodCertificateRequest", + "description": "name of the ClusterTrustBundle", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -68646,86 +71103,12 @@ "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/certificates.k8s.io/v1beta1/watch/podcertificaterequests": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", + "name": "shardSelector", "type": "string", "uniqueItems": true }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -68742,38 +71125,7 @@ } ] }, - "/apis/coordination.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination" - ] - } - }, - "/apis/coordination.k8s.io/v1/": { + "/apis/certificates.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json" @@ -68801,137 +71153,17 @@ "https" ], "tags": [ - "coordination_v1" + "certificates_v1beta1" ] } }, - "/apis/coordination.k8s.io/v1/leases": { - "get": { + "/apis/certificates.k8s.io/v1beta1/clustertrustbundles": { + "delete": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind Lease", - "operationId": "listLeaseForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.LeaseList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" - } - }, - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of Lease", - "operationId": "deleteCollectionNamespacedLease", + "description": "delete collection of ClusterTrustBundle", + "operationId": "deleteCollectionClusterTrustBundle", "parameters": [ { "in": "body", @@ -69024,6 +71256,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -69053,13 +71292,13 @@ "https" ], "tags": [ - "coordination_v1" + "certificates_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -69067,8 +71306,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind Lease", - "operationId": "listNamespacedLease", + "description": "list or watch objects of kind ClusterTrustBundle", + "operationId": "listClusterTrustBundle", "parameters": [ { "description": "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.", @@ -69126,6 +71365,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -69154,7 +71400,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.LeaseList" + "$ref": "#/definitions/v1beta1.ClusterTrustBundleList" } }, "401": { @@ -69165,24 +71411,16 @@ "https" ], "tags": [ - "coordination_v1" + "certificates_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1beta1" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -69195,15 +71433,15 @@ "consumes": [ "application/json" ], - "description": "create a Lease", - "operationId": "createNamespacedLease", + "description": "create a ClusterTrustBundle", + "operationId": "createClusterTrustBundle", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, { @@ -69238,19 +71476,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "401": { @@ -69261,24 +71499,24 @@ "https" ], "tags": [ - "coordination_v1" + "certificates_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}": { + "/apis/certificates.k8s.io/v1beta1/clustertrustbundles/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a Lease", - "operationId": "deleteNamespacedLease", + "description": "delete a ClusterTrustBundle", + "operationId": "deleteClusterTrustBundle", "parameters": [ { "in": "body", @@ -69350,13 +71588,13 @@ "https" ], "tags": [ - "coordination_v1" + "certificates_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -69364,8 +71602,8 @@ "consumes": [ "application/json" ], - "description": "read the specified Lease", - "operationId": "readNamespacedLease", + "description": "read the specified ClusterTrustBundle", + "operationId": "readClusterTrustBundle", "produces": [ "application/json", "application/yaml", @@ -69376,7 +71614,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "401": { @@ -69387,32 +71625,24 @@ "https" ], "tags": [ - "coordination_v1" + "certificates_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the Lease", + "description": "name of the ClusterTrustBundle", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -69425,8 +71655,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified Lease", - "operationId": "patchNamespacedLease", + "description": "partially update the specified ClusterTrustBundle", + "operationId": "patchClusterTrustBundle", "parameters": [ { "in": "body", @@ -69475,13 +71705,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "401": { @@ -69492,13 +71722,13 @@ "https" ], "tags": [ - "coordination_v1" + "certificates_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -69506,15 +71736,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified Lease", - "operationId": "replaceNamespacedLease", + "description": "replace the specified ClusterTrustBundle", + "operationId": "replaceClusterTrustBundle", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, { @@ -69549,13 +71779,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Lease" + "$ref": "#/definitions/v1beta1.ClusterTrustBundle" } }, "401": { @@ -69566,571 +71796,159 @@ "https" ], "tags": [ - "coordination_v1" + "certificates_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "Lease", - "version": "v1" + "group": "certificates.k8s.io", + "kind": "ClusterTrustBundle", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/coordination.k8s.io/v1/watch/leases": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of PodCertificateRequest", + "operationId": "deleteCollectionNamespacedPodCertificateRequest", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the Lease", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/coordination.k8s.io/v1alpha2/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1alpha2" - ] - } - }, - "/apis/coordination.k8s.io/v1alpha2/leasecandidates": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listLeaseCandidateForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidateList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1alpha2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" - } - }, - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of LeaseCandidate", - "operationId": "deleteCollectionNamespacedLeaseCandidate", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1alpha2" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1beta1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -70138,8 +71956,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listNamespacedLeaseCandidate", + "description": "list or watch objects of kind PodCertificateRequest", + "operationId": "listNamespacedPodCertificateRequest", "parameters": [ { "description": "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.", @@ -70197,6 +72015,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -70225,7 +72050,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidateList" + "$ref": "#/definitions/v1beta1.PodCertificateRequestList" } }, "401": { @@ -70236,13 +72061,13 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" } }, "parameters": [ @@ -70266,15 +72091,15 @@ "consumes": [ "application/json" ], - "description": "create a LeaseCandidate", - "operationId": "createNamespacedLeaseCandidate", + "description": "create a PodCertificateRequest", + "operationId": "createNamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, { @@ -70309,19 +72134,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "401": { @@ -70332,24 +72157,24 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}": { + "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a LeaseCandidate", - "operationId": "deleteNamespacedLeaseCandidate", + "description": "delete a PodCertificateRequest", + "operationId": "deleteNamespacedPodCertificateRequest", "parameters": [ { "in": "body", @@ -70421,13 +72246,13 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -70435,8 +72260,8 @@ "consumes": [ "application/json" ], - "description": "read the specified LeaseCandidate", - "operationId": "readNamespacedLeaseCandidate", + "description": "read the specified PodCertificateRequest", + "operationId": "readNamespacedPodCertificateRequest", "produces": [ "application/json", "application/yaml", @@ -70447,7 +72272,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "401": { @@ -70458,18 +72283,18 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the LeaseCandidate", + "description": "name of the PodCertificateRequest", "in": "path", "name": "name", "required": true, @@ -70496,8 +72321,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified LeaseCandidate", - "operationId": "patchNamespacedLeaseCandidate", + "description": "partially update the specified PodCertificateRequest", + "operationId": "patchNamespacedPodCertificateRequest", "parameters": [ { "in": "body", @@ -70546,13 +72371,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "401": { @@ -70563,13 +72388,13 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -70577,15 +72402,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified LeaseCandidate", - "operationId": "replaceNamespacedLeaseCandidate", + "description": "replace the specified PodCertificateRequest", + "operationId": "replaceNamespacedPodCertificateRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, { @@ -70620,13 +72445,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha2.LeaseCandidate" + "$ref": "#/definitions/v1beta1.PodCertificateRequest" } }, "401": { @@ -70637,18 +72462,275 @@ "https" ], "tags": [ - "coordination_v1alpha2" + "certificates_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1alpha2" + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/coordination.k8s.io/v1alpha2/watch/leasecandidates": { + "/apis/certificates.k8s.io/v1beta1/namespaces/{namespace}/podcertificaterequests/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified PodCertificateRequest", + "operationId": "readNamespacedPodCertificateRequestStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodCertificateRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1beta1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" + } + }, + "parameters": [ + { + "description": "name of the PodCertificateRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified PodCertificateRequest", + "operationId": "patchNamespacedPodCertificateRequestStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodCertificateRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.PodCertificateRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1beta1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified PodCertificateRequest", + "operationId": "replaceNamespacedPodCertificateRequestStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta1.PodCertificateRequest" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodCertificateRequest" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta1.PodCertificateRequest" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1beta1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/certificates.k8s.io/v1beta1/podcertificaterequests": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind PodCertificateRequest", + "operationId": "listPodCertificateRequestForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.PodCertificateRequestList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "certificates_v1beta1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "certificates.k8s.io", + "kind": "PodCertificateRequest", + "version": "v1beta1" + } + }, "parameters": [ { "description": "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.", @@ -70713,6 +72795,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -70729,7 +72818,7 @@ } ] }, - "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates": { + "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles": { "parameters": [ { "description": "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.", @@ -70766,14 +72855,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -70802,6 +72883,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -70818,7 +72906,7 @@ } ] }, - "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates/{name}": { + "/apis/certificates.k8s.io/v1beta1/watch/clustertrustbundles/{name}": { "parameters": [ { "description": "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.", @@ -70856,13 +72944,101 @@ "uniqueItems": true }, { - "description": "name of the LeaseCandidate", + "description": "name of the ClusterTrustBundle", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -70899,6 +73075,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -70915,78 +73098,7 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1beta1" - ] - } - }, - "/apis/coordination.k8s.io/v1beta1/leasecandidates": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listLeaseCandidateForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidateList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "coordination_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" - } - }, + "/apis/certificates.k8s.io/v1beta1/watch/namespaces/{namespace}/podcertificaterequests/{name}": { "parameters": [ { "description": "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.", @@ -71023,6 +73135,22 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the PodCertificateRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -71051,6 +73179,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -71067,25 +73202,303 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of LeaseCandidate", - "operationId": "deleteCollectionNamespacedLeaseCandidate", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", + "/apis/certificates.k8s.io/v1beta1/watch/podcertificaterequests": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/coordination.k8s.io/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination" + ] + } + }, + "/apis/coordination.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ] + } + }, + "/apis/coordination.k8s.io/v1/leases": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind Lease", + "operationId": "listLeaseForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.LeaseList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "coordination_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "coordination.k8s.io", + "kind": "Lease", + "version": "v1" + } + }, + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of Lease", + "operationId": "deleteCollectionNamespacedLease", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, @@ -71166,6 +73579,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -71195,13 +73615,13 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -71209,8 +73629,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind LeaseCandidate", - "operationId": "listNamespacedLeaseCandidate", + "description": "list or watch objects of kind Lease", + "operationId": "listNamespacedLease", "parameters": [ { "description": "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.", @@ -71268,6 +73688,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -71296,7 +73723,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidateList" + "$ref": "#/definitions/v1.LeaseList" } }, "401": { @@ -71307,13 +73734,13 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" } }, "parameters": [ @@ -71337,15 +73764,15 @@ "consumes": [ "application/json" ], - "description": "create a LeaseCandidate", - "operationId": "createNamespacedLeaseCandidate", + "description": "create a Lease", + "operationId": "createNamespacedLease", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, { @@ -71380,19 +73807,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -71403,24 +73830,24 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}": { + "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a LeaseCandidate", - "operationId": "deleteNamespacedLeaseCandidate", + "description": "delete a Lease", + "operationId": "deleteNamespacedLease", "parameters": [ { "in": "body", @@ -71492,13 +73919,13 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -71506,8 +73933,8 @@ "consumes": [ "application/json" ], - "description": "read the specified LeaseCandidate", - "operationId": "readNamespacedLeaseCandidate", + "description": "read the specified Lease", + "operationId": "readNamespacedLease", "produces": [ "application/json", "application/yaml", @@ -71518,7 +73945,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -71529,18 +73956,18 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" } }, "parameters": [ { - "description": "name of the LeaseCandidate", + "description": "name of the Lease", "in": "path", "name": "name", "required": true, @@ -71567,8 +73994,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified LeaseCandidate", - "operationId": "patchNamespacedLeaseCandidate", + "description": "partially update the specified Lease", + "operationId": "patchNamespacedLease", "parameters": [ { "in": "body", @@ -71617,13 +74044,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -71634,13 +74061,13 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -71648,15 +74075,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified LeaseCandidate", - "operationId": "replaceNamespacedLeaseCandidate", + "description": "replace the specified Lease", + "operationId": "replaceNamespacedLease", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, { @@ -71691,13 +74118,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta1.LeaseCandidate" + "$ref": "#/definitions/v1.Lease" } }, "401": { @@ -71708,18 +74135,18 @@ "https" ], "tags": [ - "coordination_v1beta1" + "coordination_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "coordination.k8s.io", - "kind": "LeaseCandidate", - "version": "v1beta1" + "kind": "Lease", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/coordination.k8s.io/v1beta1/watch/leasecandidates": { + "/apis/coordination.k8s.io/v1/watch/leases": { "parameters": [ { "description": "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.", @@ -71784,6 +74211,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -71800,7 +74234,7 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates": { + "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { "parameters": [ { "description": "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.", @@ -71873,6 +74307,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -71889,7 +74330,7 @@ } ] }, - "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates/{name}": { + "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { "parameters": [ { "description": "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.", @@ -71927,7 +74368,7 @@ "uniqueItems": true }, { - "description": "name of the LeaseCandidate", + "description": "name of the Lease", "in": "path", "name": "name", "required": true, @@ -71970,6 +74411,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -71986,38 +74434,7 @@ } ] }, - "/apis/discovery.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "discovery" - ] - } - }, - "/apis/discovery.k8s.io/v1/": { + "/apis/coordination.k8s.io/v1alpha2/": { "get": { "consumes": [ "application/json" @@ -72045,17 +74462,17 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ] } }, - "/apis/discovery.k8s.io/v1/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/leasecandidates": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listEndpointSliceForAllNamespaces", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listLeaseCandidateForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -72069,7 +74486,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSliceList" + "$ref": "#/definitions/v1alpha2.LeaseCandidateList" } }, "401": { @@ -72080,13 +74497,13 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" } }, "parameters": [ @@ -72153,6 +74570,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -72169,13 +74593,13 @@ } ] }, - "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of EndpointSlice", - "operationId": "deleteCollectionNamespacedEndpointSlice", + "description": "delete collection of LeaseCandidate", + "operationId": "deleteCollectionNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -72268,6 +74692,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -72297,13 +74728,13 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" }, "x-codegen-request-body-name": "body" }, @@ -72311,8 +74742,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind EndpointSlice", - "operationId": "listNamespacedEndpointSlice", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listNamespacedLeaseCandidate", "parameters": [ { "description": "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.", @@ -72370,6 +74801,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -72398,7 +74836,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSliceList" + "$ref": "#/definitions/v1alpha2.LeaseCandidateList" } }, "401": { @@ -72409,13 +74847,13 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" } }, "parameters": [ @@ -72439,15 +74877,15 @@ "consumes": [ "application/json" ], - "description": "create an EndpointSlice", - "operationId": "createNamespacedEndpointSlice", + "description": "create a LeaseCandidate", + "operationId": "createNamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, { @@ -72482,19 +74920,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "401": { @@ -72505,24 +74943,24 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" }, "x-codegen-request-body-name": "body" } }, - "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}": { + "/apis/coordination.k8s.io/v1alpha2/namespaces/{namespace}/leasecandidates/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete an EndpointSlice", - "operationId": "deleteNamespacedEndpointSlice", + "description": "delete a LeaseCandidate", + "operationId": "deleteNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -72594,13 +75032,13 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" }, "x-codegen-request-body-name": "body" }, @@ -72608,8 +75046,8 @@ "consumes": [ "application/json" ], - "description": "read the specified EndpointSlice", - "operationId": "readNamespacedEndpointSlice", + "description": "read the specified LeaseCandidate", + "operationId": "readNamespacedLeaseCandidate", "produces": [ "application/json", "application/yaml", @@ -72620,7 +75058,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "401": { @@ -72631,18 +75069,18 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" } }, "parameters": [ { - "description": "name of the EndpointSlice", + "description": "name of the LeaseCandidate", "in": "path", "name": "name", "required": true, @@ -72669,8 +75107,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified EndpointSlice", - "operationId": "patchNamespacedEndpointSlice", + "description": "partially update the specified LeaseCandidate", + "operationId": "patchNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -72719,13 +75157,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "401": { @@ -72736,13 +75174,13 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" }, "x-codegen-request-body-name": "body" }, @@ -72750,15 +75188,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified EndpointSlice", - "operationId": "replaceNamespacedEndpointSlice", + "description": "replace the specified LeaseCandidate", + "operationId": "replaceNamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, { @@ -72793,13 +75231,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.EndpointSlice" + "$ref": "#/definitions/v1alpha2.LeaseCandidate" } }, "401": { @@ -72810,18 +75248,18 @@ "https" ], "tags": [ - "discovery_v1" + "coordination_v1alpha2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "discovery.k8s.io", - "kind": "EndpointSlice", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1alpha2" }, "x-codegen-request-body-name": "body" } }, - "/apis/discovery.k8s.io/v1/watch/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/watch/leasecandidates": { "parameters": [ { "description": "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.", @@ -72886,6 +75324,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -72902,7 +75347,7 @@ } ] }, - "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices": { + "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates": { "parameters": [ { "description": "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.", @@ -72975,6 +75420,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -72991,7 +75443,7 @@ } ] }, - "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}": { + "/apis/coordination.k8s.io/v1alpha2/watch/namespaces/{namespace}/leasecandidates/{name}": { "parameters": [ { "description": "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.", @@ -73029,7 +75481,7 @@ "uniqueItems": true }, { - "description": "name of the EndpointSlice", + "description": "name of the LeaseCandidate", "in": "path", "name": "name", "required": true, @@ -73072,6 +75524,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -73088,38 +75547,7 @@ } ] }, - "/apis/events.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "events" - ] - } - }, - "/apis/events.k8s.io/v1/": { + "/apis/coordination.k8s.io/v1beta1/": { "get": { "consumes": [ "application/json" @@ -73147,17 +75575,17 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ] } }, - "/apis/events.k8s.io/v1/events": { + "/apis/coordination.k8s.io/v1beta1/leasecandidates": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind Event", - "operationId": "listEventForAllNamespaces", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listLeaseCandidateForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -73171,7 +75599,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.EventList" + "$ref": "#/definitions/v1beta1.LeaseCandidateList" } }, "401": { @@ -73182,13 +75610,13 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" } }, "parameters": [ @@ -73255,6 +75683,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -73271,13 +75706,13 @@ } ] }, - "/apis/events.k8s.io/v1/namespaces/{namespace}/events": { + "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of Event", - "operationId": "deleteCollectionNamespacedEvent", + "description": "delete collection of LeaseCandidate", + "operationId": "deleteCollectionNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -73370,6 +75805,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -73399,13 +75841,13 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -73413,8 +75855,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind Event", - "operationId": "listNamespacedEvent", + "description": "list or watch objects of kind LeaseCandidate", + "operationId": "listNamespacedLeaseCandidate", "parameters": [ { "description": "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.", @@ -73472,6 +75914,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -73500,7 +75949,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.EventList" + "$ref": "#/definitions/v1beta1.LeaseCandidateList" } }, "401": { @@ -73511,13 +75960,13 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" } }, "parameters": [ @@ -73541,15 +75990,15 @@ "consumes": [ "application/json" ], - "description": "create an Event", - "operationId": "createNamespacedEvent", + "description": "create a LeaseCandidate", + "operationId": "createNamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, { @@ -73584,19 +76033,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "401": { @@ -73607,24 +76056,24 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}": { + "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leasecandidates/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete an Event", - "operationId": "deleteNamespacedEvent", + "description": "delete a LeaseCandidate", + "operationId": "deleteNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -73696,13 +76145,13 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -73710,8 +76159,8 @@ "consumes": [ "application/json" ], - "description": "read the specified Event", - "operationId": "readNamespacedEvent", + "description": "read the specified LeaseCandidate", + "operationId": "readNamespacedLeaseCandidate", "produces": [ "application/json", "application/yaml", @@ -73722,7 +76171,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "401": { @@ -73733,18 +76182,18 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" } }, "parameters": [ { - "description": "name of the Event", + "description": "name of the LeaseCandidate", "in": "path", "name": "name", "required": true, @@ -73771,8 +76220,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified Event", - "operationId": "patchNamespacedEvent", + "description": "partially update the specified LeaseCandidate", + "operationId": "patchNamespacedLeaseCandidate", "parameters": [ { "in": "body", @@ -73821,13 +76270,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "401": { @@ -73838,13 +76287,13 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" }, @@ -73852,15 +76301,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified Event", - "operationId": "replaceNamespacedEvent", + "description": "replace the specified LeaseCandidate", + "operationId": "replaceNamespacedLeaseCandidate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, { @@ -73895,13 +76344,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/events.v1.Event" + "$ref": "#/definitions/v1beta1.LeaseCandidate" } }, "401": { @@ -73912,18 +76361,18 @@ "https" ], "tags": [ - "events_v1" + "coordination_v1beta1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "events.k8s.io", - "kind": "Event", - "version": "v1" + "group": "coordination.k8s.io", + "kind": "LeaseCandidate", + "version": "v1beta1" }, "x-codegen-request-body-name": "body" } }, - "/apis/events.k8s.io/v1/watch/events": { + "/apis/coordination.k8s.io/v1beta1/watch/leasecandidates": { "parameters": [ { "description": "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.", @@ -73988,6 +76437,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -74004,7 +76460,7 @@ } ] }, - "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events": { + "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates": { "parameters": [ { "description": "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.", @@ -74077,6 +76533,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -74093,7 +76556,7 @@ } ] }, - "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}": { + "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leasecandidates/{name}": { "parameters": [ { "description": "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.", @@ -74131,7 +76594,7 @@ "uniqueItems": true }, { - "description": "name of the Event", + "description": "name of the LeaseCandidate", "in": "path", "name": "name", "required": true, @@ -74174,6 +76637,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -74190,7 +76660,7 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/": { + "/apis/discovery.k8s.io/": { "get": { "consumes": [ "application/json" @@ -74217,11 +76687,11 @@ "https" ], "tags": [ - "flowcontrolApiserver" + "discovery" ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/": { + "/apis/discovery.k8s.io/v1/": { "get": { "consumes": [ "application/json" @@ -74249,17 +76719,144 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ] } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas": { + "/apis/discovery.k8s.io/v1/endpointslices": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind EndpointSlice", + "operationId": "listEndpointSliceForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.EndpointSliceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "discovery_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "discovery.k8s.io", + "kind": "EndpointSlice", + "version": "v1" + } + }, + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of FlowSchema", - "operationId": "deleteCollectionFlowSchema", + "description": "delete collection of EndpointSlice", + "operationId": "deleteCollectionNamespacedEndpointSlice", "parameters": [ { "in": "body", @@ -74352,6 +76949,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -74381,12 +76985,12 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -74395,8 +76999,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind FlowSchema", - "operationId": "listFlowSchema", + "description": "list or watch objects of kind EndpointSlice", + "operationId": "listNamespacedEndpointSlice", "parameters": [ { "description": "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.", @@ -74454,6 +77058,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -74482,7 +77093,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchemaList" + "$ref": "#/definitions/v1.EndpointSliceList" } }, "401": { @@ -74493,16 +77104,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -74515,15 +77134,15 @@ "consumes": [ "application/json" ], - "description": "create a FlowSchema", - "operationId": "createFlowSchema", + "description": "create an EndpointSlice", + "operationId": "createNamespacedEndpointSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, { @@ -74558,19 +77177,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -74581,24 +77200,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}": { + "/apis/discovery.k8s.io/v1/namespaces/{namespace}/endpointslices/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a FlowSchema", - "operationId": "deleteFlowSchema", + "description": "delete an EndpointSlice", + "operationId": "deleteNamespacedEndpointSlice", "parameters": [ { "in": "body", @@ -74670,12 +77289,12 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -74684,8 +77303,8 @@ "consumes": [ "application/json" ], - "description": "read the specified FlowSchema", - "operationId": "readFlowSchema", + "description": "read the specified EndpointSlice", + "operationId": "readNamespacedEndpointSlice", "produces": [ "application/json", "application/yaml", @@ -74696,7 +77315,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -74707,24 +77326,32 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" } }, "parameters": [ { - "description": "name of the FlowSchema", + "description": "name of the EndpointSlice", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -74737,8 +77364,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified FlowSchema", - "operationId": "patchFlowSchema", + "description": "partially update the specified EndpointSlice", + "operationId": "patchNamespacedEndpointSlice", "parameters": [ { "in": "body", @@ -74787,13 +77414,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -74804,12 +77431,12 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -74818,15 +77445,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified FlowSchema", - "operationId": "replaceFlowSchema", + "description": "replace the specified EndpointSlice", + "operationId": "replaceNamespacedEndpointSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, { @@ -74861,13 +77488,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.EndpointSlice" } }, "401": { @@ -74878,115 +77505,343 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "discovery_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", + "group": "discovery.k8s.io", + "kind": "EndpointSlice", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status": { - "get": { - "consumes": [ - "application/json" - ], - "description": "read status of the specified FlowSchema", - "operationId": "readFlowSchemaStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.FlowSchema" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/discovery.k8s.io/v1/watch/endpointslices": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1" + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices": { "parameters": [ { - "description": "name of the FlowSchema", + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/discovery.k8s.io/v1/watch/namespaces/{namespace}/endpointslices/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the EndpointSlice", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "patch": { + ] + }, + "/apis/events.k8s.io/": { + "get": { "consumes": [ "application/json" ], - "description": "partially update status of the specified FlowSchema", - "operationId": "patchFlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v1.Patch" + "$ref": "#/definitions/v1.APIGroup" } }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true + "401": { + "description": "Unauthorized" } + }, + "schemes": [ + "https" + ], + "tags": [ + "events" + ] + } + }, + "/apis/events.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json" ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -74997,13 +77852,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -75014,70 +77863,31 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { + "events_v1" + ] + } + }, + "/apis/events.k8s.io/v1/events": { + "get": { "consumes": [ "application/json" ], - "description": "replace status of the specified FlowSchema", - "operationId": "replaceFlowSchemaStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.FlowSchema" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], + "description": "list or watch objects of kind Event", + "operationId": "listEventForAllNamespaces", "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.FlowSchema" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.FlowSchema" + "$ref": "#/definitions/events.v1.EventList" } }, "401": { @@ -75088,24 +77898,109 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "events_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "FlowSchema", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" + } + }, + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations": { + "/apis/events.k8s.io/v1/namespaces/{namespace}/events": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of PriorityLevelConfiguration", - "operationId": "deleteCollectionPriorityLevelConfiguration", + "description": "delete collection of Event", + "operationId": "deleteCollectionNamespacedEvent", "parameters": [ { "in": "body", @@ -75198,6 +78093,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -75227,12 +78129,12 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "events_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -75241,8 +78143,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind PriorityLevelConfiguration", - "operationId": "listPriorityLevelConfiguration", + "description": "list or watch objects of kind Event", + "operationId": "listNamespacedEvent", "parameters": [ { "description": "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.", @@ -75300,6 +78202,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -75328,7 +78237,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfigurationList" + "$ref": "#/definitions/events.v1.EventList" } }, "401": { @@ -75339,16 +78248,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "events_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -75361,15 +78278,15 @@ "consumes": [ "application/json" ], - "description": "create a PriorityLevelConfiguration", - "operationId": "createPriorityLevelConfiguration", + "description": "create an Event", + "operationId": "createNamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, { @@ -75404,19 +78321,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -75427,24 +78344,24 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "events_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}": { + "/apis/events.k8s.io/v1/namespaces/{namespace}/events/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a PriorityLevelConfiguration", - "operationId": "deletePriorityLevelConfiguration", + "description": "delete an Event", + "operationId": "deleteNamespacedEvent", "parameters": [ { "in": "body", @@ -75516,12 +78433,12 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "events_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -75530,8 +78447,8 @@ "consumes": [ "application/json" ], - "description": "read the specified PriorityLevelConfiguration", - "operationId": "readPriorityLevelConfiguration", + "description": "read the specified Event", + "operationId": "readNamespacedEvent", "produces": [ "application/json", "application/yaml", @@ -75542,7 +78459,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -75553,18 +78470,18 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "events_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" } }, "parameters": [ { - "description": "name of the PriorityLevelConfiguration", + "description": "name of the Event", "in": "path", "name": "name", "required": true, @@ -75572,211 +78489,9 @@ "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfiguration", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1" - }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status": { - "get": { - "consumes": [ - "application/json" - ], - "description": "read status of the specified PriorityLevelConfiguration", - "operationId": "readPriorityLevelConfigurationStatus", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "flowcontrolApiserver_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", - "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the PriorityLevelConfiguration", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -75793,8 +78508,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified PriorityLevelConfiguration", - "operationId": "patchPriorityLevelConfigurationStatus", + "description": "partially update the specified Event", + "operationId": "patchNamespacedEvent", "parameters": [ { "in": "body", @@ -75843,13 +78558,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -75860,12 +78575,12 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "events_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -75874,15 +78589,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified PriorityLevelConfiguration", - "operationId": "replacePriorityLevelConfigurationStatus", + "description": "replace the specified Event", + "operationId": "replaceNamespacedEvent", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, { @@ -75917,13 +78632,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PriorityLevelConfiguration" + "$ref": "#/definitions/events.v1.Event" } }, "401": { @@ -75934,18 +78649,18 @@ "https" ], "tags": [ - "flowcontrolApiserver_v1" + "events_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "flowcontrol.apiserver.k8s.io", - "kind": "PriorityLevelConfiguration", + "group": "events.k8s.io", + "kind": "Event", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas": { + "/apis/events.k8s.io/v1/watch/events": { "parameters": [ { "description": "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.", @@ -76010,6 +78725,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -76026,7 +78748,7 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}": { + "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events": { "parameters": [ { "description": "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.", @@ -76064,9 +78786,9 @@ "uniqueItems": true }, { - "description": "name of the FlowSchema", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -76099,6 +78821,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -76115,7 +78844,7 @@ } ] }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations": { + "/apis/events.k8s.io/v1/watch/namespaces/{namespace}/events/{name}": { "parameters": [ { "description": "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.", @@ -76153,90 +78882,17 @@ "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "name of the Event", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PriorityLevelConfiguration", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -76269,6 +78925,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -76285,7 +78948,7 @@ } ] }, - "/apis/internal.apiserver.k8s.io/": { + "/apis/flowcontrol.apiserver.k8s.io/": { "get": { "consumes": [ "application/json" @@ -76312,11 +78975,11 @@ "https" ], "tags": [ - "internalApiserver" + "flowcontrolApiserver" ] } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/": { + "/apis/flowcontrol.apiserver.k8s.io/v1/": { "get": { "consumes": [ "application/json" @@ -76344,17 +79007,17 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ] } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of StorageVersion", - "operationId": "deleteCollectionStorageVersion", + "description": "delete collection of FlowSchema", + "operationId": "deleteCollectionFlowSchema", "parameters": [ { "in": "body", @@ -76447,6 +79110,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -76476,13 +79146,13 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -76490,8 +79160,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind StorageVersion", - "operationId": "listStorageVersion", + "description": "list or watch objects of kind FlowSchema", + "operationId": "listFlowSchema", "parameters": [ { "description": "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.", @@ -76549,6 +79219,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -76577,7 +79254,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersionList" + "$ref": "#/definitions/v1.FlowSchemaList" } }, "401": { @@ -76588,13 +79265,13 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" } }, "parameters": [ @@ -76610,15 +79287,15 @@ "consumes": [ "application/json" ], - "description": "create a StorageVersion", - "operationId": "createStorageVersion", + "description": "create a FlowSchema", + "operationId": "createFlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, { @@ -76653,19 +79330,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -76676,24 +79353,24 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a StorageVersion", - "operationId": "deleteStorageVersion", + "description": "delete a FlowSchema", + "operationId": "deleteFlowSchema", "parameters": [ { "in": "body", @@ -76765,13 +79442,13 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -76779,8 +79456,8 @@ "consumes": [ "application/json" ], - "description": "read the specified StorageVersion", - "operationId": "readStorageVersion", + "description": "read the specified FlowSchema", + "operationId": "readFlowSchema", "produces": [ "application/json", "application/yaml", @@ -76791,7 +79468,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -76802,18 +79479,18 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" } }, "parameters": [ { - "description": "name of the StorageVersion", + "description": "name of the FlowSchema", "in": "path", "name": "name", "required": true, @@ -76832,8 +79509,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified StorageVersion", - "operationId": "patchStorageVersion", + "description": "partially update the specified FlowSchema", + "operationId": "patchFlowSchema", "parameters": [ { "in": "body", @@ -76882,13 +79559,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -76899,13 +79576,13 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -76913,15 +79590,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified StorageVersion", - "operationId": "replaceStorageVersion", + "description": "replace the specified FlowSchema", + "operationId": "replaceFlowSchema", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, { @@ -76956,13 +79633,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -76973,24 +79650,24 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status": { + "/apis/flowcontrol.apiserver.k8s.io/v1/flowschemas/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified StorageVersion", - "operationId": "readStorageVersionStatus", + "description": "read status of the specified FlowSchema", + "operationId": "readFlowSchemaStatus", "produces": [ "application/json", "application/yaml", @@ -77001,7 +79678,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -77012,18 +79689,18 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" } }, "parameters": [ { - "description": "name of the StorageVersion", + "description": "name of the FlowSchema", "in": "path", "name": "name", "required": true, @@ -77042,8 +79719,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified StorageVersion", - "operationId": "patchStorageVersionStatus", + "description": "partially update status of the specified FlowSchema", + "operationId": "patchFlowSchemaStatus", "parameters": [ { "in": "body", @@ -77092,13 +79769,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -77109,13 +79786,13 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" }, "x-codegen-request-body-name": "body" }, @@ -77123,15 +79800,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified StorageVersion", - "operationId": "replaceStorageVersionStatus", + "description": "replace status of the specified FlowSchema", + "operationId": "replaceFlowSchemaStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, { @@ -77166,13 +79843,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.StorageVersion" + "$ref": "#/definitions/v1.FlowSchema" } }, "401": { @@ -77183,257 +79860,24 @@ "https" ], "tags": [ - "internalApiserver_v1alpha1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "internal.apiserver.k8s.io", - "kind": "StorageVersion", - "version": "v1alpha1" + "group": "flowcontrol.apiserver.k8s.io", + "kind": "FlowSchema", + "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the StorageVersion", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking" - ] - } - }, - "/apis/networking.k8s.io/v1/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ] - } - }, - "/apis/networking.k8s.io/v1/ingressclasses": { + "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of IngressClass", - "operationId": "deleteCollectionIngressClass", + "description": "delete collection of PriorityLevelConfiguration", + "operationId": "deleteCollectionPriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -77526,6 +79970,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -77555,12 +80006,12 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -77569,8 +80020,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind IngressClass", - "operationId": "listIngressClass", + "description": "list or watch objects of kind PriorityLevelConfiguration", + "operationId": "listPriorityLevelConfiguration", "parameters": [ { "description": "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.", @@ -77628,6 +80079,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -77656,7 +80114,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClassList" + "$ref": "#/definitions/v1.PriorityLevelConfigurationList" } }, "401": { @@ -77667,12 +80125,12 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" } }, @@ -77689,15 +80147,15 @@ "consumes": [ "application/json" ], - "description": "create an IngressClass", - "operationId": "createIngressClass", + "description": "create a PriorityLevelConfiguration", + "operationId": "createPriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, { @@ -77732,19 +80190,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -77755,24 +80213,24 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/ingressclasses/{name}": { + "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete an IngressClass", - "operationId": "deleteIngressClass", + "description": "delete a PriorityLevelConfiguration", + "operationId": "deletePriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -77844,12 +80302,12 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -77858,8 +80316,8 @@ "consumes": [ "application/json" ], - "description": "read the specified IngressClass", - "operationId": "readIngressClass", + "description": "read the specified PriorityLevelConfiguration", + "operationId": "readPriorityLevelConfiguration", "produces": [ "application/json", "application/yaml", @@ -77870,7 +80328,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -77881,18 +80339,18 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" } }, "parameters": [ { - "description": "name of the IngressClass", + "description": "name of the PriorityLevelConfiguration", "in": "path", "name": "name", "required": true, @@ -77911,8 +80369,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified IngressClass", - "operationId": "patchIngressClass", + "description": "partially update the specified PriorityLevelConfiguration", + "operationId": "patchPriorityLevelConfiguration", "parameters": [ { "in": "body", @@ -77961,13 +80419,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -77978,12 +80436,12 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -77992,15 +80450,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified IngressClass", - "operationId": "replaceIngressClass", + "description": "replace the specified PriorityLevelConfiguration", + "operationId": "replacePriorityLevelConfiguration", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, { @@ -78035,13 +80493,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.IngressClass" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -78052,38 +80510,35 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IngressClass", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/ingresses": { + "/apis/flowcontrol.apiserver.k8s.io/v1/prioritylevelconfigurations/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind Ingress", - "operationId": "listIngressForAllNamespaces", + "description": "read status of the specified PriorityLevelConfiguration", + "operationId": "readPriorityLevelConfigurationStatus", "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" + "application/cbor" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressList" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -78094,117 +80549,47 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], - "x-kubernetes-action": "list", + "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" } }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/networking.k8s.io/v1/ipaddresses": { - "delete": { + ], + "patch": { "consumes": [ "application/json" ], - "description": "delete collection of IPAddress", - "operationId": "deleteCollectionIPAddress", + "description": "partially update status of the specified PriorityLevelConfiguration", + "operationId": "patchPriorityLevelConfigurationStatus", "parameters": [ { "in": "body", "name": "body", + "required": true, "schema": { - "$ref": "#/definitions/v1.DeleteOptions" + "$ref": "#/definitions/v1.Patch" } }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, { "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", @@ -78213,94 +80598,44 @@ "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", "in": "query", - "name": "fieldSelector", + "name": "fieldManager", "type": "string", "uniqueItems": true }, { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", "in": "query", - "name": "labelSelector", + "name": "fieldValidation", "type": "string", "uniqueItems": true }, { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", "in": "query", - "name": "orphanDependents", + "name": "force", "type": "boolean", "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PriorityLevelConfiguration" + } }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", + "201": { + "description": "Created", "schema": { - "$ref": "#/definitions/v1.Status" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -78311,149 +80646,29 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], - "x-kubernetes-action": "deletecollection", + "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" }, "x-codegen-request-body-name": "body" }, - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind IPAddress", - "operationId": "listIPAddress", - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.IPAddressList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" - } - }, - "parameters": [ - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "post": { + "put": { "consumes": [ "application/json" ], - "description": "create an IPAddress", - "operationId": "createIPAddress", + "description": "replace status of the specified PriorityLevelConfiguration", + "operationId": "replacePriorityLevelConfigurationStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.IPAddress" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, { @@ -78488,19 +80703,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IPAddress" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.IPAddress" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.IPAddress" + "$ref": "#/definitions/v1.PriorityLevelConfiguration" } }, "401": { @@ -78511,144 +80720,144 @@ "https" ], "tags": [ - "networking_v1" + "flowcontrolApiserver_v1" ], - "x-kubernetes-action": "post", + "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", + "group": "flowcontrol.apiserver.k8s.io", + "kind": "PriorityLevelConfiguration", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/ipaddresses/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete an IPAddress", - "operationId": "deleteIPAddress", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified IPAddress", - "operationId": "readIPAddress", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.IPAddress" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/flowschemas/{name}": { "parameters": [ { - "description": "name of the IPAddress", + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the FlowSchema", "in": "path", "name": "name", "required": true, @@ -78661,126 +80870,273 @@ "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified IPAddress", - "operationId": "patchIPAddress", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.IPAddress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.IPAddress" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/flowcontrol.apiserver.k8s.io/v1/watch/prioritylevelconfigurations/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the PriorityLevelConfiguration", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/internal.apiserver.k8s.io/": { + "get": { "consumes": [ "application/json" ], - "description": "replace the specified IPAddress", - "operationId": "replaceIPAddress", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", "schema": { - "$ref": "#/definitions/v1.IPAddress" + "$ref": "#/definitions/v1.APIGroup" } }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true + "401": { + "description": "Unauthorized" } + }, + "schemes": [ + "https" + ], + "tags": [ + "internalApiserver" + ] + } + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/": { + "get": { + "consumes": [ + "application/json" ], + "description": "get available resources", + "operationId": "getAPIResources", "produces": [ "application/json", "application/yaml", @@ -78791,13 +81147,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IPAddress" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.IPAddress" + "$ref": "#/definitions/v1.APIResourceList" } }, "401": { @@ -78808,24 +81158,17 @@ "https" ], "tags": [ - "networking_v1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "IPAddress", - "version": "v1" - }, - "x-codegen-request-body-name": "body" + "internalApiserver_v1alpha1" + ] } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of Ingress", - "operationId": "deleteCollectionNamespacedIngress", + "description": "delete collection of StorageVersion", + "operationId": "deleteCollectionStorageVersion", "parameters": [ { "in": "body", @@ -78918,6 +81261,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -78947,13 +81297,13 @@ "https" ], "tags": [ - "networking_v1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -78961,8 +81311,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind Ingress", - "operationId": "listNamespacedIngress", + "description": "list or watch objects of kind StorageVersion", + "operationId": "listStorageVersion", "parameters": [ { "description": "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.", @@ -79020,6 +81370,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -79048,7 +81405,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.IngressList" + "$ref": "#/definitions/v1alpha1.StorageVersionList" } }, "401": { @@ -79059,24 +81416,16 @@ "https" ], "tags": [ - "networking_v1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -79089,15 +81438,15 @@ "consumes": [ "application/json" ], - "description": "create an Ingress", - "operationId": "createNamespacedIngress", + "description": "create a StorageVersion", + "operationId": "createStorageVersion", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, { @@ -79132,19 +81481,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -79155,24 +81504,24 @@ "https" ], "tags": [ - "networking_v1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete an Ingress", - "operationId": "deleteNamespacedIngress", + "description": "delete a StorageVersion", + "operationId": "deleteStorageVersion", "parameters": [ { "in": "body", @@ -79244,13 +81593,13 @@ "https" ], "tags": [ - "networking_v1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -79258,8 +81607,8 @@ "consumes": [ "application/json" ], - "description": "read the specified Ingress", - "operationId": "readNamespacedIngress", + "description": "read the specified StorageVersion", + "operationId": "readStorageVersion", "produces": [ "application/json", "application/yaml", @@ -79270,7 +81619,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -79281,32 +81630,24 @@ "https" ], "tags": [ - "networking_v1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the Ingress", + "description": "name of the StorageVersion", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -79319,8 +81660,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified Ingress", - "operationId": "patchNamespacedIngress", + "description": "partially update the specified StorageVersion", + "operationId": "patchStorageVersion", "parameters": [ { "in": "body", @@ -79369,13 +81710,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -79386,13 +81727,13 @@ "https" ], "tags": [ - "networking_v1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -79400,15 +81741,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified Ingress", - "operationId": "replaceNamespacedIngress", + "description": "replace the specified StorageVersion", + "operationId": "replaceStorageVersion", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, { @@ -79443,13 +81784,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -79460,24 +81801,24 @@ "https" ], "tags": [ - "networking_v1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status": { + "/apis/internal.apiserver.k8s.io/v1alpha1/storageversions/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified Ingress", - "operationId": "readNamespacedIngressStatus", + "description": "read status of the specified StorageVersion", + "operationId": "readStorageVersionStatus", "produces": [ "application/json", "application/yaml", @@ -79488,7 +81829,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -79499,32 +81840,24 @@ "https" ], "tags": [ - "networking_v1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" } }, "parameters": [ { - "description": "name of the Ingress", + "description": "name of the StorageVersion", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -79537,8 +81870,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified Ingress", - "operationId": "patchNamespacedIngressStatus", + "description": "partially update status of the specified StorageVersion", + "operationId": "patchStorageVersionStatus", "parameters": [ { "in": "body", @@ -79587,13 +81920,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -79604,13 +81937,13 @@ "https" ], "tags": [ - "networking_v1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" }, @@ -79618,15 +81951,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified Ingress", - "operationId": "replaceNamespacedIngressStatus", + "description": "replace status of the specified StorageVersion", + "operationId": "replaceStorageVersionStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, { @@ -79661,13 +81994,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.Ingress" + "$ref": "#/definitions/v1alpha1.StorageVersion" } }, "401": { @@ -79678,24 +82011,271 @@ "https" ], "tags": [ - "networking_v1" + "internalApiserver_v1alpha1" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { - "group": "networking.k8s.io", - "kind": "Ingress", - "version": "v1" + "group": "internal.apiserver.k8s.io", + "kind": "StorageVersion", + "version": "v1alpha1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { - "delete": { - "consumes": [ - "application/json" + "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/internal.apiserver.k8s.io/v1alpha1/watch/storageversions/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the StorageVersion", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/": { + "get": { + "consumes": [ + "application/json" ], - "description": "delete collection of NetworkPolicy", - "operationId": "deleteCollectionNamespacedNetworkPolicy", + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking" + ] + } + }, + "/apis/networking.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ] + } + }, + "/apis/networking.k8s.io/v1/ingressclasses": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of IngressClass", + "operationId": "deleteCollectionIngressClass", "parameters": [ { "in": "body", @@ -79788,6 +82368,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -79822,7 +82409,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "kind": "IngressClass", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -79831,8 +82418,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNamespacedNetworkPolicy", + "description": "list or watch objects of kind IngressClass", + "operationId": "listIngressClass", "parameters": [ { "description": "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.", @@ -79890,6 +82477,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -79918,7 +82512,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicyList" + "$ref": "#/definitions/v1.IngressClassList" } }, "401": { @@ -79934,19 +82528,11 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "kind": "IngressClass", "version": "v1" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -79959,15 +82545,15 @@ "consumes": [ "application/json" ], - "description": "create a NetworkPolicy", - "operationId": "createNamespacedNetworkPolicy", + "description": "create an IngressClass", + "operationId": "createIngressClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.IngressClass" } }, { @@ -80002,19 +82588,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.IngressClass" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -80030,19 +82616,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "kind": "IngressClass", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { + "/apis/networking.k8s.io/v1/ingressclasses/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a NetworkPolicy", - "operationId": "deleteNamespacedNetworkPolicy", + "description": "delete an IngressClass", + "operationId": "deleteIngressClass", "parameters": [ { "in": "body", @@ -80119,7 +82705,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "kind": "IngressClass", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -80128,8 +82714,8 @@ "consumes": [ "application/json" ], - "description": "read the specified NetworkPolicy", - "operationId": "readNamespacedNetworkPolicy", + "description": "read the specified IngressClass", + "operationId": "readIngressClass", "produces": [ "application/json", "application/yaml", @@ -80140,7 +82726,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -80156,27 +82742,19 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "kind": "IngressClass", "version": "v1" } }, "parameters": [ { - "description": "name of the NetworkPolicy", + "description": "name of the IngressClass", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -80189,8 +82767,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified NetworkPolicy", - "operationId": "patchNamespacedNetworkPolicy", + "description": "partially update the specified IngressClass", + "operationId": "patchIngressClass", "parameters": [ { "in": "body", @@ -80239,13 +82817,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -80261,7 +82839,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "kind": "IngressClass", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -80270,15 +82848,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified NetworkPolicy", - "operationId": "replaceNamespacedNetworkPolicy", + "description": "replace the specified IngressClass", + "operationId": "replaceIngressClass", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.IngressClass" } }, { @@ -80313,13 +82891,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.IngressClass" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.NetworkPolicy" + "$ref": "#/definitions/v1.IngressClass" } }, "401": { @@ -80335,19 +82913,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "kind": "IngressClass", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/networkpolicies": { + "/apis/networking.k8s.io/v1/ingresses": { "get": { "consumes": [ "application/json" ], - "description": "list or watch objects of kind NetworkPolicy", - "operationId": "listNetworkPolicyForAllNamespaces", + "description": "list or watch objects of kind Ingress", + "operationId": "listIngressForAllNamespaces", "produces": [ "application/json", "application/yaml", @@ -80361,7 +82939,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.NetworkPolicyList" + "$ref": "#/definitions/v1.IngressList" } }, "401": { @@ -80377,7 +82955,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "NetworkPolicy", + "kind": "Ingress", "version": "v1" } }, @@ -80445,6 +83023,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -80461,13 +83046,13 @@ } ] }, - "/apis/networking.k8s.io/v1/servicecidrs": { + "/apis/networking.k8s.io/v1/ipaddresses": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ServiceCIDR", - "operationId": "deleteCollectionServiceCIDR", + "description": "delete collection of IPAddress", + "operationId": "deleteCollectionIPAddress", "parameters": [ { "in": "body", @@ -80560,6 +83145,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -80594,7 +83186,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", + "kind": "IPAddress", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -80603,8 +83195,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ServiceCIDR", - "operationId": "listServiceCIDR", + "description": "list or watch objects of kind IPAddress", + "operationId": "listIPAddress", "parameters": [ { "description": "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.", @@ -80662,6 +83254,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -80690,7 +83289,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDRList" + "$ref": "#/definitions/v1.IPAddressList" } }, "401": { @@ -80706,7 +83305,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", + "kind": "IPAddress", "version": "v1" } }, @@ -80723,15 +83322,15 @@ "consumes": [ "application/json" ], - "description": "create a ServiceCIDR", - "operationId": "createServiceCIDR", + "description": "create an IPAddress", + "operationId": "createIPAddress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, { @@ -80766,19 +83365,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "401": { @@ -80794,19 +83393,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", + "kind": "IPAddress", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/servicecidrs/{name}": { + "/apis/networking.k8s.io/v1/ipaddresses/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ServiceCIDR", - "operationId": "deleteServiceCIDR", + "description": "delete an IPAddress", + "operationId": "deleteIPAddress", "parameters": [ { "in": "body", @@ -80883,7 +83482,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", + "kind": "IPAddress", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -80892,8 +83491,8 @@ "consumes": [ "application/json" ], - "description": "read the specified ServiceCIDR", - "operationId": "readServiceCIDR", + "description": "read the specified IPAddress", + "operationId": "readIPAddress", "produces": [ "application/json", "application/yaml", @@ -80904,7 +83503,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "401": { @@ -80920,13 +83519,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", + "kind": "IPAddress", "version": "v1" } }, "parameters": [ { - "description": "name of the ServiceCIDR", + "description": "name of the IPAddress", "in": "path", "name": "name", "required": true, @@ -80945,8 +83544,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified ServiceCIDR", - "operationId": "patchServiceCIDR", + "description": "partially update the specified IPAddress", + "operationId": "patchIPAddress", "parameters": [ { "in": "body", @@ -80995,13 +83594,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "401": { @@ -81017,7 +83616,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", + "kind": "IPAddress", "version": "v1" }, "x-codegen-request-body-name": "body" @@ -81026,15 +83625,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified ServiceCIDR", - "operationId": "replaceServiceCIDR", + "description": "replace the specified IPAddress", + "operationId": "replaceIPAddress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, { @@ -81069,13 +83668,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1.IPAddress" } }, "401": { @@ -81091,19 +83690,126 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", + "kind": "IPAddress", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/servicecidrs/{name}/status": { - "get": { + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses": { + "delete": { "consumes": [ "application/json" ], - "description": "read status of the specified ServiceCIDR", - "operationId": "readServiceCIDRStatus", + "description": "delete collection of Ingress", + "operationId": "deleteCollectionNamespacedIngress", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -81114,7 +83820,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1.Status" } }, "401": { @@ -81127,70 +83833,95 @@ "tags": [ "networking_v1" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", + "kind": "Ingress", "version": "v1" - } - }, - "parameters": [ - { - "description": "name of the ServiceCIDR", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - } - ], - "patch": { + "x-codegen-request-body-name": "body" + }, + "get": { "consumes": [ "application/json" ], - "description": "partially update status of the specified ServiceCIDR", - "operationId": "patchServiceCIDRStatus", + "description": "list or watch objects of kind Ingress", + "operationId": "listNamespacedIngress", "parameters": [ { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "description": "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\".\n\nThis 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.", "in": "query", - "name": "dryRun", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "fieldManager", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "fieldValidation", + "name": "labelSelector", "type": "string", "uniqueItems": true }, { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "description": "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.\n\nThe 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.", "in": "query", - "name": "force", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", "type": "boolean", "uniqueItems": true } @@ -81199,19 +83930,16 @@ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1.IngressList" } }, "401": { @@ -81224,27 +83952,43 @@ "tags": [ "networking_v1" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", + "kind": "Ingress", "version": "v1" - }, - "x-codegen-request-body-name": "body" + } }, - "put": { + "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { "consumes": [ "application/json" ], - "description": "replace status of the specified ServiceCIDR", - "operationId": "replaceServiceCIDRStatus", + "description": "create an Ingress", + "operationId": "createNamespacedIngress", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1.Ingress" } }, { @@ -81279,13 +84023,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1.Ingress" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.ServiceCIDR" + "$ref": "#/definitions/v1.Ingress" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Ingress" } }, "401": { @@ -81298,137 +84048,152 @@ "tags": [ "networking_v1" ], - "x-kubernetes-action": "put", + "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "networking.k8s.io", - "kind": "ServiceCIDR", + "kind": "Ingress", "version": "v1" }, "x-codegen-request-body-name": "body" } }, - "/apis/networking.k8s.io/v1/watch/ingressclasses": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete an Ingress", + "operationId": "deleteNamespacedIngress", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified Ingress", + "operationId": "readNamespacedIngress", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingressclasses/{name}": { + }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "name of the Ingress", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the IngressClass", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -81439,245 +84204,870 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified Ingress", + "operationId": "patchNamespacedIngress", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified Ingress", + "operationId": "replaceNamespacedIngress", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/networking.k8s.io/v1/namespaces/{namespace}/ingresses/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified Ingress", + "operationId": "readNamespacedIngressStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" } - ] - }, - "/apis/networking.k8s.io/v1/watch/ingresses": { + }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", + "description": "name of the Ingress", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified Ingress", + "operationId": "patchNamespacedIngressStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified Ingress", + "operationId": "replaceNamespacedIngressStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.Ingress" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "Ingress", + "version": "v1" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/networking.k8s.io/v1/watch/ipaddresses": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of NetworkPolicy", + "operationId": "deleteCollectionNamespacedNetworkPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind NetworkPolicy", + "operationId": "listNamespacedNetworkPolicy", + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicyList" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, + "parameters": [ { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/networking.k8s.io/v1/watch/ipaddresses/{name}": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a NetworkPolicy", + "operationId": "createNamespacedNetworkPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a NetworkPolicy", + "operationId": "deleteNamespacedNetworkPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified NetworkPolicy", + "operationId": "readNamespacedNetworkPolicy", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, + "parameters": [ { - "description": "name of the IPAddress", + "description": "name of the NetworkPolicy", "in": "path", "name": "name", "required": true, @@ -81685,50 +85075,217 @@ "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "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.\n\nDefaults to unset", + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", - "name": "resourceVersion", + "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified NetworkPolicy", + "operationId": "patchNamespacedNetworkPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified NetworkPolicy", + "operationId": "replaceNamespacedNetworkPolicy", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicy" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses": { + "/apis/networking.k8s.io/v1/networkpolicies": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind NetworkPolicy", + "operationId": "listNetworkPolicyForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.NetworkPolicyList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "NetworkPolicy", + "version": "v1" + } + }, "parameters": [ { "description": "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.", @@ -81765,14 +85322,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -81801,6 +85350,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -81817,104 +85373,867 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true + "/apis/networking.k8s.io/v1/servicecidrs": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of ServiceCIDR", + "operationId": "deleteCollectionServiceCIDR", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "name of the Ingress", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind ServiceCIDR", + "operationId": "listServiceCIDR", + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDRList" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" + } + }, + "parameters": [ { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a ServiceCIDR", + "operationId": "createServiceCIDR", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/networking.k8s.io/v1/servicecidrs/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a ServiceCIDR", + "operationId": "deleteServiceCIDR", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified ServiceCIDR", + "operationId": "readServiceCIDR", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" + } + }, + "parameters": [ { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", + "description": "name of the ServiceCIDR", + "in": "path", + "name": "name", + "required": true, + "type": "string", "uniqueItems": true }, { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", - "name": "watch", - "type": "boolean", + "name": "pretty", + "type": "string", "uniqueItems": true } - ] - }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified ServiceCIDR", + "operationId": "patchServiceCIDR", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified ServiceCIDR", + "operationId": "replaceServiceCIDR", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/networking.k8s.io/v1/servicecidrs/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified ServiceCIDR", + "operationId": "readServiceCIDRStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" + } + }, + "parameters": [ + { + "description": "name of the ServiceCIDR", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified ServiceCIDR", + "operationId": "patchServiceCIDRStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified ServiceCIDR", + "operationId": "replaceServiceCIDRStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.ServiceCIDR" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "networking_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "networking.k8s.io", + "kind": "ServiceCIDR", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/networking.k8s.io/v1/watch/ingressclasses": { "parameters": [ { "description": "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.", @@ -81951,14 +86270,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -81987,6 +86298,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -82003,7 +86321,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { + "/apis/networking.k8s.io/v1/watch/ingressclasses/{name}": { "parameters": [ { "description": "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.", @@ -82041,7 +86359,7 @@ "uniqueItems": true }, { - "description": "name of the NetworkPolicy", + "description": "name of the IngressClass", "in": "path", "name": "name", "required": true, @@ -82049,13 +86367,93 @@ "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/watch/ingresses": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": true }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -82084,6 +86482,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -82100,7 +86505,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/networkpolicies": { + "/apis/networking.k8s.io/v1/watch/ipaddresses": { "parameters": [ { "description": "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.", @@ -82165,6 +86570,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -82181,7 +86593,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/servicecidrs": { + "/apis/networking.k8s.io/v1/watch/ipaddresses/{name}": { "parameters": [ { "description": "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.", @@ -82218,6 +86630,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the IPAddress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -82246,6 +86666,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -82262,7 +86689,7 @@ } ] }, - "/apis/networking.k8s.io/v1/watch/servicecidrs/{name}": { + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses": { "parameters": [ { "description": "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.", @@ -82300,9 +86727,9 @@ "uniqueItems": true }, { - "description": "name of the ServiceCIDR", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -82335,6 +86762,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -82351,8 +86785,584 @@ } ] }, - "/apis/networking.k8s.io/v1beta1/": { - "get": { + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/ingresses/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the Ingress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the NetworkPolicy", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/watch/networkpolicies": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/watch/servicecidrs": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1/watch/servicecidrs/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ServiceCIDR", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1beta1/": { + "get": { "consumes": [ "application/json" ], @@ -82482,6 +87492,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -82584,6 +87601,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -83118,6 +88142,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -83220,6 +88251,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -83930,6 +88968,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -83984,7 +89029,191 @@ "uniqueItems": true }, { - "description": "name of the IPAddress", + "description": "name of the IPAddress", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1beta1/watch/servicecidrs": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/networking.k8s.io/v1beta1/watch/servicecidrs/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ServiceCIDR", "in": "path", "name": "name", "required": true, @@ -84020,175 +89249,12 @@ "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1beta1/watch/servicecidrs": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", + "name": "shardSelector", "type": "string", "uniqueItems": true }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/networking.k8s.io/v1beta1/watch/servicecidrs/{name}": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ServiceCIDR", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -84367,6 +89433,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -84469,6 +89542,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -84969,6 +90049,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -85058,6 +90145,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -85236,6 +90330,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -85338,6 +90439,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -86111,6 +91219,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -86200,6 +91315,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -86297,6 +91419,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -86378,6 +91507,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -86556,6 +91692,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -86658,6 +91801,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -87192,6 +92342,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -87294,6 +92451,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -87828,6 +92992,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -87930,6 +93101,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -88480,6 +93658,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -88582,6 +93767,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -89137,6 +94329,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -89258,86 +94457,284 @@ "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ClusterRoleBinding", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", + "name": "shardSelector", "type": "string", "uniqueItems": true }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -89354,7 +94751,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { + "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { "parameters": [ { "description": "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.", @@ -89392,7 +94789,7 @@ "uniqueItems": true }, { - "description": "name of the ClusterRoleBinding", + "description": "name of the ClusterRole", "in": "path", "name": "name", "required": true, @@ -89428,86 +94825,12 @@ "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", + "name": "shardSelector", "type": "string", "uniqueItems": true }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -89524,7 +94847,7 @@ } ] }, - "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { + "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { "parameters": [ { "description": "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.", @@ -89562,9 +94885,9 @@ "uniqueItems": true }, { - "description": "name of the ClusterRole", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -89598,94 +94921,12 @@ "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", + "name": "shardSelector", "type": "string", "uniqueItems": true }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -89783,6 +95024,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -89872,6 +95120,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -89969,6 +95224,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -90050,6 +95312,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -90131,6 +95400,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -90309,6 +95585,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -90411,6 +95694,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -90945,6 +96235,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -91047,6 +96344,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -91815,6 +97119,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -91917,6 +97228,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -92472,6 +97790,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -92592,6 +97917,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -92707,6 +98039,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -92809,6 +98148,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -93309,6 +98655,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -93398,6 +98751,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -93487,6 +98847,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -93584,6 +98951,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -93673,6 +99047,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -93770,6 +99151,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -93851,6 +99239,189 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1/watch/resourceclaimtemplates": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1/watch/resourceslices": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -93867,7 +99438,7 @@ } ] }, - "/apis/resource.k8s.io/v1/watch/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1/watch/resourceslices/{name}": { "parameters": [ { "description": "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.", @@ -93904,6 +99475,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the ResourceSlice", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -93932,6 +99511,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -93946,128 +99532,730 @@ "type": "boolean", "uniqueItems": true } - ] - }, - "/apis/resource.k8s.io/v1/watch/resourceslices": { + ] + }, + "/apis/resource.k8s.io/v1alpha3/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ] + } + }, + "/apis/resource.k8s.io/v1alpha3/devicetaintrules": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of DeviceTaintRule", + "operationId": "deleteCollectionDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind DeviceTaintRule", + "operationId": "listDeviceTaintRule", + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRuleList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + } + }, + "parameters": [ + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a DeviceTaintRule", + "operationId": "createDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a DeviceTaintRule", + "operationId": "deleteDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified DeviceTaintRule", + "operationId": "readDeviceTaintRule", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + } + }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified DeviceTaintRule", + "operationId": "replaceDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified DeviceTaintRule", + "operationId": "readDeviceTaintRuleStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" } - ] - }, - "/apis/resource.k8s.io/v1/watch/resourceslices/{name}": { + }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ResourceSlice", + "description": "name of the DeviceTaintRule", "in": "path", "name": "name", "required": true, @@ -94080,51 +100268,126 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRuleStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1alpha3" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1alpha3/": { - "get": { + "x-codegen-request-body-name": "body" + }, + "put": { "consumes": [ "application/json" ], - "description": "get available resources", - "operationId": "getAPIResources", + "description": "replace status of the specified DeviceTaintRule", + "operationId": "replaceDeviceTaintRuleStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -94135,7 +100398,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha3.DeviceTaintRule" } }, "401": { @@ -94147,16 +100416,23 @@ ], "tags": [ "resource_v1alpha3" - ] + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1alpha3" + }, + "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1alpha3/devicetaintrules": { + "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of DeviceTaintRule", - "operationId": "deleteCollectionDeviceTaintRule", + "description": "delete collection of ResourcePoolStatusRequest", + "operationId": "deleteCollectionResourcePoolStatusRequest", "parameters": [ { "in": "body", @@ -94249,6 +100525,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -94283,7 +100566,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", + "kind": "ResourcePoolStatusRequest", "version": "v1alpha3" }, "x-codegen-request-body-name": "body" @@ -94292,8 +100575,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind DeviceTaintRule", - "operationId": "listDeviceTaintRule", + "description": "list or watch objects of kind ResourcePoolStatusRequest", + "operationId": "listResourcePoolStatusRequest", "parameters": [ { "description": "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.", @@ -94351,6 +100634,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -94379,7 +100669,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRuleList" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequestList" } }, "401": { @@ -94395,7 +100685,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", + "kind": "ResourcePoolStatusRequest", "version": "v1alpha3" } }, @@ -94412,15 +100702,15 @@ "consumes": [ "application/json" ], - "description": "create a DeviceTaintRule", - "operationId": "createDeviceTaintRule", + "description": "create a ResourcePoolStatusRequest", + "operationId": "createResourcePoolStatusRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, { @@ -94455,19 +100745,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -94483,19 +100773,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", + "kind": "ResourcePoolStatusRequest", "version": "v1alpha3" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}": { + "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a DeviceTaintRule", - "operationId": "deleteDeviceTaintRule", + "description": "delete a ResourcePoolStatusRequest", + "operationId": "deleteResourcePoolStatusRequest", "parameters": [ { "in": "body", @@ -94550,13 +100840,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -94572,7 +100862,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", + "kind": "ResourcePoolStatusRequest", "version": "v1alpha3" }, "x-codegen-request-body-name": "body" @@ -94581,8 +100871,8 @@ "consumes": [ "application/json" ], - "description": "read the specified DeviceTaintRule", - "operationId": "readDeviceTaintRule", + "description": "read the specified ResourcePoolStatusRequest", + "operationId": "readResourcePoolStatusRequest", "produces": [ "application/json", "application/yaml", @@ -94593,7 +100883,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -94609,13 +100899,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", + "kind": "ResourcePoolStatusRequest", "version": "v1alpha3" } }, "parameters": [ { - "description": "name of the DeviceTaintRule", + "description": "name of the ResourcePoolStatusRequest", "in": "path", "name": "name", "required": true, @@ -94634,8 +100924,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified DeviceTaintRule", - "operationId": "patchDeviceTaintRule", + "description": "partially update the specified ResourcePoolStatusRequest", + "operationId": "patchResourcePoolStatusRequest", "parameters": [ { "in": "body", @@ -94684,13 +100974,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -94706,7 +100996,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", + "kind": "ResourcePoolStatusRequest", "version": "v1alpha3" }, "x-codegen-request-body-name": "body" @@ -94715,15 +101005,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified DeviceTaintRule", - "operationId": "replaceDeviceTaintRule", + "description": "replace the specified ResourcePoolStatusRequest", + "operationId": "replaceResourcePoolStatusRequest", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, { @@ -94758,13 +101048,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -94780,19 +101070,19 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", + "kind": "ResourcePoolStatusRequest", "version": "v1alpha3" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1alpha3/devicetaintrules/{name}/status": { + "/apis/resource.k8s.io/v1alpha3/resourcepoolstatusrequests/{name}/status": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified DeviceTaintRule", - "operationId": "readDeviceTaintRuleStatus", + "description": "read status of the specified ResourcePoolStatusRequest", + "operationId": "readResourcePoolStatusRequestStatus", "produces": [ "application/json", "application/yaml", @@ -94803,7 +101093,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -94819,13 +101109,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", + "kind": "ResourcePoolStatusRequest", "version": "v1alpha3" } }, "parameters": [ { - "description": "name of the DeviceTaintRule", + "description": "name of the ResourcePoolStatusRequest", "in": "path", "name": "name", "required": true, @@ -94844,8 +101134,8 @@ "consumes": [ "application/json" ], - "description": "partially update status of the specified DeviceTaintRule", - "operationId": "patchDeviceTaintRuleStatus", + "description": "partially update status of the specified ResourcePoolStatusRequest", + "operationId": "patchResourcePoolStatusRequestStatus", "parameters": [ { "in": "body", @@ -94894,13 +101184,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -94916,7 +101206,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", + "kind": "ResourcePoolStatusRequest", "version": "v1alpha3" }, "x-codegen-request-body-name": "body" @@ -94925,15 +101215,15 @@ "consumes": [ "application/json" ], - "description": "replace status of the specified DeviceTaintRule", - "operationId": "replaceDeviceTaintRuleStatus", + "description": "replace status of the specified ResourcePoolStatusRequest", + "operationId": "replaceResourcePoolStatusRequestStatus", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, { @@ -94968,13 +101258,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha3.DeviceTaintRule" + "$ref": "#/definitions/v1alpha3.ResourcePoolStatusRequest" } }, "401": { @@ -94990,7 +101280,7 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceTaintRule", + "kind": "ResourcePoolStatusRequest", "version": "v1alpha3" }, "x-codegen-request-body-name": "body" @@ -95061,6 +101351,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -95150,6 +101447,197 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1alpha3/watch/resourcepoolstatusrequests/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ResourcePoolStatusRequest", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -95297,6 +101785,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -95399,6 +101894,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -95933,6 +102435,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -96035,6 +102544,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -96803,6 +103319,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -96905,6 +103428,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -97460,6 +103990,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -97580,6 +104117,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -97695,6 +104239,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -97797,6 +104348,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -98217,22 +104775,406 @@ "description": "Unauthorized" } }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta1" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta1" + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceSlice", + "version": "v1beta1" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1beta1/watch/deviceclasses": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1beta1/watch/deviceclasses/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the DeviceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/resource.k8s.io/v1beta1/watch/deviceclasses": { + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates": { "parameters": [ { "description": "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.", @@ -98269,6 +105211,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -98297,6 +105247,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -98313,7 +105270,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/deviceclasses/{name}": { + "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { "parameters": [ { "description": "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.", @@ -98351,13 +105308,21 @@ "uniqueItems": true }, { - "description": "name of the DeviceClass", + "description": "name of the ResourceClaimTemplate", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -98386,6 +105351,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -98402,7 +105374,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims": { + "/apis/resource.k8s.io/v1beta1/watch/resourceclaims": { "parameters": [ { "description": "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.", @@ -98439,14 +105411,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -98475,6 +105439,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -98491,7 +105462,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/resource.k8s.io/v1beta1/watch/resourceclaimtemplates": { "parameters": [ { "description": "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.", @@ -98529,21 +105500,93 @@ "uniqueItems": true }, { - "description": "name of the ResourceClaim", - "in": "path", - "name": "name", - "required": true, + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1beta1/watch/resourceslices": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": true }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -98572,6 +105615,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -98588,7 +105638,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta1/watch/resourceslices/{name}": { "parameters": [ { "description": "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.", @@ -98626,9 +105676,9 @@ "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", + "description": "name of the ResourceSlice", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -98661,6 +105711,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -98677,55 +105734,520 @@ } ] }, - "/apis/resource.k8s.io/v1beta1/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/resource.k8s.io/v1beta2/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ] + } + }, + "/apis/resource.k8s.io/v1beta2/deviceclasses": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of DeviceClass", + "operationId": "deleteCollectionDeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind DeviceClass", + "operationId": "listDeviceClass", + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClassList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + } + }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", - "name": "continue", + "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a DeviceClass", + "operationId": "createDeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a DeviceClass", + "operationId": "deleteDeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" }, - { - "description": "name of the ResourceClaimTemplate", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified DeviceClass", + "operationId": "readDeviceClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + } + }, + "parameters": [ { - "description": "object name and auth scope, such as for teams and projects", + "description": "name of the DeviceClass", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -98736,326 +106258,854 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified DeviceClass", + "operationId": "patchDeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified DeviceClass", + "operationId": "replaceDeviceClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceClass", + "version": "v1beta2" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1beta2/devicetaintrules": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of DeviceTaintRule", + "operationId": "deleteCollectionDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind DeviceTaintRule", + "operationId": "listDeviceTaintRule", + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRuleList" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/resourceclaims": { + }, "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/resourceclaimtemplates": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a DeviceTaintRule", + "operationId": "createDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a DeviceTaintRule", + "operationId": "deleteDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified DeviceTaintRule", + "operationId": "readDeviceTaintRule", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/resourceslices": { + }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified DeviceTaintRule", + "operationId": "replaceDeviceTaintRule", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1beta2/devicetaintrules/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified DeviceTaintRule", + "operationId": "readDeviceTaintRuleStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" } - ] - }, - "/apis/resource.k8s.io/v1beta1/watch/resourceslices/{name}": { + }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ResourceSlice", + "description": "name of the DeviceTaintRule", "in": "path", "name": "name", "required": true, @@ -99068,51 +107118,126 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified DeviceTaintRule", + "operationId": "patchDeviceTaintRuleStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1beta2/": { - "get": { + "x-codegen-request-body-name": "body" + }, + "put": { "consumes": [ "application/json" ], - "description": "get available resources", - "operationId": "getAPIResources", + "description": "replace status of the specified DeviceTaintRule", + "operationId": "replaceDeviceTaintRuleStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -99123,7 +107248,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1beta2.DeviceTaintRule" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.DeviceTaintRule" } }, "401": { @@ -99135,16 +107266,23 @@ ], "tags": [ "resource_v1beta2" - ] + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "DeviceTaintRule", + "version": "v1beta2" + }, + "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/deviceclasses": { + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of DeviceClass", - "operationId": "deleteCollectionDeviceClass", + "description": "delete collection of ResourceClaim", + "operationId": "deleteCollectionNamespacedResourceClaim", "parameters": [ { "in": "body", @@ -99237,6 +107375,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -99271,7 +107416,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", + "kind": "ResourceClaim", "version": "v1beta2" }, "x-codegen-request-body-name": "body" @@ -99280,8 +107425,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind DeviceClass", - "operationId": "listDeviceClass", + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listNamespacedResourceClaim", "parameters": [ { "description": "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.", @@ -99339,6 +107484,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -99367,7 +107519,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.DeviceClassList" + "$ref": "#/definitions/v1beta2.ResourceClaimList" } }, "401": { @@ -99383,11 +107535,19 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", + "kind": "ResourceClaim", "version": "v1beta2" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -99400,15 +107560,15 @@ "consumes": [ "application/json" ], - "description": "create a DeviceClass", - "operationId": "createDeviceClass", + "description": "create a ResourceClaim", + "operationId": "createNamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, { @@ -99443,19 +107603,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -99471,19 +107631,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", + "kind": "ResourceClaim", "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/deviceclasses/{name}": { + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a DeviceClass", - "operationId": "deleteDeviceClass", + "description": "delete a ResourceClaim", + "operationId": "deleteNamespacedResourceClaim", "parameters": [ { "in": "body", @@ -99538,13 +107698,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -99560,7 +107720,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", + "kind": "ResourceClaim", "version": "v1beta2" }, "x-codegen-request-body-name": "body" @@ -99569,8 +107729,8 @@ "consumes": [ "application/json" ], - "description": "read the specified DeviceClass", - "operationId": "readDeviceClass", + "description": "read the specified ResourceClaim", + "operationId": "readNamespacedResourceClaim", "produces": [ "application/json", "application/yaml", @@ -99581,7 +107741,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -99597,19 +107757,27 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", + "kind": "ResourceClaim", "version": "v1beta2" } }, "parameters": [ { - "description": "name of the DeviceClass", + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -99622,8 +107790,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified DeviceClass", - "operationId": "patchDeviceClass", + "description": "partially update the specified ResourceClaim", + "operationId": "patchNamespacedResourceClaim", "parameters": [ { "in": "body", @@ -99672,13 +107840,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -99694,7 +107862,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", + "kind": "ResourceClaim", "version": "v1beta2" }, "x-codegen-request-body-name": "body" @@ -99703,15 +107871,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified DeviceClass", - "operationId": "replaceDeviceClass", + "description": "replace the specified ResourceClaim", + "operationId": "replaceNamespacedResourceClaim", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, { @@ -99746,13 +107914,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.DeviceClass" + "$ref": "#/definitions/v1beta2.ResourceClaim" } }, "401": { @@ -99768,19 +107936,237 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "DeviceClass", + "kind": "ResourceClaim", "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims": { + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified ResourceClaim", + "operationId": "readNamespacedResourceClaimStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta2" + } + }, + "parameters": [ + { + "description": "name of the ResourceClaim", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified ResourceClaim", + "operationId": "patchNamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta2" + }, + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace status of the specified ResourceClaim", + "operationId": "replaceNamespacedResourceClaimStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1beta2.ResourceClaim" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta2.ResourceClaim" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1beta2.ResourceClaim" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "resource_v1beta2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "resource.k8s.io", + "kind": "ResourceClaim", + "version": "v1beta2" + }, + "x-codegen-request-body-name": "body" + } + }, + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ResourceClaim", - "operationId": "deleteCollectionNamespacedResourceClaim", + "description": "delete collection of ResourceClaimTemplate", + "operationId": "deleteCollectionNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -99873,6 +108259,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -99907,7 +108300,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", + "kind": "ResourceClaimTemplate", "version": "v1beta2" }, "x-codegen-request-body-name": "body" @@ -99916,8 +108309,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listNamespacedResourceClaim", + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listNamespacedResourceClaimTemplate", "parameters": [ { "description": "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.", @@ -99975,6 +108368,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -100003,7 +108403,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimList" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplateList" } }, "401": { @@ -100019,7 +108419,7 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", + "kind": "ResourceClaimTemplate", "version": "v1beta2" } }, @@ -100044,15 +108444,15 @@ "consumes": [ "application/json" ], - "description": "create a ResourceClaim", - "operationId": "createNamespacedResourceClaim", + "description": "create a ResourceClaimTemplate", + "operationId": "createNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, { @@ -100087,19 +108487,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "401": { @@ -100115,19 +108515,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", + "kind": "ResourceClaimTemplate", "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ResourceClaim", - "operationId": "deleteNamespacedResourceClaim", + "description": "delete a ResourceClaimTemplate", + "operationId": "deleteNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -100182,13 +108582,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "401": { @@ -100204,7 +108604,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", + "kind": "ResourceClaimTemplate", "version": "v1beta2" }, "x-codegen-request-body-name": "body" @@ -100213,8 +108613,8 @@ "consumes": [ "application/json" ], - "description": "read the specified ResourceClaim", - "operationId": "readNamespacedResourceClaim", + "description": "read the specified ResourceClaimTemplate", + "operationId": "readNamespacedResourceClaimTemplate", "produces": [ "application/json", "application/yaml", @@ -100225,7 +108625,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "401": { @@ -100241,13 +108641,13 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", + "kind": "ResourceClaimTemplate", "version": "v1beta2" } }, "parameters": [ { - "description": "name of the ResourceClaim", + "description": "name of the ResourceClaimTemplate", "in": "path", "name": "name", "required": true, @@ -100274,8 +108674,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified ResourceClaim", - "operationId": "patchNamespacedResourceClaim", + "description": "partially update the specified ResourceClaimTemplate", + "operationId": "patchNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", @@ -100324,13 +108724,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "401": { @@ -100346,7 +108746,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", + "kind": "ResourceClaimTemplate", "version": "v1beta2" }, "x-codegen-request-body-name": "body" @@ -100355,15 +108755,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified ResourceClaim", - "operationId": "replaceNamespacedResourceClaim", + "description": "replace the specified ResourceClaimTemplate", + "operationId": "replaceNamespacedResourceClaimTemplate", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, { @@ -100398,13 +108798,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" } }, "401": { @@ -100420,30 +108820,33 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", + "kind": "ResourceClaimTemplate", "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaims/{name}/status": { + "/apis/resource.k8s.io/v1beta2/resourceclaims": { "get": { "consumes": [ "application/json" ], - "description": "read status of the specified ResourceClaim", - "operationId": "readNamespacedResourceClaimStatus", + "description": "list or watch objects of kind ResourceClaim", + "operationId": "listResourceClaimForAllNamespaces", "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaimList" } }, "401": { @@ -100456,7 +108859,7 @@ "tags": [ "resource_v1beta2" ], - "x-kubernetes-action": "get", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", "kind": "ResourceClaim", @@ -100465,90 +108868,112 @@ }, "parameters": [ { - "description": "name of the ResourceClaim", - "in": "path", - "name": "name", - "required": true, + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - ], - "patch": { + ] + }, + "/apis/resource.k8s.io/v1beta2/resourceclaimtemplates": { + "get": { "consumes": [ "application/json" ], - "description": "partially update status of the specified ResourceClaim", - "operationId": "patchNamespacedResourceClaimStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], + "description": "list or watch objects of kind ResourceClaimTemplate", + "operationId": "listResourceClaimTemplateForAllNamespaces", "produces": [ "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", - "application/cbor" + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" ], "responses": { "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" + "$ref": "#/definitions/v1beta2.ResourceClaimTemplateList" } }, "401": { @@ -100561,96 +108986,107 @@ "tags": [ "resource_v1beta2" ], - "x-kubernetes-action": "patch", + "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaim", + "kind": "ResourceClaimTemplate", "version": "v1beta2" - }, - "x-codegen-request-body-name": "body" + } }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace status of the specified ResourceClaim", - "operationId": "replaceNamespacedResourceClaimStatus", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaim" - } - }, - "401": { - "description": "Unauthorized" - } + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta2/resourceslices": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of ResourceClaimTemplate", - "operationId": "deleteCollectionNamespacedResourceClaimTemplate", + "description": "delete collection of ResourceSlice", + "operationId": "deleteCollectionResourceSlice", "parameters": [ { "in": "body", @@ -100743,6 +109179,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -100777,7 +109220,7 @@ "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "kind": "ResourceSlice", "version": "v1beta2" }, "x-codegen-request-body-name": "body" @@ -100786,8 +109229,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listNamespacedResourceClaimTemplate", + "description": "list or watch objects of kind ResourceSlice", + "operationId": "listResourceSlice", "parameters": [ { "description": "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.", @@ -100845,6 +109288,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -100873,7 +109323,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplateList" + "$ref": "#/definitions/v1beta2.ResourceSliceList" } }, "401": { @@ -100889,19 +109339,11 @@ "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "kind": "ResourceSlice", "version": "v1beta2" } }, "parameters": [ - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -100914,15 +109356,15 @@ "consumes": [ "application/json" ], - "description": "create a ResourceClaimTemplate", - "operationId": "createNamespacedResourceClaimTemplate", + "description": "create a ResourceSlice", + "operationId": "createResourceSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, { @@ -100957,19 +109399,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "401": { @@ -100985,19 +109427,19 @@ "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "kind": "ResourceSlice", "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/namespaces/{namespace}/resourceclaimtemplates/{name}": { + "/apis/resource.k8s.io/v1beta2/resourceslices/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a ResourceClaimTemplate", - "operationId": "deleteNamespacedResourceClaimTemplate", + "description": "delete a ResourceSlice", + "operationId": "deleteResourceSlice", "parameters": [ { "in": "body", @@ -101052,13 +109494,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "401": { @@ -101074,7 +109516,7 @@ "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "kind": "ResourceSlice", "version": "v1beta2" }, "x-codegen-request-body-name": "body" @@ -101083,8 +109525,8 @@ "consumes": [ "application/json" ], - "description": "read the specified ResourceClaimTemplate", - "operationId": "readNamespacedResourceClaimTemplate", + "description": "read the specified ResourceSlice", + "operationId": "readResourceSlice", "produces": [ "application/json", "application/yaml", @@ -101095,7 +109537,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "401": { @@ -101111,27 +109553,19 @@ "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "kind": "ResourceSlice", "version": "v1beta2" } }, "parameters": [ { - "description": "name of the ResourceClaimTemplate", + "description": "name of the ResourceSlice", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -101144,8 +109578,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified ResourceClaimTemplate", - "operationId": "patchNamespacedResourceClaimTemplate", + "description": "partially update the specified ResourceSlice", + "operationId": "patchResourceSlice", "parameters": [ { "in": "body", @@ -101194,13 +109628,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "401": { @@ -101216,7 +109650,7 @@ "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "kind": "ResourceSlice", "version": "v1beta2" }, "x-codegen-request-body-name": "body" @@ -101225,15 +109659,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified ResourceClaimTemplate", - "operationId": "replaceNamespacedResourceClaimTemplate", + "description": "replace the specified ResourceSlice", + "operationId": "replaceResourceSlice", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, { @@ -101268,13 +109702,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplate" + "$ref": "#/definitions/v1beta2.ResourceSlice" } }, "401": { @@ -101290,52 +109724,13 @@ "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", + "kind": "ResourceSlice", "version": "v1beta2" }, "x-codegen-request-body-name": "body" } }, - "/apis/resource.k8s.io/v1beta2/resourceclaims": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind ResourceClaim", - "operationId": "listResourceClaimForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaim", - "version": "v1beta2" - } - }, + "/apis/resource.k8s.io/v1beta2/watch/deviceclasses": { "parameters": [ { "description": "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.", @@ -101400,6 +109795,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -101416,46 +109818,103 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/resourceclaimtemplates": { - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind ResourceClaimTemplate", - "operationId": "listResourceClaimTemplateForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceClaimTemplateList" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/resource.k8s.io/v1beta2/watch/deviceclasses/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceClaimTemplate", - "version": "v1beta2" + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the DeviceClass", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/devicetaintrules": { "parameters": [ { "description": "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.", @@ -101520,6 +109979,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -101536,643 +110002,303 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/resourceslices": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete collection of ResourceSlice", - "operationId": "deleteCollectionResourceSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } + "/apis/resource.k8s.io/v1beta2/watch/devicetaintrules/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "list or watch objects of kind ResourceSlice", - "operationId": "listResourceSlice", - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch", - "application/cbor-seq" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceSliceList" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the DeviceTaintRule", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims": { "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "post": { - "consumes": [ - "application/json" - ], - "description": "create a ResourceSlice", - "operationId": "createResourceSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "post", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } - }, - "/apis/resource.k8s.io/v1beta2/resourceslices/{name}": { - "delete": { - "consumes": [ - "application/json" - ], - "description": "delete a ResourceSlice", - "operationId": "deleteResourceSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "schema": { - "$ref": "#/definitions/v1.DeleteOptions" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", - "in": "query", - "name": "gracePeriodSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", - "in": "query", - "name": "ignoreStoreReadErrorWithClusterBreakingPotential", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", - "in": "query", - "name": "orphanDependents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", - "in": "query", - "name": "propagationPolicy", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" - } - }, - "202": { - "description": "Accepted", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "delete", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "get": { - "consumes": [ - "application/json" - ], - "description": "read the specified ResourceSlice", - "operationId": "readResourceSlice", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "get", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true } - }, + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims/{name}": { "parameters": [ { - "description": "name of the ResourceSlice", + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the ResourceClaim", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true - } - ], - "patch": { - "consumes": [ - "application/json" - ], - "description": "partially update the specified ResourceSlice", - "operationId": "patchResourceSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1.Patch" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - }, - { - "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", - "in": "query", - "name": "force", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" - } - }, - "401": { - "description": "Unauthorized" - } }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "patch", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - }, - "put": { - "consumes": [ - "application/json" - ], - "description": "replace the specified ResourceSlice", - "operationId": "replaceResourceSlice", - "parameters": [ - { - "in": "body", - "name": "body", - "required": true, - "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" - } - }, - { - "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", - "in": "query", - "name": "dryRun", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", - "in": "query", - "name": "fieldManager", - "type": "string", - "uniqueItems": true - }, - { - "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", - "in": "query", - "name": "fieldValidation", - "type": "string", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/cbor" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" - } - }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/v1beta2.ResourceSlice" - } - }, - "401": { - "description": "Unauthorized" - } + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true }, - "schemes": [ - "https" - ], - "tags": [ - "resource_v1beta2" - ], - "x-kubernetes-action": "put", - "x-kubernetes-group-version-kind": { - "group": "resource.k8s.io", - "kind": "ResourceSlice", - "version": "v1beta2" + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true }, - "x-codegen-request-body-name": "body" - } + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] }, - "/apis/resource.k8s.io/v1beta2/watch/deviceclasses": { + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates": { "parameters": [ { "description": "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.", @@ -102209,6 +110335,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -102237,6 +110371,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -102253,7 +110394,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/deviceclasses/{name}": { + "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { "parameters": [ { "description": "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.", @@ -102291,13 +110432,21 @@ "uniqueItems": true }, { - "description": "name of the DeviceClass", + "description": "name of the ResourceClaimTemplate", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -102326,6 +110475,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -102342,7 +110498,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims": { + "/apis/resource.k8s.io/v1beta2/watch/resourceclaims": { "parameters": [ { "description": "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.", @@ -102379,14 +110535,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -102415,6 +110563,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -102431,7 +110586,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaims/{name}": { + "/apis/resource.k8s.io/v1beta2/watch/resourceclaimtemplates": { "parameters": [ { "description": "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.", @@ -102469,21 +110624,93 @@ "uniqueItems": true }, { - "description": "name of the ResourceClaim", - "in": "path", - "name": "name", - "required": true, + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", "type": "string", "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/resource.k8s.io/v1beta2/watch/resourceslices": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", "type": "string", "uniqueItems": true }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -102512,6 +110739,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -102528,7 +110762,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates": { + "/apis/resource.k8s.io/v1beta2/watch/resourceslices/{name}": { "parameters": [ { "description": "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.", @@ -102566,9 +110800,9 @@ "uniqueItems": true }, { - "description": "object name and auth scope, such as for teams and projects", + "description": "name of the ResourceSlice", "in": "path", - "name": "namespace", + "name": "name", "required": true, "type": "string", "uniqueItems": true @@ -102580,141 +110814,764 @@ "type": "string", "uniqueItems": true }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/scheduling.k8s.io/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get information of a group", + "operationId": "getAPIGroup", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIGroup" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling" + ] + } + }, + "/apis/scheduling.k8s.io/v1/": { + "get": { + "consumes": [ + "application/json" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ] + } + }, + "/apis/scheduling.k8s.io/v1/priorityclasses": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete collection of PriorityClass", + "operationId": "deleteCollectionPriorityClass", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + }, + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind PriorityClass", + "operationId": "listPriorityClass", + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PriorityClassList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" + } + }, + "parameters": [ + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + } + ], + "post": { + "consumes": [ + "application/json" + ], + "description": "create a PriorityClass", + "operationId": "createPriorityClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PriorityClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PriorityClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.PriorityClass" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.PriorityClass" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "post", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "x-codegen-request-body-name": "body" + } + }, + "/apis/scheduling.k8s.io/v1/priorityclasses/{name}": { + "delete": { + "consumes": [ + "application/json" + ], + "description": "delete a PriorityClass", + "operationId": "deletePriorityClass", + "parameters": [ + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it", + "in": "query", + "name": "ignoreStoreReadErrorWithClusterBreakingPotential", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "202": { + "description": "Accepted", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "delete", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "get": { + "consumes": [ + "application/json" + ], + "description": "read the specified PriorityClass", + "operationId": "readPriorityClass", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PriorityClass" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/namespaces/{namespace}/resourceclaimtemplates/{name}": { + }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ResourceClaimTemplate", + "description": "name of the PriorityClass", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update the specified PriorityClass", + "operationId": "patchPriorityClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PriorityClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.PriorityClass" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true + "x-codegen-request-body-name": "body" + }, + "put": { + "consumes": [ + "application/json" + ], + "description": "replace the specified PriorityClass", + "operationId": "replacePriorityClass", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.PriorityClass" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.PriorityClass" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1.PriorityClass" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PriorityClass", + "version": "v1" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] + "x-codegen-request-body-name": "body" + } }, - "/apis/resource.k8s.io/v1beta2/watch/resourceclaims": { + "/apis/scheduling.k8s.io/v1/watch/priorityclasses": { "parameters": [ { "description": "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.", @@ -102779,6 +111636,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -102795,7 +111659,7 @@ } ] }, - "/apis/resource.k8s.io/v1beta2/watch/resourceclaimtemplates": { + "/apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}": { "parameters": [ { "description": "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.", @@ -102833,86 +111697,13 @@ "uniqueItems": true }, { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/resourceslices": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "name of the PriorityClass", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -102942,94 +111733,12 @@ "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/resource.k8s.io/v1beta2/watch/resourceslices/{name}": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "in": "query", - "name": "continue", + "name": "shardSelector", "type": "string", "uniqueItems": true }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the ResourceSlice", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -103046,38 +111755,7 @@ } ] }, - "/apis/scheduling.k8s.io/": { - "get": { - "consumes": [ - "application/json" - ], - "description": "get information of a group", - "operationId": "getAPIGroup", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIGroup" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "scheduling" - ] - } - }, - "/apis/scheduling.k8s.io/v1/": { + "/apis/scheduling.k8s.io/v1alpha2/": { "get": { "consumes": [ "application/json" @@ -103105,17 +111783,17 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha2" ] } }, - "/apis/scheduling.k8s.io/v1/priorityclasses": { + "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups": { "delete": { "consumes": [ "application/json" ], - "description": "delete collection of PriorityClass", - "operationId": "deleteCollectionPriorityClass", + "description": "delete collection of PodGroup", + "operationId": "deleteCollectionNamespacedPodGroup", "parameters": [ { "in": "body", @@ -103208,6 +111886,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -103237,13 +111922,13 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "PodGroup", + "version": "v1alpha2" }, "x-codegen-request-body-name": "body" }, @@ -103251,8 +111936,8 @@ "consumes": [ "application/json" ], - "description": "list or watch objects of kind PriorityClass", - "operationId": "listPriorityClass", + "description": "list or watch objects of kind PodGroup", + "operationId": "listNamespacedPodGroup", "parameters": [ { "description": "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.", @@ -103310,6 +111995,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -103338,7 +112030,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityClassList" + "$ref": "#/definitions/v1alpha2.PodGroupList" } }, "401": { @@ -103349,16 +112041,24 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "PodGroup", + "version": "v1alpha2" } }, "parameters": [ + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -103371,15 +112071,15 @@ "consumes": [ "application/json" ], - "description": "create a PriorityClass", - "operationId": "createPriorityClass", + "description": "create a PodGroup", + "operationId": "createNamespacedPodGroup", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PriorityClass" + "$ref": "#/definitions/v1alpha2.PodGroup" } }, { @@ -103414,19 +112114,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityClass" + "$ref": "#/definitions/v1alpha2.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PriorityClass" + "$ref": "#/definitions/v1alpha2.PodGroup" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1.PriorityClass" + "$ref": "#/definitions/v1alpha2.PodGroup" } }, "401": { @@ -103437,24 +112137,24 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "PodGroup", + "version": "v1alpha2" }, "x-codegen-request-body-name": "body" } }, - "/apis/scheduling.k8s.io/v1/priorityclasses/{name}": { + "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}": { "delete": { "consumes": [ "application/json" ], - "description": "delete a PriorityClass", - "operationId": "deletePriorityClass", + "description": "delete a PodGroup", + "operationId": "deleteNamespacedPodGroup", "parameters": [ { "in": "body", @@ -103526,13 +112226,13 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "PodGroup", + "version": "v1alpha2" }, "x-codegen-request-body-name": "body" }, @@ -103540,8 +112240,8 @@ "consumes": [ "application/json" ], - "description": "read the specified PriorityClass", - "operationId": "readPriorityClass", + "description": "read the specified PodGroup", + "operationId": "readNamespacedPodGroup", "produces": [ "application/json", "application/yaml", @@ -103552,7 +112252,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityClass" + "$ref": "#/definitions/v1alpha2.PodGroup" } }, "401": { @@ -103563,24 +112263,32 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "PodGroup", + "version": "v1alpha2" } }, "parameters": [ { - "description": "name of the PriorityClass", + "description": "name of the PodGroup", "in": "path", "name": "name", "required": true, "type": "string", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -103593,8 +112301,8 @@ "consumes": [ "application/json" ], - "description": "partially update the specified PriorityClass", - "operationId": "patchPriorityClass", + "description": "partially update the specified PodGroup", + "operationId": "patchNamespacedPodGroup", "parameters": [ { "in": "body", @@ -103643,13 +112351,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityClass" + "$ref": "#/definitions/v1alpha2.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PriorityClass" + "$ref": "#/definitions/v1alpha2.PodGroup" } }, "401": { @@ -103660,13 +112368,13 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "PodGroup", + "version": "v1alpha2" }, "x-codegen-request-body-name": "body" }, @@ -103674,15 +112382,15 @@ "consumes": [ "application/json" ], - "description": "replace the specified PriorityClass", - "operationId": "replacePriorityClass", + "description": "replace the specified PodGroup", + "operationId": "replaceNamespacedPodGroup", "parameters": [ { "in": "body", "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.PriorityClass" + "$ref": "#/definitions/v1alpha2.PodGroup" } }, { @@ -103717,13 +112425,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.PriorityClass" + "$ref": "#/definitions/v1alpha2.PodGroup" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1.PriorityClass" + "$ref": "#/definitions/v1alpha2.PodGroup" } }, "401": { @@ -103734,139 +112442,67 @@ "https" ], "tags": [ - "scheduling_v1" + "scheduling_v1alpha2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", - "kind": "PriorityClass", - "version": "v1" + "kind": "PodGroup", + "version": "v1alpha2" }, "x-codegen-request-body-name": "body" } }, - "/apis/scheduling.k8s.io/v1/watch/priorityclasses": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/podgroups/{name}/status": { + "get": { + "consumes": [ + "application/json" + ], + "description": "read status of the specified PodGroup", + "operationId": "readNamespacedPodGroupStatus", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha2.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha2" + ], + "x-kubernetes-action": "get", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha2" } - ] - }, - "/apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}": { + }, "parameters": [ { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", + "description": "name of the PodGroup", + "in": "path", + "name": "name", + "required": true, "type": "string", "uniqueItems": true }, { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "name of the PriorityClass", + "description": "object name and auth scope, such as for teams and projects", "in": "path", - "name": "name", + "name": "namespace", "required": true, "type": "string", "uniqueItems": true @@ -103877,51 +112513,126 @@ "name": "pretty", "type": "string", "uniqueItems": true + } + ], + "patch": { + "consumes": [ + "application/json" + ], + "description": "partially update status of the specified PodGroup", + "operationId": "patchNamespacedPodGroupStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1.Patch" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + }, + { + "description": "Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.", + "in": "query", + "name": "force", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha2.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha2.PodGroup" + } + }, + "401": { + "description": "Unauthorized" + } }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", - "type": "string", - "uniqueItems": true - }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha2" + ], + "x-kubernetes-action": "patch", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha2" }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/scheduling.k8s.io/v1alpha1/": { - "get": { + "x-codegen-request-body-name": "body" + }, + "put": { "consumes": [ "application/json" ], - "description": "get available resources", - "operationId": "getAPIResources", + "description": "replace status of the specified PodGroup", + "operationId": "replaceNamespacedPodGroupStatus", + "parameters": [ + { + "in": "body", + "name": "body", + "required": true, + "schema": { + "$ref": "#/definitions/v1alpha2.PodGroup" + } + }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.", + "in": "query", + "name": "fieldManager", + "type": "string", + "uniqueItems": true + }, + { + "description": "fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.", + "in": "query", + "name": "fieldValidation", + "type": "string", + "uniqueItems": true + } + ], "produces": [ "application/json", "application/yaml", @@ -103932,7 +112643,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1.APIResourceList" + "$ref": "#/definitions/v1alpha2.PodGroup" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/v1alpha2.PodGroup" } }, "401": { @@ -103943,11 +112660,18 @@ "https" ], "tags": [ - "scheduling_v1alpha1" - ] + "scheduling_v1alpha2" + ], + "x-kubernetes-action": "put", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha2" + }, + "x-codegen-request-body-name": "body" } }, - "/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads": { + "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads": { "delete": { "consumes": [ "application/json" @@ -104046,6 +112770,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -104075,13 +112806,13 @@ "https" ], "tags": [ - "scheduling_v1alpha1" + "scheduling_v1alpha2" ], "x-kubernetes-action": "deletecollection", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha1" + "version": "v1alpha2" }, "x-codegen-request-body-name": "body" }, @@ -104148,6 +112879,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -104176,7 +112914,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.WorkloadList" + "$ref": "#/definitions/v1alpha2.WorkloadList" } }, "401": { @@ -104187,13 +112925,13 @@ "https" ], "tags": [ - "scheduling_v1alpha1" + "scheduling_v1alpha2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha1" + "version": "v1alpha2" } }, "parameters": [ @@ -104225,7 +112963,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.Workload" + "$ref": "#/definitions/v1alpha2.Workload" } }, { @@ -104260,19 +112998,19 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.Workload" + "$ref": "#/definitions/v1alpha2.Workload" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.Workload" + "$ref": "#/definitions/v1alpha2.Workload" } }, "202": { "description": "Accepted", "schema": { - "$ref": "#/definitions/v1alpha1.Workload" + "$ref": "#/definitions/v1alpha2.Workload" } }, "401": { @@ -104283,18 +113021,18 @@ "https" ], "tags": [ - "scheduling_v1alpha1" + "scheduling_v1alpha2" ], "x-kubernetes-action": "post", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha1" + "version": "v1alpha2" }, "x-codegen-request-body-name": "body" } }, - "/apis/scheduling.k8s.io/v1alpha1/namespaces/{namespace}/workloads/{name}": { + "/apis/scheduling.k8s.io/v1alpha2/namespaces/{namespace}/workloads/{name}": { "delete": { "consumes": [ "application/json" @@ -104372,13 +113110,13 @@ "https" ], "tags": [ - "scheduling_v1alpha1" + "scheduling_v1alpha2" ], "x-kubernetes-action": "delete", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha1" + "version": "v1alpha2" }, "x-codegen-request-body-name": "body" }, @@ -104398,7 +113136,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.Workload" + "$ref": "#/definitions/v1alpha2.Workload" } }, "401": { @@ -104409,13 +113147,13 @@ "https" ], "tags": [ - "scheduling_v1alpha1" + "scheduling_v1alpha2" ], "x-kubernetes-action": "get", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha1" + "version": "v1alpha2" } }, "parameters": [ @@ -104497,13 +113235,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.Workload" + "$ref": "#/definitions/v1alpha2.Workload" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.Workload" + "$ref": "#/definitions/v1alpha2.Workload" } }, "401": { @@ -104514,13 +113252,13 @@ "https" ], "tags": [ - "scheduling_v1alpha1" + "scheduling_v1alpha2" ], "x-kubernetes-action": "patch", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha1" + "version": "v1alpha2" }, "x-codegen-request-body-name": "body" }, @@ -104536,7 +113274,7 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1alpha1.Workload" + "$ref": "#/definitions/v1alpha2.Workload" } }, { @@ -104571,13 +113309,13 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.Workload" + "$ref": "#/definitions/v1alpha2.Workload" } }, "201": { "description": "Created", "schema": { - "$ref": "#/definitions/v1alpha1.Workload" + "$ref": "#/definitions/v1alpha2.Workload" } }, "401": { @@ -104588,18 +113326,441 @@ "https" ], "tags": [ - "scheduling_v1alpha1" + "scheduling_v1alpha2" ], "x-kubernetes-action": "put", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha1" + "version": "v1alpha2" }, "x-codegen-request-body-name": "body" } }, - "/apis/scheduling.k8s.io/v1alpha1/watch/namespaces/{namespace}/workloads": { + "/apis/scheduling.k8s.io/v1alpha2/podgroups": { + "get": { + "consumes": [ + "application/json" + ], + "description": "list or watch objects of kind PodGroup", + "operationId": "listPodGroupForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/cbor", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch", + "application/cbor-seq" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1alpha2.PodGroupList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "scheduling_v1alpha2" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "scheduling.k8s.io", + "kind": "PodGroup", + "version": "v1alpha2" + } + }, + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/podgroups": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/podgroups/{name}": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the PodGroup", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/workloads": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha2/watch/namespaces/{namespace}/workloads/{name}": { "parameters": [ { "description": "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.", @@ -104636,6 +113797,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the Workload", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -104672,6 +113841,101 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/scheduling.k8s.io/v1alpha2/watch/podgroups": { + "parameters": [ + { + "description": "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.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "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\".\n\nThis 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.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nThe 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.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "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.\n\nDefaults to unset", + "in": "query", + "name": "resourceVersionMatch", + "type": "string", + "uniqueItems": true + }, + { + "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", + "in": "query", + "name": "sendInitialEvents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -104688,7 +113952,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha1/watch/namespaces/{namespace}/workloads/{name}": { + "/apis/scheduling.k8s.io/v1alpha2/watch/workloads": { "parameters": [ { "description": "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.", @@ -104725,22 +113989,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the Workload", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", "in": "query", @@ -104770,86 +114018,12 @@ "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ] - }, - "/apis/scheduling.k8s.io/v1alpha1/watch/workloads": { - "parameters": [ - { - "description": "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.", - "in": "query", - "name": "allowWatchBookmarks", - "type": "boolean", - "uniqueItems": true - }, - { - "description": "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\".\n\nThis 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.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nThe 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.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "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.\n\nDefaults to unset", - "in": "query", - "name": "resourceVersionMatch", + "name": "shardSelector", "type": "string", "uniqueItems": true }, - { - "description": "`sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched.\n\nWhen `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan\n is interpreted as \"data at least as new as the provided `resourceVersion`\"\n and the bookmark event is send when the state is synced\n to a `resourceVersion` at least as fresh as the one provided by the ListOptions.\n If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the\n bookmark event is send when the state is synced at least to the moment\n when request started being processed.\n- `resourceVersionMatch` set to any other value or unset\n Invalid error is returned.\n\nDefaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.", - "in": "query", - "name": "sendInitialEvents", - "type": "boolean", - "uniqueItems": true - }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -104866,7 +114040,7 @@ } ] }, - "/apis/scheduling.k8s.io/v1alpha1/workloads": { + "/apis/scheduling.k8s.io/v1alpha2/workloads": { "get": { "consumes": [ "application/json" @@ -104886,7 +114060,7 @@ "200": { "description": "OK", "schema": { - "$ref": "#/definitions/v1alpha1.WorkloadList" + "$ref": "#/definitions/v1alpha2.WorkloadList" } }, "401": { @@ -104897,13 +114071,13 @@ "https" ], "tags": [ - "scheduling_v1alpha1" + "scheduling_v1alpha2" ], "x-kubernetes-action": "list", "x-kubernetes-group-version-kind": { "group": "scheduling.k8s.io", "kind": "Workload", - "version": "v1alpha1" + "version": "v1alpha2" } }, "parameters": [ @@ -104970,6 +114144,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -105148,6 +114329,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -105250,6 +114438,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -105784,6 +114979,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -105886,6 +115088,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -106425,6 +115634,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -106540,6 +115756,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -106642,6 +115865,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -107192,6 +116422,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -107294,6 +116531,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -107828,6 +117072,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -107930,6 +117181,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -108674,6 +117932,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -108776,6 +118041,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -109276,6 +118548,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -109365,6 +118644,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -109446,6 +118732,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -109535,6 +118828,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -109616,6 +118916,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -109705,6 +119012,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -109802,6 +119116,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -109883,6 +119204,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -109972,6 +119300,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -110053,6 +119388,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -110142,6 +119484,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -110223,6 +119572,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -110312,6 +119668,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -110459,6 +119822,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -110561,6 +119931,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -111061,6 +120438,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -111150,6 +120534,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -111328,6 +120719,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -111430,6 +120828,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -112140,6 +121545,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", @@ -112229,6 +121641,13 @@ "type": "boolean", "uniqueItems": true }, + { + "description": "shardSelector restricts the list of returned objects using a CEL-based shard selector expression. The format uses the shardRange() function combined with || (logical OR) to specify one or more hash ranges:\n\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000')\n shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n\nField paths use CEL-style object-rooted syntax (e.g. \"object.metadata.uid\"), NOT the fieldSelector format (\"metadata.uid\"). Currently supported paths:\n - object.metadata.uid\n - object.metadata.namespace\n\nhexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix, defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a hash space. The full range is [0x0, 0x10000000000000000), where the exclusive upper bound equals 2^64.\n\nExamples:\n 2-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')\n 4-shard split:\n shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')\n shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')\n shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')\n shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')\n\nThis is an alpha field and requires enabling the ShardedListAndWatch feature gate.", + "in": "query", + "name": "shardSelector", + "type": "string", + "uniqueItems": true + }, { "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", "in": "query", diff --git a/proto/src/main/java/io/kubernetes/client/proto/Meta.java b/proto/src/main/java/io/kubernetes/client/proto/Meta.java index be6b5108e3..6f8965a49b 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/Meta.java +++ b/proto/src/main/java/io/kubernetes/client/proto/Meta.java @@ -9583,6 +9583,7 @@ public interface ConditionOrBuilder extends * +kubebuilder:validation:Required * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` * +kubebuilder:validation:MaxLength=316 + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string type = 1; @@ -9599,6 +9600,7 @@ public interface ConditionOrBuilder extends * +kubebuilder:validation:Required * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` * +kubebuilder:validation:MaxLength=316 + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string type = 1; @@ -9615,6 +9617,7 @@ public interface ConditionOrBuilder extends * +kubebuilder:validation:Required * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` * +kubebuilder:validation:MaxLength=316 + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string type = 1; @@ -9628,6 +9631,7 @@ public interface ConditionOrBuilder extends * +required * +kubebuilder:validation:Required * +kubebuilder:validation:Enum=True;False;Unknown + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string status = 2; @@ -9639,6 +9643,7 @@ public interface ConditionOrBuilder extends * +required * +kubebuilder:validation:Required * +kubebuilder:validation:Enum=True;False;Unknown + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string status = 2; @@ -9650,6 +9655,7 @@ public interface ConditionOrBuilder extends * +required * +kubebuilder:validation:Required * +kubebuilder:validation:Enum=True;False;Unknown + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string status = 2; @@ -9664,6 +9670,8 @@ public interface ConditionOrBuilder extends * with respect to the current state of the instance. * +optional * +kubebuilder:validation:Minimum=0 + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:minimum=0 * * * optional int64 observedGeneration = 3; @@ -9676,6 +9684,8 @@ public interface ConditionOrBuilder extends * with respect to the current state of the instance. * +optional * +kubebuilder:validation:Minimum=0 + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:minimum=0 * * * optional int64 observedGeneration = 3; @@ -9825,6 +9835,9 @@ public interface ConditionOrBuilder extends * // +patchStrategy=merge * // +listType=map * // +listMapKey=type + * // +k8s:alpha(since: "1.37")=+k8s:optional + * // +k8s:alpha(since: "1.37")=+k8s:listType=map + * // +k8s:alpha(since: "1.37")=+k8s:listMapKey=type * Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` * // other fields * } @@ -9961,6 +9974,7 @@ private Condition( * +kubebuilder:validation:Required * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` * +kubebuilder:validation:MaxLength=316 + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string type = 1; @@ -9979,6 +9993,7 @@ public boolean hasType() { * +kubebuilder:validation:Required * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` * +kubebuilder:validation:MaxLength=316 + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string type = 1; @@ -10008,6 +10023,7 @@ public java.lang.String getType() { * +kubebuilder:validation:Required * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` * +kubebuilder:validation:MaxLength=316 + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string type = 1; @@ -10034,6 +10050,7 @@ public java.lang.String getType() { * +required * +kubebuilder:validation:Required * +kubebuilder:validation:Enum=True;False;Unknown + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string status = 2; @@ -10047,6 +10064,7 @@ public boolean hasStatus() { * +required * +kubebuilder:validation:Required * +kubebuilder:validation:Enum=True;False;Unknown + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string status = 2; @@ -10071,6 +10089,7 @@ public java.lang.String getStatus() { * +required * +kubebuilder:validation:Required * +kubebuilder:validation:Enum=True;False;Unknown + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string status = 2; @@ -10098,6 +10117,8 @@ public java.lang.String getStatus() { * with respect to the current state of the instance. * +optional * +kubebuilder:validation:Minimum=0 + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:minimum=0 * * * optional int64 observedGeneration = 3; @@ -10112,6 +10133,8 @@ public boolean hasObservedGeneration() { * with respect to the current state of the instance. * +optional * +kubebuilder:validation:Minimum=0 + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:minimum=0 * * * optional int64 observedGeneration = 3; @@ -10565,6 +10588,9 @@ protected Builder newBuilderForType( * // +patchStrategy=merge * // +listType=map * // +listMapKey=type + * // +k8s:alpha(since: "1.37")=+k8s:optional + * // +k8s:alpha(since: "1.37")=+k8s:listType=map + * // +k8s:alpha(since: "1.37")=+k8s:listMapKey=type * Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` * // other fields * } @@ -10797,6 +10823,7 @@ public Builder mergeFrom( * +kubebuilder:validation:Required * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` * +kubebuilder:validation:MaxLength=316 + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string type = 1; @@ -10815,6 +10842,7 @@ public boolean hasType() { * +kubebuilder:validation:Required * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` * +kubebuilder:validation:MaxLength=316 + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string type = 1; @@ -10844,6 +10872,7 @@ public java.lang.String getType() { * +kubebuilder:validation:Required * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` * +kubebuilder:validation:MaxLength=316 + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string type = 1; @@ -10872,6 +10901,7 @@ public java.lang.String getType() { * +kubebuilder:validation:Required * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` * +kubebuilder:validation:MaxLength=316 + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string type = 1; @@ -10897,6 +10927,7 @@ public Builder setType( * +kubebuilder:validation:Required * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` * +kubebuilder:validation:MaxLength=316 + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string type = 1; @@ -10918,6 +10949,7 @@ public Builder clearType() { * +kubebuilder:validation:Required * +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$` * +kubebuilder:validation:MaxLength=316 + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string type = 1; @@ -10940,6 +10972,7 @@ public Builder setTypeBytes( * +required * +kubebuilder:validation:Required * +kubebuilder:validation:Enum=True;False;Unknown + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string status = 2; @@ -10953,6 +10986,7 @@ public boolean hasStatus() { * +required * +kubebuilder:validation:Required * +kubebuilder:validation:Enum=True;False;Unknown + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string status = 2; @@ -10977,6 +11011,7 @@ public java.lang.String getStatus() { * +required * +kubebuilder:validation:Required * +kubebuilder:validation:Enum=True;False;Unknown + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string status = 2; @@ -11000,6 +11035,7 @@ public java.lang.String getStatus() { * +required * +kubebuilder:validation:Required * +kubebuilder:validation:Enum=True;False;Unknown + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string status = 2; @@ -11020,6 +11056,7 @@ public Builder setStatus( * +required * +kubebuilder:validation:Required * +kubebuilder:validation:Enum=True;False;Unknown + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string status = 2; @@ -11036,6 +11073,7 @@ public Builder clearStatus() { * +required * +kubebuilder:validation:Required * +kubebuilder:validation:Enum=True;False;Unknown + * +k8s:alpha(since: "1.37")=+k8s:required * * * optional string status = 2; @@ -11059,6 +11097,8 @@ public Builder setStatusBytes( * with respect to the current state of the instance. * +optional * +kubebuilder:validation:Minimum=0 + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:minimum=0 * * * optional int64 observedGeneration = 3; @@ -11073,6 +11113,8 @@ public boolean hasObservedGeneration() { * with respect to the current state of the instance. * +optional * +kubebuilder:validation:Minimum=0 + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:minimum=0 * * * optional int64 observedGeneration = 3; @@ -11087,6 +11129,8 @@ public long getObservedGeneration() { * with respect to the current state of the instance. * +optional * +kubebuilder:validation:Minimum=0 + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:minimum=0 * * * optional int64 observedGeneration = 3; @@ -11104,6 +11148,8 @@ public Builder setObservedGeneration(long value) { * with respect to the current state of the instance. * +optional * +kubebuilder:validation:Minimum=0 + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:minimum=0 * * * optional int64 observedGeneration = 3; @@ -16738,6 +16784,7 @@ public interface FieldsV1OrBuilder extends /** *
      * Raw is the underlying serialization of this object.
+     * Deprecated: Direct access to this field is deprecated. Use GetRawBytes, GetRawString, SetRawBytes, SetRawString, GetRawReader, NewFieldsV1 instead.
      * 
* * optional bytes Raw = 1; @@ -16746,6 +16793,7 @@ public interface FieldsV1OrBuilder extends /** *
      * Raw is the underlying serialization of this object.
+     * Deprecated: Direct access to this field is deprecated. Use GetRawBytes, GetRawString, SetRawBytes, SetRawString, GetRawReader, NewFieldsV1 instead.
      * 
* * optional bytes Raw = 1; @@ -16763,6 +16811,8 @@ public interface FieldsV1OrBuilder extends * 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values * If a key maps to an empty Fields value, the field that key represents is part of the set. * The exact format is defined in sigs.k8s.io/structured-merge-diff + * +k8s:deepcopy-gen=false + * +protobuf.options.marshal=false * +protobuf.options.(gogoproto.goproto_stringer)=false * * @@ -16848,6 +16898,7 @@ private FieldsV1( /** *
      * Raw is the underlying serialization of this object.
+     * Deprecated: Direct access to this field is deprecated. Use GetRawBytes, GetRawString, SetRawBytes, SetRawString, GetRawReader, NewFieldsV1 instead.
      * 
* * optional bytes Raw = 1; @@ -16858,6 +16909,7 @@ public boolean hasRaw() { /** *
      * Raw is the underlying serialization of this object.
+     * Deprecated: Direct access to this field is deprecated. Use GetRawBytes, GetRawString, SetRawBytes, SetRawString, GetRawReader, NewFieldsV1 instead.
      * 
* * optional bytes Raw = 1; @@ -17038,6 +17090,8 @@ protected Builder newBuilderForType( * 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values * If a key maps to an empty Fields value, the field that key represents is part of the set. * The exact format is defined in sigs.k8s.io/structured-merge-diff + * +k8s:deepcopy-gen=false + * +protobuf.options.marshal=false * +protobuf.options.(gogoproto.goproto_stringer)=false * * @@ -17198,6 +17252,7 @@ public Builder mergeFrom( /** *
        * Raw is the underlying serialization of this object.
+       * Deprecated: Direct access to this field is deprecated. Use GetRawBytes, GetRawString, SetRawBytes, SetRawString, GetRawReader, NewFieldsV1 instead.
        * 
* * optional bytes Raw = 1; @@ -17208,6 +17263,7 @@ public boolean hasRaw() { /** *
        * Raw is the underlying serialization of this object.
+       * Deprecated: Direct access to this field is deprecated. Use GetRawBytes, GetRawString, SetRawBytes, SetRawString, GetRawReader, NewFieldsV1 instead.
        * 
* * optional bytes Raw = 1; @@ -17218,6 +17274,7 @@ public com.google.protobuf.ByteString getRaw() { /** *
        * Raw is the underlying serialization of this object.
+       * Deprecated: Direct access to this field is deprecated. Use GetRawBytes, GetRawString, SetRawBytes, SetRawString, GetRawReader, NewFieldsV1 instead.
        * 
* * optional bytes Raw = 1; @@ -17234,6 +17291,7 @@ public Builder setRaw(com.google.protobuf.ByteString value) { /** *
        * Raw is the underlying serialization of this object.
+       * Deprecated: Direct access to this field is deprecated. Use GetRawBytes, GetRawString, SetRawBytes, SetRawString, GetRawReader, NewFieldsV1 instead.
        * 
* * optional bytes Raw = 1; @@ -26917,6 +26975,52 @@ public interface ListMetaOrBuilder extends * optional int64 remainingItemCount = 4; */ long getRemainingItemCount(); + + /** + *
+     * shardInfo is set when the list is a filtered subset of the full collection,
+     * as selected by a shard selector on the request. It echoes back the selector
+     * so clients can verify which shard they received and merge sharded responses.
+     * Clients should not cache sharded list responses as a full representation
+     * of the collection.
+     * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+     * +featureGate=ShardedListAndWatch
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo shardInfo = 5; + */ + boolean hasShardInfo(); + /** + *
+     * shardInfo is set when the list is a filtered subset of the full collection,
+     * as selected by a shard selector on the request. It echoes back the selector
+     * so clients can verify which shard they received and merge sharded responses.
+     * Clients should not cache sharded list responses as a full representation
+     * of the collection.
+     * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+     * +featureGate=ShardedListAndWatch
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo shardInfo = 5; + */ + io.kubernetes.client.proto.Meta.ShardInfo getShardInfo(); + /** + *
+     * shardInfo is set when the list is a filtered subset of the full collection,
+     * as selected by a shard selector on the request. It echoes back the selector
+     * so clients can verify which shard they received and merge sharded responses.
+     * Clients should not cache sharded list responses as a full representation
+     * of the collection.
+     * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+     * +featureGate=ShardedListAndWatch
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo shardInfo = 5; + */ + io.kubernetes.client.proto.Meta.ShardInfoOrBuilder getShardInfoOrBuilder(); } /** *
@@ -26989,6 +27093,19 @@ private ListMeta(
               remainingItemCount_ = input.readInt64();
               break;
             }
+            case 42: {
+              io.kubernetes.client.proto.Meta.ShardInfo.Builder subBuilder = null;
+              if (((bitField0_ & 0x00000010) == 0x00000010)) {
+                subBuilder = shardInfo_.toBuilder();
+              }
+              shardInfo_ = input.readMessage(io.kubernetes.client.proto.Meta.ShardInfo.PARSER, extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(shardInfo_);
+                shardInfo_ = subBuilder.buildPartial();
+              }
+              bitField0_ |= 0x00000010;
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -27264,6 +27381,60 @@ public long getRemainingItemCount() {
       return remainingItemCount_;
     }
 
+    public static final int SHARDINFO_FIELD_NUMBER = 5;
+    private io.kubernetes.client.proto.Meta.ShardInfo shardInfo_;
+    /**
+     * 
+     * shardInfo is set when the list is a filtered subset of the full collection,
+     * as selected by a shard selector on the request. It echoes back the selector
+     * so clients can verify which shard they received and merge sharded responses.
+     * Clients should not cache sharded list responses as a full representation
+     * of the collection.
+     * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+     * +featureGate=ShardedListAndWatch
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo shardInfo = 5; + */ + public boolean hasShardInfo() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+     * shardInfo is set when the list is a filtered subset of the full collection,
+     * as selected by a shard selector on the request. It echoes back the selector
+     * so clients can verify which shard they received and merge sharded responses.
+     * Clients should not cache sharded list responses as a full representation
+     * of the collection.
+     * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+     * +featureGate=ShardedListAndWatch
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo shardInfo = 5; + */ + public io.kubernetes.client.proto.Meta.ShardInfo getShardInfo() { + return shardInfo_ == null ? io.kubernetes.client.proto.Meta.ShardInfo.getDefaultInstance() : shardInfo_; + } + /** + *
+     * shardInfo is set when the list is a filtered subset of the full collection,
+     * as selected by a shard selector on the request. It echoes back the selector
+     * so clients can verify which shard they received and merge sharded responses.
+     * Clients should not cache sharded list responses as a full representation
+     * of the collection.
+     * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+     * +featureGate=ShardedListAndWatch
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo shardInfo = 5; + */ + public io.kubernetes.client.proto.Meta.ShardInfoOrBuilder getShardInfoOrBuilder() { + return shardInfo_ == null ? io.kubernetes.client.proto.Meta.ShardInfo.getDefaultInstance() : shardInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -27290,6 +27461,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeInt64(4, remainingItemCount_); } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(5, getShardInfo()); + } unknownFields.writeTo(output); } @@ -27312,6 +27486,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, remainingItemCount_); } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getShardInfo()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -27348,6 +27526,11 @@ public boolean equals(final java.lang.Object obj) { result = result && (getRemainingItemCount() == other.getRemainingItemCount()); } + result = result && (hasShardInfo() == other.hasShardInfo()); + if (hasShardInfo()) { + result = result && getShardInfo() + .equals(other.getShardInfo()); + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -27376,6 +27559,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRemainingItemCount()); } + if (hasShardInfo()) { + hash = (37 * hash) + SHARDINFO_FIELD_NUMBER; + hash = (53 * hash) + getShardInfo().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -27509,6 +27696,7 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getShardInfoFieldBuilder(); } } @java.lang.Override @@ -27522,6 +27710,12 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000004); remainingItemCount_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); + if (shardInfoBuilder_ == null) { + shardInfo_ = null; + } else { + shardInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); return this; } @@ -27566,6 +27760,14 @@ public io.kubernetes.client.proto.Meta.ListMeta buildPartial() { to_bitField0_ |= 0x00000008; } result.remainingItemCount_ = remainingItemCount_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + if (shardInfoBuilder_ == null) { + result.shardInfo_ = shardInfo_; + } else { + result.shardInfo_ = shardInfoBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -27633,6 +27835,9 @@ public Builder mergeFrom(io.kubernetes.client.proto.Meta.ListMeta other) { if (other.hasRemainingItemCount()) { setRemainingItemCount(other.getRemainingItemCount()); } + if (other.hasShardInfo()) { + mergeShardInfo(other.getShardInfo()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -28124,6 +28329,223 @@ public Builder clearRemainingItemCount() { onChanged(); return this; } + + private io.kubernetes.client.proto.Meta.ShardInfo shardInfo_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ShardInfo, io.kubernetes.client.proto.Meta.ShardInfo.Builder, io.kubernetes.client.proto.Meta.ShardInfoOrBuilder> shardInfoBuilder_; + /** + *
+       * shardInfo is set when the list is a filtered subset of the full collection,
+       * as selected by a shard selector on the request. It echoes back the selector
+       * so clients can verify which shard they received and merge sharded responses.
+       * Clients should not cache sharded list responses as a full representation
+       * of the collection.
+       * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+       * +featureGate=ShardedListAndWatch
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo shardInfo = 5; + */ + public boolean hasShardInfo() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+       * shardInfo is set when the list is a filtered subset of the full collection,
+       * as selected by a shard selector on the request. It echoes back the selector
+       * so clients can verify which shard they received and merge sharded responses.
+       * Clients should not cache sharded list responses as a full representation
+       * of the collection.
+       * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+       * +featureGate=ShardedListAndWatch
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo shardInfo = 5; + */ + public io.kubernetes.client.proto.Meta.ShardInfo getShardInfo() { + if (shardInfoBuilder_ == null) { + return shardInfo_ == null ? io.kubernetes.client.proto.Meta.ShardInfo.getDefaultInstance() : shardInfo_; + } else { + return shardInfoBuilder_.getMessage(); + } + } + /** + *
+       * shardInfo is set when the list is a filtered subset of the full collection,
+       * as selected by a shard selector on the request. It echoes back the selector
+       * so clients can verify which shard they received and merge sharded responses.
+       * Clients should not cache sharded list responses as a full representation
+       * of the collection.
+       * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+       * +featureGate=ShardedListAndWatch
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo shardInfo = 5; + */ + public Builder setShardInfo(io.kubernetes.client.proto.Meta.ShardInfo value) { + if (shardInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + shardInfo_ = value; + onChanged(); + } else { + shardInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + *
+       * shardInfo is set when the list is a filtered subset of the full collection,
+       * as selected by a shard selector on the request. It echoes back the selector
+       * so clients can verify which shard they received and merge sharded responses.
+       * Clients should not cache sharded list responses as a full representation
+       * of the collection.
+       * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+       * +featureGate=ShardedListAndWatch
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo shardInfo = 5; + */ + public Builder setShardInfo( + io.kubernetes.client.proto.Meta.ShardInfo.Builder builderForValue) { + if (shardInfoBuilder_ == null) { + shardInfo_ = builderForValue.build(); + onChanged(); + } else { + shardInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + return this; + } + /** + *
+       * shardInfo is set when the list is a filtered subset of the full collection,
+       * as selected by a shard selector on the request. It echoes back the selector
+       * so clients can verify which shard they received and merge sharded responses.
+       * Clients should not cache sharded list responses as a full representation
+       * of the collection.
+       * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+       * +featureGate=ShardedListAndWatch
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo shardInfo = 5; + */ + public Builder mergeShardInfo(io.kubernetes.client.proto.Meta.ShardInfo value) { + if (shardInfoBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010) && + shardInfo_ != null && + shardInfo_ != io.kubernetes.client.proto.Meta.ShardInfo.getDefaultInstance()) { + shardInfo_ = + io.kubernetes.client.proto.Meta.ShardInfo.newBuilder(shardInfo_).mergeFrom(value).buildPartial(); + } else { + shardInfo_ = value; + } + onChanged(); + } else { + shardInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + return this; + } + /** + *
+       * shardInfo is set when the list is a filtered subset of the full collection,
+       * as selected by a shard selector on the request. It echoes back the selector
+       * so clients can verify which shard they received and merge sharded responses.
+       * Clients should not cache sharded list responses as a full representation
+       * of the collection.
+       * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+       * +featureGate=ShardedListAndWatch
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo shardInfo = 5; + */ + public Builder clearShardInfo() { + if (shardInfoBuilder_ == null) { + shardInfo_ = null; + onChanged(); + } else { + shardInfoBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + /** + *
+       * shardInfo is set when the list is a filtered subset of the full collection,
+       * as selected by a shard selector on the request. It echoes back the selector
+       * so clients can verify which shard they received and merge sharded responses.
+       * Clients should not cache sharded list responses as a full representation
+       * of the collection.
+       * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+       * +featureGate=ShardedListAndWatch
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo shardInfo = 5; + */ + public io.kubernetes.client.proto.Meta.ShardInfo.Builder getShardInfoBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getShardInfoFieldBuilder().getBuilder(); + } + /** + *
+       * shardInfo is set when the list is a filtered subset of the full collection,
+       * as selected by a shard selector on the request. It echoes back the selector
+       * so clients can verify which shard they received and merge sharded responses.
+       * Clients should not cache sharded list responses as a full representation
+       * of the collection.
+       * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+       * +featureGate=ShardedListAndWatch
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo shardInfo = 5; + */ + public io.kubernetes.client.proto.Meta.ShardInfoOrBuilder getShardInfoOrBuilder() { + if (shardInfoBuilder_ != null) { + return shardInfoBuilder_.getMessageOrBuilder(); + } else { + return shardInfo_ == null ? + io.kubernetes.client.proto.Meta.ShardInfo.getDefaultInstance() : shardInfo_; + } + } + /** + *
+       * shardInfo is set when the list is a filtered subset of the full collection,
+       * as selected by a shard selector on the request. It echoes back the selector
+       * so clients can verify which shard they received and merge sharded responses.
+       * Clients should not cache sharded list responses as a full representation
+       * of the collection.
+       * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+       * +featureGate=ShardedListAndWatch
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo shardInfo = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ShardInfo, io.kubernetes.client.proto.Meta.ShardInfo.Builder, io.kubernetes.client.proto.Meta.ShardInfoOrBuilder> + getShardInfoFieldBuilder() { + if (shardInfoBuilder_ == null) { + shardInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ShardInfo, io.kubernetes.client.proto.Meta.ShardInfo.Builder, io.kubernetes.client.proto.Meta.ShardInfoOrBuilder>( + getShardInfo(), + getParentForChildren(), + isClean()); + shardInfo_ = null; + } + return shardInfoBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -28563,6 +28985,104 @@ public interface ListOptionsOrBuilder extends * optional bool sendInitialEvents = 11; */ boolean getSendInitialEvents(); + + /** + *
+     * shardSelector restricts the list of returned objects using a CEL-based
+     * shard selector expression. The format uses the shardRange() function
+     * combined with || (logical OR) to specify one or more hash ranges:
+     *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000')
+     *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+     * Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"),
+     * NOT the fieldSelector format ("metadata.uid"). Currently supported paths:
+     *   - object.metadata.uid
+     *   - object.metadata.namespace
+     * hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix,
+     * defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a
+     * hash space. The full range is [0x0, 0x10000000000000000), where the exclusive
+     * upper bound equals 2^64.
+     * Examples:
+     *   2-shard split:
+     *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')
+     *     shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+     *   4-shard split:
+     *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')
+     *     shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')
+     *     shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')
+     *     shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')
+     * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+     * +featureGate=ShardedListAndWatch
+     * +optional
+     * 
+ * + * optional string shardSelector = 15; + */ + boolean hasShardSelector(); + /** + *
+     * shardSelector restricts the list of returned objects using a CEL-based
+     * shard selector expression. The format uses the shardRange() function
+     * combined with || (logical OR) to specify one or more hash ranges:
+     *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000')
+     *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+     * Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"),
+     * NOT the fieldSelector format ("metadata.uid"). Currently supported paths:
+     *   - object.metadata.uid
+     *   - object.metadata.namespace
+     * hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix,
+     * defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a
+     * hash space. The full range is [0x0, 0x10000000000000000), where the exclusive
+     * upper bound equals 2^64.
+     * Examples:
+     *   2-shard split:
+     *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')
+     *     shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+     *   4-shard split:
+     *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')
+     *     shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')
+     *     shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')
+     *     shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')
+     * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+     * +featureGate=ShardedListAndWatch
+     * +optional
+     * 
+ * + * optional string shardSelector = 15; + */ + java.lang.String getShardSelector(); + /** + *
+     * shardSelector restricts the list of returned objects using a CEL-based
+     * shard selector expression. The format uses the shardRange() function
+     * combined with || (logical OR) to specify one or more hash ranges:
+     *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000')
+     *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+     * Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"),
+     * NOT the fieldSelector format ("metadata.uid"). Currently supported paths:
+     *   - object.metadata.uid
+     *   - object.metadata.namespace
+     * hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix,
+     * defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a
+     * hash space. The full range is [0x0, 0x10000000000000000), where the exclusive
+     * upper bound equals 2^64.
+     * Examples:
+     *   2-shard split:
+     *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')
+     *     shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+     *   4-shard split:
+     *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')
+     *     shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')
+     *     shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')
+     *     shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')
+     * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+     * +featureGate=ShardedListAndWatch
+     * +optional
+     * 
+ * + * optional string shardSelector = 15; + */ + com.google.protobuf.ByteString + getShardSelectorBytes(); } /** *
@@ -28591,6 +29111,7 @@ private ListOptions() {
       limit_ = 0L;
       continue_ = "";
       sendInitialEvents_ = false;
+      shardSelector_ = "";
     }
 
     @java.lang.Override
@@ -28672,6 +29193,12 @@ private ListOptions(
               sendInitialEvents_ = input.readBool();
               break;
             }
+            case 122: {
+              com.google.protobuf.ByteString bs = input.readBytes();
+              bitField0_ |= 0x00000400;
+              shardSelector_ = bs;
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -29258,6 +29785,132 @@ public boolean getSendInitialEvents() {
       return sendInitialEvents_;
     }
 
+    public static final int SHARDSELECTOR_FIELD_NUMBER = 15;
+    private volatile java.lang.Object shardSelector_;
+    /**
+     * 
+     * shardSelector restricts the list of returned objects using a CEL-based
+     * shard selector expression. The format uses the shardRange() function
+     * combined with || (logical OR) to specify one or more hash ranges:
+     *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000')
+     *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+     * Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"),
+     * NOT the fieldSelector format ("metadata.uid"). Currently supported paths:
+     *   - object.metadata.uid
+     *   - object.metadata.namespace
+     * hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix,
+     * defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a
+     * hash space. The full range is [0x0, 0x10000000000000000), where the exclusive
+     * upper bound equals 2^64.
+     * Examples:
+     *   2-shard split:
+     *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')
+     *     shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+     *   4-shard split:
+     *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')
+     *     shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')
+     *     shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')
+     *     shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')
+     * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+     * +featureGate=ShardedListAndWatch
+     * +optional
+     * 
+ * + * optional string shardSelector = 15; + */ + public boolean hasShardSelector() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + *
+     * shardSelector restricts the list of returned objects using a CEL-based
+     * shard selector expression. The format uses the shardRange() function
+     * combined with || (logical OR) to specify one or more hash ranges:
+     *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000')
+     *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+     * Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"),
+     * NOT the fieldSelector format ("metadata.uid"). Currently supported paths:
+     *   - object.metadata.uid
+     *   - object.metadata.namespace
+     * hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix,
+     * defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a
+     * hash space. The full range is [0x0, 0x10000000000000000), where the exclusive
+     * upper bound equals 2^64.
+     * Examples:
+     *   2-shard split:
+     *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')
+     *     shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+     *   4-shard split:
+     *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')
+     *     shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')
+     *     shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')
+     *     shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')
+     * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+     * +featureGate=ShardedListAndWatch
+     * +optional
+     * 
+ * + * optional string shardSelector = 15; + */ + public java.lang.String getShardSelector() { + java.lang.Object ref = shardSelector_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + shardSelector_ = s; + } + return s; + } + } + /** + *
+     * shardSelector restricts the list of returned objects using a CEL-based
+     * shard selector expression. The format uses the shardRange() function
+     * combined with || (logical OR) to specify one or more hash ranges:
+     *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000')
+     *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+     * Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"),
+     * NOT the fieldSelector format ("metadata.uid"). Currently supported paths:
+     *   - object.metadata.uid
+     *   - object.metadata.namespace
+     * hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix,
+     * defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a
+     * hash space. The full range is [0x0, 0x10000000000000000), where the exclusive
+     * upper bound equals 2^64.
+     * Examples:
+     *   2-shard split:
+     *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')
+     *     shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+     *   4-shard split:
+     *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')
+     *     shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')
+     *     shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')
+     *     shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')
+     * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+     * +featureGate=ShardedListAndWatch
+     * +optional
+     * 
+ * + * optional string shardSelector = 15; + */ + public com.google.protobuf.ByteString + getShardSelectorBytes() { + java.lang.Object ref = shardSelector_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shardSelector_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -29302,6 +29955,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000200) == 0x00000200)) { output.writeBool(11, sendInitialEvents_); } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, shardSelector_); + } unknownFields.writeTo(output); } @@ -29346,6 +30002,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, sendInitialEvents_); } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, shardSelector_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -29412,6 +30071,11 @@ public boolean equals(final java.lang.Object obj) { result = result && (getSendInitialEvents() == other.getSendInitialEvents()); } + result = result && (hasShardSelector() == other.hasShardSelector()); + if (hasShardSelector()) { + result = result && getShardSelector() + .equals(other.getShardSelector()); + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -29468,6 +30132,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSendInitialEvents()); } + if (hasShardSelector()) { + hash = (37 * hash) + SHARDSELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getShardSelector().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -29625,6 +30293,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000100); sendInitialEvents_ = false; bitField0_ = (bitField0_ & ~0x00000200); + shardSelector_ = ""; + bitField0_ = (bitField0_ & ~0x00000400); return this; } @@ -29693,6 +30363,10 @@ public io.kubernetes.client.proto.Meta.ListOptions buildPartial() { to_bitField0_ |= 0x00000200; } result.sendInitialEvents_ = sendInitialEvents_; + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000400; + } + result.shardSelector_ = shardSelector_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -29782,6 +30456,11 @@ public Builder mergeFrom(io.kubernetes.client.proto.Meta.ListOptions other) { if (other.hasSendInitialEvents()) { setSendInitialEvents(other.getSendInitialEvents()); } + if (other.hasShardSelector()) { + bitField0_ |= 0x00000400; + shardSelector_ = other.shardSelector_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -30887,6 +31566,250 @@ public Builder clearSendInitialEvents() { onChanged(); return this; } + + private java.lang.Object shardSelector_ = ""; + /** + *
+       * shardSelector restricts the list of returned objects using a CEL-based
+       * shard selector expression. The format uses the shardRange() function
+       * combined with || (logical OR) to specify one or more hash ranges:
+       *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000')
+       *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+       * Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"),
+       * NOT the fieldSelector format ("metadata.uid"). Currently supported paths:
+       *   - object.metadata.uid
+       *   - object.metadata.namespace
+       * hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix,
+       * defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a
+       * hash space. The full range is [0x0, 0x10000000000000000), where the exclusive
+       * upper bound equals 2^64.
+       * Examples:
+       *   2-shard split:
+       *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')
+       *     shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+       *   4-shard split:
+       *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')
+       *     shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')
+       *     shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')
+       *     shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')
+       * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+       * +featureGate=ShardedListAndWatch
+       * +optional
+       * 
+ * + * optional string shardSelector = 15; + */ + public boolean hasShardSelector() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + *
+       * shardSelector restricts the list of returned objects using a CEL-based
+       * shard selector expression. The format uses the shardRange() function
+       * combined with || (logical OR) to specify one or more hash ranges:
+       *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000')
+       *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+       * Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"),
+       * NOT the fieldSelector format ("metadata.uid"). Currently supported paths:
+       *   - object.metadata.uid
+       *   - object.metadata.namespace
+       * hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix,
+       * defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a
+       * hash space. The full range is [0x0, 0x10000000000000000), where the exclusive
+       * upper bound equals 2^64.
+       * Examples:
+       *   2-shard split:
+       *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')
+       *     shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+       *   4-shard split:
+       *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')
+       *     shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')
+       *     shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')
+       *     shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')
+       * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+       * +featureGate=ShardedListAndWatch
+       * +optional
+       * 
+ * + * optional string shardSelector = 15; + */ + public java.lang.String getShardSelector() { + java.lang.Object ref = shardSelector_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + shardSelector_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * shardSelector restricts the list of returned objects using a CEL-based
+       * shard selector expression. The format uses the shardRange() function
+       * combined with || (logical OR) to specify one or more hash ranges:
+       *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000')
+       *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+       * Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"),
+       * NOT the fieldSelector format ("metadata.uid"). Currently supported paths:
+       *   - object.metadata.uid
+       *   - object.metadata.namespace
+       * hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix,
+       * defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a
+       * hash space. The full range is [0x0, 0x10000000000000000), where the exclusive
+       * upper bound equals 2^64.
+       * Examples:
+       *   2-shard split:
+       *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')
+       *     shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+       *   4-shard split:
+       *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')
+       *     shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')
+       *     shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')
+       *     shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')
+       * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+       * +featureGate=ShardedListAndWatch
+       * +optional
+       * 
+ * + * optional string shardSelector = 15; + */ + public com.google.protobuf.ByteString + getShardSelectorBytes() { + java.lang.Object ref = shardSelector_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shardSelector_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * shardSelector restricts the list of returned objects using a CEL-based
+       * shard selector expression. The format uses the shardRange() function
+       * combined with || (logical OR) to specify one or more hash ranges:
+       *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000')
+       *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+       * Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"),
+       * NOT the fieldSelector format ("metadata.uid"). Currently supported paths:
+       *   - object.metadata.uid
+       *   - object.metadata.namespace
+       * hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix,
+       * defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a
+       * hash space. The full range is [0x0, 0x10000000000000000), where the exclusive
+       * upper bound equals 2^64.
+       * Examples:
+       *   2-shard split:
+       *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')
+       *     shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+       *   4-shard split:
+       *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')
+       *     shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')
+       *     shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')
+       *     shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')
+       * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+       * +featureGate=ShardedListAndWatch
+       * +optional
+       * 
+ * + * optional string shardSelector = 15; + */ + public Builder setShardSelector( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + shardSelector_ = value; + onChanged(); + return this; + } + /** + *
+       * shardSelector restricts the list of returned objects using a CEL-based
+       * shard selector expression. The format uses the shardRange() function
+       * combined with || (logical OR) to specify one or more hash ranges:
+       *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000')
+       *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+       * Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"),
+       * NOT the fieldSelector format ("metadata.uid"). Currently supported paths:
+       *   - object.metadata.uid
+       *   - object.metadata.namespace
+       * hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix,
+       * defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a
+       * hash space. The full range is [0x0, 0x10000000000000000), where the exclusive
+       * upper bound equals 2^64.
+       * Examples:
+       *   2-shard split:
+       *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')
+       *     shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+       *   4-shard split:
+       *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')
+       *     shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')
+       *     shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')
+       *     shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')
+       * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+       * +featureGate=ShardedListAndWatch
+       * +optional
+       * 
+ * + * optional string shardSelector = 15; + */ + public Builder clearShardSelector() { + bitField0_ = (bitField0_ & ~0x00000400); + shardSelector_ = getDefaultInstance().getShardSelector(); + onChanged(); + return this; + } + /** + *
+       * shardSelector restricts the list of returned objects using a CEL-based
+       * shard selector expression. The format uses the shardRange() function
+       * combined with || (logical OR) to specify one or more hash ranges:
+       *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000')
+       *   shardRange(object.metadata.uid, '0x0', '0x8000000000000000') || shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+       * Field paths use CEL-style object-rooted syntax (e.g. "object.metadata.uid"),
+       * NOT the fieldSelector format ("metadata.uid"). Currently supported paths:
+       *   - object.metadata.uid
+       *   - object.metadata.namespace
+       * hexStart and hexEnd are single-quoted CEL string literals with a '0x' prefix,
+       * defining the inclusive lower and exclusive upper bounds over the 64-bit FNV-1a
+       * hash space. The full range is [0x0, 0x10000000000000000), where the exclusive
+       * upper bound equals 2^64.
+       * Examples:
+       *   2-shard split:
+       *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x8000000000000000')
+       *     shard 1: shardRange(object.metadata.uid, '0x8000000000000000', '0x10000000000000000')
+       *   4-shard split:
+       *     shard 0: shardRange(object.metadata.uid, '0x0000000000000000', '0x4000000000000000')
+       *     shard 1: shardRange(object.metadata.uid, '0x4000000000000000', '0x8000000000000000')
+       *     shard 2: shardRange(object.metadata.uid, '0x8000000000000000', '0xc000000000000000')
+       *     shard 3: shardRange(object.metadata.uid, '0xc000000000000000', '0x10000000000000000')
+       * This is an alpha field and requires enabling the ShardedListAndWatch feature gate.
+       * +featureGate=ShardedListAndWatch
+       * +optional
+       * 
+ * + * optional string shardSelector = 15; + */ + public Builder setShardSelectorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + shardSelector_ = value; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -48020,6 +48943,671 @@ public io.kubernetes.client.proto.Meta.ServerAddressByClientCIDR getDefaultInsta } + public interface ShardInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * selector is the shard selector string from the request, echoed back so clients
+     * can verify which shard they received and merge responses from multiple shards.
+     * +required
+     * 
+ * + * optional string selector = 1; + */ + boolean hasSelector(); + /** + *
+     * selector is the shard selector string from the request, echoed back so clients
+     * can verify which shard they received and merge responses from multiple shards.
+     * +required
+     * 
+ * + * optional string selector = 1; + */ + java.lang.String getSelector(); + /** + *
+     * selector is the shard selector string from the request, echoed back so clients
+     * can verify which shard they received and merge responses from multiple shards.
+     * +required
+     * 
+ * + * optional string selector = 1; + */ + com.google.protobuf.ByteString + getSelectorBytes(); + } + /** + *
+   * ShardInfo describes the shard selector that was applied to produce a list response.
+   * Its presence on a list response indicates the list is a filtered subset.
+   * 
+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo} + */ + public static final class ShardInfo extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo) + ShardInfoOrBuilder { + private static final long serialVersionUID = 0L; + // Use ShardInfo.newBuilder() to construct. + private ShardInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ShardInfo() { + selector_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ShardInfo( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + selector_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ShardInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ShardInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Meta.ShardInfo.class, io.kubernetes.client.proto.Meta.ShardInfo.Builder.class); + } + + private int bitField0_; + public static final int SELECTOR_FIELD_NUMBER = 1; + private volatile java.lang.Object selector_; + /** + *
+     * selector is the shard selector string from the request, echoed back so clients
+     * can verify which shard they received and merge responses from multiple shards.
+     * +required
+     * 
+ * + * optional string selector = 1; + */ + public boolean hasSelector() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * selector is the shard selector string from the request, echoed back so clients
+     * can verify which shard they received and merge responses from multiple shards.
+     * +required
+     * 
+ * + * optional string selector = 1; + */ + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + selector_ = s; + } + return s; + } + } + /** + *
+     * selector is the shard selector string from the request, echoed back so clients
+     * can verify which shard they received and merge responses from multiple shards.
+     * +required
+     * 
+ * + * optional string selector = 1; + */ + public com.google.protobuf.ByteString + getSelectorBytes() { + java.lang.Object ref = selector_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selector_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, selector_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, selector_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.Meta.ShardInfo)) { + return super.equals(obj); + } + io.kubernetes.client.proto.Meta.ShardInfo other = (io.kubernetes.client.proto.Meta.ShardInfo) obj; + + boolean result = true; + result = result && (hasSelector() == other.hasSelector()); + if (hasSelector()) { + result = result && getSelector() + .equals(other.getSelector()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSelector()) { + hash = (37 * hash) + SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getSelector().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.Meta.ShardInfo parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.Meta.ShardInfo parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.Meta.ShardInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.Meta.ShardInfo parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.Meta.ShardInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.Meta.ShardInfo parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.Meta.ShardInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.Meta.ShardInfo parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.Meta.ShardInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.Meta.ShardInfo parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.Meta.ShardInfo parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.Meta.ShardInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.Meta.ShardInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ShardInfo describes the shard selector that was applied to produce a list response.
+     * Its presence on a list response indicates the list is a filtered subset.
+     * 
+ * + * Protobuf type {@code k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo) + io.kubernetes.client.proto.Meta.ShardInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ShardInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ShardInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.Meta.ShardInfo.class, io.kubernetes.client.proto.Meta.ShardInfo.Builder.class); + } + + // Construct using io.kubernetes.client.proto.Meta.ShardInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + selector_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.Meta.internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ShardInfo_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.Meta.ShardInfo getDefaultInstanceForType() { + return io.kubernetes.client.proto.Meta.ShardInfo.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.Meta.ShardInfo build() { + io.kubernetes.client.proto.Meta.ShardInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.Meta.ShardInfo buildPartial() { + io.kubernetes.client.proto.Meta.ShardInfo result = new io.kubernetes.client.proto.Meta.ShardInfo(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.selector_ = selector_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.Meta.ShardInfo) { + return mergeFrom((io.kubernetes.client.proto.Meta.ShardInfo)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.Meta.ShardInfo other) { + if (other == io.kubernetes.client.proto.Meta.ShardInfo.getDefaultInstance()) return this; + if (other.hasSelector()) { + bitField0_ |= 0x00000001; + selector_ = other.selector_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.Meta.ShardInfo parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.Meta.ShardInfo) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object selector_ = ""; + /** + *
+       * selector is the shard selector string from the request, echoed back so clients
+       * can verify which shard they received and merge responses from multiple shards.
+       * +required
+       * 
+ * + * optional string selector = 1; + */ + public boolean hasSelector() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * selector is the shard selector string from the request, echoed back so clients
+       * can verify which shard they received and merge responses from multiple shards.
+       * +required
+       * 
+ * + * optional string selector = 1; + */ + public java.lang.String getSelector() { + java.lang.Object ref = selector_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + selector_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * selector is the shard selector string from the request, echoed back so clients
+       * can verify which shard they received and merge responses from multiple shards.
+       * +required
+       * 
+ * + * optional string selector = 1; + */ + public com.google.protobuf.ByteString + getSelectorBytes() { + java.lang.Object ref = selector_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + selector_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * selector is the shard selector string from the request, echoed back so clients
+       * can verify which shard they received and merge responses from multiple shards.
+       * +required
+       * 
+ * + * optional string selector = 1; + */ + public Builder setSelector( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + selector_ = value; + onChanged(); + return this; + } + /** + *
+       * selector is the shard selector string from the request, echoed back so clients
+       * can verify which shard they received and merge responses from multiple shards.
+       * +required
+       * 
+ * + * optional string selector = 1; + */ + public Builder clearSelector() { + bitField0_ = (bitField0_ & ~0x00000001); + selector_ = getDefaultInstance().getSelector(); + onChanged(); + return this; + } + /** + *
+       * selector is the shard selector string from the request, echoed back so clients
+       * can verify which shard they received and merge responses from multiple shards.
+       * +required
+       * 
+ * + * optional string selector = 1; + */ + public Builder setSelectorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + selector_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo) + } + + // @@protoc_insertion_point(class_scope:k8s.io.apimachinery.pkg.apis.meta.v1.ShardInfo) + private static final io.kubernetes.client.proto.Meta.ShardInfo DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.Meta.ShardInfo(); + } + + public static io.kubernetes.client.proto.Meta.ShardInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ShardInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ShardInfo(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.Meta.ShardInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface StatusOrBuilder extends // @@protoc_insertion_point(interface_extends:k8s.io.apimachinery.pkg.apis.meta.v1.Status) com.google.protobuf.MessageOrBuilder { @@ -59471,6 +61059,11 @@ public io.kubernetes.client.proto.Meta.WatchEvent getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ServerAddressByClientCIDR_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ShardInfo_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ShardInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Status_descriptor; private static final @@ -59595,80 +61188,83 @@ public io.kubernetes.client.proto.Meta.WatchEvent getDefaultInstanceForType() { "\030\003 \003(\t\"\206\001\n\004List\022@\n\010metadata\030\001 \001(\0132..k8s." + "io.apimachinery.pkg.apis.meta.v1.ListMet" + "a\022<\n\005items\030\002 \003(\0132-.k8s.io.apimachinery.p" + - "kg.runtime.RawExtension\"c\n\010ListMeta\022\020\n\010s" + - "elfLink\030\001 \001(\t\022\027\n\017resourceVersion\030\002 \001(\t\022\020" + - "\n\010continue\030\003 \001(\t\022\032\n\022remainingItemCount\030\004" + - " \001(\003\"\362\001\n\013ListOptions\022\025\n\rlabelSelector\030\001 " + - "\001(\t\022\025\n\rfieldSelector\030\002 \001(\t\022\r\n\005watch\030\003 \001(" + - "\010\022\033\n\023allowWatchBookmarks\030\t \001(\010\022\027\n\017resour" + - "ceVersion\030\004 \001(\t\022\034\n\024resourceVersionMatch\030" + - "\n \001(\t\022\026\n\016timeoutSeconds\030\005 \001(\003\022\r\n\005limit\030\007" + - " \001(\003\022\020\n\010continue\030\010 \001(\t\022\031\n\021sendInitialEve" + - "nts\030\013 \001(\010\"\361\001\n\022ManagedFieldsEntry\022\017\n\007mana" + - "ger\030\001 \001(\t\022\021\n\toperation\030\002 \001(\t\022\022\n\napiVersi" + - "on\030\003 \001(\t\0228\n\004time\030\004 \001(\0132*.k8s.io.apimachi" + - "nery.pkg.apis.meta.v1.Time\022\022\n\nfieldsType" + - "\030\006 \001(\t\022@\n\010fieldsV1\030\007 \001(\0132..k8s.io.apimac" + - "hinery.pkg.apis.meta.v1.FieldsV1\022\023\n\013subr" + - "esource\030\010 \001(\t\"+\n\tMicroTime\022\017\n\007seconds\030\001 " + - "\001(\003\022\r\n\005nanos\030\002 \001(\005\"\376\005\n\nObjectMeta\022\014\n\004nam" + - "e\030\001 \001(\t\022\024\n\014generateName\030\002 \001(\t\022\021\n\tnamespa" + - "ce\030\003 \001(\t\022\020\n\010selfLink\030\004 \001(\t\022\013\n\003uid\030\005 \001(\t\022" + - "\027\n\017resourceVersion\030\006 \001(\t\022\022\n\ngeneration\030\007" + - " \001(\003\022E\n\021creationTimestamp\030\010 \001(\0132*.k8s.io" + - ".apimachinery.pkg.apis.meta.v1.Time\022E\n\021d" + - "eletionTimestamp\030\t \001(\0132*.k8s.io.apimachi" + - "nery.pkg.apis.meta.v1.Time\022\"\n\032deletionGr" + - "acePeriodSeconds\030\n \001(\003\022L\n\006labels\030\013 \003(\0132<" + - ".k8s.io.apimachinery.pkg.apis.meta.v1.Ob" + - "jectMeta.LabelsEntry\022V\n\013annotations\030\014 \003(" + - "\0132A.k8s.io.apimachinery.pkg.apis.meta.v1" + - ".ObjectMeta.AnnotationsEntry\022M\n\017ownerRef" + - "erences\030\r \003(\01324.k8s.io.apimachinery.pkg." + - "apis.meta.v1.OwnerReference\022\022\n\nfinalizer" + - "s\030\016 \003(\t\022O\n\rmanagedFields\030\021 \003(\01328.k8s.io." + - "apimachinery.pkg.apis.meta.v1.ManagedFie" + - "ldsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022\013\n\003k" + - "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"}\n\016OwnerRefe" + - "rence\022\022\n\napiVersion\030\005 \001(\t\022\014\n\004kind\030\001 \001(\t\022" + - "\014\n\004name\030\003 \001(\t\022\013\n\003uid\030\004 \001(\t\022\022\n\ncontroller" + - "\030\006 \001(\010\022\032\n\022blockOwnerDeletion\030\007 \001(\010\"[\n\025Pa" + - "rtialObjectMetadata\022B\n\010metadata\030\001 \001(\01320." + - "k8s.io.apimachinery.pkg.apis.meta.v1.Obj" + - "ectMeta\"\251\001\n\031PartialObjectMetadataList\022@\n" + - "\010metadata\030\001 \001(\0132..k8s.io.apimachinery.pk" + - "g.apis.meta.v1.ListMeta\022J\n\005items\030\002 \003(\0132;" + - ".k8s.io.apimachinery.pkg.apis.meta.v1.Pa" + - "rtialObjectMetadata\"\007\n\005Patch\"\\\n\014PatchOpt" + - "ions\022\016\n\006dryRun\030\001 \003(\t\022\r\n\005force\030\002 \001(\010\022\024\n\014f" + - "ieldManager\030\003 \001(\t\022\027\n\017fieldValidation\030\004 \001" + - "(\t\"5\n\rPreconditions\022\013\n\003uid\030\001 \001(\t\022\027\n\017reso" + - "urceVersion\030\002 \001(\t\"\032\n\tRootPaths\022\r\n\005paths\030" + - "\001 \003(\t\"F\n\031ServerAddressByClientCIDR\022\022\n\ncl" + - "ientCIDR\030\001 \001(\t\022\025\n\rserverAddress\030\002 \001(\t\"\317\001" + - "\n\006Status\022@\n\010metadata\030\001 \001(\0132..k8s.io.apim" + - "achinery.pkg.apis.meta.v1.ListMeta\022\016\n\006st" + - "atus\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022\016\n\006reason\030\004 " + - "\001(\t\022D\n\007details\030\005 \001(\01323.k8s.io.apimachine" + - "ry.pkg.apis.meta.v1.StatusDetails\022\014\n\004cod" + - "e\030\006 \001(\005\"=\n\013StatusCause\022\016\n\006reason\030\001 \001(\t\022\017" + - "\n\007message\030\002 \001(\t\022\r\n\005field\030\003 \001(\t\"\245\001\n\rStatu" + - "sDetails\022\014\n\004name\030\001 \001(\t\022\r\n\005group\030\002 \001(\t\022\014\n" + - "\004kind\030\003 \001(\t\022\013\n\003uid\030\006 \001(\t\022A\n\006causes\030\004 \003(\013" + - "21.k8s.io.apimachinery.pkg.apis.meta.v1." + - "StatusCause\022\031\n\021retryAfterSeconds\030\005 \001(\005\"%" + - "\n\014TableOptions\022\025\n\rincludeObject\030\001 \001(\t\"&\n" + - "\004Time\022\017\n\007seconds\030\001 \001(\003\022\r\n\005nanos\030\002 \001(\005\"+\n" + - "\tTimestamp\022\017\n\007seconds\030\001 \001(\003\022\r\n\005nanos\030\002 \001" + - "(\005\",\n\010TypeMeta\022\014\n\004kind\030\001 \001(\t\022\022\n\napiVersi" + - "on\030\002 \001(\t\"N\n\rUpdateOptions\022\016\n\006dryRun\030\001 \003(" + - "\t\022\024\n\014fieldManager\030\002 \001(\t\022\027\n\017fieldValidati" + - "on\030\003 \001(\t\"\026\n\005Verbs\022\r\n\005items\030\001 \003(\t\"Y\n\nWatc" + - "hEvent\022\014\n\004type\030\001 \001(\t\022=\n\006object\030\002 \001(\0132-.k" + - "8s.io.apimachinery.pkg.runtime.RawExtens" + - "ionBH\n\032io.kubernetes.client.protoB\004MetaZ" + - "$k8s.io/apimachinery/pkg/apis/meta/v1" + "kg.runtime.RawExtension\"\247\001\n\010ListMeta\022\020\n\010" + + "selfLink\030\001 \001(\t\022\027\n\017resourceVersion\030\002 \001(\t\022" + + "\020\n\010continue\030\003 \001(\t\022\032\n\022remainingItemCount\030" + + "\004 \001(\003\022B\n\tshardInfo\030\005 \001(\0132/.k8s.io.apimac" + + "hinery.pkg.apis.meta.v1.ShardInfo\"\211\002\n\013Li" + + "stOptions\022\025\n\rlabelSelector\030\001 \001(\t\022\025\n\rfiel" + + "dSelector\030\002 \001(\t\022\r\n\005watch\030\003 \001(\010\022\033\n\023allowW" + + "atchBookmarks\030\t \001(\010\022\027\n\017resourceVersion\030\004" + + " \001(\t\022\034\n\024resourceVersionMatch\030\n \001(\t\022\026\n\016ti" + + "meoutSeconds\030\005 \001(\003\022\r\n\005limit\030\007 \001(\003\022\020\n\010con" + + "tinue\030\010 \001(\t\022\031\n\021sendInitialEvents\030\013 \001(\010\022\025" + + "\n\rshardSelector\030\017 \001(\t\"\361\001\n\022ManagedFieldsE" + + "ntry\022\017\n\007manager\030\001 \001(\t\022\021\n\toperation\030\002 \001(\t" + + "\022\022\n\napiVersion\030\003 \001(\t\0228\n\004time\030\004 \001(\0132*.k8s" + + ".io.apimachinery.pkg.apis.meta.v1.Time\022\022" + + "\n\nfieldsType\030\006 \001(\t\022@\n\010fieldsV1\030\007 \001(\0132..k" + + "8s.io.apimachinery.pkg.apis.meta.v1.Fiel" + + "dsV1\022\023\n\013subresource\030\010 \001(\t\"+\n\tMicroTime\022\017" + + "\n\007seconds\030\001 \001(\003\022\r\n\005nanos\030\002 \001(\005\"\376\005\n\nObjec" + + "tMeta\022\014\n\004name\030\001 \001(\t\022\024\n\014generateName\030\002 \001(" + + "\t\022\021\n\tnamespace\030\003 \001(\t\022\020\n\010selfLink\030\004 \001(\t\022\013" + + "\n\003uid\030\005 \001(\t\022\027\n\017resourceVersion\030\006 \001(\t\022\022\n\n" + + "generation\030\007 \001(\003\022E\n\021creationTimestamp\030\010 " + + "\001(\0132*.k8s.io.apimachinery.pkg.apis.meta." + + "v1.Time\022E\n\021deletionTimestamp\030\t \001(\0132*.k8s" + + ".io.apimachinery.pkg.apis.meta.v1.Time\022\"" + + "\n\032deletionGracePeriodSeconds\030\n \001(\003\022L\n\006la" + + "bels\030\013 \003(\0132<.k8s.io.apimachinery.pkg.api" + + "s.meta.v1.ObjectMeta.LabelsEntry\022V\n\013anno" + + "tations\030\014 \003(\0132A.k8s.io.apimachinery.pkg." + + "apis.meta.v1.ObjectMeta.AnnotationsEntry" + + "\022M\n\017ownerReferences\030\r \003(\01324.k8s.io.apima" + + "chinery.pkg.apis.meta.v1.OwnerReference\022" + + "\022\n\nfinalizers\030\016 \003(\t\022O\n\rmanagedFields\030\021 \003" + + "(\01328.k8s.io.apimachinery.pkg.apis.meta.v" + + "1.ManagedFieldsEntry\032-\n\013LabelsEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotatio" + + "nsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "}\n\016OwnerReference\022\022\n\napiVersion\030\005 \001(\t\022\014\n" + + "\004kind\030\001 \001(\t\022\014\n\004name\030\003 \001(\t\022\013\n\003uid\030\004 \001(\t\022\022" + + "\n\ncontroller\030\006 \001(\010\022\032\n\022blockOwnerDeletion" + + "\030\007 \001(\010\"[\n\025PartialObjectMetadata\022B\n\010metad" + + "ata\030\001 \001(\01320.k8s.io.apimachinery.pkg.apis" + + ".meta.v1.ObjectMeta\"\251\001\n\031PartialObjectMet" + + "adataList\022@\n\010metadata\030\001 \001(\0132..k8s.io.api" + + "machinery.pkg.apis.meta.v1.ListMeta\022J\n\005i" + + "tems\030\002 \003(\0132;.k8s.io.apimachinery.pkg.api" + + "s.meta.v1.PartialObjectMetadata\"\007\n\005Patch" + + "\"\\\n\014PatchOptions\022\016\n\006dryRun\030\001 \003(\t\022\r\n\005forc" + + "e\030\002 \001(\010\022\024\n\014fieldManager\030\003 \001(\t\022\027\n\017fieldVa" + + "lidation\030\004 \001(\t\"5\n\rPreconditions\022\013\n\003uid\030\001" + + " \001(\t\022\027\n\017resourceVersion\030\002 \001(\t\"\032\n\tRootPat" + + "hs\022\r\n\005paths\030\001 \003(\t\"F\n\031ServerAddressByClie" + + "ntCIDR\022\022\n\nclientCIDR\030\001 \001(\t\022\025\n\rserverAddr" + + "ess\030\002 \001(\t\"\035\n\tShardInfo\022\020\n\010selector\030\001 \001(\t" + + "\"\317\001\n\006Status\022@\n\010metadata\030\001 \001(\0132..k8s.io.a" + + "pimachinery.pkg.apis.meta.v1.ListMeta\022\016\n" + + "\006status\030\002 \001(\t\022\017\n\007message\030\003 \001(\t\022\016\n\006reason" + + "\030\004 \001(\t\022D\n\007details\030\005 \001(\01323.k8s.io.apimach" + + "inery.pkg.apis.meta.v1.StatusDetails\022\014\n\004" + + "code\030\006 \001(\005\"=\n\013StatusCause\022\016\n\006reason\030\001 \001(" + + "\t\022\017\n\007message\030\002 \001(\t\022\r\n\005field\030\003 \001(\t\"\245\001\n\rSt" + + "atusDetails\022\014\n\004name\030\001 \001(\t\022\r\n\005group\030\002 \001(\t" + + "\022\014\n\004kind\030\003 \001(\t\022\013\n\003uid\030\006 \001(\t\022A\n\006causes\030\004 " + + "\003(\01321.k8s.io.apimachinery.pkg.apis.meta." + + "v1.StatusCause\022\031\n\021retryAfterSeconds\030\005 \001(" + + "\005\"%\n\014TableOptions\022\025\n\rincludeObject\030\001 \001(\t" + + "\"&\n\004Time\022\017\n\007seconds\030\001 \001(\003\022\r\n\005nanos\030\002 \001(\005" + + "\"+\n\tTimestamp\022\017\n\007seconds\030\001 \001(\003\022\r\n\005nanos\030" + + "\002 \001(\005\",\n\010TypeMeta\022\014\n\004kind\030\001 \001(\t\022\022\n\napiVe" + + "rsion\030\002 \001(\t\"N\n\rUpdateOptions\022\016\n\006dryRun\030\001" + + " \003(\t\022\024\n\014fieldManager\030\002 \001(\t\022\027\n\017fieldValid" + + "ation\030\003 \001(\t\"\026\n\005Verbs\022\r\n\005items\030\001 \003(\t\"Y\n\nW" + + "atchEvent\022\014\n\004type\030\001 \001(\t\022=\n\006object\030\002 \001(\0132" + + "-.k8s.io.apimachinery.pkg.runtime.RawExt" + + "ensionBH\n\032io.kubernetes.client.protoB\004Me" + + "taZ$k8s.io/apimachinery/pkg/apis/meta/v1" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -59827,13 +61423,13 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ListMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ListMeta_descriptor, - new java.lang.String[] { "SelfLink", "ResourceVersion", "Continue", "RemainingItemCount", }); + new java.lang.String[] { "SelfLink", "ResourceVersion", "Continue", "RemainingItemCount", "ShardInfo", }); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ListOptions_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ListOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ListOptions_descriptor, - new java.lang.String[] { "LabelSelector", "FieldSelector", "Watch", "AllowWatchBookmarks", "ResourceVersion", "ResourceVersionMatch", "TimeoutSeconds", "Limit", "Continue", "SendInitialEvents", }); + new java.lang.String[] { "LabelSelector", "FieldSelector", "Watch", "AllowWatchBookmarks", "ResourceVersion", "ResourceVersionMatch", "TimeoutSeconds", "Limit", "Continue", "SendInitialEvents", "ShardSelector", }); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ManagedFieldsEntry_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ManagedFieldsEntry_fieldAccessorTable = new @@ -59912,62 +61508,68 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ServerAddressByClientCIDR_descriptor, new java.lang.String[] { "ClientCIDR", "ServerAddress", }); - internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Status_descriptor = + internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ShardInfo_descriptor = getDescriptor().getMessageTypes().get(35); + internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ShardInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_ShardInfo_descriptor, + new java.lang.String[] { "Selector", }); + internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Status_descriptor = + getDescriptor().getMessageTypes().get(36); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Status_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Status_descriptor, new java.lang.String[] { "Metadata", "Status", "Message", "Reason", "Details", "Code", }); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_StatusCause_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_StatusCause_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_StatusCause_descriptor, new java.lang.String[] { "Reason", "Message", "Field", }); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_StatusDetails_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_StatusDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_StatusDetails_descriptor, new java.lang.String[] { "Name", "Group", "Kind", "Uid", "Causes", "RetryAfterSeconds", }); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_TableOptions_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_TableOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_TableOptions_descriptor, new java.lang.String[] { "IncludeObject", }); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Time_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Time_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Time_descriptor, new java.lang.String[] { "Seconds", "Nanos", }); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Timestamp_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Timestamp_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Timestamp_descriptor, new java.lang.String[] { "Seconds", "Nanos", }); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_TypeMeta_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(42); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_TypeMeta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_TypeMeta_descriptor, new java.lang.String[] { "Kind", "ApiVersion", }); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_UpdateOptions_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(43); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_UpdateOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_UpdateOptions_descriptor, new java.lang.String[] { "DryRun", "FieldManager", "FieldValidation", }); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Verbs_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(44); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Verbs_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_Verbs_descriptor, new java.lang.String[] { "Items", }); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_WatchEvent_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(45); internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_WatchEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_apimachinery_pkg_apis_meta_v1_WatchEvent_descriptor, diff --git a/proto/src/main/java/io/kubernetes/client/proto/Runtime.java b/proto/src/main/java/io/kubernetes/client/proto/Runtime.java index 769b54eae0..4fef3bdf5e 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/Runtime.java +++ b/proto/src/main/java/io/kubernetes/client/proto/Runtime.java @@ -45,7 +45,7 @@ public interface RawExtensionOrBuilder extends * various plugin types. * // Internal package: * type MyAPIObject struct { - * runtime.TypeMeta `json:",inline"` + * runtime.TypeMeta `json:""` * MyPlugin runtime.Object `json:"myPlugin"` * } * type PluginA struct { @@ -53,7 +53,7 @@ public interface RawExtensionOrBuilder extends * } * // External package: * type MyAPIObject struct { - * runtime.TypeMeta `json:",inline"` + * runtime.TypeMeta `json:""` * MyPlugin runtime.RawExtension `json:"myPlugin"` * } * type PluginA struct { @@ -351,7 +351,7 @@ protected Builder newBuilderForType( * various plugin types. * // Internal package: * type MyAPIObject struct { - * runtime.TypeMeta `json:",inline"` + * runtime.TypeMeta `json:""` * MyPlugin runtime.Object `json:"myPlugin"` * } * type PluginA struct { @@ -359,7 +359,7 @@ protected Builder newBuilderForType( * } * // External package: * type MyAPIObject struct { - * runtime.TypeMeta `json:",inline"` + * runtime.TypeMeta `json:""` * MyPlugin runtime.RawExtension `json:"myPlugin"` * } * type PluginA struct { @@ -707,7 +707,7 @@ public interface TypeMetaOrBuilder extends * TypeMeta is shared by all top level objects. The proper way to use it is to inline it in your type, * like this: * type MyAwesomeAPIObject struct { - * runtime.TypeMeta `json:",inline"` + * runtime.TypeMeta `json:""` * ... // other fields * } * func (obj *MyAwesomeAPIObject) SetGroupVersionKind(gvk *metav1.GroupVersionKind) { metav1.UpdateTypeMeta(obj,gvk) }; GroupVersionKind() *GroupVersionKind @@ -1091,7 +1091,7 @@ protected Builder newBuilderForType( * TypeMeta is shared by all top level objects. The proper way to use it is to inline it in your type, * like this: * type MyAwesomeAPIObject struct { - * runtime.TypeMeta `json:",inline"` + * runtime.TypeMeta `json:""` * ... // other fields * } * func (obj *MyAwesomeAPIObject) SetGroupVersionKind(gvk *metav1.GroupVersionKind) { metav1.UpdateTypeMeta(obj,gvk) }; GroupVersionKind() *GroupVersionKind diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1.java b/proto/src/main/java/io/kubernetes/client/proto/V1.java index cc68ec9d8b..487769e5dc 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V1.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V1.java @@ -28894,6 +28894,8 @@ java.lang.String getDataOrThrow( * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional *
* @@ -28909,6 +28911,8 @@ java.lang.String getDataOrThrow( * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional *
* @@ -28931,6 +28935,8 @@ boolean containsBinaryData( * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional * * @@ -28947,6 +28953,8 @@ boolean containsBinaryData( * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional * * @@ -28965,6 +28973,8 @@ com.google.protobuf.ByteString getBinaryDataOrDefault( * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional * * @@ -29326,6 +29336,8 @@ public int getBinaryDataCount() { * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional * * @@ -29353,6 +29365,8 @@ public java.util.Map getBinary * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional * * @@ -29371,6 +29385,8 @@ public java.util.Map getBinary * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional * * @@ -29394,6 +29410,8 @@ public com.google.protobuf.ByteString getBinaryDataOrDefault( * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional * * @@ -30302,6 +30320,8 @@ public int getBinaryDataCount() { * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional * * @@ -30329,6 +30349,8 @@ public java.util.Map getBinary * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional * * @@ -30347,6 +30369,8 @@ public java.util.Map getBinary * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional * * @@ -30370,6 +30394,8 @@ public com.google.protobuf.ByteString getBinaryDataOrDefault( * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional * * @@ -30401,6 +30427,8 @@ public Builder clearBinaryData() { * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional * * @@ -30431,6 +30459,8 @@ public Builder removeBinaryData( * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional * * @@ -30454,6 +30484,8 @@ public Builder putBinaryData( * the Data field, this is enforced during validation process. * Using this field will require 1.10+ apiserver and * kubelet. + * Note: BinaryData keys are not currently propagated to container env vars + * via ConfigMapKeyRef or ConfigMapRef env sources; only Data keys are used. * +optional * * @@ -30573,6 +30605,7 @@ public interface ConfigMapEnvSourceOrBuilder extends * variables with. * The contents of the target ConfigMap's Data field will represent the * key-value pairs as environment variables. + * Keys in the BinaryData field are not currently propagated to container env vars. * * * Protobuf type {@code k8s.io.api.core.v1.ConfigMapEnvSource} @@ -30907,6 +30940,7 @@ protected Builder newBuilderForType( * variables with. * The contents of the target ConfigMap's Data field will represent the * key-value pairs as environment variables. + * Keys in the BinaryData field are not currently propagated to container env vars. * * * Protobuf type {@code k8s.io.api.core.v1.ConfigMapEnvSource} @@ -31369,7 +31403,8 @@ public interface ConfigMapKeySelectorOrBuilder extends /** *
-     * The key to select.
+     * The key to select from the ConfigMap's Data field.
+     * Keys in the BinaryData field are not currently propagated to container env vars.
      * 
* * optional string key = 2; @@ -31377,7 +31412,8 @@ public interface ConfigMapKeySelectorOrBuilder extends boolean hasKey(); /** *
-     * The key to select.
+     * The key to select from the ConfigMap's Data field.
+     * Keys in the BinaryData field are not currently propagated to container env vars.
      * 
* * optional string key = 2; @@ -31385,7 +31421,8 @@ public interface ConfigMapKeySelectorOrBuilder extends java.lang.String getKey(); /** *
-     * The key to select.
+     * The key to select from the ConfigMap's Data field.
+     * Keys in the BinaryData field are not currently propagated to container env vars.
      * 
* * optional string key = 2; @@ -31552,7 +31589,8 @@ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjec private volatile java.lang.Object key_; /** *
-     * The key to select.
+     * The key to select from the ConfigMap's Data field.
+     * Keys in the BinaryData field are not currently propagated to container env vars.
      * 
* * optional string key = 2; @@ -31562,7 +31600,8 @@ public boolean hasKey() { } /** *
-     * The key to select.
+     * The key to select from the ConfigMap's Data field.
+     * Keys in the BinaryData field are not currently propagated to container env vars.
      * 
* * optional string key = 2; @@ -31583,7 +31622,8 @@ public java.lang.String getKey() { } /** *
-     * The key to select.
+     * The key to select from the ConfigMap's Data field.
+     * Keys in the BinaryData field are not currently propagated to container env vars.
      * 
* * optional string key = 2; @@ -32165,7 +32205,8 @@ public io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getLocalObjec private java.lang.Object key_ = ""; /** *
-       * The key to select.
+       * The key to select from the ConfigMap's Data field.
+       * Keys in the BinaryData field are not currently propagated to container env vars.
        * 
* * optional string key = 2; @@ -32175,7 +32216,8 @@ public boolean hasKey() { } /** *
-       * The key to select.
+       * The key to select from the ConfigMap's Data field.
+       * Keys in the BinaryData field are not currently propagated to container env vars.
        * 
* * optional string key = 2; @@ -32196,7 +32238,8 @@ public java.lang.String getKey() { } /** *
-       * The key to select.
+       * The key to select from the ConfigMap's Data field.
+       * Keys in the BinaryData field are not currently propagated to container env vars.
        * 
* * optional string key = 2; @@ -32216,7 +32259,8 @@ public java.lang.String getKey() { } /** *
-       * The key to select.
+       * The key to select from the ConfigMap's Data field.
+       * Keys in the BinaryData field are not currently propagated to container env vars.
        * 
* * optional string key = 2; @@ -32233,7 +32277,8 @@ public Builder setKey( } /** *
-       * The key to select.
+       * The key to select from the ConfigMap's Data field.
+       * Keys in the BinaryData field are not currently propagated to container env vars.
        * 
* * optional string key = 2; @@ -32246,7 +32291,8 @@ public Builder clearKey() { } /** *
-       * The key to select.
+       * The key to select from the ConfigMap's Data field.
+       * Keys in the BinaryData field are not currently propagated to container env vars.
        * 
* * optional string key = 2; @@ -59853,7 +59899,6 @@ public interface ContainerStatusOrBuilder extends * AllocatedResources represents the compute resources allocated for this container by the * node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission * and after successfully admitting desired pod resize. - * +featureGate=InPlacePodVerticalScalingAllocatedStatus * +optional * * @@ -59865,7 +59910,6 @@ public interface ContainerStatusOrBuilder extends * AllocatedResources represents the compute resources allocated for this container by the * node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission * and after successfully admitting desired pod resize. - * +featureGate=InPlacePodVerticalScalingAllocatedStatus * +optional * * @@ -59884,7 +59928,6 @@ boolean containsAllocatedResources( * AllocatedResources represents the compute resources allocated for this container by the * node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission * and after successfully admitting desired pod resize. - * +featureGate=InPlacePodVerticalScalingAllocatedStatus * +optional * * @@ -59897,7 +59940,6 @@ boolean containsAllocatedResources( * AllocatedResources represents the compute resources allocated for this container by the * node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission * and after successfully admitting desired pod resize. - * +featureGate=InPlacePodVerticalScalingAllocatedStatus * +optional * * @@ -59912,7 +59954,6 @@ io.kubernetes.client.proto.Resource.Quantity getAllocatedResourcesOrDefault( * AllocatedResources represents the compute resources allocated for this container by the * node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission * and after successfully admitting desired pod resize. - * +featureGate=InPlacePodVerticalScalingAllocatedStatus * +optional * * @@ -60855,7 +60896,6 @@ public int getAllocatedResourcesCount() { * AllocatedResources represents the compute resources allocated for this container by the * node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission * and after successfully admitting desired pod resize. - * +featureGate=InPlacePodVerticalScalingAllocatedStatus * +optional * * @@ -60879,7 +60919,6 @@ public java.util.Map * @@ -60894,7 +60933,6 @@ public java.util.Map * @@ -60914,7 +60952,6 @@ public io.kubernetes.client.proto.Resource.Quantity getAllocatedResourcesOrDefau * AllocatedResources represents the compute resources allocated for this container by the * node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission * and after successfully admitting desired pod resize. - * +featureGate=InPlacePodVerticalScalingAllocatedStatus * +optional * * @@ -63082,7 +63119,6 @@ public int getAllocatedResourcesCount() { * AllocatedResources represents the compute resources allocated for this container by the * node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission * and after successfully admitting desired pod resize. - * +featureGate=InPlacePodVerticalScalingAllocatedStatus * +optional * * @@ -63106,7 +63142,6 @@ public java.util.Map * @@ -63121,7 +63156,6 @@ public java.util.Map * @@ -63141,7 +63175,6 @@ public io.kubernetes.client.proto.Resource.Quantity getAllocatedResourcesOrDefau * AllocatedResources represents the compute resources allocated for this container by the * node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission * and after successfully admitting desired pod resize. - * +featureGate=InPlacePodVerticalScalingAllocatedStatus * +optional * * @@ -63169,7 +63202,6 @@ public Builder clearAllocatedResources() { * AllocatedResources represents the compute resources allocated for this container by the * node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission * and after successfully admitting desired pod resize. - * +featureGate=InPlacePodVerticalScalingAllocatedStatus * +optional * * @@ -63196,7 +63228,6 @@ public Builder removeAllocatedResources( * AllocatedResources represents the compute resources allocated for this container by the * node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission * and after successfully admitting desired pod resize. - * +featureGate=InPlacePodVerticalScalingAllocatedStatus * +optional * * @@ -63216,7 +63247,6 @@ public Builder putAllocatedResources( * AllocatedResources represents the compute resources allocated for this container by the * node. Kubelet sets this value to Container.Resources.Requests upon successful pod admission * and after successfully admitting desired pod resize. - * +featureGate=InPlacePodVerticalScalingAllocatedStatus * +optional * * @@ -144972,6 +145002,7 @@ public interface NamespaceOrBuilder extends *
    * Namespace provides a scope for Names.
    * Use of multiple namespaces is optional.
+   * +k8s:supportsSubresource="/status"
    * 
* * Protobuf type {@code k8s.io.api.core.v1.Namespace} @@ -145398,6 +145429,7 @@ protected Builder newBuilderForType( *
      * Namespace provides a scope for Names.
      * Use of multiple namespaces is optional.
+     * +k8s:supportsSubresource="/status"
      * 
* * Protobuf type {@code k8s.io.api.core.v1.Namespace} @@ -151083,6 +151115,8 @@ public interface NodeOrBuilder extends *
    * Node is a worker node in Kubernetes.
    * Each node will have a unique identifier in the cache (i.e. in etcd).
+   * +k8s:supportsSubresource="/status"
+   * +k8s:supportsSubresource="/proxy"
    * 
* * Protobuf type {@code k8s.io.api.core.v1.Node} @@ -151515,6 +151549,8 @@ protected Builder newBuilderForType( *
      * Node is a worker node in Kubernetes.
      * Each node will have a unique identifier in the cache (i.e. in etcd).
+     * +k8s:supportsSubresource="/status"
+     * +k8s:supportsSubresource="/proxy"
      * 
* * Protobuf type {@code k8s.io.api.core.v1.Node} @@ -154672,197 +154708,160 @@ public io.kubernetes.client.proto.V1.NodeAffinity getDefaultInstanceForType() { } - public interface NodeConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeCondition) + public interface NodeAllocatableResourceClaimStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus) com.google.protobuf.MessageOrBuilder { /** *
-     * Type of node condition.
-     * 
- * - * optional string type = 1; - */ - boolean hasType(); - /** - *
-     * Type of node condition.
-     * 
- * - * optional string type = 1; - */ - java.lang.String getType(); - /** - *
-     * Type of node condition.
-     * 
- * - * optional string type = 1; - */ - com.google.protobuf.ByteString - getTypeBytes(); - - /** - *
-     * Status of the condition, one of True, False, Unknown.
+     * ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.
+     * +required
      * 
* - * optional string status = 2; + * optional string resourceClaimName = 1; */ - boolean hasStatus(); + boolean hasResourceClaimName(); /** *
-     * Status of the condition, one of True, False, Unknown.
+     * ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.
+     * +required
      * 
* - * optional string status = 2; + * optional string resourceClaimName = 1; */ - java.lang.String getStatus(); + java.lang.String getResourceClaimName(); /** *
-     * Status of the condition, one of True, False, Unknown.
+     * ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.
+     * +required
      * 
* - * optional string status = 2; + * optional string resourceClaimName = 1; */ com.google.protobuf.ByteString - getStatusBytes(); + getResourceClaimNameBytes(); /** *
-     * Last time we got an update on a given condition.
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; - */ - boolean hasLastHeartbeatTime(); - /** - *
-     * Last time we got an update on a given condition.
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; - */ - io.kubernetes.client.proto.Meta.Time getLastHeartbeatTime(); - /** - *
-     * Last time we got an update on a given condition.
+     * Containers lists the names of all containers in this pod that reference the claim.
      * +optional
+     * +listType=set
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + * repeated string containers = 2; */ - io.kubernetes.client.proto.Meta.TimeOrBuilder getLastHeartbeatTimeOrBuilder(); - + java.util.List + getContainersList(); /** *
-     * Last time the condition transit from one status to another.
+     * Containers lists the names of all containers in this pod that reference the claim.
      * +optional
+     * +listType=set
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + * repeated string containers = 2; */ - boolean hasLastTransitionTime(); + int getContainersCount(); /** *
-     * Last time the condition transit from one status to another.
+     * Containers lists the names of all containers in this pod that reference the claim.
      * +optional
+     * +listType=set
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + * repeated string containers = 2; */ - io.kubernetes.client.proto.Meta.Time getLastTransitionTime(); + java.lang.String getContainers(int index); /** *
-     * Last time the condition transit from one status to another.
+     * Containers lists the names of all containers in this pod that reference the claim.
      * +optional
+     * +listType=set
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + * repeated string containers = 2; */ - io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder(); + com.google.protobuf.ByteString + getContainersBytes(int index); /** *
-     * (brief) reason for the condition's last transition.
-     * +optional
+     * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+     * +required
      * 
* - * optional string reason = 5; + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; */ - boolean hasReason(); + int getResourcesCount(); /** *
-     * (brief) reason for the condition's last transition.
-     * +optional
+     * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+     * +required
      * 
* - * optional string reason = 5; + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; */ - java.lang.String getReason(); + boolean containsResources( + java.lang.String key); /** - *
-     * (brief) reason for the condition's last transition.
-     * +optional
-     * 
- * - * optional string reason = 5; + * Use {@link #getResourcesMap()} instead. */ - com.google.protobuf.ByteString - getReasonBytes(); - + @java.lang.Deprecated + java.util.Map + getResources(); /** *
-     * Human readable message indicating details about last transition.
-     * +optional
+     * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+     * +required
      * 
* - * optional string message = 6; + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; */ - boolean hasMessage(); + java.util.Map + getResourcesMap(); /** *
-     * Human readable message indicating details about last transition.
-     * +optional
+     * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+     * +required
      * 
* - * optional string message = 6; + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; */ - java.lang.String getMessage(); + + io.kubernetes.client.proto.Resource.Quantity getResourcesOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue); /** *
-     * Human readable message indicating details about last transition.
-     * +optional
+     * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+     * +required
      * 
* - * optional string message = 6; + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; */ - com.google.protobuf.ByteString - getMessageBytes(); + + io.kubernetes.client.proto.Resource.Quantity getResourcesOrThrow( + java.lang.String key); } /** *
-   * NodeCondition contains condition information for a node.
+   * NodeAllocatableResourceClaimStatus describes the status of node allocatable resources allocated via DRA.
    * 
* - * Protobuf type {@code k8s.io.api.core.v1.NodeCondition} + * Protobuf type {@code k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus} */ - public static final class NodeCondition extends + public static final class NodeAllocatableResourceClaimStatus extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeCondition) - NodeConditionOrBuilder { + // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus) + NodeAllocatableResourceClaimStatusOrBuilder { private static final long serialVersionUID = 0L; - // Use NodeCondition.newBuilder() to construct. - private NodeCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use NodeAllocatableResourceClaimStatus.newBuilder() to construct. + private NodeAllocatableResourceClaimStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private NodeCondition() { - type_ = ""; - status_ = ""; - reason_ = ""; - message_ = ""; + private NodeAllocatableResourceClaimStatus() { + resourceClaimName_ = ""; + containers_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -154870,7 +154869,7 @@ private NodeCondition() { getUnknownFields() { return this.unknownFields; } - private NodeCondition( + private NodeAllocatableResourceClaimStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -154892,51 +154891,29 @@ private NodeCondition( case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - type_ = bs; + resourceClaimName_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - status_ = bs; - break; - } - case 26: { - io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; - if (((bitField0_ & 0x00000004) == 0x00000004)) { - subBuilder = lastHeartbeatTime_.toBuilder(); - } - lastHeartbeatTime_ = input.readMessage(io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastHeartbeatTime_); - lastHeartbeatTime_ = subBuilder.buildPartial(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + containers_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; } - bitField0_ |= 0x00000004; + containers_.add(bs); break; } - case 34: { - io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; - if (((bitField0_ & 0x00000008) == 0x00000008)) { - subBuilder = lastTransitionTime_.toBuilder(); - } - lastTransitionTime_ = input.readMessage(io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(lastTransitionTime_); - lastTransitionTime_ = subBuilder.buildPartial(); + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + resources_ = com.google.protobuf.MapField.newMapField( + ResourcesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; } - bitField0_ |= 0x00000008; - break; - } - case 42: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000010; - reason_ = bs; - break; - } - case 50: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000020; - message_ = bs; + com.google.protobuf.MapEntry + resources__ = input.readMessage( + ResourcesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + resources_.getMutableMap().put( + resources__.getKey(), resources__.getValue()); break; } default: { @@ -154954,99 +154931,62 @@ private NodeCondition( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + containers_ = containers_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeCondition_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetResources(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeCondition_fieldAccessorTable + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1.NodeCondition.class, io.kubernetes.client.proto.V1.NodeCondition.Builder.class); + io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.class, io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.Builder.class); } private int bitField0_; - public static final int TYPE_FIELD_NUMBER = 1; - private volatile java.lang.Object type_; + public static final int RESOURCECLAIMNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object resourceClaimName_; /** *
-     * Type of node condition.
+     * ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.
+     * +required
      * 
* - * optional string type = 1; + * optional string resourceClaimName = 1; */ - public boolean hasType() { + public boolean hasResourceClaimName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-     * Type of node condition.
-     * 
- * - * optional string type = 1; - */ - public java.lang.String getType() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - type_ = s; - } - return s; - } - } - /** - *
-     * Type of node condition.
-     * 
- * - * optional string type = 1; - */ - public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - type_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 2; - private volatile java.lang.Object status_; - /** - *
-     * Status of the condition, one of True, False, Unknown.
-     * 
- * - * optional string status = 2; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - *
-     * Status of the condition, one of True, False, Unknown.
+     * ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.
+     * +required
      * 
* - * optional string status = 2; + * optional string resourceClaimName = 1; */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; + public java.lang.String getResourceClaimName() { + java.lang.Object ref = resourceClaimName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -155054,216 +154994,180 @@ public java.lang.String getStatus() { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - status_ = s; + resourceClaimName_ = s; } return s; } } /** *
-     * Status of the condition, one of True, False, Unknown.
+     * ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.
+     * +required
      * 
* - * optional string status = 2; + * optional string resourceClaimName = 1; */ public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; + getResourceClaimNameBytes() { + java.lang.Object ref = resourceClaimName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - status_ = b; + resourceClaimName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int LASTHEARTBEATTIME_FIELD_NUMBER = 3; - private io.kubernetes.client.proto.Meta.Time lastHeartbeatTime_; + public static final int CONTAINERS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList containers_; /** *
-     * Last time we got an update on a given condition.
+     * Containers lists the names of all containers in this pod that reference the claim.
      * +optional
+     * +listType=set
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + * repeated string containers = 2; */ - public boolean hasLastHeartbeatTime() { - return ((bitField0_ & 0x00000004) == 0x00000004); + public com.google.protobuf.ProtocolStringList + getContainersList() { + return containers_; } /** *
-     * Last time we got an update on a given condition.
+     * Containers lists the names of all containers in this pod that reference the claim.
      * +optional
+     * +listType=set
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + * repeated string containers = 2; */ - public io.kubernetes.client.proto.Meta.Time getLastHeartbeatTime() { - return lastHeartbeatTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastHeartbeatTime_; + public int getContainersCount() { + return containers_.size(); } /** *
-     * Last time we got an update on a given condition.
+     * Containers lists the names of all containers in this pod that reference the claim.
      * +optional
+     * +listType=set
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + * repeated string containers = 2; */ - public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastHeartbeatTimeOrBuilder() { - return lastHeartbeatTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastHeartbeatTime_; + public java.lang.String getContainers(int index) { + return containers_.get(index); } - - public static final int LASTTRANSITIONTIME_FIELD_NUMBER = 4; - private io.kubernetes.client.proto.Meta.Time lastTransitionTime_; /** *
-     * Last time the condition transit from one status to another.
+     * Containers lists the names of all containers in this pod that reference the claim.
      * +optional
+     * +listType=set
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + * repeated string containers = 2; */ - public boolean hasLastTransitionTime() { - return ((bitField0_ & 0x00000008) == 0x00000008); + public com.google.protobuf.ByteString + getContainersBytes(int index) { + return containers_.getByteString(index); } - /** - *
-     * Last time the condition transit from one status to another.
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; - */ - public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { - return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + + public static final int RESOURCES_FIELD_NUMBER = 3; + private static final class ResourcesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_ResourcesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); } - /** - *
-     * Last time the condition transit from one status to another.
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; - */ - public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { - return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.Resource.Quantity> resources_; + private com.google.protobuf.MapField + internalGetResources() { + if (resources_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourcesDefaultEntryHolder.defaultEntry); + } + return resources_; } - public static final int REASON_FIELD_NUMBER = 5; - private volatile java.lang.Object reason_; - /** - *
-     * (brief) reason for the condition's last transition.
-     * +optional
-     * 
- * - * optional string reason = 5; - */ - public boolean hasReason() { - return ((bitField0_ & 0x00000010) == 0x00000010); + public int getResourcesCount() { + return internalGetResources().getMap().size(); } /** *
-     * (brief) reason for the condition's last transition.
-     * +optional
+     * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+     * +required
      * 
* - * optional string reason = 5; + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; */ - public java.lang.String getReason() { - java.lang.Object ref = reason_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - reason_ = s; - } - return s; - } + + public boolean containsResources( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetResources().getMap().containsKey(key); } /** - *
-     * (brief) reason for the condition's last transition.
-     * +optional
-     * 
- * - * optional string reason = 5; + * Use {@link #getResourcesMap()} instead. */ - public com.google.protobuf.ByteString - getReasonBytes() { - java.lang.Object ref = reason_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reason_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Deprecated + public java.util.Map getResources() { + return getResourcesMap(); } - - public static final int MESSAGE_FIELD_NUMBER = 6; - private volatile java.lang.Object message_; /** *
-     * Human readable message indicating details about last transition.
-     * +optional
+     * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+     * +required
      * 
* - * optional string message = 6; + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; */ - public boolean hasMessage() { - return ((bitField0_ & 0x00000020) == 0x00000020); + + public java.util.Map getResourcesMap() { + return internalGetResources().getMap(); } /** *
-     * Human readable message indicating details about last transition.
-     * +optional
+     * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+     * +required
      * 
* - * optional string message = 6; + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; */ - public java.lang.String getMessage() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - message_ = s; - } - return s; - } + + public io.kubernetes.client.proto.Resource.Quantity getResourcesOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResources().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
-     * Human readable message indicating details about last transition.
-     * +optional
+     * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+     * +required
      * 
* - * optional string message = 6; + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; */ - public com.google.protobuf.ByteString - getMessageBytes() { - java.lang.Object ref = message_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - message_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + + public io.kubernetes.client.proto.Resource.Quantity getResourcesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResources().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); } private byte memoizedIsInitialized = -1; @@ -155281,23 +155185,17 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - output.writeMessage(3, getLastHeartbeatTime()); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeMessage(4, getLastTransitionTime()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceClaimName_); } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reason_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, message_); + for (int i = 0; i < containers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, containers_.getRaw(i)); } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetResources(), + ResourcesDefaultEntryHolder.defaultEntry, + 3); unknownFields.writeTo(output); } @@ -155308,24 +155206,25 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceClaimName_); } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLastHeartbeatTime()); + { + int dataSize = 0; + for (int i = 0; i < containers_.size(); i++) { + dataSize += computeStringSizeNoTag(containers_.getRaw(i)); + } + size += dataSize; + size += 1 * getContainersList().size(); } - if (((bitField0_ & 0x00000008) == 0x00000008)) { + for (java.util.Map.Entry entry + : internalGetResources().getMap().entrySet()) { + com.google.protobuf.MapEntry + resources__ = ResourcesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getLastTransitionTime()); - } - if (((bitField0_ & 0x00000010) == 0x00000010)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, reason_); - } - if (((bitField0_ & 0x00000020) == 0x00000020)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, message_); + .computeMessageSize(3, resources__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -155337,42 +155236,21 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.kubernetes.client.proto.V1.NodeCondition)) { + if (!(obj instanceof io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus)) { return super.equals(obj); } - io.kubernetes.client.proto.V1.NodeCondition other = (io.kubernetes.client.proto.V1.NodeCondition) obj; + io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus other = (io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus) obj; boolean result = true; - result = result && (hasType() == other.hasType()); - if (hasType()) { - result = result && getType() - .equals(other.getType()); - } - result = result && (hasStatus() == other.hasStatus()); - if (hasStatus()) { - result = result && getStatus() - .equals(other.getStatus()); - } - result = result && (hasLastHeartbeatTime() == other.hasLastHeartbeatTime()); - if (hasLastHeartbeatTime()) { - result = result && getLastHeartbeatTime() - .equals(other.getLastHeartbeatTime()); - } - result = result && (hasLastTransitionTime() == other.hasLastTransitionTime()); - if (hasLastTransitionTime()) { - result = result && getLastTransitionTime() - .equals(other.getLastTransitionTime()); - } - result = result && (hasReason() == other.hasReason()); - if (hasReason()) { - result = result && getReason() - .equals(other.getReason()); - } - result = result && (hasMessage() == other.hasMessage()); - if (hasMessage()) { - result = result && getMessage() - .equals(other.getMessage()); + result = result && (hasResourceClaimName() == other.hasResourceClaimName()); + if (hasResourceClaimName()) { + result = result && getResourceClaimName() + .equals(other.getResourceClaimName()); } + result = result && getContainersList() + .equals(other.getContainersList()); + result = result && internalGetResources().equals( + other.internalGetResources()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -155384,98 +155262,86 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - if (hasLastHeartbeatTime()) { - hash = (37 * hash) + LASTHEARTBEATTIME_FIELD_NUMBER; - hash = (53 * hash) + getLastHeartbeatTime().hashCode(); - } - if (hasLastTransitionTime()) { - hash = (37 * hash) + LASTTRANSITIONTIME_FIELD_NUMBER; - hash = (53 * hash) + getLastTransitionTime().hashCode(); + if (hasResourceClaimName()) { + hash = (37 * hash) + RESOURCECLAIMNAME_FIELD_NUMBER; + hash = (53 * hash) + getResourceClaimName().hashCode(); } - if (hasReason()) { - hash = (37 * hash) + REASON_FIELD_NUMBER; - hash = (53 * hash) + getReason().hashCode(); + if (getContainersCount() > 0) { + hash = (37 * hash) + CONTAINERS_FIELD_NUMBER; + hash = (53 * hash) + getContainersList().hashCode(); } - if (hasMessage()) { - hash = (37 * hash) + MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getMessage().hashCode(); + if (!internalGetResources().getMap().isEmpty()) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + internalGetResources().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + public static io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + public static io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + public static io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + public static io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.NodeCondition parseFrom(byte[] data) + public static io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + public static io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.NodeCondition parseFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + public static io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1.NodeCondition parseDelimitedFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.NodeCondition parseDelimitedFrom( + public static io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + public static io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + public static io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -155488,7 +155354,7 @@ public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.kubernetes.client.proto.V1.NodeCondition prototype) { + public static Builder newBuilder(io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -155505,29 +155371,51 @@ protected Builder newBuilderForType( } /** *
-     * NodeCondition contains condition information for a node.
+     * NodeAllocatableResourceClaimStatus describes the status of node allocatable resources allocated via DRA.
      * 
* - * Protobuf type {@code k8s.io.api.core.v1.NodeCondition} + * Protobuf type {@code k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeCondition) - io.kubernetes.client.proto.V1.NodeConditionOrBuilder { + // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus) + io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeCondition_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetResources(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableResources(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeCondition_fieldAccessorTable + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1.NodeCondition.class, io.kubernetes.client.proto.V1.NodeCondition.Builder.class); + io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.class, io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.Builder.class); } - // Construct using io.kubernetes.client.proto.V1.NodeCondition.newBuilder() + // Construct using io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -155540,50 +155428,33 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getLastHeartbeatTimeFieldBuilder(); - getLastTransitionTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - type_ = ""; + resourceClaimName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); - status_ = ""; + containers_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); - if (lastHeartbeatTimeBuilder_ == null) { - lastHeartbeatTime_ = null; - } else { - lastHeartbeatTimeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (lastTransitionTimeBuilder_ == null) { - lastTransitionTime_ = null; - } else { - lastTransitionTimeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - reason_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - message_ = ""; - bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableResources().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeCondition_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_descriptor; } @java.lang.Override - public io.kubernetes.client.proto.V1.NodeCondition getDefaultInstanceForType() { - return io.kubernetes.client.proto.V1.NodeCondition.getDefaultInstance(); + public io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.getDefaultInstance(); } @java.lang.Override - public io.kubernetes.client.proto.V1.NodeCondition build() { - io.kubernetes.client.proto.V1.NodeCondition result = buildPartial(); + public io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus build() { + io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -155591,42 +155462,21 @@ public io.kubernetes.client.proto.V1.NodeCondition build() { } @java.lang.Override - public io.kubernetes.client.proto.V1.NodeCondition buildPartial() { - io.kubernetes.client.proto.V1.NodeCondition result = new io.kubernetes.client.proto.V1.NodeCondition(this); + public io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus buildPartial() { + io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus result = new io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } - result.type_ = type_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.status_ = status_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - if (lastHeartbeatTimeBuilder_ == null) { - result.lastHeartbeatTime_ = lastHeartbeatTime_; - } else { - result.lastHeartbeatTime_ = lastHeartbeatTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; - } - if (lastTransitionTimeBuilder_ == null) { - result.lastTransitionTime_ = lastTransitionTime_; - } else { - result.lastTransitionTime_ = lastTransitionTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000010; - } - result.reason_ = reason_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000020; + result.resourceClaimName_ = resourceClaimName_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + containers_ = containers_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); } - result.message_ = message_; + result.containers_ = containers_; + result.resources_ = internalGetResources(); + result.resources_.makeImmutable(); result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -155666,42 +155516,33 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.kubernetes.client.proto.V1.NodeCondition) { - return mergeFrom((io.kubernetes.client.proto.V1.NodeCondition)other); + if (other instanceof io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus) { + return mergeFrom((io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeCondition other) { - if (other == io.kubernetes.client.proto.V1.NodeCondition.getDefaultInstance()) return this; - if (other.hasType()) { + public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus other) { + if (other == io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.getDefaultInstance()) return this; + if (other.hasResourceClaimName()) { bitField0_ |= 0x00000001; - type_ = other.type_; - onChanged(); - } - if (other.hasStatus()) { - bitField0_ |= 0x00000002; - status_ = other.status_; - onChanged(); - } - if (other.hasLastHeartbeatTime()) { - mergeLastHeartbeatTime(other.getLastHeartbeatTime()); - } - if (other.hasLastTransitionTime()) { - mergeLastTransitionTime(other.getLastTransitionTime()); - } - if (other.hasReason()) { - bitField0_ |= 0x00000010; - reason_ = other.reason_; + resourceClaimName_ = other.resourceClaimName_; onChanged(); } - if (other.hasMessage()) { - bitField0_ |= 0x00000020; - message_ = other.message_; + if (!other.containers_.isEmpty()) { + if (containers_.isEmpty()) { + containers_ = other.containers_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureContainersIsMutable(); + containers_.addAll(other.containers_); + } onChanged(); } + internalGetMutableResources().mergeFrom( + other.internalGetResources()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -155717,11 +155558,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.kubernetes.client.proto.V1.NodeCondition parsedMessage = null; + io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.kubernetes.client.proto.V1.NodeCondition) e.getUnfinishedMessage(); + parsedMessage = (io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -155732,32 +155573,34 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object type_ = ""; + private java.lang.Object resourceClaimName_ = ""; /** *
-       * Type of node condition.
+       * ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.
+       * +required
        * 
* - * optional string type = 1; + * optional string resourceClaimName = 1; */ - public boolean hasType() { + public boolean hasResourceClaimName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-       * Type of node condition.
+       * ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.
+       * +required
        * 
* - * optional string type = 1; + * optional string resourceClaimName = 1; */ - public java.lang.String getType() { - java.lang.Object ref = type_; + public java.lang.String getResourceClaimName() { + java.lang.Object ref = resourceClaimName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - type_ = s; + resourceClaimName_ = s; } return s; } else { @@ -155766,19 +155609,20 @@ public java.lang.String getType() { } /** *
-       * Type of node condition.
+       * ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.
+       * +required
        * 
* - * optional string type = 1; + * optional string resourceClaimName = 1; */ public com.google.protobuf.ByteString - getTypeBytes() { - java.lang.Object ref = type_; + getResourceClaimNameBytes() { + java.lang.Object ref = resourceClaimName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - type_ = b; + resourceClaimName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -155786,353 +155630,1873 @@ public java.lang.String getType() { } /** *
-       * Type of node condition.
+       * ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.
+       * +required
        * 
* - * optional string type = 1; + * optional string resourceClaimName = 1; */ - public Builder setType( + public Builder setResourceClaimName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - type_ = value; + resourceClaimName_ = value; onChanged(); return this; } /** *
-       * Type of node condition.
+       * ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.
+       * +required
        * 
* - * optional string type = 1; + * optional string resourceClaimName = 1; */ - public Builder clearType() { + public Builder clearResourceClaimName() { bitField0_ = (bitField0_ & ~0x00000001); - type_ = getDefaultInstance().getType(); + resourceClaimName_ = getDefaultInstance().getResourceClaimName(); onChanged(); return this; } /** *
-       * Type of node condition.
+       * ResourceClaimName is the resource claim referenced by the pod that resulted in this node allocatable resource allocation.
+       * +required
        * 
* - * optional string type = 1; + * optional string resourceClaimName = 1; */ - public Builder setTypeBytes( + public Builder setResourceClaimNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - type_ = value; + resourceClaimName_ = value; onChanged(); return this; } - private java.lang.Object status_ = ""; + private com.google.protobuf.LazyStringList containers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureContainersIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + containers_ = new com.google.protobuf.LazyStringArrayList(containers_); + bitField0_ |= 0x00000002; + } + } /** *
-       * Status of the condition, one of True, False, Unknown.
+       * Containers lists the names of all containers in this pod that reference the claim.
+       * +optional
+       * +listType=set
        * 
* - * optional string status = 2; + * repeated string containers = 2; */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public com.google.protobuf.ProtocolStringList + getContainersList() { + return containers_.getUnmodifiableView(); } /** *
-       * Status of the condition, one of True, False, Unknown.
+       * Containers lists the names of all containers in this pod that reference the claim.
+       * +optional
+       * +listType=set
        * 
* - * optional string status = 2; + * repeated string containers = 2; */ - public java.lang.String getStatus() { - java.lang.Object ref = status_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - status_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + public int getContainersCount() { + return containers_.size(); } /** *
-       * Status of the condition, one of True, False, Unknown.
+       * Containers lists the names of all containers in this pod that reference the claim.
+       * +optional
+       * +listType=set
        * 
* - * optional string status = 2; + * repeated string containers = 2; */ - public com.google.protobuf.ByteString - getStatusBytes() { - java.lang.Object ref = status_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - status_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public java.lang.String getContainers(int index) { + return containers_.get(index); } /** *
-       * Status of the condition, one of True, False, Unknown.
+       * Containers lists the names of all containers in this pod that reference the claim.
+       * +optional
+       * +listType=set
        * 
* - * optional string status = 2; + * repeated string containers = 2; */ - public Builder setStatus( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - status_ = value; - onChanged(); - return this; + public com.google.protobuf.ByteString + getContainersBytes(int index) { + return containers_.getByteString(index); } /** *
-       * Status of the condition, one of True, False, Unknown.
+       * Containers lists the names of all containers in this pod that reference the claim.
+       * +optional
+       * +listType=set
        * 
* - * optional string status = 2; + * repeated string containers = 2; */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000002); - status_ = getDefaultInstance().getStatus(); + public Builder setContainers( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureContainersIsMutable(); + containers_.set(index, value); onChanged(); return this; } /** *
-       * Status of the condition, one of True, False, Unknown.
+       * Containers lists the names of all containers in this pod that reference the claim.
+       * +optional
+       * +listType=set
        * 
* - * optional string status = 2; + * repeated string containers = 2; */ - public Builder setStatusBytes( - com.google.protobuf.ByteString value) { + public Builder addContainers( + java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000002; - status_ = value; + ensureContainersIsMutable(); + containers_.add(value); onChanged(); return this; } - - private io.kubernetes.client.proto.Meta.Time lastHeartbeatTime_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> lastHeartbeatTimeBuilder_; /** *
-       * Last time we got an update on a given condition.
+       * Containers lists the names of all containers in this pod that reference the claim.
        * +optional
+       * +listType=set
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + * repeated string containers = 2; */ - public boolean hasLastHeartbeatTime() { - return ((bitField0_ & 0x00000004) == 0x00000004); + public Builder addAllContainers( + java.lang.Iterable values) { + ensureContainersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, containers_); + onChanged(); + return this; } /** *
-       * Last time we got an update on a given condition.
+       * Containers lists the names of all containers in this pod that reference the claim.
        * +optional
+       * +listType=set
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + * repeated string containers = 2; */ - public io.kubernetes.client.proto.Meta.Time getLastHeartbeatTime() { - if (lastHeartbeatTimeBuilder_ == null) { - return lastHeartbeatTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastHeartbeatTime_; - } else { - return lastHeartbeatTimeBuilder_.getMessage(); - } + public Builder clearContainers() { + containers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; } /** *
-       * Last time we got an update on a given condition.
+       * Containers lists the names of all containers in this pod that reference the claim.
        * +optional
+       * +listType=set
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + * repeated string containers = 2; */ - public Builder setLastHeartbeatTime(io.kubernetes.client.proto.Meta.Time value) { - if (lastHeartbeatTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lastHeartbeatTime_ = value; - onChanged(); - } else { - lastHeartbeatTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; + public Builder addContainersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureContainersIsMutable(); + containers_.add(value); + onChanged(); return this; } - /** - *
-       * Last time we got an update on a given condition.
-       * +optional
-       * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; - */ - public Builder setLastHeartbeatTime( - io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { - if (lastHeartbeatTimeBuilder_ == null) { - lastHeartbeatTime_ = builderForValue.build(); - onChanged(); - } else { - lastHeartbeatTimeBuilder_.setMessage(builderForValue.build()); + + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.Resource.Quantity> resources_; + private com.google.protobuf.MapField + internalGetResources() { + if (resources_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ResourcesDefaultEntryHolder.defaultEntry); } - bitField0_ |= 0x00000004; - return this; + return resources_; + } + private com.google.protobuf.MapField + internalGetMutableResources() { + onChanged();; + if (resources_ == null) { + resources_ = com.google.protobuf.MapField.newMapField( + ResourcesDefaultEntryHolder.defaultEntry); + } + if (!resources_.isMutable()) { + resources_ = resources_.copy(); + } + return resources_; + } + + public int getResourcesCount() { + return internalGetResources().getMap().size(); } /** *
-       * Last time we got an update on a given condition.
-       * +optional
+       * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+       * +required
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; */ - public Builder mergeLastHeartbeatTime(io.kubernetes.client.proto.Meta.Time value) { - if (lastHeartbeatTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004) && - lastHeartbeatTime_ != null && - lastHeartbeatTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { - lastHeartbeatTime_ = - io.kubernetes.client.proto.Meta.Time.newBuilder(lastHeartbeatTime_).mergeFrom(value).buildPartial(); - } else { - lastHeartbeatTime_ = value; - } - onChanged(); - } else { - lastHeartbeatTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - return this; + + public boolean containsResources( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetResources().getMap().containsKey(key); } /** - *
-       * Last time we got an update on a given condition.
-       * +optional
-       * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + * Use {@link #getResourcesMap()} instead. */ - public Builder clearLastHeartbeatTime() { - if (lastHeartbeatTimeBuilder_ == null) { - lastHeartbeatTime_ = null; - onChanged(); - } else { - lastHeartbeatTimeBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; + @java.lang.Deprecated + public java.util.Map getResources() { + return getResourcesMap(); } /** *
-       * Last time we got an update on a given condition.
-       * +optional
+       * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+       * +required
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; */ - public io.kubernetes.client.proto.Meta.Time.Builder getLastHeartbeatTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getLastHeartbeatTimeFieldBuilder().getBuilder(); + + public java.util.Map getResourcesMap() { + return internalGetResources().getMap(); } /** *
-       * Last time we got an update on a given condition.
-       * +optional
+       * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+       * +required
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; */ - public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastHeartbeatTimeOrBuilder() { - if (lastHeartbeatTimeBuilder_ != null) { - return lastHeartbeatTimeBuilder_.getMessageOrBuilder(); - } else { - return lastHeartbeatTime_ == null ? - io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastHeartbeatTime_; - } + + public io.kubernetes.client.proto.Resource.Quantity getResourcesOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResources().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
-       * Last time we got an update on a given condition.
-       * +optional
+       * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+       * +required
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> - getLastHeartbeatTimeFieldBuilder() { - if (lastHeartbeatTimeBuilder_ == null) { - lastHeartbeatTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( - getLastHeartbeatTime(), - getParentForChildren(), - isClean()); - lastHeartbeatTime_ = null; + + public io.kubernetes.client.proto.Resource.Quantity getResourcesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetResources().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } - return lastHeartbeatTimeBuilder_; + return map.get(key); } - private io.kubernetes.client.proto.Meta.Time lastTransitionTime_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> lastTransitionTimeBuilder_; + public Builder clearResources() { + internalGetMutableResources().getMutableMap() + .clear(); + return this; + } /** *
-       * Last time the condition transit from one status to another.
-       * +optional
+       * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+       * +required
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; */ - public boolean hasLastTransitionTime() { - return ((bitField0_ & 0x00000008) == 0x00000008); + + public Builder removeResources( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableResources().getMutableMap() + .remove(key); + return this; } /** - *
-       * Last time the condition transit from one status to another.
-       * +optional
-       * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + * Use alternate mutation accessors instead. */ - public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { - if (lastTransitionTimeBuilder_ == null) { - return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; - } else { - return lastTransitionTimeBuilder_.getMessage(); - } + @java.lang.Deprecated + public java.util.Map + getMutableResources() { + return internalGetMutableResources().getMutableMap(); } /** *
-       * Last time the condition transit from one status to another.
-       * +optional
+       * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+       * +required
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; */ - public Builder setLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { + public Builder putResources( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableResources().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Resources is a map of the node-allocatable resource name to the aggregate quantity allocated to the claim.
+       * +required
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> resources = 3; + */ + + public Builder putAllResources( + java.util.Map values) { + internalGetMutableResources().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus) + private static final io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus(); + } + + public static io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeAllocatableResourceClaimStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeAllocatableResourceClaimStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.NodeCondition) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Type of node condition.
+     * 
+ * + * optional string type = 1; + */ + boolean hasType(); + /** + *
+     * Type of node condition.
+     * 
+ * + * optional string type = 1; + */ + java.lang.String getType(); + /** + *
+     * Type of node condition.
+     * 
+ * + * optional string type = 1; + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+     * Status of the condition, one of True, False, Unknown.
+     * 
+ * + * optional string status = 2; + */ + boolean hasStatus(); + /** + *
+     * Status of the condition, one of True, False, Unknown.
+     * 
+ * + * optional string status = 2; + */ + java.lang.String getStatus(); + /** + *
+     * Status of the condition, one of True, False, Unknown.
+     * 
+ * + * optional string status = 2; + */ + com.google.protobuf.ByteString + getStatusBytes(); + + /** + *
+     * Last time we got an update on a given condition.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + */ + boolean hasLastHeartbeatTime(); + /** + *
+     * Last time we got an update on a given condition.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + */ + io.kubernetes.client.proto.Meta.Time getLastHeartbeatTime(); + /** + *
+     * Last time we got an update on a given condition.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + */ + io.kubernetes.client.proto.Meta.TimeOrBuilder getLastHeartbeatTimeOrBuilder(); + + /** + *
+     * Last time the condition transit from one status to another.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + boolean hasLastTransitionTime(); + /** + *
+     * Last time the condition transit from one status to another.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + io.kubernetes.client.proto.Meta.Time getLastTransitionTime(); + /** + *
+     * Last time the condition transit from one status to another.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder(); + + /** + *
+     * (brief) reason for the condition's last transition.
+     * +optional
+     * 
+ * + * optional string reason = 5; + */ + boolean hasReason(); + /** + *
+     * (brief) reason for the condition's last transition.
+     * +optional
+     * 
+ * + * optional string reason = 5; + */ + java.lang.String getReason(); + /** + *
+     * (brief) reason for the condition's last transition.
+     * +optional
+     * 
+ * + * optional string reason = 5; + */ + com.google.protobuf.ByteString + getReasonBytes(); + + /** + *
+     * Human readable message indicating details about last transition.
+     * +optional
+     * 
+ * + * optional string message = 6; + */ + boolean hasMessage(); + /** + *
+     * Human readable message indicating details about last transition.
+     * +optional
+     * 
+ * + * optional string message = 6; + */ + java.lang.String getMessage(); + /** + *
+     * Human readable message indicating details about last transition.
+     * +optional
+     * 
+ * + * optional string message = 6; + */ + com.google.protobuf.ByteString + getMessageBytes(); + } + /** + *
+   * NodeCondition contains condition information for a node.
+   * 
+ * + * Protobuf type {@code k8s.io.api.core.v1.NodeCondition} + */ + public static final class NodeCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.NodeCondition) + NodeConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeCondition.newBuilder() to construct. + private NodeCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeCondition() { + type_ = ""; + status_ = ""; + reason_ = ""; + message_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeCondition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + type_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + status_ = bs; + break; + } + case 26: { + io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = lastHeartbeatTime_.toBuilder(); + } + lastHeartbeatTime_ = input.readMessage(io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastHeartbeatTime_); + lastHeartbeatTime_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = lastTransitionTime_.toBuilder(); + } + lastTransitionTime_ = input.readMessage(io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastTransitionTime_); + lastTransitionTime_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000010; + reason_ = bs; + break; + } + case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000020; + message_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1.NodeCondition.class, io.kubernetes.client.proto.V1.NodeCondition.Builder.class); + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object type_; + /** + *
+     * Type of node condition.
+     * 
+ * + * optional string type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Type of node condition.
+     * 
+ * + * optional string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } + } + /** + *
+     * Type of node condition.
+     * 
+ * + * optional string type = 1; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private volatile java.lang.Object status_; + /** + *
+     * Status of the condition, one of True, False, Unknown.
+     * 
+ * + * optional string status = 2; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * Status of the condition, one of True, False, Unknown.
+     * 
+ * + * optional string status = 2; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + status_ = s; + } + return s; + } + } + /** + *
+     * Status of the condition, one of True, False, Unknown.
+     * 
+ * + * optional string status = 2; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LASTHEARTBEATTIME_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.Meta.Time lastHeartbeatTime_; + /** + *
+     * Last time we got an update on a given condition.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + */ + public boolean hasLastHeartbeatTime() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * Last time we got an update on a given condition.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + */ + public io.kubernetes.client.proto.Meta.Time getLastHeartbeatTime() { + return lastHeartbeatTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastHeartbeatTime_; + } + /** + *
+     * Last time we got an update on a given condition.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastHeartbeatTimeOrBuilder() { + return lastHeartbeatTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastHeartbeatTime_; + } + + public static final int LASTTRANSITIONTIME_FIELD_NUMBER = 4; + private io.kubernetes.client.proto.Meta.Time lastTransitionTime_; + /** + *
+     * Last time the condition transit from one status to another.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public boolean hasLastTransitionTime() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * Last time the condition transit from one status to another.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { + return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + } + /** + *
+     * Last time the condition transit from one status to another.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { + return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + } + + public static final int REASON_FIELD_NUMBER = 5; + private volatile java.lang.Object reason_; + /** + *
+     * (brief) reason for the condition's last transition.
+     * +optional
+     * 
+ * + * optional string reason = 5; + */ + public boolean hasReason() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+     * (brief) reason for the condition's last transition.
+     * +optional
+     * 
+ * + * optional string reason = 5; + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + reason_ = s; + } + return s; + } + } + /** + *
+     * (brief) reason for the condition's last transition.
+     * +optional
+     * 
+ * + * optional string reason = 5; + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 6; + private volatile java.lang.Object message_; + /** + *
+     * Human readable message indicating details about last transition.
+     * +optional
+     * 
+ * + * optional string message = 6; + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+     * Human readable message indicating details about last transition.
+     * +optional
+     * 
+ * + * optional string message = 6; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + message_ = s; + } + return s; + } + } + /** + *
+     * Human readable message indicating details about last transition.
+     * +optional
+     * 
+ * + * optional string message = 6; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getLastHeartbeatTime()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, getLastTransitionTime()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reason_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, message_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLastHeartbeatTime()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getLastTransitionTime()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, reason_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, message_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1.NodeCondition)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1.NodeCondition other = (io.kubernetes.client.proto.V1.NodeCondition) obj; + + boolean result = true; + result = result && (hasType() == other.hasType()); + if (hasType()) { + result = result && getType() + .equals(other.getType()); + } + result = result && (hasStatus() == other.hasStatus()); + if (hasStatus()) { + result = result && getStatus() + .equals(other.getStatus()); + } + result = result && (hasLastHeartbeatTime() == other.hasLastHeartbeatTime()); + if (hasLastHeartbeatTime()) { + result = result && getLastHeartbeatTime() + .equals(other.getLastHeartbeatTime()); + } + result = result && (hasLastTransitionTime() == other.hasLastTransitionTime()); + if (hasLastTransitionTime()) { + result = result && getLastTransitionTime() + .equals(other.getLastTransitionTime()); + } + result = result && (hasReason() == other.hasReason()); + if (hasReason()) { + result = result && getReason() + .equals(other.getReason()); + } + result = result && (hasMessage() == other.hasMessage()); + if (hasMessage()) { + result = result && getMessage() + .equals(other.getMessage()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasLastHeartbeatTime()) { + hash = (37 * hash) + LASTHEARTBEATTIME_FIELD_NUMBER; + hash = (53 * hash) + getLastHeartbeatTime().hashCode(); + } + if (hasLastTransitionTime()) { + hash = (37 * hash) + LASTTRANSITIONTIME_FIELD_NUMBER; + hash = (53 * hash) + getLastTransitionTime().hashCode(); + } + if (hasReason()) { + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + } + if (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1.NodeCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1.NodeCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1.NodeCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1.NodeCondition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1.NodeCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1.NodeCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * NodeCondition contains condition information for a node.
+     * 
+ * + * Protobuf type {@code k8s.io.api.core.v1.NodeCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.NodeCondition) + io.kubernetes.client.proto.V1.NodeConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1.NodeCondition.class, io.kubernetes.client.proto.V1.NodeCondition.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1.NodeCondition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLastHeartbeatTimeFieldBuilder(); + getLastTransitionTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + status_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + if (lastHeartbeatTimeBuilder_ == null) { + lastHeartbeatTime_ = null; + } else { + lastHeartbeatTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTime_ = null; + } else { + lastTransitionTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + reason_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + message_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_NodeCondition_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1.NodeCondition getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1.NodeCondition.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1.NodeCondition build() { + io.kubernetes.client.proto.V1.NodeCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1.NodeCondition buildPartial() { + io.kubernetes.client.proto.V1.NodeCondition result = new io.kubernetes.client.proto.V1.NodeCondition(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.status_ = status_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (lastHeartbeatTimeBuilder_ == null) { + result.lastHeartbeatTime_ = lastHeartbeatTime_; + } else { + result.lastHeartbeatTime_ = lastHeartbeatTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (lastTransitionTimeBuilder_ == null) { + result.lastTransitionTime_ = lastTransitionTime_; + } else { + result.lastTransitionTime_ = lastTransitionTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.reason_ = reason_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.message_ = message_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1.NodeCondition) { + return mergeFrom((io.kubernetes.client.proto.V1.NodeCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1.NodeCondition other) { + if (other == io.kubernetes.client.proto.V1.NodeCondition.getDefaultInstance()) return this; + if (other.hasType()) { + bitField0_ |= 0x00000001; + type_ = other.type_; + onChanged(); + } + if (other.hasStatus()) { + bitField0_ |= 0x00000002; + status_ = other.status_; + onChanged(); + } + if (other.hasLastHeartbeatTime()) { + mergeLastHeartbeatTime(other.getLastHeartbeatTime()); + } + if (other.hasLastTransitionTime()) { + mergeLastTransitionTime(other.getLastTransitionTime()); + } + if (other.hasReason()) { + bitField0_ |= 0x00000010; + reason_ = other.reason_; + onChanged(); + } + if (other.hasMessage()) { + bitField0_ |= 0x00000020; + message_ = other.message_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1.NodeCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1.NodeCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object type_ = ""; + /** + *
+       * Type of node condition.
+       * 
+ * + * optional string type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Type of node condition.
+       * 
+ * + * optional string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Type of node condition.
+       * 
+ * + * optional string type = 1; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Type of node condition.
+       * 
+ * + * optional string type = 1; + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + /** + *
+       * Type of node condition.
+       * 
+ * + * optional string type = 1; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
+       * Type of node condition.
+       * 
+ * + * optional string type = 1; + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + /** + *
+       * Status of the condition, one of True, False, Unknown.
+       * 
+ * + * optional string status = 2; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * Status of the condition, one of True, False, Unknown.
+       * 
+ * + * optional string status = 2; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + status_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Status of the condition, one of True, False, Unknown.
+       * 
+ * + * optional string status = 2; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Status of the condition, one of True, False, Unknown.
+       * 
+ * + * optional string status = 2; + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + status_ = value; + onChanged(); + return this; + } + /** + *
+       * Status of the condition, one of True, False, Unknown.
+       * 
+ * + * optional string status = 2; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + status_ = getDefaultInstance().getStatus(); + onChanged(); + return this; + } + /** + *
+       * Status of the condition, one of True, False, Unknown.
+       * 
+ * + * optional string status = 2; + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + status_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.Meta.Time lastHeartbeatTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> lastHeartbeatTimeBuilder_; + /** + *
+       * Last time we got an update on a given condition.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + */ + public boolean hasLastHeartbeatTime() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * Last time we got an update on a given condition.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + */ + public io.kubernetes.client.proto.Meta.Time getLastHeartbeatTime() { + if (lastHeartbeatTimeBuilder_ == null) { + return lastHeartbeatTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastHeartbeatTime_; + } else { + return lastHeartbeatTimeBuilder_.getMessage(); + } + } + /** + *
+       * Last time we got an update on a given condition.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + */ + public Builder setLastHeartbeatTime(io.kubernetes.client.proto.Meta.Time value) { + if (lastHeartbeatTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastHeartbeatTime_ = value; + onChanged(); + } else { + lastHeartbeatTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * Last time we got an update on a given condition.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + */ + public Builder setLastHeartbeatTime( + io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { + if (lastHeartbeatTimeBuilder_ == null) { + lastHeartbeatTime_ = builderForValue.build(); + onChanged(); + } else { + lastHeartbeatTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * Last time we got an update on a given condition.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + */ + public Builder mergeLastHeartbeatTime(io.kubernetes.client.proto.Meta.Time value) { + if (lastHeartbeatTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + lastHeartbeatTime_ != null && + lastHeartbeatTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { + lastHeartbeatTime_ = + io.kubernetes.client.proto.Meta.Time.newBuilder(lastHeartbeatTime_).mergeFrom(value).buildPartial(); + } else { + lastHeartbeatTime_ = value; + } + onChanged(); + } else { + lastHeartbeatTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * Last time we got an update on a given condition.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + */ + public Builder clearLastHeartbeatTime() { + if (lastHeartbeatTimeBuilder_ == null) { + lastHeartbeatTime_ = null; + onChanged(); + } else { + lastHeartbeatTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * Last time we got an update on a given condition.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + */ + public io.kubernetes.client.proto.Meta.Time.Builder getLastHeartbeatTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getLastHeartbeatTimeFieldBuilder().getBuilder(); + } + /** + *
+       * Last time we got an update on a given condition.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastHeartbeatTimeOrBuilder() { + if (lastHeartbeatTimeBuilder_ != null) { + return lastHeartbeatTimeBuilder_.getMessageOrBuilder(); + } else { + return lastHeartbeatTime_ == null ? + io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastHeartbeatTime_; + } + } + /** + *
+       * Last time we got an update on a given condition.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastHeartbeatTime = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> + getLastHeartbeatTimeFieldBuilder() { + if (lastHeartbeatTimeBuilder_ == null) { + lastHeartbeatTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( + getLastHeartbeatTime(), + getParentForChildren(), + isClean()); + lastHeartbeatTime_ = null; + } + return lastHeartbeatTimeBuilder_; + } + + private io.kubernetes.client.proto.Meta.Time lastTransitionTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> lastTransitionTimeBuilder_; + /** + *
+       * Last time the condition transit from one status to another.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public boolean hasLastTransitionTime() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * Last time the condition transit from one status to another.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { + if (lastTransitionTimeBuilder_ == null) { + return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + } else { + return lastTransitionTimeBuilder_.getMessage(); + } + } + /** + *
+       * Last time the condition transit from one status to another.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public Builder setLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { if (lastTransitionTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -163180,7 +164544,6 @@ public interface NodeRuntimeHandlerFeaturesOrBuilder extends /** *
      * UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.
-     * +featureGate=UserNamespacesSupport
      * +optional
      * 
* @@ -163190,7 +164553,6 @@ public interface NodeRuntimeHandlerFeaturesOrBuilder extends /** *
      * UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.
-     * +featureGate=UserNamespacesSupport
      * +optional
      * 
* @@ -163316,7 +164678,6 @@ public boolean getRecursiveReadOnlyMounts() { /** *
      * UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.
-     * +featureGate=UserNamespacesSupport
      * +optional
      * 
* @@ -163328,7 +164689,6 @@ public boolean hasUserNamespaces() { /** *
      * UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.
-     * +featureGate=UserNamespacesSupport
      * +optional
      * 
* @@ -163740,7 +165100,6 @@ public Builder clearRecursiveReadOnlyMounts() { /** *
        * UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * 
* @@ -163752,7 +165111,6 @@ public boolean hasUserNamespaces() { /** *
        * UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * 
* @@ -163764,7 +165122,6 @@ public boolean getUserNamespaces() { /** *
        * UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * 
* @@ -163779,7 +165136,6 @@ public Builder setUserNamespaces(boolean value) { /** *
        * UserNamespaces is set to true if the runtime handler supports UserNamespaces, including for volumes.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * 
* @@ -170498,7 +171854,6 @@ io.kubernetes.client.proto.V1.AttachedVolumeOrBuilder getVolumesAttachedOrBuilde /** *
      * The available runtime handlers.
-     * +featureGate=UserNamespacesSupport
      * +optional
      * +listType=atomic
      * 
@@ -170510,7 +171865,6 @@ io.kubernetes.client.proto.V1.AttachedVolumeOrBuilder getVolumesAttachedOrBuilde /** *
      * The available runtime handlers.
-     * +featureGate=UserNamespacesSupport
      * +optional
      * +listType=atomic
      * 
@@ -170521,7 +171875,6 @@ io.kubernetes.client.proto.V1.AttachedVolumeOrBuilder getVolumesAttachedOrBuilde /** *
      * The available runtime handlers.
-     * +featureGate=UserNamespacesSupport
      * +optional
      * +listType=atomic
      * 
@@ -170532,7 +171885,6 @@ io.kubernetes.client.proto.V1.AttachedVolumeOrBuilder getVolumesAttachedOrBuilde /** *
      * The available runtime handlers.
-     * +featureGate=UserNamespacesSupport
      * +optional
      * +listType=atomic
      * 
@@ -170544,7 +171896,6 @@ io.kubernetes.client.proto.V1.AttachedVolumeOrBuilder getVolumesAttachedOrBuilde /** *
      * The available runtime handlers.
-     * +featureGate=UserNamespacesSupport
      * +optional
      * +listType=atomic
      * 
@@ -171670,7 +173021,6 @@ public io.kubernetes.client.proto.V1.NodeConfigStatusOrBuilder getConfigOrBuilde /** *
      * The available runtime handlers.
-     * +featureGate=UserNamespacesSupport
      * +optional
      * +listType=atomic
      * 
@@ -171683,7 +173033,6 @@ public java.util.List getRunti /** *
      * The available runtime handlers.
-     * +featureGate=UserNamespacesSupport
      * +optional
      * +listType=atomic
      * 
@@ -171697,7 +173046,6 @@ public java.util.List getRunti /** *
      * The available runtime handlers.
-     * +featureGate=UserNamespacesSupport
      * +optional
      * +listType=atomic
      * 
@@ -171710,7 +173058,6 @@ public int getRuntimeHandlersCount() { /** *
      * The available runtime handlers.
-     * +featureGate=UserNamespacesSupport
      * +optional
      * +listType=atomic
      * 
@@ -171723,7 +173070,6 @@ public io.kubernetes.client.proto.V1.NodeRuntimeHandler getRuntimeHandlers(int i /** *
      * The available runtime handlers.
-     * +featureGate=UserNamespacesSupport
      * +optional
      * +listType=atomic
      * 
@@ -175498,7 +176844,6 @@ private void ensureRuntimeHandlersIsMutable() { /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175515,7 +176860,6 @@ public java.util.List getRunti /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175532,7 +176876,6 @@ public int getRuntimeHandlersCount() { /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175549,7 +176892,6 @@ public io.kubernetes.client.proto.V1.NodeRuntimeHandler getRuntimeHandlers(int i /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175573,7 +176915,6 @@ public Builder setRuntimeHandlers( /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175594,7 +176935,6 @@ public Builder setRuntimeHandlers( /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175617,7 +176957,6 @@ public Builder addRuntimeHandlers(io.kubernetes.client.proto.V1.NodeRuntimeHandl /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175641,7 +176980,6 @@ public Builder addRuntimeHandlers( /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175662,7 +177000,6 @@ public Builder addRuntimeHandlers( /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175683,7 +177020,6 @@ public Builder addRuntimeHandlers( /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175705,7 +177041,6 @@ public Builder addAllRuntimeHandlers( /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175725,7 +177060,6 @@ public Builder clearRuntimeHandlers() { /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175745,7 +177079,6 @@ public Builder removeRuntimeHandlers(int index) { /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175759,7 +177092,6 @@ public io.kubernetes.client.proto.V1.NodeRuntimeHandler.Builder getRuntimeHandle /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175776,7 +177108,6 @@ public io.kubernetes.client.proto.V1.NodeRuntimeHandlerOrBuilder getRuntimeHandl /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175794,7 +177125,6 @@ public io.kubernetes.client.proto.V1.NodeRuntimeHandlerOrBuilder getRuntimeHandl /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175808,7 +177138,6 @@ public io.kubernetes.client.proto.V1.NodeRuntimeHandler.Builder addRuntimeHandle /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -175823,7 +177152,6 @@ public io.kubernetes.client.proto.V1.NodeRuntimeHandler.Builder addRuntimeHandle /** *
        * The available runtime handlers.
-       * +featureGate=UserNamespacesSupport
        * +optional
        * +listType=atomic
        * 
@@ -182800,6 +184128,7 @@ public interface PersistentVolumeOrBuilder extends * PersistentVolume (PV) is a storage resource provisioned by an administrator. * It is analogous to a node. * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + * +k8s:supportsSubresource="/status" * * * Protobuf type {@code k8s.io.api.core.v1.PersistentVolume} @@ -183236,6 +184565,7 @@ protected Builder newBuilderForType( * PersistentVolume (PV) is a storage resource provisioned by an administrator. * It is analogous to a node. * More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes + * +k8s:supportsSubresource="/status" * * * Protobuf type {@code k8s.io.api.core.v1.PersistentVolume} @@ -184134,6 +185464,7 @@ public interface PersistentVolumeClaimOrBuilder extends /** *
    * PersistentVolumeClaim is a user's request for and claim to a persistent volume
+   * +k8s:supportsSubresource="/status"
    * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaim} @@ -184562,6 +185893,7 @@ protected Builder newBuilderForType( /** *
      * PersistentVolumeClaim is a user's request for and claim to a persistent volume
+     * +k8s:supportsSubresource="/status"
      * 
* * Protobuf type {@code k8s.io.api.core.v1.PersistentVolumeClaim} @@ -188690,8 +190022,8 @@ public interface PersistentVolumeClaimSpecOrBuilder extends * * An existing PVC (PersistentVolumeClaim) * If the provisioner or an external controller can support the specified data source, * it will create a new volume based on the contents of the specified data source. - * When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - * and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. + * dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be + * copied to dataSource when dataSourceRef.namespace is not specified. * If the namespace is specified, then dataSourceRef will not be copied to dataSource. * +optional * @@ -188706,8 +190038,8 @@ public interface PersistentVolumeClaimSpecOrBuilder extends * * An existing PVC (PersistentVolumeClaim) * If the provisioner or an external controller can support the specified data source, * it will create a new volume based on the contents of the specified data source. - * When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - * and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. + * dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be + * copied to dataSource when dataSourceRef.namespace is not specified. * If the namespace is specified, then dataSourceRef will not be copied to dataSource. * +optional * @@ -188722,8 +190054,8 @@ public interface PersistentVolumeClaimSpecOrBuilder extends * * An existing PVC (PersistentVolumeClaim) * If the provisioner or an external controller can support the specified data source, * it will create a new volume based on the contents of the specified data source. - * When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - * and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. + * dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be + * copied to dataSource when dataSourceRef.namespace is not specified. * If the namespace is specified, then dataSourceRef will not be copied to dataSource. * +optional * @@ -188755,7 +190087,6 @@ public interface PersistentVolumeClaimSpecOrBuilder extends * specified. * * While dataSource only allows local objects, dataSourceRef allows objects * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. * (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * +optional * @@ -188786,7 +190117,6 @@ public interface PersistentVolumeClaimSpecOrBuilder extends * specified. * * While dataSource only allows local objects, dataSourceRef allows objects * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. * (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * +optional * @@ -188817,7 +190147,6 @@ public interface PersistentVolumeClaimSpecOrBuilder extends * specified. * * While dataSource only allows local objects, dataSourceRef allows objects * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. * (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * +optional * @@ -189382,8 +190711,8 @@ public java.lang.String getVolumeMode() { * * An existing PVC (PersistentVolumeClaim) * If the provisioner or an external controller can support the specified data source, * it will create a new volume based on the contents of the specified data source. - * When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - * and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. + * dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be + * copied to dataSource when dataSourceRef.namespace is not specified. * If the namespace is specified, then dataSourceRef will not be copied to dataSource. * +optional * @@ -189400,8 +190729,8 @@ public boolean hasDataSource() { * * An existing PVC (PersistentVolumeClaim) * If the provisioner or an external controller can support the specified data source, * it will create a new volume based on the contents of the specified data source. - * When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - * and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. + * dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be + * copied to dataSource when dataSourceRef.namespace is not specified. * If the namespace is specified, then dataSourceRef will not be copied to dataSource. * +optional * @@ -189418,8 +190747,8 @@ public io.kubernetes.client.proto.V1.TypedLocalObjectReference getDataSource() { * * An existing PVC (PersistentVolumeClaim) * If the provisioner or an external controller can support the specified data source, * it will create a new volume based on the contents of the specified data source. - * When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - * and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. + * dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be + * copied to dataSource when dataSourceRef.namespace is not specified. * If the namespace is specified, then dataSourceRef will not be copied to dataSource. * +optional * @@ -189455,7 +190784,6 @@ public io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder getDataS * specified. * * While dataSource only allows local objects, dataSourceRef allows objects * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. * (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * +optional * @@ -189488,7 +190816,6 @@ public boolean hasDataSourceRef() { * specified. * * While dataSource only allows local objects, dataSourceRef allows objects * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. * (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * +optional * @@ -189521,7 +190848,6 @@ public io.kubernetes.client.proto.V1.TypedObjectReference getDataSourceRef() { * specified. * * While dataSource only allows local objects, dataSourceRef allows objects * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. * (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * +optional * @@ -191046,8 +192372,8 @@ public Builder setVolumeModeBytes( * * An existing PVC (PersistentVolumeClaim) * If the provisioner or an external controller can support the specified data source, * it will create a new volume based on the contents of the specified data source. - * When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - * and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. + * dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be + * copied to dataSource when dataSourceRef.namespace is not specified. * If the namespace is specified, then dataSourceRef will not be copied to dataSource. * +optional * @@ -191064,8 +192390,8 @@ public boolean hasDataSource() { * * An existing PVC (PersistentVolumeClaim) * If the provisioner or an external controller can support the specified data source, * it will create a new volume based on the contents of the specified data source. - * When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - * and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. + * dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be + * copied to dataSource when dataSourceRef.namespace is not specified. * If the namespace is specified, then dataSourceRef will not be copied to dataSource. * +optional * @@ -191086,8 +192412,8 @@ public io.kubernetes.client.proto.V1.TypedLocalObjectReference getDataSource() { * * An existing PVC (PersistentVolumeClaim) * If the provisioner or an external controller can support the specified data source, * it will create a new volume based on the contents of the specified data source. - * When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - * and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. + * dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be + * copied to dataSource when dataSourceRef.namespace is not specified. * If the namespace is specified, then dataSourceRef will not be copied to dataSource. * +optional * @@ -191114,8 +192440,8 @@ public Builder setDataSource(io.kubernetes.client.proto.V1.TypedLocalObjectRefer * * An existing PVC (PersistentVolumeClaim) * If the provisioner or an external controller can support the specified data source, * it will create a new volume based on the contents of the specified data source. - * When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - * and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. + * dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be + * copied to dataSource when dataSourceRef.namespace is not specified. * If the namespace is specified, then dataSourceRef will not be copied to dataSource. * +optional * @@ -191140,8 +192466,8 @@ public Builder setDataSource( * * An existing PVC (PersistentVolumeClaim) * If the provisioner or an external controller can support the specified data source, * it will create a new volume based on the contents of the specified data source. - * When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - * and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. + * dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be + * copied to dataSource when dataSourceRef.namespace is not specified. * If the namespace is specified, then dataSourceRef will not be copied to dataSource. * +optional * @@ -191172,8 +192498,8 @@ public Builder mergeDataSource(io.kubernetes.client.proto.V1.TypedLocalObjectRef * * An existing PVC (PersistentVolumeClaim) * If the provisioner or an external controller can support the specified data source, * it will create a new volume based on the contents of the specified data source. - * When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - * and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. + * dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be + * copied to dataSource when dataSourceRef.namespace is not specified. * If the namespace is specified, then dataSourceRef will not be copied to dataSource. * +optional * @@ -191197,8 +192523,8 @@ public Builder clearDataSource() { * * An existing PVC (PersistentVolumeClaim) * If the provisioner or an external controller can support the specified data source, * it will create a new volume based on the contents of the specified data source. - * When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - * and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. + * dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be + * copied to dataSource when dataSourceRef.namespace is not specified. * If the namespace is specified, then dataSourceRef will not be copied to dataSource. * +optional * @@ -191217,8 +192543,8 @@ public io.kubernetes.client.proto.V1.TypedLocalObjectReference.Builder getDataSo * * An existing PVC (PersistentVolumeClaim) * If the provisioner or an external controller can support the specified data source, * it will create a new volume based on the contents of the specified data source. - * When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - * and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. + * dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be + * copied to dataSource when dataSourceRef.namespace is not specified. * If the namespace is specified, then dataSourceRef will not be copied to dataSource. * +optional * @@ -191240,8 +192566,8 @@ public io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder getDataS * * An existing PVC (PersistentVolumeClaim) * If the provisioner or an external controller can support the specified data source, * it will create a new volume based on the contents of the specified data source. - * When the AnyVolumeDataSource feature gate is enabled, dataSource contents will be copied to dataSourceRef, - * and dataSourceRef contents will be copied to dataSource when dataSourceRef.namespace is not specified. + * dataSource contents will be copied to dataSourceRef, and dataSourceRef contents will be + * copied to dataSource when dataSourceRef.namespace is not specified. * If the namespace is specified, then dataSourceRef will not be copied to dataSource. * +optional * @@ -191288,7 +192614,6 @@ public io.kubernetes.client.proto.V1.TypedLocalObjectReferenceOrBuilder getDataS * specified. * * While dataSource only allows local objects, dataSourceRef allows objects * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. * (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * +optional * @@ -191321,7 +192646,6 @@ public boolean hasDataSourceRef() { * specified. * * While dataSource only allows local objects, dataSourceRef allows objects * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. * (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * +optional * @@ -191358,7 +192682,6 @@ public io.kubernetes.client.proto.V1.TypedObjectReference getDataSourceRef() { * specified. * * While dataSource only allows local objects, dataSourceRef allows objects * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. * (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * +optional * @@ -191401,7 +192724,6 @@ public Builder setDataSourceRef(io.kubernetes.client.proto.V1.TypedObjectReferen * specified. * * While dataSource only allows local objects, dataSourceRef allows objects * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. * (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * +optional * @@ -191442,7 +192764,6 @@ public Builder setDataSourceRef( * specified. * * While dataSource only allows local objects, dataSourceRef allows objects * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. * (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * +optional * @@ -191489,7 +192810,6 @@ public Builder mergeDataSourceRef(io.kubernetes.client.proto.V1.TypedObjectRefer * specified. * * While dataSource only allows local objects, dataSourceRef allows objects * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. * (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * +optional * @@ -191529,7 +192849,6 @@ public Builder clearDataSourceRef() { * specified. * * While dataSource only allows local objects, dataSourceRef allows objects * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. * (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * +optional * @@ -191564,7 +192883,6 @@ public io.kubernetes.client.proto.V1.TypedObjectReference.Builder getDataSourceR * specified. * * While dataSource only allows local objects, dataSourceRef allows objects * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. * (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * +optional * @@ -191602,7 +192920,6 @@ public io.kubernetes.client.proto.V1.TypedObjectReferenceOrBuilder getDataSource * specified. * * While dataSource only allows local objects, dataSourceRef allows objects * in any namespaces. - * (Beta) Using this field requires the AnyVolumeDataSource feature gate to be enabled. * (Alpha) Using the namespace field of dataSourceRef requires the CrossNamespaceVolumeDataSource feature gate to be enabled. * +optional * @@ -211750,6 +213067,10 @@ public interface PodOrBuilder extends *
    * Pod is a collection of containers that can run on a host. This resource is created
    * by clients and scheduled onto hosts.
+   * +k8s:supportsSubresource="/status"
+   * +k8s:supportsSubresource="/ephemeralcontainers"
+   * +k8s:supportsSubresource="/resize"
+   * +k8s:supportsSubresource="/eviction"
    * 
* * Protobuf type {@code k8s.io.api.core.v1.Pod} @@ -212185,6 +213506,10 @@ protected Builder newBuilderForType( *
      * Pod is a collection of containers that can run on a host. This resource is created
      * by clients and scheduled onto hosts.
+     * +k8s:supportsSubresource="/status"
+     * +k8s:supportsSubresource="/ephemeralcontainers"
+     * +k8s:supportsSubresource="/resize"
+     * +k8s:supportsSubresource="/eviction"
      * 
* * Protobuf type {@code k8s.io.api.core.v1.Pod} @@ -223005,8 +224330,6 @@ public interface PodConditionOrBuilder extends /** *
      * If set, this represents the .metadata.generation that the pod condition was set based upon.
-     * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-     * +featureGate=PodObservedGenerationTracking
      * +optional
      * 
* @@ -223016,8 +224339,6 @@ public interface PodConditionOrBuilder extends /** *
      * If set, this represents the .metadata.generation that the pod condition was set based upon.
-     * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-     * +featureGate=PodObservedGenerationTracking
      * +optional
      * 
* @@ -223369,8 +224690,6 @@ public java.lang.String getType() { /** *
      * If set, this represents the .metadata.generation that the pod condition was set based upon.
-     * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-     * +featureGate=PodObservedGenerationTracking
      * +optional
      * 
* @@ -223382,8 +224701,6 @@ public boolean hasObservedGeneration() { /** *
      * If set, this represents the .metadata.generation that the pod condition was set based upon.
-     * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-     * +featureGate=PodObservedGenerationTracking
      * +optional
      * 
* @@ -224241,8 +225558,6 @@ public Builder setTypeBytes( /** *
        * If set, this represents the .metadata.generation that the pod condition was set based upon.
-       * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-       * +featureGate=PodObservedGenerationTracking
        * +optional
        * 
* @@ -224254,8 +225569,6 @@ public boolean hasObservedGeneration() { /** *
        * If set, this represents the .metadata.generation that the pod condition was set based upon.
-       * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-       * +featureGate=PodObservedGenerationTracking
        * +optional
        * 
* @@ -224267,8 +225580,6 @@ public long getObservedGeneration() { /** *
        * If set, this represents the .metadata.generation that the pod condition was set based upon.
-       * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-       * +featureGate=PodObservedGenerationTracking
        * +optional
        * 
* @@ -224283,8 +225594,6 @@ public Builder setObservedGeneration(long value) { /** *
        * If set, this represents the .metadata.generation that the pod condition was set based upon.
-       * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-       * +featureGate=PodObservedGenerationTracking
        * +optional
        * 
* @@ -237070,6 +238379,15 @@ public interface PodResourceClaimOrBuilder extends * will also be deleted. The pod name and resource name, along with a * generated component, will be used to form a unique name for the * ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + * When the DRAWorkloadResourceClaims feature gate is enabled and the pod + * belongs to a PodGroup that defines a PodGroupResourceClaim with the same + * Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the + * ResourceClaim generated for the PodGroup. All pods in the group that + * define an equivalent PodResourceClaim matching the + * PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same + * generated ResourceClaim. ResourceClaims generated for a PodGroup are + * owned by the PodGroup and their lifecycles are tied to the PodGroup + * instead of any individual pod. * This field is immutable and no changes will be made to the * corresponding ResourceClaim by the control plane after creating the * ResourceClaim. @@ -237089,6 +238407,15 @@ public interface PodResourceClaimOrBuilder extends * will also be deleted. The pod name and resource name, along with a * generated component, will be used to form a unique name for the * ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + * When the DRAWorkloadResourceClaims feature gate is enabled and the pod + * belongs to a PodGroup that defines a PodGroupResourceClaim with the same + * Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the + * ResourceClaim generated for the PodGroup. All pods in the group that + * define an equivalent PodResourceClaim matching the + * PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same + * generated ResourceClaim. ResourceClaims generated for a PodGroup are + * owned by the PodGroup and their lifecycles are tied to the PodGroup + * instead of any individual pod. * This field is immutable and no changes will be made to the * corresponding ResourceClaim by the control plane after creating the * ResourceClaim. @@ -237108,6 +238435,15 @@ public interface PodResourceClaimOrBuilder extends * will also be deleted. The pod name and resource name, along with a * generated component, will be used to form a unique name for the * ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + * When the DRAWorkloadResourceClaims feature gate is enabled and the pod + * belongs to a PodGroup that defines a PodGroupResourceClaim with the same + * Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the + * ResourceClaim generated for the PodGroup. All pods in the group that + * define an equivalent PodResourceClaim matching the + * PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same + * generated ResourceClaim. ResourceClaims generated for a PodGroup are + * owned by the PodGroup and their lifecycles are tied to the PodGroup + * instead of any individual pod. * This field is immutable and no changes will be made to the * corresponding ResourceClaim by the control plane after creating the * ResourceClaim. @@ -237127,6 +238463,13 @@ public interface PodResourceClaimOrBuilder extends * for the pod. * It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. * Containers that need access to the ResourceClaim reference it with this name. + * When the DRAWorkloadResourceClaims feature gate is enabled and this Pod + * belongs to a PodGroup, a PodResourceClaim is matched to a + * PodGroupResourceClaim if all of their fields are equal (Name, + * ResourceClaimName, and ResourceClaimTemplateName). A matched claim references + * a single ResourceClaim shared across all Pods in the PodGroup, reserved for + * the PodGroup in ResourceClaimStatus.ReservedFor rather than for individual + * Pods. * * * Protobuf type {@code k8s.io.api.core.v1.PodResourceClaim} @@ -237352,6 +238695,15 @@ public java.lang.String getResourceClaimName() { * will also be deleted. The pod name and resource name, along with a * generated component, will be used to form a unique name for the * ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + * When the DRAWorkloadResourceClaims feature gate is enabled and the pod + * belongs to a PodGroup that defines a PodGroupResourceClaim with the same + * Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the + * ResourceClaim generated for the PodGroup. All pods in the group that + * define an equivalent PodResourceClaim matching the + * PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same + * generated ResourceClaim. ResourceClaims generated for a PodGroup are + * owned by the PodGroup and their lifecycles are tied to the PodGroup + * instead of any individual pod. * This field is immutable and no changes will be made to the * corresponding ResourceClaim by the control plane after creating the * ResourceClaim. @@ -237373,6 +238725,15 @@ public boolean hasResourceClaimTemplateName() { * will also be deleted. The pod name and resource name, along with a * generated component, will be used to form a unique name for the * ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + * When the DRAWorkloadResourceClaims feature gate is enabled and the pod + * belongs to a PodGroup that defines a PodGroupResourceClaim with the same + * Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the + * ResourceClaim generated for the PodGroup. All pods in the group that + * define an equivalent PodResourceClaim matching the + * PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same + * generated ResourceClaim. ResourceClaims generated for a PodGroup are + * owned by the PodGroup and their lifecycles are tied to the PodGroup + * instead of any individual pod. * This field is immutable and no changes will be made to the * corresponding ResourceClaim by the control plane after creating the * ResourceClaim. @@ -237405,6 +238766,15 @@ public java.lang.String getResourceClaimTemplateName() { * will also be deleted. The pod name and resource name, along with a * generated component, will be used to form a unique name for the * ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + * When the DRAWorkloadResourceClaims feature gate is enabled and the pod + * belongs to a PodGroup that defines a PodGroupResourceClaim with the same + * Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the + * ResourceClaim generated for the PodGroup. All pods in the group that + * define an equivalent PodResourceClaim matching the + * PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same + * generated ResourceClaim. ResourceClaims generated for a PodGroup are + * owned by the PodGroup and their lifecycles are tied to the PodGroup + * instead of any individual pod. * This field is immutable and no changes will be made to the * corresponding ResourceClaim by the control plane after creating the * ResourceClaim. @@ -237625,6 +238995,13 @@ protected Builder newBuilderForType( * for the pod. * It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. * Containers that need access to the ResourceClaim reference it with this name. + * When the DRAWorkloadResourceClaims feature gate is enabled and this Pod + * belongs to a PodGroup, a PodResourceClaim is matched to a + * PodGroupResourceClaim if all of their fields are equal (Name, + * ResourceClaimName, and ResourceClaimTemplateName). A matched claim references + * a single ResourceClaim shared across all Pods in the PodGroup, reserved for + * the PodGroup in ResourceClaimStatus.ReservedFor rather than for individual + * Pods. * * * Protobuf type {@code k8s.io.api.core.v1.PodResourceClaim} @@ -238038,6 +239415,15 @@ public Builder setResourceClaimNameBytes( * will also be deleted. The pod name and resource name, along with a * generated component, will be used to form a unique name for the * ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + * When the DRAWorkloadResourceClaims feature gate is enabled and the pod + * belongs to a PodGroup that defines a PodGroupResourceClaim with the same + * Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the + * ResourceClaim generated for the PodGroup. All pods in the group that + * define an equivalent PodResourceClaim matching the + * PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same + * generated ResourceClaim. ResourceClaims generated for a PodGroup are + * owned by the PodGroup and their lifecycles are tied to the PodGroup + * instead of any individual pod. * This field is immutable and no changes will be made to the * corresponding ResourceClaim by the control plane after creating the * ResourceClaim. @@ -238059,6 +239445,15 @@ public boolean hasResourceClaimTemplateName() { * will also be deleted. The pod name and resource name, along with a * generated component, will be used to form a unique name for the * ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + * When the DRAWorkloadResourceClaims feature gate is enabled and the pod + * belongs to a PodGroup that defines a PodGroupResourceClaim with the same + * Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the + * ResourceClaim generated for the PodGroup. All pods in the group that + * define an equivalent PodResourceClaim matching the + * PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same + * generated ResourceClaim. ResourceClaims generated for a PodGroup are + * owned by the PodGroup and their lifecycles are tied to the PodGroup + * instead of any individual pod. * This field is immutable and no changes will be made to the * corresponding ResourceClaim by the control plane after creating the * ResourceClaim. @@ -238091,6 +239486,15 @@ public java.lang.String getResourceClaimTemplateName() { * will also be deleted. The pod name and resource name, along with a * generated component, will be used to form a unique name for the * ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + * When the DRAWorkloadResourceClaims feature gate is enabled and the pod + * belongs to a PodGroup that defines a PodGroupResourceClaim with the same + * Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the + * ResourceClaim generated for the PodGroup. All pods in the group that + * define an equivalent PodResourceClaim matching the + * PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same + * generated ResourceClaim. ResourceClaims generated for a PodGroup are + * owned by the PodGroup and their lifecycles are tied to the PodGroup + * instead of any individual pod. * This field is immutable and no changes will be made to the * corresponding ResourceClaim by the control plane after creating the * ResourceClaim. @@ -238122,6 +239526,15 @@ public java.lang.String getResourceClaimTemplateName() { * will also be deleted. The pod name and resource name, along with a * generated component, will be used to form a unique name for the * ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + * When the DRAWorkloadResourceClaims feature gate is enabled and the pod + * belongs to a PodGroup that defines a PodGroupResourceClaim with the same + * Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the + * ResourceClaim generated for the PodGroup. All pods in the group that + * define an equivalent PodResourceClaim matching the + * PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same + * generated ResourceClaim. ResourceClaims generated for a PodGroup are + * owned by the PodGroup and their lifecycles are tied to the PodGroup + * instead of any individual pod. * This field is immutable and no changes will be made to the * corresponding ResourceClaim by the control plane after creating the * ResourceClaim. @@ -238150,6 +239563,15 @@ public Builder setResourceClaimTemplateName( * will also be deleted. The pod name and resource name, along with a * generated component, will be used to form a unique name for the * ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + * When the DRAWorkloadResourceClaims feature gate is enabled and the pod + * belongs to a PodGroup that defines a PodGroupResourceClaim with the same + * Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the + * ResourceClaim generated for the PodGroup. All pods in the group that + * define an equivalent PodResourceClaim matching the + * PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same + * generated ResourceClaim. ResourceClaims generated for a PodGroup are + * owned by the PodGroup and their lifecycles are tied to the PodGroup + * instead of any individual pod. * This field is immutable and no changes will be made to the * corresponding ResourceClaim by the control plane after creating the * ResourceClaim. @@ -238174,6 +239596,15 @@ public Builder clearResourceClaimTemplateName() { * will also be deleted. The pod name and resource name, along with a * generated component, will be used to form a unique name for the * ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + * When the DRAWorkloadResourceClaims feature gate is enabled and the pod + * belongs to a PodGroup that defines a PodGroupResourceClaim with the same + * Name and ResourceClaimTemplateName, this PodResourceClaim resolves to the + * ResourceClaim generated for the PodGroup. All pods in the group that + * define an equivalent PodResourceClaim matching the + * PodGroupResourceClaim's Name and ResourceClaimTemplateName share the same + * generated ResourceClaim. ResourceClaims generated for a PodGroup are + * owned by the PodGroup and their lifecycles are tied to the PodGroup + * instead of any individual pod. * This field is immutable and no changes will be made to the * corresponding ResourceClaim by the control plane after creating the * ResourceClaim. @@ -238285,9 +239716,14 @@ public interface PodResourceClaimStatusOrBuilder extends /** *
      * ResourceClaimName is the name of the ResourceClaim that was
-     * generated for the Pod in the namespace of the Pod. If this is
-     * unset, then generating a ResourceClaim was not necessary. The
-     * pod.spec.resourceClaims entry can be ignored in this case.
+     * generated for the Pod in the namespace of the Pod.
+     * When the DRAWorkloadResourceClaims feature is enabled and the
+     * corresponding PodResourceClaim matches a PodGroupResourceClaim
+     * made by the Pod's PodGroup, then this is the name of the
+     * ResourceClaim generated and reserved for the PodGroup.
+     * If this is unset, then generating a ResourceClaim was not
+     * necessary. The pod.spec.resourceClaims entry can be ignored in
+     * this case.
      * +optional
      * 
* @@ -238297,9 +239733,14 @@ public interface PodResourceClaimStatusOrBuilder extends /** *
      * ResourceClaimName is the name of the ResourceClaim that was
-     * generated for the Pod in the namespace of the Pod. If this is
-     * unset, then generating a ResourceClaim was not necessary. The
-     * pod.spec.resourceClaims entry can be ignored in this case.
+     * generated for the Pod in the namespace of the Pod.
+     * When the DRAWorkloadResourceClaims feature is enabled and the
+     * corresponding PodResourceClaim matches a PodGroupResourceClaim
+     * made by the Pod's PodGroup, then this is the name of the
+     * ResourceClaim generated and reserved for the PodGroup.
+     * If this is unset, then generating a ResourceClaim was not
+     * necessary. The pod.spec.resourceClaims entry can be ignored in
+     * this case.
      * +optional
      * 
* @@ -238309,9 +239750,14 @@ public interface PodResourceClaimStatusOrBuilder extends /** *
      * ResourceClaimName is the name of the ResourceClaim that was
-     * generated for the Pod in the namespace of the Pod. If this is
-     * unset, then generating a ResourceClaim was not necessary. The
-     * pod.spec.resourceClaims entry can be ignored in this case.
+     * generated for the Pod in the namespace of the Pod.
+     * When the DRAWorkloadResourceClaims feature is enabled and the
+     * corresponding PodResourceClaim matches a PodGroupResourceClaim
+     * made by the Pod's PodGroup, then this is the name of the
+     * ResourceClaim generated and reserved for the PodGroup.
+     * If this is unset, then generating a ResourceClaim was not
+     * necessary. The pod.spec.resourceClaims entry can be ignored in
+     * this case.
      * +optional
      * 
* @@ -238477,9 +239923,14 @@ public java.lang.String getName() { /** *
      * ResourceClaimName is the name of the ResourceClaim that was
-     * generated for the Pod in the namespace of the Pod. If this is
-     * unset, then generating a ResourceClaim was not necessary. The
-     * pod.spec.resourceClaims entry can be ignored in this case.
+     * generated for the Pod in the namespace of the Pod.
+     * When the DRAWorkloadResourceClaims feature is enabled and the
+     * corresponding PodResourceClaim matches a PodGroupResourceClaim
+     * made by the Pod's PodGroup, then this is the name of the
+     * ResourceClaim generated and reserved for the PodGroup.
+     * If this is unset, then generating a ResourceClaim was not
+     * necessary. The pod.spec.resourceClaims entry can be ignored in
+     * this case.
      * +optional
      * 
* @@ -238491,9 +239942,14 @@ public boolean hasResourceClaimName() { /** *
      * ResourceClaimName is the name of the ResourceClaim that was
-     * generated for the Pod in the namespace of the Pod. If this is
-     * unset, then generating a ResourceClaim was not necessary. The
-     * pod.spec.resourceClaims entry can be ignored in this case.
+     * generated for the Pod in the namespace of the Pod.
+     * When the DRAWorkloadResourceClaims feature is enabled and the
+     * corresponding PodResourceClaim matches a PodGroupResourceClaim
+     * made by the Pod's PodGroup, then this is the name of the
+     * ResourceClaim generated and reserved for the PodGroup.
+     * If this is unset, then generating a ResourceClaim was not
+     * necessary. The pod.spec.resourceClaims entry can be ignored in
+     * this case.
      * +optional
      * 
* @@ -238516,9 +239972,14 @@ public java.lang.String getResourceClaimName() { /** *
      * ResourceClaimName is the name of the ResourceClaim that was
-     * generated for the Pod in the namespace of the Pod. If this is
-     * unset, then generating a ResourceClaim was not necessary. The
-     * pod.spec.resourceClaims entry can be ignored in this case.
+     * generated for the Pod in the namespace of the Pod.
+     * When the DRAWorkloadResourceClaims feature is enabled and the
+     * corresponding PodResourceClaim matches a PodGroupResourceClaim
+     * made by the Pod's PodGroup, then this is the name of the
+     * ResourceClaim generated and reserved for the PodGroup.
+     * If this is unset, then generating a ResourceClaim was not
+     * necessary. The pod.spec.resourceClaims entry can be ignored in
+     * this case.
      * +optional
      * 
* @@ -239002,9 +240463,14 @@ public Builder setNameBytes( /** *
        * ResourceClaimName is the name of the ResourceClaim that was
-       * generated for the Pod in the namespace of the Pod. If this is
-       * unset, then generating a ResourceClaim was not necessary. The
-       * pod.spec.resourceClaims entry can be ignored in this case.
+       * generated for the Pod in the namespace of the Pod.
+       * When the DRAWorkloadResourceClaims feature is enabled and the
+       * corresponding PodResourceClaim matches a PodGroupResourceClaim
+       * made by the Pod's PodGroup, then this is the name of the
+       * ResourceClaim generated and reserved for the PodGroup.
+       * If this is unset, then generating a ResourceClaim was not
+       * necessary. The pod.spec.resourceClaims entry can be ignored in
+       * this case.
        * +optional
        * 
* @@ -239016,9 +240482,14 @@ public boolean hasResourceClaimName() { /** *
        * ResourceClaimName is the name of the ResourceClaim that was
-       * generated for the Pod in the namespace of the Pod. If this is
-       * unset, then generating a ResourceClaim was not necessary. The
-       * pod.spec.resourceClaims entry can be ignored in this case.
+       * generated for the Pod in the namespace of the Pod.
+       * When the DRAWorkloadResourceClaims feature is enabled and the
+       * corresponding PodResourceClaim matches a PodGroupResourceClaim
+       * made by the Pod's PodGroup, then this is the name of the
+       * ResourceClaim generated and reserved for the PodGroup.
+       * If this is unset, then generating a ResourceClaim was not
+       * necessary. The pod.spec.resourceClaims entry can be ignored in
+       * this case.
        * +optional
        * 
* @@ -239041,9 +240512,14 @@ public java.lang.String getResourceClaimName() { /** *
        * ResourceClaimName is the name of the ResourceClaim that was
-       * generated for the Pod in the namespace of the Pod. If this is
-       * unset, then generating a ResourceClaim was not necessary. The
-       * pod.spec.resourceClaims entry can be ignored in this case.
+       * generated for the Pod in the namespace of the Pod.
+       * When the DRAWorkloadResourceClaims feature is enabled and the
+       * corresponding PodResourceClaim matches a PodGroupResourceClaim
+       * made by the Pod's PodGroup, then this is the name of the
+       * ResourceClaim generated and reserved for the PodGroup.
+       * If this is unset, then generating a ResourceClaim was not
+       * necessary. The pod.spec.resourceClaims entry can be ignored in
+       * this case.
        * +optional
        * 
* @@ -239065,9 +240541,14 @@ public java.lang.String getResourceClaimName() { /** *
        * ResourceClaimName is the name of the ResourceClaim that was
-       * generated for the Pod in the namespace of the Pod. If this is
-       * unset, then generating a ResourceClaim was not necessary. The
-       * pod.spec.resourceClaims entry can be ignored in this case.
+       * generated for the Pod in the namespace of the Pod.
+       * When the DRAWorkloadResourceClaims feature is enabled and the
+       * corresponding PodResourceClaim matches a PodGroupResourceClaim
+       * made by the Pod's PodGroup, then this is the name of the
+       * ResourceClaim generated and reserved for the PodGroup.
+       * If this is unset, then generating a ResourceClaim was not
+       * necessary. The pod.spec.resourceClaims entry can be ignored in
+       * this case.
        * +optional
        * 
* @@ -239086,9 +240567,14 @@ public Builder setResourceClaimName( /** *
        * ResourceClaimName is the name of the ResourceClaim that was
-       * generated for the Pod in the namespace of the Pod. If this is
-       * unset, then generating a ResourceClaim was not necessary. The
-       * pod.spec.resourceClaims entry can be ignored in this case.
+       * generated for the Pod in the namespace of the Pod.
+       * When the DRAWorkloadResourceClaims feature is enabled and the
+       * corresponding PodResourceClaim matches a PodGroupResourceClaim
+       * made by the Pod's PodGroup, then this is the name of the
+       * ResourceClaim generated and reserved for the PodGroup.
+       * If this is unset, then generating a ResourceClaim was not
+       * necessary. The pod.spec.resourceClaims entry can be ignored in
+       * this case.
        * +optional
        * 
* @@ -239103,9 +240589,14 @@ public Builder clearResourceClaimName() { /** *
        * ResourceClaimName is the name of the ResourceClaim that was
-       * generated for the Pod in the namespace of the Pod. If this is
-       * unset, then generating a ResourceClaim was not necessary. The
-       * pod.spec.resourceClaims entry can be ignored in this case.
+       * generated for the Pod in the namespace of the Pod.
+       * When the DRAWorkloadResourceClaims feature is enabled and the
+       * corresponding PodResourceClaim matches a PodGroupResourceClaim
+       * made by the Pod's PodGroup, then this is the name of the
+       * ResourceClaim generated and reserved for the PodGroup.
+       * If this is unset, then generating a ResourceClaim was not
+       * necessary. The pod.spec.resourceClaims entry can be ignored in
+       * this case.
        * +optional
        * 
* @@ -239362,7 +240853,679 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1.PodSchedulingGate)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1.PodSchedulingGate other = (io.kubernetes.client.proto.V1.PodSchedulingGate) obj; + + boolean result = true; + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1.PodSchedulingGate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1.PodSchedulingGate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1.PodSchedulingGate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * PodSchedulingGate is associated to a Pod to guard its scheduling.
+     * 
+ * + * Protobuf type {@code k8s.io.api.core.v1.PodSchedulingGate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodSchedulingGate) + io.kubernetes.client.proto.V1.PodSchedulingGateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodSchedulingGate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodSchedulingGate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1.PodSchedulingGate.class, io.kubernetes.client.proto.V1.PodSchedulingGate.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1.PodSchedulingGate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodSchedulingGate_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1.PodSchedulingGate getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1.PodSchedulingGate.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1.PodSchedulingGate build() { + io.kubernetes.client.proto.V1.PodSchedulingGate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1.PodSchedulingGate buildPartial() { + io.kubernetes.client.proto.V1.PodSchedulingGate result = new io.kubernetes.client.proto.V1.PodSchedulingGate(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1.PodSchedulingGate) { + return mergeFrom((io.kubernetes.client.proto.V1.PodSchedulingGate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1.PodSchedulingGate other) { + if (other == io.kubernetes.client.proto.V1.PodSchedulingGate.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1.PodSchedulingGate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1.PodSchedulingGate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * Name of the scheduling gate.
+       * Each scheduling gate must have a unique name field.
+       * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Name of the scheduling gate.
+       * Each scheduling gate must have a unique name field.
+       * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name of the scheduling gate.
+       * Each scheduling gate must have a unique name field.
+       * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name of the scheduling gate.
+       * Each scheduling gate must have a unique name field.
+       * 
+ * + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Name of the scheduling gate.
+       * Each scheduling gate must have a unique name field.
+       * 
+ * + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name of the scheduling gate.
+       * Each scheduling gate must have a unique name field.
+       * 
+ * + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.PodSchedulingGate) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodSchedulingGate) + private static final io.kubernetes.client.proto.V1.PodSchedulingGate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodSchedulingGate(); + } + + public static io.kubernetes.client.proto.V1.PodSchedulingGate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PodSchedulingGate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PodSchedulingGate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1.PodSchedulingGate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PodSchedulingGroupOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodSchedulingGroup) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * PodGroupName specifies the name of the standalone PodGroup object
+     * that represents the runtime instance of this group.
+     * Must be a DNS subdomain.
+     * +optional
+     * +oneOf=GroupSelection
+     * 
+ * + * optional string podGroupName = 1; + */ + boolean hasPodGroupName(); + /** + *
+     * PodGroupName specifies the name of the standalone PodGroup object
+     * that represents the runtime instance of this group.
+     * Must be a DNS subdomain.
+     * +optional
+     * +oneOf=GroupSelection
+     * 
+ * + * optional string podGroupName = 1; + */ + java.lang.String getPodGroupName(); + /** + *
+     * PodGroupName specifies the name of the standalone PodGroup object
+     * that represents the runtime instance of this group.
+     * Must be a DNS subdomain.
+     * +optional
+     * +oneOf=GroupSelection
+     * 
+ * + * optional string podGroupName = 1; + */ + com.google.protobuf.ByteString + getPodGroupNameBytes(); + } + /** + *
+   * PodSchedulingGroup identifies the runtime scheduling group instance that a Pod belongs to.
+   * The scheduler uses this information to apply workload-aware scheduling semantics.
+   * Exactly one field must be specified.
+   * +union
+   * 
+ * + * Protobuf type {@code k8s.io.api.core.v1.PodSchedulingGroup} + */ + public static final class PodSchedulingGroup extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodSchedulingGroup) + PodSchedulingGroupOrBuilder { + private static final long serialVersionUID = 0L; + // Use PodSchedulingGroup.newBuilder() to construct. + private PodSchedulingGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PodSchedulingGroup() { + podGroupName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PodSchedulingGroup( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + podGroupName_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodSchedulingGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodSchedulingGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1.PodSchedulingGroup.class, io.kubernetes.client.proto.V1.PodSchedulingGroup.Builder.class); + } + + private int bitField0_; + public static final int PODGROUPNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object podGroupName_; + /** + *
+     * PodGroupName specifies the name of the standalone PodGroup object
+     * that represents the runtime instance of this group.
+     * Must be a DNS subdomain.
+     * +optional
+     * +oneOf=GroupSelection
+     * 
+ * + * optional string podGroupName = 1; + */ + public boolean hasPodGroupName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * PodGroupName specifies the name of the standalone PodGroup object
+     * that represents the runtime instance of this group.
+     * Must be a DNS subdomain.
+     * +optional
+     * +oneOf=GroupSelection
+     * 
+ * + * optional string podGroupName = 1; + */ + public java.lang.String getPodGroupName() { + java.lang.Object ref = podGroupName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + podGroupName_ = s; + } + return s; + } + } + /** + *
+     * PodGroupName specifies the name of the standalone PodGroup object
+     * that represents the runtime instance of this group.
+     * Must be a DNS subdomain.
+     * +optional
+     * +oneOf=GroupSelection
+     * 
+ * + * optional string podGroupName = 1; + */ + public com.google.protobuf.ByteString + getPodGroupNameBytes() { + java.lang.Object ref = podGroupName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + podGroupName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, podGroupName_); } unknownFields.writeTo(output); } @@ -239374,7 +241537,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, podGroupName_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -239386,16 +241549,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.kubernetes.client.proto.V1.PodSchedulingGate)) { + if (!(obj instanceof io.kubernetes.client.proto.V1.PodSchedulingGroup)) { return super.equals(obj); } - io.kubernetes.client.proto.V1.PodSchedulingGate other = (io.kubernetes.client.proto.V1.PodSchedulingGate) obj; + io.kubernetes.client.proto.V1.PodSchedulingGroup other = (io.kubernetes.client.proto.V1.PodSchedulingGroup) obj; boolean result = true; - result = result && (hasName() == other.hasName()); - if (hasName()) { - result = result && getName() - .equals(other.getName()); + result = result && (hasPodGroupName() == other.hasPodGroupName()); + if (hasPodGroupName()) { + result = result && getPodGroupName() + .equals(other.getPodGroupName()); } result = result && unknownFields.equals(other.unknownFields); return result; @@ -239408,78 +241571,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); + if (hasPodGroupName()) { + hash = (37 * hash) + PODGROUPNAME_FIELD_NUMBER; + hash = (53 * hash) + getPodGroupName().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + public static io.kubernetes.client.proto.V1.PodSchedulingGroup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + public static io.kubernetes.client.proto.V1.PodSchedulingGroup parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + public static io.kubernetes.client.proto.V1.PodSchedulingGroup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + public static io.kubernetes.client.proto.V1.PodSchedulingGroup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom(byte[] data) + public static io.kubernetes.client.proto.V1.PodSchedulingGroup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + public static io.kubernetes.client.proto.V1.PodSchedulingGroup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1.PodSchedulingGroup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + public static io.kubernetes.client.proto.V1.PodSchedulingGroup parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1.PodSchedulingGate parseDelimitedFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1.PodSchedulingGroup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.PodSchedulingGate parseDelimitedFrom( + public static io.kubernetes.client.proto.V1.PodSchedulingGroup parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + public static io.kubernetes.client.proto.V1.PodSchedulingGroup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( + public static io.kubernetes.client.proto.V1.PodSchedulingGroup parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -239492,7 +241655,7 @@ public static io.kubernetes.client.proto.V1.PodSchedulingGate parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.kubernetes.client.proto.V1.PodSchedulingGate prototype) { + public static Builder newBuilder(io.kubernetes.client.proto.V1.PodSchedulingGroup prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -239509,29 +241672,32 @@ protected Builder newBuilderForType( } /** *
-     * PodSchedulingGate is associated to a Pod to guard its scheduling.
+     * PodSchedulingGroup identifies the runtime scheduling group instance that a Pod belongs to.
+     * The scheduler uses this information to apply workload-aware scheduling semantics.
+     * Exactly one field must be specified.
+     * +union
      * 
* - * Protobuf type {@code k8s.io.api.core.v1.PodSchedulingGate} + * Protobuf type {@code k8s.io.api.core.v1.PodSchedulingGroup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodSchedulingGate) - io.kubernetes.client.proto.V1.PodSchedulingGateOrBuilder { + // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodSchedulingGroup) + io.kubernetes.client.proto.V1.PodSchedulingGroupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodSchedulingGate_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodSchedulingGroup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodSchedulingGate_fieldAccessorTable + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodSchedulingGroup_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1.PodSchedulingGate.class, io.kubernetes.client.proto.V1.PodSchedulingGate.Builder.class); + io.kubernetes.client.proto.V1.PodSchedulingGroup.class, io.kubernetes.client.proto.V1.PodSchedulingGroup.Builder.class); } - // Construct using io.kubernetes.client.proto.V1.PodSchedulingGate.newBuilder() + // Construct using io.kubernetes.client.proto.V1.PodSchedulingGroup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -239549,7 +241715,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - name_ = ""; + podGroupName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -239557,17 +241723,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodSchedulingGate_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodSchedulingGroup_descriptor; } @java.lang.Override - public io.kubernetes.client.proto.V1.PodSchedulingGate getDefaultInstanceForType() { - return io.kubernetes.client.proto.V1.PodSchedulingGate.getDefaultInstance(); + public io.kubernetes.client.proto.V1.PodSchedulingGroup getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1.PodSchedulingGroup.getDefaultInstance(); } @java.lang.Override - public io.kubernetes.client.proto.V1.PodSchedulingGate build() { - io.kubernetes.client.proto.V1.PodSchedulingGate result = buildPartial(); + public io.kubernetes.client.proto.V1.PodSchedulingGroup build() { + io.kubernetes.client.proto.V1.PodSchedulingGroup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -239575,14 +241741,14 @@ public io.kubernetes.client.proto.V1.PodSchedulingGate build() { } @java.lang.Override - public io.kubernetes.client.proto.V1.PodSchedulingGate buildPartial() { - io.kubernetes.client.proto.V1.PodSchedulingGate result = new io.kubernetes.client.proto.V1.PodSchedulingGate(this); + public io.kubernetes.client.proto.V1.PodSchedulingGroup buildPartial() { + io.kubernetes.client.proto.V1.PodSchedulingGroup result = new io.kubernetes.client.proto.V1.PodSchedulingGroup(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } - result.name_ = name_; + result.podGroupName_ = podGroupName_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -239622,19 +241788,19 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.kubernetes.client.proto.V1.PodSchedulingGate) { - return mergeFrom((io.kubernetes.client.proto.V1.PodSchedulingGate)other); + if (other instanceof io.kubernetes.client.proto.V1.PodSchedulingGroup) { + return mergeFrom((io.kubernetes.client.proto.V1.PodSchedulingGroup)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.kubernetes.client.proto.V1.PodSchedulingGate other) { - if (other == io.kubernetes.client.proto.V1.PodSchedulingGate.getDefaultInstance()) return this; - if (other.hasName()) { + public Builder mergeFrom(io.kubernetes.client.proto.V1.PodSchedulingGroup other) { + if (other == io.kubernetes.client.proto.V1.PodSchedulingGroup.getDefaultInstance()) return this; + if (other.hasPodGroupName()) { bitField0_ |= 0x00000001; - name_ = other.name_; + podGroupName_ = other.podGroupName_; onChanged(); } this.mergeUnknownFields(other.unknownFields); @@ -239652,11 +241818,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.kubernetes.client.proto.V1.PodSchedulingGate parsedMessage = null; + io.kubernetes.client.proto.V1.PodSchedulingGroup parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.kubernetes.client.proto.V1.PodSchedulingGate) e.getUnfinishedMessage(); + parsedMessage = (io.kubernetes.client.proto.V1.PodSchedulingGroup) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -239667,34 +241833,40 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object name_ = ""; + private java.lang.Object podGroupName_ = ""; /** *
-       * Name of the scheduling gate.
-       * Each scheduling gate must have a unique name field.
+       * PodGroupName specifies the name of the standalone PodGroup object
+       * that represents the runtime instance of this group.
+       * Must be a DNS subdomain.
+       * +optional
+       * +oneOf=GroupSelection
        * 
* - * optional string name = 1; + * optional string podGroupName = 1; */ - public boolean hasName() { + public boolean hasPodGroupName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-       * Name of the scheduling gate.
-       * Each scheduling gate must have a unique name field.
+       * PodGroupName specifies the name of the standalone PodGroup object
+       * that represents the runtime instance of this group.
+       * Must be a DNS subdomain.
+       * +optional
+       * +oneOf=GroupSelection
        * 
* - * optional string name = 1; + * optional string podGroupName = 1; */ - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getPodGroupName() { + java.lang.Object ref = podGroupName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - name_ = s; + podGroupName_ = s; } return s; } else { @@ -239703,20 +241875,23 @@ public java.lang.String getName() { } /** *
-       * Name of the scheduling gate.
-       * Each scheduling gate must have a unique name field.
+       * PodGroupName specifies the name of the standalone PodGroup object
+       * that represents the runtime instance of this group.
+       * Must be a DNS subdomain.
+       * +optional
+       * +oneOf=GroupSelection
        * 
* - * optional string name = 1; + * optional string podGroupName = 1; */ public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; + getPodGroupNameBytes() { + java.lang.Object ref = podGroupName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - name_ = b; + podGroupName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -239724,51 +241899,60 @@ public java.lang.String getName() { } /** *
-       * Name of the scheduling gate.
-       * Each scheduling gate must have a unique name field.
+       * PodGroupName specifies the name of the standalone PodGroup object
+       * that represents the runtime instance of this group.
+       * Must be a DNS subdomain.
+       * +optional
+       * +oneOf=GroupSelection
        * 
* - * optional string name = 1; + * optional string podGroupName = 1; */ - public Builder setName( + public Builder setPodGroupName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - name_ = value; + podGroupName_ = value; onChanged(); return this; } /** *
-       * Name of the scheduling gate.
-       * Each scheduling gate must have a unique name field.
+       * PodGroupName specifies the name of the standalone PodGroup object
+       * that represents the runtime instance of this group.
+       * Must be a DNS subdomain.
+       * +optional
+       * +oneOf=GroupSelection
        * 
* - * optional string name = 1; + * optional string podGroupName = 1; */ - public Builder clearName() { + public Builder clearPodGroupName() { bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); + podGroupName_ = getDefaultInstance().getPodGroupName(); onChanged(); return this; } /** *
-       * Name of the scheduling gate.
-       * Each scheduling gate must have a unique name field.
+       * PodGroupName specifies the name of the standalone PodGroup object
+       * that represents the runtime instance of this group.
+       * Must be a DNS subdomain.
+       * +optional
+       * +oneOf=GroupSelection
        * 
* - * optional string name = 1; + * optional string podGroupName = 1; */ - public Builder setNameBytes( + public Builder setPodGroupNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - name_ = value; + podGroupName_ = value; onChanged(); return this; } @@ -239785,41 +241969,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.PodSchedulingGate) + // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.PodSchedulingGroup) } - // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodSchedulingGate) - private static final io.kubernetes.client.proto.V1.PodSchedulingGate DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodSchedulingGroup) + private static final io.kubernetes.client.proto.V1.PodSchedulingGroup DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodSchedulingGate(); + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodSchedulingGroup(); } - public static io.kubernetes.client.proto.V1.PodSchedulingGate getDefaultInstance() { + public static io.kubernetes.client.proto.V1.PodSchedulingGroup getDefaultInstance() { return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public PodSchedulingGate parsePartialFrom( + public PodSchedulingGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PodSchedulingGate(input, extensionRegistry); + return new PodSchedulingGroup(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.kubernetes.client.proto.V1.PodSchedulingGate getDefaultInstanceForType() { + public io.kubernetes.client.proto.V1.PodSchedulingGroup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -240317,10 +242501,7 @@ io.kubernetes.client.proto.V1.SysctlOrBuilder getSysctlsOrBuilder( * Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes * whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their * CSIDriver instance. Other volumes are always re-labelled recursively. - * "MountOption" value is allowed only when SELinuxMount feature gate is enabled. - * If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. - * If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes - * and "Recursive" for all other volumes. + * If not specified, "MountOption" is used. * This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. * All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. * Note that this field cannot be set when spec.os.name is windows. @@ -240344,10 +242525,7 @@ io.kubernetes.client.proto.V1.SysctlOrBuilder getSysctlsOrBuilder( * Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes * whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their * CSIDriver instance. Other volumes are always re-labelled recursively. - * "MountOption" value is allowed only when SELinuxMount feature gate is enabled. - * If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. - * If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes - * and "Recursive" for all other volumes. + * If not specified, "MountOption" is used. * This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. * All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. * Note that this field cannot be set when spec.os.name is windows. @@ -240371,10 +242549,7 @@ io.kubernetes.client.proto.V1.SysctlOrBuilder getSysctlsOrBuilder( * Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes * whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their * CSIDriver instance. Other volumes are always re-labelled recursively. - * "MountOption" value is allowed only when SELinuxMount feature gate is enabled. - * If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. - * If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes - * and "Recursive" for all other volumes. + * If not specified, "MountOption" is used. * This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. * All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. * Note that this field cannot be set when spec.os.name is windows. @@ -241222,10 +243397,7 @@ public io.kubernetes.client.proto.V1.AppArmorProfileOrBuilder getAppArmorProfile * Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes * whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their * CSIDriver instance. Other volumes are always re-labelled recursively. - * "MountOption" value is allowed only when SELinuxMount feature gate is enabled. - * If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. - * If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes - * and "Recursive" for all other volumes. + * If not specified, "MountOption" is used. * This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. * All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. * Note that this field cannot be set when spec.os.name is windows. @@ -241251,10 +243423,7 @@ public boolean hasSeLinuxChangePolicy() { * Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes * whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their * CSIDriver instance. Other volumes are always re-labelled recursively. - * "MountOption" value is allowed only when SELinuxMount feature gate is enabled. - * If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. - * If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes - * and "Recursive" for all other volumes. + * If not specified, "MountOption" is used. * This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. * All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. * Note that this field cannot be set when spec.os.name is windows. @@ -241291,10 +243460,7 @@ public java.lang.String getSeLinuxChangePolicy() { * Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes * whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their * CSIDriver instance. Other volumes are always re-labelled recursively. - * "MountOption" value is allowed only when SELinuxMount feature gate is enabled. - * If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. - * If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes - * and "Recursive" for all other volumes. + * If not specified, "MountOption" is used. * This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. * All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. * Note that this field cannot be set when spec.os.name is windows. @@ -243906,10 +246072,7 @@ public io.kubernetes.client.proto.V1.AppArmorProfileOrBuilder getAppArmorProfile * Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes * whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their * CSIDriver instance. Other volumes are always re-labelled recursively. - * "MountOption" value is allowed only when SELinuxMount feature gate is enabled. - * If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. - * If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes - * and "Recursive" for all other volumes. + * If not specified, "MountOption" is used. * This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. * All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. * Note that this field cannot be set when spec.os.name is windows. @@ -243935,10 +246098,7 @@ public boolean hasSeLinuxChangePolicy() { * Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes * whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their * CSIDriver instance. Other volumes are always re-labelled recursively. - * "MountOption" value is allowed only when SELinuxMount feature gate is enabled. - * If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. - * If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes - * and "Recursive" for all other volumes. + * If not specified, "MountOption" is used. * This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. * All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. * Note that this field cannot be set when spec.os.name is windows. @@ -243975,10 +246135,7 @@ public java.lang.String getSeLinuxChangePolicy() { * Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes * whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their * CSIDriver instance. Other volumes are always re-labelled recursively. - * "MountOption" value is allowed only when SELinuxMount feature gate is enabled. - * If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. - * If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes - * and "Recursive" for all other volumes. + * If not specified, "MountOption" is used. * This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. * All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. * Note that this field cannot be set when spec.os.name is windows. @@ -244014,10 +246171,7 @@ public java.lang.String getSeLinuxChangePolicy() { * Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes * whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their * CSIDriver instance. Other volumes are always re-labelled recursively. - * "MountOption" value is allowed only when SELinuxMount feature gate is enabled. - * If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. - * If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes - * and "Recursive" for all other volumes. + * If not specified, "MountOption" is used. * This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. * All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. * Note that this field cannot be set when spec.os.name is windows. @@ -244050,10 +246204,7 @@ public Builder setSeLinuxChangePolicy( * Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes * whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their * CSIDriver instance. Other volumes are always re-labelled recursively. - * "MountOption" value is allowed only when SELinuxMount feature gate is enabled. - * If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. - * If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes - * and "Recursive" for all other volumes. + * If not specified, "MountOption" is used. * This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. * All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. * Note that this field cannot be set when spec.os.name is windows. @@ -244082,10 +246233,7 @@ public Builder clearSeLinuxChangePolicy() { * Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes * whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their * CSIDriver instance. Other volumes are always re-labelled recursively. - * "MountOption" value is allowed only when SELinuxMount feature gate is enabled. - * If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. - * If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes - * and "Recursive" for all other volumes. + * If not specified, "MountOption" is used. * This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers. * All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. * Note that this field cannot be set when spec.os.name is windows. @@ -245473,7 +247621,6 @@ java.lang.String getNodeSelectorOrThrow( *
      * DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
      * Deprecated: Use serviceAccountName instead.
-     * +k8s:conversion-gen=false
      * +optional
      * 
* @@ -245484,7 +247631,6 @@ java.lang.String getNodeSelectorOrThrow( *
      * DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
      * Deprecated: Use serviceAccountName instead.
-     * +k8s:conversion-gen=false
      * +optional
      * 
* @@ -245495,7 +247641,6 @@ java.lang.String getNodeSelectorOrThrow( *
      * DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
      * Deprecated: Use serviceAccountName instead.
-     * +k8s:conversion-gen=false
      * +optional
      * 
* @@ -245571,7 +247716,6 @@ java.lang.String getNodeSelectorOrThrow( * When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, * and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. * Default to false. - * +k8s:conversion-gen=false * +optional * * @@ -245585,7 +247729,6 @@ java.lang.String getNodeSelectorOrThrow( * When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, * and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. * Default to false. - * +k8s:conversion-gen=false * +optional * * @@ -245597,7 +247740,6 @@ java.lang.String getNodeSelectorOrThrow( *
      * Use the host's pid namespace.
      * Optional: Default to false.
-     * +k8s:conversion-gen=false
      * +optional
      * 
* @@ -245608,7 +247750,6 @@ java.lang.String getNodeSelectorOrThrow( *
      * Use the host's pid namespace.
      * Optional: Default to false.
-     * +k8s:conversion-gen=false
      * +optional
      * 
* @@ -245620,7 +247761,6 @@ java.lang.String getNodeSelectorOrThrow( *
      * Use the host's ipc namespace.
      * Optional: Default to false.
-     * +k8s:conversion-gen=false
      * +optional
      * 
* @@ -245631,7 +247771,6 @@ java.lang.String getNodeSelectorOrThrow( *
      * Use the host's ipc namespace.
      * Optional: Default to false.
-     * +k8s:conversion-gen=false
      * +optional
      * 
* @@ -245646,7 +247785,6 @@ java.lang.String getNodeSelectorOrThrow( * in the same pod, and the first process in each container will not be assigned PID 1. * HostPID and ShareProcessNamespace cannot both be set. * Optional: Default to false. - * +k8s:conversion-gen=false * +optional * * @@ -245660,7 +247798,6 @@ java.lang.String getNodeSelectorOrThrow( * in the same pod, and the first process in each container will not be assigned PID 1. * HostPID and ShareProcessNamespace cannot both be set. * Optional: Default to false. - * +k8s:conversion-gen=false * +optional * * @@ -245907,6 +248044,7 @@ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getImagePullSecretsO * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -245918,6 +248056,7 @@ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getImagePullSecretsO * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -245928,6 +248067,7 @@ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getImagePullSecretsO * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -245938,6 +248078,7 @@ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getImagePullSecretsO * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -245949,6 +248090,7 @@ io.kubernetes.client.proto.V1.LocalObjectReferenceOrBuilder getImagePullSecretsO * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -246272,6 +248414,8 @@ io.kubernetes.client.proto.V1.PodReadinessGateOrBuilder getReadinessGatesOrBuild *
      * PreemptionPolicy is the Policy for preempting pods with lower priority.
      * One of Never, PreemptLowerPriority.
+     * When Priority Admission Controller is enabled, it prevents users from setting
+     * this field. The admission controller populates this field from PriorityClassName.
      * Defaults to PreemptLowerPriority if unset.
      * +optional
      * 
@@ -246283,6 +248427,8 @@ io.kubernetes.client.proto.V1.PodReadinessGateOrBuilder getReadinessGatesOrBuild *
      * PreemptionPolicy is the Policy for preempting pods with lower priority.
      * One of Never, PreemptLowerPriority.
+     * When Priority Admission Controller is enabled, it prevents users from setting
+     * this field. The admission controller populates this field from PriorityClassName.
      * Defaults to PreemptLowerPriority if unset.
      * +optional
      * 
@@ -246294,6 +248440,8 @@ io.kubernetes.client.proto.V1.PodReadinessGateOrBuilder getReadinessGatesOrBuild *
      * PreemptionPolicy is the Policy for preempting pods with lower priority.
      * One of Never, PreemptLowerPriority.
+     * When Priority Admission Controller is enabled, it prevents users from setting
+     * this field. The admission controller populates this field from PriorityClassName.
      * Defaults to PreemptLowerPriority if unset.
      * +optional
      * 
@@ -246628,8 +248776,6 @@ io.kubernetes.client.proto.V1.TopologySpreadConstraintOrBuilder getTopologySprea * When set to false, a new userns is created for the pod. Setting false is useful for * mitigating container breakout vulnerabilities even allowing users to run their * containers as root without actually having root privileges on the host. - * This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. - * +k8s:conversion-gen=false * +optional * * @@ -246646,8 +248792,6 @@ io.kubernetes.client.proto.V1.TopologySpreadConstraintOrBuilder getTopologySprea * When set to false, a new userns is created for the pod. Setting false is useful for * mitigating container breakout vulnerabilities even allowing users to run their * containers as root without actually having root privileges on the host. - * This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. - * +k8s:conversion-gen=false * +optional * * @@ -246953,52 +249097,67 @@ io.kubernetes.client.proto.V1.PodResourceClaimOrBuilder getResourceClaimsOrBuild /** *
-     * WorkloadRef provides a reference to the Workload object that this Pod belongs to.
-     * This field is used by the scheduler to identify the PodGroup and apply the
-     * correct group scheduling policies. The Workload object referenced
-     * by this field may not exist at the time the Pod is created.
-     * This field is immutable, but a Workload object with the same name
-     * may be recreated with different policies. Doing this during pod scheduling
+     * SchedulingGroup provides a reference to the immediate scheduling runtime
+     * grouping object that this Pod belongs to.
+     * This field is used by the scheduler to identify the group and apply the
+     * correct group scheduling policies. The association with a group also
+     * impacts other lifecycle aspects of a Pod that are relevant in a wider context
+     * of scheduling like preemption, resource attachment, etc. If not specified,
+     * the Pod is treated as a single unit in all of these aspects.
+     * The group object referenced by this field may not exist at the time the
+     * Pod is created.
+     * This field is immutable, but a group object with the same name may be
+     * recreated with different policies. Doing this during pod scheduling
      * may result in the placement not conforming to the expected policies.
      * +featureGate=GenericWorkload
      * +optional
      * 
* - * optional .k8s.io.api.core.v1.WorkloadReference workloadRef = 42; + * optional .k8s.io.api.core.v1.PodSchedulingGroup schedulingGroup = 43; */ - boolean hasWorkloadRef(); + boolean hasSchedulingGroup(); /** *
-     * WorkloadRef provides a reference to the Workload object that this Pod belongs to.
-     * This field is used by the scheduler to identify the PodGroup and apply the
-     * correct group scheduling policies. The Workload object referenced
-     * by this field may not exist at the time the Pod is created.
-     * This field is immutable, but a Workload object with the same name
-     * may be recreated with different policies. Doing this during pod scheduling
+     * SchedulingGroup provides a reference to the immediate scheduling runtime
+     * grouping object that this Pod belongs to.
+     * This field is used by the scheduler to identify the group and apply the
+     * correct group scheduling policies. The association with a group also
+     * impacts other lifecycle aspects of a Pod that are relevant in a wider context
+     * of scheduling like preemption, resource attachment, etc. If not specified,
+     * the Pod is treated as a single unit in all of these aspects.
+     * The group object referenced by this field may not exist at the time the
+     * Pod is created.
+     * This field is immutable, but a group object with the same name may be
+     * recreated with different policies. Doing this during pod scheduling
      * may result in the placement not conforming to the expected policies.
      * +featureGate=GenericWorkload
      * +optional
      * 
* - * optional .k8s.io.api.core.v1.WorkloadReference workloadRef = 42; + * optional .k8s.io.api.core.v1.PodSchedulingGroup schedulingGroup = 43; */ - io.kubernetes.client.proto.V1.WorkloadReference getWorkloadRef(); + io.kubernetes.client.proto.V1.PodSchedulingGroup getSchedulingGroup(); /** *
-     * WorkloadRef provides a reference to the Workload object that this Pod belongs to.
-     * This field is used by the scheduler to identify the PodGroup and apply the
-     * correct group scheduling policies. The Workload object referenced
-     * by this field may not exist at the time the Pod is created.
-     * This field is immutable, but a Workload object with the same name
-     * may be recreated with different policies. Doing this during pod scheduling
+     * SchedulingGroup provides a reference to the immediate scheduling runtime
+     * grouping object that this Pod belongs to.
+     * This field is used by the scheduler to identify the group and apply the
+     * correct group scheduling policies. The association with a group also
+     * impacts other lifecycle aspects of a Pod that are relevant in a wider context
+     * of scheduling like preemption, resource attachment, etc. If not specified,
+     * the Pod is treated as a single unit in all of these aspects.
+     * The group object referenced by this field may not exist at the time the
+     * Pod is created.
+     * This field is immutable, but a group object with the same name may be
+     * recreated with different policies. Doing this during pod scheduling
      * may result in the placement not conforming to the expected policies.
      * +featureGate=GenericWorkload
      * +optional
      * 
* - * optional .k8s.io.api.core.v1.WorkloadReference workloadRef = 42; + * optional .k8s.io.api.core.v1.PodSchedulingGroup schedulingGroup = 43; */ - io.kubernetes.client.proto.V1.WorkloadReferenceOrBuilder getWorkloadRefOrBuilder(); + io.kubernetes.client.proto.V1.PodSchedulingGroupOrBuilder getSchedulingGroupOrBuilder(); } /** *
@@ -247395,15 +249554,15 @@ private PodSpec(
               hostnameOverride_ = bs;
               break;
             }
-            case 338: {
-              io.kubernetes.client.proto.V1.WorkloadReference.Builder subBuilder = null;
+            case 346: {
+              io.kubernetes.client.proto.V1.PodSchedulingGroup.Builder subBuilder = null;
               if (((bitField0_ & 0x10000000) == 0x10000000)) {
-                subBuilder = workloadRef_.toBuilder();
+                subBuilder = schedulingGroup_.toBuilder();
               }
-              workloadRef_ = input.readMessage(io.kubernetes.client.proto.V1.WorkloadReference.PARSER, extensionRegistry);
+              schedulingGroup_ = input.readMessage(io.kubernetes.client.proto.V1.PodSchedulingGroup.PARSER, extensionRegistry);
               if (subBuilder != null) {
-                subBuilder.mergeFrom(workloadRef_);
-                workloadRef_ = subBuilder.buildPartial();
+                subBuilder.mergeFrom(schedulingGroup_);
+                schedulingGroup_ = subBuilder.buildPartial();
               }
               bitField0_ |= 0x10000000;
               break;
@@ -248273,7 +250432,6 @@ public java.lang.String getServiceAccountName() {
      * 
      * DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
      * Deprecated: Use serviceAccountName instead.
-     * +k8s:conversion-gen=false
      * +optional
      * 
* @@ -248286,7 +250444,6 @@ public boolean hasServiceAccount() { *
      * DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
      * Deprecated: Use serviceAccountName instead.
-     * +k8s:conversion-gen=false
      * +optional
      * 
* @@ -248310,7 +250467,6 @@ public java.lang.String getServiceAccount() { *
      * DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
      * Deprecated: Use serviceAccountName instead.
-     * +k8s:conversion-gen=false
      * +optional
      * 
* @@ -248433,7 +250589,6 @@ public java.lang.String getNodeName() { * When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, * and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. * Default to false. - * +k8s:conversion-gen=false * +optional *
* @@ -248449,7 +250604,6 @@ public boolean hasHostNetwork() { * When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, * and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. * Default to false. - * +k8s:conversion-gen=false * +optional * * @@ -248465,7 +250619,6 @@ public boolean getHostNetwork() { *
      * Use the host's pid namespace.
      * Optional: Default to false.
-     * +k8s:conversion-gen=false
      * +optional
      * 
* @@ -248478,7 +250631,6 @@ public boolean hasHostPID() { *
      * Use the host's pid namespace.
      * Optional: Default to false.
-     * +k8s:conversion-gen=false
      * +optional
      * 
* @@ -248494,7 +250646,6 @@ public boolean getHostPID() { *
      * Use the host's ipc namespace.
      * Optional: Default to false.
-     * +k8s:conversion-gen=false
      * +optional
      * 
* @@ -248507,7 +250658,6 @@ public boolean hasHostIPC() { *
      * Use the host's ipc namespace.
      * Optional: Default to false.
-     * +k8s:conversion-gen=false
      * +optional
      * 
* @@ -248526,7 +250676,6 @@ public boolean getHostIPC() { * in the same pod, and the first process in each container will not be assigned PID 1. * HostPID and ShareProcessNamespace cannot both be set. * Optional: Default to false. - * +k8s:conversion-gen=false * +optional * * @@ -248542,7 +250691,6 @@ public boolean hasShareProcessNamespace() { * in the same pod, and the first process in each container will not be assigned PID 1. * HostPID and ShareProcessNamespace cannot both be set. * Optional: Default to false. - * +k8s:conversion-gen=false * +optional * * @@ -248904,6 +251052,7 @@ public java.lang.String getSchedulerName() { * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -248916,6 +251065,7 @@ public java.util.List getTolerationsLi * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -248929,6 +251079,7 @@ public java.util.List getTolerationsLi * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -248941,6 +251092,7 @@ public int getTolerationsCount() { * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -248953,6 +251105,7 @@ public io.kubernetes.client.proto.V1.Toleration getTolerations(int index) { * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -249378,6 +251531,8 @@ public boolean getEnableServiceLinks() { *
      * PreemptionPolicy is the Policy for preempting pods with lower priority.
      * One of Never, PreemptLowerPriority.
+     * When Priority Admission Controller is enabled, it prevents users from setting
+     * this field. The admission controller populates this field from PriorityClassName.
      * Defaults to PreemptLowerPriority if unset.
      * +optional
      * 
@@ -249391,6 +251546,8 @@ public boolean hasPreemptionPolicy() { *
      * PreemptionPolicy is the Policy for preempting pods with lower priority.
      * One of Never, PreemptLowerPriority.
+     * When Priority Admission Controller is enabled, it prevents users from setting
+     * this field. The admission controller populates this field from PriorityClassName.
      * Defaults to PreemptLowerPriority if unset.
      * +optional
      * 
@@ -249415,6 +251572,8 @@ public java.lang.String getPreemptionPolicy() { *
      * PreemptionPolicy is the Policy for preempting pods with lower priority.
      * One of Never, PreemptLowerPriority.
+     * When Priority Admission Controller is enabled, it prevents users from setting
+     * this field. The admission controller populates this field from PriorityClassName.
      * Defaults to PreemptLowerPriority if unset.
      * +optional
      * 
@@ -249818,8 +251977,6 @@ public io.kubernetes.client.proto.V1.PodOSOrBuilder getOsOrBuilder() { * When set to false, a new userns is created for the pod. Setting false is useful for * mitigating container breakout vulnerabilities even allowing users to run their * containers as root without actually having root privileges on the host. - * This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. - * +k8s:conversion-gen=false * +optional * * @@ -249838,8 +251995,6 @@ public boolean hasHostUsers() { * When set to false, a new userns is created for the pod. Setting false is useful for * mitigating container breakout vulnerabilities even allowing users to run their * containers as root without actually having root privileges on the host. - * This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. - * +k8s:conversion-gen=false * +optional * * @@ -250203,61 +252358,76 @@ public java.lang.String getHostnameOverride() { } } - public static final int WORKLOADREF_FIELD_NUMBER = 42; - private io.kubernetes.client.proto.V1.WorkloadReference workloadRef_; + public static final int SCHEDULINGGROUP_FIELD_NUMBER = 43; + private io.kubernetes.client.proto.V1.PodSchedulingGroup schedulingGroup_; /** *
-     * WorkloadRef provides a reference to the Workload object that this Pod belongs to.
-     * This field is used by the scheduler to identify the PodGroup and apply the
-     * correct group scheduling policies. The Workload object referenced
-     * by this field may not exist at the time the Pod is created.
-     * This field is immutable, but a Workload object with the same name
-     * may be recreated with different policies. Doing this during pod scheduling
+     * SchedulingGroup provides a reference to the immediate scheduling runtime
+     * grouping object that this Pod belongs to.
+     * This field is used by the scheduler to identify the group and apply the
+     * correct group scheduling policies. The association with a group also
+     * impacts other lifecycle aspects of a Pod that are relevant in a wider context
+     * of scheduling like preemption, resource attachment, etc. If not specified,
+     * the Pod is treated as a single unit in all of these aspects.
+     * The group object referenced by this field may not exist at the time the
+     * Pod is created.
+     * This field is immutable, but a group object with the same name may be
+     * recreated with different policies. Doing this during pod scheduling
      * may result in the placement not conforming to the expected policies.
      * +featureGate=GenericWorkload
      * +optional
      * 
* - * optional .k8s.io.api.core.v1.WorkloadReference workloadRef = 42; + * optional .k8s.io.api.core.v1.PodSchedulingGroup schedulingGroup = 43; */ - public boolean hasWorkloadRef() { + public boolean hasSchedulingGroup() { return ((bitField0_ & 0x10000000) == 0x10000000); } /** *
-     * WorkloadRef provides a reference to the Workload object that this Pod belongs to.
-     * This field is used by the scheduler to identify the PodGroup and apply the
-     * correct group scheduling policies. The Workload object referenced
-     * by this field may not exist at the time the Pod is created.
-     * This field is immutable, but a Workload object with the same name
-     * may be recreated with different policies. Doing this during pod scheduling
+     * SchedulingGroup provides a reference to the immediate scheduling runtime
+     * grouping object that this Pod belongs to.
+     * This field is used by the scheduler to identify the group and apply the
+     * correct group scheduling policies. The association with a group also
+     * impacts other lifecycle aspects of a Pod that are relevant in a wider context
+     * of scheduling like preemption, resource attachment, etc. If not specified,
+     * the Pod is treated as a single unit in all of these aspects.
+     * The group object referenced by this field may not exist at the time the
+     * Pod is created.
+     * This field is immutable, but a group object with the same name may be
+     * recreated with different policies. Doing this during pod scheduling
      * may result in the placement not conforming to the expected policies.
      * +featureGate=GenericWorkload
      * +optional
      * 
* - * optional .k8s.io.api.core.v1.WorkloadReference workloadRef = 42; + * optional .k8s.io.api.core.v1.PodSchedulingGroup schedulingGroup = 43; */ - public io.kubernetes.client.proto.V1.WorkloadReference getWorkloadRef() { - return workloadRef_ == null ? io.kubernetes.client.proto.V1.WorkloadReference.getDefaultInstance() : workloadRef_; + public io.kubernetes.client.proto.V1.PodSchedulingGroup getSchedulingGroup() { + return schedulingGroup_ == null ? io.kubernetes.client.proto.V1.PodSchedulingGroup.getDefaultInstance() : schedulingGroup_; } /** *
-     * WorkloadRef provides a reference to the Workload object that this Pod belongs to.
-     * This field is used by the scheduler to identify the PodGroup and apply the
-     * correct group scheduling policies. The Workload object referenced
-     * by this field may not exist at the time the Pod is created.
-     * This field is immutable, but a Workload object with the same name
-     * may be recreated with different policies. Doing this during pod scheduling
+     * SchedulingGroup provides a reference to the immediate scheduling runtime
+     * grouping object that this Pod belongs to.
+     * This field is used by the scheduler to identify the group and apply the
+     * correct group scheduling policies. The association with a group also
+     * impacts other lifecycle aspects of a Pod that are relevant in a wider context
+     * of scheduling like preemption, resource attachment, etc. If not specified,
+     * the Pod is treated as a single unit in all of these aspects.
+     * The group object referenced by this field may not exist at the time the
+     * Pod is created.
+     * This field is immutable, but a group object with the same name may be
+     * recreated with different policies. Doing this during pod scheduling
      * may result in the placement not conforming to the expected policies.
      * +featureGate=GenericWorkload
      * +optional
      * 
* - * optional .k8s.io.api.core.v1.WorkloadReference workloadRef = 42; + * optional .k8s.io.api.core.v1.PodSchedulingGroup schedulingGroup = 43; */ - public io.kubernetes.client.proto.V1.WorkloadReferenceOrBuilder getWorkloadRefOrBuilder() { - return workloadRef_ == null ? io.kubernetes.client.proto.V1.WorkloadReference.getDefaultInstance() : workloadRef_; + public io.kubernetes.client.proto.V1.PodSchedulingGroupOrBuilder getSchedulingGroupOrBuilder() { + return schedulingGroup_ == null ? io.kubernetes.client.proto.V1.PodSchedulingGroup.getDefaultInstance() : schedulingGroup_; } private byte memoizedIsInitialized = -1; @@ -250404,7 +252574,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) com.google.protobuf.GeneratedMessageV3.writeString(output, 41, hostnameOverride_); } if (((bitField0_ & 0x10000000) == 0x10000000)) { - output.writeMessage(42, getWorkloadRef()); + output.writeMessage(43, getSchedulingGroup()); } unknownFields.writeTo(output); } @@ -250581,7 +252751,7 @@ public int getSerializedSize() { } if (((bitField0_ & 0x10000000) == 0x10000000)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(42, getWorkloadRef()); + .computeMessageSize(43, getSchedulingGroup()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -250765,10 +252935,10 @@ public boolean equals(final java.lang.Object obj) { result = result && getHostnameOverride() .equals(other.getHostnameOverride()); } - result = result && (hasWorkloadRef() == other.hasWorkloadRef()); - if (hasWorkloadRef()) { - result = result && getWorkloadRef() - .equals(other.getWorkloadRef()); + result = result && (hasSchedulingGroup() == other.hasSchedulingGroup()); + if (hasSchedulingGroup()) { + result = result && getSchedulingGroup() + .equals(other.getSchedulingGroup()); } result = result && unknownFields.equals(other.unknownFields); return result; @@ -250955,9 +253125,9 @@ public int hashCode() { hash = (37 * hash) + HOSTNAMEOVERRIDE_FIELD_NUMBER; hash = (53 * hash) + getHostnameOverride().hashCode(); } - if (hasWorkloadRef()) { - hash = (37 * hash) + WORKLOADREF_FIELD_NUMBER; - hash = (53 * hash) + getWorkloadRef().hashCode(); + if (hasSchedulingGroup()) { + hash = (37 * hash) + SCHEDULINGGROUP_FIELD_NUMBER; + hash = (53 * hash) + getSchedulingGroup().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; @@ -251133,7 +253303,7 @@ private void maybeForceBuilderInitialization() { getSchedulingGatesFieldBuilder(); getResourceClaimsFieldBuilder(); getResourcesFieldBuilder(); - getWorkloadRefFieldBuilder(); + getSchedulingGroupFieldBuilder(); } } @java.lang.Override @@ -251283,10 +253453,10 @@ public Builder clear() { bitField1_ = (bitField1_ & ~0x00000080); hostnameOverride_ = ""; bitField1_ = (bitField1_ & ~0x00000100); - if (workloadRefBuilder_ == null) { - workloadRef_ = null; + if (schedulingGroupBuilder_ == null) { + schedulingGroup_ = null; } else { - workloadRefBuilder_.clear(); + schedulingGroupBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000200); return this; @@ -251556,10 +253726,10 @@ public io.kubernetes.client.proto.V1.PodSpec buildPartial() { if (((from_bitField1_ & 0x00000200) == 0x00000200)) { to_bitField0_ |= 0x10000000; } - if (workloadRefBuilder_ == null) { - result.workloadRef_ = workloadRef_; + if (schedulingGroupBuilder_ == null) { + result.schedulingGroup_ = schedulingGroup_; } else { - result.workloadRef_ = workloadRefBuilder_.build(); + result.schedulingGroup_ = schedulingGroupBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); @@ -252008,8 +254178,8 @@ public Builder mergeFrom(io.kubernetes.client.proto.V1.PodSpec other) { hostnameOverride_ = other.hostnameOverride_; onChanged(); } - if (other.hasWorkloadRef()) { - mergeWorkloadRef(other.getWorkloadRef()); + if (other.hasSchedulingGroup()) { + mergeSchedulingGroup(other.getSchedulingGroup()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -254652,7 +256822,6 @@ public Builder setServiceAccountNameBytes( *
        * DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
        * Deprecated: Use serviceAccountName instead.
-       * +k8s:conversion-gen=false
        * +optional
        * 
* @@ -254665,7 +256834,6 @@ public boolean hasServiceAccount() { *
        * DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
        * Deprecated: Use serviceAccountName instead.
-       * +k8s:conversion-gen=false
        * +optional
        * 
* @@ -254689,7 +256857,6 @@ public java.lang.String getServiceAccount() { *
        * DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
        * Deprecated: Use serviceAccountName instead.
-       * +k8s:conversion-gen=false
        * +optional
        * 
* @@ -254712,7 +256879,6 @@ public java.lang.String getServiceAccount() { *
        * DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
        * Deprecated: Use serviceAccountName instead.
-       * +k8s:conversion-gen=false
        * +optional
        * 
* @@ -254732,7 +256898,6 @@ public Builder setServiceAccount( *
        * DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
        * Deprecated: Use serviceAccountName instead.
-       * +k8s:conversion-gen=false
        * +optional
        * 
* @@ -254748,7 +256913,6 @@ public Builder clearServiceAccount() { *
        * DeprecatedServiceAccount is a deprecated alias for ServiceAccountName.
        * Deprecated: Use serviceAccountName instead.
-       * +k8s:conversion-gen=false
        * +optional
        * 
* @@ -254955,7 +257119,6 @@ public Builder setNodeNameBytes( * When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, * and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. * Default to false. - * +k8s:conversion-gen=false * +optional * * @@ -254971,7 +257134,6 @@ public boolean hasHostNetwork() { * When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, * and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. * Default to false. - * +k8s:conversion-gen=false * +optional * * @@ -254987,7 +257149,6 @@ public boolean getHostNetwork() { * When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, * and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. * Default to false. - * +k8s:conversion-gen=false * +optional * * @@ -255006,7 +257167,6 @@ public Builder setHostNetwork(boolean value) { * When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, * and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. * Default to false. - * +k8s:conversion-gen=false * +optional * * @@ -255024,7 +257184,6 @@ public Builder clearHostNetwork() { *
        * Use the host's pid namespace.
        * Optional: Default to false.
-       * +k8s:conversion-gen=false
        * +optional
        * 
* @@ -255037,7 +257196,6 @@ public boolean hasHostPID() { *
        * Use the host's pid namespace.
        * Optional: Default to false.
-       * +k8s:conversion-gen=false
        * +optional
        * 
* @@ -255050,7 +257208,6 @@ public boolean getHostPID() { *
        * Use the host's pid namespace.
        * Optional: Default to false.
-       * +k8s:conversion-gen=false
        * +optional
        * 
* @@ -255066,7 +257223,6 @@ public Builder setHostPID(boolean value) { *
        * Use the host's pid namespace.
        * Optional: Default to false.
-       * +k8s:conversion-gen=false
        * +optional
        * 
* @@ -255084,7 +257240,6 @@ public Builder clearHostPID() { *
        * Use the host's ipc namespace.
        * Optional: Default to false.
-       * +k8s:conversion-gen=false
        * +optional
        * 
* @@ -255097,7 +257252,6 @@ public boolean hasHostIPC() { *
        * Use the host's ipc namespace.
        * Optional: Default to false.
-       * +k8s:conversion-gen=false
        * +optional
        * 
* @@ -255110,7 +257264,6 @@ public boolean getHostIPC() { *
        * Use the host's ipc namespace.
        * Optional: Default to false.
-       * +k8s:conversion-gen=false
        * +optional
        * 
* @@ -255126,7 +257279,6 @@ public Builder setHostIPC(boolean value) { *
        * Use the host's ipc namespace.
        * Optional: Default to false.
-       * +k8s:conversion-gen=false
        * +optional
        * 
* @@ -255147,7 +257299,6 @@ public Builder clearHostIPC() { * in the same pod, and the first process in each container will not be assigned PID 1. * HostPID and ShareProcessNamespace cannot both be set. * Optional: Default to false. - * +k8s:conversion-gen=false * +optional * * @@ -255163,7 +257314,6 @@ public boolean hasShareProcessNamespace() { * in the same pod, and the first process in each container will not be assigned PID 1. * HostPID and ShareProcessNamespace cannot both be set. * Optional: Default to false. - * +k8s:conversion-gen=false * +optional * * @@ -255179,7 +257329,6 @@ public boolean getShareProcessNamespace() { * in the same pod, and the first process in each container will not be assigned PID 1. * HostPID and ShareProcessNamespace cannot both be set. * Optional: Default to false. - * +k8s:conversion-gen=false * +optional * * @@ -255198,7 +257347,6 @@ public Builder setShareProcessNamespace(boolean value) { * in the same pod, and the first process in each container will not be assigned PID 1. * HostPID and ShareProcessNamespace cannot both be set. * Optional: Default to false. - * +k8s:conversion-gen=false * +optional * * @@ -256337,6 +258485,7 @@ private void ensureTolerationsIsMutable() { * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256353,6 +258502,7 @@ public java.util.List getTolerationsLi * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256369,6 +258519,7 @@ public int getTolerationsCount() { * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256385,6 +258536,7 @@ public io.kubernetes.client.proto.V1.Toleration getTolerations(int index) { * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256408,6 +258560,7 @@ public Builder setTolerations( * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256428,6 +258581,7 @@ public Builder setTolerations( * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256450,6 +258604,7 @@ public Builder addTolerations(io.kubernetes.client.proto.V1.Toleration value) { * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256473,6 +258628,7 @@ public Builder addTolerations( * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256493,6 +258649,7 @@ public Builder addTolerations( * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256513,6 +258670,7 @@ public Builder addTolerations( * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256534,6 +258692,7 @@ public Builder addAllTolerations( * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256553,6 +258712,7 @@ public Builder clearTolerations() { * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256572,6 +258732,7 @@ public Builder removeTolerations(int index) { * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256585,6 +258746,7 @@ public io.kubernetes.client.proto.V1.Toleration.Builder getTolerationsBuilder( * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256601,6 +258763,7 @@ public io.kubernetes.client.proto.V1.TolerationOrBuilder getTolerationsOrBuilder * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256618,6 +258781,7 @@ public io.kubernetes.client.proto.V1.TolerationOrBuilder getTolerationsOrBuilder * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256631,6 +258795,7 @@ public io.kubernetes.client.proto.V1.Toleration.Builder addTolerationsBuilder() * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -256645,6 +258810,7 @@ public io.kubernetes.client.proto.V1.Toleration.Builder addTolerationsBuilder( * If specified, the pod's tolerations. * +optional * +listType=atomic + * +k8s:alpha(since: "1.37")=+k8s:optional * * * repeated .k8s.io.api.core.v1.Toleration tolerations = 22; @@ -258070,6 +260236,8 @@ public Builder clearEnableServiceLinks() { *
        * PreemptionPolicy is the Policy for preempting pods with lower priority.
        * One of Never, PreemptLowerPriority.
+       * When Priority Admission Controller is enabled, it prevents users from setting
+       * this field. The admission controller populates this field from PriorityClassName.
        * Defaults to PreemptLowerPriority if unset.
        * +optional
        * 
@@ -258083,6 +260251,8 @@ public boolean hasPreemptionPolicy() { *
        * PreemptionPolicy is the Policy for preempting pods with lower priority.
        * One of Never, PreemptLowerPriority.
+       * When Priority Admission Controller is enabled, it prevents users from setting
+       * this field. The admission controller populates this field from PriorityClassName.
        * Defaults to PreemptLowerPriority if unset.
        * +optional
        * 
@@ -258107,6 +260277,8 @@ public java.lang.String getPreemptionPolicy() { *
        * PreemptionPolicy is the Policy for preempting pods with lower priority.
        * One of Never, PreemptLowerPriority.
+       * When Priority Admission Controller is enabled, it prevents users from setting
+       * this field. The admission controller populates this field from PriorityClassName.
        * Defaults to PreemptLowerPriority if unset.
        * +optional
        * 
@@ -258130,6 +260302,8 @@ public java.lang.String getPreemptionPolicy() { *
        * PreemptionPolicy is the Policy for preempting pods with lower priority.
        * One of Never, PreemptLowerPriority.
+       * When Priority Admission Controller is enabled, it prevents users from setting
+       * this field. The admission controller populates this field from PriorityClassName.
        * Defaults to PreemptLowerPriority if unset.
        * +optional
        * 
@@ -258150,6 +260324,8 @@ public Builder setPreemptionPolicy( *
        * PreemptionPolicy is the Policy for preempting pods with lower priority.
        * One of Never, PreemptLowerPriority.
+       * When Priority Admission Controller is enabled, it prevents users from setting
+       * this field. The admission controller populates this field from PriorityClassName.
        * Defaults to PreemptLowerPriority if unset.
        * +optional
        * 
@@ -258166,6 +260342,8 @@ public Builder clearPreemptionPolicy() { *
        * PreemptionPolicy is the Policy for preempting pods with lower priority.
        * One of Never, PreemptLowerPriority.
+       * When Priority Admission Controller is enabled, it prevents users from setting
+       * this field. The admission controller populates this field from PriorityClassName.
        * Defaults to PreemptLowerPriority if unset.
        * +optional
        * 
@@ -259342,8 +261520,6 @@ public io.kubernetes.client.proto.V1.PodOSOrBuilder getOsOrBuilder() { * When set to false, a new userns is created for the pod. Setting false is useful for * mitigating container breakout vulnerabilities even allowing users to run their * containers as root without actually having root privileges on the host. - * This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. - * +k8s:conversion-gen=false * +optional * * @@ -259362,8 +261538,6 @@ public boolean hasHostUsers() { * When set to false, a new userns is created for the pod. Setting false is useful for * mitigating container breakout vulnerabilities even allowing users to run their * containers as root without actually having root privileges on the host. - * This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. - * +k8s:conversion-gen=false * +optional * * @@ -259382,8 +261556,6 @@ public boolean getHostUsers() { * When set to false, a new userns is created for the pod. Setting false is useful for * mitigating container breakout vulnerabilities even allowing users to run their * containers as root without actually having root privileges on the host. - * This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. - * +k8s:conversion-gen=false * +optional * * @@ -259405,8 +261577,6 @@ public Builder setHostUsers(boolean value) { * When set to false, a new userns is created for the pod. Setting false is useful for * mitigating container breakout vulnerabilities even allowing users to run their * containers as root without actually having root privileges on the host. - * This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. - * +k8s:conversion-gen=false * +optional * * @@ -260798,230 +262968,275 @@ public Builder setHostnameOverrideBytes( return this; } - private io.kubernetes.client.proto.V1.WorkloadReference workloadRef_ = null; + private io.kubernetes.client.proto.V1.PodSchedulingGroup schedulingGroup_ = null; private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.WorkloadReference, io.kubernetes.client.proto.V1.WorkloadReference.Builder, io.kubernetes.client.proto.V1.WorkloadReferenceOrBuilder> workloadRefBuilder_; - /** - *
-       * WorkloadRef provides a reference to the Workload object that this Pod belongs to.
-       * This field is used by the scheduler to identify the PodGroup and apply the
-       * correct group scheduling policies. The Workload object referenced
-       * by this field may not exist at the time the Pod is created.
-       * This field is immutable, but a Workload object with the same name
-       * may be recreated with different policies. Doing this during pod scheduling
+          io.kubernetes.client.proto.V1.PodSchedulingGroup, io.kubernetes.client.proto.V1.PodSchedulingGroup.Builder, io.kubernetes.client.proto.V1.PodSchedulingGroupOrBuilder> schedulingGroupBuilder_;
+      /**
+       * 
+       * SchedulingGroup provides a reference to the immediate scheduling runtime
+       * grouping object that this Pod belongs to.
+       * This field is used by the scheduler to identify the group and apply the
+       * correct group scheduling policies. The association with a group also
+       * impacts other lifecycle aspects of a Pod that are relevant in a wider context
+       * of scheduling like preemption, resource attachment, etc. If not specified,
+       * the Pod is treated as a single unit in all of these aspects.
+       * The group object referenced by this field may not exist at the time the
+       * Pod is created.
+       * This field is immutable, but a group object with the same name may be
+       * recreated with different policies. Doing this during pod scheduling
        * may result in the placement not conforming to the expected policies.
        * +featureGate=GenericWorkload
        * +optional
        * 
* - * optional .k8s.io.api.core.v1.WorkloadReference workloadRef = 42; + * optional .k8s.io.api.core.v1.PodSchedulingGroup schedulingGroup = 43; */ - public boolean hasWorkloadRef() { + public boolean hasSchedulingGroup() { return ((bitField1_ & 0x00000200) == 0x00000200); } /** *
-       * WorkloadRef provides a reference to the Workload object that this Pod belongs to.
-       * This field is used by the scheduler to identify the PodGroup and apply the
-       * correct group scheduling policies. The Workload object referenced
-       * by this field may not exist at the time the Pod is created.
-       * This field is immutable, but a Workload object with the same name
-       * may be recreated with different policies. Doing this during pod scheduling
+       * SchedulingGroup provides a reference to the immediate scheduling runtime
+       * grouping object that this Pod belongs to.
+       * This field is used by the scheduler to identify the group and apply the
+       * correct group scheduling policies. The association with a group also
+       * impacts other lifecycle aspects of a Pod that are relevant in a wider context
+       * of scheduling like preemption, resource attachment, etc. If not specified,
+       * the Pod is treated as a single unit in all of these aspects.
+       * The group object referenced by this field may not exist at the time the
+       * Pod is created.
+       * This field is immutable, but a group object with the same name may be
+       * recreated with different policies. Doing this during pod scheduling
        * may result in the placement not conforming to the expected policies.
        * +featureGate=GenericWorkload
        * +optional
        * 
* - * optional .k8s.io.api.core.v1.WorkloadReference workloadRef = 42; + * optional .k8s.io.api.core.v1.PodSchedulingGroup schedulingGroup = 43; */ - public io.kubernetes.client.proto.V1.WorkloadReference getWorkloadRef() { - if (workloadRefBuilder_ == null) { - return workloadRef_ == null ? io.kubernetes.client.proto.V1.WorkloadReference.getDefaultInstance() : workloadRef_; + public io.kubernetes.client.proto.V1.PodSchedulingGroup getSchedulingGroup() { + if (schedulingGroupBuilder_ == null) { + return schedulingGroup_ == null ? io.kubernetes.client.proto.V1.PodSchedulingGroup.getDefaultInstance() : schedulingGroup_; } else { - return workloadRefBuilder_.getMessage(); + return schedulingGroupBuilder_.getMessage(); } } /** *
-       * WorkloadRef provides a reference to the Workload object that this Pod belongs to.
-       * This field is used by the scheduler to identify the PodGroup and apply the
-       * correct group scheduling policies. The Workload object referenced
-       * by this field may not exist at the time the Pod is created.
-       * This field is immutable, but a Workload object with the same name
-       * may be recreated with different policies. Doing this during pod scheduling
+       * SchedulingGroup provides a reference to the immediate scheduling runtime
+       * grouping object that this Pod belongs to.
+       * This field is used by the scheduler to identify the group and apply the
+       * correct group scheduling policies. The association with a group also
+       * impacts other lifecycle aspects of a Pod that are relevant in a wider context
+       * of scheduling like preemption, resource attachment, etc. If not specified,
+       * the Pod is treated as a single unit in all of these aspects.
+       * The group object referenced by this field may not exist at the time the
+       * Pod is created.
+       * This field is immutable, but a group object with the same name may be
+       * recreated with different policies. Doing this during pod scheduling
        * may result in the placement not conforming to the expected policies.
        * +featureGate=GenericWorkload
        * +optional
        * 
* - * optional .k8s.io.api.core.v1.WorkloadReference workloadRef = 42; + * optional .k8s.io.api.core.v1.PodSchedulingGroup schedulingGroup = 43; */ - public Builder setWorkloadRef(io.kubernetes.client.proto.V1.WorkloadReference value) { - if (workloadRefBuilder_ == null) { + public Builder setSchedulingGroup(io.kubernetes.client.proto.V1.PodSchedulingGroup value) { + if (schedulingGroupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - workloadRef_ = value; + schedulingGroup_ = value; onChanged(); } else { - workloadRefBuilder_.setMessage(value); + schedulingGroupBuilder_.setMessage(value); } bitField1_ |= 0x00000200; return this; } /** *
-       * WorkloadRef provides a reference to the Workload object that this Pod belongs to.
-       * This field is used by the scheduler to identify the PodGroup and apply the
-       * correct group scheduling policies. The Workload object referenced
-       * by this field may not exist at the time the Pod is created.
-       * This field is immutable, but a Workload object with the same name
-       * may be recreated with different policies. Doing this during pod scheduling
+       * SchedulingGroup provides a reference to the immediate scheduling runtime
+       * grouping object that this Pod belongs to.
+       * This field is used by the scheduler to identify the group and apply the
+       * correct group scheduling policies. The association with a group also
+       * impacts other lifecycle aspects of a Pod that are relevant in a wider context
+       * of scheduling like preemption, resource attachment, etc. If not specified,
+       * the Pod is treated as a single unit in all of these aspects.
+       * The group object referenced by this field may not exist at the time the
+       * Pod is created.
+       * This field is immutable, but a group object with the same name may be
+       * recreated with different policies. Doing this during pod scheduling
        * may result in the placement not conforming to the expected policies.
        * +featureGate=GenericWorkload
        * +optional
        * 
* - * optional .k8s.io.api.core.v1.WorkloadReference workloadRef = 42; + * optional .k8s.io.api.core.v1.PodSchedulingGroup schedulingGroup = 43; */ - public Builder setWorkloadRef( - io.kubernetes.client.proto.V1.WorkloadReference.Builder builderForValue) { - if (workloadRefBuilder_ == null) { - workloadRef_ = builderForValue.build(); + public Builder setSchedulingGroup( + io.kubernetes.client.proto.V1.PodSchedulingGroup.Builder builderForValue) { + if (schedulingGroupBuilder_ == null) { + schedulingGroup_ = builderForValue.build(); onChanged(); } else { - workloadRefBuilder_.setMessage(builderForValue.build()); + schedulingGroupBuilder_.setMessage(builderForValue.build()); } bitField1_ |= 0x00000200; return this; } /** *
-       * WorkloadRef provides a reference to the Workload object that this Pod belongs to.
-       * This field is used by the scheduler to identify the PodGroup and apply the
-       * correct group scheduling policies. The Workload object referenced
-       * by this field may not exist at the time the Pod is created.
-       * This field is immutable, but a Workload object with the same name
-       * may be recreated with different policies. Doing this during pod scheduling
+       * SchedulingGroup provides a reference to the immediate scheduling runtime
+       * grouping object that this Pod belongs to.
+       * This field is used by the scheduler to identify the group and apply the
+       * correct group scheduling policies. The association with a group also
+       * impacts other lifecycle aspects of a Pod that are relevant in a wider context
+       * of scheduling like preemption, resource attachment, etc. If not specified,
+       * the Pod is treated as a single unit in all of these aspects.
+       * The group object referenced by this field may not exist at the time the
+       * Pod is created.
+       * This field is immutable, but a group object with the same name may be
+       * recreated with different policies. Doing this during pod scheduling
        * may result in the placement not conforming to the expected policies.
        * +featureGate=GenericWorkload
        * +optional
        * 
* - * optional .k8s.io.api.core.v1.WorkloadReference workloadRef = 42; + * optional .k8s.io.api.core.v1.PodSchedulingGroup schedulingGroup = 43; */ - public Builder mergeWorkloadRef(io.kubernetes.client.proto.V1.WorkloadReference value) { - if (workloadRefBuilder_ == null) { + public Builder mergeSchedulingGroup(io.kubernetes.client.proto.V1.PodSchedulingGroup value) { + if (schedulingGroupBuilder_ == null) { if (((bitField1_ & 0x00000200) == 0x00000200) && - workloadRef_ != null && - workloadRef_ != io.kubernetes.client.proto.V1.WorkloadReference.getDefaultInstance()) { - workloadRef_ = - io.kubernetes.client.proto.V1.WorkloadReference.newBuilder(workloadRef_).mergeFrom(value).buildPartial(); + schedulingGroup_ != null && + schedulingGroup_ != io.kubernetes.client.proto.V1.PodSchedulingGroup.getDefaultInstance()) { + schedulingGroup_ = + io.kubernetes.client.proto.V1.PodSchedulingGroup.newBuilder(schedulingGroup_).mergeFrom(value).buildPartial(); } else { - workloadRef_ = value; + schedulingGroup_ = value; } onChanged(); } else { - workloadRefBuilder_.mergeFrom(value); + schedulingGroupBuilder_.mergeFrom(value); } bitField1_ |= 0x00000200; return this; } /** *
-       * WorkloadRef provides a reference to the Workload object that this Pod belongs to.
-       * This field is used by the scheduler to identify the PodGroup and apply the
-       * correct group scheduling policies. The Workload object referenced
-       * by this field may not exist at the time the Pod is created.
-       * This field is immutable, but a Workload object with the same name
-       * may be recreated with different policies. Doing this during pod scheduling
+       * SchedulingGroup provides a reference to the immediate scheduling runtime
+       * grouping object that this Pod belongs to.
+       * This field is used by the scheduler to identify the group and apply the
+       * correct group scheduling policies. The association with a group also
+       * impacts other lifecycle aspects of a Pod that are relevant in a wider context
+       * of scheduling like preemption, resource attachment, etc. If not specified,
+       * the Pod is treated as a single unit in all of these aspects.
+       * The group object referenced by this field may not exist at the time the
+       * Pod is created.
+       * This field is immutable, but a group object with the same name may be
+       * recreated with different policies. Doing this during pod scheduling
        * may result in the placement not conforming to the expected policies.
        * +featureGate=GenericWorkload
        * +optional
        * 
* - * optional .k8s.io.api.core.v1.WorkloadReference workloadRef = 42; + * optional .k8s.io.api.core.v1.PodSchedulingGroup schedulingGroup = 43; */ - public Builder clearWorkloadRef() { - if (workloadRefBuilder_ == null) { - workloadRef_ = null; + public Builder clearSchedulingGroup() { + if (schedulingGroupBuilder_ == null) { + schedulingGroup_ = null; onChanged(); } else { - workloadRefBuilder_.clear(); + schedulingGroupBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000200); return this; } /** *
-       * WorkloadRef provides a reference to the Workload object that this Pod belongs to.
-       * This field is used by the scheduler to identify the PodGroup and apply the
-       * correct group scheduling policies. The Workload object referenced
-       * by this field may not exist at the time the Pod is created.
-       * This field is immutable, but a Workload object with the same name
-       * may be recreated with different policies. Doing this during pod scheduling
+       * SchedulingGroup provides a reference to the immediate scheduling runtime
+       * grouping object that this Pod belongs to.
+       * This field is used by the scheduler to identify the group and apply the
+       * correct group scheduling policies. The association with a group also
+       * impacts other lifecycle aspects of a Pod that are relevant in a wider context
+       * of scheduling like preemption, resource attachment, etc. If not specified,
+       * the Pod is treated as a single unit in all of these aspects.
+       * The group object referenced by this field may not exist at the time the
+       * Pod is created.
+       * This field is immutable, but a group object with the same name may be
+       * recreated with different policies. Doing this during pod scheduling
        * may result in the placement not conforming to the expected policies.
        * +featureGate=GenericWorkload
        * +optional
        * 
* - * optional .k8s.io.api.core.v1.WorkloadReference workloadRef = 42; + * optional .k8s.io.api.core.v1.PodSchedulingGroup schedulingGroup = 43; */ - public io.kubernetes.client.proto.V1.WorkloadReference.Builder getWorkloadRefBuilder() { + public io.kubernetes.client.proto.V1.PodSchedulingGroup.Builder getSchedulingGroupBuilder() { bitField1_ |= 0x00000200; onChanged(); - return getWorkloadRefFieldBuilder().getBuilder(); + return getSchedulingGroupFieldBuilder().getBuilder(); } /** *
-       * WorkloadRef provides a reference to the Workload object that this Pod belongs to.
-       * This field is used by the scheduler to identify the PodGroup and apply the
-       * correct group scheduling policies. The Workload object referenced
-       * by this field may not exist at the time the Pod is created.
-       * This field is immutable, but a Workload object with the same name
-       * may be recreated with different policies. Doing this during pod scheduling
+       * SchedulingGroup provides a reference to the immediate scheduling runtime
+       * grouping object that this Pod belongs to.
+       * This field is used by the scheduler to identify the group and apply the
+       * correct group scheduling policies. The association with a group also
+       * impacts other lifecycle aspects of a Pod that are relevant in a wider context
+       * of scheduling like preemption, resource attachment, etc. If not specified,
+       * the Pod is treated as a single unit in all of these aspects.
+       * The group object referenced by this field may not exist at the time the
+       * Pod is created.
+       * This field is immutable, but a group object with the same name may be
+       * recreated with different policies. Doing this during pod scheduling
        * may result in the placement not conforming to the expected policies.
        * +featureGate=GenericWorkload
        * +optional
        * 
* - * optional .k8s.io.api.core.v1.WorkloadReference workloadRef = 42; + * optional .k8s.io.api.core.v1.PodSchedulingGroup schedulingGroup = 43; */ - public io.kubernetes.client.proto.V1.WorkloadReferenceOrBuilder getWorkloadRefOrBuilder() { - if (workloadRefBuilder_ != null) { - return workloadRefBuilder_.getMessageOrBuilder(); + public io.kubernetes.client.proto.V1.PodSchedulingGroupOrBuilder getSchedulingGroupOrBuilder() { + if (schedulingGroupBuilder_ != null) { + return schedulingGroupBuilder_.getMessageOrBuilder(); } else { - return workloadRef_ == null ? - io.kubernetes.client.proto.V1.WorkloadReference.getDefaultInstance() : workloadRef_; + return schedulingGroup_ == null ? + io.kubernetes.client.proto.V1.PodSchedulingGroup.getDefaultInstance() : schedulingGroup_; } } /** *
-       * WorkloadRef provides a reference to the Workload object that this Pod belongs to.
-       * This field is used by the scheduler to identify the PodGroup and apply the
-       * correct group scheduling policies. The Workload object referenced
-       * by this field may not exist at the time the Pod is created.
-       * This field is immutable, but a Workload object with the same name
-       * may be recreated with different policies. Doing this during pod scheduling
+       * SchedulingGroup provides a reference to the immediate scheduling runtime
+       * grouping object that this Pod belongs to.
+       * This field is used by the scheduler to identify the group and apply the
+       * correct group scheduling policies. The association with a group also
+       * impacts other lifecycle aspects of a Pod that are relevant in a wider context
+       * of scheduling like preemption, resource attachment, etc. If not specified,
+       * the Pod is treated as a single unit in all of these aspects.
+       * The group object referenced by this field may not exist at the time the
+       * Pod is created.
+       * This field is immutable, but a group object with the same name may be
+       * recreated with different policies. Doing this during pod scheduling
        * may result in the placement not conforming to the expected policies.
        * +featureGate=GenericWorkload
        * +optional
        * 
* - * optional .k8s.io.api.core.v1.WorkloadReference workloadRef = 42; + * optional .k8s.io.api.core.v1.PodSchedulingGroup schedulingGroup = 43; */ private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.WorkloadReference, io.kubernetes.client.proto.V1.WorkloadReference.Builder, io.kubernetes.client.proto.V1.WorkloadReferenceOrBuilder> - getWorkloadRefFieldBuilder() { - if (workloadRefBuilder_ == null) { - workloadRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.WorkloadReference, io.kubernetes.client.proto.V1.WorkloadReference.Builder, io.kubernetes.client.proto.V1.WorkloadReferenceOrBuilder>( - getWorkloadRef(), + io.kubernetes.client.proto.V1.PodSchedulingGroup, io.kubernetes.client.proto.V1.PodSchedulingGroup.Builder, io.kubernetes.client.proto.V1.PodSchedulingGroupOrBuilder> + getSchedulingGroupFieldBuilder() { + if (schedulingGroupBuilder_ == null) { + schedulingGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.PodSchedulingGroup, io.kubernetes.client.proto.V1.PodSchedulingGroup.Builder, io.kubernetes.client.proto.V1.PodSchedulingGroupOrBuilder>( + getSchedulingGroup(), getParentForChildren(), isClean()); - workloadRef_ = null; + schedulingGroup_ = null; } - return workloadRefBuilder_; + return schedulingGroupBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -261084,7 +263299,6 @@ public interface PodStatusOrBuilder extends *
      * If set, this represents the .metadata.generation that the pod status was set based upon.
      * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-     * +featureGate=PodObservedGenerationTracking
      * +optional
      * 
* @@ -261095,7 +263309,6 @@ public interface PodStatusOrBuilder extends *
      * If set, this represents the .metadata.generation that the pod status was set based upon.
      * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-     * +featureGate=PodObservedGenerationTracking
      * +optional
      * 
* @@ -262184,6 +264397,85 @@ io.kubernetes.client.proto.Resource.Quantity getAllocatedResourcesOrThrow( * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; */ io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder(); + + /** + *
+     * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+     * that were allocated for this pod through DRA claims. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * +featureGate=DRANodeAllocatableResources
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + java.util.List + getNodeAllocatableResourceClaimStatusesList(); + /** + *
+     * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+     * that were allocated for this pod through DRA claims. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * +featureGate=DRANodeAllocatableResources
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus getNodeAllocatableResourceClaimStatuses(int index); + /** + *
+     * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+     * that were allocated for this pod through DRA claims. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * +featureGate=DRANodeAllocatableResources
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + int getNodeAllocatableResourceClaimStatusesCount(); + /** + *
+     * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+     * that were allocated for this pod through DRA claims. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * +featureGate=DRANodeAllocatableResources
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + java.util.List + getNodeAllocatableResourceClaimStatusesOrBuilderList(); + /** + *
+     * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+     * that were allocated for this pod through DRA claims. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * +featureGate=DRANodeAllocatableResources
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatusOrBuilder getNodeAllocatableResourceClaimStatusesOrBuilder( + int index); } /** *
@@ -262220,6 +264512,7 @@ private PodStatus() {
       ephemeralContainerStatuses_ = java.util.Collections.emptyList();
       resize_ = "";
       resourceClaimStatuses_ = java.util.Collections.emptyList();
+      nodeAllocatableResourceClaimStatuses_ = java.util.Collections.emptyList();
     }
 
     @java.lang.Override
@@ -262414,6 +264707,15 @@ private PodStatus(
               bitField0_ |= 0x00000800;
               break;
             }
+            case 170: {
+              if (!((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
+                nodeAllocatableResourceClaimStatuses_ = new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00100000;
+              }
+              nodeAllocatableResourceClaimStatuses_.add(
+                  input.readMessage(io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.PARSER, extensionRegistry));
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -262450,6 +264752,9 @@ private PodStatus(
         if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) {
           hostIPs_ = java.util.Collections.unmodifiableList(hostIPs_);
         }
+        if (((mutable_bitField0_ & 0x00100000) == 0x00100000)) {
+          nodeAllocatableResourceClaimStatuses_ = java.util.Collections.unmodifiableList(nodeAllocatableResourceClaimStatuses_);
+        }
         this.unknownFields = unknownFields.build();
         makeExtensionsImmutable();
       }
@@ -262486,7 +264791,6 @@ protected com.google.protobuf.MapField internalGetMapField(
      * 
      * If set, this represents the .metadata.generation that the pod status was set based upon.
      * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-     * +featureGate=PodObservedGenerationTracking
      * +optional
      * 
* @@ -262499,7 +264803,6 @@ public boolean hasObservedGeneration() { *
      * If set, this represents the .metadata.generation that the pod status was set based upon.
      * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-     * +featureGate=PodObservedGenerationTracking
      * +optional
      * 
* @@ -263950,6 +266253,96 @@ public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesO return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; } + public static final int NODEALLOCATABLERESOURCECLAIMSTATUSES_FIELD_NUMBER = 21; + private java.util.List nodeAllocatableResourceClaimStatuses_; + /** + *
+     * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+     * that were allocated for this pod through DRA claims. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * +featureGate=DRANodeAllocatableResources
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + public java.util.List getNodeAllocatableResourceClaimStatusesList() { + return nodeAllocatableResourceClaimStatuses_; + } + /** + *
+     * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+     * that were allocated for this pod through DRA claims. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * +featureGate=DRANodeAllocatableResources
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + public java.util.List + getNodeAllocatableResourceClaimStatusesOrBuilderList() { + return nodeAllocatableResourceClaimStatuses_; + } + /** + *
+     * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+     * that were allocated for this pod through DRA claims. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * +featureGate=DRANodeAllocatableResources
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + public int getNodeAllocatableResourceClaimStatusesCount() { + return nodeAllocatableResourceClaimStatuses_.size(); + } + /** + *
+     * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+     * that were allocated for this pod through DRA claims. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * +featureGate=DRANodeAllocatableResources
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + public io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus getNodeAllocatableResourceClaimStatuses(int index) { + return nodeAllocatableResourceClaimStatuses_.get(index); + } + /** + *
+     * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+     * that were allocated for this pod through DRA claims. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * +featureGate=DRANodeAllocatableResources
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + public io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatusOrBuilder getNodeAllocatableResourceClaimStatusesOrBuilder( + int index) { + return nodeAllocatableResourceClaimStatuses_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -264027,6 +266420,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000800) == 0x00000800)) { output.writeMessage(20, getResources()); } + for (int i = 0; i < nodeAllocatableResourceClaimStatuses_.size(); i++) { + output.writeMessage(21, nodeAllocatableResourceClaimStatuses_.get(i)); + } unknownFields.writeTo(output); } @@ -264114,6 +266510,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, getResources()); } + for (int i = 0; i < nodeAllocatableResourceClaimStatuses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, nodeAllocatableResourceClaimStatuses_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -264206,6 +266606,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getResources() .equals(other.getResources()); } + result = result && getNodeAllocatableResourceClaimStatusesList() + .equals(other.getNodeAllocatableResourceClaimStatusesList()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -264298,6 +266700,10 @@ public int hashCode() { hash = (37 * hash) + RESOURCES_FIELD_NUMBER; hash = (53 * hash) + getResources().hashCode(); } + if (getNodeAllocatableResourceClaimStatusesCount() > 0) { + hash = (37 * hash) + NODEALLOCATABLERESOURCECLAIMSTATUSES_FIELD_NUMBER; + hash = (53 * hash) + getNodeAllocatableResourceClaimStatusesList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -264464,6 +266870,7 @@ private void maybeForceBuilderInitialization() { getResourceClaimStatusesFieldBuilder(); getExtendedResourceClaimStatusFieldBuilder(); getResourcesFieldBuilder(); + getNodeAllocatableResourceClaimStatusesFieldBuilder(); } } @java.lang.Override @@ -264548,6 +266955,12 @@ public Builder clear() { resourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00080000); + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + nodeAllocatableResourceClaimStatuses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + } else { + nodeAllocatableResourceClaimStatusesBuilder_.clear(); + } return this; } @@ -264701,6 +267114,15 @@ public io.kubernetes.client.proto.V1.PodStatus buildPartial() { } else { result.resources_ = resourcesBuilder_.build(); } + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + if (((bitField0_ & 0x00100000) == 0x00100000)) { + nodeAllocatableResourceClaimStatuses_ = java.util.Collections.unmodifiableList(nodeAllocatableResourceClaimStatuses_); + bitField0_ = (bitField0_ & ~0x00100000); + } + result.nodeAllocatableResourceClaimStatuses_ = nodeAllocatableResourceClaimStatuses_; + } else { + result.nodeAllocatableResourceClaimStatuses_ = nodeAllocatableResourceClaimStatusesBuilder_.build(); + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -264986,6 +267408,32 @@ public Builder mergeFrom(io.kubernetes.client.proto.V1.PodStatus other) { if (other.hasResources()) { mergeResources(other.getResources()); } + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + if (!other.nodeAllocatableResourceClaimStatuses_.isEmpty()) { + if (nodeAllocatableResourceClaimStatuses_.isEmpty()) { + nodeAllocatableResourceClaimStatuses_ = other.nodeAllocatableResourceClaimStatuses_; + bitField0_ = (bitField0_ & ~0x00100000); + } else { + ensureNodeAllocatableResourceClaimStatusesIsMutable(); + nodeAllocatableResourceClaimStatuses_.addAll(other.nodeAllocatableResourceClaimStatuses_); + } + onChanged(); + } + } else { + if (!other.nodeAllocatableResourceClaimStatuses_.isEmpty()) { + if (nodeAllocatableResourceClaimStatusesBuilder_.isEmpty()) { + nodeAllocatableResourceClaimStatusesBuilder_.dispose(); + nodeAllocatableResourceClaimStatusesBuilder_ = null; + nodeAllocatableResourceClaimStatuses_ = other.nodeAllocatableResourceClaimStatuses_; + bitField0_ = (bitField0_ & ~0x00100000); + nodeAllocatableResourceClaimStatusesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNodeAllocatableResourceClaimStatusesFieldBuilder() : null; + } else { + nodeAllocatableResourceClaimStatusesBuilder_.addAllMessages(other.nodeAllocatableResourceClaimStatuses_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -265021,7 +267469,6 @@ public Builder mergeFrom( *
        * If set, this represents the .metadata.generation that the pod status was set based upon.
        * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-       * +featureGate=PodObservedGenerationTracking
        * +optional
        * 
* @@ -265034,7 +267481,6 @@ public boolean hasObservedGeneration() { *
        * If set, this represents the .metadata.generation that the pod status was set based upon.
        * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-       * +featureGate=PodObservedGenerationTracking
        * +optional
        * 
* @@ -265047,7 +267493,6 @@ public long getObservedGeneration() { *
        * If set, this represents the .metadata.generation that the pod status was set based upon.
        * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-       * +featureGate=PodObservedGenerationTracking
        * +optional
        * 
* @@ -265063,7 +267508,6 @@ public Builder setObservedGeneration(long value) { *
        * If set, this represents the .metadata.generation that the pod status was set based upon.
        * The PodObservedGenerationTracking feature gate must be enabled to use this field.
-       * +featureGate=PodObservedGenerationTracking
        * +optional
        * 
* @@ -269494,1550 +271938,939 @@ public Builder setExtendedResourceClaimStatus(io.kubernetes.client.proto.V1.PodE if (extendedResourceClaimStatusBuilder_ == null) { if (value == null) { throw new NullPointerException(); - } - extendedResourceClaimStatus_ = value; - onChanged(); - } else { - extendedResourceClaimStatusBuilder_.setMessage(value); - } - bitField0_ |= 0x00020000; - return this; - } - /** - *
-       * Status of extended resource claim backed by DRA.
-       * +featureGate=DRAExtendedResource
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.PodExtendedResourceClaimStatus extendedResourceClaimStatus = 18; - */ - public Builder setExtendedResourceClaimStatus( - io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus.Builder builderForValue) { - if (extendedResourceClaimStatusBuilder_ == null) { - extendedResourceClaimStatus_ = builderForValue.build(); - onChanged(); - } else { - extendedResourceClaimStatusBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00020000; - return this; - } - /** - *
-       * Status of extended resource claim backed by DRA.
-       * +featureGate=DRAExtendedResource
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.PodExtendedResourceClaimStatus extendedResourceClaimStatus = 18; - */ - public Builder mergeExtendedResourceClaimStatus(io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus value) { - if (extendedResourceClaimStatusBuilder_ == null) { - if (((bitField0_ & 0x00020000) == 0x00020000) && - extendedResourceClaimStatus_ != null && - extendedResourceClaimStatus_ != io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus.getDefaultInstance()) { - extendedResourceClaimStatus_ = - io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus.newBuilder(extendedResourceClaimStatus_).mergeFrom(value).buildPartial(); - } else { - extendedResourceClaimStatus_ = value; - } - onChanged(); - } else { - extendedResourceClaimStatusBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00020000; - return this; - } - /** - *
-       * Status of extended resource claim backed by DRA.
-       * +featureGate=DRAExtendedResource
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.PodExtendedResourceClaimStatus extendedResourceClaimStatus = 18; - */ - public Builder clearExtendedResourceClaimStatus() { - if (extendedResourceClaimStatusBuilder_ == null) { - extendedResourceClaimStatus_ = null; - onChanged(); - } else { - extendedResourceClaimStatusBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00020000); - return this; - } - /** - *
-       * Status of extended resource claim backed by DRA.
-       * +featureGate=DRAExtendedResource
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.PodExtendedResourceClaimStatus extendedResourceClaimStatus = 18; - */ - public io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus.Builder getExtendedResourceClaimStatusBuilder() { - bitField0_ |= 0x00020000; - onChanged(); - return getExtendedResourceClaimStatusFieldBuilder().getBuilder(); - } - /** - *
-       * Status of extended resource claim backed by DRA.
-       * +featureGate=DRAExtendedResource
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.PodExtendedResourceClaimStatus extendedResourceClaimStatus = 18; - */ - public io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatusOrBuilder getExtendedResourceClaimStatusOrBuilder() { - if (extendedResourceClaimStatusBuilder_ != null) { - return extendedResourceClaimStatusBuilder_.getMessageOrBuilder(); - } else { - return extendedResourceClaimStatus_ == null ? - io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus.getDefaultInstance() : extendedResourceClaimStatus_; - } - } - /** - *
-       * Status of extended resource claim backed by DRA.
-       * +featureGate=DRAExtendedResource
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.PodExtendedResourceClaimStatus extendedResourceClaimStatus = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus, io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus.Builder, io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatusOrBuilder> - getExtendedResourceClaimStatusFieldBuilder() { - if (extendedResourceClaimStatusBuilder_ == null) { - extendedResourceClaimStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus, io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus.Builder, io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatusOrBuilder>( - getExtendedResourceClaimStatus(), - getParentForChildren(), - isClean()); - extendedResourceClaimStatus_ = null; - } - return extendedResourceClaimStatusBuilder_; - } - - private com.google.protobuf.MapField< - java.lang.String, io.kubernetes.client.proto.Resource.Quantity> allocatedResources_; - private com.google.protobuf.MapField - internalGetAllocatedResources() { - if (allocatedResources_ == null) { - return com.google.protobuf.MapField.emptyMapField( - AllocatedResourcesDefaultEntryHolder.defaultEntry); - } - return allocatedResources_; - } - private com.google.protobuf.MapField - internalGetMutableAllocatedResources() { - onChanged();; - if (allocatedResources_ == null) { - allocatedResources_ = com.google.protobuf.MapField.newMapField( - AllocatedResourcesDefaultEntryHolder.defaultEntry); - } - if (!allocatedResources_.isMutable()) { - allocatedResources_ = allocatedResources_.copy(); - } - return allocatedResources_; - } - - public int getAllocatedResourcesCount() { - return internalGetAllocatedResources().getMap().size(); - } - /** - *
-       * AllocatedResources is the total requests allocated for this pod by the node.
-       * If pod-level requests are not set, this will be the total requests aggregated
-       * across containers in the pod.
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; - */ - - public boolean containsAllocatedResources( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - return internalGetAllocatedResources().getMap().containsKey(key); - } - /** - * Use {@link #getAllocatedResourcesMap()} instead. - */ - @java.lang.Deprecated - public java.util.Map getAllocatedResources() { - return getAllocatedResourcesMap(); - } - /** - *
-       * AllocatedResources is the total requests allocated for this pod by the node.
-       * If pod-level requests are not set, this will be the total requests aggregated
-       * across containers in the pod.
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; - */ - - public java.util.Map getAllocatedResourcesMap() { - return internalGetAllocatedResources().getMap(); - } - /** - *
-       * AllocatedResources is the total requests allocated for this pod by the node.
-       * If pod-level requests are not set, this will be the total requests aggregated
-       * across containers in the pod.
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; - */ - - public io.kubernetes.client.proto.Resource.Quantity getAllocatedResourcesOrDefault( - java.lang.String key, - io.kubernetes.client.proto.Resource.Quantity defaultValue) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAllocatedResources().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - /** - *
-       * AllocatedResources is the total requests allocated for this pod by the node.
-       * If pod-level requests are not set, this will be the total requests aggregated
-       * across containers in the pod.
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; - */ - - public io.kubernetes.client.proto.Resource.Quantity getAllocatedResourcesOrThrow( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - java.util.Map map = - internalGetAllocatedResources().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearAllocatedResources() { - internalGetMutableAllocatedResources().getMutableMap() - .clear(); - return this; - } - /** - *
-       * AllocatedResources is the total requests allocated for this pod by the node.
-       * If pod-level requests are not set, this will be the total requests aggregated
-       * across containers in the pod.
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; - */ - - public Builder removeAllocatedResources( - java.lang.String key) { - if (key == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAllocatedResources().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableAllocatedResources() { - return internalGetMutableAllocatedResources().getMutableMap(); - } - /** - *
-       * AllocatedResources is the total requests allocated for this pod by the node.
-       * If pod-level requests are not set, this will be the total requests aggregated
-       * across containers in the pod.
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; - */ - public Builder putAllocatedResources( - java.lang.String key, - io.kubernetes.client.proto.Resource.Quantity value) { - if (key == null) { throw new java.lang.NullPointerException(); } - if (value == null) { throw new java.lang.NullPointerException(); } - internalGetMutableAllocatedResources().getMutableMap() - .put(key, value); - return this; - } - /** - *
-       * AllocatedResources is the total requests allocated for this pod by the node.
-       * If pod-level requests are not set, this will be the total requests aggregated
-       * across containers in the pod.
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; - */ - - public Builder putAllAllocatedResources( - java.util.Map values) { - internalGetMutableAllocatedResources().getMutableMap() - .putAll(values); - return this; - } - - private io.kubernetes.client.proto.V1.ResourceRequirements resources_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> resourcesBuilder_; - /** - *
-       * Resources represents the compute resource requests and limits that have been
-       * applied at the pod level if pod-level requests or limits are set in
-       * PodSpec.Resources
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; - */ - public boolean hasResources() { - return ((bitField0_ & 0x00080000) == 0x00080000); - } - /** - *
-       * Resources represents the compute resource requests and limits that have been
-       * applied at the pod level if pod-level requests or limits are set in
-       * PodSpec.Resources
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; - */ - public io.kubernetes.client.proto.V1.ResourceRequirements getResources() { - if (resourcesBuilder_ == null) { - return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; - } else { - return resourcesBuilder_.getMessage(); - } - } - /** - *
-       * Resources represents the compute resource requests and limits that have been
-       * applied at the pod level if pod-level requests or limits are set in
-       * PodSpec.Resources
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; - */ - public Builder setResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { - if (resourcesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resources_ = value; - onChanged(); - } else { - resourcesBuilder_.setMessage(value); - } - bitField0_ |= 0x00080000; - return this; - } - /** - *
-       * Resources represents the compute resource requests and limits that have been
-       * applied at the pod level if pod-level requests or limits are set in
-       * PodSpec.Resources
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; - */ - public Builder setResources( - io.kubernetes.client.proto.V1.ResourceRequirements.Builder builderForValue) { - if (resourcesBuilder_ == null) { - resources_ = builderForValue.build(); - onChanged(); - } else { - resourcesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00080000; - return this; - } - /** - *
-       * Resources represents the compute resource requests and limits that have been
-       * applied at the pod level if pod-level requests or limits are set in
-       * PodSpec.Resources
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; - */ - public Builder mergeResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { - if (resourcesBuilder_ == null) { - if (((bitField0_ & 0x00080000) == 0x00080000) && - resources_ != null && - resources_ != io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance()) { - resources_ = - io.kubernetes.client.proto.V1.ResourceRequirements.newBuilder(resources_).mergeFrom(value).buildPartial(); - } else { - resources_ = value; - } - onChanged(); - } else { - resourcesBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00080000; - return this; - } - /** - *
-       * Resources represents the compute resource requests and limits that have been
-       * applied at the pod level if pod-level requests or limits are set in
-       * PodSpec.Resources
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; - */ - public Builder clearResources() { - if (resourcesBuilder_ == null) { - resources_ = null; - onChanged(); - } else { - resourcesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00080000); - return this; - } - /** - *
-       * Resources represents the compute resource requests and limits that have been
-       * applied at the pod level if pod-level requests or limits are set in
-       * PodSpec.Resources
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; - */ - public io.kubernetes.client.proto.V1.ResourceRequirements.Builder getResourcesBuilder() { - bitField0_ |= 0x00080000; - onChanged(); - return getResourcesFieldBuilder().getBuilder(); - } - /** - *
-       * Resources represents the compute resource requests and limits that have been
-       * applied at the pod level if pod-level requests or limits are set in
-       * PodSpec.Resources
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; - */ - public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder() { - if (resourcesBuilder_ != null) { - return resourcesBuilder_.getMessageOrBuilder(); - } else { - return resources_ == null ? - io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; - } - } - /** - *
-       * Resources represents the compute resource requests and limits that have been
-       * applied at the pod level if pod-level requests or limits are set in
-       * PodSpec.Resources
-       * +featureGate=InPlacePodLevelResourcesVerticalScaling
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> - getResourcesFieldBuilder() { - if (resourcesBuilder_ == null) { - resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder>( - getResources(), - getParentForChildren(), - isClean()); - resources_ = null; - } - return resourcesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.PodStatus) - } - - // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodStatus) - private static final io.kubernetes.client.proto.V1.PodStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodStatus(); - } - - public static io.kubernetes.client.proto.V1.PodStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PodStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PodStatus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.kubernetes.client.proto.V1.PodStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface PodStatusResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.PodStatusResult) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Standard object's metadata.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - boolean hasMetadata(); - /** - *
-     * Standard object's metadata.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); - /** - *
-     * Standard object's metadata.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); - - /** - *
-     * Most recently observed status of the pod.
-     * This data may not be up to date.
-     * Populated by the system.
-     * Read-only.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
-     * 
- * - * optional .k8s.io.api.core.v1.PodStatus status = 2; - */ - boolean hasStatus(); - /** - *
-     * Most recently observed status of the pod.
-     * This data may not be up to date.
-     * Populated by the system.
-     * Read-only.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
-     * 
- * - * optional .k8s.io.api.core.v1.PodStatus status = 2; - */ - io.kubernetes.client.proto.V1.PodStatus getStatus(); - /** - *
-     * Most recently observed status of the pod.
-     * This data may not be up to date.
-     * Populated by the system.
-     * Read-only.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
-     * 
- * - * optional .k8s.io.api.core.v1.PodStatus status = 2; - */ - io.kubernetes.client.proto.V1.PodStatusOrBuilder getStatusOrBuilder(); - } - /** - *
-   * PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded
-   * 
- * - * Protobuf type {@code k8s.io.api.core.v1.PodStatusResult} - */ - public static final class PodStatusResult extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.PodStatusResult) - PodStatusResultOrBuilder { - private static final long serialVersionUID = 0L; - // Use PodStatusResult.newBuilder() to construct. - private PodStatusResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PodStatusResult() { - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PodStatusResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 18: { - io.kubernetes.client.proto.V1.PodStatus.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = status_.toBuilder(); - } - status_ = input.readMessage(io.kubernetes.client.proto.V1.PodStatus.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodStatusResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodStatusResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1.PodStatusResult.class, io.kubernetes.client.proto.V1.PodStatusResult.Builder.class); - } - - private int bitField0_; - public static final int METADATA_FIELD_NUMBER = 1; - private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; - /** - *
-     * Standard object's metadata.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - *
-     * Standard object's metadata.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { - return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; - } - /** - *
-     * Standard object's metadata.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; - */ - public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; - } - - public static final int STATUS_FIELD_NUMBER = 2; - private io.kubernetes.client.proto.V1.PodStatus status_; - /** - *
-     * Most recently observed status of the pod.
-     * This data may not be up to date.
-     * Populated by the system.
-     * Read-only.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
-     * 
- * - * optional .k8s.io.api.core.v1.PodStatus status = 2; - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - *
-     * Most recently observed status of the pod.
-     * This data may not be up to date.
-     * Populated by the system.
-     * Read-only.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
-     * 
- * - * optional .k8s.io.api.core.v1.PodStatus status = 2; - */ - public io.kubernetes.client.proto.V1.PodStatus getStatus() { - return status_ == null ? io.kubernetes.client.proto.V1.PodStatus.getDefaultInstance() : status_; - } - /** - *
-     * Most recently observed status of the pod.
-     * This data may not be up to date.
-     * Populated by the system.
-     * Read-only.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
-     * 
- * - * optional .k8s.io.api.core.v1.PodStatus status = 2; - */ - public io.kubernetes.client.proto.V1.PodStatusOrBuilder getStatusOrBuilder() { - return status_ == null ? io.kubernetes.client.proto.V1.PodStatus.getDefaultInstance() : status_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getMetadata()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, getStatus()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMetadata()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getStatus()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.kubernetes.client.proto.V1.PodStatusResult)) { - return super.equals(obj); - } - io.kubernetes.client.proto.V1.PodStatusResult other = (io.kubernetes.client.proto.V1.PodStatusResult) obj; - - boolean result = true; - result = result && (hasMetadata() == other.hasMetadata()); - if (hasMetadata()) { - result = result && getMetadata() - .equals(other.getMetadata()); - } - result = result && (hasStatus() == other.hasStatus()); - if (hasStatus()) { - result = result && getStatus() - .equals(other.getStatus()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.kubernetes.client.proto.V1.PodStatusResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.kubernetes.client.proto.V1.PodStatusResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.kubernetes.client.proto.V1.PodStatusResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.kubernetes.client.proto.V1.PodStatusResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.kubernetes.client.proto.V1.PodStatusResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.kubernetes.client.proto.V1.PodStatusResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.kubernetes.client.proto.V1.PodStatusResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.kubernetes.client.proto.V1.PodStatusResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.kubernetes.client.proto.V1.PodStatusResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.kubernetes.client.proto.V1.PodStatusResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.kubernetes.client.proto.V1.PodStatusResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.kubernetes.client.proto.V1.PodStatusResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.kubernetes.client.proto.V1.PodStatusResult prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded
-     * 
- * - * Protobuf type {@code k8s.io.api.core.v1.PodStatusResult} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.PodStatusResult) - io.kubernetes.client.proto.V1.PodStatusResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodStatusResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodStatusResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1.PodStatusResult.class, io.kubernetes.client.proto.V1.PodStatusResult.Builder.class); - } - - // Construct using io.kubernetes.client.proto.V1.PodStatusResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + } + extendedResourceClaimStatus_ = value; + onChanged(); + } else { + extendedResourceClaimStatusBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + return this; } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getMetadataFieldBuilder(); - getStatusFieldBuilder(); + /** + *
+       * Status of extended resource claim backed by DRA.
+       * +featureGate=DRAExtendedResource
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.PodExtendedResourceClaimStatus extendedResourceClaimStatus = 18; + */ + public Builder setExtendedResourceClaimStatus( + io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus.Builder builderForValue) { + if (extendedResourceClaimStatusBuilder_ == null) { + extendedResourceClaimStatus_ = builderForValue.build(); + onChanged(); + } else { + extendedResourceClaimStatusBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00020000; + return this; } - @java.lang.Override - public Builder clear() { - super.clear(); - if (metadataBuilder_ == null) { - metadata_ = null; + /** + *
+       * Status of extended resource claim backed by DRA.
+       * +featureGate=DRAExtendedResource
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.PodExtendedResourceClaimStatus extendedResourceClaimStatus = 18; + */ + public Builder mergeExtendedResourceClaimStatus(io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus value) { + if (extendedResourceClaimStatusBuilder_ == null) { + if (((bitField0_ & 0x00020000) == 0x00020000) && + extendedResourceClaimStatus_ != null && + extendedResourceClaimStatus_ != io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus.getDefaultInstance()) { + extendedResourceClaimStatus_ = + io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus.newBuilder(extendedResourceClaimStatus_).mergeFrom(value).buildPartial(); + } else { + extendedResourceClaimStatus_ = value; + } + onChanged(); } else { - metadataBuilder_.clear(); + extendedResourceClaimStatusBuilder_.mergeFrom(value); } - bitField0_ = (bitField0_ & ~0x00000001); - if (statusBuilder_ == null) { - status_ = null; + bitField0_ |= 0x00020000; + return this; + } + /** + *
+       * Status of extended resource claim backed by DRA.
+       * +featureGate=DRAExtendedResource
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.PodExtendedResourceClaimStatus extendedResourceClaimStatus = 18; + */ + public Builder clearExtendedResourceClaimStatus() { + if (extendedResourceClaimStatusBuilder_ == null) { + extendedResourceClaimStatus_ = null; + onChanged(); } else { - statusBuilder_.clear(); + extendedResourceClaimStatusBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00020000); return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_PodStatusResult_descriptor; + /** + *
+       * Status of extended resource claim backed by DRA.
+       * +featureGate=DRAExtendedResource
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.PodExtendedResourceClaimStatus extendedResourceClaimStatus = 18; + */ + public io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus.Builder getExtendedResourceClaimStatusBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getExtendedResourceClaimStatusFieldBuilder().getBuilder(); } - - @java.lang.Override - public io.kubernetes.client.proto.V1.PodStatusResult getDefaultInstanceForType() { - return io.kubernetes.client.proto.V1.PodStatusResult.getDefaultInstance(); + /** + *
+       * Status of extended resource claim backed by DRA.
+       * +featureGate=DRAExtendedResource
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.PodExtendedResourceClaimStatus extendedResourceClaimStatus = 18; + */ + public io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatusOrBuilder getExtendedResourceClaimStatusOrBuilder() { + if (extendedResourceClaimStatusBuilder_ != null) { + return extendedResourceClaimStatusBuilder_.getMessageOrBuilder(); + } else { + return extendedResourceClaimStatus_ == null ? + io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus.getDefaultInstance() : extendedResourceClaimStatus_; + } } - - @java.lang.Override - public io.kubernetes.client.proto.V1.PodStatusResult build() { - io.kubernetes.client.proto.V1.PodStatusResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + *
+       * Status of extended resource claim backed by DRA.
+       * +featureGate=DRAExtendedResource
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.PodExtendedResourceClaimStatus extendedResourceClaimStatus = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus, io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus.Builder, io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatusOrBuilder> + getExtendedResourceClaimStatusFieldBuilder() { + if (extendedResourceClaimStatusBuilder_ == null) { + extendedResourceClaimStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus, io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatus.Builder, io.kubernetes.client.proto.V1.PodExtendedResourceClaimStatusOrBuilder>( + getExtendedResourceClaimStatus(), + getParentForChildren(), + isClean()); + extendedResourceClaimStatus_ = null; } - return result; + return extendedResourceClaimStatusBuilder_; } - @java.lang.Override - public io.kubernetes.client.proto.V1.PodStatusResult buildPartial() { - io.kubernetes.client.proto.V1.PodStatusResult result = new io.kubernetes.client.proto.V1.PodStatusResult(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.Resource.Quantity> allocatedResources_; + private com.google.protobuf.MapField + internalGetAllocatedResources() { + if (allocatedResources_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AllocatedResourcesDefaultEntryHolder.defaultEntry); } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; + return allocatedResources_; + } + private com.google.protobuf.MapField + internalGetMutableAllocatedResources() { + onChanged();; + if (allocatedResources_ == null) { + allocatedResources_ = com.google.protobuf.MapField.newMapField( + AllocatedResourcesDefaultEntryHolder.defaultEntry); } - if (statusBuilder_ == null) { - result.status_ = status_; - } else { - result.status_ = statusBuilder_.build(); + if (!allocatedResources_.isMutable()) { + allocatedResources_ = allocatedResources_.copy(); } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; + return allocatedResources_; } - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); + public int getAllocatedResourcesCount() { + return internalGetAllocatedResources().getMap().size(); } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + /** + *
+       * AllocatedResources is the total requests allocated for this pod by the node.
+       * If pod-level requests are not set, this will be the total requests aggregated
+       * across containers in the pod.
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + public boolean containsAllocatedResources( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAllocatedResources().getMap().containsKey(key); } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + /** + * Use {@link #getAllocatedResourcesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAllocatedResources() { + return getAllocatedResourcesMap(); } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + /** + *
+       * AllocatedResources is the total requests allocated for this pod by the node.
+       * If pod-level requests are not set, this will be the total requests aggregated
+       * across containers in the pod.
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + public java.util.Map getAllocatedResourcesMap() { + return internalGetAllocatedResources().getMap(); } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + /** + *
+       * AllocatedResources is the total requests allocated for this pod by the node.
+       * If pod-level requests are not set, this will be the total requests aggregated
+       * across containers in the pod.
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + public io.kubernetes.client.proto.Resource.Quantity getAllocatedResourcesOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAllocatedResources().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.kubernetes.client.proto.V1.PodStatusResult) { - return mergeFrom((io.kubernetes.client.proto.V1.PodStatusResult)other); - } else { - super.mergeFrom(other); - return this; + /** + *
+       * AllocatedResources is the total requests allocated for this pod by the node.
+       * If pod-level requests are not set, this will be the total requests aggregated
+       * across containers in the pod.
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + + public io.kubernetes.client.proto.Resource.Quantity getAllocatedResourcesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAllocatedResources().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); } - public Builder mergeFrom(io.kubernetes.client.proto.V1.PodStatusResult other) { - if (other == io.kubernetes.client.proto.V1.PodStatusResult.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); + public Builder clearAllocatedResources() { + internalGetMutableAllocatedResources().getMutableMap() + .clear(); return this; } + /** + *
+       * AllocatedResources is the total requests allocated for this pod by the node.
+       * If pod-level requests are not set, this will be the total requests aggregated
+       * across containers in the pod.
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ - @java.lang.Override - public final boolean isInitialized() { - return true; + public Builder removeAllocatedResources( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAllocatedResources().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAllocatedResources() { + return internalGetMutableAllocatedResources().getMutableMap(); + } + /** + *
+       * AllocatedResources is the total requests allocated for this pod by the node.
+       * If pod-level requests are not set, this will be the total requests aggregated
+       * across containers in the pod.
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ + public Builder putAllocatedResources( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAllocatedResources().getMutableMap() + .put(key, value); + return this; } + /** + *
+       * AllocatedResources is the total requests allocated for this pod by the node.
+       * If pod-level requests are not set, this will be the total requests aggregated
+       * across containers in the pod.
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> allocatedResources = 19; + */ - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.kubernetes.client.proto.V1.PodStatusResult parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.kubernetes.client.proto.V1.PodStatusResult) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + public Builder putAllAllocatedResources( + java.util.Map values) { + internalGetMutableAllocatedResources().getMutableMap() + .putAll(values); return this; } - private int bitField0_; - private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private io.kubernetes.client.proto.V1.ResourceRequirements resources_ = null; private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> resourcesBuilder_; /** *
-       * Standard object's metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) == 0x00000001); + public boolean hasResources() { + return ((bitField0_ & 0x00080000) == 0x00080000); } /** *
-       * Standard object's metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; */ - public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + public io.kubernetes.client.proto.V1.ResourceRequirements getResources() { + if (resourcesBuilder_ == null) { + return resources_ == null ? io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; } else { - return metadataBuilder_.getMessage(); + return resourcesBuilder_.getMessage(); } } /** *
-       * Standard object's metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; */ - public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { - if (metadataBuilder_ == null) { + public Builder setResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { + if (resourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - metadata_ = value; + resources_ = value; onChanged(); } else { - metadataBuilder_.setMessage(value); + resourcesBuilder_.setMessage(value); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00080000; return this; } /** *
-       * Standard object's metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; */ - public Builder setMetadata( - io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); + public Builder setResources( + io.kubernetes.client.proto.V1.ResourceRequirements.Builder builderForValue) { + if (resourcesBuilder_ == null) { + resources_ = builderForValue.build(); onChanged(); } else { - metadataBuilder_.setMessage(builderForValue.build()); + resourcesBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00080000; return this; } /** *
-       * Standard object's metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; */ - public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - metadata_ != null && - metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { - metadata_ = - io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + public Builder mergeResources(io.kubernetes.client.proto.V1.ResourceRequirements value) { + if (resourcesBuilder_ == null) { + if (((bitField0_ & 0x00080000) == 0x00080000) && + resources_ != null && + resources_ != io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance()) { + resources_ = + io.kubernetes.client.proto.V1.ResourceRequirements.newBuilder(resources_).mergeFrom(value).buildPartial(); } else { - metadata_ = value; + resources_ = value; } onChanged(); } else { - metadataBuilder_.mergeFrom(value); + resourcesBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00080000; return this; } /** *
-       * Standard object's metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = null; onChanged(); } else { - metadataBuilder_.clear(); + resourcesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); + bitField0_ = (bitField0_ & ~0x00080000); return this; } /** *
-       * Standard object's metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; */ - public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { - bitField0_ |= 0x00000001; + public io.kubernetes.client.proto.V1.ResourceRequirements.Builder getResourcesBuilder() { + bitField0_ |= 0x00080000; onChanged(); - return getMetadataFieldBuilder().getBuilder(); + return getResourcesFieldBuilder().getBuilder(); } /** *
-       * Standard object's metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; */ - public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); + public io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder getResourcesOrBuilder() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilder(); } else { - return metadata_ == null ? - io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + return resources_ == null ? + io.kubernetes.client.proto.V1.ResourceRequirements.getDefaultInstance() : resources_; } } /** *
-       * Standard object's metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * Resources represents the compute resource requests and limits that have been
+       * applied at the pod level if pod-level requests or limits are set in
+       * PodSpec.Resources
+       * +featureGate=InPlacePodLevelResourcesVerticalScaling
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.api.core.v1.ResourceRequirements resources = 20; */ private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( - getMetadata(), + io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder> + getResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ResourceRequirements, io.kubernetes.client.proto.V1.ResourceRequirements.Builder, io.kubernetes.client.proto.V1.ResourceRequirementsOrBuilder>( + getResources(), getParentForChildren(), isClean()); - metadata_ = null; + resources_ = null; } - return metadataBuilder_; + return resourcesBuilder_; } - private io.kubernetes.client.proto.V1.PodStatus status_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.PodStatus, io.kubernetes.client.proto.V1.PodStatus.Builder, io.kubernetes.client.proto.V1.PodStatusOrBuilder> statusBuilder_; + private java.util.List nodeAllocatableResourceClaimStatuses_ = + java.util.Collections.emptyList(); + private void ensureNodeAllocatableResourceClaimStatusesIsMutable() { + if (!((bitField0_ & 0x00100000) == 0x00100000)) { + nodeAllocatableResourceClaimStatuses_ = new java.util.ArrayList(nodeAllocatableResourceClaimStatuses_); + bitField0_ |= 0x00100000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus, io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.Builder, io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatusOrBuilder> nodeAllocatableResourceClaimStatusesBuilder_; + /** *
-       * Most recently observed status of the pod.
-       * This data may not be up to date.
-       * Populated by the system.
-       * Read-only.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
        * +optional
+       * +listType=atomic
        * 
* - * optional .k8s.io.api.core.v1.PodStatus status = 2; + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public java.util.List getNodeAllocatableResourceClaimStatusesList() { + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nodeAllocatableResourceClaimStatuses_); + } else { + return nodeAllocatableResourceClaimStatusesBuilder_.getMessageList(); + } } /** *
-       * Most recently observed status of the pod.
-       * This data may not be up to date.
-       * Populated by the system.
-       * Read-only.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
        * +optional
+       * +listType=atomic
        * 
* - * optional .k8s.io.api.core.v1.PodStatus status = 2; + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; */ - public io.kubernetes.client.proto.V1.PodStatus getStatus() { - if (statusBuilder_ == null) { - return status_ == null ? io.kubernetes.client.proto.V1.PodStatus.getDefaultInstance() : status_; + public int getNodeAllocatableResourceClaimStatusesCount() { + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + return nodeAllocatableResourceClaimStatuses_.size(); } else { - return statusBuilder_.getMessage(); + return nodeAllocatableResourceClaimStatusesBuilder_.getCount(); } } /** *
-       * Most recently observed status of the pod.
-       * This data may not be up to date.
-       * Populated by the system.
-       * Read-only.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
        * +optional
+       * +listType=atomic
        * 
* - * optional .k8s.io.api.core.v1.PodStatus status = 2; + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; */ - public Builder setStatus(io.kubernetes.client.proto.V1.PodStatus value) { - if (statusBuilder_ == null) { + public io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus getNodeAllocatableResourceClaimStatuses(int index) { + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + return nodeAllocatableResourceClaimStatuses_.get(index); + } else { + return nodeAllocatableResourceClaimStatusesBuilder_.getMessage(index); + } + } + /** + *
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + public Builder setNodeAllocatableResourceClaimStatuses( + int index, io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus value) { + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - status_ = value; + ensureNodeAllocatableResourceClaimStatusesIsMutable(); + nodeAllocatableResourceClaimStatuses_.set(index, value); onChanged(); } else { - statusBuilder_.setMessage(value); + nodeAllocatableResourceClaimStatusesBuilder_.setMessage(index, value); } - bitField0_ |= 0x00000002; return this; } /** *
-       * Most recently observed status of the pod.
-       * This data may not be up to date.
-       * Populated by the system.
-       * Read-only.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
        * +optional
+       * +listType=atomic
        * 
* - * optional .k8s.io.api.core.v1.PodStatus status = 2; + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; */ - public Builder setStatus( - io.kubernetes.client.proto.V1.PodStatus.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); + public Builder setNodeAllocatableResourceClaimStatuses( + int index, io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.Builder builderForValue) { + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + ensureNodeAllocatableResourceClaimStatusesIsMutable(); + nodeAllocatableResourceClaimStatuses_.set(index, builderForValue.build()); onChanged(); } else { - statusBuilder_.setMessage(builderForValue.build()); + nodeAllocatableResourceClaimStatusesBuilder_.setMessage(index, builderForValue.build()); } - bitField0_ |= 0x00000002; return this; } /** *
-       * Most recently observed status of the pod.
-       * This data may not be up to date.
-       * Populated by the system.
-       * Read-only.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
        * +optional
+       * +listType=atomic
        * 
* - * optional .k8s.io.api.core.v1.PodStatus status = 2; + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; */ - public Builder mergeStatus(io.kubernetes.client.proto.V1.PodStatus value) { - if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - status_ != null && - status_ != io.kubernetes.client.proto.V1.PodStatus.getDefaultInstance()) { - status_ = - io.kubernetes.client.proto.V1.PodStatus.newBuilder(status_).mergeFrom(value).buildPartial(); - } else { - status_ = value; + public Builder addNodeAllocatableResourceClaimStatuses(io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus value) { + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureNodeAllocatableResourceClaimStatusesIsMutable(); + nodeAllocatableResourceClaimStatuses_.add(value); onChanged(); } else { - statusBuilder_.mergeFrom(value); + nodeAllocatableResourceClaimStatusesBuilder_.addMessage(value); } - bitField0_ |= 0x00000002; return this; } /** *
-       * Most recently observed status of the pod.
-       * This data may not be up to date.
-       * Populated by the system.
-       * Read-only.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
        * +optional
+       * +listType=atomic
        * 
* - * optional .k8s.io.api.core.v1.PodStatus status = 2; + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; */ - public Builder clearStatus() { - if (statusBuilder_ == null) { - status_ = null; + public Builder addNodeAllocatableResourceClaimStatuses( + int index, io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus value) { + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNodeAllocatableResourceClaimStatusesIsMutable(); + nodeAllocatableResourceClaimStatuses_.add(index, value); onChanged(); } else { - statusBuilder_.clear(); + nodeAllocatableResourceClaimStatusesBuilder_.addMessage(index, value); } - bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
-       * Most recently observed status of the pod.
-       * This data may not be up to date.
-       * Populated by the system.
-       * Read-only.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
        * +optional
+       * +listType=atomic
        * 
* - * optional .k8s.io.api.core.v1.PodStatus status = 2; + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; */ - public io.kubernetes.client.proto.V1.PodStatus.Builder getStatusBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getStatusFieldBuilder().getBuilder(); + public Builder addNodeAllocatableResourceClaimStatuses( + io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.Builder builderForValue) { + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + ensureNodeAllocatableResourceClaimStatusesIsMutable(); + nodeAllocatableResourceClaimStatuses_.add(builderForValue.build()); + onChanged(); + } else { + nodeAllocatableResourceClaimStatusesBuilder_.addMessage(builderForValue.build()); + } + return this; } /** *
-       * Most recently observed status of the pod.
-       * This data may not be up to date.
-       * Populated by the system.
-       * Read-only.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
        * +optional
+       * +listType=atomic
        * 
* - * optional .k8s.io.api.core.v1.PodStatus status = 2; + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; */ - public io.kubernetes.client.proto.V1.PodStatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); + public Builder addNodeAllocatableResourceClaimStatuses( + int index, io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.Builder builderForValue) { + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + ensureNodeAllocatableResourceClaimStatusesIsMutable(); + nodeAllocatableResourceClaimStatuses_.add(index, builderForValue.build()); + onChanged(); } else { - return status_ == null ? - io.kubernetes.client.proto.V1.PodStatus.getDefaultInstance() : status_; + nodeAllocatableResourceClaimStatusesBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** *
-       * Most recently observed status of the pod.
-       * This data may not be up to date.
-       * Populated by the system.
-       * Read-only.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
        * +optional
+       * +listType=atomic
        * 
* - * optional .k8s.io.api.core.v1.PodStatus status = 2; + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.PodStatus, io.kubernetes.client.proto.V1.PodStatus.Builder, io.kubernetes.client.proto.V1.PodStatusOrBuilder> - getStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.PodStatus, io.kubernetes.client.proto.V1.PodStatus.Builder, io.kubernetes.client.proto.V1.PodStatusOrBuilder>( - getStatus(), + public Builder addAllNodeAllocatableResourceClaimStatuses( + java.lang.Iterable values) { + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + ensureNodeAllocatableResourceClaimStatusesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nodeAllocatableResourceClaimStatuses_); + onChanged(); + } else { + nodeAllocatableResourceClaimStatusesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + public Builder clearNodeAllocatableResourceClaimStatuses() { + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + nodeAllocatableResourceClaimStatuses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00100000); + onChanged(); + } else { + nodeAllocatableResourceClaimStatusesBuilder_.clear(); + } + return this; + } + /** + *
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + public Builder removeNodeAllocatableResourceClaimStatuses(int index) { + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + ensureNodeAllocatableResourceClaimStatusesIsMutable(); + nodeAllocatableResourceClaimStatuses_.remove(index); + onChanged(); + } else { + nodeAllocatableResourceClaimStatusesBuilder_.remove(index); + } + return this; + } + /** + *
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + public io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.Builder getNodeAllocatableResourceClaimStatusesBuilder( + int index) { + return getNodeAllocatableResourceClaimStatusesFieldBuilder().getBuilder(index); + } + /** + *
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + public io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatusOrBuilder getNodeAllocatableResourceClaimStatusesOrBuilder( + int index) { + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + return nodeAllocatableResourceClaimStatuses_.get(index); } else { + return nodeAllocatableResourceClaimStatusesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + public java.util.List + getNodeAllocatableResourceClaimStatusesOrBuilderList() { + if (nodeAllocatableResourceClaimStatusesBuilder_ != null) { + return nodeAllocatableResourceClaimStatusesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nodeAllocatableResourceClaimStatuses_); + } + } + /** + *
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + public io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.Builder addNodeAllocatableResourceClaimStatusesBuilder() { + return getNodeAllocatableResourceClaimStatusesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.getDefaultInstance()); + } + /** + *
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + public io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.Builder addNodeAllocatableResourceClaimStatusesBuilder( + int index) { + return getNodeAllocatableResourceClaimStatusesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.getDefaultInstance()); + } + /** + *
+       * NodeAllocatableResourceClaimStatuses contains the status of node-allocatable resources
+       * that were allocated for this pod through DRA claims. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * +featureGate=DRANodeAllocatableResources
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.core.v1.NodeAllocatableResourceClaimStatus nodeAllocatableResourceClaimStatuses = 21; + */ + public java.util.List + getNodeAllocatableResourceClaimStatusesBuilderList() { + return getNodeAllocatableResourceClaimStatusesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus, io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.Builder, io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatusOrBuilder> + getNodeAllocatableResourceClaimStatusesFieldBuilder() { + if (nodeAllocatableResourceClaimStatusesBuilder_ == null) { + nodeAllocatableResourceClaimStatusesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus, io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatus.Builder, io.kubernetes.client.proto.V1.NodeAllocatableResourceClaimStatusOrBuilder>( + nodeAllocatableResourceClaimStatuses_, + ((bitField0_ & 0x00100000) == 0x00100000), getParentForChildren(), isClean()); - status_ = null; + nodeAllocatableResourceClaimStatuses_ = null; } - return statusBuilder_; + return nodeAllocatableResourceClaimStatusesBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -271052,41 +272885,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.PodStatusResult) + // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.PodStatus) } - // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodStatusResult) - private static final io.kubernetes.client.proto.V1.PodStatusResult DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.PodStatus) + private static final io.kubernetes.client.proto.V1.PodStatus DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodStatusResult(); + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.PodStatus(); } - public static io.kubernetes.client.proto.V1.PodStatusResult getDefaultInstance() { + public static io.kubernetes.client.proto.V1.PodStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public PodStatusResult parsePartialFrom( + public PodStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PodStatusResult(input, extensionRegistry); + return new PodStatus(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.kubernetes.client.proto.V1.PodStatusResult getDefaultInstanceForType() { + public io.kubernetes.client.proto.V1.PodStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -291248,8 +293081,8 @@ public interface ReplicationControllerOrBuilder extends * be the same as the Pod(s) that the replication controller manages. * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * +optional - * +k8s:subfield(name)=+k8s:optional - * +k8s:subfield(name)=+k8s:format=k8s-long-name + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -291261,8 +293094,8 @@ public interface ReplicationControllerOrBuilder extends * be the same as the Pod(s) that the replication controller manages. * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * +optional - * +k8s:subfield(name)=+k8s:optional - * +k8s:subfield(name)=+k8s:format=k8s-long-name + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -291274,8 +293107,8 @@ public interface ReplicationControllerOrBuilder extends * be the same as the Pod(s) that the replication controller manages. * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * +optional - * +k8s:subfield(name)=+k8s:optional - * +k8s:subfield(name)=+k8s:format=k8s-long-name + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name * * * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -291476,8 +293309,8 @@ private ReplicationController( * be the same as the Pod(s) that the replication controller manages. * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * +optional - * +k8s:subfield(name)=+k8s:optional - * +k8s:subfield(name)=+k8s:format=k8s-long-name + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name * * * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -291491,8 +293324,8 @@ public boolean hasMetadata() { * be the same as the Pod(s) that the replication controller manages. * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * +optional - * +k8s:subfield(name)=+k8s:optional - * +k8s:subfield(name)=+k8s:format=k8s-long-name + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name * * * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -291506,8 +293339,8 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { * be the same as the Pod(s) that the replication controller manages. * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * +optional - * +k8s:subfield(name)=+k8s:optional - * +k8s:subfield(name)=+k8s:format=k8s-long-name + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name * * * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -292008,8 +293841,8 @@ public Builder mergeFrom( * be the same as the Pod(s) that the replication controller manages. * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * +optional - * +k8s:subfield(name)=+k8s:optional - * +k8s:subfield(name)=+k8s:format=k8s-long-name + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name * * * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -292023,8 +293856,8 @@ public boolean hasMetadata() { * be the same as the Pod(s) that the replication controller manages. * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * +optional - * +k8s:subfield(name)=+k8s:optional - * +k8s:subfield(name)=+k8s:format=k8s-long-name + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name * * * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -292042,8 +293875,8 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { * be the same as the Pod(s) that the replication controller manages. * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * +optional - * +k8s:subfield(name)=+k8s:optional - * +k8s:subfield(name)=+k8s:format=k8s-long-name + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name * * * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -292067,8 +293900,8 @@ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { * be the same as the Pod(s) that the replication controller manages. * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * +optional - * +k8s:subfield(name)=+k8s:optional - * +k8s:subfield(name)=+k8s:format=k8s-long-name + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name * * * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -292090,8 +293923,8 @@ public Builder setMetadata( * be the same as the Pod(s) that the replication controller manages. * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * +optional - * +k8s:subfield(name)=+k8s:optional - * +k8s:subfield(name)=+k8s:format=k8s-long-name + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name * * * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -292119,8 +293952,8 @@ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { * be the same as the Pod(s) that the replication controller manages. * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * +optional - * +k8s:subfield(name)=+k8s:optional - * +k8s:subfield(name)=+k8s:format=k8s-long-name + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name * * * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -292141,8 +293974,8 @@ public Builder clearMetadata() { * be the same as the Pod(s) that the replication controller manages. * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * +optional - * +k8s:subfield(name)=+k8s:optional - * +k8s:subfield(name)=+k8s:format=k8s-long-name + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name * * * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -292158,8 +293991,8 @@ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { * be the same as the Pod(s) that the replication controller manages. * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * +optional - * +k8s:subfield(name)=+k8s:optional - * +k8s:subfield(name)=+k8s:format=k8s-long-name + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name * * * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -292178,8 +294011,8 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( * be the same as the Pod(s) that the replication controller manages. * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata * +optional - * +k8s:subfield(name)=+k8s:optional - * +k8s:subfield(name)=+k8s:format=k8s-long-name + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name * * * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; @@ -295430,9 +297263,9 @@ public interface ReplicationControllerSpecOrBuilder extends * Defaults to 1. * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=1 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 replicas = 1; @@ -295445,9 +297278,9 @@ public interface ReplicationControllerSpecOrBuilder extends * Defaults to 1. * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=1 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 replicas = 1; @@ -295460,9 +297293,9 @@ public interface ReplicationControllerSpecOrBuilder extends * without any of its container crashing, for it to be considered available. * Defaults to 0 (pod will be considered available as soon as it is ready) * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=0 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 minReadySeconds = 4; @@ -295474,9 +297307,9 @@ public interface ReplicationControllerSpecOrBuilder extends * without any of its container crashing, for it to be considered available. * Defaults to 0 (pod will be considered available as soon as it is ready) * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=0 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 minReadySeconds = 4; @@ -295574,6 +297407,7 @@ java.lang.String getSelectorOrThrow( * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional * * * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -295586,6 +297420,7 @@ java.lang.String getSelectorOrThrow( * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional * * * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -295598,6 +297433,7 @@ java.lang.String getSelectorOrThrow( * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional * * * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -295739,9 +297575,9 @@ protected com.google.protobuf.MapField internalGetMapField( * Defaults to 1. * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=1 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 replicas = 1; @@ -295756,9 +297592,9 @@ public boolean hasReplicas() { * Defaults to 1. * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=1 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 replicas = 1; @@ -295775,9 +297611,9 @@ public int getReplicas() { * without any of its container crashing, for it to be considered available. * Defaults to 0 (pod will be considered available as soon as it is ready) * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=0 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 minReadySeconds = 4; @@ -295791,9 +297627,9 @@ public boolean hasMinReadySeconds() { * without any of its container crashing, for it to be considered available. * Defaults to 0 (pod will be considered available as soon as it is ready) * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=0 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 minReadySeconds = 4; @@ -295927,6 +297763,7 @@ public java.lang.String getSelectorOrThrow( * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional * * * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -295941,6 +297778,7 @@ public boolean hasTemplate() { * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional * * * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -295955,6 +297793,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpec getTemplate() { * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional * * * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -296398,9 +298237,9 @@ public Builder mergeFrom( * Defaults to 1. * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=1 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 replicas = 1; @@ -296415,9 +298254,9 @@ public boolean hasReplicas() { * Defaults to 1. * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=1 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 replicas = 1; @@ -296432,9 +298271,9 @@ public int getReplicas() { * Defaults to 1. * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=1 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 replicas = 1; @@ -296452,9 +298291,9 @@ public Builder setReplicas(int value) { * Defaults to 1. * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=1 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 replicas = 1; @@ -296473,9 +298312,9 @@ public Builder clearReplicas() { * without any of its container crashing, for it to be considered available. * Defaults to 0 (pod will be considered available as soon as it is ready) * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=0 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 minReadySeconds = 4; @@ -296489,9 +298328,9 @@ public boolean hasMinReadySeconds() { * without any of its container crashing, for it to be considered available. * Defaults to 0 (pod will be considered available as soon as it is ready) * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=0 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 minReadySeconds = 4; @@ -296505,9 +298344,9 @@ public int getMinReadySeconds() { * without any of its container crashing, for it to be considered available. * Defaults to 0 (pod will be considered available as soon as it is ready) * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=0 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 minReadySeconds = 4; @@ -296524,9 +298363,9 @@ public Builder setMinReadySeconds(int value) { * without any of its container crashing, for it to be considered available. * Defaults to 0 (pod will be considered available as soon as it is ready) * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional * +default=0 - * +k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:minimum=0 * * * optional int32 minReadySeconds = 4; @@ -296741,6 +298580,7 @@ public Builder putAllSelector( * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional * * * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -296755,6 +298595,7 @@ public boolean hasTemplate() { * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional * * * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -296773,6 +298614,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpec getTemplate() { * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional * * * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -296797,6 +298639,7 @@ public Builder setTemplate(io.kubernetes.client.proto.V1.PodTemplateSpec value) * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional * * * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -296819,6 +298662,7 @@ public Builder setTemplate( * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional * * * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -296847,6 +298691,7 @@ public Builder mergeTemplate(io.kubernetes.client.proto.V1.PodTemplateSpec value * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional * * * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -296868,6 +298713,7 @@ public Builder clearTemplate() { * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional * * * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -296884,6 +298730,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpec.Builder getTemplateBuilder( * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional * * * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -296903,6 +298750,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder getTemplateOrBuild * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional * * * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -300787,6 +302635,41 @@ public interface ResourceHealthOrBuilder extends */ com.google.protobuf.ByteString getHealthBytes(); + + /** + *
+     * Message provides human-readable context for Health (e.g. "ECC error count exceeded threshold").
+     * This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise.
+     * +featureGate=ResourceHealthStatusMessage
+     * +optional
+     * 
+ * + * optional string message = 6; + */ + boolean hasMessage(); + /** + *
+     * Message provides human-readable context for Health (e.g. "ECC error count exceeded threshold").
+     * This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise.
+     * +featureGate=ResourceHealthStatusMessage
+     * +optional
+     * 
+ * + * optional string message = 6; + */ + java.lang.String getMessage(); + /** + *
+     * Message provides human-readable context for Health (e.g. "ECC error count exceeded threshold").
+     * This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise.
+     * +featureGate=ResourceHealthStatusMessage
+     * +optional
+     * 
+ * + * optional string message = 6; + */ + com.google.protobuf.ByteString + getMessageBytes(); } /** *
@@ -300808,6 +302691,7 @@ private ResourceHealth(com.google.protobuf.GeneratedMessageV3.Builder builder
     private ResourceHealth() {
       resourceID_ = "";
       health_ = "";
+      message_ = "";
     }
 
     @java.lang.Override
@@ -300846,6 +302730,12 @@ private ResourceHealth(
               health_ = bs;
               break;
             }
+            case 50: {
+              com.google.protobuf.ByteString bs = input.readBytes();
+              bitField0_ |= 0x00000004;
+              message_ = bs;
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -301011,6 +302901,69 @@ public java.lang.String getHealth() {
       }
     }
 
+    public static final int MESSAGE_FIELD_NUMBER = 6;
+    private volatile java.lang.Object message_;
+    /**
+     * 
+     * Message provides human-readable context for Health (e.g. "ECC error count exceeded threshold").
+     * This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise.
+     * +featureGate=ResourceHealthStatusMessage
+     * +optional
+     * 
+ * + * optional string message = 6; + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * Message provides human-readable context for Health (e.g. "ECC error count exceeded threshold").
+     * This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise.
+     * +featureGate=ResourceHealthStatusMessage
+     * +optional
+     * 
+ * + * optional string message = 6; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + message_ = s; + } + return s; + } + } + /** + *
+     * Message provides human-readable context for Health (e.g. "ECC error count exceeded threshold").
+     * This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise.
+     * +featureGate=ResourceHealthStatusMessage
+     * +optional
+     * 
+ * + * optional string message = 6; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -301031,6 +302984,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000002) == 0x00000002)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, health_); } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, message_); + } unknownFields.writeTo(output); } @@ -301046,6 +303002,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, health_); } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, message_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -301072,6 +303031,11 @@ public boolean equals(final java.lang.Object obj) { result = result && getHealth() .equals(other.getHealth()); } + result = result && (hasMessage() == other.hasMessage()); + if (hasMessage()) { + result = result && getMessage() + .equals(other.getMessage()); + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -301091,6 +303055,10 @@ public int hashCode() { hash = (37 * hash) + HEALTH_FIELD_NUMBER; hash = (53 * hash) + getHealth().hashCode(); } + if (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -301233,6 +303201,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000001); health_ = ""; bitField0_ = (bitField0_ & ~0x00000002); + message_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -301269,6 +303239,10 @@ public io.kubernetes.client.proto.V1.ResourceHealth buildPartial() { to_bitField0_ |= 0x00000002; } result.health_ = health_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.message_ = message_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -301328,6 +303302,11 @@ public Builder mergeFrom(io.kubernetes.client.proto.V1.ResourceHealth other) { health_ = other.health_; onChanged(); } + if (other.hasMessage()) { + bitField0_ |= 0x00000004; + message_ = other.message_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -301605,6 +303584,124 @@ public Builder setHealthBytes( onChanged(); return this; } + + private java.lang.Object message_ = ""; + /** + *
+       * Message provides human-readable context for Health (e.g. "ECC error count exceeded threshold").
+       * This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise.
+       * +featureGate=ResourceHealthStatusMessage
+       * +optional
+       * 
+ * + * optional string message = 6; + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * Message provides human-readable context for Health (e.g. "ECC error count exceeded threshold").
+       * This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise.
+       * +featureGate=ResourceHealthStatusMessage
+       * +optional
+       * 
+ * + * optional string message = 6; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + message_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Message provides human-readable context for Health (e.g. "ECC error count exceeded threshold").
+       * This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise.
+       * +featureGate=ResourceHealthStatusMessage
+       * +optional
+       * 
+ * + * optional string message = 6; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Message provides human-readable context for Health (e.g. "ECC error count exceeded threshold").
+       * This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise.
+       * +featureGate=ResourceHealthStatusMessage
+       * +optional
+       * 
+ * + * optional string message = 6; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + message_ = value; + onChanged(); + return this; + } + /** + *
+       * Message provides human-readable context for Health (e.g. "ECC error count exceeded threshold").
+       * This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise.
+       * +featureGate=ResourceHealthStatusMessage
+       * +optional
+       * 
+ * + * optional string message = 6; + */ + public Builder clearMessage() { + bitField0_ = (bitField0_ & ~0x00000004); + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * Message provides human-readable context for Health (e.g. "ECC error count exceeded threshold").
+       * This field is populated by the kubelet when ResourceHealthStatusMessage is enabled if the DRA plugin returns a message, and is null otherwise.
+       * +featureGate=ResourceHealthStatusMessage
+       * +optional
+       * 
+ * + * optional string message = 6; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + message_ = value; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -301758,6 +303855,7 @@ public interface ResourceQuotaOrBuilder extends /** *
    * ResourceQuota sets aggregate quota restrictions enforced per namespace
+   * +k8s:supportsSubresource="/status"
    * 
* * Protobuf type {@code k8s.io.api.core.v1.ResourceQuota} @@ -302183,6 +304281,7 @@ protected Builder newBuilderForType( /** *
      * ResourceQuota sets aggregate quota restrictions enforced per namespace
+     * +k8s:supportsSubresource="/status"
      * 
* * Protobuf type {@code k8s.io.api.core.v1.ResourceQuota} @@ -319879,6 +321978,8 @@ java.lang.String getStringDataOrThrow( * Used to facilitate programmatic handling of secret data. * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional string type = 3; @@ -319889,6 +321990,8 @@ java.lang.String getStringDataOrThrow( * Used to facilitate programmatic handling of secret data. * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:immutable * * * optional string type = 3; @@ -319899,6 +322002,8 @@ java.lang.String getStringDataOrThrow( * Used to facilitate programmatic handling of secret data. * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:immutable * * * optional string type = 3; @@ -320346,6 +322451,8 @@ public java.lang.String getStringDataOrThrow( * Used to facilitate programmatic handling of secret data. * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:immutable * * * optional string type = 3; @@ -320358,6 +322465,8 @@ public boolean hasType() { * Used to facilitate programmatic handling of secret data. * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:immutable * * * optional string type = 3; @@ -320381,6 +322490,8 @@ public java.lang.String getType() { * Used to facilitate programmatic handling of secret data. * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:immutable * * * optional string type = 3; @@ -321467,6 +323578,8 @@ public Builder putAllStringData( * Used to facilitate programmatic handling of secret data. * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:immutable * * * optional string type = 3; @@ -321479,6 +323592,8 @@ public boolean hasType() { * Used to facilitate programmatic handling of secret data. * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:immutable * * * optional string type = 3; @@ -321502,6 +323617,8 @@ public java.lang.String getType() { * Used to facilitate programmatic handling of secret data. * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:immutable * * * optional string type = 3; @@ -321524,6 +323641,8 @@ public java.lang.String getType() { * Used to facilitate programmatic handling of secret data. * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:immutable * * * optional string type = 3; @@ -321543,6 +323662,8 @@ public Builder setType( * Used to facilitate programmatic handling of secret data. * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:immutable * * * optional string type = 3; @@ -321558,6 +323679,8 @@ public Builder clearType() { * Used to facilitate programmatic handling of secret data. * More info: https://kubernetes.io/docs/concepts/configuration/secret/#secret-types * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:immutable * * * optional string type = 3; @@ -328995,7 +331118,6 @@ public interface SecurityContextOrBuilder extends * procMount denotes the type of proc mount to use for the containers. * The default value is Default which uses the container runtime defaults for * readonly paths and masked paths. - * This requires the ProcMountType feature flag to be enabled. * Note that this field cannot be set when spec.os.name is windows. * +optional * @@ -329008,7 +331130,6 @@ public interface SecurityContextOrBuilder extends * procMount denotes the type of proc mount to use for the containers. * The default value is Default which uses the container runtime defaults for * readonly paths and masked paths. - * This requires the ProcMountType feature flag to be enabled. * Note that this field cannot be set when spec.os.name is windows. * +optional * @@ -329021,7 +331142,6 @@ public interface SecurityContextOrBuilder extends * procMount denotes the type of proc mount to use for the containers. * The default value is Default which uses the container runtime defaults for * readonly paths and masked paths. - * This requires the ProcMountType feature flag to be enabled. * Note that this field cannot be set when spec.os.name is windows. * +optional * @@ -329628,7 +331748,6 @@ public boolean getAllowPrivilegeEscalation() { * procMount denotes the type of proc mount to use for the containers. * The default value is Default which uses the container runtime defaults for * readonly paths and masked paths. - * This requires the ProcMountType feature flag to be enabled. * Note that this field cannot be set when spec.os.name is windows. * +optional * @@ -329643,7 +331762,6 @@ public boolean hasProcMount() { * procMount denotes the type of proc mount to use for the containers. * The default value is Default which uses the container runtime defaults for * readonly paths and masked paths. - * This requires the ProcMountType feature flag to be enabled. * Note that this field cannot be set when spec.os.name is windows. * +optional * @@ -329669,7 +331787,6 @@ public java.lang.String getProcMount() { * procMount denotes the type of proc mount to use for the containers. * The default value is Default which uses the container runtime defaults for * readonly paths and masked paths. - * This requires the ProcMountType feature flag to be enabled. * Note that this field cannot be set when spec.os.name is windows. * +optional * @@ -331409,7 +333526,6 @@ public Builder clearAllowPrivilegeEscalation() { * procMount denotes the type of proc mount to use for the containers. * The default value is Default which uses the container runtime defaults for * readonly paths and masked paths. - * This requires the ProcMountType feature flag to be enabled. * Note that this field cannot be set when spec.os.name is windows. * +optional * @@ -331424,7 +333540,6 @@ public boolean hasProcMount() { * procMount denotes the type of proc mount to use for the containers. * The default value is Default which uses the container runtime defaults for * readonly paths and masked paths. - * This requires the ProcMountType feature flag to be enabled. * Note that this field cannot be set when spec.os.name is windows. * +optional * @@ -331450,7 +333565,6 @@ public java.lang.String getProcMount() { * procMount denotes the type of proc mount to use for the containers. * The default value is Default which uses the container runtime defaults for * readonly paths and masked paths. - * This requires the ProcMountType feature flag to be enabled. * Note that this field cannot be set when spec.os.name is windows. * +optional * @@ -331475,7 +333589,6 @@ public java.lang.String getProcMount() { * procMount denotes the type of proc mount to use for the containers. * The default value is Default which uses the container runtime defaults for * readonly paths and masked paths. - * This requires the ProcMountType feature flag to be enabled. * Note that this field cannot be set when spec.os.name is windows. * +optional * @@ -331497,7 +333610,6 @@ public Builder setProcMount( * procMount denotes the type of proc mount to use for the containers. * The default value is Default which uses the container runtime defaults for * readonly paths and masked paths. - * This requires the ProcMountType feature flag to be enabled. * Note that this field cannot be set when spec.os.name is windows. * +optional * @@ -331515,7 +333627,6 @@ public Builder clearProcMount() { * procMount denotes the type of proc mount to use for the containers. * The default value is Default which uses the container runtime defaults for * readonly paths and masked paths. - * This requires the ProcMountType feature flag to be enabled. * Note that this field cannot be set when spec.os.name is windows. * +optional * @@ -332764,6 +334875,8 @@ public interface ServiceOrBuilder extends * Service is a named abstraction of software service (for example, mysql) consisting of local port * (for example 3306) that the proxy listens on, and the selector that determines which pods * will answer requests sent through the proxy. + * +k8s:supportsSubresource="/status" + * +k8s:supportsSubresource="/proxy" * * * Protobuf type {@code k8s.io.api.core.v1.Service} @@ -333197,6 +335310,8 @@ protected Builder newBuilderForType( * Service is a named abstraction of software service (for example, mysql) consisting of local port * (for example 3306) that the proxy listens on, and the selector that determines which pods * will answer requests sent through the proxy. + * +k8s:supportsSubresource="/status" + * +k8s:supportsSubresource="/proxy" * * * Protobuf type {@code k8s.io.api.core.v1.Service} @@ -349957,6 +352072,7 @@ public interface ServiceStatusOrBuilder extends * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -349971,6 +352087,7 @@ public interface ServiceStatusOrBuilder extends * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -349984,6 +352101,7 @@ public interface ServiceStatusOrBuilder extends * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -349997,6 +352115,7 @@ public interface ServiceStatusOrBuilder extends * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -350011,6 +352130,7 @@ public interface ServiceStatusOrBuilder extends * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -350169,6 +352289,7 @@ public io.kubernetes.client.proto.V1.LoadBalancerStatusOrBuilder getLoadBalancer * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -350184,6 +352305,7 @@ public java.util.List getConditionsLi * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -350200,6 +352322,7 @@ public java.util.List getConditionsLi * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -350215,6 +352338,7 @@ public int getConditionsCount() { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -350230,6 +352354,7 @@ public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -350814,6 +352939,7 @@ private void ensureConditionsIsMutable() { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -350833,6 +352959,7 @@ public java.util.List getConditionsLi * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -350852,6 +352979,7 @@ public int getConditionsCount() { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -350871,6 +352999,7 @@ public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -350897,6 +353026,7 @@ public Builder setConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -350920,6 +353050,7 @@ public Builder setConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -350945,6 +353076,7 @@ public Builder addConditions(io.kubernetes.client.proto.Meta.Condition value) { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -350971,6 +353103,7 @@ public Builder addConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -350994,6 +353127,7 @@ public Builder addConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -351017,6 +353151,7 @@ public Builder addConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -351041,6 +353176,7 @@ public Builder addAllConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -351063,6 +353199,7 @@ public Builder clearConditions() { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -351085,6 +353222,7 @@ public Builder removeConditions(int index) { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -351101,6 +353239,7 @@ public io.kubernetes.client.proto.Meta.Condition.Builder getConditionsBuilder( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -351120,6 +353259,7 @@ public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -351140,6 +353280,7 @@ public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -351156,6 +353297,7 @@ public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder() * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -351173,6 +353315,7 @@ public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType * * * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 2; @@ -358892,6 +361035,8 @@ public interface TolerationOrBuilder extends * Key is the taint key that the toleration applies to. Empty means match all taint keys. * If the key is empty, operator must be Exists; this combination means to match all values and all keys. * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:format=k8s-label-key * * * optional string key = 1; @@ -358902,6 +361047,8 @@ public interface TolerationOrBuilder extends * Key is the taint key that the toleration applies to. Empty means match all taint keys. * If the key is empty, operator must be Exists; this combination means to match all values and all keys. * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:format=k8s-label-key * * * optional string key = 1; @@ -358912,6 +361059,8 @@ public interface TolerationOrBuilder extends * Key is the taint key that the toleration applies to. Empty means match all taint keys. * If the key is empty, operator must be Exists; this combination means to match all values and all keys. * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:format=k8s-label-key * * * optional string key = 1; @@ -359167,6 +361316,8 @@ private Toleration( * Key is the taint key that the toleration applies to. Empty means match all taint keys. * If the key is empty, operator must be Exists; this combination means to match all values and all keys. * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:format=k8s-label-key * * * optional string key = 1; @@ -359179,6 +361330,8 @@ public boolean hasKey() { * Key is the taint key that the toleration applies to. Empty means match all taint keys. * If the key is empty, operator must be Exists; this combination means to match all values and all keys. * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:format=k8s-label-key * * * optional string key = 1; @@ -359202,6 +361355,8 @@ public java.lang.String getKey() { * Key is the taint key that the toleration applies to. Empty means match all taint keys. * If the key is empty, operator must be Exists; this combination means to match all values and all keys. * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:format=k8s-label-key * * * optional string key = 1; @@ -359871,6 +362026,8 @@ public Builder mergeFrom( * Key is the taint key that the toleration applies to. Empty means match all taint keys. * If the key is empty, operator must be Exists; this combination means to match all values and all keys. * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:format=k8s-label-key * * * optional string key = 1; @@ -359883,6 +362040,8 @@ public boolean hasKey() { * Key is the taint key that the toleration applies to. Empty means match all taint keys. * If the key is empty, operator must be Exists; this combination means to match all values and all keys. * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:format=k8s-label-key * * * optional string key = 1; @@ -359906,6 +362065,8 @@ public java.lang.String getKey() { * Key is the taint key that the toleration applies to. Empty means match all taint keys. * If the key is empty, operator must be Exists; this combination means to match all values and all keys. * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:format=k8s-label-key * * * optional string key = 1; @@ -359928,6 +362089,8 @@ public java.lang.String getKey() { * Key is the taint key that the toleration applies to. Empty means match all taint keys. * If the key is empty, operator must be Exists; this combination means to match all values and all keys. * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:format=k8s-label-key * * * optional string key = 1; @@ -359947,6 +362110,8 @@ public Builder setKey( * Key is the taint key that the toleration applies to. Empty means match all taint keys. * If the key is empty, operator must be Exists; this combination means to match all values and all keys. * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:format=k8s-label-key * * * optional string key = 1; @@ -359962,6 +362127,8 @@ public Builder clearKey() { * Key is the taint key that the toleration applies to. Empty means match all taint keys. * If the key is empty, operator must be Exists; this combination means to match all values and all keys. * +optional + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:format=k8s-label-key * * * optional string key = 1; @@ -369804,8 +371971,7 @@ public interface VolumeMountOrBuilder extends /** *
-     * Path within the container at which the volume should be mounted.  Must
-     * not contain ':'.
+     * Path within the container at which the volume should be mounted.
      * 
* * optional string mountPath = 3; @@ -369813,8 +371979,7 @@ public interface VolumeMountOrBuilder extends boolean hasMountPath(); /** *
-     * Path within the container at which the volume should be mounted.  Must
-     * not contain ':'.
+     * Path within the container at which the volume should be mounted.
      * 
* * optional string mountPath = 3; @@ -369822,8 +371987,7 @@ public interface VolumeMountOrBuilder extends java.lang.String getMountPath(); /** *
-     * Path within the container at which the volume should be mounted.  Must
-     * not contain ':'.
+     * Path within the container at which the volume should be mounted.
      * 
* * optional string mountPath = 3; @@ -370244,8 +372408,7 @@ public java.lang.String getRecursiveReadOnly() { private volatile java.lang.Object mountPath_; /** *
-     * Path within the container at which the volume should be mounted.  Must
-     * not contain ':'.
+     * Path within the container at which the volume should be mounted.
      * 
* * optional string mountPath = 3; @@ -370255,8 +372418,7 @@ public boolean hasMountPath() { } /** *
-     * Path within the container at which the volume should be mounted.  Must
-     * not contain ':'.
+     * Path within the container at which the volume should be mounted.
      * 
* * optional string mountPath = 3; @@ -370277,8 +372439,7 @@ public java.lang.String getMountPath() { } /** *
-     * Path within the container at which the volume should be mounted.  Must
-     * not contain ':'.
+     * Path within the container at which the volume should be mounted.
      * 
* * optional string mountPath = 3; @@ -371302,8 +373463,7 @@ public Builder setRecursiveReadOnlyBytes( private java.lang.Object mountPath_ = ""; /** *
-       * Path within the container at which the volume should be mounted.  Must
-       * not contain ':'.
+       * Path within the container at which the volume should be mounted.
        * 
* * optional string mountPath = 3; @@ -371313,8 +373473,7 @@ public boolean hasMountPath() { } /** *
-       * Path within the container at which the volume should be mounted.  Must
-       * not contain ':'.
+       * Path within the container at which the volume should be mounted.
        * 
* * optional string mountPath = 3; @@ -371335,8 +373494,7 @@ public java.lang.String getMountPath() { } /** *
-       * Path within the container at which the volume should be mounted.  Must
-       * not contain ':'.
+       * Path within the container at which the volume should be mounted.
        * 
* * optional string mountPath = 3; @@ -371356,8 +373514,7 @@ public java.lang.String getMountPath() { } /** *
-       * Path within the container at which the volume should be mounted.  Must
-       * not contain ':'.
+       * Path within the container at which the volume should be mounted.
        * 
* * optional string mountPath = 3; @@ -371374,8 +373531,7 @@ public Builder setMountPath( } /** *
-       * Path within the container at which the volume should be mounted.  Must
-       * not contain ':'.
+       * Path within the container at which the volume should be mounted.
        * 
* * optional string mountPath = 3; @@ -371388,8 +373544,7 @@ public Builder clearMountPath() { } /** *
-       * Path within the container at which the volume should be mounted.  Must
-       * not contain ':'.
+       * Path within the container at which the volume should be mounted.
        * 
* * optional string mountPath = 3; @@ -378923,10 +381078,9 @@ public interface VolumeSourceOrBuilder extends * A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. * The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. * The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - * The volume will be mounted read-only (ro) and non-executable files (noexec). + * The volume will be mounted read-only (ro). * Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. * The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - * +featureGate=ImageVolume * +optional * * @@ -378944,10 +381098,9 @@ public interface VolumeSourceOrBuilder extends * A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. * The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. * The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - * The volume will be mounted read-only (ro) and non-executable files (noexec). + * The volume will be mounted read-only (ro). * Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. * The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - * +featureGate=ImageVolume * +optional * * @@ -378965,10 +381118,9 @@ public interface VolumeSourceOrBuilder extends * A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. * The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. * The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - * The volume will be mounted read-only (ro) and non-executable files (noexec). + * The volume will be mounted read-only (ro). * Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. * The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - * +featureGate=ImageVolume * +optional * * @@ -380689,10 +382841,9 @@ public io.kubernetes.client.proto.V1.EphemeralVolumeSourceOrBuilder getEphemeral * A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. * The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. * The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - * The volume will be mounted read-only (ro) and non-executable files (noexec). + * The volume will be mounted read-only (ro). * Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. * The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - * +featureGate=ImageVolume * +optional * * @@ -380712,10 +382863,9 @@ public boolean hasImage() { * A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. * The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. * The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - * The volume will be mounted read-only (ro) and non-executable files (noexec). + * The volume will be mounted read-only (ro). * Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. * The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - * +featureGate=ImageVolume * +optional * * @@ -380735,10 +382885,9 @@ public io.kubernetes.client.proto.V1.ImageVolumeSource getImage() { * A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. * The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. * The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - * The volume will be mounted read-only (ro) and non-executable files (noexec). + * The volume will be mounted read-only (ro). * Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. * The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - * +featureGate=ImageVolume * +optional * * @@ -387371,10 +389520,9 @@ public io.kubernetes.client.proto.V1.EphemeralVolumeSourceOrBuilder getEphemeral * A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. * The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. * The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - * The volume will be mounted read-only (ro) and non-executable files (noexec). + * The volume will be mounted read-only (ro). * Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. * The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - * +featureGate=ImageVolume * +optional * * @@ -387394,10 +389542,9 @@ public boolean hasImage() { * A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. * The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. * The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - * The volume will be mounted read-only (ro) and non-executable files (noexec). + * The volume will be mounted read-only (ro). * Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. * The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - * +featureGate=ImageVolume * +optional * * @@ -387421,10 +389568,9 @@ public io.kubernetes.client.proto.V1.ImageVolumeSource getImage() { * A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. * The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. * The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - * The volume will be mounted read-only (ro) and non-executable files (noexec). + * The volume will be mounted read-only (ro). * Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. * The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - * +featureGate=ImageVolume * +optional * * @@ -387454,10 +389600,9 @@ public Builder setImage(io.kubernetes.client.proto.V1.ImageVolumeSource value) { * A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. * The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. * The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - * The volume will be mounted read-only (ro) and non-executable files (noexec). + * The volume will be mounted read-only (ro). * Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. * The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - * +featureGate=ImageVolume * +optional * * @@ -387485,10 +389630,9 @@ public Builder setImage( * A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. * The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. * The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - * The volume will be mounted read-only (ro) and non-executable files (noexec). + * The volume will be mounted read-only (ro). * Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. * The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - * +featureGate=ImageVolume * +optional * * @@ -387522,10 +389666,9 @@ public Builder mergeImage(io.kubernetes.client.proto.V1.ImageVolumeSource value) * A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. * The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. * The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - * The volume will be mounted read-only (ro) and non-executable files (noexec). + * The volume will be mounted read-only (ro). * Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. * The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - * +featureGate=ImageVolume * +optional * * @@ -387552,10 +389695,9 @@ public Builder clearImage() { * A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. * The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. * The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - * The volume will be mounted read-only (ro) and non-executable files (noexec). + * The volume will be mounted read-only (ro). * Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. * The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - * +featureGate=ImageVolume * +optional * * @@ -387577,10 +389719,9 @@ public io.kubernetes.client.proto.V1.ImageVolumeSource.Builder getImageBuilder() * A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. * The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. * The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - * The volume will be mounted read-only (ro) and non-executable files (noexec). + * The volume will be mounted read-only (ro). * Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. * The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - * +featureGate=ImageVolume * +optional * * @@ -387605,10 +389746,9 @@ public io.kubernetes.client.proto.V1.ImageVolumeSourceOrBuilder getImageOrBuilde * A failure to resolve or pull the image during pod startup will block containers from starting and may add significant latency. Failures will be retried using normal volume backoff and will be reported on the pod reason and message. * The types of objects that may be mounted by this volume are defined by the container runtime implementation on a host machine and at minimum must include all valid types supported by the container image field. * The OCI object gets mounted in a single directory (spec.containers[*].volumeMounts.mountPath) by merging the manifest layers in the same way as for container images. - * The volume will be mounted read-only (ro) and non-executable files (noexec). + * The volume will be mounted read-only (ro). * Sub path mounts for containers are not supported (spec.containers[*].volumeMounts.subpath) before 1.33. * The field spec.securityContext.fsGroupChangePolicy has no effect on this volume type. - * +featureGate=ImageVolume * +optional * * @@ -387816,1043 +389956,32 @@ private VolumeStatus( * * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; */ - public boolean hasImage() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - *
-     * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
-     * +featureGate=ImageVolumeWithDigest
-     * +optional
-     * 
- * - * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; - */ - public io.kubernetes.client.proto.V1.ImageVolumeStatus getImage() { - return image_ == null ? io.kubernetes.client.proto.V1.ImageVolumeStatus.getDefaultInstance() : image_; - } - /** - *
-     * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
-     * +featureGate=ImageVolumeWithDigest
-     * +optional
-     * 
- * - * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; - */ - public io.kubernetes.client.proto.V1.ImageVolumeStatusOrBuilder getImageOrBuilder() { - return image_ == null ? io.kubernetes.client.proto.V1.ImageVolumeStatus.getDefaultInstance() : image_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getImage()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getImage()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof io.kubernetes.client.proto.V1.VolumeStatus)) { - return super.equals(obj); - } - io.kubernetes.client.proto.V1.VolumeStatus other = (io.kubernetes.client.proto.V1.VolumeStatus) obj; - - boolean result = true; - result = result && (hasImage() == other.hasImage()); - if (hasImage()) { - result = result && getImage() - .equals(other.getImage()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasImage()) { - hash = (37 * hash) + IMAGE_FIELD_NUMBER; - hash = (53 * hash) + getImage().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.kubernetes.client.proto.V1.VolumeStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.kubernetes.client.proto.V1.VolumeStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.kubernetes.client.proto.V1.VolumeStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * VolumeStatus represents the status of a mounted volume.
-     * At most one of its members must be specified.
-     * 
- * - * Protobuf type {@code k8s.io.api.core.v1.VolumeStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.VolumeStatus) - io.kubernetes.client.proto.V1.VolumeStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VolumeStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VolumeStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1.VolumeStatus.class, io.kubernetes.client.proto.V1.VolumeStatus.Builder.class); - } - - // Construct using io.kubernetes.client.proto.V1.VolumeStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getImageFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (imageBuilder_ == null) { - image_ = null; - } else { - imageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VolumeStatus_descriptor; - } - - @java.lang.Override - public io.kubernetes.client.proto.V1.VolumeStatus getDefaultInstanceForType() { - return io.kubernetes.client.proto.V1.VolumeStatus.getDefaultInstance(); - } - - @java.lang.Override - public io.kubernetes.client.proto.V1.VolumeStatus build() { - io.kubernetes.client.proto.V1.VolumeStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.kubernetes.client.proto.V1.VolumeStatus buildPartial() { - io.kubernetes.client.proto.V1.VolumeStatus result = new io.kubernetes.client.proto.V1.VolumeStatus(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - if (imageBuilder_ == null) { - result.image_ = image_; - } else { - result.image_ = imageBuilder_.build(); - } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.kubernetes.client.proto.V1.VolumeStatus) { - return mergeFrom((io.kubernetes.client.proto.V1.VolumeStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.kubernetes.client.proto.V1.VolumeStatus other) { - if (other == io.kubernetes.client.proto.V1.VolumeStatus.getDefaultInstance()) return this; - if (other.hasImage()) { - mergeImage(other.getImage()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.kubernetes.client.proto.V1.VolumeStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.kubernetes.client.proto.V1.VolumeStatus) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private io.kubernetes.client.proto.V1.ImageVolumeStatus image_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.ImageVolumeStatus, io.kubernetes.client.proto.V1.ImageVolumeStatus.Builder, io.kubernetes.client.proto.V1.ImageVolumeStatusOrBuilder> imageBuilder_; - /** - *
-       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
-       * +featureGate=ImageVolumeWithDigest
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; - */ - public boolean hasImage() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - *
-       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
-       * +featureGate=ImageVolumeWithDigest
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; - */ - public io.kubernetes.client.proto.V1.ImageVolumeStatus getImage() { - if (imageBuilder_ == null) { - return image_ == null ? io.kubernetes.client.proto.V1.ImageVolumeStatus.getDefaultInstance() : image_; - } else { - return imageBuilder_.getMessage(); - } - } - /** - *
-       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
-       * +featureGate=ImageVolumeWithDigest
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; - */ - public Builder setImage(io.kubernetes.client.proto.V1.ImageVolumeStatus value) { - if (imageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - image_ = value; - onChanged(); - } else { - imageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - *
-       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
-       * +featureGate=ImageVolumeWithDigest
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; - */ - public Builder setImage( - io.kubernetes.client.proto.V1.ImageVolumeStatus.Builder builderForValue) { - if (imageBuilder_ == null) { - image_ = builderForValue.build(); - onChanged(); - } else { - imageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - *
-       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
-       * +featureGate=ImageVolumeWithDigest
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; - */ - public Builder mergeImage(io.kubernetes.client.proto.V1.ImageVolumeStatus value) { - if (imageBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - image_ != null && - image_ != io.kubernetes.client.proto.V1.ImageVolumeStatus.getDefaultInstance()) { - image_ = - io.kubernetes.client.proto.V1.ImageVolumeStatus.newBuilder(image_).mergeFrom(value).buildPartial(); - } else { - image_ = value; - } - onChanged(); - } else { - imageBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - *
-       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
-       * +featureGate=ImageVolumeWithDigest
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; - */ - public Builder clearImage() { - if (imageBuilder_ == null) { - image_ = null; - onChanged(); - } else { - imageBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - *
-       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
-       * +featureGate=ImageVolumeWithDigest
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; - */ - public io.kubernetes.client.proto.V1.ImageVolumeStatus.Builder getImageBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getImageFieldBuilder().getBuilder(); - } - /** - *
-       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
-       * +featureGate=ImageVolumeWithDigest
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; - */ - public io.kubernetes.client.proto.V1.ImageVolumeStatusOrBuilder getImageOrBuilder() { - if (imageBuilder_ != null) { - return imageBuilder_.getMessageOrBuilder(); - } else { - return image_ == null ? - io.kubernetes.client.proto.V1.ImageVolumeStatus.getDefaultInstance() : image_; - } - } - /** - *
-       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
-       * +featureGate=ImageVolumeWithDigest
-       * +optional
-       * 
- * - * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.ImageVolumeStatus, io.kubernetes.client.proto.V1.ImageVolumeStatus.Builder, io.kubernetes.client.proto.V1.ImageVolumeStatusOrBuilder> - getImageFieldBuilder() { - if (imageBuilder_ == null) { - imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.ImageVolumeStatus, io.kubernetes.client.proto.V1.ImageVolumeStatus.Builder, io.kubernetes.client.proto.V1.ImageVolumeStatusOrBuilder>( - getImage(), - getParentForChildren(), - isClean()); - image_ = null; - } - return imageBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.VolumeStatus) - } - - // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.VolumeStatus) - private static final io.kubernetes.client.proto.V1.VolumeStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.VolumeStatus(); - } - - public static io.kubernetes.client.proto.V1.VolumeStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VolumeStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new VolumeStatus(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.kubernetes.client.proto.V1.VolumeStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface VsphereVirtualDiskVolumeSourceOrBuilder extends - // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * volumePath is the path that identifies vSphere volume vmdk
-     * 
- * - * optional string volumePath = 1; - */ - boolean hasVolumePath(); - /** - *
-     * volumePath is the path that identifies vSphere volume vmdk
-     * 
- * - * optional string volumePath = 1; - */ - java.lang.String getVolumePath(); - /** - *
-     * volumePath is the path that identifies vSphere volume vmdk
-     * 
- * - * optional string volumePath = 1; - */ - com.google.protobuf.ByteString - getVolumePathBytes(); - - /** - *
-     * fsType is filesystem type to mount.
-     * Must be a filesystem type supported by the host operating system.
-     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
-     * +optional
-     * 
- * - * optional string fsType = 2; - */ - boolean hasFsType(); - /** - *
-     * fsType is filesystem type to mount.
-     * Must be a filesystem type supported by the host operating system.
-     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
-     * +optional
-     * 
- * - * optional string fsType = 2; - */ - java.lang.String getFsType(); - /** - *
-     * fsType is filesystem type to mount.
-     * Must be a filesystem type supported by the host operating system.
-     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
-     * +optional
-     * 
- * - * optional string fsType = 2; - */ - com.google.protobuf.ByteString - getFsTypeBytes(); - - /** - *
-     * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
-     * +optional
-     * 
- * - * optional string storagePolicyName = 3; - */ - boolean hasStoragePolicyName(); - /** - *
-     * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
-     * +optional
-     * 
- * - * optional string storagePolicyName = 3; - */ - java.lang.String getStoragePolicyName(); - /** - *
-     * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
-     * +optional
-     * 
- * - * optional string storagePolicyName = 3; - */ - com.google.protobuf.ByteString - getStoragePolicyNameBytes(); - - /** - *
-     * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
-     * +optional
-     * 
- * - * optional string storagePolicyID = 4; - */ - boolean hasStoragePolicyID(); - /** - *
-     * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
-     * +optional
-     * 
- * - * optional string storagePolicyID = 4; - */ - java.lang.String getStoragePolicyID(); - /** - *
-     * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
-     * +optional
-     * 
- * - * optional string storagePolicyID = 4; - */ - com.google.protobuf.ByteString - getStoragePolicyIDBytes(); - } - /** - *
-   * Represents a vSphere volume resource.
-   * 
- * - * Protobuf type {@code k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource} - */ - public static final class VsphereVirtualDiskVolumeSource extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource) - VsphereVirtualDiskVolumeSourceOrBuilder { - private static final long serialVersionUID = 0L; - // Use VsphereVirtualDiskVolumeSource.newBuilder() to construct. - private VsphereVirtualDiskVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private VsphereVirtualDiskVolumeSource() { - volumePath_ = ""; - fsType_ = ""; - storagePolicyName_ = ""; - storagePolicyID_ = ""; - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private VsphereVirtualDiskVolumeSource( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000001; - volumePath_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - fsType_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - storagePolicyName_ = bs; - break; - } - case 34: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000008; - storagePolicyID_ = bs; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.class, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder.class); - } - - private int bitField0_; - public static final int VOLUMEPATH_FIELD_NUMBER = 1; - private volatile java.lang.Object volumePath_; - /** - *
-     * volumePath is the path that identifies vSphere volume vmdk
-     * 
- * - * optional string volumePath = 1; - */ - public boolean hasVolumePath() { - return ((bitField0_ & 0x00000001) == 0x00000001); - } - /** - *
-     * volumePath is the path that identifies vSphere volume vmdk
-     * 
- * - * optional string volumePath = 1; - */ - public java.lang.String getVolumePath() { - java.lang.Object ref = volumePath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - volumePath_ = s; - } - return s; - } - } - /** - *
-     * volumePath is the path that identifies vSphere volume vmdk
-     * 
- * - * optional string volumePath = 1; - */ - public com.google.protobuf.ByteString - getVolumePathBytes() { - java.lang.Object ref = volumePath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - volumePath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FSTYPE_FIELD_NUMBER = 2; - private volatile java.lang.Object fsType_; - /** - *
-     * fsType is filesystem type to mount.
-     * Must be a filesystem type supported by the host operating system.
-     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
-     * +optional
-     * 
- * - * optional string fsType = 2; - */ - public boolean hasFsType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - *
-     * fsType is filesystem type to mount.
-     * Must be a filesystem type supported by the host operating system.
-     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
-     * +optional
-     * 
- * - * optional string fsType = 2; - */ - public java.lang.String getFsType() { - java.lang.Object ref = fsType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - fsType_ = s; - } - return s; - } - } - /** - *
-     * fsType is filesystem type to mount.
-     * Must be a filesystem type supported by the host operating system.
-     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
-     * +optional
-     * 
- * - * optional string fsType = 2; - */ - public com.google.protobuf.ByteString - getFsTypeBytes() { - java.lang.Object ref = fsType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fsType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STORAGEPOLICYNAME_FIELD_NUMBER = 3; - private volatile java.lang.Object storagePolicyName_; - /** - *
-     * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
-     * +optional
-     * 
- * - * optional string storagePolicyName = 3; - */ - public boolean hasStoragePolicyName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - *
-     * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
-     * +optional
-     * 
- * - * optional string storagePolicyName = 3; - */ - public java.lang.String getStoragePolicyName() { - java.lang.Object ref = storagePolicyName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - storagePolicyName_ = s; - } - return s; - } - } - /** - *
-     * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
-     * +optional
-     * 
- * - * optional string storagePolicyName = 3; - */ - public com.google.protobuf.ByteString - getStoragePolicyNameBytes() { - java.lang.Object ref = storagePolicyName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storagePolicyName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STORAGEPOLICYID_FIELD_NUMBER = 4; - private volatile java.lang.Object storagePolicyID_; - /** - *
-     * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
-     * +optional
-     * 
- * - * optional string storagePolicyID = 4; - */ - public boolean hasStoragePolicyID() { - return ((bitField0_ & 0x00000008) == 0x00000008); + public boolean hasImage() { + return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-     * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+     * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
+     * +featureGate=ImageVolumeWithDigest
      * +optional
      * 
* - * optional string storagePolicyID = 4; + * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; */ - public java.lang.String getStoragePolicyID() { - java.lang.Object ref = storagePolicyID_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - storagePolicyID_ = s; - } - return s; - } + public io.kubernetes.client.proto.V1.ImageVolumeStatus getImage() { + return image_ == null ? io.kubernetes.client.proto.V1.ImageVolumeStatus.getDefaultInstance() : image_; } /** *
-     * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+     * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
+     * +featureGate=ImageVolumeWithDigest
      * +optional
      * 
* - * optional string storagePolicyID = 4; + * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; */ - public com.google.protobuf.ByteString - getStoragePolicyIDBytes() { - java.lang.Object ref = storagePolicyID_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storagePolicyID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public io.kubernetes.client.proto.V1.ImageVolumeStatusOrBuilder getImageOrBuilder() { + return image_ == null ? io.kubernetes.client.proto.V1.ImageVolumeStatus.getDefaultInstance() : image_; } private byte memoizedIsInitialized = -1; @@ -388870,16 +389999,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, volumePath_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fsType_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, storagePolicyName_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storagePolicyID_); + output.writeMessage(1, getImage()); } unknownFields.writeTo(output); } @@ -388891,16 +390011,8 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, volumePath_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, storagePolicyName_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storagePolicyID_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getImage()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -388912,31 +390024,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource)) { + if (!(obj instanceof io.kubernetes.client.proto.V1.VolumeStatus)) { return super.equals(obj); } - io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource other = (io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource) obj; + io.kubernetes.client.proto.V1.VolumeStatus other = (io.kubernetes.client.proto.V1.VolumeStatus) obj; boolean result = true; - result = result && (hasVolumePath() == other.hasVolumePath()); - if (hasVolumePath()) { - result = result && getVolumePath() - .equals(other.getVolumePath()); - } - result = result && (hasFsType() == other.hasFsType()); - if (hasFsType()) { - result = result && getFsType() - .equals(other.getFsType()); - } - result = result && (hasStoragePolicyName() == other.hasStoragePolicyName()); - if (hasStoragePolicyName()) { - result = result && getStoragePolicyName() - .equals(other.getStoragePolicyName()); - } - result = result && (hasStoragePolicyID() == other.hasStoragePolicyID()); - if (hasStoragePolicyID()) { - result = result && getStoragePolicyID() - .equals(other.getStoragePolicyID()); + result = result && (hasImage() == other.hasImage()); + if (hasImage()) { + result = result && getImage() + .equals(other.getImage()); } result = result && unknownFields.equals(other.unknownFields); return result; @@ -388949,90 +390046,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasVolumePath()) { - hash = (37 * hash) + VOLUMEPATH_FIELD_NUMBER; - hash = (53 * hash) + getVolumePath().hashCode(); - } - if (hasFsType()) { - hash = (37 * hash) + FSTYPE_FIELD_NUMBER; - hash = (53 * hash) + getFsType().hashCode(); - } - if (hasStoragePolicyName()) { - hash = (37 * hash) + STORAGEPOLICYNAME_FIELD_NUMBER; - hash = (53 * hash) + getStoragePolicyName().hashCode(); - } - if (hasStoragePolicyID()) { - hash = (37 * hash) + STORAGEPOLICYID_FIELD_NUMBER; - hash = (53 * hash) + getStoragePolicyID().hashCode(); + if (hasImage()) { + hash = (37 * hash) + IMAGE_FIELD_NUMBER; + hash = (53 * hash) + getImage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( + public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( + public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( + public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( + public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom(byte[] data) + public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( + public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( + public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseDelimitedFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1.VolumeStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseDelimitedFrom( + public static io.kubernetes.client.proto.V1.VolumeStatus parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( + public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( + public static io.kubernetes.client.proto.V1.VolumeStatus parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -389045,7 +390130,7 @@ public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parse public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource prototype) { + public static Builder newBuilder(io.kubernetes.client.proto.V1.VolumeStatus prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -389062,29 +390147,30 @@ protected Builder newBuilderForType( } /** *
-     * Represents a vSphere volume resource.
+     * VolumeStatus represents the status of a mounted volume.
+     * At most one of its members must be specified.
      * 
* - * Protobuf type {@code k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource} + * Protobuf type {@code k8s.io.api.core.v1.VolumeStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource) - io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSourceOrBuilder { + // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.VolumeStatus) + io.kubernetes.client.proto.V1.VolumeStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VolumeStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_fieldAccessorTable + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VolumeStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.class, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder.class); + io.kubernetes.client.proto.V1.VolumeStatus.class, io.kubernetes.client.proto.V1.VolumeStatus.Builder.class); } - // Construct using io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.newBuilder() + // Construct using io.kubernetes.client.proto.V1.VolumeStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -389097,36 +390183,35 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getImageFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - volumePath_ = ""; + if (imageBuilder_ == null) { + image_ = null; + } else { + imageBuilder_.clear(); + } bitField0_ = (bitField0_ & ~0x00000001); - fsType_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); - storagePolicyName_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - storagePolicyID_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VolumeStatus_descriptor; } @java.lang.Override - public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource getDefaultInstanceForType() { - return io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.getDefaultInstance(); + public io.kubernetes.client.proto.V1.VolumeStatus getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1.VolumeStatus.getDefaultInstance(); } @java.lang.Override - public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource build() { - io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource result = buildPartial(); + public io.kubernetes.client.proto.V1.VolumeStatus build() { + io.kubernetes.client.proto.V1.VolumeStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -389134,26 +390219,18 @@ public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource build() { } @java.lang.Override - public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource buildPartial() { - io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource result = new io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource(this); + public io.kubernetes.client.proto.V1.VolumeStatus buildPartial() { + io.kubernetes.client.proto.V1.VolumeStatus result = new io.kubernetes.client.proto.V1.VolumeStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } - result.volumePath_ = volumePath_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.fsType_ = fsType_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.storagePolicyName_ = storagePolicyName_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; + if (imageBuilder_ == null) { + result.image_ = image_; + } else { + result.image_ = imageBuilder_.build(); } - result.storagePolicyID_ = storagePolicyID_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -389193,35 +390270,18 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource) { - return mergeFrom((io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource)other); + if (other instanceof io.kubernetes.client.proto.V1.VolumeStatus) { + return mergeFrom((io.kubernetes.client.proto.V1.VolumeStatus)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource other) { - if (other == io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.getDefaultInstance()) return this; - if (other.hasVolumePath()) { - bitField0_ |= 0x00000001; - volumePath_ = other.volumePath_; - onChanged(); - } - if (other.hasFsType()) { - bitField0_ |= 0x00000002; - fsType_ = other.fsType_; - onChanged(); - } - if (other.hasStoragePolicyName()) { - bitField0_ |= 0x00000004; - storagePolicyName_ = other.storagePolicyName_; - onChanged(); - } - if (other.hasStoragePolicyID()) { - bitField0_ |= 0x00000008; - storagePolicyID_ = other.storagePolicyID_; - onChanged(); + public Builder mergeFrom(io.kubernetes.client.proto.V1.VolumeStatus other) { + if (other == io.kubernetes.client.proto.V1.VolumeStatus.getDefaultInstance()) return this; + if (other.hasImage()) { + mergeImage(other.getImage()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -389238,11 +390298,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parsedMessage = null; + io.kubernetes.client.proto.V1.VolumeStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource) e.getUnfinishedMessage(); + parsedMessage = (io.kubernetes.client.proto.V1.VolumeStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -389253,434 +390313,176 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object volumePath_ = ""; + private io.kubernetes.client.proto.V1.ImageVolumeStatus image_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ImageVolumeStatus, io.kubernetes.client.proto.V1.ImageVolumeStatus.Builder, io.kubernetes.client.proto.V1.ImageVolumeStatusOrBuilder> imageBuilder_; /** *
-       * volumePath is the path that identifies vSphere volume vmdk
+       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
+       * +featureGate=ImageVolumeWithDigest
+       * +optional
        * 
* - * optional string volumePath = 1; + * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; */ - public boolean hasVolumePath() { + public boolean hasImage() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-       * volumePath is the path that identifies vSphere volume vmdk
-       * 
- * - * optional string volumePath = 1; - */ - public java.lang.String getVolumePath() { - java.lang.Object ref = volumePath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - volumePath_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * volumePath is the path that identifies vSphere volume vmdk
+       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
+       * +featureGate=ImageVolumeWithDigest
+       * +optional
        * 
* - * optional string volumePath = 1; + * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; */ - public com.google.protobuf.ByteString - getVolumePathBytes() { - java.lang.Object ref = volumePath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - volumePath_ = b; - return b; + public io.kubernetes.client.proto.V1.ImageVolumeStatus getImage() { + if (imageBuilder_ == null) { + return image_ == null ? io.kubernetes.client.proto.V1.ImageVolumeStatus.getDefaultInstance() : image_; } else { - return (com.google.protobuf.ByteString) ref; + return imageBuilder_.getMessage(); } } /** *
-       * volumePath is the path that identifies vSphere volume vmdk
-       * 
- * - * optional string volumePath = 1; - */ - public Builder setVolumePath( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - volumePath_ = value; - onChanged(); - return this; - } - /** - *
-       * volumePath is the path that identifies vSphere volume vmdk
-       * 
- * - * optional string volumePath = 1; - */ - public Builder clearVolumePath() { - bitField0_ = (bitField0_ & ~0x00000001); - volumePath_ = getDefaultInstance().getVolumePath(); - onChanged(); - return this; - } - /** - *
-       * volumePath is the path that identifies vSphere volume vmdk
-       * 
- * - * optional string volumePath = 1; - */ - public Builder setVolumePathBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - volumePath_ = value; - onChanged(); - return this; - } - - private java.lang.Object fsType_ = ""; - /** - *
-       * fsType is filesystem type to mount.
-       * Must be a filesystem type supported by the host operating system.
-       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
-       * +optional
-       * 
- * - * optional string fsType = 2; - */ - public boolean hasFsType() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - *
-       * fsType is filesystem type to mount.
-       * Must be a filesystem type supported by the host operating system.
-       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
+       * +featureGate=ImageVolumeWithDigest
        * +optional
        * 
* - * optional string fsType = 2; + * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; */ - public java.lang.String getFsType() { - java.lang.Object ref = fsType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - fsType_ = s; + public Builder setImage(io.kubernetes.client.proto.V1.ImageVolumeStatus value) { + if (imageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - return s; + image_ = value; + onChanged(); } else { - return (java.lang.String) ref; + imageBuilder_.setMessage(value); } + bitField0_ |= 0x00000001; + return this; } /** *
-       * fsType is filesystem type to mount.
-       * Must be a filesystem type supported by the host operating system.
-       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
+       * +featureGate=ImageVolumeWithDigest
        * +optional
        * 
* - * optional string fsType = 2; + * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; */ - public com.google.protobuf.ByteString - getFsTypeBytes() { - java.lang.Object ref = fsType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fsType_ = b; - return b; + public Builder setImage( + io.kubernetes.client.proto.V1.ImageVolumeStatus.Builder builderForValue) { + if (imageBuilder_ == null) { + image_ = builderForValue.build(); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + imageBuilder_.setMessage(builderForValue.build()); } - } - /** - *
-       * fsType is filesystem type to mount.
-       * Must be a filesystem type supported by the host operating system.
-       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
-       * +optional
-       * 
- * - * optional string fsType = 2; - */ - public Builder setFsType( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - fsType_ = value; - onChanged(); - return this; - } - /** - *
-       * fsType is filesystem type to mount.
-       * Must be a filesystem type supported by the host operating system.
-       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
-       * +optional
-       * 
- * - * optional string fsType = 2; - */ - public Builder clearFsType() { - bitField0_ = (bitField0_ & ~0x00000002); - fsType_ = getDefaultInstance().getFsType(); - onChanged(); - return this; - } - /** - *
-       * fsType is filesystem type to mount.
-       * Must be a filesystem type supported by the host operating system.
-       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
-       * +optional
-       * 
- * - * optional string fsType = 2; - */ - public Builder setFsTypeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - fsType_ = value; - onChanged(); + bitField0_ |= 0x00000001; return this; } - - private java.lang.Object storagePolicyName_ = ""; - /** - *
-       * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
-       * +optional
-       * 
- * - * optional string storagePolicyName = 3; - */ - public boolean hasStoragePolicyName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } /** *
-       * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
+       * +featureGate=ImageVolumeWithDigest
        * +optional
        * 
* - * optional string storagePolicyName = 3; + * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; */ - public java.lang.String getStoragePolicyName() { - java.lang.Object ref = storagePolicyName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - storagePolicyName_ = s; + public Builder mergeImage(io.kubernetes.client.proto.V1.ImageVolumeStatus value) { + if (imageBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + image_ != null && + image_ != io.kubernetes.client.proto.V1.ImageVolumeStatus.getDefaultInstance()) { + image_ = + io.kubernetes.client.proto.V1.ImageVolumeStatus.newBuilder(image_).mergeFrom(value).buildPartial(); + } else { + image_ = value; } - return s; + onChanged(); } else { - return (java.lang.String) ref; + imageBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000001; + return this; } /** *
-       * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
+       * +featureGate=ImageVolumeWithDigest
        * +optional
        * 
* - * optional string storagePolicyName = 3; + * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; */ - public com.google.protobuf.ByteString - getStoragePolicyNameBytes() { - java.lang.Object ref = storagePolicyName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storagePolicyName_ = b; - return b; + public Builder clearImage() { + if (imageBuilder_ == null) { + image_ = null; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + imageBuilder_.clear(); } - } - /** - *
-       * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
-       * +optional
-       * 
- * - * optional string storagePolicyName = 3; - */ - public Builder setStoragePolicyName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - storagePolicyName_ = value; - onChanged(); - return this; - } - /** - *
-       * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
-       * +optional
-       * 
- * - * optional string storagePolicyName = 3; - */ - public Builder clearStoragePolicyName() { - bitField0_ = (bitField0_ & ~0x00000004); - storagePolicyName_ = getDefaultInstance().getStoragePolicyName(); - onChanged(); + bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
-       * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
+       * +featureGate=ImageVolumeWithDigest
        * +optional
        * 
* - * optional string storagePolicyName = 3; + * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; */ - public Builder setStoragePolicyNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - storagePolicyName_ = value; + public io.kubernetes.client.proto.V1.ImageVolumeStatus.Builder getImageBuilder() { + bitField0_ |= 0x00000001; onChanged(); - return this; - } - - private java.lang.Object storagePolicyID_ = ""; - /** - *
-       * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
-       * +optional
-       * 
- * - * optional string storagePolicyID = 4; - */ - public boolean hasStoragePolicyID() { - return ((bitField0_ & 0x00000008) == 0x00000008); + return getImageFieldBuilder().getBuilder(); } /** *
-       * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
+       * +featureGate=ImageVolumeWithDigest
        * +optional
        * 
* - * optional string storagePolicyID = 4; + * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; */ - public java.lang.String getStoragePolicyID() { - java.lang.Object ref = storagePolicyID_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - storagePolicyID_ = s; - } - return s; + public io.kubernetes.client.proto.V1.ImageVolumeStatusOrBuilder getImageOrBuilder() { + if (imageBuilder_ != null) { + return imageBuilder_.getMessageOrBuilder(); } else { - return (java.lang.String) ref; + return image_ == null ? + io.kubernetes.client.proto.V1.ImageVolumeStatus.getDefaultInstance() : image_; } } /** *
-       * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+       * image represents an OCI object (a container image or artifact) pulled and mounted on the kubelet's host machine.
+       * +featureGate=ImageVolumeWithDigest
        * +optional
        * 
* - * optional string storagePolicyID = 4; + * optional .k8s.io.api.core.v1.ImageVolumeStatus image = 1; */ - public com.google.protobuf.ByteString - getStoragePolicyIDBytes() { - java.lang.Object ref = storagePolicyID_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - storagePolicyID_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ImageVolumeStatus, io.kubernetes.client.proto.V1.ImageVolumeStatus.Builder, io.kubernetes.client.proto.V1.ImageVolumeStatusOrBuilder> + getImageFieldBuilder() { + if (imageBuilder_ == null) { + imageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ImageVolumeStatus, io.kubernetes.client.proto.V1.ImageVolumeStatus.Builder, io.kubernetes.client.proto.V1.ImageVolumeStatusOrBuilder>( + getImage(), + getParentForChildren(), + isClean()); + image_ = null; } - } - /** - *
-       * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
-       * +optional
-       * 
- * - * optional string storagePolicyID = 4; - */ - public Builder setStoragePolicyID( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - storagePolicyID_ = value; - onChanged(); - return this; - } - /** - *
-       * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
-       * +optional
-       * 
- * - * optional string storagePolicyID = 4; - */ - public Builder clearStoragePolicyID() { - bitField0_ = (bitField0_ & ~0x00000008); - storagePolicyID_ = getDefaultInstance().getStoragePolicyID(); - onChanged(); - return this; - } - /** - *
-       * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
-       * +optional
-       * 
- * - * optional string storagePolicyID = 4; - */ - public Builder setStoragePolicyIDBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - storagePolicyID_ = value; - onChanged(); - return this; + return imageBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -389695,112 +390497,190 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource) + // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.VolumeStatus) } - // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource) - private static final io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.VolumeStatus) + private static final io.kubernetes.client.proto.V1.VolumeStatus DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource(); + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.VolumeStatus(); } - public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource getDefaultInstance() { + public static io.kubernetes.client.proto.V1.VolumeStatus getDefaultInstance() { return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public VsphereVirtualDiskVolumeSource parsePartialFrom( + public VolumeStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new VsphereVirtualDiskVolumeSource(input, extensionRegistry); + return new VolumeStatus(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource getDefaultInstanceForType() { + public io.kubernetes.client.proto.V1.VolumeStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface WeightedPodAffinityTermOrBuilder extends - // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.WeightedPodAffinityTerm) + public interface VsphereVirtualDiskVolumeSourceOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource) com.google.protobuf.MessageOrBuilder { /** *
-     * weight associated with matching the corresponding podAffinityTerm,
-     * in the range 1-100.
+     * volumePath is the path that identifies vSphere volume vmdk
      * 
* - * optional int32 weight = 1; + * optional string volumePath = 1; */ - boolean hasWeight(); + boolean hasVolumePath(); /** *
-     * weight associated with matching the corresponding podAffinityTerm,
-     * in the range 1-100.
+     * volumePath is the path that identifies vSphere volume vmdk
      * 
* - * optional int32 weight = 1; + * optional string volumePath = 1; */ - int getWeight(); + java.lang.String getVolumePath(); + /** + *
+     * volumePath is the path that identifies vSphere volume vmdk
+     * 
+ * + * optional string volumePath = 1; + */ + com.google.protobuf.ByteString + getVolumePathBytes(); /** *
-     * Required. A pod affinity term, associated with the corresponding weight.
+     * fsType is filesystem type to mount.
+     * Must be a filesystem type supported by the host operating system.
+     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+     * +optional
      * 
* - * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; + * optional string fsType = 2; */ - boolean hasPodAffinityTerm(); + boolean hasFsType(); /** *
-     * Required. A pod affinity term, associated with the corresponding weight.
+     * fsType is filesystem type to mount.
+     * Must be a filesystem type supported by the host operating system.
+     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+     * +optional
      * 
* - * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; + * optional string fsType = 2; */ - io.kubernetes.client.proto.V1.PodAffinityTerm getPodAffinityTerm(); + java.lang.String getFsType(); /** *
-     * Required. A pod affinity term, associated with the corresponding weight.
+     * fsType is filesystem type to mount.
+     * Must be a filesystem type supported by the host operating system.
+     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+     * +optional
      * 
* - * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; + * optional string fsType = 2; */ - io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder getPodAffinityTermOrBuilder(); + com.google.protobuf.ByteString + getFsTypeBytes(); + + /** + *
+     * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+     * +optional
+     * 
+ * + * optional string storagePolicyName = 3; + */ + boolean hasStoragePolicyName(); + /** + *
+     * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+     * +optional
+     * 
+ * + * optional string storagePolicyName = 3; + */ + java.lang.String getStoragePolicyName(); + /** + *
+     * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+     * +optional
+     * 
+ * + * optional string storagePolicyName = 3; + */ + com.google.protobuf.ByteString + getStoragePolicyNameBytes(); + + /** + *
+     * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+     * +optional
+     * 
+ * + * optional string storagePolicyID = 4; + */ + boolean hasStoragePolicyID(); + /** + *
+     * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+     * +optional
+     * 
+ * + * optional string storagePolicyID = 4; + */ + java.lang.String getStoragePolicyID(); + /** + *
+     * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+     * +optional
+     * 
+ * + * optional string storagePolicyID = 4; + */ + com.google.protobuf.ByteString + getStoragePolicyIDBytes(); } /** *
-   * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
+   * Represents a vSphere volume resource.
    * 
* - * Protobuf type {@code k8s.io.api.core.v1.WeightedPodAffinityTerm} + * Protobuf type {@code k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource} */ - public static final class WeightedPodAffinityTerm extends + public static final class VsphereVirtualDiskVolumeSource extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.WeightedPodAffinityTerm) - WeightedPodAffinityTermOrBuilder { + // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource) + VsphereVirtualDiskVolumeSourceOrBuilder { private static final long serialVersionUID = 0L; - // Use WeightedPodAffinityTerm.newBuilder() to construct. - private WeightedPodAffinityTerm(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use VsphereVirtualDiskVolumeSource.newBuilder() to construct. + private VsphereVirtualDiskVolumeSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WeightedPodAffinityTerm() { - weight_ = 0; + private VsphereVirtualDiskVolumeSource() { + volumePath_ = ""; + fsType_ = ""; + storagePolicyName_ = ""; + storagePolicyID_ = ""; } @java.lang.Override @@ -389808,7 +390688,7 @@ private WeightedPodAffinityTerm() { getUnknownFields() { return this.unknownFields; } - private WeightedPodAffinityTerm( + private VsphereVirtualDiskVolumeSource( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -389827,22 +390707,28 @@ private WeightedPodAffinityTerm( case 0: done = true; break; - case 8: { + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - weight_ = input.readInt32(); + volumePath_ = bs; break; } case 18: { - io.kubernetes.client.proto.V1.PodAffinityTerm.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = podAffinityTerm_.toBuilder(); - } - podAffinityTerm_ = input.readMessage(io.kubernetes.client.proto.V1.PodAffinityTerm.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(podAffinityTerm_); - podAffinityTerm_ = subBuilder.buildPartial(); - } + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; + fsType_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + storagePolicyName_ = bs; + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + storagePolicyID_ = bs; break; } default: { @@ -389866,74 +390752,247 @@ private WeightedPodAffinityTerm( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_fieldAccessorTable + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.class, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder.class); + io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.class, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder.class); } private int bitField0_; - public static final int WEIGHT_FIELD_NUMBER = 1; - private int weight_; + public static final int VOLUMEPATH_FIELD_NUMBER = 1; + private volatile java.lang.Object volumePath_; /** *
-     * weight associated with matching the corresponding podAffinityTerm,
-     * in the range 1-100.
+     * volumePath is the path that identifies vSphere volume vmdk
      * 
* - * optional int32 weight = 1; + * optional string volumePath = 1; */ - public boolean hasWeight() { + public boolean hasVolumePath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-     * weight associated with matching the corresponding podAffinityTerm,
-     * in the range 1-100.
+     * volumePath is the path that identifies vSphere volume vmdk
      * 
* - * optional int32 weight = 1; + * optional string volumePath = 1; */ - public int getWeight() { - return weight_; + public java.lang.String getVolumePath() { + java.lang.Object ref = volumePath_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + volumePath_ = s; + } + return s; + } + } + /** + *
+     * volumePath is the path that identifies vSphere volume vmdk
+     * 
+ * + * optional string volumePath = 1; + */ + public com.google.protobuf.ByteString + getVolumePathBytes() { + java.lang.Object ref = volumePath_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + volumePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FSTYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object fsType_; + /** + *
+     * fsType is filesystem type to mount.
+     * Must be a filesystem type supported by the host operating system.
+     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+     * +optional
+     * 
+ * + * optional string fsType = 2; + */ + public boolean hasFsType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * fsType is filesystem type to mount.
+     * Must be a filesystem type supported by the host operating system.
+     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+     * +optional
+     * 
+ * + * optional string fsType = 2; + */ + public java.lang.String getFsType() { + java.lang.Object ref = fsType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + fsType_ = s; + } + return s; + } + } + /** + *
+     * fsType is filesystem type to mount.
+     * Must be a filesystem type supported by the host operating system.
+     * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+     * +optional
+     * 
+ * + * optional string fsType = 2; + */ + public com.google.protobuf.ByteString + getFsTypeBytes() { + java.lang.Object ref = fsType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fsType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STORAGEPOLICYNAME_FIELD_NUMBER = 3; + private volatile java.lang.Object storagePolicyName_; + /** + *
+     * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+     * +optional
+     * 
+ * + * optional string storagePolicyName = 3; + */ + public boolean hasStoragePolicyName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+     * +optional
+     * 
+ * + * optional string storagePolicyName = 3; + */ + public java.lang.String getStoragePolicyName() { + java.lang.Object ref = storagePolicyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + storagePolicyName_ = s; + } + return s; + } + } + /** + *
+     * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+     * +optional
+     * 
+ * + * optional string storagePolicyName = 3; + */ + public com.google.protobuf.ByteString + getStoragePolicyNameBytes() { + java.lang.Object ref = storagePolicyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + storagePolicyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int PODAFFINITYTERM_FIELD_NUMBER = 2; - private io.kubernetes.client.proto.V1.PodAffinityTerm podAffinityTerm_; + public static final int STORAGEPOLICYID_FIELD_NUMBER = 4; + private volatile java.lang.Object storagePolicyID_; /** *
-     * Required. A pod affinity term, associated with the corresponding weight.
+     * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+     * +optional
      * 
* - * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; + * optional string storagePolicyID = 4; */ - public boolean hasPodAffinityTerm() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public boolean hasStoragePolicyID() { + return ((bitField0_ & 0x00000008) == 0x00000008); } /** *
-     * Required. A pod affinity term, associated with the corresponding weight.
+     * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+     * +optional
      * 
* - * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; + * optional string storagePolicyID = 4; */ - public io.kubernetes.client.proto.V1.PodAffinityTerm getPodAffinityTerm() { - return podAffinityTerm_ == null ? io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance() : podAffinityTerm_; + public java.lang.String getStoragePolicyID() { + java.lang.Object ref = storagePolicyID_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + storagePolicyID_ = s; + } + return s; + } } /** *
-     * Required. A pod affinity term, associated with the corresponding weight.
+     * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+     * +optional
      * 
* - * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; + * optional string storagePolicyID = 4; */ - public io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder getPodAffinityTermOrBuilder() { - return podAffinityTerm_ == null ? io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance() : podAffinityTerm_; + public com.google.protobuf.ByteString + getStoragePolicyIDBytes() { + java.lang.Object ref = storagePolicyID_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + storagePolicyID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -389951,10 +391010,16 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeInt32(1, weight_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, volumePath_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, getPodAffinityTerm()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fsType_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, storagePolicyName_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, storagePolicyID_); } unknownFields.writeTo(output); } @@ -389966,12 +391031,16 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, weight_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, volumePath_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPodAffinityTerm()); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fsType_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, storagePolicyName_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, storagePolicyID_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -389983,21 +391052,31 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.kubernetes.client.proto.V1.WeightedPodAffinityTerm)) { + if (!(obj instanceof io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource)) { return super.equals(obj); } - io.kubernetes.client.proto.V1.WeightedPodAffinityTerm other = (io.kubernetes.client.proto.V1.WeightedPodAffinityTerm) obj; + io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource other = (io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource) obj; boolean result = true; - result = result && (hasWeight() == other.hasWeight()); - if (hasWeight()) { - result = result && (getWeight() - == other.getWeight()); + result = result && (hasVolumePath() == other.hasVolumePath()); + if (hasVolumePath()) { + result = result && getVolumePath() + .equals(other.getVolumePath()); } - result = result && (hasPodAffinityTerm() == other.hasPodAffinityTerm()); - if (hasPodAffinityTerm()) { - result = result && getPodAffinityTerm() - .equals(other.getPodAffinityTerm()); + result = result && (hasFsType() == other.hasFsType()); + if (hasFsType()) { + result = result && getFsType() + .equals(other.getFsType()); + } + result = result && (hasStoragePolicyName() == other.hasStoragePolicyName()); + if (hasStoragePolicyName()) { + result = result && getStoragePolicyName() + .equals(other.getStoragePolicyName()); + } + result = result && (hasStoragePolicyID() == other.hasStoragePolicyID()); + if (hasStoragePolicyID()) { + result = result && getStoragePolicyID() + .equals(other.getStoragePolicyID()); } result = result && unknownFields.equals(other.unknownFields); return result; @@ -390010,82 +391089,90 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasWeight()) { - hash = (37 * hash) + WEIGHT_FIELD_NUMBER; - hash = (53 * hash) + getWeight(); + if (hasVolumePath()) { + hash = (37 * hash) + VOLUMEPATH_FIELD_NUMBER; + hash = (53 * hash) + getVolumePath().hashCode(); } - if (hasPodAffinityTerm()) { - hash = (37 * hash) + PODAFFINITYTERM_FIELD_NUMBER; - hash = (53 * hash) + getPodAffinityTerm().hashCode(); + if (hasFsType()) { + hash = (37 * hash) + FSTYPE_FIELD_NUMBER; + hash = (53 * hash) + getFsType().hashCode(); + } + if (hasStoragePolicyName()) { + hash = (37 * hash) + STORAGEPOLICYNAME_FIELD_NUMBER; + hash = (53 * hash) + getStoragePolicyName().hashCode(); + } + if (hasStoragePolicyID()) { + hash = (37 * hash) + STORAGEPOLICYID_FIELD_NUMBER; + hash = (53 * hash) + getStoragePolicyID().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( + public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( + public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( + public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( + public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom(byte[] data) + public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( + public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( + public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseDelimitedFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseDelimitedFrom( + public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( + public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( + public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -390098,7 +391185,7 @@ public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.kubernetes.client.proto.V1.WeightedPodAffinityTerm prototype) { + public static Builder newBuilder(io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -390115,29 +391202,29 @@ protected Builder newBuilderForType( } /** *
-     * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
+     * Represents a vSphere volume resource.
      * 
* - * Protobuf type {@code k8s.io.api.core.v1.WeightedPodAffinityTerm} + * Protobuf type {@code k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.WeightedPodAffinityTerm) - io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder { + // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource) + io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_fieldAccessorTable + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.class, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder.class); + io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.class, io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.Builder.class); } - // Construct using io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.newBuilder() + // Construct using io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -390150,37 +391237,36 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getPodAffinityTermFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - weight_ = 0; + volumePath_ = ""; bitField0_ = (bitField0_ & ~0x00000001); - if (podAffinityTermBuilder_ == null) { - podAffinityTerm_ = null; - } else { - podAffinityTermBuilder_.clear(); - } + fsType_ = ""; bitField0_ = (bitField0_ & ~0x00000002); + storagePolicyName_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + storagePolicyID_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_descriptor; } @java.lang.Override - public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm getDefaultInstanceForType() { - return io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.getDefaultInstance(); + public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.getDefaultInstance(); } @java.lang.Override - public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm build() { - io.kubernetes.client.proto.V1.WeightedPodAffinityTerm result = buildPartial(); + public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource build() { + io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -390188,22 +391274,26 @@ public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm build() { } @java.lang.Override - public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm buildPartial() { - io.kubernetes.client.proto.V1.WeightedPodAffinityTerm result = new io.kubernetes.client.proto.V1.WeightedPodAffinityTerm(this); + public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource buildPartial() { + io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource result = new io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } - result.weight_ = weight_; + result.volumePath_ = volumePath_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } - if (podAffinityTermBuilder_ == null) { - result.podAffinityTerm_ = podAffinityTerm_; - } else { - result.podAffinityTerm_ = podAffinityTermBuilder_.build(); + result.fsType_ = fsType_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.storagePolicyName_ = storagePolicyName_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; } + result.storagePolicyID_ = storagePolicyID_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -390243,21 +391333,35 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.kubernetes.client.proto.V1.WeightedPodAffinityTerm) { - return mergeFrom((io.kubernetes.client.proto.V1.WeightedPodAffinityTerm)other); + if (other instanceof io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource) { + return mergeFrom((io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.kubernetes.client.proto.V1.WeightedPodAffinityTerm other) { - if (other == io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.getDefaultInstance()) return this; - if (other.hasWeight()) { - setWeight(other.getWeight()); + public Builder mergeFrom(io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource other) { + if (other == io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource.getDefaultInstance()) return this; + if (other.hasVolumePath()) { + bitField0_ |= 0x00000001; + volumePath_ = other.volumePath_; + onChanged(); } - if (other.hasPodAffinityTerm()) { - mergePodAffinityTerm(other.getPodAffinityTerm()); + if (other.hasFsType()) { + bitField0_ |= 0x00000002; + fsType_ = other.fsType_; + onChanged(); + } + if (other.hasStoragePolicyName()) { + bitField0_ |= 0x00000004; + storagePolicyName_ = other.storagePolicyName_; + onChanged(); + } + if (other.hasStoragePolicyID()) { + bitField0_ |= 0x00000008; + storagePolicyID_ = other.storagePolicyID_; + onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -390274,11 +391378,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parsedMessage = null; + io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.kubernetes.client.proto.V1.WeightedPodAffinityTerm) e.getUnfinishedMessage(); + parsedMessage = (io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -390289,210 +391393,434 @@ public Builder mergeFrom( } private int bitField0_; - private int weight_ ; + private java.lang.Object volumePath_ = ""; /** *
-       * weight associated with matching the corresponding podAffinityTerm,
-       * in the range 1-100.
+       * volumePath is the path that identifies vSphere volume vmdk
        * 
* - * optional int32 weight = 1; + * optional string volumePath = 1; */ - public boolean hasWeight() { + public boolean hasVolumePath() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-       * weight associated with matching the corresponding podAffinityTerm,
-       * in the range 1-100.
+       * volumePath is the path that identifies vSphere volume vmdk
        * 
* - * optional int32 weight = 1; + * optional string volumePath = 1; */ - public int getWeight() { - return weight_; + public java.lang.String getVolumePath() { + java.lang.Object ref = volumePath_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + volumePath_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } } /** *
-       * weight associated with matching the corresponding podAffinityTerm,
-       * in the range 1-100.
+       * volumePath is the path that identifies vSphere volume vmdk
        * 
* - * optional int32 weight = 1; + * optional string volumePath = 1; */ - public Builder setWeight(int value) { - bitField0_ |= 0x00000001; - weight_ = value; + public com.google.protobuf.ByteString + getVolumePathBytes() { + java.lang.Object ref = volumePath_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + volumePath_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * volumePath is the path that identifies vSphere volume vmdk
+       * 
+ * + * optional string volumePath = 1; + */ + public Builder setVolumePath( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + volumePath_ = value; onChanged(); return this; } /** *
-       * weight associated with matching the corresponding podAffinityTerm,
-       * in the range 1-100.
+       * volumePath is the path that identifies vSphere volume vmdk
        * 
* - * optional int32 weight = 1; + * optional string volumePath = 1; */ - public Builder clearWeight() { + public Builder clearVolumePath() { bitField0_ = (bitField0_ & ~0x00000001); - weight_ = 0; + volumePath_ = getDefaultInstance().getVolumePath(); + onChanged(); + return this; + } + /** + *
+       * volumePath is the path that identifies vSphere volume vmdk
+       * 
+ * + * optional string volumePath = 1; + */ + public Builder setVolumePathBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + volumePath_ = value; onChanged(); return this; } - private io.kubernetes.client.proto.V1.PodAffinityTerm podAffinityTerm_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.PodAffinityTerm, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder, io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder> podAffinityTermBuilder_; + private java.lang.Object fsType_ = ""; /** *
-       * Required. A pod affinity term, associated with the corresponding weight.
+       * fsType is filesystem type to mount.
+       * Must be a filesystem type supported by the host operating system.
+       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+       * +optional
        * 
* - * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; + * optional string fsType = 2; */ - public boolean hasPodAffinityTerm() { + public boolean hasFsType() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
-       * Required. A pod affinity term, associated with the corresponding weight.
+       * fsType is filesystem type to mount.
+       * Must be a filesystem type supported by the host operating system.
+       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+       * +optional
        * 
* - * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; + * optional string fsType = 2; */ - public io.kubernetes.client.proto.V1.PodAffinityTerm getPodAffinityTerm() { - if (podAffinityTermBuilder_ == null) { - return podAffinityTerm_ == null ? io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance() : podAffinityTerm_; + public java.lang.String getFsType() { + java.lang.Object ref = fsType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + fsType_ = s; + } + return s; } else { - return podAffinityTermBuilder_.getMessage(); + return (java.lang.String) ref; } } /** *
-       * Required. A pod affinity term, associated with the corresponding weight.
+       * fsType is filesystem type to mount.
+       * Must be a filesystem type supported by the host operating system.
+       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+       * +optional
        * 
* - * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; + * optional string fsType = 2; */ - public Builder setPodAffinityTerm(io.kubernetes.client.proto.V1.PodAffinityTerm value) { - if (podAffinityTermBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - podAffinityTerm_ = value; - onChanged(); + public com.google.protobuf.ByteString + getFsTypeBytes() { + java.lang.Object ref = fsType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fsType_ = b; + return b; } else { - podAffinityTermBuilder_.setMessage(value); + return (com.google.protobuf.ByteString) ref; } - bitField0_ |= 0x00000002; + } + /** + *
+       * fsType is filesystem type to mount.
+       * Must be a filesystem type supported by the host operating system.
+       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+       * +optional
+       * 
+ * + * optional string fsType = 2; + */ + public Builder setFsType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + fsType_ = value; + onChanged(); return this; } /** *
-       * Required. A pod affinity term, associated with the corresponding weight.
+       * fsType is filesystem type to mount.
+       * Must be a filesystem type supported by the host operating system.
+       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+       * +optional
        * 
* - * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; + * optional string fsType = 2; */ - public Builder setPodAffinityTerm( - io.kubernetes.client.proto.V1.PodAffinityTerm.Builder builderForValue) { - if (podAffinityTermBuilder_ == null) { - podAffinityTerm_ = builderForValue.build(); - onChanged(); - } else { - podAffinityTermBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; + public Builder clearFsType() { + bitField0_ = (bitField0_ & ~0x00000002); + fsType_ = getDefaultInstance().getFsType(); + onChanged(); return this; } /** *
-       * Required. A pod affinity term, associated with the corresponding weight.
+       * fsType is filesystem type to mount.
+       * Must be a filesystem type supported by the host operating system.
+       * Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.
+       * +optional
        * 
* - * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; + * optional string fsType = 2; */ - public Builder mergePodAffinityTerm(io.kubernetes.client.proto.V1.PodAffinityTerm value) { - if (podAffinityTermBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - podAffinityTerm_ != null && - podAffinityTerm_ != io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance()) { - podAffinityTerm_ = - io.kubernetes.client.proto.V1.PodAffinityTerm.newBuilder(podAffinityTerm_).mergeFrom(value).buildPartial(); - } else { - podAffinityTerm_ = value; + public Builder setFsTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + fsType_ = value; + onChanged(); + return this; + } + + private java.lang.Object storagePolicyName_ = ""; + /** + *
+       * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+       * +optional
+       * 
+ * + * optional string storagePolicyName = 3; + */ + public boolean hasStoragePolicyName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+       * +optional
+       * 
+ * + * optional string storagePolicyName = 3; + */ + public java.lang.String getStoragePolicyName() { + java.lang.Object ref = storagePolicyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + storagePolicyName_ = s; } - onChanged(); + return s; } else { - podAffinityTermBuilder_.mergeFrom(value); + return (java.lang.String) ref; } - bitField0_ |= 0x00000002; - return this; } /** *
-       * Required. A pod affinity term, associated with the corresponding weight.
+       * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+       * +optional
        * 
* - * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; + * optional string storagePolicyName = 3; */ - public Builder clearPodAffinityTerm() { - if (podAffinityTermBuilder_ == null) { - podAffinityTerm_ = null; - onChanged(); + public com.google.protobuf.ByteString + getStoragePolicyNameBytes() { + java.lang.Object ref = storagePolicyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + storagePolicyName_ = b; + return b; } else { - podAffinityTermBuilder_.clear(); + return (com.google.protobuf.ByteString) ref; } - bitField0_ = (bitField0_ & ~0x00000002); + } + /** + *
+       * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+       * +optional
+       * 
+ * + * optional string storagePolicyName = 3; + */ + public Builder setStoragePolicyName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + storagePolicyName_ = value; + onChanged(); return this; } /** *
-       * Required. A pod affinity term, associated with the corresponding weight.
+       * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+       * +optional
        * 
* - * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; + * optional string storagePolicyName = 3; */ - public io.kubernetes.client.proto.V1.PodAffinityTerm.Builder getPodAffinityTermBuilder() { - bitField0_ |= 0x00000002; + public Builder clearStoragePolicyName() { + bitField0_ = (bitField0_ & ~0x00000004); + storagePolicyName_ = getDefaultInstance().getStoragePolicyName(); onChanged(); - return getPodAffinityTermFieldBuilder().getBuilder(); + return this; } /** *
-       * Required. A pod affinity term, associated with the corresponding weight.
+       * storagePolicyName is the storage Policy Based Management (SPBM) profile name.
+       * +optional
        * 
* - * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; + * optional string storagePolicyName = 3; */ - public io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder getPodAffinityTermOrBuilder() { - if (podAffinityTermBuilder_ != null) { - return podAffinityTermBuilder_.getMessageOrBuilder(); + public Builder setStoragePolicyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + storagePolicyName_ = value; + onChanged(); + return this; + } + + private java.lang.Object storagePolicyID_ = ""; + /** + *
+       * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+       * +optional
+       * 
+ * + * optional string storagePolicyID = 4; + */ + public boolean hasStoragePolicyID() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+       * +optional
+       * 
+ * + * optional string storagePolicyID = 4; + */ + public java.lang.String getStoragePolicyID() { + java.lang.Object ref = storagePolicyID_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + storagePolicyID_ = s; + } + return s; } else { - return podAffinityTerm_ == null ? - io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance() : podAffinityTerm_; + return (java.lang.String) ref; } } /** *
-       * Required. A pod affinity term, associated with the corresponding weight.
+       * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+       * +optional
        * 
* - * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; + * optional string storagePolicyID = 4; */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.PodAffinityTerm, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder, io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder> - getPodAffinityTermFieldBuilder() { - if (podAffinityTermBuilder_ == null) { - podAffinityTermBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1.PodAffinityTerm, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder, io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder>( - getPodAffinityTerm(), - getParentForChildren(), - isClean()); - podAffinityTerm_ = null; + public com.google.protobuf.ByteString + getStoragePolicyIDBytes() { + java.lang.Object ref = storagePolicyID_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + storagePolicyID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return podAffinityTermBuilder_; + } + /** + *
+       * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+       * +optional
+       * 
+ * + * optional string storagePolicyID = 4; + */ + public Builder setStoragePolicyID( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + storagePolicyID_ = value; + onChanged(); + return this; + } + /** + *
+       * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+       * +optional
+       * 
+ * + * optional string storagePolicyID = 4; + */ + public Builder clearStoragePolicyID() { + bitField0_ = (bitField0_ & ~0x00000008); + storagePolicyID_ = getDefaultInstance().getStoragePolicyID(); + onChanged(); + return this; + } + /** + *
+       * storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.
+       * +optional
+       * 
+ * + * optional string storagePolicyID = 4; + */ + public Builder setStoragePolicyIDBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + storagePolicyID_ = value; + onChanged(); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -390507,198 +391835,112 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.WeightedPodAffinityTerm) + // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource) } - // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.WeightedPodAffinityTerm) - private static final io.kubernetes.client.proto.V1.WeightedPodAffinityTerm DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.VsphereVirtualDiskVolumeSource) + private static final io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.WeightedPodAffinityTerm(); + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource(); } - public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm getDefaultInstance() { + public static io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource getDefaultInstance() { return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public WeightedPodAffinityTerm parsePartialFrom( + public VsphereVirtualDiskVolumeSource parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new WeightedPodAffinityTerm(input, extensionRegistry); + return new VsphereVirtualDiskVolumeSource(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm getDefaultInstanceForType() { + public io.kubernetes.client.proto.V1.VsphereVirtualDiskVolumeSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface WindowsSecurityContextOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.WindowsSecurityContextOptions) + public interface WeightedPodAffinityTermOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.WeightedPodAffinityTerm) com.google.protobuf.MessageOrBuilder { /** *
-     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
-     * +optional
-     * 
- * - * optional string gmsaCredentialSpecName = 1; - */ - boolean hasGmsaCredentialSpecName(); - /** - *
-     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
-     * +optional
-     * 
- * - * optional string gmsaCredentialSpecName = 1; - */ - java.lang.String getGmsaCredentialSpecName(); - /** - *
-     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
-     * +optional
-     * 
- * - * optional string gmsaCredentialSpecName = 1; - */ - com.google.protobuf.ByteString - getGmsaCredentialSpecNameBytes(); - - /** - *
-     * GMSACredentialSpec is where the GMSA admission webhook
-     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
-     * GMSA credential spec named by the GMSACredentialSpecName field.
-     * +optional
-     * 
- * - * optional string gmsaCredentialSpec = 2; - */ - boolean hasGmsaCredentialSpec(); - /** - *
-     * GMSACredentialSpec is where the GMSA admission webhook
-     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
-     * GMSA credential spec named by the GMSACredentialSpecName field.
-     * +optional
+     * weight associated with matching the corresponding podAffinityTerm,
+     * in the range 1-100.
      * 
* - * optional string gmsaCredentialSpec = 2; + * optional int32 weight = 1; */ - java.lang.String getGmsaCredentialSpec(); + boolean hasWeight(); /** *
-     * GMSACredentialSpec is where the GMSA admission webhook
-     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
-     * GMSA credential spec named by the GMSACredentialSpecName field.
-     * +optional
+     * weight associated with matching the corresponding podAffinityTerm,
+     * in the range 1-100.
      * 
* - * optional string gmsaCredentialSpec = 2; + * optional int32 weight = 1; */ - com.google.protobuf.ByteString - getGmsaCredentialSpecBytes(); + int getWeight(); /** *
-     * The UserName in Windows to run the entrypoint of the container process.
-     * Defaults to the user specified in image metadata if unspecified.
-     * May also be set in PodSecurityContext. If set in both SecurityContext and
-     * PodSecurityContext, the value specified in SecurityContext takes precedence.
-     * +optional
-     * 
- * - * optional string runAsUserName = 3; - */ - boolean hasRunAsUserName(); - /** - *
-     * The UserName in Windows to run the entrypoint of the container process.
-     * Defaults to the user specified in image metadata if unspecified.
-     * May also be set in PodSecurityContext. If set in both SecurityContext and
-     * PodSecurityContext, the value specified in SecurityContext takes precedence.
-     * +optional
-     * 
- * - * optional string runAsUserName = 3; - */ - java.lang.String getRunAsUserName(); - /** - *
-     * The UserName in Windows to run the entrypoint of the container process.
-     * Defaults to the user specified in image metadata if unspecified.
-     * May also be set in PodSecurityContext. If set in both SecurityContext and
-     * PodSecurityContext, the value specified in SecurityContext takes precedence.
-     * +optional
+     * Required. A pod affinity term, associated with the corresponding weight.
      * 
* - * optional string runAsUserName = 3; + * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ - com.google.protobuf.ByteString - getRunAsUserNameBytes(); - + boolean hasPodAffinityTerm(); /** *
-     * HostProcess determines if a container should be run as a 'Host Process' container.
-     * All of a Pod's containers must have the same effective HostProcess value
-     * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
-     * In addition, if HostProcess is true then HostNetwork must also be set to true.
-     * +optional
+     * Required. A pod affinity term, associated with the corresponding weight.
      * 
* - * optional bool hostProcess = 4; + * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ - boolean hasHostProcess(); + io.kubernetes.client.proto.V1.PodAffinityTerm getPodAffinityTerm(); /** *
-     * HostProcess determines if a container should be run as a 'Host Process' container.
-     * All of a Pod's containers must have the same effective HostProcess value
-     * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
-     * In addition, if HostProcess is true then HostNetwork must also be set to true.
-     * +optional
+     * Required. A pod affinity term, associated with the corresponding weight.
      * 
* - * optional bool hostProcess = 4; + * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ - boolean getHostProcess(); + io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder getPodAffinityTermOrBuilder(); } /** *
-   * WindowsSecurityContextOptions contain Windows-specific options and credentials.
+   * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
    * 
* - * Protobuf type {@code k8s.io.api.core.v1.WindowsSecurityContextOptions} + * Protobuf type {@code k8s.io.api.core.v1.WeightedPodAffinityTerm} */ - public static final class WindowsSecurityContextOptions extends + public static final class WeightedPodAffinityTerm extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.WindowsSecurityContextOptions) - WindowsSecurityContextOptionsOrBuilder { + // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.WeightedPodAffinityTerm) + WeightedPodAffinityTermOrBuilder { private static final long serialVersionUID = 0L; - // Use WindowsSecurityContextOptions.newBuilder() to construct. - private WindowsSecurityContextOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use WeightedPodAffinityTerm.newBuilder() to construct. + private WeightedPodAffinityTerm(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WindowsSecurityContextOptions() { - gmsaCredentialSpecName_ = ""; - gmsaCredentialSpec_ = ""; - runAsUserName_ = ""; - hostProcess_ = false; + private WeightedPodAffinityTerm() { + weight_ = 0; } @java.lang.Override @@ -390706,7 +391948,7 @@ private WindowsSecurityContextOptions() { getUnknownFields() { return this.unknownFields; } - private WindowsSecurityContextOptions( + private WeightedPodAffinityTerm( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -390725,27 +391967,22 @@ private WindowsSecurityContextOptions( case 0: done = true; break; - case 10: { - com.google.protobuf.ByteString bs = input.readBytes(); + case 8: { bitField0_ |= 0x00000001; - gmsaCredentialSpecName_ = bs; + weight_ = input.readInt32(); break; } case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); + io.kubernetes.client.proto.V1.PodAffinityTerm.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = podAffinityTerm_.toBuilder(); + } + podAffinityTerm_ = input.readMessage(io.kubernetes.client.proto.V1.PodAffinityTerm.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(podAffinityTerm_); + podAffinityTerm_ = subBuilder.buildPartial(); + } bitField0_ |= 0x00000002; - gmsaCredentialSpec_ = bs; - break; - } - case 26: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - runAsUserName_ = bs; - break; - } - case 32: { - bitField0_ |= 0x00000008; - hostProcess_ = input.readBool(); break; } default: { @@ -390769,233 +392006,74 @@ private WindowsSecurityContextOptions( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_fieldAccessorTable + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.class, io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder.class); + io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.class, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder.class); } private int bitField0_; - public static final int GMSACREDENTIALSPECNAME_FIELD_NUMBER = 1; - private volatile java.lang.Object gmsaCredentialSpecName_; + public static final int WEIGHT_FIELD_NUMBER = 1; + private int weight_; /** *
-     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
-     * +optional
+     * weight associated with matching the corresponding podAffinityTerm,
+     * in the range 1-100.
      * 
* - * optional string gmsaCredentialSpecName = 1; + * optional int32 weight = 1; */ - public boolean hasGmsaCredentialSpecName() { + public boolean hasWeight() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
-     * +optional
-     * 
- * - * optional string gmsaCredentialSpecName = 1; - */ - public java.lang.String getGmsaCredentialSpecName() { - java.lang.Object ref = gmsaCredentialSpecName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - gmsaCredentialSpecName_ = s; - } - return s; - } - } - /** - *
-     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
-     * +optional
-     * 
- * - * optional string gmsaCredentialSpecName = 1; - */ - public com.google.protobuf.ByteString - getGmsaCredentialSpecNameBytes() { - java.lang.Object ref = gmsaCredentialSpecName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gmsaCredentialSpecName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GMSACREDENTIALSPEC_FIELD_NUMBER = 2; - private volatile java.lang.Object gmsaCredentialSpec_; - /** - *
-     * GMSACredentialSpec is where the GMSA admission webhook
-     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
-     * GMSA credential spec named by the GMSACredentialSpecName field.
-     * +optional
-     * 
- * - * optional string gmsaCredentialSpec = 2; - */ - public boolean hasGmsaCredentialSpec() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - *
-     * GMSACredentialSpec is where the GMSA admission webhook
-     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
-     * GMSA credential spec named by the GMSACredentialSpecName field.
-     * +optional
-     * 
- * - * optional string gmsaCredentialSpec = 2; - */ - public java.lang.String getGmsaCredentialSpec() { - java.lang.Object ref = gmsaCredentialSpec_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - gmsaCredentialSpec_ = s; - } - return s; - } - } - /** - *
-     * GMSACredentialSpec is where the GMSA admission webhook
-     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
-     * GMSA credential spec named by the GMSACredentialSpecName field.
-     * +optional
-     * 
- * - * optional string gmsaCredentialSpec = 2; - */ - public com.google.protobuf.ByteString - getGmsaCredentialSpecBytes() { - java.lang.Object ref = gmsaCredentialSpec_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gmsaCredentialSpec_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RUNASUSERNAME_FIELD_NUMBER = 3; - private volatile java.lang.Object runAsUserName_; - /** - *
-     * The UserName in Windows to run the entrypoint of the container process.
-     * Defaults to the user specified in image metadata if unspecified.
-     * May also be set in PodSecurityContext. If set in both SecurityContext and
-     * PodSecurityContext, the value specified in SecurityContext takes precedence.
-     * +optional
-     * 
- * - * optional string runAsUserName = 3; - */ - public boolean hasRunAsUserName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - *
-     * The UserName in Windows to run the entrypoint of the container process.
-     * Defaults to the user specified in image metadata if unspecified.
-     * May also be set in PodSecurityContext. If set in both SecurityContext and
-     * PodSecurityContext, the value specified in SecurityContext takes precedence.
-     * +optional
+     * weight associated with matching the corresponding podAffinityTerm,
+     * in the range 1-100.
      * 
* - * optional string runAsUserName = 3; + * optional int32 weight = 1; */ - public java.lang.String getRunAsUserName() { - java.lang.Object ref = runAsUserName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - runAsUserName_ = s; - } - return s; - } + public int getWeight() { + return weight_; } + + public static final int PODAFFINITYTERM_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1.PodAffinityTerm podAffinityTerm_; /** *
-     * The UserName in Windows to run the entrypoint of the container process.
-     * Defaults to the user specified in image metadata if unspecified.
-     * May also be set in PodSecurityContext. If set in both SecurityContext and
-     * PodSecurityContext, the value specified in SecurityContext takes precedence.
-     * +optional
+     * Required. A pod affinity term, associated with the corresponding weight.
      * 
* - * optional string runAsUserName = 3; + * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ - public com.google.protobuf.ByteString - getRunAsUserNameBytes() { - java.lang.Object ref = runAsUserName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - runAsUserName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public boolean hasPodAffinityTerm() { + return ((bitField0_ & 0x00000002) == 0x00000002); } - - public static final int HOSTPROCESS_FIELD_NUMBER = 4; - private boolean hostProcess_; /** *
-     * HostProcess determines if a container should be run as a 'Host Process' container.
-     * All of a Pod's containers must have the same effective HostProcess value
-     * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
-     * In addition, if HostProcess is true then HostNetwork must also be set to true.
-     * +optional
+     * Required. A pod affinity term, associated with the corresponding weight.
      * 
* - * optional bool hostProcess = 4; + * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ - public boolean hasHostProcess() { - return ((bitField0_ & 0x00000008) == 0x00000008); + public io.kubernetes.client.proto.V1.PodAffinityTerm getPodAffinityTerm() { + return podAffinityTerm_ == null ? io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance() : podAffinityTerm_; } /** *
-     * HostProcess determines if a container should be run as a 'Host Process' container.
-     * All of a Pod's containers must have the same effective HostProcess value
-     * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
-     * In addition, if HostProcess is true then HostNetwork must also be set to true.
-     * +optional
+     * Required. A pod affinity term, associated with the corresponding weight.
      * 
* - * optional bool hostProcess = 4; + * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ - public boolean getHostProcess() { - return hostProcess_; + public io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder getPodAffinityTermOrBuilder() { + return podAffinityTerm_ == null ? io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance() : podAffinityTerm_; } private byte memoizedIsInitialized = -1; @@ -391013,16 +392091,10 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gmsaCredentialSpecName_); + output.writeInt32(1, weight_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gmsaCredentialSpec_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, runAsUserName_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { - output.writeBool(4, hostProcess_); + output.writeMessage(2, getPodAffinityTerm()); } unknownFields.writeTo(output); } @@ -391034,17 +392106,12 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gmsaCredentialSpecName_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, weight_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gmsaCredentialSpec_); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, runAsUserName_); - } - if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, hostProcess_); + .computeMessageSize(2, getPodAffinityTerm()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -391056,31 +392123,21 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.kubernetes.client.proto.V1.WindowsSecurityContextOptions)) { + if (!(obj instanceof io.kubernetes.client.proto.V1.WeightedPodAffinityTerm)) { return super.equals(obj); } - io.kubernetes.client.proto.V1.WindowsSecurityContextOptions other = (io.kubernetes.client.proto.V1.WindowsSecurityContextOptions) obj; + io.kubernetes.client.proto.V1.WeightedPodAffinityTerm other = (io.kubernetes.client.proto.V1.WeightedPodAffinityTerm) obj; boolean result = true; - result = result && (hasGmsaCredentialSpecName() == other.hasGmsaCredentialSpecName()); - if (hasGmsaCredentialSpecName()) { - result = result && getGmsaCredentialSpecName() - .equals(other.getGmsaCredentialSpecName()); - } - result = result && (hasGmsaCredentialSpec() == other.hasGmsaCredentialSpec()); - if (hasGmsaCredentialSpec()) { - result = result && getGmsaCredentialSpec() - .equals(other.getGmsaCredentialSpec()); - } - result = result && (hasRunAsUserName() == other.hasRunAsUserName()); - if (hasRunAsUserName()) { - result = result && getRunAsUserName() - .equals(other.getRunAsUserName()); + result = result && (hasWeight() == other.hasWeight()); + if (hasWeight()) { + result = result && (getWeight() + == other.getWeight()); } - result = result && (hasHostProcess() == other.hasHostProcess()); - if (hasHostProcess()) { - result = result && (getHostProcess() - == other.getHostProcess()); + result = result && (hasPodAffinityTerm() == other.hasPodAffinityTerm()); + if (hasPodAffinityTerm()) { + result = result && getPodAffinityTerm() + .equals(other.getPodAffinityTerm()); } result = result && unknownFields.equals(other.unknownFields); return result; @@ -391093,91 +392150,82 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasGmsaCredentialSpecName()) { - hash = (37 * hash) + GMSACREDENTIALSPECNAME_FIELD_NUMBER; - hash = (53 * hash) + getGmsaCredentialSpecName().hashCode(); - } - if (hasGmsaCredentialSpec()) { - hash = (37 * hash) + GMSACREDENTIALSPEC_FIELD_NUMBER; - hash = (53 * hash) + getGmsaCredentialSpec().hashCode(); - } - if (hasRunAsUserName()) { - hash = (37 * hash) + RUNASUSERNAME_FIELD_NUMBER; - hash = (53 * hash) + getRunAsUserName().hashCode(); + if (hasWeight()) { + hash = (37 * hash) + WEIGHT_FIELD_NUMBER; + hash = (53 * hash) + getWeight(); } - if (hasHostProcess()) { - hash = (37 * hash) + HOSTPROCESS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getHostProcess()); + if (hasPodAffinityTerm()) { + hash = (37 * hash) + PODAFFINITYTERM_FIELD_NUMBER; + hash = (53 * hash) + getPodAffinityTerm().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( + public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( + public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( + public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( + public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom(byte[] data) + public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( + public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( + public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseDelimitedFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseDelimitedFrom( + public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( + public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( + public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -391190,7 +392238,7 @@ public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseF public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.kubernetes.client.proto.V1.WindowsSecurityContextOptions prototype) { + public static Builder newBuilder(io.kubernetes.client.proto.V1.WeightedPodAffinityTerm prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -391207,29 +392255,29 @@ protected Builder newBuilderForType( } /** *
-     * WindowsSecurityContextOptions contain Windows-specific options and credentials.
+     * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)
      * 
* - * Protobuf type {@code k8s.io.api.core.v1.WindowsSecurityContextOptions} + * Protobuf type {@code k8s.io.api.core.v1.WeightedPodAffinityTerm} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.WindowsSecurityContextOptions) - io.kubernetes.client.proto.V1.WindowsSecurityContextOptionsOrBuilder { + // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.WeightedPodAffinityTerm) + io.kubernetes.client.proto.V1.WeightedPodAffinityTermOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_fieldAccessorTable + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.class, io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder.class); + io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.class, io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.Builder.class); } - // Construct using io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.newBuilder() + // Construct using io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -391242,36 +392290,37 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getPodAffinityTermFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - gmsaCredentialSpecName_ = ""; + weight_ = 0; bitField0_ = (bitField0_ & ~0x00000001); - gmsaCredentialSpec_ = ""; + if (podAffinityTermBuilder_ == null) { + podAffinityTerm_ = null; + } else { + podAffinityTermBuilder_.clear(); + } bitField0_ = (bitField0_ & ~0x00000002); - runAsUserName_ = ""; - bitField0_ = (bitField0_ & ~0x00000004); - hostProcess_ = false; - bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_descriptor; } @java.lang.Override - public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions getDefaultInstanceForType() { - return io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.getDefaultInstance(); + public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.getDefaultInstance(); } @java.lang.Override - public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions build() { - io.kubernetes.client.proto.V1.WindowsSecurityContextOptions result = buildPartial(); + public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm build() { + io.kubernetes.client.proto.V1.WeightedPodAffinityTerm result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -391279,26 +392328,22 @@ public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions build() { } @java.lang.Override - public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions buildPartial() { - io.kubernetes.client.proto.V1.WindowsSecurityContextOptions result = new io.kubernetes.client.proto.V1.WindowsSecurityContextOptions(this); + public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm buildPartial() { + io.kubernetes.client.proto.V1.WeightedPodAffinityTerm result = new io.kubernetes.client.proto.V1.WeightedPodAffinityTerm(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } - result.gmsaCredentialSpecName_ = gmsaCredentialSpecName_; + result.weight_ = weight_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } - result.gmsaCredentialSpec_ = gmsaCredentialSpec_; - if (((from_bitField0_ & 0x00000004) == 0x00000004)) { - to_bitField0_ |= 0x00000004; - } - result.runAsUserName_ = runAsUserName_; - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000008; + if (podAffinityTermBuilder_ == null) { + result.podAffinityTerm_ = podAffinityTerm_; + } else { + result.podAffinityTerm_ = podAffinityTermBuilder_.build(); } - result.hostProcess_ = hostProcess_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -391338,33 +392383,21 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.kubernetes.client.proto.V1.WindowsSecurityContextOptions) { - return mergeFrom((io.kubernetes.client.proto.V1.WindowsSecurityContextOptions)other); + if (other instanceof io.kubernetes.client.proto.V1.WeightedPodAffinityTerm) { + return mergeFrom((io.kubernetes.client.proto.V1.WeightedPodAffinityTerm)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.kubernetes.client.proto.V1.WindowsSecurityContextOptions other) { - if (other == io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.getDefaultInstance()) return this; - if (other.hasGmsaCredentialSpecName()) { - bitField0_ |= 0x00000001; - gmsaCredentialSpecName_ = other.gmsaCredentialSpecName_; - onChanged(); - } - if (other.hasGmsaCredentialSpec()) { - bitField0_ |= 0x00000002; - gmsaCredentialSpec_ = other.gmsaCredentialSpec_; - onChanged(); - } - if (other.hasRunAsUserName()) { - bitField0_ |= 0x00000004; - runAsUserName_ = other.runAsUserName_; - onChanged(); + public Builder mergeFrom(io.kubernetes.client.proto.V1.WeightedPodAffinityTerm other) { + if (other == io.kubernetes.client.proto.V1.WeightedPodAffinityTerm.getDefaultInstance()) return this; + if (other.hasWeight()) { + setWeight(other.getWeight()); } - if (other.hasHostProcess()) { - setHostProcess(other.getHostProcess()); + if (other.hasPodAffinityTerm()) { + mergePodAffinityTerm(other.getPodAffinityTerm()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -391381,11 +392414,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parsedMessage = null; + io.kubernetes.client.proto.V1.WeightedPodAffinityTerm parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.kubernetes.client.proto.V1.WindowsSecurityContextOptions) e.getUnfinishedMessage(); + parsedMessage = (io.kubernetes.client.proto.V1.WeightedPodAffinityTerm) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -391396,416 +392429,210 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object gmsaCredentialSpecName_ = ""; + private int weight_ ; /** *
-       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
-       * +optional
+       * weight associated with matching the corresponding podAffinityTerm,
+       * in the range 1-100.
        * 
* - * optional string gmsaCredentialSpecName = 1; + * optional int32 weight = 1; */ - public boolean hasGmsaCredentialSpecName() { + public boolean hasWeight() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
-       * +optional
-       * 
- * - * optional string gmsaCredentialSpecName = 1; - */ - public java.lang.String getGmsaCredentialSpecName() { - java.lang.Object ref = gmsaCredentialSpecName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - gmsaCredentialSpecName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
-       * +optional
+       * weight associated with matching the corresponding podAffinityTerm,
+       * in the range 1-100.
        * 
* - * optional string gmsaCredentialSpecName = 1; + * optional int32 weight = 1; */ - public com.google.protobuf.ByteString - getGmsaCredentialSpecNameBytes() { - java.lang.Object ref = gmsaCredentialSpecName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gmsaCredentialSpecName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getWeight() { + return weight_; } /** *
-       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
-       * +optional
+       * weight associated with matching the corresponding podAffinityTerm,
+       * in the range 1-100.
        * 
* - * optional string gmsaCredentialSpecName = 1; + * optional int32 weight = 1; */ - public Builder setGmsaCredentialSpecName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - gmsaCredentialSpecName_ = value; + public Builder setWeight(int value) { + bitField0_ |= 0x00000001; + weight_ = value; onChanged(); return this; } /** *
-       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
-       * +optional
+       * weight associated with matching the corresponding podAffinityTerm,
+       * in the range 1-100.
        * 
* - * optional string gmsaCredentialSpecName = 1; + * optional int32 weight = 1; */ - public Builder clearGmsaCredentialSpecName() { + public Builder clearWeight() { bitField0_ = (bitField0_ & ~0x00000001); - gmsaCredentialSpecName_ = getDefaultInstance().getGmsaCredentialSpecName(); - onChanged(); - return this; - } - /** - *
-       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
-       * +optional
-       * 
- * - * optional string gmsaCredentialSpecName = 1; - */ - public Builder setGmsaCredentialSpecNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - gmsaCredentialSpecName_ = value; + weight_ = 0; onChanged(); return this; } - private java.lang.Object gmsaCredentialSpec_ = ""; + private io.kubernetes.client.proto.V1.PodAffinityTerm podAffinityTerm_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.PodAffinityTerm, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder, io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder> podAffinityTermBuilder_; /** *
-       * GMSACredentialSpec is where the GMSA admission webhook
-       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
-       * GMSA credential spec named by the GMSACredentialSpecName field.
-       * +optional
+       * Required. A pod affinity term, associated with the corresponding weight.
        * 
* - * optional string gmsaCredentialSpec = 2; + * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ - public boolean hasGmsaCredentialSpec() { + public boolean hasPodAffinityTerm() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
-       * GMSACredentialSpec is where the GMSA admission webhook
-       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
-       * GMSA credential spec named by the GMSACredentialSpecName field.
-       * +optional
+       * Required. A pod affinity term, associated with the corresponding weight.
        * 
* - * optional string gmsaCredentialSpec = 2; + * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ - public java.lang.String getGmsaCredentialSpec() { - java.lang.Object ref = gmsaCredentialSpec_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - gmsaCredentialSpec_ = s; - } - return s; + public io.kubernetes.client.proto.V1.PodAffinityTerm getPodAffinityTerm() { + if (podAffinityTermBuilder_ == null) { + return podAffinityTerm_ == null ? io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance() : podAffinityTerm_; } else { - return (java.lang.String) ref; + return podAffinityTermBuilder_.getMessage(); } } /** *
-       * GMSACredentialSpec is where the GMSA admission webhook
-       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
-       * GMSA credential spec named by the GMSACredentialSpecName field.
-       * +optional
+       * Required. A pod affinity term, associated with the corresponding weight.
        * 
* - * optional string gmsaCredentialSpec = 2; + * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ - public com.google.protobuf.ByteString - getGmsaCredentialSpecBytes() { - java.lang.Object ref = gmsaCredentialSpec_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - gmsaCredentialSpec_ = b; - return b; + public Builder setPodAffinityTerm(io.kubernetes.client.proto.V1.PodAffinityTerm value) { + if (podAffinityTermBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + podAffinityTerm_ = value; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + podAffinityTermBuilder_.setMessage(value); } - } - /** - *
-       * GMSACredentialSpec is where the GMSA admission webhook
-       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
-       * GMSA credential spec named by the GMSACredentialSpecName field.
-       * +optional
-       * 
- * - * optional string gmsaCredentialSpec = 2; - */ - public Builder setGmsaCredentialSpec( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - gmsaCredentialSpec_ = value; - onChanged(); - return this; - } - /** - *
-       * GMSACredentialSpec is where the GMSA admission webhook
-       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
-       * GMSA credential spec named by the GMSACredentialSpecName field.
-       * +optional
-       * 
- * - * optional string gmsaCredentialSpec = 2; - */ - public Builder clearGmsaCredentialSpec() { - bitField0_ = (bitField0_ & ~0x00000002); - gmsaCredentialSpec_ = getDefaultInstance().getGmsaCredentialSpec(); - onChanged(); + bitField0_ |= 0x00000002; return this; } /** *
-       * GMSACredentialSpec is where the GMSA admission webhook
-       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
-       * GMSA credential spec named by the GMSACredentialSpecName field.
-       * +optional
+       * Required. A pod affinity term, associated with the corresponding weight.
        * 
* - * optional string gmsaCredentialSpec = 2; + * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ - public Builder setGmsaCredentialSpecBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - gmsaCredentialSpec_ = value; - onChanged(); + public Builder setPodAffinityTerm( + io.kubernetes.client.proto.V1.PodAffinityTerm.Builder builderForValue) { + if (podAffinityTermBuilder_ == null) { + podAffinityTerm_ = builderForValue.build(); + onChanged(); + } else { + podAffinityTermBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; return this; } - - private java.lang.Object runAsUserName_ = ""; - /** - *
-       * The UserName in Windows to run the entrypoint of the container process.
-       * Defaults to the user specified in image metadata if unspecified.
-       * May also be set in PodSecurityContext. If set in both SecurityContext and
-       * PodSecurityContext, the value specified in SecurityContext takes precedence.
-       * +optional
-       * 
- * - * optional string runAsUserName = 3; - */ - public boolean hasRunAsUserName() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } /** *
-       * The UserName in Windows to run the entrypoint of the container process.
-       * Defaults to the user specified in image metadata if unspecified.
-       * May also be set in PodSecurityContext. If set in both SecurityContext and
-       * PodSecurityContext, the value specified in SecurityContext takes precedence.
-       * +optional
+       * Required. A pod affinity term, associated with the corresponding weight.
        * 
* - * optional string runAsUserName = 3; + * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ - public java.lang.String getRunAsUserName() { - java.lang.Object ref = runAsUserName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - runAsUserName_ = s; + public Builder mergePodAffinityTerm(io.kubernetes.client.proto.V1.PodAffinityTerm value) { + if (podAffinityTermBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + podAffinityTerm_ != null && + podAffinityTerm_ != io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance()) { + podAffinityTerm_ = + io.kubernetes.client.proto.V1.PodAffinityTerm.newBuilder(podAffinityTerm_).mergeFrom(value).buildPartial(); + } else { + podAffinityTerm_ = value; } - return s; + onChanged(); } else { - return (java.lang.String) ref; + podAffinityTermBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000002; + return this; } /** *
-       * The UserName in Windows to run the entrypoint of the container process.
-       * Defaults to the user specified in image metadata if unspecified.
-       * May also be set in PodSecurityContext. If set in both SecurityContext and
-       * PodSecurityContext, the value specified in SecurityContext takes precedence.
-       * +optional
+       * Required. A pod affinity term, associated with the corresponding weight.
        * 
* - * optional string runAsUserName = 3; + * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ - public com.google.protobuf.ByteString - getRunAsUserNameBytes() { - java.lang.Object ref = runAsUserName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - runAsUserName_ = b; - return b; + public Builder clearPodAffinityTerm() { + if (podAffinityTermBuilder_ == null) { + podAffinityTerm_ = null; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + podAffinityTermBuilder_.clear(); } - } - /** - *
-       * The UserName in Windows to run the entrypoint of the container process.
-       * Defaults to the user specified in image metadata if unspecified.
-       * May also be set in PodSecurityContext. If set in both SecurityContext and
-       * PodSecurityContext, the value specified in SecurityContext takes precedence.
-       * +optional
-       * 
- * - * optional string runAsUserName = 3; - */ - public Builder setRunAsUserName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - runAsUserName_ = value; - onChanged(); - return this; - } - /** - *
-       * The UserName in Windows to run the entrypoint of the container process.
-       * Defaults to the user specified in image metadata if unspecified.
-       * May also be set in PodSecurityContext. If set in both SecurityContext and
-       * PodSecurityContext, the value specified in SecurityContext takes precedence.
-       * +optional
-       * 
- * - * optional string runAsUserName = 3; - */ - public Builder clearRunAsUserName() { - bitField0_ = (bitField0_ & ~0x00000004); - runAsUserName_ = getDefaultInstance().getRunAsUserName(); - onChanged(); + bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
-       * The UserName in Windows to run the entrypoint of the container process.
-       * Defaults to the user specified in image metadata if unspecified.
-       * May also be set in PodSecurityContext. If set in both SecurityContext and
-       * PodSecurityContext, the value specified in SecurityContext takes precedence.
-       * +optional
+       * Required. A pod affinity term, associated with the corresponding weight.
        * 
* - * optional string runAsUserName = 3; + * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ - public Builder setRunAsUserNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - runAsUserName_ = value; + public io.kubernetes.client.proto.V1.PodAffinityTerm.Builder getPodAffinityTermBuilder() { + bitField0_ |= 0x00000002; onChanged(); - return this; - } - - private boolean hostProcess_ ; - /** - *
-       * HostProcess determines if a container should be run as a 'Host Process' container.
-       * All of a Pod's containers must have the same effective HostProcess value
-       * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
-       * In addition, if HostProcess is true then HostNetwork must also be set to true.
-       * +optional
-       * 
- * - * optional bool hostProcess = 4; - */ - public boolean hasHostProcess() { - return ((bitField0_ & 0x00000008) == 0x00000008); - } - /** - *
-       * HostProcess determines if a container should be run as a 'Host Process' container.
-       * All of a Pod's containers must have the same effective HostProcess value
-       * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
-       * In addition, if HostProcess is true then HostNetwork must also be set to true.
-       * +optional
-       * 
- * - * optional bool hostProcess = 4; - */ - public boolean getHostProcess() { - return hostProcess_; + return getPodAffinityTermFieldBuilder().getBuilder(); } /** *
-       * HostProcess determines if a container should be run as a 'Host Process' container.
-       * All of a Pod's containers must have the same effective HostProcess value
-       * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
-       * In addition, if HostProcess is true then HostNetwork must also be set to true.
-       * +optional
+       * Required. A pod affinity term, associated with the corresponding weight.
        * 
* - * optional bool hostProcess = 4; + * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ - public Builder setHostProcess(boolean value) { - bitField0_ |= 0x00000008; - hostProcess_ = value; - onChanged(); - return this; + public io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder getPodAffinityTermOrBuilder() { + if (podAffinityTermBuilder_ != null) { + return podAffinityTermBuilder_.getMessageOrBuilder(); + } else { + return podAffinityTerm_ == null ? + io.kubernetes.client.proto.V1.PodAffinityTerm.getDefaultInstance() : podAffinityTerm_; + } } /** *
-       * HostProcess determines if a container should be run as a 'Host Process' container.
-       * All of a Pod's containers must have the same effective HostProcess value
-       * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
-       * In addition, if HostProcess is true then HostNetwork must also be set to true.
-       * +optional
+       * Required. A pod affinity term, associated with the corresponding weight.
        * 
* - * optional bool hostProcess = 4; + * optional .k8s.io.api.core.v1.PodAffinityTerm podAffinityTerm = 2; */ - public Builder clearHostProcess() { - bitField0_ = (bitField0_ & ~0x00000008); - hostProcess_ = false; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.PodAffinityTerm, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder, io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder> + getPodAffinityTermFieldBuilder() { + if (podAffinityTermBuilder_ == null) { + podAffinityTermBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.PodAffinityTerm, io.kubernetes.client.proto.V1.PodAffinityTerm.Builder, io.kubernetes.client.proto.V1.PodAffinityTermOrBuilder>( + getPodAffinityTerm(), + getParentForChildren(), + isClean()); + podAffinityTerm_ = null; + } + return podAffinityTermBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -391820,189 +392647,198 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.WindowsSecurityContextOptions) + // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.WeightedPodAffinityTerm) } - // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.WindowsSecurityContextOptions) - private static final io.kubernetes.client.proto.V1.WindowsSecurityContextOptions DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.WeightedPodAffinityTerm) + private static final io.kubernetes.client.proto.V1.WeightedPodAffinityTerm DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.WindowsSecurityContextOptions(); + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.WeightedPodAffinityTerm(); } - public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions getDefaultInstance() { + public static io.kubernetes.client.proto.V1.WeightedPodAffinityTerm getDefaultInstance() { return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public WindowsSecurityContextOptions parsePartialFrom( + public WeightedPodAffinityTerm parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new WindowsSecurityContextOptions(input, extensionRegistry); + return new WeightedPodAffinityTerm(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions getDefaultInstanceForType() { + public io.kubernetes.client.proto.V1.WeightedPodAffinityTerm getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface WorkloadReferenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.WorkloadReference) + public interface WindowsSecurityContextOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.core.v1.WindowsSecurityContextOptions) com.google.protobuf.MessageOrBuilder { /** *
-     * Name defines the name of the Workload object this Pod belongs to.
-     * Workload must be in the same namespace as the Pod.
-     * If it doesn't match any existing Workload, the Pod will remain unschedulable
-     * until a Workload object is created and observed by the kube-scheduler.
-     * It must be a DNS subdomain.
-     * +required
+     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
+     * +optional
      * 
* - * optional string name = 1; + * optional string gmsaCredentialSpecName = 1; */ - boolean hasName(); + boolean hasGmsaCredentialSpecName(); /** *
-     * Name defines the name of the Workload object this Pod belongs to.
-     * Workload must be in the same namespace as the Pod.
-     * If it doesn't match any existing Workload, the Pod will remain unschedulable
-     * until a Workload object is created and observed by the kube-scheduler.
-     * It must be a DNS subdomain.
-     * +required
+     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
+     * +optional
      * 
* - * optional string name = 1; + * optional string gmsaCredentialSpecName = 1; */ - java.lang.String getName(); + java.lang.String getGmsaCredentialSpecName(); /** *
-     * Name defines the name of the Workload object this Pod belongs to.
-     * Workload must be in the same namespace as the Pod.
-     * If it doesn't match any existing Workload, the Pod will remain unschedulable
-     * until a Workload object is created and observed by the kube-scheduler.
-     * It must be a DNS subdomain.
-     * +required
+     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
+     * +optional
      * 
* - * optional string name = 1; + * optional string gmsaCredentialSpecName = 1; */ com.google.protobuf.ByteString - getNameBytes(); + getGmsaCredentialSpecNameBytes(); /** *
-     * PodGroup is the name of the PodGroup within the Workload that this Pod
-     * belongs to. If it doesn't match any existing PodGroup within the Workload,
-     * the Pod will remain unschedulable until the Workload object is recreated
-     * and observed by the kube-scheduler. It must be a DNS label.
-     * +required
+     * GMSACredentialSpec is where the GMSA admission webhook
+     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
+     * GMSA credential spec named by the GMSACredentialSpecName field.
+     * +optional
      * 
* - * optional string podGroup = 2; + * optional string gmsaCredentialSpec = 2; */ - boolean hasPodGroup(); + boolean hasGmsaCredentialSpec(); /** *
-     * PodGroup is the name of the PodGroup within the Workload that this Pod
-     * belongs to. If it doesn't match any existing PodGroup within the Workload,
-     * the Pod will remain unschedulable until the Workload object is recreated
-     * and observed by the kube-scheduler. It must be a DNS label.
-     * +required
+     * GMSACredentialSpec is where the GMSA admission webhook
+     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
+     * GMSA credential spec named by the GMSACredentialSpecName field.
+     * +optional
      * 
* - * optional string podGroup = 2; + * optional string gmsaCredentialSpec = 2; */ - java.lang.String getPodGroup(); + java.lang.String getGmsaCredentialSpec(); /** *
-     * PodGroup is the name of the PodGroup within the Workload that this Pod
-     * belongs to. If it doesn't match any existing PodGroup within the Workload,
-     * the Pod will remain unschedulable until the Workload object is recreated
-     * and observed by the kube-scheduler. It must be a DNS label.
-     * +required
+     * GMSACredentialSpec is where the GMSA admission webhook
+     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
+     * GMSA credential spec named by the GMSACredentialSpecName field.
+     * +optional
      * 
* - * optional string podGroup = 2; + * optional string gmsaCredentialSpec = 2; */ com.google.protobuf.ByteString - getPodGroupBytes(); + getGmsaCredentialSpecBytes(); /** *
-     * PodGroupReplicaKey specifies the replica key of the PodGroup to which this
-     * Pod belongs. It is used to distinguish pods belonging to different replicas
-     * of the same pod group. The pod group policy is applied separately to each replica.
-     * When set, it must be a DNS label.
+     * The UserName in Windows to run the entrypoint of the container process.
+     * Defaults to the user specified in image metadata if unspecified.
+     * May also be set in PodSecurityContext. If set in both SecurityContext and
+     * PodSecurityContext, the value specified in SecurityContext takes precedence.
      * +optional
      * 
* - * optional string podGroupReplicaKey = 3; + * optional string runAsUserName = 3; */ - boolean hasPodGroupReplicaKey(); + boolean hasRunAsUserName(); /** *
-     * PodGroupReplicaKey specifies the replica key of the PodGroup to which this
-     * Pod belongs. It is used to distinguish pods belonging to different replicas
-     * of the same pod group. The pod group policy is applied separately to each replica.
-     * When set, it must be a DNS label.
+     * The UserName in Windows to run the entrypoint of the container process.
+     * Defaults to the user specified in image metadata if unspecified.
+     * May also be set in PodSecurityContext. If set in both SecurityContext and
+     * PodSecurityContext, the value specified in SecurityContext takes precedence.
      * +optional
      * 
* - * optional string podGroupReplicaKey = 3; + * optional string runAsUserName = 3; */ - java.lang.String getPodGroupReplicaKey(); + java.lang.String getRunAsUserName(); /** *
-     * PodGroupReplicaKey specifies the replica key of the PodGroup to which this
-     * Pod belongs. It is used to distinguish pods belonging to different replicas
-     * of the same pod group. The pod group policy is applied separately to each replica.
-     * When set, it must be a DNS label.
+     * The UserName in Windows to run the entrypoint of the container process.
+     * Defaults to the user specified in image metadata if unspecified.
+     * May also be set in PodSecurityContext. If set in both SecurityContext and
+     * PodSecurityContext, the value specified in SecurityContext takes precedence.
      * +optional
      * 
* - * optional string podGroupReplicaKey = 3; + * optional string runAsUserName = 3; */ com.google.protobuf.ByteString - getPodGroupReplicaKeyBytes(); + getRunAsUserNameBytes(); + + /** + *
+     * HostProcess determines if a container should be run as a 'Host Process' container.
+     * All of a Pod's containers must have the same effective HostProcess value
+     * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
+     * In addition, if HostProcess is true then HostNetwork must also be set to true.
+     * +optional
+     * 
+ * + * optional bool hostProcess = 4; + */ + boolean hasHostProcess(); + /** + *
+     * HostProcess determines if a container should be run as a 'Host Process' container.
+     * All of a Pod's containers must have the same effective HostProcess value
+     * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
+     * In addition, if HostProcess is true then HostNetwork must also be set to true.
+     * +optional
+     * 
+ * + * optional bool hostProcess = 4; + */ + boolean getHostProcess(); } /** *
-   * WorkloadReference identifies the Workload object and PodGroup membership
-   * that a Pod belongs to. The scheduler uses this information to apply
-   * workload-aware scheduling semantics.
+   * WindowsSecurityContextOptions contain Windows-specific options and credentials.
    * 
* - * Protobuf type {@code k8s.io.api.core.v1.WorkloadReference} + * Protobuf type {@code k8s.io.api.core.v1.WindowsSecurityContextOptions} */ - public static final class WorkloadReference extends + public static final class WindowsSecurityContextOptions extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.WorkloadReference) - WorkloadReferenceOrBuilder { + // @@protoc_insertion_point(message_implements:k8s.io.api.core.v1.WindowsSecurityContextOptions) + WindowsSecurityContextOptionsOrBuilder { private static final long serialVersionUID = 0L; - // Use WorkloadReference.newBuilder() to construct. - private WorkloadReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use WindowsSecurityContextOptions.newBuilder() to construct. + private WindowsSecurityContextOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private WorkloadReference() { - name_ = ""; - podGroup_ = ""; - podGroupReplicaKey_ = ""; + private WindowsSecurityContextOptions() { + gmsaCredentialSpecName_ = ""; + gmsaCredentialSpec_ = ""; + runAsUserName_ = ""; + hostProcess_ = false; } @java.lang.Override @@ -392010,7 +392846,7 @@ private WorkloadReference() { getUnknownFields() { return this.unknownFields; } - private WorkloadReference( + private WindowsSecurityContextOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -392032,19 +392868,24 @@ private WorkloadReference( case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - name_ = bs; + gmsaCredentialSpecName_ = bs; break; } case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - podGroup_ = bs; + gmsaCredentialSpec_ = bs; break; } case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000004; - podGroupReplicaKey_ = bs; + runAsUserName_ = bs; + break; + } + case 32: { + bitField0_ |= 0x00000008; + hostProcess_ = input.readBool(); break; } default: { @@ -392068,49 +392909,41 @@ private WorkloadReference( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WorkloadReference_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WorkloadReference_fieldAccessorTable + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1.WorkloadReference.class, io.kubernetes.client.proto.V1.WorkloadReference.Builder.class); + io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.class, io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder.class); } private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + public static final int GMSACREDENTIALSPECNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object gmsaCredentialSpecName_; /** *
-     * Name defines the name of the Workload object this Pod belongs to.
-     * Workload must be in the same namespace as the Pod.
-     * If it doesn't match any existing Workload, the Pod will remain unschedulable
-     * until a Workload object is created and observed by the kube-scheduler.
-     * It must be a DNS subdomain.
-     * +required
+     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
+     * +optional
      * 
* - * optional string name = 1; + * optional string gmsaCredentialSpecName = 1; */ - public boolean hasName() { + public boolean hasGmsaCredentialSpecName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-     * Name defines the name of the Workload object this Pod belongs to.
-     * Workload must be in the same namespace as the Pod.
-     * If it doesn't match any existing Workload, the Pod will remain unschedulable
-     * until a Workload object is created and observed by the kube-scheduler.
-     * It must be a DNS subdomain.
-     * +required
+     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
+     * +optional
      * 
* - * optional string name = 1; + * optional string gmsaCredentialSpecName = 1; */ - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getGmsaCredentialSpecName() { + java.lang.Object ref = gmsaCredentialSpecName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -392118,66 +392951,60 @@ public java.lang.String getName() { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - name_ = s; + gmsaCredentialSpecName_ = s; } return s; } } /** *
-     * Name defines the name of the Workload object this Pod belongs to.
-     * Workload must be in the same namespace as the Pod.
-     * If it doesn't match any existing Workload, the Pod will remain unschedulable
-     * until a Workload object is created and observed by the kube-scheduler.
-     * It must be a DNS subdomain.
-     * +required
+     * GMSACredentialSpecName is the name of the GMSA credential spec to use.
+     * +optional
      * 
* - * optional string name = 1; + * optional string gmsaCredentialSpecName = 1; */ public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; + getGmsaCredentialSpecNameBytes() { + java.lang.Object ref = gmsaCredentialSpecName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - name_ = b; + gmsaCredentialSpecName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int PODGROUP_FIELD_NUMBER = 2; - private volatile java.lang.Object podGroup_; + public static final int GMSACREDENTIALSPEC_FIELD_NUMBER = 2; + private volatile java.lang.Object gmsaCredentialSpec_; /** *
-     * PodGroup is the name of the PodGroup within the Workload that this Pod
-     * belongs to. If it doesn't match any existing PodGroup within the Workload,
-     * the Pod will remain unschedulable until the Workload object is recreated
-     * and observed by the kube-scheduler. It must be a DNS label.
-     * +required
+     * GMSACredentialSpec is where the GMSA admission webhook
+     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
+     * GMSA credential spec named by the GMSACredentialSpecName field.
+     * +optional
      * 
* - * optional string podGroup = 2; + * optional string gmsaCredentialSpec = 2; */ - public boolean hasPodGroup() { + public boolean hasGmsaCredentialSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
-     * PodGroup is the name of the PodGroup within the Workload that this Pod
-     * belongs to. If it doesn't match any existing PodGroup within the Workload,
-     * the Pod will remain unschedulable until the Workload object is recreated
-     * and observed by the kube-scheduler. It must be a DNS label.
-     * +required
+     * GMSACredentialSpec is where the GMSA admission webhook
+     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
+     * GMSA credential spec named by the GMSACredentialSpecName field.
+     * +optional
      * 
* - * optional string podGroup = 2; + * optional string gmsaCredentialSpec = 2; */ - public java.lang.String getPodGroup() { - java.lang.Object ref = podGroup_; + public java.lang.String getGmsaCredentialSpec() { + java.lang.Object ref = gmsaCredentialSpec_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -392185,65 +393012,64 @@ public java.lang.String getPodGroup() { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - podGroup_ = s; + gmsaCredentialSpec_ = s; } return s; } } /** *
-     * PodGroup is the name of the PodGroup within the Workload that this Pod
-     * belongs to. If it doesn't match any existing PodGroup within the Workload,
-     * the Pod will remain unschedulable until the Workload object is recreated
-     * and observed by the kube-scheduler. It must be a DNS label.
-     * +required
+     * GMSACredentialSpec is where the GMSA admission webhook
+     * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
+     * GMSA credential spec named by the GMSACredentialSpecName field.
+     * +optional
      * 
* - * optional string podGroup = 2; + * optional string gmsaCredentialSpec = 2; */ public com.google.protobuf.ByteString - getPodGroupBytes() { - java.lang.Object ref = podGroup_; + getGmsaCredentialSpecBytes() { + java.lang.Object ref = gmsaCredentialSpec_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - podGroup_ = b; + gmsaCredentialSpec_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int PODGROUPREPLICAKEY_FIELD_NUMBER = 3; - private volatile java.lang.Object podGroupReplicaKey_; + public static final int RUNASUSERNAME_FIELD_NUMBER = 3; + private volatile java.lang.Object runAsUserName_; /** *
-     * PodGroupReplicaKey specifies the replica key of the PodGroup to which this
-     * Pod belongs. It is used to distinguish pods belonging to different replicas
-     * of the same pod group. The pod group policy is applied separately to each replica.
-     * When set, it must be a DNS label.
+     * The UserName in Windows to run the entrypoint of the container process.
+     * Defaults to the user specified in image metadata if unspecified.
+     * May also be set in PodSecurityContext. If set in both SecurityContext and
+     * PodSecurityContext, the value specified in SecurityContext takes precedence.
      * +optional
      * 
* - * optional string podGroupReplicaKey = 3; + * optional string runAsUserName = 3; */ - public boolean hasPodGroupReplicaKey() { + public boolean hasRunAsUserName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
-     * PodGroupReplicaKey specifies the replica key of the PodGroup to which this
-     * Pod belongs. It is used to distinguish pods belonging to different replicas
-     * of the same pod group. The pod group policy is applied separately to each replica.
-     * When set, it must be a DNS label.
+     * The UserName in Windows to run the entrypoint of the container process.
+     * Defaults to the user specified in image metadata if unspecified.
+     * May also be set in PodSecurityContext. If set in both SecurityContext and
+     * PodSecurityContext, the value specified in SecurityContext takes precedence.
      * +optional
      * 
* - * optional string podGroupReplicaKey = 3; + * optional string runAsUserName = 3; */ - public java.lang.String getPodGroupReplicaKey() { - java.lang.Object ref = podGroupReplicaKey_; + public java.lang.String getRunAsUserName() { + java.lang.Object ref = runAsUserName_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -392251,36 +393077,67 @@ public java.lang.String getPodGroupReplicaKey() { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - podGroupReplicaKey_ = s; + runAsUserName_ = s; } return s; } } /** *
-     * PodGroupReplicaKey specifies the replica key of the PodGroup to which this
-     * Pod belongs. It is used to distinguish pods belonging to different replicas
-     * of the same pod group. The pod group policy is applied separately to each replica.
-     * When set, it must be a DNS label.
+     * The UserName in Windows to run the entrypoint of the container process.
+     * Defaults to the user specified in image metadata if unspecified.
+     * May also be set in PodSecurityContext. If set in both SecurityContext and
+     * PodSecurityContext, the value specified in SecurityContext takes precedence.
      * +optional
      * 
* - * optional string podGroupReplicaKey = 3; + * optional string runAsUserName = 3; */ public com.google.protobuf.ByteString - getPodGroupReplicaKeyBytes() { - java.lang.Object ref = podGroupReplicaKey_; + getRunAsUserNameBytes() { + java.lang.Object ref = runAsUserName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - podGroupReplicaKey_ = b; + runAsUserName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } + public static final int HOSTPROCESS_FIELD_NUMBER = 4; + private boolean hostProcess_; + /** + *
+     * HostProcess determines if a container should be run as a 'Host Process' container.
+     * All of a Pod's containers must have the same effective HostProcess value
+     * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
+     * In addition, if HostProcess is true then HostNetwork must also be set to true.
+     * +optional
+     * 
+ * + * optional bool hostProcess = 4; + */ + public boolean hasHostProcess() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * HostProcess determines if a container should be run as a 'Host Process' container.
+     * All of a Pod's containers must have the same effective HostProcess value
+     * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
+     * In addition, if HostProcess is true then HostNetwork must also be set to true.
+     * +optional
+     * 
+ * + * optional bool hostProcess = 4; + */ + public boolean getHostProcess() { + return hostProcess_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -392296,13 +393153,16 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gmsaCredentialSpecName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, podGroup_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, gmsaCredentialSpec_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, podGroupReplicaKey_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, runAsUserName_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBool(4, hostProcess_); } unknownFields.writeTo(output); } @@ -392314,13 +393174,17 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, gmsaCredentialSpecName_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, podGroup_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, gmsaCredentialSpec_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, podGroupReplicaKey_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, runAsUserName_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, hostProcess_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -392332,26 +393196,31 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.kubernetes.client.proto.V1.WorkloadReference)) { + if (!(obj instanceof io.kubernetes.client.proto.V1.WindowsSecurityContextOptions)) { return super.equals(obj); } - io.kubernetes.client.proto.V1.WorkloadReference other = (io.kubernetes.client.proto.V1.WorkloadReference) obj; + io.kubernetes.client.proto.V1.WindowsSecurityContextOptions other = (io.kubernetes.client.proto.V1.WindowsSecurityContextOptions) obj; boolean result = true; - result = result && (hasName() == other.hasName()); - if (hasName()) { - result = result && getName() - .equals(other.getName()); + result = result && (hasGmsaCredentialSpecName() == other.hasGmsaCredentialSpecName()); + if (hasGmsaCredentialSpecName()) { + result = result && getGmsaCredentialSpecName() + .equals(other.getGmsaCredentialSpecName()); } - result = result && (hasPodGroup() == other.hasPodGroup()); - if (hasPodGroup()) { - result = result && getPodGroup() - .equals(other.getPodGroup()); + result = result && (hasGmsaCredentialSpec() == other.hasGmsaCredentialSpec()); + if (hasGmsaCredentialSpec()) { + result = result && getGmsaCredentialSpec() + .equals(other.getGmsaCredentialSpec()); + } + result = result && (hasRunAsUserName() == other.hasRunAsUserName()); + if (hasRunAsUserName()) { + result = result && getRunAsUserName() + .equals(other.getRunAsUserName()); } - result = result && (hasPodGroupReplicaKey() == other.hasPodGroupReplicaKey()); - if (hasPodGroupReplicaKey()) { - result = result && getPodGroupReplicaKey() - .equals(other.getPodGroupReplicaKey()); + result = result && (hasHostProcess() == other.hasHostProcess()); + if (hasHostProcess()) { + result = result && (getHostProcess() + == other.getHostProcess()); } result = result && unknownFields.equals(other.unknownFields); return result; @@ -392364,86 +393233,91 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); + if (hasGmsaCredentialSpecName()) { + hash = (37 * hash) + GMSACREDENTIALSPECNAME_FIELD_NUMBER; + hash = (53 * hash) + getGmsaCredentialSpecName().hashCode(); + } + if (hasGmsaCredentialSpec()) { + hash = (37 * hash) + GMSACREDENTIALSPEC_FIELD_NUMBER; + hash = (53 * hash) + getGmsaCredentialSpec().hashCode(); } - if (hasPodGroup()) { - hash = (37 * hash) + PODGROUP_FIELD_NUMBER; - hash = (53 * hash) + getPodGroup().hashCode(); + if (hasRunAsUserName()) { + hash = (37 * hash) + RUNASUSERNAME_FIELD_NUMBER; + hash = (53 * hash) + getRunAsUserName().hashCode(); } - if (hasPodGroupReplicaKey()) { - hash = (37 * hash) + PODGROUPREPLICAKEY_FIELD_NUMBER; - hash = (53 * hash) + getPodGroupReplicaKey().hashCode(); + if (hasHostProcess()) { + hash = (37 * hash) + HOSTPROCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getHostProcess()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.kubernetes.client.proto.V1.WorkloadReference parseFrom( + public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.WorkloadReference parseFrom( + public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.WorkloadReference parseFrom( + public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.WorkloadReference parseFrom( + public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.WorkloadReference parseFrom(byte[] data) + public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1.WorkloadReference parseFrom( + public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1.WorkloadReference parseFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.WorkloadReference parseFrom( + public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1.WorkloadReference parseDelimitedFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.WorkloadReference parseDelimitedFrom( + public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1.WorkloadReference parseFrom( + public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1.WorkloadReference parseFrom( + public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -392456,7 +393330,7 @@ public static io.kubernetes.client.proto.V1.WorkloadReference parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.kubernetes.client.proto.V1.WorkloadReference prototype) { + public static Builder newBuilder(io.kubernetes.client.proto.V1.WindowsSecurityContextOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -392473,31 +393347,29 @@ protected Builder newBuilderForType( } /** *
-     * WorkloadReference identifies the Workload object and PodGroup membership
-     * that a Pod belongs to. The scheduler uses this information to apply
-     * workload-aware scheduling semantics.
+     * WindowsSecurityContextOptions contain Windows-specific options and credentials.
      * 
* - * Protobuf type {@code k8s.io.api.core.v1.WorkloadReference} + * Protobuf type {@code k8s.io.api.core.v1.WindowsSecurityContextOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.WorkloadReference) - io.kubernetes.client.proto.V1.WorkloadReferenceOrBuilder { + // @@protoc_insertion_point(builder_implements:k8s.io.api.core.v1.WindowsSecurityContextOptions) + io.kubernetes.client.proto.V1.WindowsSecurityContextOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WorkloadReference_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WorkloadReference_fieldAccessorTable + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1.WorkloadReference.class, io.kubernetes.client.proto.V1.WorkloadReference.Builder.class); + io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.class, io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.Builder.class); } - // Construct using io.kubernetes.client.proto.V1.WorkloadReference.newBuilder() + // Construct using io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -392515,29 +393387,31 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - name_ = ""; + gmsaCredentialSpecName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); - podGroup_ = ""; + gmsaCredentialSpec_ = ""; bitField0_ = (bitField0_ & ~0x00000002); - podGroupReplicaKey_ = ""; + runAsUserName_ = ""; bitField0_ = (bitField0_ & ~0x00000004); + hostProcess_ = false; + bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WorkloadReference_descriptor; + return io.kubernetes.client.proto.V1.internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_descriptor; } @java.lang.Override - public io.kubernetes.client.proto.V1.WorkloadReference getDefaultInstanceForType() { - return io.kubernetes.client.proto.V1.WorkloadReference.getDefaultInstance(); + public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.getDefaultInstance(); } @java.lang.Override - public io.kubernetes.client.proto.V1.WorkloadReference build() { - io.kubernetes.client.proto.V1.WorkloadReference result = buildPartial(); + public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions build() { + io.kubernetes.client.proto.V1.WindowsSecurityContextOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -392545,22 +393419,26 @@ public io.kubernetes.client.proto.V1.WorkloadReference build() { } @java.lang.Override - public io.kubernetes.client.proto.V1.WorkloadReference buildPartial() { - io.kubernetes.client.proto.V1.WorkloadReference result = new io.kubernetes.client.proto.V1.WorkloadReference(this); + public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions buildPartial() { + io.kubernetes.client.proto.V1.WindowsSecurityContextOptions result = new io.kubernetes.client.proto.V1.WindowsSecurityContextOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } - result.name_ = name_; + result.gmsaCredentialSpecName_ = gmsaCredentialSpecName_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } - result.podGroup_ = podGroup_; + result.gmsaCredentialSpec_ = gmsaCredentialSpec_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } - result.podGroupReplicaKey_ = podGroupReplicaKey_; + result.runAsUserName_ = runAsUserName_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.hostProcess_ = hostProcess_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -392600,31 +393478,34 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.kubernetes.client.proto.V1.WorkloadReference) { - return mergeFrom((io.kubernetes.client.proto.V1.WorkloadReference)other); + if (other instanceof io.kubernetes.client.proto.V1.WindowsSecurityContextOptions) { + return mergeFrom((io.kubernetes.client.proto.V1.WindowsSecurityContextOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.kubernetes.client.proto.V1.WorkloadReference other) { - if (other == io.kubernetes.client.proto.V1.WorkloadReference.getDefaultInstance()) return this; - if (other.hasName()) { + public Builder mergeFrom(io.kubernetes.client.proto.V1.WindowsSecurityContextOptions other) { + if (other == io.kubernetes.client.proto.V1.WindowsSecurityContextOptions.getDefaultInstance()) return this; + if (other.hasGmsaCredentialSpecName()) { bitField0_ |= 0x00000001; - name_ = other.name_; + gmsaCredentialSpecName_ = other.gmsaCredentialSpecName_; onChanged(); } - if (other.hasPodGroup()) { + if (other.hasGmsaCredentialSpec()) { bitField0_ |= 0x00000002; - podGroup_ = other.podGroup_; + gmsaCredentialSpec_ = other.gmsaCredentialSpec_; onChanged(); } - if (other.hasPodGroupReplicaKey()) { + if (other.hasRunAsUserName()) { bitField0_ |= 0x00000004; - podGroupReplicaKey_ = other.podGroupReplicaKey_; + runAsUserName_ = other.runAsUserName_; onChanged(); } + if (other.hasHostProcess()) { + setHostProcess(other.getHostProcess()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -392640,11 +393521,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.kubernetes.client.proto.V1.WorkloadReference parsedMessage = null; + io.kubernetes.client.proto.V1.WindowsSecurityContextOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.kubernetes.client.proto.V1.WorkloadReference) e.getUnfinishedMessage(); + parsedMessage = (io.kubernetes.client.proto.V1.WindowsSecurityContextOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -392655,42 +393536,34 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object name_ = ""; + private java.lang.Object gmsaCredentialSpecName_ = ""; /** *
-       * Name defines the name of the Workload object this Pod belongs to.
-       * Workload must be in the same namespace as the Pod.
-       * If it doesn't match any existing Workload, the Pod will remain unschedulable
-       * until a Workload object is created and observed by the kube-scheduler.
-       * It must be a DNS subdomain.
-       * +required
+       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
+       * +optional
        * 
* - * optional string name = 1; + * optional string gmsaCredentialSpecName = 1; */ - public boolean hasName() { + public boolean hasGmsaCredentialSpecName() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-       * Name defines the name of the Workload object this Pod belongs to.
-       * Workload must be in the same namespace as the Pod.
-       * If it doesn't match any existing Workload, the Pod will remain unschedulable
-       * until a Workload object is created and observed by the kube-scheduler.
-       * It must be a DNS subdomain.
-       * +required
+       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
+       * +optional
        * 
* - * optional string name = 1; + * optional string gmsaCredentialSpecName = 1; */ - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getGmsaCredentialSpecName() { + java.lang.Object ref = gmsaCredentialSpecName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - name_ = s; + gmsaCredentialSpecName_ = s; } return s; } else { @@ -392699,24 +393572,20 @@ public java.lang.String getName() { } /** *
-       * Name defines the name of the Workload object this Pod belongs to.
-       * Workload must be in the same namespace as the Pod.
-       * If it doesn't match any existing Workload, the Pod will remain unschedulable
-       * until a Workload object is created and observed by the kube-scheduler.
-       * It must be a DNS subdomain.
-       * +required
+       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
+       * +optional
        * 
* - * optional string name = 1; + * optional string gmsaCredentialSpecName = 1; */ public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; + getGmsaCredentialSpecNameBytes() { + java.lang.Object ref = gmsaCredentialSpecName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - name_ = b; + gmsaCredentialSpecName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -392724,101 +393593,87 @@ public java.lang.String getName() { } /** *
-       * Name defines the name of the Workload object this Pod belongs to.
-       * Workload must be in the same namespace as the Pod.
-       * If it doesn't match any existing Workload, the Pod will remain unschedulable
-       * until a Workload object is created and observed by the kube-scheduler.
-       * It must be a DNS subdomain.
-       * +required
+       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
+       * +optional
        * 
* - * optional string name = 1; + * optional string gmsaCredentialSpecName = 1; */ - public Builder setName( + public Builder setGmsaCredentialSpecName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - name_ = value; + gmsaCredentialSpecName_ = value; onChanged(); return this; } /** *
-       * Name defines the name of the Workload object this Pod belongs to.
-       * Workload must be in the same namespace as the Pod.
-       * If it doesn't match any existing Workload, the Pod will remain unschedulable
-       * until a Workload object is created and observed by the kube-scheduler.
-       * It must be a DNS subdomain.
-       * +required
+       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
+       * +optional
        * 
* - * optional string name = 1; + * optional string gmsaCredentialSpecName = 1; */ - public Builder clearName() { + public Builder clearGmsaCredentialSpecName() { bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); + gmsaCredentialSpecName_ = getDefaultInstance().getGmsaCredentialSpecName(); onChanged(); return this; } /** *
-       * Name defines the name of the Workload object this Pod belongs to.
-       * Workload must be in the same namespace as the Pod.
-       * If it doesn't match any existing Workload, the Pod will remain unschedulable
-       * until a Workload object is created and observed by the kube-scheduler.
-       * It must be a DNS subdomain.
-       * +required
+       * GMSACredentialSpecName is the name of the GMSA credential spec to use.
+       * +optional
        * 
* - * optional string name = 1; + * optional string gmsaCredentialSpecName = 1; */ - public Builder setNameBytes( + public Builder setGmsaCredentialSpecNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - name_ = value; + gmsaCredentialSpecName_ = value; onChanged(); return this; } - private java.lang.Object podGroup_ = ""; + private java.lang.Object gmsaCredentialSpec_ = ""; /** *
-       * PodGroup is the name of the PodGroup within the Workload that this Pod
-       * belongs to. If it doesn't match any existing PodGroup within the Workload,
-       * the Pod will remain unschedulable until the Workload object is recreated
-       * and observed by the kube-scheduler. It must be a DNS label.
-       * +required
+       * GMSACredentialSpec is where the GMSA admission webhook
+       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
+       * GMSA credential spec named by the GMSACredentialSpecName field.
+       * +optional
        * 
* - * optional string podGroup = 2; + * optional string gmsaCredentialSpec = 2; */ - public boolean hasPodGroup() { + public boolean hasGmsaCredentialSpec() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
-       * PodGroup is the name of the PodGroup within the Workload that this Pod
-       * belongs to. If it doesn't match any existing PodGroup within the Workload,
-       * the Pod will remain unschedulable until the Workload object is recreated
-       * and observed by the kube-scheduler. It must be a DNS label.
-       * +required
+       * GMSACredentialSpec is where the GMSA admission webhook
+       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
+       * GMSA credential spec named by the GMSACredentialSpecName field.
+       * +optional
        * 
* - * optional string podGroup = 2; + * optional string gmsaCredentialSpec = 2; */ - public java.lang.String getPodGroup() { - java.lang.Object ref = podGroup_; + public java.lang.String getGmsaCredentialSpec() { + java.lang.Object ref = gmsaCredentialSpec_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - podGroup_ = s; + gmsaCredentialSpec_ = s; } return s; } else { @@ -392827,23 +393682,22 @@ public java.lang.String getPodGroup() { } /** *
-       * PodGroup is the name of the PodGroup within the Workload that this Pod
-       * belongs to. If it doesn't match any existing PodGroup within the Workload,
-       * the Pod will remain unschedulable until the Workload object is recreated
-       * and observed by the kube-scheduler. It must be a DNS label.
-       * +required
+       * GMSACredentialSpec is where the GMSA admission webhook
+       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
+       * GMSA credential spec named by the GMSACredentialSpecName field.
+       * +optional
        * 
* - * optional string podGroup = 2; + * optional string gmsaCredentialSpec = 2; */ public com.google.protobuf.ByteString - getPodGroupBytes() { - java.lang.Object ref = podGroup_; + getGmsaCredentialSpecBytes() { + java.lang.Object ref = gmsaCredentialSpec_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - podGroup_ = b; + gmsaCredentialSpec_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -392851,98 +393705,95 @@ public java.lang.String getPodGroup() { } /** *
-       * PodGroup is the name of the PodGroup within the Workload that this Pod
-       * belongs to. If it doesn't match any existing PodGroup within the Workload,
-       * the Pod will remain unschedulable until the Workload object is recreated
-       * and observed by the kube-scheduler. It must be a DNS label.
-       * +required
+       * GMSACredentialSpec is where the GMSA admission webhook
+       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
+       * GMSA credential spec named by the GMSACredentialSpecName field.
+       * +optional
        * 
* - * optional string podGroup = 2; + * optional string gmsaCredentialSpec = 2; */ - public Builder setPodGroup( + public Builder setGmsaCredentialSpec( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - podGroup_ = value; + gmsaCredentialSpec_ = value; onChanged(); return this; } /** *
-       * PodGroup is the name of the PodGroup within the Workload that this Pod
-       * belongs to. If it doesn't match any existing PodGroup within the Workload,
-       * the Pod will remain unschedulable until the Workload object is recreated
-       * and observed by the kube-scheduler. It must be a DNS label.
-       * +required
+       * GMSACredentialSpec is where the GMSA admission webhook
+       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
+       * GMSA credential spec named by the GMSACredentialSpecName field.
+       * +optional
        * 
* - * optional string podGroup = 2; + * optional string gmsaCredentialSpec = 2; */ - public Builder clearPodGroup() { + public Builder clearGmsaCredentialSpec() { bitField0_ = (bitField0_ & ~0x00000002); - podGroup_ = getDefaultInstance().getPodGroup(); + gmsaCredentialSpec_ = getDefaultInstance().getGmsaCredentialSpec(); onChanged(); return this; } /** *
-       * PodGroup is the name of the PodGroup within the Workload that this Pod
-       * belongs to. If it doesn't match any existing PodGroup within the Workload,
-       * the Pod will remain unschedulable until the Workload object is recreated
-       * and observed by the kube-scheduler. It must be a DNS label.
-       * +required
+       * GMSACredentialSpec is where the GMSA admission webhook
+       * (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the
+       * GMSA credential spec named by the GMSACredentialSpecName field.
+       * +optional
        * 
* - * optional string podGroup = 2; + * optional string gmsaCredentialSpec = 2; */ - public Builder setPodGroupBytes( + public Builder setGmsaCredentialSpecBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - podGroup_ = value; + gmsaCredentialSpec_ = value; onChanged(); return this; } - private java.lang.Object podGroupReplicaKey_ = ""; + private java.lang.Object runAsUserName_ = ""; /** *
-       * PodGroupReplicaKey specifies the replica key of the PodGroup to which this
-       * Pod belongs. It is used to distinguish pods belonging to different replicas
-       * of the same pod group. The pod group policy is applied separately to each replica.
-       * When set, it must be a DNS label.
+       * The UserName in Windows to run the entrypoint of the container process.
+       * Defaults to the user specified in image metadata if unspecified.
+       * May also be set in PodSecurityContext. If set in both SecurityContext and
+       * PodSecurityContext, the value specified in SecurityContext takes precedence.
        * +optional
        * 
* - * optional string podGroupReplicaKey = 3; + * optional string runAsUserName = 3; */ - public boolean hasPodGroupReplicaKey() { + public boolean hasRunAsUserName() { return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
-       * PodGroupReplicaKey specifies the replica key of the PodGroup to which this
-       * Pod belongs. It is used to distinguish pods belonging to different replicas
-       * of the same pod group. The pod group policy is applied separately to each replica.
-       * When set, it must be a DNS label.
+       * The UserName in Windows to run the entrypoint of the container process.
+       * Defaults to the user specified in image metadata if unspecified.
+       * May also be set in PodSecurityContext. If set in both SecurityContext and
+       * PodSecurityContext, the value specified in SecurityContext takes precedence.
        * +optional
        * 
* - * optional string podGroupReplicaKey = 3; + * optional string runAsUserName = 3; */ - public java.lang.String getPodGroupReplicaKey() { - java.lang.Object ref = podGroupReplicaKey_; + public java.lang.String getRunAsUserName() { + java.lang.Object ref = runAsUserName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - podGroupReplicaKey_ = s; + runAsUserName_ = s; } return s; } else { @@ -392951,23 +393802,23 @@ public java.lang.String getPodGroupReplicaKey() { } /** *
-       * PodGroupReplicaKey specifies the replica key of the PodGroup to which this
-       * Pod belongs. It is used to distinguish pods belonging to different replicas
-       * of the same pod group. The pod group policy is applied separately to each replica.
-       * When set, it must be a DNS label.
+       * The UserName in Windows to run the entrypoint of the container process.
+       * Defaults to the user specified in image metadata if unspecified.
+       * May also be set in PodSecurityContext. If set in both SecurityContext and
+       * PodSecurityContext, the value specified in SecurityContext takes precedence.
        * +optional
        * 
* - * optional string podGroupReplicaKey = 3; + * optional string runAsUserName = 3; */ public com.google.protobuf.ByteString - getPodGroupReplicaKeyBytes() { - java.lang.Object ref = podGroupReplicaKey_; + getRunAsUserNameBytes() { + java.lang.Object ref = runAsUserName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - podGroupReplicaKey_ = b; + runAsUserName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -392975,60 +393826,124 @@ public java.lang.String getPodGroupReplicaKey() { } /** *
-       * PodGroupReplicaKey specifies the replica key of the PodGroup to which this
-       * Pod belongs. It is used to distinguish pods belonging to different replicas
-       * of the same pod group. The pod group policy is applied separately to each replica.
-       * When set, it must be a DNS label.
+       * The UserName in Windows to run the entrypoint of the container process.
+       * Defaults to the user specified in image metadata if unspecified.
+       * May also be set in PodSecurityContext. If set in both SecurityContext and
+       * PodSecurityContext, the value specified in SecurityContext takes precedence.
        * +optional
        * 
* - * optional string podGroupReplicaKey = 3; + * optional string runAsUserName = 3; */ - public Builder setPodGroupReplicaKey( + public Builder setRunAsUserName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; - podGroupReplicaKey_ = value; + runAsUserName_ = value; onChanged(); return this; } /** *
-       * PodGroupReplicaKey specifies the replica key of the PodGroup to which this
-       * Pod belongs. It is used to distinguish pods belonging to different replicas
-       * of the same pod group. The pod group policy is applied separately to each replica.
-       * When set, it must be a DNS label.
+       * The UserName in Windows to run the entrypoint of the container process.
+       * Defaults to the user specified in image metadata if unspecified.
+       * May also be set in PodSecurityContext. If set in both SecurityContext and
+       * PodSecurityContext, the value specified in SecurityContext takes precedence.
        * +optional
        * 
* - * optional string podGroupReplicaKey = 3; + * optional string runAsUserName = 3; */ - public Builder clearPodGroupReplicaKey() { + public Builder clearRunAsUserName() { bitField0_ = (bitField0_ & ~0x00000004); - podGroupReplicaKey_ = getDefaultInstance().getPodGroupReplicaKey(); + runAsUserName_ = getDefaultInstance().getRunAsUserName(); onChanged(); return this; } /** *
-       * PodGroupReplicaKey specifies the replica key of the PodGroup to which this
-       * Pod belongs. It is used to distinguish pods belonging to different replicas
-       * of the same pod group. The pod group policy is applied separately to each replica.
-       * When set, it must be a DNS label.
+       * The UserName in Windows to run the entrypoint of the container process.
+       * Defaults to the user specified in image metadata if unspecified.
+       * May also be set in PodSecurityContext. If set in both SecurityContext and
+       * PodSecurityContext, the value specified in SecurityContext takes precedence.
        * +optional
        * 
* - * optional string podGroupReplicaKey = 3; + * optional string runAsUserName = 3; */ - public Builder setPodGroupReplicaKeyBytes( + public Builder setRunAsUserNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; - podGroupReplicaKey_ = value; + runAsUserName_ = value; + onChanged(); + return this; + } + + private boolean hostProcess_ ; + /** + *
+       * HostProcess determines if a container should be run as a 'Host Process' container.
+       * All of a Pod's containers must have the same effective HostProcess value
+       * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
+       * In addition, if HostProcess is true then HostNetwork must also be set to true.
+       * +optional
+       * 
+ * + * optional bool hostProcess = 4; + */ + public boolean hasHostProcess() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * HostProcess determines if a container should be run as a 'Host Process' container.
+       * All of a Pod's containers must have the same effective HostProcess value
+       * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
+       * In addition, if HostProcess is true then HostNetwork must also be set to true.
+       * +optional
+       * 
+ * + * optional bool hostProcess = 4; + */ + public boolean getHostProcess() { + return hostProcess_; + } + /** + *
+       * HostProcess determines if a container should be run as a 'Host Process' container.
+       * All of a Pod's containers must have the same effective HostProcess value
+       * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
+       * In addition, if HostProcess is true then HostNetwork must also be set to true.
+       * +optional
+       * 
+ * + * optional bool hostProcess = 4; + */ + public Builder setHostProcess(boolean value) { + bitField0_ |= 0x00000008; + hostProcess_ = value; + onChanged(); + return this; + } + /** + *
+       * HostProcess determines if a container should be run as a 'Host Process' container.
+       * All of a Pod's containers must have the same effective HostProcess value
+       * (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers).
+       * In addition, if HostProcess is true then HostNetwork must also be set to true.
+       * +optional
+       * 
+ * + * optional bool hostProcess = 4; + */ + public Builder clearHostProcess() { + bitField0_ = (bitField0_ & ~0x00000008); + hostProcess_ = false; onChanged(); return this; } @@ -393045,41 +393960,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.WorkloadReference) + // @@protoc_insertion_point(builder_scope:k8s.io.api.core.v1.WindowsSecurityContextOptions) } - // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.WorkloadReference) - private static final io.kubernetes.client.proto.V1.WorkloadReference DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:k8s.io.api.core.v1.WindowsSecurityContextOptions) + private static final io.kubernetes.client.proto.V1.WindowsSecurityContextOptions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.WorkloadReference(); + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1.WindowsSecurityContextOptions(); } - public static io.kubernetes.client.proto.V1.WorkloadReference getDefaultInstance() { + public static io.kubernetes.client.proto.V1.WindowsSecurityContextOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public WorkloadReference parsePartialFrom( + public WindowsSecurityContextOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new WorkloadReference(input, extensionRegistry); + return new WindowsSecurityContextOptions(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.kubernetes.client.proto.V1.WorkloadReference getDefaultInstanceForType() { + public io.kubernetes.client.proto.V1.WindowsSecurityContextOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -393665,6 +394580,16 @@ public io.kubernetes.client.proto.V1.WorkloadReference getDefaultInstanceForType private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_NodeAffinity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_ResourcesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_ResourcesEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_NodeCondition_descriptor; private static final @@ -393960,6 +394885,11 @@ public io.kubernetes.client.proto.V1.WorkloadReference getDefaultInstanceForType private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodSchedulingGate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_core_v1_PodSchedulingGroup_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_core_v1_PodSchedulingGroup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodSecurityContext_descriptor; private static final @@ -393995,11 +394925,6 @@ public io.kubernetes.client.proto.V1.WorkloadReference getDefaultInstanceForType private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_PodStatus_AllocatedResourcesEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_k8s_io_api_core_v1_PodStatusResult_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_k8s_io_api_core_v1_PodStatusResult_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_core_v1_PodTemplate_descriptor; private static final @@ -394445,11 +395370,6 @@ public io.kubernetes.client.proto.V1.WorkloadReference getDefaultInstanceForType private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_k8s_io_api_core_v1_WorkloadReference_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_k8s_io_api_core_v1_WorkloadReference_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -394878,710 +395798,716 @@ public io.kubernetes.client.proto.V1.WorkloadReference getDefaultInstanceForType "ecution\030\001 \001(\0132 .k8s.io.api.core.v1.NodeS" + "elector\022d\n/preferredDuringSchedulingIgno" + "redDuringExecution\030\002 \003(\0132+.k8s.io.api.co" + - "re.v1.PreferredSchedulingTerm\"\335\001\n\rNodeCo" + - "ndition\022\014\n\004type\030\001 \001(\t\022\016\n\006status\030\002 \001(\t\022E\n" + - "\021lastHeartbeatTime\030\003 \001(\0132*.k8s.io.apimac" + - "hinery.pkg.apis.meta.v1.Time\022F\n\022lastTran" + - "sitionTime\030\004 \001(\0132*.k8s.io.apimachinery.p" + - "kg.apis.meta.v1.Time\022\016\n\006reason\030\005 \001(\t\022\017\n\007" + - "message\030\006 \001(\t\"T\n\020NodeConfigSource\022@\n\tcon" + - "figMap\030\002 \001(\0132-.k8s.io.api.core.v1.Config" + - "MapNodeConfigSource\"\314\001\n\020NodeConfigStatus" + - "\0226\n\010assigned\030\001 \001(\0132$.k8s.io.api.core.v1." + - "NodeConfigSource\0224\n\006active\030\002 \001(\0132$.k8s.i" + - "o.api.core.v1.NodeConfigSource\022;\n\rlastKn" + - "ownGood\030\003 \001(\0132$.k8s.io.api.core.v1.NodeC" + - "onfigSource\022\r\n\005error\030\004 \001(\t\"R\n\023NodeDaemon" + - "Endpoints\022;\n\017kubeletEndpoint\030\001 \001(\0132\".k8s" + - ".io.api.core.v1.DaemonEndpoint\"0\n\014NodeFe" + - "atures\022 \n\030supplementalGroupsPolicy\030\001 \001(\010" + - "\"u\n\010NodeList\022@\n\010metadata\030\001 \001(\0132..k8s.io." + - "apimachinery.pkg.apis.meta.v1.ListMeta\022\'" + - "\n\005items\030\002 \003(\0132\030.k8s.io.api.core.v1.Node\"" + - " \n\020NodeProxyOptions\022\014\n\004path\030\001 \001(\t\"d\n\022Nod" + - "eRuntimeHandler\022\014\n\004name\030\001 \001(\t\022@\n\010feature" + - "s\030\002 \001(\0132..k8s.io.api.core.v1.NodeRuntime" + - "HandlerFeatures\"U\n\032NodeRuntimeHandlerFea" + - "tures\022\037\n\027recursiveReadOnlyMounts\030\001 \001(\010\022\026" + - "\n\016userNamespaces\030\002 \001(\010\"O\n\014NodeSelector\022?" + - "\n\021nodeSelectorTerms\030\001 \003(\0132$.k8s.io.api.c" + - "ore.v1.NodeSelectorTerm\"H\n\027NodeSelectorR" + - "equirement\022\013\n\003key\030\001 \001(\t\022\020\n\010operator\030\002 \001(" + - "\t\022\016\n\006values\030\003 \003(\t\"\233\001\n\020NodeSelectorTerm\022E" + - "\n\020matchExpressions\030\001 \003(\0132+.k8s.io.api.co" + - "re.v1.NodeSelectorRequirement\022@\n\013matchFi" + - "elds\030\002 \003(\0132+.k8s.io.api.core.v1.NodeSele" + - "ctorRequirement\"\323\001\n\010NodeSpec\022\017\n\007podCIDR\030" + - "\001 \001(\t\022\020\n\010podCIDRs\030\007 \003(\t\022\022\n\nproviderID\030\003 " + - "\001(\t\022\025\n\runschedulable\030\004 \001(\010\022)\n\006taints\030\005 \003" + - "(\0132\031.k8s.io.api.core.v1.Taint\022:\n\014configS" + - "ource\030\006 \001(\0132$.k8s.io.api.core.v1.NodeCon" + - "figSource\022\022\n\nexternalID\030\002 \001(\t\"\225\007\n\nNodeSt" + - "atus\022>\n\010capacity\030\001 \003(\0132,.k8s.io.api.core" + - ".v1.NodeStatus.CapacityEntry\022D\n\013allocata" + - "ble\030\002 \003(\0132/.k8s.io.api.core.v1.NodeStatu" + - "s.AllocatableEntry\022\r\n\005phase\030\003 \001(\t\0225\n\ncon" + - "ditions\030\004 \003(\0132!.k8s.io.api.core.v1.NodeC" + - "ondition\0222\n\taddresses\030\005 \003(\0132\037.k8s.io.api" + - ".core.v1.NodeAddress\022@\n\017daemonEndpoints\030" + - "\006 \001(\0132\'.k8s.io.api.core.v1.NodeDaemonEnd" + - "points\0224\n\010nodeInfo\030\007 \001(\0132\".k8s.io.api.co" + - "re.v1.NodeSystemInfo\0222\n\006images\030\010 \003(\0132\".k" + - "8s.io.api.core.v1.ContainerImage\022\024\n\014volu" + - "mesInUse\030\t \003(\t\022;\n\017volumesAttached\030\n \003(\0132" + - "\".k8s.io.api.core.v1.AttachedVolume\0224\n\006c" + - "onfig\030\013 \001(\0132$.k8s.io.api.core.v1.NodeCon" + - "figStatus\022?\n\017runtimeHandlers\030\014 \003(\0132&.k8s" + - ".io.api.core.v1.NodeRuntimeHandler\0222\n\010fe" + - "atures\030\r \001(\0132 .k8s.io.api.core.v1.NodeFe" + - "atures\022\030\n\020declaredFeatures\030\016 \003(\t\032_\n\rCapa" + - "cityEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132.." + - "k8s.io.apimachinery.pkg.api.resource.Qua" + - "ntity:\0028\001\032b\n\020AllocatableEntry\022\013\n\003key\030\001 \001" + - "(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apimachinery." + - "pkg.api.resource.Quantity:\0028\001\"\"\n\016NodeSwa" + - "pStatus\022\020\n\010capacity\030\001 \001(\003\"\243\002\n\016NodeSystem" + - "Info\022\021\n\tmachineID\030\001 \001(\t\022\022\n\nsystemUUID\030\002 " + - "\001(\t\022\016\n\006bootID\030\003 \001(\t\022\025\n\rkernelVersion\030\004 \001" + - "(\t\022\017\n\007osImage\030\005 \001(\t\022\037\n\027containerRuntimeV" + - "ersion\030\006 \001(\t\022\026\n\016kubeletVersion\030\007 \001(\t\022\030\n\020" + - "kubeProxyVersion\030\010 \001(\t\022\027\n\017operatingSyste" + - "m\030\t \001(\t\022\024\n\014architecture\030\n \001(\t\0220\n\004swap\030\013 " + - "\001(\0132\".k8s.io.api.core.v1.NodeSwapStatus\"" + - "<\n\023ObjectFieldSelector\022\022\n\napiVersion\030\001 \001" + - "(\t\022\021\n\tfieldPath\030\002 \001(\t\"\215\001\n\017ObjectReferenc" + - "e\022\014\n\004kind\030\001 \001(\t\022\021\n\tnamespace\030\002 \001(\t\022\014\n\004na" + - "me\030\003 \001(\t\022\013\n\003uid\030\004 \001(\t\022\022\n\napiVersion\030\005 \001(" + - "\t\022\027\n\017resourceVersion\030\006 \001(\t\022\021\n\tfieldPath\030" + - "\007 \001(\t\"\312\001\n\020PersistentVolume\022B\n\010metadata\030\001" + - " \001(\01320.k8s.io.apimachinery.pkg.apis.meta" + - ".v1.ObjectMeta\0226\n\004spec\030\002 \001(\0132(.k8s.io.ap" + - "i.core.v1.PersistentVolumeSpec\022:\n\006status" + - "\030\003 \001(\0132*.k8s.io.api.core.v1.PersistentVo" + - "lumeStatus\"\331\001\n\025PersistentVolumeClaim\022B\n\010" + - "metadata\030\001 \001(\01320.k8s.io.apimachinery.pkg" + - ".apis.meta.v1.ObjectMeta\022;\n\004spec\030\002 \001(\0132-" + - ".k8s.io.api.core.v1.PersistentVolumeClai" + - "mSpec\022?\n\006status\030\003 \001(\0132/.k8s.io.api.core." + - "v1.PersistentVolumeClaimStatus\"\352\001\n\036Persi" + - "stentVolumeClaimCondition\022\014\n\004type\030\001 \001(\t\022" + - "\016\n\006status\030\002 \001(\t\022A\n\rlastProbeTime\030\003 \001(\0132*" + - ".k8s.io.apimachinery.pkg.apis.meta.v1.Ti" + - "me\022F\n\022lastTransitionTime\030\004 \001(\0132*.k8s.io." + - "apimachinery.pkg.apis.meta.v1.Time\022\016\n\006re" + - "ason\030\005 \001(\t\022\017\n\007message\030\006 \001(\t\"\227\001\n\031Persiste" + - "ntVolumeClaimList\022@\n\010metadata\030\001 \001(\0132..k8" + - "s.io.apimachinery.pkg.apis.meta.v1.ListM" + - "eta\0228\n\005items\030\002 \003(\0132).k8s.io.api.core.v1." + - "PersistentVolumeClaim\"\243\003\n\031PersistentVolu" + - "meClaimSpec\022\023\n\013accessModes\030\001 \003(\t\022E\n\010sele" + - "ctor\030\004 \001(\01323.k8s.io.apimachinery.pkg.api" + - "s.meta.v1.LabelSelector\022A\n\tresources\030\002 \001" + - "(\0132..k8s.io.api.core.v1.VolumeResourceRe" + - "quirements\022\022\n\nvolumeName\030\003 \001(\t\022\030\n\020storag" + - "eClassName\030\005 \001(\t\022\022\n\nvolumeMode\030\006 \001(\t\022A\n\n" + - "dataSource\030\007 \001(\0132-.k8s.io.api.core.v1.Ty" + - "pedLocalObjectReference\022?\n\rdataSourceRef" + - "\030\010 \001(\0132(.k8s.io.api.core.v1.TypedObjectR" + - "eference\022!\n\031volumeAttributesClassName\030\t " + - "\001(\t\"\256\006\n\033PersistentVolumeClaimStatus\022\r\n\005p" + - "hase\030\001 \001(\t\022\023\n\013accessModes\030\002 \003(\t\022O\n\010capac" + - "ity\030\003 \003(\0132=.k8s.io.api.core.v1.Persisten" + - "tVolumeClaimStatus.CapacityEntry\022F\n\ncond" + - "itions\030\004 \003(\01322.k8s.io.api.core.v1.Persis" + - "tentVolumeClaimCondition\022c\n\022allocatedRes" + - "ources\030\005 \003(\0132G.k8s.io.api.core.v1.Persis" + - "tentVolumeClaimStatus.AllocatedResources" + - "Entry\022q\n\031allocatedResourceStatuses\030\007 \003(\013" + - "2N.k8s.io.api.core.v1.PersistentVolumeCl" + - "aimStatus.AllocatedResourceStatusesEntry" + - "\022(\n currentVolumeAttributesClassName\030\010 \001" + - "(\t\022B\n\022modifyVolumeStatus\030\t \001(\0132&.k8s.io." + - "api.core.v1.ModifyVolumeStatus\032_\n\rCapaci" + - "tyEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8" + - "s.io.apimachinery.pkg.api.resource.Quant" + - "ity:\0028\001\032i\n\027AllocatedResourcesEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apimachi" + - "nery.pkg.api.resource.Quantity:\0028\001\032@\n\036Al" + - "locatedResourceStatusesEntry\022\013\n\003key\030\001 \001(" + - "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\240\001\n\035PersistentVolum" + - "eClaimTemplate\022B\n\010metadata\030\001 \001(\01320.k8s.i" + - "o.apimachinery.pkg.apis.meta.v1.ObjectMe" + - "ta\022;\n\004spec\030\002 \001(\0132-.k8s.io.api.core.v1.Pe" + - "rsistentVolumeClaimSpec\"H\n!PersistentVol" + - "umeClaimVolumeSource\022\021\n\tclaimName\030\001 \001(\t\022" + - "\020\n\010readOnly\030\002 \001(\010\"\215\001\n\024PersistentVolumeLi" + - "st\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimachine" + - "ry.pkg.apis.meta.v1.ListMeta\0223\n\005items\030\002 " + - "\003(\0132$.k8s.io.api.core.v1.PersistentVolum" + - "e\"\275\013\n\026PersistentVolumeSource\022L\n\021gcePersi" + - "stentDisk\030\001 \001(\01321.k8s.io.api.core.v1.GCE" + - "PersistentDiskVolumeSource\022R\n\024awsElastic" + - "BlockStore\030\002 \001(\01324.k8s.io.api.core.v1.AW" + - "SElasticBlockStoreVolumeSource\022:\n\010hostPa" + - "th\030\003 \001(\0132(.k8s.io.api.core.v1.HostPathVo" + - "lumeSource\022F\n\tglusterfs\030\004 \001(\01323.k8s.io.a" + - "pi.core.v1.GlusterfsPersistentVolumeSour" + - "ce\0220\n\003nfs\030\005 \001(\0132#.k8s.io.api.core.v1.NFS" + - "VolumeSource\022:\n\003rbd\030\006 \001(\0132-.k8s.io.api.c" + - "ore.v1.RBDPersistentVolumeSource\022>\n\005iscs" + - "i\030\007 \001(\0132/.k8s.io.api.core.v1.ISCSIPersis" + - "tentVolumeSource\022@\n\006cinder\030\010 \001(\01320.k8s.i" + - "o.api.core.v1.CinderPersistentVolumeSour" + - "ce\022@\n\006cephfs\030\t \001(\01320.k8s.io.api.core.v1." + - "CephFSPersistentVolumeSource\022.\n\002fc\030\n \001(\013" + - "2\".k8s.io.api.core.v1.FCVolumeSource\0228\n\007" + - "flocker\030\013 \001(\0132\'.k8s.io.api.core.v1.Flock" + - "erVolumeSource\022B\n\nflexVolume\030\014 \001(\0132..k8s" + - ".io.api.core.v1.FlexPersistentVolumeSour" + - "ce\022F\n\tazureFile\030\r \001(\01323.k8s.io.api.core." + - "v1.AzureFilePersistentVolumeSource\022I\n\rvs" + - "phereVolume\030\016 \001(\01322.k8s.io.api.core.v1.V" + - "sphereVirtualDiskVolumeSource\0228\n\007quobyte" + - "\030\017 \001(\0132\'.k8s.io.api.core.v1.QuobyteVolum" + - "eSource\022<\n\tazureDisk\030\020 \001(\0132).k8s.io.api." + - "core.v1.AzureDiskVolumeSource\022R\n\024photonP" + - "ersistentDisk\030\021 \001(\01324.k8s.io.api.core.v1" + - ".PhotonPersistentDiskVolumeSource\022@\n\016por" + - "tworxVolume\030\022 \001(\0132(.k8s.io.api.core.v1.P" + - "ortworxVolumeSource\022B\n\007scaleIO\030\023 \001(\01321.k" + - "8s.io.api.core.v1.ScaleIOPersistentVolum" + - "eSource\0224\n\005local\030\024 \001(\0132%.k8s.io.api.core" + - ".v1.LocalVolumeSource\022F\n\tstorageos\030\025 \001(\013" + - "23.k8s.io.api.core.v1.StorageOSPersisten" + - "tVolumeSource\022:\n\003csi\030\026 \001(\0132-.k8s.io.api." + - "core.v1.CSIPersistentVolumeSource\"\245\004\n\024Pe" + - "rsistentVolumeSpec\022H\n\010capacity\030\001 \003(\01326.k" + - "8s.io.api.core.v1.PersistentVolumeSpec.C" + - "apacityEntry\022J\n\026persistentVolumeSource\030\002" + - " \001(\0132*.k8s.io.api.core.v1.PersistentVolu" + - "meSource\022\023\n\013accessModes\030\003 \003(\t\0225\n\010claimRe" + - "f\030\004 \001(\0132#.k8s.io.api.core.v1.ObjectRefer" + - "ence\022%\n\035persistentVolumeReclaimPolicy\030\005 " + - "\001(\t\022\030\n\020storageClassName\030\006 \001(\t\022\024\n\014mountOp" + - "tions\030\007 \003(\t\022\022\n\nvolumeMode\030\010 \001(\t\022<\n\014nodeA" + - "ffinity\030\t \001(\0132&.k8s.io.api.core.v1.Volum" + - "eNodeAffinity\022!\n\031volumeAttributesClassNa" + - "me\030\n \001(\t\032_\n\rCapacityEntry\022\013\n\003key\030\001 \001(\t\022=" + - "\n\005value\030\002 \001(\0132..k8s.io.apimachinery.pkg." + - "api.resource.Quantity:\0028\001\"\225\001\n\026Persistent" + - "VolumeStatus\022\r\n\005phase\030\001 \001(\t\022\017\n\007message\030\002" + - " \001(\t\022\016\n\006reason\030\003 \001(\t\022K\n\027lastPhaseTransit" + - "ionTime\030\004 \001(\0132*.k8s.io.apimachinery.pkg." + - "apis.meta.v1.Time\"@\n PhotonPersistentDis" + - "kVolumeSource\022\014\n\004pdID\030\001 \001(\t\022\016\n\006fsType\030\002 " + - "\001(\t\"\243\001\n\003Pod\022B\n\010metadata\030\001 \001(\01320.k8s.io.a" + - "pimachinery.pkg.apis.meta.v1.ObjectMeta\022" + - ")\n\004spec\030\002 \001(\0132\033.k8s.io.api.core.v1.PodSp" + - "ec\022-\n\006status\030\003 \001(\0132\035.k8s.io.api.core.v1." + - "PodStatus\"\320\001\n\013PodAffinity\022[\n.requiredDur" + - "ingSchedulingIgnoredDuringExecution\030\001 \003(" + - "\0132#.k8s.io.api.core.v1.PodAffinityTerm\022d" + - "\n/preferredDuringSchedulingIgnoredDuring" + - "Execution\030\002 \003(\0132+.k8s.io.api.core.v1.Wei" + - "ghtedPodAffinityTerm\"\211\002\n\017PodAffinityTerm" + - "\022J\n\rlabelSelector\030\001 \001(\01323.k8s.io.apimach" + - "inery.pkg.apis.meta.v1.LabelSelector\022\022\n\n" + - "namespaces\030\002 \003(\t\022\023\n\013topologyKey\030\003 \001(\t\022N\n" + - "\021namespaceSelector\030\004 \001(\01323.k8s.io.apimac" + - "hinery.pkg.apis.meta.v1.LabelSelector\022\026\n" + - "\016matchLabelKeys\030\005 \003(\t\022\031\n\021mismatchLabelKe" + - "ys\030\006 \003(\t\"\324\001\n\017PodAntiAffinity\022[\n.required" + - "DuringSchedulingIgnoredDuringExecution\030\001" + - " \003(\0132#.k8s.io.api.core.v1.PodAffinityTer" + - "m\022d\n/preferredDuringSchedulingIgnoredDur" + - "ingExecution\030\002 \003(\0132+.k8s.io.api.core.v1." + - "WeightedPodAffinityTerm\"a\n\020PodAttachOpti" + - "ons\022\r\n\005stdin\030\001 \001(\010\022\016\n\006stdout\030\002 \001(\010\022\016\n\006st" + - "derr\030\003 \001(\010\022\013\n\003tty\030\004 \001(\010\022\021\n\tcontainer\030\005 \001" + - "(\t\"\276\002\n\030PodCertificateProjection\022\022\n\nsigne" + - "rName\030\001 \001(\t\022\017\n\007keyType\030\002 \001(\t\022\034\n\024maxExpir" + - "ationSeconds\030\003 \001(\005\022\034\n\024credentialBundlePa" + - "th\030\004 \001(\t\022\017\n\007keyPath\030\005 \001(\t\022\034\n\024certificate" + - "ChainPath\030\006 \001(\t\022Z\n\017userAnnotations\030\007 \003(\013" + - "2A.k8s.io.api.core.v1.PodCertificateProj" + - "ection.UserAnnotationsEntry\0326\n\024UserAnnot" + - "ationsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + - "\0028\001\"\364\001\n\014PodCondition\022\014\n\004type\030\001 \001(\t\022\032\n\022ob" + - "servedGeneration\030\007 \001(\003\022\016\n\006status\030\002 \001(\t\022A" + - "\n\rlastProbeTime\030\003 \001(\0132*.k8s.io.apimachin" + - "ery.pkg.apis.meta.v1.Time\022F\n\022lastTransit" + - "ionTime\030\004 \001(\0132*.k8s.io.apimachinery.pkg." + - "apis.meta.v1.Time\022\016\n\006reason\030\005 \001(\t\022\017\n\007mes" + - "sage\030\006 \001(\t\"n\n\014PodDNSConfig\022\023\n\013nameserver" + - "s\030\001 \003(\t\022\020\n\010searches\030\002 \003(\t\0227\n\007options\030\003 \003" + - "(\0132&.k8s.io.api.core.v1.PodDNSConfigOpti" + - "on\"1\n\022PodDNSConfigOption\022\014\n\004name\030\001 \001(\t\022\r" + - "\n\005value\030\002 \001(\t\"p\n\016PodExecOptions\022\r\n\005stdin" + - "\030\001 \001(\010\022\016\n\006stdout\030\002 \001(\010\022\016\n\006stderr\030\003 \001(\010\022\013" + - "\n\003tty\030\004 \001(\010\022\021\n\tcontainer\030\005 \001(\t\022\017\n\007comman" + - "d\030\006 \003(\t\"\212\001\n\036PodExtendedResourceClaimStat" + - "us\022M\n\017requestMappings\030\001 \003(\01324.k8s.io.api" + - ".core.v1.ContainerExtendedResourceReques" + - "t\022\031\n\021resourceClaimName\030\002 \001(\t\"\023\n\005PodIP\022\n\n" + - "\002ip\030\001 \001(\t\"s\n\007PodList\022@\n\010metadata\030\001 \001(\0132." + - ".k8s.io.apimachinery.pkg.apis.meta.v1.Li" + - "stMeta\022&\n\005items\030\002 \003(\0132\027.k8s.io.api.core." + - "v1.Pod\"\212\002\n\rPodLogOptions\022\021\n\tcontainer\030\001 " + - "\001(\t\022\016\n\006follow\030\002 \001(\010\022\020\n\010previous\030\003 \001(\010\022\024\n" + - "\014sinceSeconds\030\004 \001(\003\022=\n\tsinceTime\030\005 \001(\0132*" + - ".k8s.io.apimachinery.pkg.apis.meta.v1.Ti" + - "me\022\022\n\ntimestamps\030\006 \001(\010\022\021\n\ttailLines\030\007 \001(" + - "\003\022\022\n\nlimitBytes\030\010 \001(\003\022$\n\034insecureSkipTLS" + - "VerifyBackend\030\t \001(\010\022\016\n\006stream\030\n \001(\t\"\025\n\005P" + - "odOS\022\014\n\004name\030\001 \001(\t\"&\n\025PodPortForwardOpti" + - "ons\022\r\n\005ports\030\001 \003(\005\"\037\n\017PodProxyOptions\022\014\n" + - "\004path\030\001 \001(\t\")\n\020PodReadinessGate\022\025\n\rcondi" + - "tionType\030\001 \001(\t\"^\n\020PodResourceClaim\022\014\n\004na" + - "me\030\001 \001(\t\022\031\n\021resourceClaimName\030\003 \001(\t\022!\n\031r" + - "esourceClaimTemplateName\030\004 \001(\t\"A\n\026PodRes" + - "ourceClaimStatus\022\014\n\004name\030\001 \001(\t\022\031\n\021resour" + - "ceClaimName\030\002 \001(\t\"!\n\021PodSchedulingGate\022\014" + - "\n\004name\030\001 \001(\t\"\210\004\n\022PodSecurityContext\022:\n\016s" + - "eLinuxOptions\030\001 \001(\0132\".k8s.io.api.core.v1" + - ".SELinuxOptions\022I\n\016windowsOptions\030\010 \001(\0132" + - "1.k8s.io.api.core.v1.WindowsSecurityCont" + - "extOptions\022\021\n\trunAsUser\030\002 \001(\003\022\022\n\nrunAsGr" + - "oup\030\006 \001(\003\022\024\n\014runAsNonRoot\030\003 \001(\010\022\032\n\022suppl" + - "ementalGroups\030\004 \003(\003\022 \n\030supplementalGroup" + - "sPolicy\030\014 \001(\t\022\017\n\007fsGroup\030\005 \001(\003\022+\n\007sysctl" + - "s\030\007 \003(\0132\032.k8s.io.api.core.v1.Sysctl\022\033\n\023f" + - "sGroupChangePolicy\030\t \001(\t\022:\n\016seccompProfi" + - "le\030\n \001(\0132\".k8s.io.api.core.v1.SeccompPro" + - "file\022<\n\017appArmorProfile\030\013 \001(\0132#.k8s.io.a" + - "pi.core.v1.AppArmorProfile\022\033\n\023seLinuxCha" + - "ngePolicy\030\r \001(\t\"[\n\014PodSignature\022K\n\rpodCo" + - "ntroller\030\001 \001(\01324.k8s.io.apimachinery.pkg" + - ".apis.meta.v1.OwnerReference\"\260\016\n\007PodSpec" + - "\022+\n\007volumes\030\001 \003(\0132\032.k8s.io.api.core.v1.V" + - "olume\0225\n\016initContainers\030\024 \003(\0132\035.k8s.io.a" + - "pi.core.v1.Container\0221\n\ncontainers\030\002 \003(\013" + - "2\035.k8s.io.api.core.v1.Container\022C\n\023ephem" + - "eralContainers\030\" \003(\0132&.k8s.io.api.core.v" + - "1.EphemeralContainer\022\025\n\rrestartPolicy\030\003 " + - "\001(\t\022%\n\035terminationGracePeriodSeconds\030\004 \001" + - "(\003\022\035\n\025activeDeadlineSeconds\030\005 \001(\003\022\021\n\tdns" + - "Policy\030\006 \001(\t\022C\n\014nodeSelector\030\007 \003(\0132-.k8s" + - ".io.api.core.v1.PodSpec.NodeSelectorEntr" + - "y\022\032\n\022serviceAccountName\030\010 \001(\t\022\026\n\016service" + - "Account\030\t \001(\t\022$\n\034automountServiceAccount" + - "Token\030\025 \001(\010\022\020\n\010nodeName\030\n \001(\t\022\023\n\013hostNet" + - "work\030\013 \001(\010\022\017\n\007hostPID\030\014 \001(\010\022\017\n\007hostIPC\030\r" + - " \001(\010\022\035\n\025shareProcessNamespace\030\033 \001(\010\022?\n\017s" + - "ecurityContext\030\016 \001(\0132&.k8s.io.api.core.v" + - "1.PodSecurityContext\022B\n\020imagePullSecrets" + - "\030\017 \003(\0132(.k8s.io.api.core.v1.LocalObjectR" + - "eference\022\020\n\010hostname\030\020 \001(\t\022\021\n\tsubdomain\030" + - "\021 \001(\t\022.\n\010affinity\030\022 \001(\0132\034.k8s.io.api.cor" + - "e.v1.Affinity\022\025\n\rschedulerName\030\023 \001(\t\0223\n\013" + - "tolerations\030\026 \003(\0132\036.k8s.io.api.core.v1.T" + - "oleration\0222\n\013hostAliases\030\027 \003(\0132\035.k8s.io." + - "api.core.v1.HostAlias\022\031\n\021priorityClassNa" + - "me\030\030 \001(\t\022\020\n\010priority\030\031 \001(\005\0223\n\tdnsConfig\030" + - "\032 \001(\0132 .k8s.io.api.core.v1.PodDNSConfig\022" + - "<\n\016readinessGates\030\034 \003(\0132$.k8s.io.api.cor" + - "e.v1.PodReadinessGate\022\030\n\020runtimeClassNam" + - "e\030\035 \001(\t\022\032\n\022enableServiceLinks\030\036 \001(\010\022\030\n\020p" + - "reemptionPolicy\030\037 \001(\t\022;\n\010overhead\030 \003(\0132" + - ").k8s.io.api.core.v1.PodSpec.OverheadEnt" + - "ry\022O\n\031topologySpreadConstraints\030! \003(\0132,." + - "k8s.io.api.core.v1.TopologySpreadConstra" + - "int\022\031\n\021setHostnameAsFQDN\030# \001(\010\022%\n\002os\030$ \001" + - "(\0132\031.k8s.io.api.core.v1.PodOS\022\021\n\thostUse" + - "rs\030% \001(\010\022>\n\017schedulingGates\030& \003(\0132%.k8s." + - "io.api.core.v1.PodSchedulingGate\022<\n\016reso" + - "urceClaims\030\' \003(\0132$.k8s.io.api.core.v1.Po" + - "dResourceClaim\022;\n\tresources\030( \001(\0132(.k8s." + - "io.api.core.v1.ResourceRequirements\022\030\n\020h" + - "ostnameOverride\030) \001(\t\022:\n\013workloadRef\030* \001" + - "(\0132%.k8s.io.api.core.v1.WorkloadReferenc" + - "e\0323\n\021NodeSelectorEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + - "alue\030\002 \001(\t:\0028\001\032_\n\rOverheadEntry\022\013\n\003key\030\001" + - " \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apimachiner" + - "y.pkg.api.resource.Quantity:\0028\001\"\354\007\n\tPodS" + - "tatus\022\032\n\022observedGeneration\030\021 \001(\003\022\r\n\005pha" + - "se\030\001 \001(\t\0224\n\nconditions\030\002 \003(\0132 .k8s.io.ap" + - "i.core.v1.PodCondition\022\017\n\007message\030\003 \001(\t\022" + - "\016\n\006reason\030\004 \001(\t\022\031\n\021nominatedNodeName\030\013 \001" + - "(\t\022\016\n\006hostIP\030\005 \001(\t\022+\n\007hostIPs\030\020 \003(\0132\032.k8" + - "s.io.api.core.v1.HostIP\022\r\n\005podIP\030\006 \001(\t\022)" + - "\n\006podIPs\030\014 \003(\0132\031.k8s.io.api.core.v1.PodI" + - "P\022=\n\tstartTime\030\007 \001(\0132*.k8s.io.apimachine" + - "ry.pkg.apis.meta.v1.Time\022B\n\025initContaine" + - "rStatuses\030\n \003(\0132#.k8s.io.api.core.v1.Con" + - "tainerStatus\022>\n\021containerStatuses\030\010 \003(\0132" + - "#.k8s.io.api.core.v1.ContainerStatus\022\020\n\010" + - "qosClass\030\t \001(\t\022G\n\032ephemeralContainerStat" + - "uses\030\r \003(\0132#.k8s.io.api.core.v1.Containe" + - "rStatus\022\016\n\006resize\030\016 \001(\t\022I\n\025resourceClaim" + - "Statuses\030\017 \003(\0132*.k8s.io.api.core.v1.PodR" + - "esourceClaimStatus\022W\n\033extendedResourceCl" + - "aimStatus\030\022 \001(\01322.k8s.io.api.core.v1.Pod" + - "ExtendedResourceClaimStatus\022Q\n\022allocated" + - "Resources\030\023 \003(\01325.k8s.io.api.core.v1.Pod" + - "Status.AllocatedResourcesEntry\022;\n\tresour" + - "ces\030\024 \001(\0132(.k8s.io.api.core.v1.ResourceR" + - "equirements\032i\n\027AllocatedResourcesEntry\022\013" + - "\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apim" + - "achinery.pkg.api.resource.Quantity:\0028\001\"\204" + - "\001\n\017PodStatusResult\022B\n\010metadata\030\001 \001(\01320.k" + - "8s.io.apimachinery.pkg.apis.meta.v1.Obje" + - "ctMeta\022-\n\006status\030\002 \001(\0132\035.k8s.io.api.core" + - ".v1.PodStatus\"\210\001\n\013PodTemplate\022B\n\010metadat" + - "a\030\001 \001(\01320.k8s.io.apimachinery.pkg.apis.m" + - "eta.v1.ObjectMeta\0225\n\010template\030\002 \001(\0132#.k8" + - "s.io.api.core.v1.PodTemplateSpec\"\203\001\n\017Pod" + - "TemplateList\022@\n\010metadata\030\001 \001(\0132..k8s.io." + - "apimachinery.pkg.apis.meta.v1.ListMeta\022." + - "\n\005items\030\002 \003(\0132\037.k8s.io.api.core.v1.PodTe" + - "mplate\"\200\001\n\017PodTemplateSpec\022B\n\010metadata\030\001" + - " \001(\01320.k8s.io.apimachinery.pkg.apis.meta" + - ".v1.ObjectMeta\022)\n\004spec\030\002 \001(\0132\033.k8s.io.ap" + - "i.core.v1.PodSpec\";\n\nPortStatus\022\014\n\004port\030" + - "\001 \001(\005\022\020\n\010protocol\030\002 \001(\t\022\r\n\005error\030\003 \001(\t\"J" + - "\n\024PortworxVolumeSource\022\020\n\010volumeID\030\001 \001(\t" + - "\022\016\n\006fsType\030\002 \001(\t\022\020\n\010readOnly\030\003 \001(\010\"\034\n\rPr" + - "econditions\022\013\n\003uid\030\001 \001(\t\"\261\001\n\024PreferAvoid" + - "PodsEntry\0226\n\014podSignature\030\001 \001(\0132 .k8s.io" + - ".api.core.v1.PodSignature\022@\n\014evictionTim" + - "e\030\002 \001(\0132*.k8s.io.apimachinery.pkg.apis.m" + - "eta.v1.Time\022\016\n\006reason\030\003 \001(\t\022\017\n\007message\030\004" + - " \001(\t\"c\n\027PreferredSchedulingTerm\022\016\n\006weigh" + - "t\030\001 \001(\005\0228\n\npreference\030\002 \001(\0132$.k8s.io.api" + - ".core.v1.NodeSelectorTerm\"\341\001\n\005Probe\0221\n\007h" + - "andler\030\001 \001(\0132 .k8s.io.api.core.v1.ProbeH" + - "andler\022\033\n\023initialDelaySeconds\030\002 \001(\005\022\026\n\016t" + - "imeoutSeconds\030\003 \001(\005\022\025\n\rperiodSeconds\030\004 \001" + - "(\005\022\030\n\020successThreshold\030\005 \001(\005\022\030\n\020failureT" + - "hreshold\030\006 \001(\005\022%\n\035terminationGracePeriod" + - "Seconds\030\007 \001(\003\"\326\001\n\014ProbeHandler\022,\n\004exec\030\001" + - " \001(\0132\036.k8s.io.api.core.v1.ExecAction\0222\n\007" + - "httpGet\030\002 \001(\0132!.k8s.io.api.core.v1.HTTPG" + - "etAction\0226\n\ttcpSocket\030\003 \001(\0132#.k8s.io.api" + - ".core.v1.TCPSocketAction\022,\n\004grpc\030\004 \001(\0132\036", - ".k8s.io.api.core.v1.GRPCAction\"c\n\025Projec" + - "tedVolumeSource\0225\n\007sources\030\001 \003(\0132$.k8s.i" + - "o.api.core.v1.VolumeProjection\022\023\n\013defaul" + - "tMode\030\002 \001(\005\"v\n\023QuobyteVolumeSource\022\020\n\010re" + - "gistry\030\001 \001(\t\022\016\n\006volume\030\002 \001(\t\022\020\n\010readOnly" + - "\030\003 \001(\010\022\014\n\004user\030\004 \001(\t\022\r\n\005group\030\005 \001(\t\022\016\n\006t" + - "enant\030\006 \001(\t\"\303\001\n\031RBDPersistentVolumeSourc" + - "e\022\020\n\010monitors\030\001 \003(\t\022\r\n\005image\030\002 \001(\t\022\016\n\006fs" + - "Type\030\003 \001(\t\022\014\n\004pool\030\004 \001(\t\022\014\n\004user\030\005 \001(\t\022\017" + - "\n\007keyring\030\006 \001(\t\0226\n\tsecretRef\030\007 \001(\0132#.k8s" + - ".io.api.core.v1.SecretReference\022\020\n\010readO" + - "nly\030\010 \001(\010\"\276\001\n\017RBDVolumeSource\022\020\n\010monitor" + - "s\030\001 \003(\t\022\r\n\005image\030\002 \001(\t\022\016\n\006fsType\030\003 \001(\t\022\014" + - "\n\004pool\030\004 \001(\t\022\014\n\004user\030\005 \001(\t\022\017\n\007keyring\030\006 " + - "\001(\t\022;\n\tsecretRef\030\007 \001(\0132(.k8s.io.api.core" + - ".v1.LocalObjectReference\022\020\n\010readOnly\030\010 \001" + - "(\010\"r\n\017RangeAllocation\022B\n\010metadata\030\001 \001(\0132" + - "0.k8s.io.apimachinery.pkg.apis.meta.v1.O" + - "bjectMeta\022\r\n\005range\030\002 \001(\t\022\014\n\004data\030\003 \001(\014\"\331" + - "\001\n\025ReplicationController\022B\n\010metadata\030\001 \001" + - "(\01320.k8s.io.apimachinery.pkg.apis.meta.v" + - "1.ObjectMeta\022;\n\004spec\030\002 \001(\0132-.k8s.io.api." + - "core.v1.ReplicationControllerSpec\022?\n\006sta" + - "tus\030\003 \001(\0132/.k8s.io.api.core.v1.Replicati" + - "onControllerStatus\"\247\001\n\036ReplicationContro" + - "llerCondition\022\014\n\004type\030\001 \001(\t\022\016\n\006status\030\002 " + - "\001(\t\022F\n\022lastTransitionTime\030\003 \001(\0132*.k8s.io" + - ".apimachinery.pkg.apis.meta.v1.Time\022\016\n\006r" + - "eason\030\004 \001(\t\022\017\n\007message\030\005 \001(\t\"\227\001\n\031Replica" + - "tionControllerList\022@\n\010metadata\030\001 \001(\0132..k" + - "8s.io.apimachinery.pkg.apis.meta.v1.List" + - "Meta\0228\n\005items\030\002 \003(\0132).k8s.io.api.core.v1" + - ".ReplicationController\"\375\001\n\031ReplicationCo" + - "ntrollerSpec\022\020\n\010replicas\030\001 \001(\005\022\027\n\017minRea" + - "dySeconds\030\004 \001(\005\022M\n\010selector\030\002 \003(\0132;.k8s." + - "io.api.core.v1.ReplicationControllerSpec" + - ".SelectorEntry\0225\n\010template\030\003 \001(\0132#.k8s.i" + - "o.api.core.v1.PodTemplateSpec\032/\n\rSelecto" + - "rEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\343" + - "\001\n\033ReplicationControllerStatus\022\020\n\010replic" + - "as\030\001 \001(\005\022\034\n\024fullyLabeledReplicas\030\002 \001(\005\022\025" + - "\n\rreadyReplicas\030\004 \001(\005\022\031\n\021availableReplic" + - "as\030\005 \001(\005\022\032\n\022observedGeneration\030\003 \001(\003\022F\n\n" + - "conditions\030\006 \003(\01322.k8s.io.api.core.v1.Re" + - "plicationControllerCondition\".\n\rResource" + - "Claim\022\014\n\004name\030\001 \001(\t\022\017\n\007request\030\002 \001(\t\"\201\001\n" + - "\025ResourceFieldSelector\022\025\n\rcontainerName\030" + - "\001 \001(\t\022\020\n\010resource\030\002 \001(\t\022?\n\007divisor\030\003 \001(\013" + - "2..k8s.io.apimachinery.pkg.api.resource." + - "Quantity\"4\n\016ResourceHealth\022\022\n\nresourceID" + - "\030\001 \001(\t\022\016\n\006health\030\002 \001(\t\"\301\001\n\rResourceQuota" + - "\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachinery" + - ".pkg.apis.meta.v1.ObjectMeta\0223\n\004spec\030\002 \001" + - "(\0132%.k8s.io.api.core.v1.ResourceQuotaSpe" + - "c\0227\n\006status\030\003 \001(\0132\'.k8s.io.api.core.v1.R" + - "esourceQuotaStatus\"\207\001\n\021ResourceQuotaList" + - "\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimachinery" + - ".pkg.apis.meta.v1.ListMeta\0220\n\005items\030\002 \003(" + - "\0132!.k8s.io.api.core.v1.ResourceQuota\"\371\001\n" + - "\021ResourceQuotaSpec\022=\n\004hard\030\001 \003(\0132/.k8s.i" + - "o.api.core.v1.ResourceQuotaSpec.HardEntr" + - "y\022\016\n\006scopes\030\002 \003(\t\0228\n\rscopeSelector\030\003 \001(\013" + - "2!.k8s.io.api.core.v1.ScopeSelector\032[\n\tH" + - "ardEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k" + - "8s.io.apimachinery.pkg.api.resource.Quan" + - "tity:\0028\001\"\321\002\n\023ResourceQuotaStatus\022?\n\004hard" + - "\030\001 \003(\01321.k8s.io.api.core.v1.ResourceQuot" + - "aStatus.HardEntry\022?\n\004used\030\002 \003(\01321.k8s.io" + - ".api.core.v1.ResourceQuotaStatus.UsedEnt" + - "ry\032[\n\tHardEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 " + - "\001(\0132..k8s.io.apimachinery.pkg.api.resour" + - "ce.Quantity:\0028\001\032[\n\tUsedEntry\022\013\n\003key\030\001 \001(" + + "re.v1.PreferredSchedulingTerm\"\217\002\n\"NodeAl" + + "locatableResourceClaimStatus\022\031\n\021resource" + + "ClaimName\030\001 \001(\t\022\022\n\ncontainers\030\002 \003(\t\022X\n\tr" + + "esources\030\003 \003(\0132E.k8s.io.api.core.v1.Node" + + "AllocatableResourceClaimStatus.Resources" + + "Entry\032`\n\016ResourcesEntry\022\013\n\003key\030\001 \001(\t\022=\n\005" + + "value\030\002 \001(\0132..k8s.io.apimachinery.pkg.ap" + + "i.resource.Quantity:\0028\001\"\335\001\n\rNodeConditio" + + "n\022\014\n\004type\030\001 \001(\t\022\016\n\006status\030\002 \001(\t\022E\n\021lastH" + + "eartbeatTime\030\003 \001(\0132*.k8s.io.apimachinery" + + ".pkg.apis.meta.v1.Time\022F\n\022lastTransition" + + "Time\030\004 \001(\0132*.k8s.io.apimachinery.pkg.api" + + "s.meta.v1.Time\022\016\n\006reason\030\005 \001(\t\022\017\n\007messag" + + "e\030\006 \001(\t\"T\n\020NodeConfigSource\022@\n\tconfigMap" + + "\030\002 \001(\0132-.k8s.io.api.core.v1.ConfigMapNod" + + "eConfigSource\"\314\001\n\020NodeConfigStatus\0226\n\010as" + + "signed\030\001 \001(\0132$.k8s.io.api.core.v1.NodeCo" + + "nfigSource\0224\n\006active\030\002 \001(\0132$.k8s.io.api." + + "core.v1.NodeConfigSource\022;\n\rlastKnownGoo" + + "d\030\003 \001(\0132$.k8s.io.api.core.v1.NodeConfigS" + + "ource\022\r\n\005error\030\004 \001(\t\"R\n\023NodeDaemonEndpoi" + + "nts\022;\n\017kubeletEndpoint\030\001 \001(\0132\".k8s.io.ap" + + "i.core.v1.DaemonEndpoint\"0\n\014NodeFeatures" + + "\022 \n\030supplementalGroupsPolicy\030\001 \001(\010\"u\n\010No" + + "deList\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimac" + + "hinery.pkg.apis.meta.v1.ListMeta\022\'\n\005item" + + "s\030\002 \003(\0132\030.k8s.io.api.core.v1.Node\" \n\020Nod" + + "eProxyOptions\022\014\n\004path\030\001 \001(\t\"d\n\022NodeRunti" + + "meHandler\022\014\n\004name\030\001 \001(\t\022@\n\010features\030\002 \001(" + + "\0132..k8s.io.api.core.v1.NodeRuntimeHandle" + + "rFeatures\"U\n\032NodeRuntimeHandlerFeatures\022" + + "\037\n\027recursiveReadOnlyMounts\030\001 \001(\010\022\026\n\016user" + + "Namespaces\030\002 \001(\010\"O\n\014NodeSelector\022?\n\021node" + + "SelectorTerms\030\001 \003(\0132$.k8s.io.api.core.v1" + + ".NodeSelectorTerm\"H\n\027NodeSelectorRequire" + + "ment\022\013\n\003key\030\001 \001(\t\022\020\n\010operator\030\002 \001(\t\022\016\n\006v" + + "alues\030\003 \003(\t\"\233\001\n\020NodeSelectorTerm\022E\n\020matc" + + "hExpressions\030\001 \003(\0132+.k8s.io.api.core.v1." + + "NodeSelectorRequirement\022@\n\013matchFields\030\002" + + " \003(\0132+.k8s.io.api.core.v1.NodeSelectorRe" + + "quirement\"\323\001\n\010NodeSpec\022\017\n\007podCIDR\030\001 \001(\t\022" + + "\020\n\010podCIDRs\030\007 \003(\t\022\022\n\nproviderID\030\003 \001(\t\022\025\n" + + "\runschedulable\030\004 \001(\010\022)\n\006taints\030\005 \003(\0132\031.k" + + "8s.io.api.core.v1.Taint\022:\n\014configSource\030" + + "\006 \001(\0132$.k8s.io.api.core.v1.NodeConfigSou" + + "rce\022\022\n\nexternalID\030\002 \001(\t\"\225\007\n\nNodeStatus\022>" + + "\n\010capacity\030\001 \003(\0132,.k8s.io.api.core.v1.No" + + "deStatus.CapacityEntry\022D\n\013allocatable\030\002 " + + "\003(\0132/.k8s.io.api.core.v1.NodeStatus.Allo" + + "catableEntry\022\r\n\005phase\030\003 \001(\t\0225\n\ncondition" + + "s\030\004 \003(\0132!.k8s.io.api.core.v1.NodeConditi" + + "on\0222\n\taddresses\030\005 \003(\0132\037.k8s.io.api.core." + + "v1.NodeAddress\022@\n\017daemonEndpoints\030\006 \001(\0132" + + "\'.k8s.io.api.core.v1.NodeDaemonEndpoints" + + "\0224\n\010nodeInfo\030\007 \001(\0132\".k8s.io.api.core.v1." + + "NodeSystemInfo\0222\n\006images\030\010 \003(\0132\".k8s.io." + + "api.core.v1.ContainerImage\022\024\n\014volumesInU" + + "se\030\t \003(\t\022;\n\017volumesAttached\030\n \003(\0132\".k8s." + + "io.api.core.v1.AttachedVolume\0224\n\006config\030" + + "\013 \001(\0132$.k8s.io.api.core.v1.NodeConfigSta" + + "tus\022?\n\017runtimeHandlers\030\014 \003(\0132&.k8s.io.ap" + + "i.core.v1.NodeRuntimeHandler\0222\n\010features" + + "\030\r \001(\0132 .k8s.io.api.core.v1.NodeFeatures" + + "\022\030\n\020declaredFeatures\030\016 \003(\t\032_\n\rCapacityEn" + + "try\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io" + + ".apimachinery.pkg.api.resource.Quantity:" + + "\0028\001\032b\n\020AllocatableEntry\022\013\n\003key\030\001 \001(\t\022=\n\005" + + "value\030\002 \001(\0132..k8s.io.apimachinery.pkg.ap" + + "i.resource.Quantity:\0028\001\"\"\n\016NodeSwapStatu" + + "s\022\020\n\010capacity\030\001 \001(\003\"\243\002\n\016NodeSystemInfo\022\021" + + "\n\tmachineID\030\001 \001(\t\022\022\n\nsystemUUID\030\002 \001(\t\022\016\n" + + "\006bootID\030\003 \001(\t\022\025\n\rkernelVersion\030\004 \001(\t\022\017\n\007" + + "osImage\030\005 \001(\t\022\037\n\027containerRuntimeVersion" + + "\030\006 \001(\t\022\026\n\016kubeletVersion\030\007 \001(\t\022\030\n\020kubePr" + + "oxyVersion\030\010 \001(\t\022\027\n\017operatingSystem\030\t \001(" + + "\t\022\024\n\014architecture\030\n \001(\t\0220\n\004swap\030\013 \001(\0132\"." + + "k8s.io.api.core.v1.NodeSwapStatus\"<\n\023Obj" + + "ectFieldSelector\022\022\n\napiVersion\030\001 \001(\t\022\021\n\t" + + "fieldPath\030\002 \001(\t\"\215\001\n\017ObjectReference\022\014\n\004k" + + "ind\030\001 \001(\t\022\021\n\tnamespace\030\002 \001(\t\022\014\n\004name\030\003 \001" + + "(\t\022\013\n\003uid\030\004 \001(\t\022\022\n\napiVersion\030\005 \001(\t\022\027\n\017r" + + "esourceVersion\030\006 \001(\t\022\021\n\tfieldPath\030\007 \001(\t\"" + + "\312\001\n\020PersistentVolume\022B\n\010metadata\030\001 \001(\01320" + + ".k8s.io.apimachinery.pkg.apis.meta.v1.Ob" + + "jectMeta\0226\n\004spec\030\002 \001(\0132(.k8s.io.api.core" + + ".v1.PersistentVolumeSpec\022:\n\006status\030\003 \001(\013" + + "2*.k8s.io.api.core.v1.PersistentVolumeSt" + + "atus\"\331\001\n\025PersistentVolumeClaim\022B\n\010metada" + + "ta\030\001 \001(\01320.k8s.io.apimachinery.pkg.apis." + + "meta.v1.ObjectMeta\022;\n\004spec\030\002 \001(\0132-.k8s.i" + + "o.api.core.v1.PersistentVolumeClaimSpec\022" + + "?\n\006status\030\003 \001(\0132/.k8s.io.api.core.v1.Per" + + "sistentVolumeClaimStatus\"\352\001\n\036PersistentV" + + "olumeClaimCondition\022\014\n\004type\030\001 \001(\t\022\016\n\006sta" + + "tus\030\002 \001(\t\022A\n\rlastProbeTime\030\003 \001(\0132*.k8s.i" + + "o.apimachinery.pkg.apis.meta.v1.Time\022F\n\022" + + "lastTransitionTime\030\004 \001(\0132*.k8s.io.apimac" + + "hinery.pkg.apis.meta.v1.Time\022\016\n\006reason\030\005" + + " \001(\t\022\017\n\007message\030\006 \001(\t\"\227\001\n\031PersistentVolu" + + "meClaimList\022@\n\010metadata\030\001 \001(\0132..k8s.io.a" + + "pimachinery.pkg.apis.meta.v1.ListMeta\0228\n" + + "\005items\030\002 \003(\0132).k8s.io.api.core.v1.Persis" + + "tentVolumeClaim\"\243\003\n\031PersistentVolumeClai" + + "mSpec\022\023\n\013accessModes\030\001 \003(\t\022E\n\010selector\030\004" + + " \001(\01323.k8s.io.apimachinery.pkg.apis.meta" + + ".v1.LabelSelector\022A\n\tresources\030\002 \001(\0132..k" + + "8s.io.api.core.v1.VolumeResourceRequirem" + + "ents\022\022\n\nvolumeName\030\003 \001(\t\022\030\n\020storageClass" + + "Name\030\005 \001(\t\022\022\n\nvolumeMode\030\006 \001(\t\022A\n\ndataSo" + + "urce\030\007 \001(\0132-.k8s.io.api.core.v1.TypedLoc" + + "alObjectReference\022?\n\rdataSourceRef\030\010 \001(\013" + + "2(.k8s.io.api.core.v1.TypedObjectReferen" + + "ce\022!\n\031volumeAttributesClassName\030\t \001(\t\"\256\006" + + "\n\033PersistentVolumeClaimStatus\022\r\n\005phase\030\001" + + " \001(\t\022\023\n\013accessModes\030\002 \003(\t\022O\n\010capacity\030\003 " + + "\003(\0132=.k8s.io.api.core.v1.PersistentVolum" + + "eClaimStatus.CapacityEntry\022F\n\nconditions" + + "\030\004 \003(\01322.k8s.io.api.core.v1.PersistentVo" + + "lumeClaimCondition\022c\n\022allocatedResources" + + "\030\005 \003(\0132G.k8s.io.api.core.v1.PersistentVo" + + "lumeClaimStatus.AllocatedResourcesEntry\022" + + "q\n\031allocatedResourceStatuses\030\007 \003(\0132N.k8s" + + ".io.api.core.v1.PersistentVolumeClaimSta" + + "tus.AllocatedResourceStatusesEntry\022(\n cu" + + "rrentVolumeAttributesClassName\030\010 \001(\t\022B\n\022" + + "modifyVolumeStatus\030\t \001(\0132&.k8s.io.api.co" + + "re.v1.ModifyVolumeStatus\032_\n\rCapacityEntr" + + "y\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.a" + + "pimachinery.pkg.api.resource.Quantity:\0028" + + "\001\032i\n\027AllocatedResourcesEntry\022\013\n\003key\030\001 \001(" + "\t\022=\n\005value\030\002 \001(\0132..k8s.io.apimachinery.p" + - "kg.api.resource.Quantity:\0028\001\"\231\003\n\024Resourc" + - "eRequirements\022D\n\006limits\030\001 \003(\01324.k8s.io.a" + - "pi.core.v1.ResourceRequirements.LimitsEn" + - "try\022H\n\010requests\030\002 \003(\01326.k8s.io.api.core." + - "v1.ResourceRequirements.RequestsEntry\0221\n" + - "\006claims\030\003 \003(\0132!.k8s.io.api.core.v1.Resou" + - "rceClaim\032]\n\013LimitsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005" + + "kg.api.resource.Quantity:\0028\001\032@\n\036Allocate" + + "dResourceStatusesEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"\240\001\n\035PersistentVolumeClaim" + + "Template\022B\n\010metadata\030\001 \001(\01320.k8s.io.apim" + + "achinery.pkg.apis.meta.v1.ObjectMeta\022;\n\004" + + "spec\030\002 \001(\0132-.k8s.io.api.core.v1.Persiste" + + "ntVolumeClaimSpec\"H\n!PersistentVolumeCla" + + "imVolumeSource\022\021\n\tclaimName\030\001 \001(\t\022\020\n\010rea" + + "dOnly\030\002 \001(\010\"\215\001\n\024PersistentVolumeList\022@\n\010" + + "metadata\030\001 \001(\0132..k8s.io.apimachinery.pkg" + + ".apis.meta.v1.ListMeta\0223\n\005items\030\002 \003(\0132$." + + "k8s.io.api.core.v1.PersistentVolume\"\275\013\n\026" + + "PersistentVolumeSource\022L\n\021gcePersistentD" + + "isk\030\001 \001(\01321.k8s.io.api.core.v1.GCEPersis" + + "tentDiskVolumeSource\022R\n\024awsElasticBlockS" + + "tore\030\002 \001(\01324.k8s.io.api.core.v1.AWSElast" + + "icBlockStoreVolumeSource\022:\n\010hostPath\030\003 \001" + + "(\0132(.k8s.io.api.core.v1.HostPathVolumeSo" + + "urce\022F\n\tglusterfs\030\004 \001(\01323.k8s.io.api.cor" + + "e.v1.GlusterfsPersistentVolumeSource\0220\n\003" + + "nfs\030\005 \001(\0132#.k8s.io.api.core.v1.NFSVolume" + + "Source\022:\n\003rbd\030\006 \001(\0132-.k8s.io.api.core.v1" + + ".RBDPersistentVolumeSource\022>\n\005iscsi\030\007 \001(" + + "\0132/.k8s.io.api.core.v1.ISCSIPersistentVo" + + "lumeSource\022@\n\006cinder\030\010 \001(\01320.k8s.io.api." + + "core.v1.CinderPersistentVolumeSource\022@\n\006" + + "cephfs\030\t \001(\01320.k8s.io.api.core.v1.CephFS" + + "PersistentVolumeSource\022.\n\002fc\030\n \001(\0132\".k8s" + + ".io.api.core.v1.FCVolumeSource\0228\n\007flocke" + + "r\030\013 \001(\0132\'.k8s.io.api.core.v1.FlockerVolu" + + "meSource\022B\n\nflexVolume\030\014 \001(\0132..k8s.io.ap" + + "i.core.v1.FlexPersistentVolumeSource\022F\n\t" + + "azureFile\030\r \001(\01323.k8s.io.api.core.v1.Azu" + + "reFilePersistentVolumeSource\022I\n\rvsphereV" + + "olume\030\016 \001(\01322.k8s.io.api.core.v1.Vsphere" + + "VirtualDiskVolumeSource\0228\n\007quobyte\030\017 \001(\013" + + "2\'.k8s.io.api.core.v1.QuobyteVolumeSourc" + + "e\022<\n\tazureDisk\030\020 \001(\0132).k8s.io.api.core.v" + + "1.AzureDiskVolumeSource\022R\n\024photonPersist" + + "entDisk\030\021 \001(\01324.k8s.io.api.core.v1.Photo" + + "nPersistentDiskVolumeSource\022@\n\016portworxV" + + "olume\030\022 \001(\0132(.k8s.io.api.core.v1.Portwor" + + "xVolumeSource\022B\n\007scaleIO\030\023 \001(\01321.k8s.io." + + "api.core.v1.ScaleIOPersistentVolumeSourc" + + "e\0224\n\005local\030\024 \001(\0132%.k8s.io.api.core.v1.Lo" + + "calVolumeSource\022F\n\tstorageos\030\025 \001(\01323.k8s" + + ".io.api.core.v1.StorageOSPersistentVolum" + + "eSource\022:\n\003csi\030\026 \001(\0132-.k8s.io.api.core.v" + + "1.CSIPersistentVolumeSource\"\245\004\n\024Persiste" + + "ntVolumeSpec\022H\n\010capacity\030\001 \003(\01326.k8s.io." + + "api.core.v1.PersistentVolumeSpec.Capacit" + + "yEntry\022J\n\026persistentVolumeSource\030\002 \001(\0132*" + + ".k8s.io.api.core.v1.PersistentVolumeSour" + + "ce\022\023\n\013accessModes\030\003 \003(\t\0225\n\010claimRef\030\004 \001(" + + "\0132#.k8s.io.api.core.v1.ObjectReference\022%" + + "\n\035persistentVolumeReclaimPolicy\030\005 \001(\t\022\030\n" + + "\020storageClassName\030\006 \001(\t\022\024\n\014mountOptions\030" + + "\007 \003(\t\022\022\n\nvolumeMode\030\010 \001(\t\022<\n\014nodeAffinit" + + "y\030\t \001(\0132&.k8s.io.api.core.v1.VolumeNodeA" + + "ffinity\022!\n\031volumeAttributesClassName\030\n \001" + + "(\t\032_\n\rCapacityEntry\022\013\n\003key\030\001 \001(\t\022=\n\005valu" + + "e\030\002 \001(\0132..k8s.io.apimachinery.pkg.api.re" + + "source.Quantity:\0028\001\"\225\001\n\026PersistentVolume" + + "Status\022\r\n\005phase\030\001 \001(\t\022\017\n\007message\030\002 \001(\t\022\016" + + "\n\006reason\030\003 \001(\t\022K\n\027lastPhaseTransitionTim" + + "e\030\004 \001(\0132*.k8s.io.apimachinery.pkg.apis.m" + + "eta.v1.Time\"@\n PhotonPersistentDiskVolum" + + "eSource\022\014\n\004pdID\030\001 \001(\t\022\016\n\006fsType\030\002 \001(\t\"\243\001" + + "\n\003Pod\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimach" + + "inery.pkg.apis.meta.v1.ObjectMeta\022)\n\004spe" + + "c\030\002 \001(\0132\033.k8s.io.api.core.v1.PodSpec\022-\n\006" + + "status\030\003 \001(\0132\035.k8s.io.api.core.v1.PodSta" + + "tus\"\320\001\n\013PodAffinity\022[\n.requiredDuringSch" + + "edulingIgnoredDuringExecution\030\001 \003(\0132#.k8" + + "s.io.api.core.v1.PodAffinityTerm\022d\n/pref" + + "erredDuringSchedulingIgnoredDuringExecut" + + "ion\030\002 \003(\0132+.k8s.io.api.core.v1.WeightedP" + + "odAffinityTerm\"\211\002\n\017PodAffinityTerm\022J\n\rla" + + "belSelector\030\001 \001(\01323.k8s.io.apimachinery." + + "pkg.apis.meta.v1.LabelSelector\022\022\n\nnamesp" + + "aces\030\002 \003(\t\022\023\n\013topologyKey\030\003 \001(\t\022N\n\021names" + + "paceSelector\030\004 \001(\01323.k8s.io.apimachinery" + + ".pkg.apis.meta.v1.LabelSelector\022\026\n\016match" + + "LabelKeys\030\005 \003(\t\022\031\n\021mismatchLabelKeys\030\006 \003" + + "(\t\"\324\001\n\017PodAntiAffinity\022[\n.requiredDuring" + + "SchedulingIgnoredDuringExecution\030\001 \003(\0132#" + + ".k8s.io.api.core.v1.PodAffinityTerm\022d\n/p" + + "referredDuringSchedulingIgnoredDuringExe" + + "cution\030\002 \003(\0132+.k8s.io.api.core.v1.Weight" + + "edPodAffinityTerm\"a\n\020PodAttachOptions\022\r\n" + + "\005stdin\030\001 \001(\010\022\016\n\006stdout\030\002 \001(\010\022\016\n\006stderr\030\003" + + " \001(\010\022\013\n\003tty\030\004 \001(\010\022\021\n\tcontainer\030\005 \001(\t\"\276\002\n" + + "\030PodCertificateProjection\022\022\n\nsignerName\030" + + "\001 \001(\t\022\017\n\007keyType\030\002 \001(\t\022\034\n\024maxExpirationS" + + "econds\030\003 \001(\005\022\034\n\024credentialBundlePath\030\004 \001" + + "(\t\022\017\n\007keyPath\030\005 \001(\t\022\034\n\024certificateChainP" + + "ath\030\006 \001(\t\022Z\n\017userAnnotations\030\007 \003(\0132A.k8s" + + ".io.api.core.v1.PodCertificateProjection" + + ".UserAnnotationsEntry\0326\n\024UserAnnotations" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\364\001" + + "\n\014PodCondition\022\014\n\004type\030\001 \001(\t\022\032\n\022observed" + + "Generation\030\007 \001(\003\022\016\n\006status\030\002 \001(\t\022A\n\rlast" + + "ProbeTime\030\003 \001(\0132*.k8s.io.apimachinery.pk" + + "g.apis.meta.v1.Time\022F\n\022lastTransitionTim" + + "e\030\004 \001(\0132*.k8s.io.apimachinery.pkg.apis.m" + + "eta.v1.Time\022\016\n\006reason\030\005 \001(\t\022\017\n\007message\030\006" + + " \001(\t\"n\n\014PodDNSConfig\022\023\n\013nameservers\030\001 \003(" + + "\t\022\020\n\010searches\030\002 \003(\t\0227\n\007options\030\003 \003(\0132&.k" + + "8s.io.api.core.v1.PodDNSConfigOption\"1\n\022" + + "PodDNSConfigOption\022\014\n\004name\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t\"p\n\016PodExecOptions\022\r\n\005stdin\030\001 \001(\010" + + "\022\016\n\006stdout\030\002 \001(\010\022\016\n\006stderr\030\003 \001(\010\022\013\n\003tty\030" + + "\004 \001(\010\022\021\n\tcontainer\030\005 \001(\t\022\017\n\007command\030\006 \003(" + + "\t\"\212\001\n\036PodExtendedResourceClaimStatus\022M\n\017" + + "requestMappings\030\001 \003(\01324.k8s.io.api.core." + + "v1.ContainerExtendedResourceRequest\022\031\n\021r" + + "esourceClaimName\030\002 \001(\t\"\023\n\005PodIP\022\n\n\002ip\030\001 " + + "\001(\t\"s\n\007PodList\022@\n\010metadata\030\001 \001(\0132..k8s.i" + + "o.apimachinery.pkg.apis.meta.v1.ListMeta" + + "\022&\n\005items\030\002 \003(\0132\027.k8s.io.api.core.v1.Pod" + + "\"\212\002\n\rPodLogOptions\022\021\n\tcontainer\030\001 \001(\t\022\016\n" + + "\006follow\030\002 \001(\010\022\020\n\010previous\030\003 \001(\010\022\024\n\014since" + + "Seconds\030\004 \001(\003\022=\n\tsinceTime\030\005 \001(\0132*.k8s.i" + + "o.apimachinery.pkg.apis.meta.v1.Time\022\022\n\n" + + "timestamps\030\006 \001(\010\022\021\n\ttailLines\030\007 \001(\003\022\022\n\nl" + + "imitBytes\030\010 \001(\003\022$\n\034insecureSkipTLSVerify" + + "Backend\030\t \001(\010\022\016\n\006stream\030\n \001(\t\"\025\n\005PodOS\022\014" + + "\n\004name\030\001 \001(\t\"&\n\025PodPortForwardOptions\022\r\n" + + "\005ports\030\001 \003(\005\"\037\n\017PodProxyOptions\022\014\n\004path\030" + + "\001 \001(\t\")\n\020PodReadinessGate\022\025\n\rconditionTy" + + "pe\030\001 \001(\t\"^\n\020PodResourceClaim\022\014\n\004name\030\001 \001" + + "(\t\022\031\n\021resourceClaimName\030\003 \001(\t\022!\n\031resourc" + + "eClaimTemplateName\030\004 \001(\t\"A\n\026PodResourceC" + + "laimStatus\022\014\n\004name\030\001 \001(\t\022\031\n\021resourceClai" + + "mName\030\002 \001(\t\"!\n\021PodSchedulingGate\022\014\n\004name" + + "\030\001 \001(\t\"*\n\022PodSchedulingGroup\022\024\n\014podGroup" + + "Name\030\001 \001(\t\"\210\004\n\022PodSecurityContext\022:\n\016seL" + + "inuxOptions\030\001 \001(\0132\".k8s.io.api.core.v1.S" + + "ELinuxOptions\022I\n\016windowsOptions\030\010 \001(\01321." + + "k8s.io.api.core.v1.WindowsSecurityContex" + + "tOptions\022\021\n\trunAsUser\030\002 \001(\003\022\022\n\nrunAsGrou" + + "p\030\006 \001(\003\022\024\n\014runAsNonRoot\030\003 \001(\010\022\032\n\022supplem" + + "entalGroups\030\004 \003(\003\022 \n\030supplementalGroupsP" + + "olicy\030\014 \001(\t\022\017\n\007fsGroup\030\005 \001(\003\022+\n\007sysctls\030" + + "\007 \003(\0132\032.k8s.io.api.core.v1.Sysctl\022\033\n\023fsG" + + "roupChangePolicy\030\t \001(\t\022:\n\016seccompProfile" + + "\030\n \001(\0132\".k8s.io.api.core.v1.SeccompProfi" + + "le\022<\n\017appArmorProfile\030\013 \001(\0132#.k8s.io.api" + + ".core.v1.AppArmorProfile\022\033\n\023seLinuxChang" + + "ePolicy\030\r \001(\t\"[\n\014PodSignature\022K\n\rpodCont" + + "roller\030\001 \001(\01324.k8s.io.apimachinery.pkg.a" + + "pis.meta.v1.OwnerReference\"\265\016\n\007PodSpec\022+" + + "\n\007volumes\030\001 \003(\0132\032.k8s.io.api.core.v1.Vol" + + "ume\0225\n\016initContainers\030\024 \003(\0132\035.k8s.io.api" + + ".core.v1.Container\0221\n\ncontainers\030\002 \003(\0132\035" + + ".k8s.io.api.core.v1.Container\022C\n\023ephemer" + + "alContainers\030\" \003(\0132&.k8s.io.api.core.v1." + + "EphemeralContainer\022\025\n\rrestartPolicy\030\003 \001(" + + "\t\022%\n\035terminationGracePeriodSeconds\030\004 \001(\003" + + "\022\035\n\025activeDeadlineSeconds\030\005 \001(\003\022\021\n\tdnsPo" + + "licy\030\006 \001(\t\022C\n\014nodeSelector\030\007 \003(\0132-.k8s.i" + + "o.api.core.v1.PodSpec.NodeSelectorEntry\022" + + "\032\n\022serviceAccountName\030\010 \001(\t\022\026\n\016serviceAc" + + "count\030\t \001(\t\022$\n\034automountServiceAccountTo" + + "ken\030\025 \001(\010\022\020\n\010nodeName\030\n \001(\t\022\023\n\013hostNetwo" + + "rk\030\013 \001(\010\022\017\n\007hostPID\030\014 \001(\010\022\017\n\007hostIPC\030\r \001" + + "(\010\022\035\n\025shareProcessNamespace\030\033 \001(\010\022?\n\017sec" + + "urityContext\030\016 \001(\0132&.k8s.io.api.core.v1." + + "PodSecurityContext\022B\n\020imagePullSecrets\030\017" + + " \003(\0132(.k8s.io.api.core.v1.LocalObjectRef" + + "erence\022\020\n\010hostname\030\020 \001(\t\022\021\n\tsubdomain\030\021 " + + "\001(\t\022.\n\010affinity\030\022 \001(\0132\034.k8s.io.api.core." + + "v1.Affinity\022\025\n\rschedulerName\030\023 \001(\t\0223\n\013to" + + "lerations\030\026 \003(\0132\036.k8s.io.api.core.v1.Tol" + + "eration\0222\n\013hostAliases\030\027 \003(\0132\035.k8s.io.ap" + + "i.core.v1.HostAlias\022\031\n\021priorityClassName" + + "\030\030 \001(\t\022\020\n\010priority\030\031 \001(\005\0223\n\tdnsConfig\030\032 " + + "\001(\0132 .k8s.io.api.core.v1.PodDNSConfig\022<\n" + + "\016readinessGates\030\034 \003(\0132$.k8s.io.api.core." + + "v1.PodReadinessGate\022\030\n\020runtimeClassName\030" + + "\035 \001(\t\022\032\n\022enableServiceLinks\030\036 \001(\010\022\030\n\020pre" + + "emptionPolicy\030\037 \001(\t\022;\n\010overhead\030 \003(\0132)." + + "k8s.io.api.core.v1.PodSpec.OverheadEntry" + + "\022O\n\031topologySpreadConstraints\030! \003(\0132,.k8" + + "s.io.api.core.v1.TopologySpreadConstrain" + + "t\022\031\n\021setHostnameAsFQDN\030# \001(\010\022%\n\002os\030$ \001(\013" + + "2\031.k8s.io.api.core.v1.PodOS\022\021\n\thostUsers" + + "\030% \001(\010\022>\n\017schedulingGates\030& \003(\0132%.k8s.io" + + ".api.core.v1.PodSchedulingGate\022<\n\016resour" + + "ceClaims\030\' \003(\0132$.k8s.io.api.core.v1.PodR" + + "esourceClaim\022;\n\tresources\030( \001(\0132(.k8s.io" + + ".api.core.v1.ResourceRequirements\022\030\n\020hos" + + "tnameOverride\030) \001(\t\022?\n\017schedulingGroup\030+" + + " \001(\0132&.k8s.io.api.core.v1.PodSchedulingG" + + "roup\0323\n\021NodeSelectorEntry\022\013\n\003key\030\001 \001(\t\022\r" + + "\n\005value\030\002 \001(\t:\0028\001\032_\n\rOverheadEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apimachi" + + "nery.pkg.api.resource.Quantity:\0028\001\"\322\010\n\tP" + + "odStatus\022\032\n\022observedGeneration\030\021 \001(\003\022\r\n\005" + + "phase\030\001 \001(\t\0224\n\nconditions\030\002 \003(\0132 .k8s.io" + + ".api.core.v1.PodCondition\022\017\n\007message\030\003 \001" + + "(\t\022\016\n\006reason\030\004 \001(\t\022\031\n\021nominatedNodeName\030" + + "\013 \001(\t\022\016\n\006hostIP\030\005 \001(\t\022+\n\007hostIPs\030\020 \003(\0132\032" + + ".k8s.io.api.core.v1.HostIP\022\r\n\005podIP\030\006 \001(" + + "\t\022)\n\006podIPs\030\014 \003(\0132\031.k8s.io.api.core.v1.P" + + "odIP\022=\n\tstartTime\030\007 \001(\0132*.k8s.io.apimach" + + "inery.pkg.apis.meta.v1.Time\022B\n\025initConta" + + "inerStatuses\030\n \003(\0132#.k8s.io.api.core.v1." + + "ContainerStatus\022>\n\021containerStatuses\030\010 \003" + + "(\0132#.k8s.io.api.core.v1.ContainerStatus\022" + + "\020\n\010qosClass\030\t \001(\t\022G\n\032ephemeralContainerS" + + "tatuses\030\r \003(\0132#.k8s.io.api.core.v1.Conta" + + "inerStatus\022\016\n\006resize\030\016 \001(\t\022I\n\025resourceCl" + + "aimStatuses\030\017 \003(\0132*.k8s.io.api.core.v1.P" + + "odResourceClaimStatus\022W\n\033extendedResourc" + + "eClaimStatus\030\022 \001(\01322.k8s.io.api.core.v1." + + "PodExtendedResourceClaimStatus\022Q\n\022alloca" + + "tedResources\030\023 \003(\01325.k8s.io.api.core.v1." + + "PodStatus.AllocatedResourcesEntry\022;\n\tres" + + "ources\030\024 \001(\0132(.k8s.io.api.core.v1.Resour" + + "ceRequirements\022d\n$nodeAllocatableResourc" + + "eClaimStatuses\030\025 \003(\01326.k8s.io.api.core.v" + + "1.NodeAllocatableResourceClaimStatus\032i\n\027" + + "AllocatedResourcesEntry\022\013\n\003key\030\001 \001(\t\022=\n\005" + "value\030\002 \001(\0132..k8s.io.apimachinery.pkg.ap" + - "i.resource.Quantity:\0028\001\032_\n\rRequestsEntry" + - "\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.ap" + - "imachinery.pkg.api.resource.Quantity:\0028\001" + - "\"U\n\016ResourceStatus\022\014\n\004name\030\001 \001(\t\0225\n\treso" + - "urces\030\002 \003(\0132\".k8s.io.api.core.v1.Resourc" + - "eHealth\"I\n\016SELinuxOptions\022\014\n\004user\030\001 \001(\t\022" + - "\014\n\004role\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\022\r\n\005level\030\004 \001" + - "(\t\"\206\002\n\035ScaleIOPersistentVolumeSource\022\017\n\007" + - "gateway\030\001 \001(\t\022\016\n\006system\030\002 \001(\t\0226\n\tsecretR" + - "ef\030\003 \001(\0132#.k8s.io.api.core.v1.SecretRefe" + - "rence\022\022\n\nsslEnabled\030\004 \001(\010\022\030\n\020protectionD" + - "omain\030\005 \001(\t\022\023\n\013storagePool\030\006 \001(\t\022\023\n\013stor" + - "ageMode\030\007 \001(\t\022\022\n\nvolumeName\030\010 \001(\t\022\016\n\006fsT" + - "ype\030\t \001(\t\022\020\n\010readOnly\030\n \001(\010\"\201\002\n\023ScaleIOV" + - "olumeSource\022\017\n\007gateway\030\001 \001(\t\022\016\n\006system\030\002" + - " \001(\t\022;\n\tsecretRef\030\003 \001(\0132(.k8s.io.api.cor" + - "e.v1.LocalObjectReference\022\022\n\nsslEnabled\030" + - "\004 \001(\010\022\030\n\020protectionDomain\030\005 \001(\t\022\023\n\013stora" + - "gePool\030\006 \001(\t\022\023\n\013storageMode\030\007 \001(\t\022\022\n\nvol" + - "umeName\030\010 \001(\t\022\016\n\006fsType\030\t \001(\t\022\020\n\010readOnl" + - "y\030\n \001(\010\"`\n\rScopeSelector\022O\n\020matchExpress" + - "ions\030\001 \003(\01325.k8s.io.api.core.v1.ScopedRe" + - "sourceSelectorRequirement\"X\n!ScopedResou" + - "rceSelectorRequirement\022\021\n\tscopeName\030\001 \001(" + - "\t\022\020\n\010operator\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"8\n\016S" + - "eccompProfile\022\014\n\004type\030\001 \001(\t\022\030\n\020localhost" + - "Profile\030\002 \001(\t\"\301\002\n\006Secret\022B\n\010metadata\030\001 \001" + - "(\01320.k8s.io.apimachinery.pkg.apis.meta.v" + - "1.ObjectMeta\022\021\n\timmutable\030\005 \001(\010\0222\n\004data\030" + - "\002 \003(\0132$.k8s.io.api.core.v1.Secret.DataEn" + - "try\022>\n\nstringData\030\004 \003(\0132*.k8s.io.api.cor" + - "e.v1.Secret.StringDataEntry\022\014\n\004type\030\003 \001(" + - "\t\032+\n\tDataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001" + - "(\014:\0028\001\0321\n\017StringDataEntry\022\013\n\003key\030\001 \001(\t\022\r" + - "\n\005value\030\002 \001(\t:\0028\001\"k\n\017SecretEnvSource\022F\n\024" + - "localObjectReference\030\001 \001(\0132(.k8s.io.api." + - "core.v1.LocalObjectReference\022\020\n\010optional" + - "\030\002 \001(\010\"z\n\021SecretKeySelector\022F\n\024localObje" + - "ctReference\030\001 \001(\0132(.k8s.io.api.core.v1.L" + - "ocalObjectReference\022\013\n\003key\030\002 \001(\t\022\020\n\010opti" + - "onal\030\003 \001(\010\"y\n\nSecretList\022@\n\010metadata\030\001 \001" + - "(\0132..k8s.io.apimachinery.pkg.apis.meta.v" + - "1.ListMeta\022)\n\005items\030\002 \003(\0132\032.k8s.io.api.c" + - "ore.v1.Secret\"\232\001\n\020SecretProjection\022F\n\024lo" + - "calObjectReference\030\001 \001(\0132(.k8s.io.api.co" + - "re.v1.LocalObjectReference\022,\n\005items\030\002 \003(" + - "\0132\035.k8s.io.api.core.v1.KeyToPath\022\020\n\010opti" + - "onal\030\004 \001(\010\"2\n\017SecretReference\022\014\n\004name\030\001 " + - "\001(\t\022\021\n\tnamespace\030\002 \001(\t\"}\n\022SecretVolumeSo" + - "urce\022\022\n\nsecretName\030\001 \001(\t\022,\n\005items\030\002 \003(\0132" + - "\035.k8s.io.api.core.v1.KeyToPath\022\023\n\013defaul" + - "tMode\030\003 \001(\005\022\020\n\010optional\030\004 \001(\010\"\360\003\n\017Securi" + - "tyContext\0226\n\014capabilities\030\001 \001(\0132 .k8s.io" + - ".api.core.v1.Capabilities\022\022\n\nprivileged\030" + - "\002 \001(\010\022:\n\016seLinuxOptions\030\003 \001(\0132\".k8s.io.a" + - "pi.core.v1.SELinuxOptions\022I\n\016windowsOpti" + - "ons\030\n \001(\01321.k8s.io.api.core.v1.WindowsSe" + - "curityContextOptions\022\021\n\trunAsUser\030\004 \001(\003\022" + - "\022\n\nrunAsGroup\030\010 \001(\003\022\024\n\014runAsNonRoot\030\005 \001(" + - "\010\022\036\n\026readOnlyRootFilesystem\030\006 \001(\010\022 \n\030all" + - "owPrivilegeEscalation\030\007 \001(\010\022\021\n\tprocMount" + - "\030\t \001(\t\022:\n\016seccompProfile\030\013 \001(\0132\".k8s.io." + - "api.core.v1.SeccompProfile\022<\n\017appArmorPr" + - "ofile\030\014 \001(\0132#.k8s.io.api.core.v1.AppArmo" + - "rProfile\"M\n\023SerializedReference\0226\n\trefer" + - "ence\030\001 \001(\0132#.k8s.io.api.core.v1.ObjectRe" + - "ference\"\257\001\n\007Service\022B\n\010metadata\030\001 \001(\01320." + - "k8s.io.apimachinery.pkg.apis.meta.v1.Obj" + - "ectMeta\022-\n\004spec\030\002 \001(\0132\037.k8s.io.api.core." + - "v1.ServiceSpec\0221\n\006status\030\003 \001(\0132!.k8s.io." + - "api.core.v1.ServiceStatus\"\364\001\n\016ServiceAcc" + - "ount\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachi" + - "nery.pkg.apis.meta.v1.ObjectMeta\0224\n\007secr" + - "ets\030\002 \003(\0132#.k8s.io.api.core.v1.ObjectRef" + - "erence\022B\n\020imagePullSecrets\030\003 \003(\0132(.k8s.i" + - "o.api.core.v1.LocalObjectReference\022$\n\034au" + - "tomountServiceAccountToken\030\004 \001(\010\"\211\001\n\022Ser" + - "viceAccountList\022@\n\010metadata\030\001 \001(\0132..k8s." + - "io.apimachinery.pkg.apis.meta.v1.ListMet" + - "a\0221\n\005items\030\002 \003(\0132\".k8s.io.api.core.v1.Se" + - "rviceAccount\"Z\n\035ServiceAccountTokenProje" + - "ction\022\020\n\010audience\030\001 \001(\t\022\031\n\021expirationSec" + - "onds\030\002 \001(\003\022\014\n\004path\030\003 \001(\t\"{\n\013ServiceList\022" + - "@\n\010metadata\030\001 \001(\0132..k8s.io.apimachinery." + - "pkg.apis.meta.v1.ListMeta\022*\n\005items\030\002 \003(\013" + - "2\033.k8s.io.api.core.v1.Service\"\250\001\n\013Servic" + - "ePort\022\014\n\004name\030\001 \001(\t\022\020\n\010protocol\030\002 \001(\t\022\023\n" + - "\013appProtocol\030\006 \001(\t\022\014\n\004port\030\003 \001(\005\022D\n\ntarg" + - "etPort\030\004 \001(\01320.k8s.io.apimachinery.pkg.u" + - "til.intstr.IntOrString\022\020\n\010nodePort\030\005 \001(\005" + - "\"#\n\023ServiceProxyOptions\022\014\n\004path\030\001 \001(\t\"\264\005" + - "\n\013ServiceSpec\022.\n\005ports\030\001 \003(\0132\037.k8s.io.ap" + - "i.core.v1.ServicePort\022?\n\010selector\030\002 \003(\0132" + - "-.k8s.io.api.core.v1.ServiceSpec.Selecto" + - "rEntry\022\021\n\tclusterIP\030\003 \001(\t\022\022\n\nclusterIPs\030" + - "\022 \003(\t\022\014\n\004type\030\004 \001(\t\022\023\n\013externalIPs\030\005 \003(\t" + - "\022\027\n\017sessionAffinity\030\007 \001(\t\022\026\n\016loadBalance" + - "rIP\030\010 \001(\t\022 \n\030loadBalancerSourceRanges\030\t " + - "\003(\t\022\024\n\014externalName\030\n \001(\t\022\035\n\025externalTra" + - "fficPolicy\030\013 \001(\t\022\033\n\023healthCheckNodePort\030" + - "\014 \001(\005\022 \n\030publishNotReadyAddresses\030\r \001(\010\022" + - "H\n\025sessionAffinityConfig\030\016 \001(\0132).k8s.io." + - "api.core.v1.SessionAffinityConfig\022\022\n\nipF" + - "amilies\030\023 \003(\t\022\026\n\016ipFamilyPolicy\030\021 \001(\t\022%\n" + - "\035allocateLoadBalancerNodePorts\030\024 \001(\010\022\031\n\021" + - "loadBalancerClass\030\025 \001(\t\022\035\n\025internalTraff" + - "icPolicy\030\026 \001(\t\022\033\n\023trafficDistribution\030\027 " + - "\001(\t\032/\n\rSelectorEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t:\0028\001\"\222\001\n\rServiceStatus\022<\n\014loadBa" + - "lancer\030\001 \001(\0132&.k8s.io.api.core.v1.LoadBa" + - "lancerStatus\022C\n\nconditions\030\002 \003(\0132/.k8s.i" + - "o.apimachinery.pkg.apis.meta.v1.Conditio" + - "n\"M\n\025SessionAffinityConfig\0224\n\010clientIP\030\001" + - " \001(\0132\".k8s.io.api.core.v1.ClientIPConfig" + - "\"\036\n\013SleepAction\022\017\n\007seconds\030\001 \001(\003\"\250\001\n\037Sto" + - "rageOSPersistentVolumeSource\022\022\n\nvolumeNa" + - "me\030\001 \001(\t\022\027\n\017volumeNamespace\030\002 \001(\t\022\016\n\006fsT" + - "ype\030\003 \001(\t\022\020\n\010readOnly\030\004 \001(\010\0226\n\tsecretRef" + - "\030\005 \001(\0132#.k8s.io.api.core.v1.ObjectRefere" + - "nce\"\243\001\n\025StorageOSVolumeSource\022\022\n\nvolumeN" + - "ame\030\001 \001(\t\022\027\n\017volumeNamespace\030\002 \001(\t\022\016\n\006fs" + - "Type\030\003 \001(\t\022\020\n\010readOnly\030\004 \001(\010\022;\n\tsecretRe" + - "f\030\005 \001(\0132(.k8s.io.api.core.v1.LocalObject" + - "Reference\"%\n\006Sysctl\022\014\n\004name\030\001 \001(\t\022\r\n\005val" + - "ue\030\002 \001(\t\"_\n\017TCPSocketAction\022>\n\004port\030\001 \001(" + - "\01320.k8s.io.apimachinery.pkg.util.intstr." + - "IntOrString\022\014\n\004host\030\002 \001(\t\"r\n\005Taint\022\013\n\003ke" + - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\022\016\n\006effect\030\003 \001(\t\022=" + - "\n\ttimeAdded\030\004 \001(\0132*.k8s.io.apimachinery." + - "pkg.apis.meta.v1.Time\"e\n\nToleration\022\013\n\003k" + - "ey\030\001 \001(\t\022\020\n\010operator\030\002 \001(\t\022\r\n\005value\030\003 \001(" + - "\t\022\016\n\006effect\030\004 \001(\t\022\031\n\021tolerationSeconds\030\005" + - " \001(\003\"?\n TopologySelectorLabelRequirement" + - "\022\013\n\003key\030\001 \001(\t\022\016\n\006values\030\002 \003(\t\"k\n\024Topolog" + - "ySelectorTerm\022S\n\025matchLabelExpressions\030\001" + - " \003(\01324.k8s.io.api.core.v1.TopologySelect" + - "orLabelRequirement\"\211\002\n\030TopologySpreadCon" + - "straint\022\017\n\007maxSkew\030\001 \001(\005\022\023\n\013topologyKey\030" + - "\002 \001(\t\022\031\n\021whenUnsatisfiable\030\003 \001(\t\022J\n\rlabe" + - "lSelector\030\004 \001(\01323.k8s.io.apimachinery.pk" + - "g.apis.meta.v1.LabelSelector\022\022\n\nminDomai" + - "ns\030\005 \001(\005\022\032\n\022nodeAffinityPolicy\030\006 \001(\t\022\030\n\020" + - "nodeTaintsPolicy\030\007 \001(\t\022\026\n\016matchLabelKeys" + - "\030\010 \003(\t\"I\n\031TypedLocalObjectReference\022\020\n\010a" + - "piGroup\030\001 \001(\t\022\014\n\004kind\030\002 \001(\t\022\014\n\004name\030\003 \001(" + - "\t\"W\n\024TypedObjectReference\022\020\n\010apiGroup\030\001 " + - "\001(\t\022\014\n\004kind\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\022\021\n\tnames" + - "pace\030\004 \001(\t\"N\n\006Volume\022\014\n\004name\030\001 \001(\t\0226\n\014vo" + - "lumeSource\030\002 \001(\0132 .k8s.io.api.core.v1.Vo" + - "lumeSource\"0\n\014VolumeDevice\022\014\n\004name\030\001 \001(\t" + - "\022\022\n\ndevicePath\030\002 \001(\t\"\233\001\n\013VolumeMount\022\014\n\004" + - "name\030\001 \001(\t\022\020\n\010readOnly\030\002 \001(\010\022\031\n\021recursiv" + - "eReadOnly\030\007 \001(\t\022\021\n\tmountPath\030\003 \001(\t\022\017\n\007su" + - "bPath\030\004 \001(\t\022\030\n\020mountPropagation\030\005 \001(\t\022\023\n" + - "\013subPathExpr\030\006 \001(\t\"\231\001\n\021VolumeMountStatus" + - "\022\014\n\004name\030\001 \001(\t\022\021\n\tmountPath\030\002 \001(\t\022\020\n\010rea" + - "dOnly\030\003 \001(\010\022\031\n\021recursiveReadOnly\030\004 \001(\t\0226" + - "\n\014volumeStatus\030\005 \001(\0132 .k8s.io.api.core.v" + - "1.VolumeStatus\"H\n\022VolumeNodeAffinity\0222\n\010" + - "required\030\001 \001(\0132 .k8s.io.api.core.v1.Node" + - "Selector\"\250\003\n\020VolumeProjection\0224\n\006secret\030" + - "\001 \001(\0132$.k8s.io.api.core.v1.SecretProject" + - "ion\022>\n\013downwardAPI\030\002 \001(\0132).k8s.io.api.co" + - "re.v1.DownwardAPIProjection\022:\n\tconfigMap" + - "\030\003 \001(\0132\'.k8s.io.api.core.v1.ConfigMapPro" + - "jection\022N\n\023serviceAccountToken\030\004 \001(\01321.k" + - "8s.io.api.core.v1.ServiceAccountTokenPro" + - "jection\022L\n\022clusterTrustBundle\030\005 \001(\01320.k8" + - "s.io.api.core.v1.ClusterTrustBundleProje" + - "ction\022D\n\016podCertificate\030\006 \001(\0132,.k8s.io.a" + - "pi.core.v1.PodCertificateProjection\"\370\002\n\032" + - "VolumeResourceRequirements\022J\n\006limits\030\001 \003" + - "(\0132:.k8s.io.api.core.v1.VolumeResourceRe" + - "quirements.LimitsEntry\022N\n\010requests\030\002 \003(\013" + - "2<.k8s.io.api.core.v1.VolumeResourceRequ" + - "irements.RequestsEntry\032]\n\013LimitsEntry\022\013\n" + - "\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apima" + - "chinery.pkg.api.resource.Quantity:\0028\001\032_\n" + - "\rRequestsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001" + - "(\0132..k8s.io.apimachinery.pkg.api.resourc" + - "e.Quantity:\0028\001\"\317\016\n\014VolumeSource\022:\n\010hostP" + - "ath\030\001 \001(\0132(.k8s.io.api.core.v1.HostPathV" + - "olumeSource\022:\n\010emptyDir\030\002 \001(\0132(.k8s.io.a" + - "pi.core.v1.EmptyDirVolumeSource\022L\n\021gcePe" + - "rsistentDisk\030\003 \001(\01321.k8s.io.api.core.v1." + - "GCEPersistentDiskVolumeSource\022R\n\024awsElas" + - "ticBlockStore\030\004 \001(\01324.k8s.io.api.core.v1" + - ".AWSElasticBlockStoreVolumeSource\0228\n\007git" + - "Repo\030\005 \001(\0132\'.k8s.io.api.core.v1.GitRepoV" + - "olumeSource\0226\n\006secret\030\006 \001(\0132&.k8s.io.api" + - ".core.v1.SecretVolumeSource\0220\n\003nfs\030\007 \001(\013" + - "2#.k8s.io.api.core.v1.NFSVolumeSource\0224\n" + - "\005iscsi\030\010 \001(\0132%.k8s.io.api.core.v1.ISCSIV" + - "olumeSource\022<\n\tglusterfs\030\t \001(\0132).k8s.io." + - "api.core.v1.GlusterfsVolumeSource\022T\n\025per" + - "sistentVolumeClaim\030\n \001(\01325.k8s.io.api.co" + - "re.v1.PersistentVolumeClaimVolumeSource\022" + - "0\n\003rbd\030\013 \001(\0132#.k8s.io.api.core.v1.RBDVol" + - "umeSource\0228\n\nflexVolume\030\014 \001(\0132$.k8s.io.a" + - "pi.core.v1.FlexVolumeSource\0226\n\006cinder\030\r " + - "\001(\0132&.k8s.io.api.core.v1.CinderVolumeSou" + - "rce\0226\n\006cephfs\030\016 \001(\0132&.k8s.io.api.core.v1" + - ".CephFSVolumeSource\0228\n\007flocker\030\017 \001(\0132\'.k" + - "8s.io.api.core.v1.FlockerVolumeSource\022@\n" + - "\013downwardAPI\030\020 \001(\0132+.k8s.io.api.core.v1." + - "DownwardAPIVolumeSource\022.\n\002fc\030\021 \001(\0132\".k8" + - "s.io.api.core.v1.FCVolumeSource\022<\n\tazure" + - "File\030\022 \001(\0132).k8s.io.api.core.v1.AzureFil" + - "eVolumeSource\022<\n\tconfigMap\030\023 \001(\0132).k8s.i" + - "o.api.core.v1.ConfigMapVolumeSource\022I\n\rv" + - "sphereVolume\030\024 \001(\01322.k8s.io.api.core.v1." + - "VsphereVirtualDiskVolumeSource\0228\n\007quobyt" + - "e\030\025 \001(\0132\'.k8s.io.api.core.v1.QuobyteVolu" + - "meSource\022<\n\tazureDisk\030\026 \001(\0132).k8s.io.api" + - ".core.v1.AzureDiskVolumeSource\022R\n\024photon" + - "PersistentDisk\030\027 \001(\01324.k8s.io.api.core.v" + - "1.PhotonPersistentDiskVolumeSource\022<\n\tpr" + - "ojected\030\032 \001(\0132).k8s.io.api.core.v1.Proje" + - "ctedVolumeSource\022@\n\016portworxVolume\030\030 \001(\013" + - "2(.k8s.io.api.core.v1.PortworxVolumeSour" + - "ce\0228\n\007scaleIO\030\031 \001(\0132\'.k8s.io.api.core.v1" + - ".ScaleIOVolumeSource\022<\n\tstorageos\030\033 \001(\0132" + - ").k8s.io.api.core.v1.StorageOSVolumeSour" + - "ce\0220\n\003csi\030\034 \001(\0132#.k8s.io.api.core.v1.CSI" + - "VolumeSource\022<\n\tephemeral\030\035 \001(\0132).k8s.io" + - ".api.core.v1.EphemeralVolumeSource\0224\n\005im" + - "age\030\036 \001(\0132%.k8s.io.api.core.v1.ImageVolu" + - "meSource\"D\n\014VolumeStatus\0224\n\005image\030\001 \001(\0132" + - "%.k8s.io.api.core.v1.ImageVolumeStatus\"x" + - "\n\036VsphereVirtualDiskVolumeSource\022\022\n\nvolu" + - "mePath\030\001 \001(\t\022\016\n\006fsType\030\002 \001(\t\022\031\n\021storageP" + - "olicyName\030\003 \001(\t\022\027\n\017storagePolicyID\030\004 \001(\t" + - "\"g\n\027WeightedPodAffinityTerm\022\016\n\006weight\030\001 " + - "\001(\005\022<\n\017podAffinityTerm\030\002 \001(\0132#.k8s.io.ap" + - "i.core.v1.PodAffinityTerm\"\207\001\n\035WindowsSec" + - "urityContextOptions\022\036\n\026gmsaCredentialSpe" + - "cName\030\001 \001(\t\022\032\n\022gmsaCredentialSpec\030\002 \001(\t\022" + - "\025\n\rrunAsUserName\030\003 \001(\t\022\023\n\013hostProcess\030\004 " + - "\001(\010\"O\n\021WorkloadReference\022\014\n\004name\030\001 \001(\t\022\020" + - "\n\010podGroup\030\002 \001(\t\022\032\n\022podGroupReplicaKey\030\003" + - " \001(\tB4\n\032io.kubernetes.client.protoB\002V1Z\022" + - "k8s.io/api/core/v1" + "i.resource.Quantity:\0028\001\"\210\001\n\013PodTemplate\022" + + "B\n\010metadata\030\001 \001(\01320.k8s.io.apimachinery." + + "pkg.apis.meta.v1.ObjectMeta\0225\n\010template\030" + + "\002 \001(\0132#.k8s.io.api.core.v1.PodTemplateSp" + + "ec\"\203\001\n\017PodTemplateList\022@\n\010metadata\030\001 \001(\013" + + "2..k8s.io.apimachinery.pkg.apis.meta.v1." + + "ListMeta\022.\n\005items\030\002 \003(\0132\037.k8s.io.api.cor" + + "e.v1.PodTemplate\"\200\001\n\017PodTemplateSpec\022B\n\010" + + "metadata\030\001 \001(\01320.k8s.io.apimachinery.pkg" + + ".apis.meta.v1.ObjectMeta\022)\n\004spec\030\002 \001(\0132\033" + + ".k8s.io.api.core.v1.PodSpec\";\n\nPortStatu" + + "s\022\014\n\004port\030\001 \001(\005\022\020\n\010protocol\030\002 \001(\t\022\r\n\005err" + + "or\030\003 \001(\t\"J\n\024PortworxVolumeSource\022\020\n\010volu" + + "meID\030\001 \001(\t\022\016\n\006fsType\030\002 \001(\t\022\020\n\010readOnly\030\003" + + " \001(\010\"\034\n\rPreconditions\022\013\n\003uid\030\001 \001(\t\"\261\001\n\024P" + + "referAvoidPodsEntry\0226\n\014podSignature\030\001 \001(" + + "\0132 .k8s.io.api.core.v1.PodSignature\022@\n\014e" + + "victionTime\030\002 \001(\0132*.k8s.io.apimachinery." + + "pkg.apis.meta.v1.Time\022\016\n\006reason\030\003 \001(\t\022\017\n" + + "\007message\030\004 \001(\t\"c\n\027PreferredSchedulingTer" + + "m\022\016\n\006weight\030\001 \001(\005\0228\n\npreference\030\002 \001(\0132$." + + "k8s.io.api.core.v1.NodeSelectorTerm\"\341\001\n\005" + + "Probe\0221\n\007handler\030\001 \001(\0132 .k8s.io.api.core" + + ".v1.ProbeHandler\022\033\n\023initialDelaySeconds\030" + + "\002 \001(\005\022\026\n\016timeoutSeconds\030\003 \001(\005\022\025\n\rperiodS", + "econds\030\004 \001(\005\022\030\n\020successThreshold\030\005 \001(\005\022\030" + + "\n\020failureThreshold\030\006 \001(\005\022%\n\035terminationG" + + "racePeriodSeconds\030\007 \001(\003\"\326\001\n\014ProbeHandler" + + "\022,\n\004exec\030\001 \001(\0132\036.k8s.io.api.core.v1.Exec" + + "Action\0222\n\007httpGet\030\002 \001(\0132!.k8s.io.api.cor" + + "e.v1.HTTPGetAction\0226\n\ttcpSocket\030\003 \001(\0132#." + + "k8s.io.api.core.v1.TCPSocketAction\022,\n\004gr" + + "pc\030\004 \001(\0132\036.k8s.io.api.core.v1.GRPCAction" + + "\"c\n\025ProjectedVolumeSource\0225\n\007sources\030\001 \003" + + "(\0132$.k8s.io.api.core.v1.VolumeProjection" + + "\022\023\n\013defaultMode\030\002 \001(\005\"v\n\023QuobyteVolumeSo" + + "urce\022\020\n\010registry\030\001 \001(\t\022\016\n\006volume\030\002 \001(\t\022\020" + + "\n\010readOnly\030\003 \001(\010\022\014\n\004user\030\004 \001(\t\022\r\n\005group\030" + + "\005 \001(\t\022\016\n\006tenant\030\006 \001(\t\"\303\001\n\031RBDPersistentV" + + "olumeSource\022\020\n\010monitors\030\001 \003(\t\022\r\n\005image\030\002" + + " \001(\t\022\016\n\006fsType\030\003 \001(\t\022\014\n\004pool\030\004 \001(\t\022\014\n\004us" + + "er\030\005 \001(\t\022\017\n\007keyring\030\006 \001(\t\0226\n\tsecretRef\030\007" + + " \001(\0132#.k8s.io.api.core.v1.SecretReferenc" + + "e\022\020\n\010readOnly\030\010 \001(\010\"\276\001\n\017RBDVolumeSource\022" + + "\020\n\010monitors\030\001 \003(\t\022\r\n\005image\030\002 \001(\t\022\016\n\006fsTy" + + "pe\030\003 \001(\t\022\014\n\004pool\030\004 \001(\t\022\014\n\004user\030\005 \001(\t\022\017\n\007" + + "keyring\030\006 \001(\t\022;\n\tsecretRef\030\007 \001(\0132(.k8s.i" + + "o.api.core.v1.LocalObjectReference\022\020\n\010re" + + "adOnly\030\010 \001(\010\"r\n\017RangeAllocation\022B\n\010metad" + + "ata\030\001 \001(\01320.k8s.io.apimachinery.pkg.apis" + + ".meta.v1.ObjectMeta\022\r\n\005range\030\002 \001(\t\022\014\n\004da" + + "ta\030\003 \001(\014\"\331\001\n\025ReplicationController\022B\n\010me" + + "tadata\030\001 \001(\01320.k8s.io.apimachinery.pkg.a" + + "pis.meta.v1.ObjectMeta\022;\n\004spec\030\002 \001(\0132-.k" + + "8s.io.api.core.v1.ReplicationControllerS" + + "pec\022?\n\006status\030\003 \001(\0132/.k8s.io.api.core.v1" + + ".ReplicationControllerStatus\"\247\001\n\036Replica" + + "tionControllerCondition\022\014\n\004type\030\001 \001(\t\022\016\n" + + "\006status\030\002 \001(\t\022F\n\022lastTransitionTime\030\003 \001(" + + "\0132*.k8s.io.apimachinery.pkg.apis.meta.v1" + + ".Time\022\016\n\006reason\030\004 \001(\t\022\017\n\007message\030\005 \001(\t\"\227" + + "\001\n\031ReplicationControllerList\022@\n\010metadata" + + "\030\001 \001(\0132..k8s.io.apimachinery.pkg.apis.me" + + "ta.v1.ListMeta\0228\n\005items\030\002 \003(\0132).k8s.io.a" + + "pi.core.v1.ReplicationController\"\375\001\n\031Rep" + + "licationControllerSpec\022\020\n\010replicas\030\001 \001(\005" + + "\022\027\n\017minReadySeconds\030\004 \001(\005\022M\n\010selector\030\002 " + + "\003(\0132;.k8s.io.api.core.v1.ReplicationCont" + + "rollerSpec.SelectorEntry\0225\n\010template\030\003 \001" + + "(\0132#.k8s.io.api.core.v1.PodTemplateSpec\032" + + "/\n\rSelectorEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001\"\343\001\n\033ReplicationControllerStatus" + + "\022\020\n\010replicas\030\001 \001(\005\022\034\n\024fullyLabeledReplic" + + "as\030\002 \001(\005\022\025\n\rreadyReplicas\030\004 \001(\005\022\031\n\021avail" + + "ableReplicas\030\005 \001(\005\022\032\n\022observedGeneration" + + "\030\003 \001(\003\022F\n\nconditions\030\006 \003(\01322.k8s.io.api." + + "core.v1.ReplicationControllerCondition\"." + + "\n\rResourceClaim\022\014\n\004name\030\001 \001(\t\022\017\n\007request" + + "\030\002 \001(\t\"\201\001\n\025ResourceFieldSelector\022\025\n\rcont" + + "ainerName\030\001 \001(\t\022\020\n\010resource\030\002 \001(\t\022?\n\007div" + + "isor\030\003 \001(\0132..k8s.io.apimachinery.pkg.api" + + ".resource.Quantity\"E\n\016ResourceHealth\022\022\n\n" + + "resourceID\030\001 \001(\t\022\016\n\006health\030\002 \001(\t\022\017\n\007mess" + + "age\030\006 \001(\t\"\301\001\n\rResourceQuota\022B\n\010metadata\030" + + "\001 \001(\01320.k8s.io.apimachinery.pkg.apis.met" + + "a.v1.ObjectMeta\0223\n\004spec\030\002 \001(\0132%.k8s.io.a" + + "pi.core.v1.ResourceQuotaSpec\0227\n\006status\030\003" + + " \001(\0132\'.k8s.io.api.core.v1.ResourceQuotaS" + + "tatus\"\207\001\n\021ResourceQuotaList\022@\n\010metadata\030" + + "\001 \001(\0132..k8s.io.apimachinery.pkg.apis.met" + + "a.v1.ListMeta\0220\n\005items\030\002 \003(\0132!.k8s.io.ap" + + "i.core.v1.ResourceQuota\"\371\001\n\021ResourceQuot" + + "aSpec\022=\n\004hard\030\001 \003(\0132/.k8s.io.api.core.v1" + + ".ResourceQuotaSpec.HardEntry\022\016\n\006scopes\030\002" + + " \003(\t\0228\n\rscopeSelector\030\003 \001(\0132!.k8s.io.api" + + ".core.v1.ScopeSelector\032[\n\tHardEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apimach" + + "inery.pkg.api.resource.Quantity:\0028\001\"\321\002\n\023" + + "ResourceQuotaStatus\022?\n\004hard\030\001 \003(\01321.k8s." + + "io.api.core.v1.ResourceQuotaStatus.HardE" + + "ntry\022?\n\004used\030\002 \003(\01321.k8s.io.api.core.v1." + + "ResourceQuotaStatus.UsedEntry\032[\n\tHardEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io." + + "apimachinery.pkg.api.resource.Quantity:\002" + + "8\001\032[\n\tUsedEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 " + + "\001(\0132..k8s.io.apimachinery.pkg.api.resour" + + "ce.Quantity:\0028\001\"\231\003\n\024ResourceRequirements" + + "\022D\n\006limits\030\001 \003(\01324.k8s.io.api.core.v1.Re" + + "sourceRequirements.LimitsEntry\022H\n\010reques" + + "ts\030\002 \003(\01326.k8s.io.api.core.v1.ResourceRe" + + "quirements.RequestsEntry\0221\n\006claims\030\003 \003(\013" + + "2!.k8s.io.api.core.v1.ResourceClaim\032]\n\013L" + + "imitsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132." + + ".k8s.io.apimachinery.pkg.api.resource.Qu" + + "antity:\0028\001\032_\n\rRequestsEntry\022\013\n\003key\030\001 \001(\t" + + "\022=\n\005value\030\002 \001(\0132..k8s.io.apimachinery.pk" + + "g.api.resource.Quantity:\0028\001\"U\n\016ResourceS" + + "tatus\022\014\n\004name\030\001 \001(\t\0225\n\tresources\030\002 \003(\0132\"" + + ".k8s.io.api.core.v1.ResourceHealth\"I\n\016SE" + + "LinuxOptions\022\014\n\004user\030\001 \001(\t\022\014\n\004role\030\002 \001(\t" + + "\022\014\n\004type\030\003 \001(\t\022\r\n\005level\030\004 \001(\t\"\206\002\n\035ScaleI" + + "OPersistentVolumeSource\022\017\n\007gateway\030\001 \001(\t" + + "\022\016\n\006system\030\002 \001(\t\0226\n\tsecretRef\030\003 \001(\0132#.k8" + + "s.io.api.core.v1.SecretReference\022\022\n\nsslE" + + "nabled\030\004 \001(\010\022\030\n\020protectionDomain\030\005 \001(\t\022\023" + + "\n\013storagePool\030\006 \001(\t\022\023\n\013storageMode\030\007 \001(\t" + + "\022\022\n\nvolumeName\030\010 \001(\t\022\016\n\006fsType\030\t \001(\t\022\020\n\010" + + "readOnly\030\n \001(\010\"\201\002\n\023ScaleIOVolumeSource\022\017" + + "\n\007gateway\030\001 \001(\t\022\016\n\006system\030\002 \001(\t\022;\n\tsecre" + + "tRef\030\003 \001(\0132(.k8s.io.api.core.v1.LocalObj" + + "ectReference\022\022\n\nsslEnabled\030\004 \001(\010\022\030\n\020prot" + + "ectionDomain\030\005 \001(\t\022\023\n\013storagePool\030\006 \001(\t\022" + + "\023\n\013storageMode\030\007 \001(\t\022\022\n\nvolumeName\030\010 \001(\t" + + "\022\016\n\006fsType\030\t \001(\t\022\020\n\010readOnly\030\n \001(\010\"`\n\rSc" + + "opeSelector\022O\n\020matchExpressions\030\001 \003(\01325." + + "k8s.io.api.core.v1.ScopedResourceSelecto" + + "rRequirement\"X\n!ScopedResourceSelectorRe" + + "quirement\022\021\n\tscopeName\030\001 \001(\t\022\020\n\010operator" + + "\030\002 \001(\t\022\016\n\006values\030\003 \003(\t\"8\n\016SeccompProfile" + + "\022\014\n\004type\030\001 \001(\t\022\030\n\020localhostProfile\030\002 \001(\t" + + "\"\301\002\n\006Secret\022B\n\010metadata\030\001 \001(\01320.k8s.io.a" + + "pimachinery.pkg.apis.meta.v1.ObjectMeta\022" + + "\021\n\timmutable\030\005 \001(\010\0222\n\004data\030\002 \003(\0132$.k8s.i" + + "o.api.core.v1.Secret.DataEntry\022>\n\nstring" + + "Data\030\004 \003(\0132*.k8s.io.api.core.v1.Secret.S" + + "tringDataEntry\022\014\n\004type\030\003 \001(\t\032+\n\tDataEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\0321\n\017Str" + + "ingDataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + ":\0028\001\"k\n\017SecretEnvSource\022F\n\024localObjectRe" + + "ference\030\001 \001(\0132(.k8s.io.api.core.v1.Local" + + "ObjectReference\022\020\n\010optional\030\002 \001(\010\"z\n\021Sec" + + "retKeySelector\022F\n\024localObjectReference\030\001" + + " \001(\0132(.k8s.io.api.core.v1.LocalObjectRef" + + "erence\022\013\n\003key\030\002 \001(\t\022\020\n\010optional\030\003 \001(\010\"y\n" + + "\nSecretList\022@\n\010metadata\030\001 \001(\0132..k8s.io.a" + + "pimachinery.pkg.apis.meta.v1.ListMeta\022)\n" + + "\005items\030\002 \003(\0132\032.k8s.io.api.core.v1.Secret" + + "\"\232\001\n\020SecretProjection\022F\n\024localObjectRefe" + + "rence\030\001 \001(\0132(.k8s.io.api.core.v1.LocalOb" + + "jectReference\022,\n\005items\030\002 \003(\0132\035.k8s.io.ap" + + "i.core.v1.KeyToPath\022\020\n\010optional\030\004 \001(\010\"2\n" + + "\017SecretReference\022\014\n\004name\030\001 \001(\t\022\021\n\tnamesp" + + "ace\030\002 \001(\t\"}\n\022SecretVolumeSource\022\022\n\nsecre" + + "tName\030\001 \001(\t\022,\n\005items\030\002 \003(\0132\035.k8s.io.api." + + "core.v1.KeyToPath\022\023\n\013defaultMode\030\003 \001(\005\022\020" + + "\n\010optional\030\004 \001(\010\"\360\003\n\017SecurityContext\0226\n\014" + + "capabilities\030\001 \001(\0132 .k8s.io.api.core.v1." + + "Capabilities\022\022\n\nprivileged\030\002 \001(\010\022:\n\016seLi" + + "nuxOptions\030\003 \001(\0132\".k8s.io.api.core.v1.SE" + + "LinuxOptions\022I\n\016windowsOptions\030\n \001(\01321.k" + + "8s.io.api.core.v1.WindowsSecurityContext" + + "Options\022\021\n\trunAsUser\030\004 \001(\003\022\022\n\nrunAsGroup" + + "\030\010 \001(\003\022\024\n\014runAsNonRoot\030\005 \001(\010\022\036\n\026readOnly" + + "RootFilesystem\030\006 \001(\010\022 \n\030allowPrivilegeEs" + + "calation\030\007 \001(\010\022\021\n\tprocMount\030\t \001(\t\022:\n\016sec" + + "compProfile\030\013 \001(\0132\".k8s.io.api.core.v1.S" + + "eccompProfile\022<\n\017appArmorProfile\030\014 \001(\0132#" + + ".k8s.io.api.core.v1.AppArmorProfile\"M\n\023S" + + "erializedReference\0226\n\treference\030\001 \001(\0132#." + + "k8s.io.api.core.v1.ObjectReference\"\257\001\n\007S" + + "ervice\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimac" + + "hinery.pkg.apis.meta.v1.ObjectMeta\022-\n\004sp" + + "ec\030\002 \001(\0132\037.k8s.io.api.core.v1.ServiceSpe" + + "c\0221\n\006status\030\003 \001(\0132!.k8s.io.api.core.v1.S" + + "erviceStatus\"\364\001\n\016ServiceAccount\022B\n\010metad" + + "ata\030\001 \001(\01320.k8s.io.apimachinery.pkg.apis" + + ".meta.v1.ObjectMeta\0224\n\007secrets\030\002 \003(\0132#.k" + + "8s.io.api.core.v1.ObjectReference\022B\n\020ima" + + "gePullSecrets\030\003 \003(\0132(.k8s.io.api.core.v1" + + ".LocalObjectReference\022$\n\034automountServic" + + "eAccountToken\030\004 \001(\010\"\211\001\n\022ServiceAccountLi" + + "st\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimachine" + + "ry.pkg.apis.meta.v1.ListMeta\0221\n\005items\030\002 " + + "\003(\0132\".k8s.io.api.core.v1.ServiceAccount\"" + + "Z\n\035ServiceAccountTokenProjection\022\020\n\010audi" + + "ence\030\001 \001(\t\022\031\n\021expirationSeconds\030\002 \001(\003\022\014\n" + + "\004path\030\003 \001(\t\"{\n\013ServiceList\022@\n\010metadata\030\001" + + " \001(\0132..k8s.io.apimachinery.pkg.apis.meta" + + ".v1.ListMeta\022*\n\005items\030\002 \003(\0132\033.k8s.io.api" + + ".core.v1.Service\"\250\001\n\013ServicePort\022\014\n\004name" + + "\030\001 \001(\t\022\020\n\010protocol\030\002 \001(\t\022\023\n\013appProtocol\030" + + "\006 \001(\t\022\014\n\004port\030\003 \001(\005\022D\n\ntargetPort\030\004 \001(\0132" + + "0.k8s.io.apimachinery.pkg.util.intstr.In" + + "tOrString\022\020\n\010nodePort\030\005 \001(\005\"#\n\023ServicePr" + + "oxyOptions\022\014\n\004path\030\001 \001(\t\"\264\005\n\013ServiceSpec" + + "\022.\n\005ports\030\001 \003(\0132\037.k8s.io.api.core.v1.Ser" + + "vicePort\022?\n\010selector\030\002 \003(\0132-.k8s.io.api." + + "core.v1.ServiceSpec.SelectorEntry\022\021\n\tclu" + + "sterIP\030\003 \001(\t\022\022\n\nclusterIPs\030\022 \003(\t\022\014\n\004type" + + "\030\004 \001(\t\022\023\n\013externalIPs\030\005 \003(\t\022\027\n\017sessionAf" + + "finity\030\007 \001(\t\022\026\n\016loadBalancerIP\030\010 \001(\t\022 \n\030" + + "loadBalancerSourceRanges\030\t \003(\t\022\024\n\014extern" + + "alName\030\n \001(\t\022\035\n\025externalTrafficPolicy\030\013 " + + "\001(\t\022\033\n\023healthCheckNodePort\030\014 \001(\005\022 \n\030publ" + + "ishNotReadyAddresses\030\r \001(\010\022H\n\025sessionAff" + + "inityConfig\030\016 \001(\0132).k8s.io.api.core.v1.S" + + "essionAffinityConfig\022\022\n\nipFamilies\030\023 \003(\t" + + "\022\026\n\016ipFamilyPolicy\030\021 \001(\t\022%\n\035allocateLoad" + + "BalancerNodePorts\030\024 \001(\010\022\031\n\021loadBalancerC" + + "lass\030\025 \001(\t\022\035\n\025internalTrafficPolicy\030\026 \001(" + + "\t\022\033\n\023trafficDistribution\030\027 \001(\t\032/\n\rSelect" + + "orEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" + + "\222\001\n\rServiceStatus\022<\n\014loadBalancer\030\001 \001(\0132" + + "&.k8s.io.api.core.v1.LoadBalancerStatus\022" + + "C\n\nconditions\030\002 \003(\0132/.k8s.io.apimachiner" + + "y.pkg.apis.meta.v1.Condition\"M\n\025SessionA" + + "ffinityConfig\0224\n\010clientIP\030\001 \001(\0132\".k8s.io" + + ".api.core.v1.ClientIPConfig\"\036\n\013SleepActi" + + "on\022\017\n\007seconds\030\001 \001(\003\"\250\001\n\037StorageOSPersist" + + "entVolumeSource\022\022\n\nvolumeName\030\001 \001(\t\022\027\n\017v" + + "olumeNamespace\030\002 \001(\t\022\016\n\006fsType\030\003 \001(\t\022\020\n\010" + + "readOnly\030\004 \001(\010\0226\n\tsecretRef\030\005 \001(\0132#.k8s." + + "io.api.core.v1.ObjectReference\"\243\001\n\025Stora" + + "geOSVolumeSource\022\022\n\nvolumeName\030\001 \001(\t\022\027\n\017" + + "volumeNamespace\030\002 \001(\t\022\016\n\006fsType\030\003 \001(\t\022\020\n" + + "\010readOnly\030\004 \001(\010\022;\n\tsecretRef\030\005 \001(\0132(.k8s" + + ".io.api.core.v1.LocalObjectReference\"%\n\006" + + "Sysctl\022\014\n\004name\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"_\n\017T" + + "CPSocketAction\022>\n\004port\030\001 \001(\01320.k8s.io.ap" + + "imachinery.pkg.util.intstr.IntOrString\022\014" + + "\n\004host\030\002 \001(\t\"r\n\005Taint\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t\022\016\n\006effect\030\003 \001(\t\022=\n\ttimeAdded\030\004" + + " \001(\0132*.k8s.io.apimachinery.pkg.apis.meta" + + ".v1.Time\"e\n\nToleration\022\013\n\003key\030\001 \001(\t\022\020\n\010o" + + "perator\030\002 \001(\t\022\r\n\005value\030\003 \001(\t\022\016\n\006effect\030\004" + + " \001(\t\022\031\n\021tolerationSeconds\030\005 \001(\003\"?\n Topol" + + "ogySelectorLabelRequirement\022\013\n\003key\030\001 \001(\t" + + "\022\016\n\006values\030\002 \003(\t\"k\n\024TopologySelectorTerm" + + "\022S\n\025matchLabelExpressions\030\001 \003(\01324.k8s.io" + + ".api.core.v1.TopologySelectorLabelRequir" + + "ement\"\211\002\n\030TopologySpreadConstraint\022\017\n\007ma" + + "xSkew\030\001 \001(\005\022\023\n\013topologyKey\030\002 \001(\t\022\031\n\021when" + + "Unsatisfiable\030\003 \001(\t\022J\n\rlabelSelector\030\004 \001" + + "(\01323.k8s.io.apimachinery.pkg.apis.meta.v" + + "1.LabelSelector\022\022\n\nminDomains\030\005 \001(\005\022\032\n\022n" + + "odeAffinityPolicy\030\006 \001(\t\022\030\n\020nodeTaintsPol" + + "icy\030\007 \001(\t\022\026\n\016matchLabelKeys\030\010 \003(\t\"I\n\031Typ" + + "edLocalObjectReference\022\020\n\010apiGroup\030\001 \001(\t" + + "\022\014\n\004kind\030\002 \001(\t\022\014\n\004name\030\003 \001(\t\"W\n\024TypedObj" + + "ectReference\022\020\n\010apiGroup\030\001 \001(\t\022\014\n\004kind\030\002" + + " \001(\t\022\014\n\004name\030\003 \001(\t\022\021\n\tnamespace\030\004 \001(\t\"N\n" + + "\006Volume\022\014\n\004name\030\001 \001(\t\0226\n\014volumeSource\030\002 " + + "\001(\0132 .k8s.io.api.core.v1.VolumeSource\"0\n" + + "\014VolumeDevice\022\014\n\004name\030\001 \001(\t\022\022\n\ndevicePat" + + "h\030\002 \001(\t\"\233\001\n\013VolumeMount\022\014\n\004name\030\001 \001(\t\022\020\n" + + "\010readOnly\030\002 \001(\010\022\031\n\021recursiveReadOnly\030\007 \001" + + "(\t\022\021\n\tmountPath\030\003 \001(\t\022\017\n\007subPath\030\004 \001(\t\022\030" + + "\n\020mountPropagation\030\005 \001(\t\022\023\n\013subPathExpr\030" + + "\006 \001(\t\"\231\001\n\021VolumeMountStatus\022\014\n\004name\030\001 \001(" + + "\t\022\021\n\tmountPath\030\002 \001(\t\022\020\n\010readOnly\030\003 \001(\010\022\031" + + "\n\021recursiveReadOnly\030\004 \001(\t\0226\n\014volumeStatu" + + "s\030\005 \001(\0132 .k8s.io.api.core.v1.VolumeStatu" + + "s\"H\n\022VolumeNodeAffinity\0222\n\010required\030\001 \001(" + + "\0132 .k8s.io.api.core.v1.NodeSelector\"\250\003\n\020" + + "VolumeProjection\0224\n\006secret\030\001 \001(\0132$.k8s.i" + + "o.api.core.v1.SecretProjection\022>\n\013downwa" + + "rdAPI\030\002 \001(\0132).k8s.io.api.core.v1.Downwar" + + "dAPIProjection\022:\n\tconfigMap\030\003 \001(\0132\'.k8s." + + "io.api.core.v1.ConfigMapProjection\022N\n\023se" + + "rviceAccountToken\030\004 \001(\01321.k8s.io.api.cor" + + "e.v1.ServiceAccountTokenProjection\022L\n\022cl" + + "usterTrustBundle\030\005 \001(\01320.k8s.io.api.core" + + ".v1.ClusterTrustBundleProjection\022D\n\016podC" + + "ertificate\030\006 \001(\0132,.k8s.io.api.core.v1.Po" + + "dCertificateProjection\"\370\002\n\032VolumeResourc" + + "eRequirements\022J\n\006limits\030\001 \003(\0132:.k8s.io.a" + + "pi.core.v1.VolumeResourceRequirements.Li" + + "mitsEntry\022N\n\010requests\030\002 \003(\0132<.k8s.io.api" + + ".core.v1.VolumeResourceRequirements.Requ" + + "estsEntry\032]\n\013LimitsEntry\022\013\n\003key\030\001 \001(\t\022=\n" + + "\005value\030\002 \001(\0132..k8s.io.apimachinery.pkg.a" + + "pi.resource.Quantity:\0028\001\032_\n\rRequestsEntr" + + "y\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.a" + + "pimachinery.pkg.api.resource.Quantity:\0028" + + "\001\"\317\016\n\014VolumeSource\022:\n\010hostPath\030\001 \001(\0132(.k" + + "8s.io.api.core.v1.HostPathVolumeSource\022:" + + "\n\010emptyDir\030\002 \001(\0132(.k8s.io.api.core.v1.Em" + + "ptyDirVolumeSource\022L\n\021gcePersistentDisk\030" + + "\003 \001(\01321.k8s.io.api.core.v1.GCEPersistent" + + "DiskVolumeSource\022R\n\024awsElasticBlockStore" + + "\030\004 \001(\01324.k8s.io.api.core.v1.AWSElasticBl" + + "ockStoreVolumeSource\0228\n\007gitRepo\030\005 \001(\0132\'." + + "k8s.io.api.core.v1.GitRepoVolumeSource\0226" + + "\n\006secret\030\006 \001(\0132&.k8s.io.api.core.v1.Secr" + + "etVolumeSource\0220\n\003nfs\030\007 \001(\0132#.k8s.io.api" + + ".core.v1.NFSVolumeSource\0224\n\005iscsi\030\010 \001(\0132" + + "%.k8s.io.api.core.v1.ISCSIVolumeSource\022<" + + "\n\tglusterfs\030\t \001(\0132).k8s.io.api.core.v1.G" + + "lusterfsVolumeSource\022T\n\025persistentVolume" + + "Claim\030\n \001(\01325.k8s.io.api.core.v1.Persist" + + "entVolumeClaimVolumeSource\0220\n\003rbd\030\013 \001(\0132" + + "#.k8s.io.api.core.v1.RBDVolumeSource\0228\n\n" + + "flexVolume\030\014 \001(\0132$.k8s.io.api.core.v1.Fl" + + "exVolumeSource\0226\n\006cinder\030\r \001(\0132&.k8s.io." + + "api.core.v1.CinderVolumeSource\0226\n\006cephfs" + + "\030\016 \001(\0132&.k8s.io.api.core.v1.CephFSVolume" + + "Source\0228\n\007flocker\030\017 \001(\0132\'.k8s.io.api.cor" + + "e.v1.FlockerVolumeSource\022@\n\013downwardAPI\030" + + "\020 \001(\0132+.k8s.io.api.core.v1.DownwardAPIVo" + + "lumeSource\022.\n\002fc\030\021 \001(\0132\".k8s.io.api.core" + + ".v1.FCVolumeSource\022<\n\tazureFile\030\022 \001(\0132)." + + "k8s.io.api.core.v1.AzureFileVolumeSource" + + "\022<\n\tconfigMap\030\023 \001(\0132).k8s.io.api.core.v1" + + ".ConfigMapVolumeSource\022I\n\rvsphereVolume\030" + + "\024 \001(\01322.k8s.io.api.core.v1.VsphereVirtua" + + "lDiskVolumeSource\0228\n\007quobyte\030\025 \001(\0132\'.k8s" + + ".io.api.core.v1.QuobyteVolumeSource\022<\n\ta" + + "zureDisk\030\026 \001(\0132).k8s.io.api.core.v1.Azur" + + "eDiskVolumeSource\022R\n\024photonPersistentDis" + + "k\030\027 \001(\01324.k8s.io.api.core.v1.PhotonPersi" + + "stentDiskVolumeSource\022<\n\tprojected\030\032 \001(\013" + + "2).k8s.io.api.core.v1.ProjectedVolumeSou" + + "rce\022@\n\016portworxVolume\030\030 \001(\0132(.k8s.io.api" + + ".core.v1.PortworxVolumeSource\0228\n\007scaleIO" + + "\030\031 \001(\0132\'.k8s.io.api.core.v1.ScaleIOVolum" + + "eSource\022<\n\tstorageos\030\033 \001(\0132).k8s.io.api." + + "core.v1.StorageOSVolumeSource\0220\n\003csi\030\034 \001" + + "(\0132#.k8s.io.api.core.v1.CSIVolumeSource\022" + + "<\n\tephemeral\030\035 \001(\0132).k8s.io.api.core.v1." + + "EphemeralVolumeSource\0224\n\005image\030\036 \001(\0132%.k" + + "8s.io.api.core.v1.ImageVolumeSource\"D\n\014V" + + "olumeStatus\0224\n\005image\030\001 \001(\0132%.k8s.io.api." + + "core.v1.ImageVolumeStatus\"x\n\036VsphereVirt" + + "ualDiskVolumeSource\022\022\n\nvolumePath\030\001 \001(\t\022" + + "\016\n\006fsType\030\002 \001(\t\022\031\n\021storagePolicyName\030\003 \001" + + "(\t\022\027\n\017storagePolicyID\030\004 \001(\t\"g\n\027WeightedP" + + "odAffinityTerm\022\016\n\006weight\030\001 \001(\005\022<\n\017podAff" + + "inityTerm\030\002 \001(\0132#.k8s.io.api.core.v1.Pod" + + "AffinityTerm\"\207\001\n\035WindowsSecurityContextO" + + "ptions\022\036\n\026gmsaCredentialSpecName\030\001 \001(\t\022\032" + + "\n\022gmsaCredentialSpec\030\002 \001(\t\022\025\n\rrunAsUserN" + + "ame\030\003 \001(\t\022\023\n\013hostProcess\030\004 \001(\010B4\n\032io.kub" + + "ernetes.client.protoB\002V1Z\022k8s.io/api/cor" + + "e/v1" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -396296,86 +397222,98 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeAffinity_descriptor, new java.lang.String[] { "RequiredDuringSchedulingIgnoredDuringExecution", "PreferredDuringSchedulingIgnoredDuringExecution", }); - internal_static_k8s_io_api_core_v1_NodeCondition_descriptor = + internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_descriptor = getDescriptor().getMessageTypes().get(104); + internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_descriptor, + new java.lang.String[] { "ResourceClaimName", "Containers", "Resources", }); + internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_ResourcesEntry_descriptor = + internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_descriptor.getNestedTypes().get(0); + internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_ResourcesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_core_v1_NodeAllocatableResourceClaimStatus_ResourcesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_k8s_io_api_core_v1_NodeCondition_descriptor = + getDescriptor().getMessageTypes().get(105); internal_static_k8s_io_api_core_v1_NodeCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeCondition_descriptor, new java.lang.String[] { "Type", "Status", "LastHeartbeatTime", "LastTransitionTime", "Reason", "Message", }); internal_static_k8s_io_api_core_v1_NodeConfigSource_descriptor = - getDescriptor().getMessageTypes().get(105); + getDescriptor().getMessageTypes().get(106); internal_static_k8s_io_api_core_v1_NodeConfigSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeConfigSource_descriptor, new java.lang.String[] { "ConfigMap", }); internal_static_k8s_io_api_core_v1_NodeConfigStatus_descriptor = - getDescriptor().getMessageTypes().get(106); + getDescriptor().getMessageTypes().get(107); internal_static_k8s_io_api_core_v1_NodeConfigStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeConfigStatus_descriptor, new java.lang.String[] { "Assigned", "Active", "LastKnownGood", "Error", }); internal_static_k8s_io_api_core_v1_NodeDaemonEndpoints_descriptor = - getDescriptor().getMessageTypes().get(107); + getDescriptor().getMessageTypes().get(108); internal_static_k8s_io_api_core_v1_NodeDaemonEndpoints_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeDaemonEndpoints_descriptor, new java.lang.String[] { "KubeletEndpoint", }); internal_static_k8s_io_api_core_v1_NodeFeatures_descriptor = - getDescriptor().getMessageTypes().get(108); + getDescriptor().getMessageTypes().get(109); internal_static_k8s_io_api_core_v1_NodeFeatures_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeFeatures_descriptor, new java.lang.String[] { "SupplementalGroupsPolicy", }); internal_static_k8s_io_api_core_v1_NodeList_descriptor = - getDescriptor().getMessageTypes().get(109); + getDescriptor().getMessageTypes().get(110); internal_static_k8s_io_api_core_v1_NodeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_NodeProxyOptions_descriptor = - getDescriptor().getMessageTypes().get(110); + getDescriptor().getMessageTypes().get(111); internal_static_k8s_io_api_core_v1_NodeProxyOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeProxyOptions_descriptor, new java.lang.String[] { "Path", }); internal_static_k8s_io_api_core_v1_NodeRuntimeHandler_descriptor = - getDescriptor().getMessageTypes().get(111); + getDescriptor().getMessageTypes().get(112); internal_static_k8s_io_api_core_v1_NodeRuntimeHandler_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeRuntimeHandler_descriptor, new java.lang.String[] { "Name", "Features", }); internal_static_k8s_io_api_core_v1_NodeRuntimeHandlerFeatures_descriptor = - getDescriptor().getMessageTypes().get(112); + getDescriptor().getMessageTypes().get(113); internal_static_k8s_io_api_core_v1_NodeRuntimeHandlerFeatures_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeRuntimeHandlerFeatures_descriptor, new java.lang.String[] { "RecursiveReadOnlyMounts", "UserNamespaces", }); internal_static_k8s_io_api_core_v1_NodeSelector_descriptor = - getDescriptor().getMessageTypes().get(113); + getDescriptor().getMessageTypes().get(114); internal_static_k8s_io_api_core_v1_NodeSelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeSelector_descriptor, new java.lang.String[] { "NodeSelectorTerms", }); internal_static_k8s_io_api_core_v1_NodeSelectorRequirement_descriptor = - getDescriptor().getMessageTypes().get(114); + getDescriptor().getMessageTypes().get(115); internal_static_k8s_io_api_core_v1_NodeSelectorRequirement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeSelectorRequirement_descriptor, new java.lang.String[] { "Key", "Operator", "Values", }); internal_static_k8s_io_api_core_v1_NodeSelectorTerm_descriptor = - getDescriptor().getMessageTypes().get(115); + getDescriptor().getMessageTypes().get(116); internal_static_k8s_io_api_core_v1_NodeSelectorTerm_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeSelectorTerm_descriptor, new java.lang.String[] { "MatchExpressions", "MatchFields", }); internal_static_k8s_io_api_core_v1_NodeSpec_descriptor = - getDescriptor().getMessageTypes().get(116); + getDescriptor().getMessageTypes().get(117); internal_static_k8s_io_api_core_v1_NodeSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeSpec_descriptor, new java.lang.String[] { "PodCIDR", "PodCIDRs", "ProviderID", "Unschedulable", "Taints", "ConfigSource", "ExternalID", }); internal_static_k8s_io_api_core_v1_NodeStatus_descriptor = - getDescriptor().getMessageTypes().get(117); + getDescriptor().getMessageTypes().get(118); internal_static_k8s_io_api_core_v1_NodeStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeStatus_descriptor, @@ -396393,61 +397331,61 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_core_v1_NodeStatus_AllocatableEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_NodeSwapStatus_descriptor = - getDescriptor().getMessageTypes().get(118); + getDescriptor().getMessageTypes().get(119); internal_static_k8s_io_api_core_v1_NodeSwapStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeSwapStatus_descriptor, new java.lang.String[] { "Capacity", }); internal_static_k8s_io_api_core_v1_NodeSystemInfo_descriptor = - getDescriptor().getMessageTypes().get(119); + getDescriptor().getMessageTypes().get(120); internal_static_k8s_io_api_core_v1_NodeSystemInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_NodeSystemInfo_descriptor, new java.lang.String[] { "MachineID", "SystemUUID", "BootID", "KernelVersion", "OsImage", "ContainerRuntimeVersion", "KubeletVersion", "KubeProxyVersion", "OperatingSystem", "Architecture", "Swap", }); internal_static_k8s_io_api_core_v1_ObjectFieldSelector_descriptor = - getDescriptor().getMessageTypes().get(120); + getDescriptor().getMessageTypes().get(121); internal_static_k8s_io_api_core_v1_ObjectFieldSelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ObjectFieldSelector_descriptor, new java.lang.String[] { "ApiVersion", "FieldPath", }); internal_static_k8s_io_api_core_v1_ObjectReference_descriptor = - getDescriptor().getMessageTypes().get(121); + getDescriptor().getMessageTypes().get(122); internal_static_k8s_io_api_core_v1_ObjectReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ObjectReference_descriptor, new java.lang.String[] { "Kind", "Namespace", "Name", "Uid", "ApiVersion", "ResourceVersion", "FieldPath", }); internal_static_k8s_io_api_core_v1_PersistentVolume_descriptor = - getDescriptor().getMessageTypes().get(122); + getDescriptor().getMessageTypes().get(123); internal_static_k8s_io_api_core_v1_PersistentVolume_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolume_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_core_v1_PersistentVolumeClaim_descriptor = - getDescriptor().getMessageTypes().get(123); + getDescriptor().getMessageTypes().get(124); internal_static_k8s_io_api_core_v1_PersistentVolumeClaim_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeClaim_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimCondition_descriptor = - getDescriptor().getMessageTypes().get(124); + getDescriptor().getMessageTypes().get(125); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeClaimCondition_descriptor, new java.lang.String[] { "Type", "Status", "LastProbeTime", "LastTransitionTime", "Reason", "Message", }); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimList_descriptor = - getDescriptor().getMessageTypes().get(125); + getDescriptor().getMessageTypes().get(126); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeClaimList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimSpec_descriptor = - getDescriptor().getMessageTypes().get(126); + getDescriptor().getMessageTypes().get(127); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeClaimSpec_descriptor, new java.lang.String[] { "AccessModes", "Selector", "Resources", "VolumeName", "StorageClassName", "VolumeMode", "DataSource", "DataSourceRef", "VolumeAttributesClassName", }); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_descriptor = - getDescriptor().getMessageTypes().get(127); + getDescriptor().getMessageTypes().get(128); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_descriptor, @@ -396471,31 +397409,31 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_core_v1_PersistentVolumeClaimStatus_AllocatedResourceStatusesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimTemplate_descriptor = - getDescriptor().getMessageTypes().get(128); + getDescriptor().getMessageTypes().get(129); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeClaimTemplate_descriptor, new java.lang.String[] { "Metadata", "Spec", }); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(129); + getDescriptor().getMessageTypes().get(130); internal_static_k8s_io_api_core_v1_PersistentVolumeClaimVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeClaimVolumeSource_descriptor, new java.lang.String[] { "ClaimName", "ReadOnly", }); internal_static_k8s_io_api_core_v1_PersistentVolumeList_descriptor = - getDescriptor().getMessageTypes().get(130); + getDescriptor().getMessageTypes().get(131); internal_static_k8s_io_api_core_v1_PersistentVolumeList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_PersistentVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(131); + getDescriptor().getMessageTypes().get(132); internal_static_k8s_io_api_core_v1_PersistentVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeSource_descriptor, new java.lang.String[] { "GcePersistentDisk", "AwsElasticBlockStore", "HostPath", "Glusterfs", "Nfs", "Rbd", "Iscsi", "Cinder", "Cephfs", "Fc", "Flocker", "FlexVolume", "AzureFile", "VsphereVolume", "Quobyte", "AzureDisk", "PhotonPersistentDisk", "PortworxVolume", "ScaleIO", "Local", "Storageos", "Csi", }); internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_descriptor = - getDescriptor().getMessageTypes().get(132); + getDescriptor().getMessageTypes().get(133); internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_descriptor, @@ -396507,49 +397445,49 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_core_v1_PersistentVolumeSpec_CapacityEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_PersistentVolumeStatus_descriptor = - getDescriptor().getMessageTypes().get(133); + getDescriptor().getMessageTypes().get(134); internal_static_k8s_io_api_core_v1_PersistentVolumeStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PersistentVolumeStatus_descriptor, new java.lang.String[] { "Phase", "Message", "Reason", "LastPhaseTransitionTime", }); internal_static_k8s_io_api_core_v1_PhotonPersistentDiskVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(134); + getDescriptor().getMessageTypes().get(135); internal_static_k8s_io_api_core_v1_PhotonPersistentDiskVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PhotonPersistentDiskVolumeSource_descriptor, new java.lang.String[] { "PdID", "FsType", }); internal_static_k8s_io_api_core_v1_Pod_descriptor = - getDescriptor().getMessageTypes().get(135); + getDescriptor().getMessageTypes().get(136); internal_static_k8s_io_api_core_v1_Pod_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Pod_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_core_v1_PodAffinity_descriptor = - getDescriptor().getMessageTypes().get(136); + getDescriptor().getMessageTypes().get(137); internal_static_k8s_io_api_core_v1_PodAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodAffinity_descriptor, new java.lang.String[] { "RequiredDuringSchedulingIgnoredDuringExecution", "PreferredDuringSchedulingIgnoredDuringExecution", }); internal_static_k8s_io_api_core_v1_PodAffinityTerm_descriptor = - getDescriptor().getMessageTypes().get(137); + getDescriptor().getMessageTypes().get(138); internal_static_k8s_io_api_core_v1_PodAffinityTerm_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodAffinityTerm_descriptor, new java.lang.String[] { "LabelSelector", "Namespaces", "TopologyKey", "NamespaceSelector", "MatchLabelKeys", "MismatchLabelKeys", }); internal_static_k8s_io_api_core_v1_PodAntiAffinity_descriptor = - getDescriptor().getMessageTypes().get(138); + getDescriptor().getMessageTypes().get(139); internal_static_k8s_io_api_core_v1_PodAntiAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodAntiAffinity_descriptor, new java.lang.String[] { "RequiredDuringSchedulingIgnoredDuringExecution", "PreferredDuringSchedulingIgnoredDuringExecution", }); internal_static_k8s_io_api_core_v1_PodAttachOptions_descriptor = - getDescriptor().getMessageTypes().get(139); + getDescriptor().getMessageTypes().get(140); internal_static_k8s_io_api_core_v1_PodAttachOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodAttachOptions_descriptor, new java.lang.String[] { "Stdin", "Stdout", "Stderr", "Tty", "Container", }); internal_static_k8s_io_api_core_v1_PodCertificateProjection_descriptor = - getDescriptor().getMessageTypes().get(140); + getDescriptor().getMessageTypes().get(141); internal_static_k8s_io_api_core_v1_PodCertificateProjection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodCertificateProjection_descriptor, @@ -396561,113 +397499,119 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_core_v1_PodCertificateProjection_UserAnnotationsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_PodCondition_descriptor = - getDescriptor().getMessageTypes().get(141); + getDescriptor().getMessageTypes().get(142); internal_static_k8s_io_api_core_v1_PodCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodCondition_descriptor, new java.lang.String[] { "Type", "ObservedGeneration", "Status", "LastProbeTime", "LastTransitionTime", "Reason", "Message", }); internal_static_k8s_io_api_core_v1_PodDNSConfig_descriptor = - getDescriptor().getMessageTypes().get(142); + getDescriptor().getMessageTypes().get(143); internal_static_k8s_io_api_core_v1_PodDNSConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodDNSConfig_descriptor, new java.lang.String[] { "Nameservers", "Searches", "Options", }); internal_static_k8s_io_api_core_v1_PodDNSConfigOption_descriptor = - getDescriptor().getMessageTypes().get(143); + getDescriptor().getMessageTypes().get(144); internal_static_k8s_io_api_core_v1_PodDNSConfigOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodDNSConfigOption_descriptor, new java.lang.String[] { "Name", "Value", }); internal_static_k8s_io_api_core_v1_PodExecOptions_descriptor = - getDescriptor().getMessageTypes().get(144); + getDescriptor().getMessageTypes().get(145); internal_static_k8s_io_api_core_v1_PodExecOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodExecOptions_descriptor, new java.lang.String[] { "Stdin", "Stdout", "Stderr", "Tty", "Container", "Command", }); internal_static_k8s_io_api_core_v1_PodExtendedResourceClaimStatus_descriptor = - getDescriptor().getMessageTypes().get(145); + getDescriptor().getMessageTypes().get(146); internal_static_k8s_io_api_core_v1_PodExtendedResourceClaimStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodExtendedResourceClaimStatus_descriptor, new java.lang.String[] { "RequestMappings", "ResourceClaimName", }); internal_static_k8s_io_api_core_v1_PodIP_descriptor = - getDescriptor().getMessageTypes().get(146); + getDescriptor().getMessageTypes().get(147); internal_static_k8s_io_api_core_v1_PodIP_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodIP_descriptor, new java.lang.String[] { "Ip", }); internal_static_k8s_io_api_core_v1_PodList_descriptor = - getDescriptor().getMessageTypes().get(147); + getDescriptor().getMessageTypes().get(148); internal_static_k8s_io_api_core_v1_PodList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_PodLogOptions_descriptor = - getDescriptor().getMessageTypes().get(148); + getDescriptor().getMessageTypes().get(149); internal_static_k8s_io_api_core_v1_PodLogOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodLogOptions_descriptor, new java.lang.String[] { "Container", "Follow", "Previous", "SinceSeconds", "SinceTime", "Timestamps", "TailLines", "LimitBytes", "InsecureSkipTLSVerifyBackend", "Stream", }); internal_static_k8s_io_api_core_v1_PodOS_descriptor = - getDescriptor().getMessageTypes().get(149); + getDescriptor().getMessageTypes().get(150); internal_static_k8s_io_api_core_v1_PodOS_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodOS_descriptor, new java.lang.String[] { "Name", }); internal_static_k8s_io_api_core_v1_PodPortForwardOptions_descriptor = - getDescriptor().getMessageTypes().get(150); + getDescriptor().getMessageTypes().get(151); internal_static_k8s_io_api_core_v1_PodPortForwardOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodPortForwardOptions_descriptor, new java.lang.String[] { "Ports", }); internal_static_k8s_io_api_core_v1_PodProxyOptions_descriptor = - getDescriptor().getMessageTypes().get(151); + getDescriptor().getMessageTypes().get(152); internal_static_k8s_io_api_core_v1_PodProxyOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodProxyOptions_descriptor, new java.lang.String[] { "Path", }); internal_static_k8s_io_api_core_v1_PodReadinessGate_descriptor = - getDescriptor().getMessageTypes().get(152); + getDescriptor().getMessageTypes().get(153); internal_static_k8s_io_api_core_v1_PodReadinessGate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodReadinessGate_descriptor, new java.lang.String[] { "ConditionType", }); internal_static_k8s_io_api_core_v1_PodResourceClaim_descriptor = - getDescriptor().getMessageTypes().get(153); + getDescriptor().getMessageTypes().get(154); internal_static_k8s_io_api_core_v1_PodResourceClaim_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodResourceClaim_descriptor, new java.lang.String[] { "Name", "ResourceClaimName", "ResourceClaimTemplateName", }); internal_static_k8s_io_api_core_v1_PodResourceClaimStatus_descriptor = - getDescriptor().getMessageTypes().get(154); + getDescriptor().getMessageTypes().get(155); internal_static_k8s_io_api_core_v1_PodResourceClaimStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodResourceClaimStatus_descriptor, new java.lang.String[] { "Name", "ResourceClaimName", }); internal_static_k8s_io_api_core_v1_PodSchedulingGate_descriptor = - getDescriptor().getMessageTypes().get(155); + getDescriptor().getMessageTypes().get(156); internal_static_k8s_io_api_core_v1_PodSchedulingGate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodSchedulingGate_descriptor, new java.lang.String[] { "Name", }); + internal_static_k8s_io_api_core_v1_PodSchedulingGroup_descriptor = + getDescriptor().getMessageTypes().get(157); + internal_static_k8s_io_api_core_v1_PodSchedulingGroup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_core_v1_PodSchedulingGroup_descriptor, + new java.lang.String[] { "PodGroupName", }); internal_static_k8s_io_api_core_v1_PodSecurityContext_descriptor = - getDescriptor().getMessageTypes().get(156); + getDescriptor().getMessageTypes().get(158); internal_static_k8s_io_api_core_v1_PodSecurityContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodSecurityContext_descriptor, new java.lang.String[] { "SeLinuxOptions", "WindowsOptions", "RunAsUser", "RunAsGroup", "RunAsNonRoot", "SupplementalGroups", "SupplementalGroupsPolicy", "FsGroup", "Sysctls", "FsGroupChangePolicy", "SeccompProfile", "AppArmorProfile", "SeLinuxChangePolicy", }); internal_static_k8s_io_api_core_v1_PodSignature_descriptor = - getDescriptor().getMessageTypes().get(157); + getDescriptor().getMessageTypes().get(159); internal_static_k8s_io_api_core_v1_PodSignature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodSignature_descriptor, new java.lang.String[] { "PodController", }); internal_static_k8s_io_api_core_v1_PodSpec_descriptor = - getDescriptor().getMessageTypes().get(158); + getDescriptor().getMessageTypes().get(160); internal_static_k8s_io_api_core_v1_PodSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodSpec_descriptor, - new java.lang.String[] { "Volumes", "InitContainers", "Containers", "EphemeralContainers", "RestartPolicy", "TerminationGracePeriodSeconds", "ActiveDeadlineSeconds", "DnsPolicy", "NodeSelector", "ServiceAccountName", "ServiceAccount", "AutomountServiceAccountToken", "NodeName", "HostNetwork", "HostPID", "HostIPC", "ShareProcessNamespace", "SecurityContext", "ImagePullSecrets", "Hostname", "Subdomain", "Affinity", "SchedulerName", "Tolerations", "HostAliases", "PriorityClassName", "Priority", "DnsConfig", "ReadinessGates", "RuntimeClassName", "EnableServiceLinks", "PreemptionPolicy", "Overhead", "TopologySpreadConstraints", "SetHostnameAsFQDN", "Os", "HostUsers", "SchedulingGates", "ResourceClaims", "Resources", "HostnameOverride", "WorkloadRef", }); + new java.lang.String[] { "Volumes", "InitContainers", "Containers", "EphemeralContainers", "RestartPolicy", "TerminationGracePeriodSeconds", "ActiveDeadlineSeconds", "DnsPolicy", "NodeSelector", "ServiceAccountName", "ServiceAccount", "AutomountServiceAccountToken", "NodeName", "HostNetwork", "HostPID", "HostIPC", "ShareProcessNamespace", "SecurityContext", "ImagePullSecrets", "Hostname", "Subdomain", "Affinity", "SchedulerName", "Tolerations", "HostAliases", "PriorityClassName", "Priority", "DnsConfig", "ReadinessGates", "RuntimeClassName", "EnableServiceLinks", "PreemptionPolicy", "Overhead", "TopologySpreadConstraints", "SetHostnameAsFQDN", "Os", "HostUsers", "SchedulingGates", "ResourceClaims", "Resources", "HostnameOverride", "SchedulingGroup", }); internal_static_k8s_io_api_core_v1_PodSpec_NodeSelectorEntry_descriptor = internal_static_k8s_io_api_core_v1_PodSpec_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_core_v1_PodSpec_NodeSelectorEntry_fieldAccessorTable = new @@ -396681,133 +397625,127 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_core_v1_PodSpec_OverheadEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_PodStatus_descriptor = - getDescriptor().getMessageTypes().get(159); + getDescriptor().getMessageTypes().get(161); internal_static_k8s_io_api_core_v1_PodStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodStatus_descriptor, - new java.lang.String[] { "ObservedGeneration", "Phase", "Conditions", "Message", "Reason", "NominatedNodeName", "HostIP", "HostIPs", "PodIP", "PodIPs", "StartTime", "InitContainerStatuses", "ContainerStatuses", "QosClass", "EphemeralContainerStatuses", "Resize", "ResourceClaimStatuses", "ExtendedResourceClaimStatus", "AllocatedResources", "Resources", }); + new java.lang.String[] { "ObservedGeneration", "Phase", "Conditions", "Message", "Reason", "NominatedNodeName", "HostIP", "HostIPs", "PodIP", "PodIPs", "StartTime", "InitContainerStatuses", "ContainerStatuses", "QosClass", "EphemeralContainerStatuses", "Resize", "ResourceClaimStatuses", "ExtendedResourceClaimStatus", "AllocatedResources", "Resources", "NodeAllocatableResourceClaimStatuses", }); internal_static_k8s_io_api_core_v1_PodStatus_AllocatedResourcesEntry_descriptor = internal_static_k8s_io_api_core_v1_PodStatus_descriptor.getNestedTypes().get(0); internal_static_k8s_io_api_core_v1_PodStatus_AllocatedResourcesEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodStatus_AllocatedResourcesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_k8s_io_api_core_v1_PodStatusResult_descriptor = - getDescriptor().getMessageTypes().get(160); - internal_static_k8s_io_api_core_v1_PodStatusResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_k8s_io_api_core_v1_PodStatusResult_descriptor, - new java.lang.String[] { "Metadata", "Status", }); internal_static_k8s_io_api_core_v1_PodTemplate_descriptor = - getDescriptor().getMessageTypes().get(161); + getDescriptor().getMessageTypes().get(162); internal_static_k8s_io_api_core_v1_PodTemplate_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodTemplate_descriptor, new java.lang.String[] { "Metadata", "Template", }); internal_static_k8s_io_api_core_v1_PodTemplateList_descriptor = - getDescriptor().getMessageTypes().get(162); + getDescriptor().getMessageTypes().get(163); internal_static_k8s_io_api_core_v1_PodTemplateList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodTemplateList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_PodTemplateSpec_descriptor = - getDescriptor().getMessageTypes().get(163); + getDescriptor().getMessageTypes().get(164); internal_static_k8s_io_api_core_v1_PodTemplateSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PodTemplateSpec_descriptor, new java.lang.String[] { "Metadata", "Spec", }); internal_static_k8s_io_api_core_v1_PortStatus_descriptor = - getDescriptor().getMessageTypes().get(164); + getDescriptor().getMessageTypes().get(165); internal_static_k8s_io_api_core_v1_PortStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PortStatus_descriptor, new java.lang.String[] { "Port", "Protocol", "Error", }); internal_static_k8s_io_api_core_v1_PortworxVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(165); + getDescriptor().getMessageTypes().get(166); internal_static_k8s_io_api_core_v1_PortworxVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PortworxVolumeSource_descriptor, new java.lang.String[] { "VolumeID", "FsType", "ReadOnly", }); internal_static_k8s_io_api_core_v1_Preconditions_descriptor = - getDescriptor().getMessageTypes().get(166); + getDescriptor().getMessageTypes().get(167); internal_static_k8s_io_api_core_v1_Preconditions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Preconditions_descriptor, new java.lang.String[] { "Uid", }); internal_static_k8s_io_api_core_v1_PreferAvoidPodsEntry_descriptor = - getDescriptor().getMessageTypes().get(167); + getDescriptor().getMessageTypes().get(168); internal_static_k8s_io_api_core_v1_PreferAvoidPodsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PreferAvoidPodsEntry_descriptor, new java.lang.String[] { "PodSignature", "EvictionTime", "Reason", "Message", }); internal_static_k8s_io_api_core_v1_PreferredSchedulingTerm_descriptor = - getDescriptor().getMessageTypes().get(168); + getDescriptor().getMessageTypes().get(169); internal_static_k8s_io_api_core_v1_PreferredSchedulingTerm_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_PreferredSchedulingTerm_descriptor, new java.lang.String[] { "Weight", "Preference", }); internal_static_k8s_io_api_core_v1_Probe_descriptor = - getDescriptor().getMessageTypes().get(169); + getDescriptor().getMessageTypes().get(170); internal_static_k8s_io_api_core_v1_Probe_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Probe_descriptor, new java.lang.String[] { "Handler", "InitialDelaySeconds", "TimeoutSeconds", "PeriodSeconds", "SuccessThreshold", "FailureThreshold", "TerminationGracePeriodSeconds", }); internal_static_k8s_io_api_core_v1_ProbeHandler_descriptor = - getDescriptor().getMessageTypes().get(170); + getDescriptor().getMessageTypes().get(171); internal_static_k8s_io_api_core_v1_ProbeHandler_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ProbeHandler_descriptor, new java.lang.String[] { "Exec", "HttpGet", "TcpSocket", "Grpc", }); internal_static_k8s_io_api_core_v1_ProjectedVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(171); + getDescriptor().getMessageTypes().get(172); internal_static_k8s_io_api_core_v1_ProjectedVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ProjectedVolumeSource_descriptor, new java.lang.String[] { "Sources", "DefaultMode", }); internal_static_k8s_io_api_core_v1_QuobyteVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(172); + getDescriptor().getMessageTypes().get(173); internal_static_k8s_io_api_core_v1_QuobyteVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_QuobyteVolumeSource_descriptor, new java.lang.String[] { "Registry", "Volume", "ReadOnly", "User", "Group", "Tenant", }); internal_static_k8s_io_api_core_v1_RBDPersistentVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(173); + getDescriptor().getMessageTypes().get(174); internal_static_k8s_io_api_core_v1_RBDPersistentVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_RBDPersistentVolumeSource_descriptor, new java.lang.String[] { "Monitors", "Image", "FsType", "Pool", "User", "Keyring", "SecretRef", "ReadOnly", }); internal_static_k8s_io_api_core_v1_RBDVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(174); + getDescriptor().getMessageTypes().get(175); internal_static_k8s_io_api_core_v1_RBDVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_RBDVolumeSource_descriptor, new java.lang.String[] { "Monitors", "Image", "FsType", "Pool", "User", "Keyring", "SecretRef", "ReadOnly", }); internal_static_k8s_io_api_core_v1_RangeAllocation_descriptor = - getDescriptor().getMessageTypes().get(175); + getDescriptor().getMessageTypes().get(176); internal_static_k8s_io_api_core_v1_RangeAllocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_RangeAllocation_descriptor, new java.lang.String[] { "Metadata", "Range", "Data", }); internal_static_k8s_io_api_core_v1_ReplicationController_descriptor = - getDescriptor().getMessageTypes().get(176); + getDescriptor().getMessageTypes().get(177); internal_static_k8s_io_api_core_v1_ReplicationController_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ReplicationController_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_core_v1_ReplicationControllerCondition_descriptor = - getDescriptor().getMessageTypes().get(177); + getDescriptor().getMessageTypes().get(178); internal_static_k8s_io_api_core_v1_ReplicationControllerCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ReplicationControllerCondition_descriptor, new java.lang.String[] { "Type", "Status", "LastTransitionTime", "Reason", "Message", }); internal_static_k8s_io_api_core_v1_ReplicationControllerList_descriptor = - getDescriptor().getMessageTypes().get(178); + getDescriptor().getMessageTypes().get(179); internal_static_k8s_io_api_core_v1_ReplicationControllerList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ReplicationControllerList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_descriptor = - getDescriptor().getMessageTypes().get(179); + getDescriptor().getMessageTypes().get(180); internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_descriptor, @@ -396819,43 +397757,43 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_core_v1_ReplicationControllerSpec_SelectorEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_ReplicationControllerStatus_descriptor = - getDescriptor().getMessageTypes().get(180); + getDescriptor().getMessageTypes().get(181); internal_static_k8s_io_api_core_v1_ReplicationControllerStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ReplicationControllerStatus_descriptor, new java.lang.String[] { "Replicas", "FullyLabeledReplicas", "ReadyReplicas", "AvailableReplicas", "ObservedGeneration", "Conditions", }); internal_static_k8s_io_api_core_v1_ResourceClaim_descriptor = - getDescriptor().getMessageTypes().get(181); + getDescriptor().getMessageTypes().get(182); internal_static_k8s_io_api_core_v1_ResourceClaim_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceClaim_descriptor, new java.lang.String[] { "Name", "Request", }); internal_static_k8s_io_api_core_v1_ResourceFieldSelector_descriptor = - getDescriptor().getMessageTypes().get(182); + getDescriptor().getMessageTypes().get(183); internal_static_k8s_io_api_core_v1_ResourceFieldSelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceFieldSelector_descriptor, new java.lang.String[] { "ContainerName", "Resource", "Divisor", }); internal_static_k8s_io_api_core_v1_ResourceHealth_descriptor = - getDescriptor().getMessageTypes().get(183); + getDescriptor().getMessageTypes().get(184); internal_static_k8s_io_api_core_v1_ResourceHealth_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceHealth_descriptor, - new java.lang.String[] { "ResourceID", "Health", }); + new java.lang.String[] { "ResourceID", "Health", "Message", }); internal_static_k8s_io_api_core_v1_ResourceQuota_descriptor = - getDescriptor().getMessageTypes().get(184); + getDescriptor().getMessageTypes().get(185); internal_static_k8s_io_api_core_v1_ResourceQuota_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceQuota_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_core_v1_ResourceQuotaList_descriptor = - getDescriptor().getMessageTypes().get(185); + getDescriptor().getMessageTypes().get(186); internal_static_k8s_io_api_core_v1_ResourceQuotaList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceQuotaList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_descriptor = - getDescriptor().getMessageTypes().get(186); + getDescriptor().getMessageTypes().get(187); internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_descriptor, @@ -396867,7 +397805,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_core_v1_ResourceQuotaSpec_HardEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_descriptor = - getDescriptor().getMessageTypes().get(187); + getDescriptor().getMessageTypes().get(188); internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_descriptor, @@ -396885,7 +397823,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_core_v1_ResourceQuotaStatus_UsedEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_ResourceRequirements_descriptor = - getDescriptor().getMessageTypes().get(188); + getDescriptor().getMessageTypes().get(189); internal_static_k8s_io_api_core_v1_ResourceRequirements_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceRequirements_descriptor, @@ -396903,49 +397841,49 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_core_v1_ResourceRequirements_RequestsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_ResourceStatus_descriptor = - getDescriptor().getMessageTypes().get(189); + getDescriptor().getMessageTypes().get(190); internal_static_k8s_io_api_core_v1_ResourceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ResourceStatus_descriptor, new java.lang.String[] { "Name", "Resources", }); internal_static_k8s_io_api_core_v1_SELinuxOptions_descriptor = - getDescriptor().getMessageTypes().get(190); + getDescriptor().getMessageTypes().get(191); internal_static_k8s_io_api_core_v1_SELinuxOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SELinuxOptions_descriptor, new java.lang.String[] { "User", "Role", "Type", "Level", }); internal_static_k8s_io_api_core_v1_ScaleIOPersistentVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(191); + getDescriptor().getMessageTypes().get(192); internal_static_k8s_io_api_core_v1_ScaleIOPersistentVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ScaleIOPersistentVolumeSource_descriptor, new java.lang.String[] { "Gateway", "System", "SecretRef", "SslEnabled", "ProtectionDomain", "StoragePool", "StorageMode", "VolumeName", "FsType", "ReadOnly", }); internal_static_k8s_io_api_core_v1_ScaleIOVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(192); + getDescriptor().getMessageTypes().get(193); internal_static_k8s_io_api_core_v1_ScaleIOVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ScaleIOVolumeSource_descriptor, new java.lang.String[] { "Gateway", "System", "SecretRef", "SslEnabled", "ProtectionDomain", "StoragePool", "StorageMode", "VolumeName", "FsType", "ReadOnly", }); internal_static_k8s_io_api_core_v1_ScopeSelector_descriptor = - getDescriptor().getMessageTypes().get(193); + getDescriptor().getMessageTypes().get(194); internal_static_k8s_io_api_core_v1_ScopeSelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ScopeSelector_descriptor, new java.lang.String[] { "MatchExpressions", }); internal_static_k8s_io_api_core_v1_ScopedResourceSelectorRequirement_descriptor = - getDescriptor().getMessageTypes().get(194); + getDescriptor().getMessageTypes().get(195); internal_static_k8s_io_api_core_v1_ScopedResourceSelectorRequirement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ScopedResourceSelectorRequirement_descriptor, new java.lang.String[] { "ScopeName", "Operator", "Values", }); internal_static_k8s_io_api_core_v1_SeccompProfile_descriptor = - getDescriptor().getMessageTypes().get(195); + getDescriptor().getMessageTypes().get(196); internal_static_k8s_io_api_core_v1_SeccompProfile_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SeccompProfile_descriptor, new java.lang.String[] { "Type", "LocalhostProfile", }); internal_static_k8s_io_api_core_v1_Secret_descriptor = - getDescriptor().getMessageTypes().get(196); + getDescriptor().getMessageTypes().get(197); internal_static_k8s_io_api_core_v1_Secret_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Secret_descriptor, @@ -396963,97 +397901,97 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_core_v1_Secret_StringDataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_SecretEnvSource_descriptor = - getDescriptor().getMessageTypes().get(197); + getDescriptor().getMessageTypes().get(198); internal_static_k8s_io_api_core_v1_SecretEnvSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SecretEnvSource_descriptor, new java.lang.String[] { "LocalObjectReference", "Optional", }); internal_static_k8s_io_api_core_v1_SecretKeySelector_descriptor = - getDescriptor().getMessageTypes().get(198); + getDescriptor().getMessageTypes().get(199); internal_static_k8s_io_api_core_v1_SecretKeySelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SecretKeySelector_descriptor, new java.lang.String[] { "LocalObjectReference", "Key", "Optional", }); internal_static_k8s_io_api_core_v1_SecretList_descriptor = - getDescriptor().getMessageTypes().get(199); + getDescriptor().getMessageTypes().get(200); internal_static_k8s_io_api_core_v1_SecretList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SecretList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_SecretProjection_descriptor = - getDescriptor().getMessageTypes().get(200); + getDescriptor().getMessageTypes().get(201); internal_static_k8s_io_api_core_v1_SecretProjection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SecretProjection_descriptor, new java.lang.String[] { "LocalObjectReference", "Items", "Optional", }); internal_static_k8s_io_api_core_v1_SecretReference_descriptor = - getDescriptor().getMessageTypes().get(201); + getDescriptor().getMessageTypes().get(202); internal_static_k8s_io_api_core_v1_SecretReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SecretReference_descriptor, new java.lang.String[] { "Name", "Namespace", }); internal_static_k8s_io_api_core_v1_SecretVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(202); + getDescriptor().getMessageTypes().get(203); internal_static_k8s_io_api_core_v1_SecretVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SecretVolumeSource_descriptor, new java.lang.String[] { "SecretName", "Items", "DefaultMode", "Optional", }); internal_static_k8s_io_api_core_v1_SecurityContext_descriptor = - getDescriptor().getMessageTypes().get(203); + getDescriptor().getMessageTypes().get(204); internal_static_k8s_io_api_core_v1_SecurityContext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SecurityContext_descriptor, new java.lang.String[] { "Capabilities", "Privileged", "SeLinuxOptions", "WindowsOptions", "RunAsUser", "RunAsGroup", "RunAsNonRoot", "ReadOnlyRootFilesystem", "AllowPrivilegeEscalation", "ProcMount", "SeccompProfile", "AppArmorProfile", }); internal_static_k8s_io_api_core_v1_SerializedReference_descriptor = - getDescriptor().getMessageTypes().get(204); + getDescriptor().getMessageTypes().get(205); internal_static_k8s_io_api_core_v1_SerializedReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SerializedReference_descriptor, new java.lang.String[] { "Reference", }); internal_static_k8s_io_api_core_v1_Service_descriptor = - getDescriptor().getMessageTypes().get(205); + getDescriptor().getMessageTypes().get(206); internal_static_k8s_io_api_core_v1_Service_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Service_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_core_v1_ServiceAccount_descriptor = - getDescriptor().getMessageTypes().get(206); + getDescriptor().getMessageTypes().get(207); internal_static_k8s_io_api_core_v1_ServiceAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServiceAccount_descriptor, new java.lang.String[] { "Metadata", "Secrets", "ImagePullSecrets", "AutomountServiceAccountToken", }); internal_static_k8s_io_api_core_v1_ServiceAccountList_descriptor = - getDescriptor().getMessageTypes().get(207); + getDescriptor().getMessageTypes().get(208); internal_static_k8s_io_api_core_v1_ServiceAccountList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServiceAccountList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_ServiceAccountTokenProjection_descriptor = - getDescriptor().getMessageTypes().get(208); + getDescriptor().getMessageTypes().get(209); internal_static_k8s_io_api_core_v1_ServiceAccountTokenProjection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServiceAccountTokenProjection_descriptor, new java.lang.String[] { "Audience", "ExpirationSeconds", "Path", }); internal_static_k8s_io_api_core_v1_ServiceList_descriptor = - getDescriptor().getMessageTypes().get(209); + getDescriptor().getMessageTypes().get(210); internal_static_k8s_io_api_core_v1_ServiceList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServiceList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_core_v1_ServicePort_descriptor = - getDescriptor().getMessageTypes().get(210); + getDescriptor().getMessageTypes().get(211); internal_static_k8s_io_api_core_v1_ServicePort_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServicePort_descriptor, new java.lang.String[] { "Name", "Protocol", "AppProtocol", "Port", "TargetPort", "NodePort", }); internal_static_k8s_io_api_core_v1_ServiceProxyOptions_descriptor = - getDescriptor().getMessageTypes().get(211); + getDescriptor().getMessageTypes().get(212); internal_static_k8s_io_api_core_v1_ServiceProxyOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServiceProxyOptions_descriptor, new java.lang.String[] { "Path", }); internal_static_k8s_io_api_core_v1_ServiceSpec_descriptor = - getDescriptor().getMessageTypes().get(212); + getDescriptor().getMessageTypes().get(213); internal_static_k8s_io_api_core_v1_ServiceSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServiceSpec_descriptor, @@ -397065,127 +398003,127 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_core_v1_ServiceSpec_SelectorEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_ServiceStatus_descriptor = - getDescriptor().getMessageTypes().get(213); + getDescriptor().getMessageTypes().get(214); internal_static_k8s_io_api_core_v1_ServiceStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_ServiceStatus_descriptor, new java.lang.String[] { "LoadBalancer", "Conditions", }); internal_static_k8s_io_api_core_v1_SessionAffinityConfig_descriptor = - getDescriptor().getMessageTypes().get(214); + getDescriptor().getMessageTypes().get(215); internal_static_k8s_io_api_core_v1_SessionAffinityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SessionAffinityConfig_descriptor, new java.lang.String[] { "ClientIP", }); internal_static_k8s_io_api_core_v1_SleepAction_descriptor = - getDescriptor().getMessageTypes().get(215); + getDescriptor().getMessageTypes().get(216); internal_static_k8s_io_api_core_v1_SleepAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_SleepAction_descriptor, new java.lang.String[] { "Seconds", }); internal_static_k8s_io_api_core_v1_StorageOSPersistentVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(216); + getDescriptor().getMessageTypes().get(217); internal_static_k8s_io_api_core_v1_StorageOSPersistentVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_StorageOSPersistentVolumeSource_descriptor, new java.lang.String[] { "VolumeName", "VolumeNamespace", "FsType", "ReadOnly", "SecretRef", }); internal_static_k8s_io_api_core_v1_StorageOSVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(217); + getDescriptor().getMessageTypes().get(218); internal_static_k8s_io_api_core_v1_StorageOSVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_StorageOSVolumeSource_descriptor, new java.lang.String[] { "VolumeName", "VolumeNamespace", "FsType", "ReadOnly", "SecretRef", }); internal_static_k8s_io_api_core_v1_Sysctl_descriptor = - getDescriptor().getMessageTypes().get(218); + getDescriptor().getMessageTypes().get(219); internal_static_k8s_io_api_core_v1_Sysctl_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Sysctl_descriptor, new java.lang.String[] { "Name", "Value", }); internal_static_k8s_io_api_core_v1_TCPSocketAction_descriptor = - getDescriptor().getMessageTypes().get(219); + getDescriptor().getMessageTypes().get(220); internal_static_k8s_io_api_core_v1_TCPSocketAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_TCPSocketAction_descriptor, new java.lang.String[] { "Port", "Host", }); internal_static_k8s_io_api_core_v1_Taint_descriptor = - getDescriptor().getMessageTypes().get(220); + getDescriptor().getMessageTypes().get(221); internal_static_k8s_io_api_core_v1_Taint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Taint_descriptor, new java.lang.String[] { "Key", "Value", "Effect", "TimeAdded", }); internal_static_k8s_io_api_core_v1_Toleration_descriptor = - getDescriptor().getMessageTypes().get(221); + getDescriptor().getMessageTypes().get(222); internal_static_k8s_io_api_core_v1_Toleration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Toleration_descriptor, new java.lang.String[] { "Key", "Operator", "Value", "Effect", "TolerationSeconds", }); internal_static_k8s_io_api_core_v1_TopologySelectorLabelRequirement_descriptor = - getDescriptor().getMessageTypes().get(222); + getDescriptor().getMessageTypes().get(223); internal_static_k8s_io_api_core_v1_TopologySelectorLabelRequirement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_TopologySelectorLabelRequirement_descriptor, new java.lang.String[] { "Key", "Values", }); internal_static_k8s_io_api_core_v1_TopologySelectorTerm_descriptor = - getDescriptor().getMessageTypes().get(223); + getDescriptor().getMessageTypes().get(224); internal_static_k8s_io_api_core_v1_TopologySelectorTerm_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_TopologySelectorTerm_descriptor, new java.lang.String[] { "MatchLabelExpressions", }); internal_static_k8s_io_api_core_v1_TopologySpreadConstraint_descriptor = - getDescriptor().getMessageTypes().get(224); + getDescriptor().getMessageTypes().get(225); internal_static_k8s_io_api_core_v1_TopologySpreadConstraint_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_TopologySpreadConstraint_descriptor, new java.lang.String[] { "MaxSkew", "TopologyKey", "WhenUnsatisfiable", "LabelSelector", "MinDomains", "NodeAffinityPolicy", "NodeTaintsPolicy", "MatchLabelKeys", }); internal_static_k8s_io_api_core_v1_TypedLocalObjectReference_descriptor = - getDescriptor().getMessageTypes().get(225); + getDescriptor().getMessageTypes().get(226); internal_static_k8s_io_api_core_v1_TypedLocalObjectReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_TypedLocalObjectReference_descriptor, new java.lang.String[] { "ApiGroup", "Kind", "Name", }); internal_static_k8s_io_api_core_v1_TypedObjectReference_descriptor = - getDescriptor().getMessageTypes().get(226); + getDescriptor().getMessageTypes().get(227); internal_static_k8s_io_api_core_v1_TypedObjectReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_TypedObjectReference_descriptor, new java.lang.String[] { "ApiGroup", "Kind", "Name", "Namespace", }); internal_static_k8s_io_api_core_v1_Volume_descriptor = - getDescriptor().getMessageTypes().get(227); + getDescriptor().getMessageTypes().get(228); internal_static_k8s_io_api_core_v1_Volume_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_Volume_descriptor, new java.lang.String[] { "Name", "VolumeSource", }); internal_static_k8s_io_api_core_v1_VolumeDevice_descriptor = - getDescriptor().getMessageTypes().get(228); + getDescriptor().getMessageTypes().get(229); internal_static_k8s_io_api_core_v1_VolumeDevice_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_VolumeDevice_descriptor, new java.lang.String[] { "Name", "DevicePath", }); internal_static_k8s_io_api_core_v1_VolumeMount_descriptor = - getDescriptor().getMessageTypes().get(229); + getDescriptor().getMessageTypes().get(230); internal_static_k8s_io_api_core_v1_VolumeMount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_VolumeMount_descriptor, new java.lang.String[] { "Name", "ReadOnly", "RecursiveReadOnly", "MountPath", "SubPath", "MountPropagation", "SubPathExpr", }); internal_static_k8s_io_api_core_v1_VolumeMountStatus_descriptor = - getDescriptor().getMessageTypes().get(230); + getDescriptor().getMessageTypes().get(231); internal_static_k8s_io_api_core_v1_VolumeMountStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_VolumeMountStatus_descriptor, new java.lang.String[] { "Name", "MountPath", "ReadOnly", "RecursiveReadOnly", "VolumeStatus", }); internal_static_k8s_io_api_core_v1_VolumeNodeAffinity_descriptor = - getDescriptor().getMessageTypes().get(231); + getDescriptor().getMessageTypes().get(232); internal_static_k8s_io_api_core_v1_VolumeNodeAffinity_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_VolumeNodeAffinity_descriptor, new java.lang.String[] { "Required", }); internal_static_k8s_io_api_core_v1_VolumeProjection_descriptor = - getDescriptor().getMessageTypes().get(232); + getDescriptor().getMessageTypes().get(233); internal_static_k8s_io_api_core_v1_VolumeProjection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_VolumeProjection_descriptor, new java.lang.String[] { "Secret", "DownwardAPI", "ConfigMap", "ServiceAccountToken", "ClusterTrustBundle", "PodCertificate", }); internal_static_k8s_io_api_core_v1_VolumeResourceRequirements_descriptor = - getDescriptor().getMessageTypes().get(233); + getDescriptor().getMessageTypes().get(234); internal_static_k8s_io_api_core_v1_VolumeResourceRequirements_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_VolumeResourceRequirements_descriptor, @@ -397203,41 +398141,35 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_core_v1_VolumeResourceRequirements_RequestsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_k8s_io_api_core_v1_VolumeSource_descriptor = - getDescriptor().getMessageTypes().get(234); + getDescriptor().getMessageTypes().get(235); internal_static_k8s_io_api_core_v1_VolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_VolumeSource_descriptor, new java.lang.String[] { "HostPath", "EmptyDir", "GcePersistentDisk", "AwsElasticBlockStore", "GitRepo", "Secret", "Nfs", "Iscsi", "Glusterfs", "PersistentVolumeClaim", "Rbd", "FlexVolume", "Cinder", "Cephfs", "Flocker", "DownwardAPI", "Fc", "AzureFile", "ConfigMap", "VsphereVolume", "Quobyte", "AzureDisk", "PhotonPersistentDisk", "Projected", "PortworxVolume", "ScaleIO", "Storageos", "Csi", "Ephemeral", "Image", }); internal_static_k8s_io_api_core_v1_VolumeStatus_descriptor = - getDescriptor().getMessageTypes().get(235); + getDescriptor().getMessageTypes().get(236); internal_static_k8s_io_api_core_v1_VolumeStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_VolumeStatus_descriptor, new java.lang.String[] { "Image", }); internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_descriptor = - getDescriptor().getMessageTypes().get(236); + getDescriptor().getMessageTypes().get(237); internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_VsphereVirtualDiskVolumeSource_descriptor, new java.lang.String[] { "VolumePath", "FsType", "StoragePolicyName", "StoragePolicyID", }); internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_descriptor = - getDescriptor().getMessageTypes().get(237); + getDescriptor().getMessageTypes().get(238); internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_WeightedPodAffinityTerm_descriptor, new java.lang.String[] { "Weight", "PodAffinityTerm", }); internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_descriptor = - getDescriptor().getMessageTypes().get(238); + getDescriptor().getMessageTypes().get(239); internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_core_v1_WindowsSecurityContextOptions_descriptor, new java.lang.String[] { "GmsaCredentialSpecName", "GmsaCredentialSpec", "RunAsUserName", "HostProcess", }); - internal_static_k8s_io_api_core_v1_WorkloadReference_descriptor = - getDescriptor().getMessageTypes().get(239); - internal_static_k8s_io_api_core_v1_WorkloadReference_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_k8s_io_api_core_v1_WorkloadReference_descriptor, - new java.lang.String[] { "Name", "PodGroup", "PodGroupReplicaKey", }); io.kubernetes.client.proto.Resource.getDescriptor(); io.kubernetes.client.proto.Meta.getDescriptor(); io.kubernetes.client.proto.Runtime.getDescriptor(); diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Admission.java b/proto/src/main/java/io/kubernetes/client/proto/V1Admission.java index 6a3f31ad07..65b0610d7c 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V1Admission.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Admission.java @@ -24,6 +24,7 @@ public interface AdmissionRequestOrBuilder extends * otherwise identical (parallel requests, requests when earlier requests did not modify etc) * The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. * It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. + * +optional * * * optional string uid = 1; @@ -35,6 +36,7 @@ public interface AdmissionRequestOrBuilder extends * otherwise identical (parallel requests, requests when earlier requests did not modify etc) * The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. * It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. + * +optional * * * optional string uid = 1; @@ -46,6 +48,7 @@ public interface AdmissionRequestOrBuilder extends * otherwise identical (parallel requests, requests when earlier requests did not modify etc) * The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. * It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. + * +optional * * * optional string uid = 1; @@ -56,6 +59,7 @@ public interface AdmissionRequestOrBuilder extends /** *
      * kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; @@ -64,6 +68,7 @@ public interface AdmissionRequestOrBuilder extends /** *
      * kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; @@ -72,6 +77,7 @@ public interface AdmissionRequestOrBuilder extends /** *
      * kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; @@ -81,6 +87,7 @@ public interface AdmissionRequestOrBuilder extends /** *
      * resource is the fully-qualified resource being requested (for example, v1.pods)
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; @@ -89,6 +96,7 @@ public interface AdmissionRequestOrBuilder extends /** *
      * resource is the fully-qualified resource being requested (for example, v1.pods)
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; @@ -97,6 +105,7 @@ public interface AdmissionRequestOrBuilder extends /** *
      * resource is the fully-qualified resource being requested (for example, v1.pods)
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; @@ -330,6 +339,7 @@ public interface AdmissionRequestOrBuilder extends *
      * operation is the operation being performed. This may be different than the operation
      * requested. e.g. a patch can result in either a CREATE or UPDATE Operation.
+     * +optional
      * 
* * optional string operation = 7; @@ -339,6 +349,7 @@ public interface AdmissionRequestOrBuilder extends *
      * operation is the operation being performed. This may be different than the operation
      * requested. e.g. a patch can result in either a CREATE or UPDATE Operation.
+     * +optional
      * 
* * optional string operation = 7; @@ -348,6 +359,7 @@ public interface AdmissionRequestOrBuilder extends *
      * operation is the operation being performed. This may be different than the operation
      * requested. e.g. a patch can result in either a CREATE or UPDATE Operation.
+     * +optional
      * 
* * optional string operation = 7; @@ -358,6 +370,7 @@ public interface AdmissionRequestOrBuilder extends /** *
      * userInfo is information about the requesting user
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.UserInfo userInfo = 8; @@ -366,6 +379,7 @@ public interface AdmissionRequestOrBuilder extends /** *
      * userInfo is information about the requesting user
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.UserInfo userInfo = 8; @@ -374,6 +388,7 @@ public interface AdmissionRequestOrBuilder extends /** *
      * userInfo is information about the requesting user
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.UserInfo userInfo = 8; @@ -733,6 +748,7 @@ private AdmissionRequest( * otherwise identical (parallel requests, requests when earlier requests did not modify etc) * The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. * It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. + * +optional * * * optional string uid = 1; @@ -746,6 +762,7 @@ public boolean hasUid() { * otherwise identical (parallel requests, requests when earlier requests did not modify etc) * The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. * It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. + * +optional * * * optional string uid = 1; @@ -770,6 +787,7 @@ public java.lang.String getUid() { * otherwise identical (parallel requests, requests when earlier requests did not modify etc) * The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. * It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. + * +optional * * * optional string uid = 1; @@ -793,6 +811,7 @@ public java.lang.String getUid() { /** *
      * kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; @@ -803,6 +822,7 @@ public boolean hasKind() { /** *
      * kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; @@ -813,6 +833,7 @@ public io.kubernetes.client.proto.Meta.GroupVersionKind getKind() { /** *
      * kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; @@ -826,6 +847,7 @@ public io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getKindOrBuilde /** *
      * resource is the fully-qualified resource being requested (for example, v1.pods)
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; @@ -836,6 +858,7 @@ public boolean hasResource() { /** *
      * resource is the fully-qualified resource being requested (for example, v1.pods)
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; @@ -846,6 +869,7 @@ public io.kubernetes.client.proto.Meta.GroupVersionResource getResource() { /** *
      * resource is the fully-qualified resource being requested (for example, v1.pods)
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; @@ -1211,6 +1235,7 @@ public java.lang.String getNamespace() { *
      * operation is the operation being performed. This may be different than the operation
      * requested. e.g. a patch can result in either a CREATE or UPDATE Operation.
+     * +optional
      * 
* * optional string operation = 7; @@ -1222,6 +1247,7 @@ public boolean hasOperation() { *
      * operation is the operation being performed. This may be different than the operation
      * requested. e.g. a patch can result in either a CREATE or UPDATE Operation.
+     * +optional
      * 
* * optional string operation = 7; @@ -1244,6 +1270,7 @@ public java.lang.String getOperation() { *
      * operation is the operation being performed. This may be different than the operation
      * requested. e.g. a patch can result in either a CREATE or UPDATE Operation.
+     * +optional
      * 
* * optional string operation = 7; @@ -1267,6 +1294,7 @@ public java.lang.String getOperation() { /** *
      * userInfo is information about the requesting user
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.UserInfo userInfo = 8; @@ -1277,6 +1305,7 @@ public boolean hasUserInfo() { /** *
      * userInfo is information about the requesting user
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.UserInfo userInfo = 8; @@ -1287,6 +1316,7 @@ public io.kubernetes.client.proto.V1Authentication.UserInfo getUserInfo() { /** *
      * userInfo is information about the requesting user
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.UserInfo userInfo = 8; @@ -2197,6 +2227,7 @@ public Builder mergeFrom( * otherwise identical (parallel requests, requests when earlier requests did not modify etc) * The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. * It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. + * +optional * * * optional string uid = 1; @@ -2210,6 +2241,7 @@ public boolean hasUid() { * otherwise identical (parallel requests, requests when earlier requests did not modify etc) * The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. * It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. + * +optional * * * optional string uid = 1; @@ -2234,6 +2266,7 @@ public java.lang.String getUid() { * otherwise identical (parallel requests, requests when earlier requests did not modify etc) * The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. * It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. + * +optional * * * optional string uid = 1; @@ -2257,6 +2290,7 @@ public java.lang.String getUid() { * otherwise identical (parallel requests, requests when earlier requests did not modify etc) * The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. * It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. + * +optional * * * optional string uid = 1; @@ -2277,6 +2311,7 @@ public Builder setUid( * otherwise identical (parallel requests, requests when earlier requests did not modify etc) * The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. * It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. + * +optional * * * optional string uid = 1; @@ -2293,6 +2328,7 @@ public Builder clearUid() { * otherwise identical (parallel requests, requests when earlier requests did not modify etc) * The UID is meant to track the round trip (request/response) between the KAS and the WebHook, not the user request. * It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. + * +optional * * * optional string uid = 1; @@ -2314,6 +2350,7 @@ public Builder setUidBytes( /** *
        * kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; @@ -2324,6 +2361,7 @@ public boolean hasKind() { /** *
        * kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; @@ -2338,6 +2376,7 @@ public io.kubernetes.client.proto.Meta.GroupVersionKind getKind() { /** *
        * kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; @@ -2358,6 +2397,7 @@ public Builder setKind(io.kubernetes.client.proto.Meta.GroupVersionKind value) { /** *
        * kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; @@ -2376,6 +2416,7 @@ public Builder setKind( /** *
        * kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; @@ -2400,6 +2441,7 @@ public Builder mergeKind(io.kubernetes.client.proto.Meta.GroupVersionKind value) /** *
        * kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; @@ -2417,6 +2459,7 @@ public Builder clearKind() { /** *
        * kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; @@ -2429,6 +2472,7 @@ public io.kubernetes.client.proto.Meta.GroupVersionKind.Builder getKindBuilder() /** *
        * kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; @@ -2444,6 +2488,7 @@ public io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getKindOrBuilde /** *
        * kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind kind = 2; @@ -2468,6 +2513,7 @@ public io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getKindOrBuilde /** *
        * resource is the fully-qualified resource being requested (for example, v1.pods)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; @@ -2478,6 +2524,7 @@ public boolean hasResource() { /** *
        * resource is the fully-qualified resource being requested (for example, v1.pods)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; @@ -2492,6 +2539,7 @@ public io.kubernetes.client.proto.Meta.GroupVersionResource getResource() { /** *
        * resource is the fully-qualified resource being requested (for example, v1.pods)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; @@ -2512,6 +2560,7 @@ public Builder setResource(io.kubernetes.client.proto.Meta.GroupVersionResource /** *
        * resource is the fully-qualified resource being requested (for example, v1.pods)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; @@ -2530,6 +2579,7 @@ public Builder setResource( /** *
        * resource is the fully-qualified resource being requested (for example, v1.pods)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; @@ -2554,6 +2604,7 @@ public Builder mergeResource(io.kubernetes.client.proto.Meta.GroupVersionResourc /** *
        * resource is the fully-qualified resource being requested (for example, v1.pods)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; @@ -2571,6 +2622,7 @@ public Builder clearResource() { /** *
        * resource is the fully-qualified resource being requested (for example, v1.pods)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; @@ -2583,6 +2635,7 @@ public io.kubernetes.client.proto.Meta.GroupVersionResource.Builder getResourceB /** *
        * resource is the fully-qualified resource being requested (for example, v1.pods)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; @@ -2598,6 +2651,7 @@ public io.kubernetes.client.proto.Meta.GroupVersionResourceOrBuilder getResource /** *
        * resource is the fully-qualified resource being requested (for example, v1.pods)
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionResource resource = 3; @@ -3515,6 +3569,7 @@ public Builder setNamespaceBytes( *
        * operation is the operation being performed. This may be different than the operation
        * requested. e.g. a patch can result in either a CREATE or UPDATE Operation.
+       * +optional
        * 
* * optional string operation = 7; @@ -3526,6 +3581,7 @@ public boolean hasOperation() { *
        * operation is the operation being performed. This may be different than the operation
        * requested. e.g. a patch can result in either a CREATE or UPDATE Operation.
+       * +optional
        * 
* * optional string operation = 7; @@ -3548,6 +3604,7 @@ public java.lang.String getOperation() { *
        * operation is the operation being performed. This may be different than the operation
        * requested. e.g. a patch can result in either a CREATE or UPDATE Operation.
+       * +optional
        * 
* * optional string operation = 7; @@ -3569,6 +3626,7 @@ public java.lang.String getOperation() { *
        * operation is the operation being performed. This may be different than the operation
        * requested. e.g. a patch can result in either a CREATE or UPDATE Operation.
+       * +optional
        * 
* * optional string operation = 7; @@ -3587,6 +3645,7 @@ public Builder setOperation( *
        * operation is the operation being performed. This may be different than the operation
        * requested. e.g. a patch can result in either a CREATE or UPDATE Operation.
+       * +optional
        * 
* * optional string operation = 7; @@ -3601,6 +3660,7 @@ public Builder clearOperation() { *
        * operation is the operation being performed. This may be different than the operation
        * requested. e.g. a patch can result in either a CREATE or UPDATE Operation.
+       * +optional
        * 
* * optional string operation = 7; @@ -3622,6 +3682,7 @@ public Builder setOperationBytes( /** *
        * userInfo is information about the requesting user
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.UserInfo userInfo = 8; @@ -3632,6 +3693,7 @@ public boolean hasUserInfo() { /** *
        * userInfo is information about the requesting user
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.UserInfo userInfo = 8; @@ -3646,6 +3708,7 @@ public io.kubernetes.client.proto.V1Authentication.UserInfo getUserInfo() { /** *
        * userInfo is information about the requesting user
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.UserInfo userInfo = 8; @@ -3666,6 +3729,7 @@ public Builder setUserInfo(io.kubernetes.client.proto.V1Authentication.UserInfo /** *
        * userInfo is information about the requesting user
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.UserInfo userInfo = 8; @@ -3684,6 +3748,7 @@ public Builder setUserInfo( /** *
        * userInfo is information about the requesting user
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.UserInfo userInfo = 8; @@ -3708,6 +3773,7 @@ public Builder mergeUserInfo(io.kubernetes.client.proto.V1Authentication.UserInf /** *
        * userInfo is information about the requesting user
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.UserInfo userInfo = 8; @@ -3725,6 +3791,7 @@ public Builder clearUserInfo() { /** *
        * userInfo is information about the requesting user
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.UserInfo userInfo = 8; @@ -3737,6 +3804,7 @@ public io.kubernetes.client.proto.V1Authentication.UserInfo.Builder getUserInfoB /** *
        * userInfo is information about the requesting user
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.UserInfo userInfo = 8; @@ -3752,6 +3820,7 @@ public io.kubernetes.client.proto.V1Authentication.UserInfoOrBuilder getUserInfo /** *
        * userInfo is information about the requesting user
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.UserInfo userInfo = 8; @@ -4411,6 +4480,7 @@ public interface AdmissionResponseOrBuilder extends *
      * uid is an identifier for the individual request/response.
      * This must be copied over from the corresponding AdmissionRequest.
+     * +optional
      * 
* * optional string uid = 1; @@ -4420,6 +4490,7 @@ public interface AdmissionResponseOrBuilder extends *
      * uid is an identifier for the individual request/response.
      * This must be copied over from the corresponding AdmissionRequest.
+     * +optional
      * 
* * optional string uid = 1; @@ -4429,6 +4500,7 @@ public interface AdmissionResponseOrBuilder extends *
      * uid is an identifier for the individual request/response.
      * This must be copied over from the corresponding AdmissionRequest.
+     * +optional
      * 
* * optional string uid = 1; @@ -4439,6 +4511,7 @@ public interface AdmissionResponseOrBuilder extends /** *
      * allowed indicates whether or not the admission request was permitted.
+     * +optional
      * 
* * optional bool allowed = 2; @@ -4447,6 +4520,7 @@ public interface AdmissionResponseOrBuilder extends /** *
      * allowed indicates whether or not the admission request was permitted.
+     * +optional
      * 
* * optional bool allowed = 2; @@ -4820,6 +4894,7 @@ protected com.google.protobuf.MapField internalGetMapField( *
      * uid is an identifier for the individual request/response.
      * This must be copied over from the corresponding AdmissionRequest.
+     * +optional
      * 
* * optional string uid = 1; @@ -4831,6 +4906,7 @@ public boolean hasUid() { *
      * uid is an identifier for the individual request/response.
      * This must be copied over from the corresponding AdmissionRequest.
+     * +optional
      * 
* * optional string uid = 1; @@ -4853,6 +4929,7 @@ public java.lang.String getUid() { *
      * uid is an identifier for the individual request/response.
      * This must be copied over from the corresponding AdmissionRequest.
+     * +optional
      * 
* * optional string uid = 1; @@ -4876,6 +4953,7 @@ public java.lang.String getUid() { /** *
      * allowed indicates whether or not the admission request was permitted.
+     * +optional
      * 
* * optional bool allowed = 2; @@ -4886,6 +4964,7 @@ public boolean hasAllowed() { /** *
      * allowed indicates whether or not the admission request was permitted.
+     * +optional
      * 
* * optional bool allowed = 2; @@ -5707,6 +5786,7 @@ public Builder mergeFrom( *
        * uid is an identifier for the individual request/response.
        * This must be copied over from the corresponding AdmissionRequest.
+       * +optional
        * 
* * optional string uid = 1; @@ -5718,6 +5798,7 @@ public boolean hasUid() { *
        * uid is an identifier for the individual request/response.
        * This must be copied over from the corresponding AdmissionRequest.
+       * +optional
        * 
* * optional string uid = 1; @@ -5740,6 +5821,7 @@ public java.lang.String getUid() { *
        * uid is an identifier for the individual request/response.
        * This must be copied over from the corresponding AdmissionRequest.
+       * +optional
        * 
* * optional string uid = 1; @@ -5761,6 +5843,7 @@ public java.lang.String getUid() { *
        * uid is an identifier for the individual request/response.
        * This must be copied over from the corresponding AdmissionRequest.
+       * +optional
        * 
* * optional string uid = 1; @@ -5779,6 +5862,7 @@ public Builder setUid( *
        * uid is an identifier for the individual request/response.
        * This must be copied over from the corresponding AdmissionRequest.
+       * +optional
        * 
* * optional string uid = 1; @@ -5793,6 +5877,7 @@ public Builder clearUid() { *
        * uid is an identifier for the individual request/response.
        * This must be copied over from the corresponding AdmissionRequest.
+       * +optional
        * 
* * optional string uid = 1; @@ -5812,6 +5897,7 @@ public Builder setUidBytes( /** *
        * allowed indicates whether or not the admission request was permitted.
+       * +optional
        * 
* * optional bool allowed = 2; @@ -5822,6 +5908,7 @@ public boolean hasAllowed() { /** *
        * allowed indicates whether or not the admission request was permitted.
+       * +optional
        * 
* * optional bool allowed = 2; @@ -5832,6 +5919,7 @@ public boolean getAllowed() { /** *
        * allowed indicates whether or not the admission request was permitted.
+       * +optional
        * 
* * optional bool allowed = 2; @@ -5845,6 +5933,7 @@ public Builder setAllowed(boolean value) { /** *
        * allowed indicates whether or not the admission request was permitted.
+       * +optional
        * 
* * optional bool allowed = 2; diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Admissionregistration.java b/proto/src/main/java/io/kubernetes/client/proto/V1Admissionregistration.java index 172a5fc05e..b82fee6043 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V1Admissionregistration.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Admissionregistration.java @@ -14,150 +14,144 @@ public static void registerAllExtensions( registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } - public interface AuditAnnotationOrBuilder extends - // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.AuditAnnotation) + public interface ApplyConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.ApplyConfiguration) com.google.protobuf.MessageOrBuilder { /** *
-     * key specifies the audit annotation key. The audit annotation keys of
-     * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
-     * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
-     * The key is combined with the resource name of the
-     * ValidatingAdmissionPolicy to construct an audit annotation key:
-     * "{ValidatingAdmissionPolicy name}/{key}".
-     * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
-     * and the same audit annotation key, the annotation key will be identical.
-     * In this case, the first annotation written with the key will be included
-     * in the audit event and all subsequent annotations with the same key
-     * will be discarded.
-     * Required.
-     * 
- * - * optional string key = 1; - */ - boolean hasKey(); - /** - *
-     * key specifies the audit annotation key. The audit annotation keys of
-     * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
-     * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
-     * The key is combined with the resource name of the
-     * ValidatingAdmissionPolicy to construct an audit annotation key:
-     * "{ValidatingAdmissionPolicy name}/{key}".
-     * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
-     * and the same audit annotation key, the annotation key will be identical.
-     * In this case, the first annotation written with the key will be included
-     * in the audit event and all subsequent annotations with the same key
-     * will be discarded.
-     * Required.
-     * 
- * - * optional string key = 1; - */ - java.lang.String getKey(); - /** - *
-     * key specifies the audit annotation key. The audit annotation keys of
-     * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
-     * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
-     * The key is combined with the resource name of the
-     * ValidatingAdmissionPolicy to construct an audit annotation key:
-     * "{ValidatingAdmissionPolicy name}/{key}".
-     * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
-     * and the same audit annotation key, the annotation key will be identical.
-     * In this case, the first annotation written with the key will be included
-     * in the audit event and all subsequent annotations with the same key
-     * will be discarded.
-     * Required.
-     * 
- * - * optional string key = 1; - */ - com.google.protobuf.ByteString - getKeyBytes(); - - /** - *
-     * valueExpression represents the expression which is evaluated by CEL to
-     * produce an audit annotation value. The expression must evaluate to either
-     * a string or null value. If the expression evaluates to a string, the
-     * audit annotation is included with the string value. If the expression
-     * evaluates to null or empty string the audit annotation will be omitted.
-     * The valueExpression may be no longer than 5kb in length.
-     * If the result of the valueExpression is more than 10kb in length, it
-     * will be truncated to 10kb.
-     * If multiple ValidatingAdmissionPolicyBinding resources match an
-     * API request, then the valueExpression will be evaluated for
-     * each binding. All unique values produced by the valueExpressions
-     * will be joined together in a comma-separated list.
+     * expression will be evaluated by CEL to create an apply configuration.
+     * ref: https://github.com/google/cel-spec
+     * Apply configurations are declared in CEL using object initialization. For example, this CEL expression
+     * returns an apply configuration to set a single field:
+     * 	Object{
+     * 	  spec: Object.spec{
+     * 	    serviceAccountName: "example"
+     * 	  }
+     * 	}
+     * Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of
+     * values not included in the apply configuration.
+     * CEL expressions have access to the object types needed to create apply configurations:
+     * - 'Object' - CEL type of the resource object.
+     * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+     * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+     * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+     * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * - 'oldObject' - The existing object. The value is null for CREATE requests.
+     * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+     * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+     * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+     * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+     *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+     * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the
+     * object. No other metadata properties are accessible.
+     * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
      * Required.
      * 
* - * optional string valueExpression = 2; + * optional string expression = 1; */ - boolean hasValueExpression(); + boolean hasExpression(); /** *
-     * valueExpression represents the expression which is evaluated by CEL to
-     * produce an audit annotation value. The expression must evaluate to either
-     * a string or null value. If the expression evaluates to a string, the
-     * audit annotation is included with the string value. If the expression
-     * evaluates to null or empty string the audit annotation will be omitted.
-     * The valueExpression may be no longer than 5kb in length.
-     * If the result of the valueExpression is more than 10kb in length, it
-     * will be truncated to 10kb.
-     * If multiple ValidatingAdmissionPolicyBinding resources match an
-     * API request, then the valueExpression will be evaluated for
-     * each binding. All unique values produced by the valueExpressions
-     * will be joined together in a comma-separated list.
+     * expression will be evaluated by CEL to create an apply configuration.
+     * ref: https://github.com/google/cel-spec
+     * Apply configurations are declared in CEL using object initialization. For example, this CEL expression
+     * returns an apply configuration to set a single field:
+     * 	Object{
+     * 	  spec: Object.spec{
+     * 	    serviceAccountName: "example"
+     * 	  }
+     * 	}
+     * Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of
+     * values not included in the apply configuration.
+     * CEL expressions have access to the object types needed to create apply configurations:
+     * - 'Object' - CEL type of the resource object.
+     * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+     * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+     * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+     * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * - 'oldObject' - The existing object. The value is null for CREATE requests.
+     * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+     * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+     * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+     * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+     *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+     * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the
+     * object. No other metadata properties are accessible.
+     * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
      * Required.
      * 
* - * optional string valueExpression = 2; + * optional string expression = 1; */ - java.lang.String getValueExpression(); + java.lang.String getExpression(); /** *
-     * valueExpression represents the expression which is evaluated by CEL to
-     * produce an audit annotation value. The expression must evaluate to either
-     * a string or null value. If the expression evaluates to a string, the
-     * audit annotation is included with the string value. If the expression
-     * evaluates to null or empty string the audit annotation will be omitted.
-     * The valueExpression may be no longer than 5kb in length.
-     * If the result of the valueExpression is more than 10kb in length, it
-     * will be truncated to 10kb.
-     * If multiple ValidatingAdmissionPolicyBinding resources match an
-     * API request, then the valueExpression will be evaluated for
-     * each binding. All unique values produced by the valueExpressions
-     * will be joined together in a comma-separated list.
+     * expression will be evaluated by CEL to create an apply configuration.
+     * ref: https://github.com/google/cel-spec
+     * Apply configurations are declared in CEL using object initialization. For example, this CEL expression
+     * returns an apply configuration to set a single field:
+     * 	Object{
+     * 	  spec: Object.spec{
+     * 	    serviceAccountName: "example"
+     * 	  }
+     * 	}
+     * Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of
+     * values not included in the apply configuration.
+     * CEL expressions have access to the object types needed to create apply configurations:
+     * - 'Object' - CEL type of the resource object.
+     * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+     * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+     * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+     * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * - 'oldObject' - The existing object. The value is null for CREATE requests.
+     * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+     * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+     * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+     * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+     *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+     * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the
+     * object. No other metadata properties are accessible.
+     * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
      * Required.
      * 
* - * optional string valueExpression = 2; + * optional string expression = 1; */ com.google.protobuf.ByteString - getValueExpressionBytes(); + getExpressionBytes(); } /** *
-   * AuditAnnotation describes how to produce an audit annotation for an API request.
+   * ApplyConfiguration defines the desired configuration values of an object.
    * 
* - * Protobuf type {@code k8s.io.api.admissionregistration.v1.AuditAnnotation} + * Protobuf type {@code k8s.io.api.admissionregistration.v1.ApplyConfiguration} */ - public static final class AuditAnnotation extends + public static final class ApplyConfiguration extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.AuditAnnotation) - AuditAnnotationOrBuilder { + // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.ApplyConfiguration) + ApplyConfigurationOrBuilder { private static final long serialVersionUID = 0L; - // Use AuditAnnotation.newBuilder() to construct. - private AuditAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ApplyConfiguration.newBuilder() to construct. + private ApplyConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AuditAnnotation() { - key_ = ""; - valueExpression_ = ""; + private ApplyConfiguration() { + expression_ = ""; } @java.lang.Override @@ -165,7 +159,7 @@ private AuditAnnotation() { getUnknownFields() { return this.unknownFields; } - private AuditAnnotation( + private ApplyConfiguration( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -187,13 +181,7 @@ private AuditAnnotation( case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - key_ = bs; - break; - } - case 18: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000002; - valueExpression_ = bs; + expression_ = bs; break; } default: { @@ -217,150 +205,99 @@ private AuditAnnotation( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_AuditAnnotation_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_ApplyConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_AuditAnnotation_fieldAccessorTable + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_ApplyConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation.class, io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation.Builder.class); + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.class, io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.Builder.class); } private int bitField0_; - public static final int KEY_FIELD_NUMBER = 1; - private volatile java.lang.Object key_; + public static final int EXPRESSION_FIELD_NUMBER = 1; + private volatile java.lang.Object expression_; /** *
-     * key specifies the audit annotation key. The audit annotation keys of
-     * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
-     * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
-     * The key is combined with the resource name of the
-     * ValidatingAdmissionPolicy to construct an audit annotation key:
-     * "{ValidatingAdmissionPolicy name}/{key}".
-     * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
-     * and the same audit annotation key, the annotation key will be identical.
-     * In this case, the first annotation written with the key will be included
-     * in the audit event and all subsequent annotations with the same key
-     * will be discarded.
+     * expression will be evaluated by CEL to create an apply configuration.
+     * ref: https://github.com/google/cel-spec
+     * Apply configurations are declared in CEL using object initialization. For example, this CEL expression
+     * returns an apply configuration to set a single field:
+     * 	Object{
+     * 	  spec: Object.spec{
+     * 	    serviceAccountName: "example"
+     * 	  }
+     * 	}
+     * Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of
+     * values not included in the apply configuration.
+     * CEL expressions have access to the object types needed to create apply configurations:
+     * - 'Object' - CEL type of the resource object.
+     * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+     * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+     * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+     * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * - 'oldObject' - The existing object. The value is null for CREATE requests.
+     * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+     * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+     * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+     * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+     *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+     * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the
+     * object. No other metadata properties are accessible.
+     * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
      * Required.
      * 
* - * optional string key = 1; + * optional string expression = 1; */ - public boolean hasKey() { + public boolean hasExpression() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-     * key specifies the audit annotation key. The audit annotation keys of
-     * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
-     * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
-     * The key is combined with the resource name of the
-     * ValidatingAdmissionPolicy to construct an audit annotation key:
-     * "{ValidatingAdmissionPolicy name}/{key}".
-     * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
-     * and the same audit annotation key, the annotation key will be identical.
-     * In this case, the first annotation written with the key will be included
-     * in the audit event and all subsequent annotations with the same key
-     * will be discarded.
-     * Required.
-     * 
- * - * optional string key = 1; - */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - key_ = s; - } - return s; - } - } - /** - *
-     * key specifies the audit annotation key. The audit annotation keys of
-     * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
-     * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
-     * The key is combined with the resource name of the
-     * ValidatingAdmissionPolicy to construct an audit annotation key:
-     * "{ValidatingAdmissionPolicy name}/{key}".
-     * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
-     * and the same audit annotation key, the annotation key will be identical.
-     * In this case, the first annotation written with the key will be included
-     * in the audit event and all subsequent annotations with the same key
-     * will be discarded.
-     * Required.
-     * 
- * - * optional string key = 1; - */ - public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - key_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALUEEXPRESSION_FIELD_NUMBER = 2; - private volatile java.lang.Object valueExpression_; - /** - *
-     * valueExpression represents the expression which is evaluated by CEL to
-     * produce an audit annotation value. The expression must evaluate to either
-     * a string or null value. If the expression evaluates to a string, the
-     * audit annotation is included with the string value. If the expression
-     * evaluates to null or empty string the audit annotation will be omitted.
-     * The valueExpression may be no longer than 5kb in length.
-     * If the result of the valueExpression is more than 10kb in length, it
-     * will be truncated to 10kb.
-     * If multiple ValidatingAdmissionPolicyBinding resources match an
-     * API request, then the valueExpression will be evaluated for
-     * each binding. All unique values produced by the valueExpressions
-     * will be joined together in a comma-separated list.
-     * Required.
-     * 
- * - * optional string valueExpression = 2; - */ - public boolean hasValueExpression() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - *
-     * valueExpression represents the expression which is evaluated by CEL to
-     * produce an audit annotation value. The expression must evaluate to either
-     * a string or null value. If the expression evaluates to a string, the
-     * audit annotation is included with the string value. If the expression
-     * evaluates to null or empty string the audit annotation will be omitted.
-     * The valueExpression may be no longer than 5kb in length.
-     * If the result of the valueExpression is more than 10kb in length, it
-     * will be truncated to 10kb.
-     * If multiple ValidatingAdmissionPolicyBinding resources match an
-     * API request, then the valueExpression will be evaluated for
-     * each binding. All unique values produced by the valueExpressions
-     * will be joined together in a comma-separated list.
+     * expression will be evaluated by CEL to create an apply configuration.
+     * ref: https://github.com/google/cel-spec
+     * Apply configurations are declared in CEL using object initialization. For example, this CEL expression
+     * returns an apply configuration to set a single field:
+     * 	Object{
+     * 	  spec: Object.spec{
+     * 	    serviceAccountName: "example"
+     * 	  }
+     * 	}
+     * Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of
+     * values not included in the apply configuration.
+     * CEL expressions have access to the object types needed to create apply configurations:
+     * - 'Object' - CEL type of the resource object.
+     * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+     * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+     * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+     * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * - 'oldObject' - The existing object. The value is null for CREATE requests.
+     * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+     * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+     * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+     * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+     *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+     * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the
+     * object. No other metadata properties are accessible.
+     * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
      * Required.
      * 
* - * optional string valueExpression = 2; + * optional string expression = 1; */ - public java.lang.String getValueExpression() { - java.lang.Object ref = valueExpression_; + public java.lang.String getExpression() { + java.lang.Object ref = expression_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -368,38 +305,56 @@ public java.lang.String getValueExpression() { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - valueExpression_ = s; + expression_ = s; } return s; } } /** *
-     * valueExpression represents the expression which is evaluated by CEL to
-     * produce an audit annotation value. The expression must evaluate to either
-     * a string or null value. If the expression evaluates to a string, the
-     * audit annotation is included with the string value. If the expression
-     * evaluates to null or empty string the audit annotation will be omitted.
-     * The valueExpression may be no longer than 5kb in length.
-     * If the result of the valueExpression is more than 10kb in length, it
-     * will be truncated to 10kb.
-     * If multiple ValidatingAdmissionPolicyBinding resources match an
-     * API request, then the valueExpression will be evaluated for
-     * each binding. All unique values produced by the valueExpressions
-     * will be joined together in a comma-separated list.
+     * expression will be evaluated by CEL to create an apply configuration.
+     * ref: https://github.com/google/cel-spec
+     * Apply configurations are declared in CEL using object initialization. For example, this CEL expression
+     * returns an apply configuration to set a single field:
+     * 	Object{
+     * 	  spec: Object.spec{
+     * 	    serviceAccountName: "example"
+     * 	  }
+     * 	}
+     * Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of
+     * values not included in the apply configuration.
+     * CEL expressions have access to the object types needed to create apply configurations:
+     * - 'Object' - CEL type of the resource object.
+     * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+     * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+     * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+     * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * - 'oldObject' - The existing object. The value is null for CREATE requests.
+     * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+     * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+     * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+     * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+     *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+     * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the
+     * object. No other metadata properties are accessible.
+     * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
      * Required.
      * 
* - * optional string valueExpression = 2; + * optional string expression = 1; */ public com.google.protobuf.ByteString - getValueExpressionBytes() { - java.lang.Object ref = valueExpression_; + getExpressionBytes() { + java.lang.Object ref = expression_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - valueExpression_ = b; + expression_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -421,10 +376,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, valueExpression_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, expression_); } unknownFields.writeTo(output); } @@ -436,10 +388,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, valueExpression_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, expression_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -451,21 +400,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation)) { + if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration)) { return super.equals(obj); } - io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation other = (io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation) obj; + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration other = (io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration) obj; boolean result = true; - result = result && (hasKey() == other.hasKey()); - if (hasKey()) { - result = result && getKey() - .equals(other.getKey()); - } - result = result && (hasValueExpression() == other.hasValueExpression()); - if (hasValueExpression()) { - result = result && getValueExpression() - .equals(other.getValueExpression()); + result = result && (hasExpression() == other.hasExpression()); + if (hasExpression()) { + result = result && getExpression() + .equals(other.getExpression()); } result = result && unknownFields.equals(other.unknownFields); return result; @@ -478,82 +422,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasKey()) { - hash = (37 * hash) + KEY_FIELD_NUMBER; - hash = (53 * hash) + getKey().hashCode(); - } - if (hasValueExpression()) { - hash = (37 * hash) + VALUEEXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getValueExpression().hashCode(); + if (hasExpression()) { + hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getExpression().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom(byte[] data) + public static io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseDelimitedFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseDelimitedFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -566,7 +506,7 @@ public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation prototype) { + public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -583,29 +523,29 @@ protected Builder newBuilderForType( } /** *
-     * AuditAnnotation describes how to produce an audit annotation for an API request.
+     * ApplyConfiguration defines the desired configuration values of an object.
      * 
* - * Protobuf type {@code k8s.io.api.admissionregistration.v1.AuditAnnotation} + * Protobuf type {@code k8s.io.api.admissionregistration.v1.ApplyConfiguration} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.AuditAnnotation) - io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotationOrBuilder { + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.ApplyConfiguration) + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfigurationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_AuditAnnotation_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_ApplyConfiguration_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_AuditAnnotation_fieldAccessorTable + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_ApplyConfiguration_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation.class, io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation.Builder.class); + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.class, io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.Builder.class); } - // Construct using io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation.newBuilder() + // Construct using io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -623,27 +563,25 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - key_ = ""; + expression_ = ""; bitField0_ = (bitField0_ & ~0x00000001); - valueExpression_ = ""; - bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_AuditAnnotation_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_ApplyConfiguration_descriptor; } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation getDefaultInstanceForType() { - return io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation.getDefaultInstance(); + public io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.getDefaultInstance(); } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation build() { - io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation result = buildPartial(); + public io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration build() { + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -651,18 +589,14 @@ public io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation build( } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation buildPartial() { - io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation result = new io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation(this); + public io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration result = new io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } - result.key_ = key_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - result.valueExpression_ = valueExpression_; + result.expression_ = expression_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -702,24 +636,19 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation) { - return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation)other); + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation other) { - if (other == io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation.getDefaultInstance()) return this; - if (other.hasKey()) { + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.getDefaultInstance()) return this; + if (other.hasExpression()) { bitField0_ |= 0x00000001; - key_ = other.key_; - onChanged(); - } - if (other.hasValueExpression()) { - bitField0_ |= 0x00000002; - valueExpression_ = other.valueExpression_; + expression_ = other.expression_; onChanged(); } this.mergeUnknownFields(other.unknownFields); @@ -737,11 +666,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parsedMessage = null; + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation) e.getUnfinishedMessage(); + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -752,54 +681,92 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object key_ = ""; + private java.lang.Object expression_ = ""; /** *
-       * key specifies the audit annotation key. The audit annotation keys of
-       * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
-       * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
-       * The key is combined with the resource name of the
-       * ValidatingAdmissionPolicy to construct an audit annotation key:
-       * "{ValidatingAdmissionPolicy name}/{key}".
-       * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
-       * and the same audit annotation key, the annotation key will be identical.
-       * In this case, the first annotation written with the key will be included
-       * in the audit event and all subsequent annotations with the same key
-       * will be discarded.
+       * expression will be evaluated by CEL to create an apply configuration.
+       * ref: https://github.com/google/cel-spec
+       * Apply configurations are declared in CEL using object initialization. For example, this CEL expression
+       * returns an apply configuration to set a single field:
+       * 	Object{
+       * 	  spec: Object.spec{
+       * 	    serviceAccountName: "example"
+       * 	  }
+       * 	}
+       * Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of
+       * values not included in the apply configuration.
+       * CEL expressions have access to the object types needed to create apply configurations:
+       * - 'Object' - CEL type of the resource object.
+       * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+       * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+       * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+       * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * - 'oldObject' - The existing object. The value is null for CREATE requests.
+       * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+       * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+       * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+       * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+       *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+       * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the
+       * object. No other metadata properties are accessible.
+       * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
        * Required.
        * 
* - * optional string key = 1; + * optional string expression = 1; */ - public boolean hasKey() { + public boolean hasExpression() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-       * key specifies the audit annotation key. The audit annotation keys of
-       * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
-       * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
-       * The key is combined with the resource name of the
-       * ValidatingAdmissionPolicy to construct an audit annotation key:
-       * "{ValidatingAdmissionPolicy name}/{key}".
-       * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
-       * and the same audit annotation key, the annotation key will be identical.
-       * In this case, the first annotation written with the key will be included
-       * in the audit event and all subsequent annotations with the same key
-       * will be discarded.
+       * expression will be evaluated by CEL to create an apply configuration.
+       * ref: https://github.com/google/cel-spec
+       * Apply configurations are declared in CEL using object initialization. For example, this CEL expression
+       * returns an apply configuration to set a single field:
+       * 	Object{
+       * 	  spec: Object.spec{
+       * 	    serviceAccountName: "example"
+       * 	  }
+       * 	}
+       * Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of
+       * values not included in the apply configuration.
+       * CEL expressions have access to the object types needed to create apply configurations:
+       * - 'Object' - CEL type of the resource object.
+       * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+       * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+       * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+       * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * - 'oldObject' - The existing object. The value is null for CREATE requests.
+       * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+       * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+       * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+       * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+       *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+       * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the
+       * object. No other metadata properties are accessible.
+       * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
        * Required.
        * 
* - * optional string key = 1; + * optional string expression = 1; */ - public java.lang.String getKey() { - java.lang.Object ref = key_; - if (!(ref instanceof java.lang.String)) { + public java.lang.String getExpression() { + java.lang.Object ref = expression_; + if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - key_ = s; + expression_ = s; } return s; } else { @@ -808,30 +775,49 @@ public java.lang.String getKey() { } /** *
-       * key specifies the audit annotation key. The audit annotation keys of
-       * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
-       * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
-       * The key is combined with the resource name of the
-       * ValidatingAdmissionPolicy to construct an audit annotation key:
-       * "{ValidatingAdmissionPolicy name}/{key}".
-       * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
-       * and the same audit annotation key, the annotation key will be identical.
-       * In this case, the first annotation written with the key will be included
-       * in the audit event and all subsequent annotations with the same key
-       * will be discarded.
+       * expression will be evaluated by CEL to create an apply configuration.
+       * ref: https://github.com/google/cel-spec
+       * Apply configurations are declared in CEL using object initialization. For example, this CEL expression
+       * returns an apply configuration to set a single field:
+       * 	Object{
+       * 	  spec: Object.spec{
+       * 	    serviceAccountName: "example"
+       * 	  }
+       * 	}
+       * Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of
+       * values not included in the apply configuration.
+       * CEL expressions have access to the object types needed to create apply configurations:
+       * - 'Object' - CEL type of the resource object.
+       * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+       * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+       * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+       * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * - 'oldObject' - The existing object. The value is null for CREATE requests.
+       * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+       * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+       * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+       * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+       *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+       * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the
+       * object. No other metadata properties are accessible.
+       * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
        * Required.
        * 
* - * optional string key = 1; + * optional string expression = 1; */ public com.google.protobuf.ByteString - getKeyBytes() { - java.lang.Object ref = key_; + getExpressionBytes() { + java.lang.Object ref = expression_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - key_ = b; + expression_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -839,253 +825,138 @@ public java.lang.String getKey() { } /** *
-       * key specifies the audit annotation key. The audit annotation keys of
-       * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
-       * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
-       * The key is combined with the resource name of the
-       * ValidatingAdmissionPolicy to construct an audit annotation key:
-       * "{ValidatingAdmissionPolicy name}/{key}".
-       * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
-       * and the same audit annotation key, the annotation key will be identical.
-       * In this case, the first annotation written with the key will be included
-       * in the audit event and all subsequent annotations with the same key
-       * will be discarded.
+       * expression will be evaluated by CEL to create an apply configuration.
+       * ref: https://github.com/google/cel-spec
+       * Apply configurations are declared in CEL using object initialization. For example, this CEL expression
+       * returns an apply configuration to set a single field:
+       * 	Object{
+       * 	  spec: Object.spec{
+       * 	    serviceAccountName: "example"
+       * 	  }
+       * 	}
+       * Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of
+       * values not included in the apply configuration.
+       * CEL expressions have access to the object types needed to create apply configurations:
+       * - 'Object' - CEL type of the resource object.
+       * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+       * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+       * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+       * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * - 'oldObject' - The existing object. The value is null for CREATE requests.
+       * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+       * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+       * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+       * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+       *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+       * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the
+       * object. No other metadata properties are accessible.
+       * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
        * Required.
        * 
* - * optional string key = 1; + * optional string expression = 1; */ - public Builder setKey( + public Builder setExpression( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - key_ = value; + expression_ = value; onChanged(); return this; } /** *
-       * key specifies the audit annotation key. The audit annotation keys of
-       * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
-       * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
-       * The key is combined with the resource name of the
-       * ValidatingAdmissionPolicy to construct an audit annotation key:
-       * "{ValidatingAdmissionPolicy name}/{key}".
-       * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
-       * and the same audit annotation key, the annotation key will be identical.
-       * In this case, the first annotation written with the key will be included
-       * in the audit event and all subsequent annotations with the same key
-       * will be discarded.
+       * expression will be evaluated by CEL to create an apply configuration.
+       * ref: https://github.com/google/cel-spec
+       * Apply configurations are declared in CEL using object initialization. For example, this CEL expression
+       * returns an apply configuration to set a single field:
+       * 	Object{
+       * 	  spec: Object.spec{
+       * 	    serviceAccountName: "example"
+       * 	  }
+       * 	}
+       * Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of
+       * values not included in the apply configuration.
+       * CEL expressions have access to the object types needed to create apply configurations:
+       * - 'Object' - CEL type of the resource object.
+       * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+       * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+       * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+       * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * - 'oldObject' - The existing object. The value is null for CREATE requests.
+       * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+       * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+       * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+       * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+       *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+       * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the
+       * object. No other metadata properties are accessible.
+       * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
        * Required.
        * 
* - * optional string key = 1; + * optional string expression = 1; */ - public Builder clearKey() { + public Builder clearExpression() { bitField0_ = (bitField0_ & ~0x00000001); - key_ = getDefaultInstance().getKey(); + expression_ = getDefaultInstance().getExpression(); onChanged(); return this; } /** *
-       * key specifies the audit annotation key. The audit annotation keys of
-       * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
-       * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
-       * The key is combined with the resource name of the
-       * ValidatingAdmissionPolicy to construct an audit annotation key:
-       * "{ValidatingAdmissionPolicy name}/{key}".
-       * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
-       * and the same audit annotation key, the annotation key will be identical.
-       * In this case, the first annotation written with the key will be included
-       * in the audit event and all subsequent annotations with the same key
-       * will be discarded.
+       * expression will be evaluated by CEL to create an apply configuration.
+       * ref: https://github.com/google/cel-spec
+       * Apply configurations are declared in CEL using object initialization. For example, this CEL expression
+       * returns an apply configuration to set a single field:
+       * 	Object{
+       * 	  spec: Object.spec{
+       * 	    serviceAccountName: "example"
+       * 	  }
+       * 	}
+       * Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of
+       * values not included in the apply configuration.
+       * CEL expressions have access to the object types needed to create apply configurations:
+       * - 'Object' - CEL type of the resource object.
+       * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+       * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+       * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+       * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * - 'oldObject' - The existing object. The value is null for CREATE requests.
+       * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+       * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+       * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+       * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+       *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+       * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the
+       * object. No other metadata properties are accessible.
+       * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
        * Required.
        * 
* - * optional string key = 1; + * optional string expression = 1; */ - public Builder setKeyBytes( + public Builder setExpressionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - key_ = value; - onChanged(); - return this; - } - - private java.lang.Object valueExpression_ = ""; - /** - *
-       * valueExpression represents the expression which is evaluated by CEL to
-       * produce an audit annotation value. The expression must evaluate to either
-       * a string or null value. If the expression evaluates to a string, the
-       * audit annotation is included with the string value. If the expression
-       * evaluates to null or empty string the audit annotation will be omitted.
-       * The valueExpression may be no longer than 5kb in length.
-       * If the result of the valueExpression is more than 10kb in length, it
-       * will be truncated to 10kb.
-       * If multiple ValidatingAdmissionPolicyBinding resources match an
-       * API request, then the valueExpression will be evaluated for
-       * each binding. All unique values produced by the valueExpressions
-       * will be joined together in a comma-separated list.
-       * Required.
-       * 
- * - * optional string valueExpression = 2; - */ - public boolean hasValueExpression() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - *
-       * valueExpression represents the expression which is evaluated by CEL to
-       * produce an audit annotation value. The expression must evaluate to either
-       * a string or null value. If the expression evaluates to a string, the
-       * audit annotation is included with the string value. If the expression
-       * evaluates to null or empty string the audit annotation will be omitted.
-       * The valueExpression may be no longer than 5kb in length.
-       * If the result of the valueExpression is more than 10kb in length, it
-       * will be truncated to 10kb.
-       * If multiple ValidatingAdmissionPolicyBinding resources match an
-       * API request, then the valueExpression will be evaluated for
-       * each binding. All unique values produced by the valueExpressions
-       * will be joined together in a comma-separated list.
-       * Required.
-       * 
- * - * optional string valueExpression = 2; - */ - public java.lang.String getValueExpression() { - java.lang.Object ref = valueExpression_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - valueExpression_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * valueExpression represents the expression which is evaluated by CEL to
-       * produce an audit annotation value. The expression must evaluate to either
-       * a string or null value. If the expression evaluates to a string, the
-       * audit annotation is included with the string value. If the expression
-       * evaluates to null or empty string the audit annotation will be omitted.
-       * The valueExpression may be no longer than 5kb in length.
-       * If the result of the valueExpression is more than 10kb in length, it
-       * will be truncated to 10kb.
-       * If multiple ValidatingAdmissionPolicyBinding resources match an
-       * API request, then the valueExpression will be evaluated for
-       * each binding. All unique values produced by the valueExpressions
-       * will be joined together in a comma-separated list.
-       * Required.
-       * 
- * - * optional string valueExpression = 2; - */ - public com.google.protobuf.ByteString - getValueExpressionBytes() { - java.lang.Object ref = valueExpression_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - valueExpression_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * valueExpression represents the expression which is evaluated by CEL to
-       * produce an audit annotation value. The expression must evaluate to either
-       * a string or null value. If the expression evaluates to a string, the
-       * audit annotation is included with the string value. If the expression
-       * evaluates to null or empty string the audit annotation will be omitted.
-       * The valueExpression may be no longer than 5kb in length.
-       * If the result of the valueExpression is more than 10kb in length, it
-       * will be truncated to 10kb.
-       * If multiple ValidatingAdmissionPolicyBinding resources match an
-       * API request, then the valueExpression will be evaluated for
-       * each binding. All unique values produced by the valueExpressions
-       * will be joined together in a comma-separated list.
-       * Required.
-       * 
- * - * optional string valueExpression = 2; - */ - public Builder setValueExpression( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - valueExpression_ = value; - onChanged(); - return this; - } - /** - *
-       * valueExpression represents the expression which is evaluated by CEL to
-       * produce an audit annotation value. The expression must evaluate to either
-       * a string or null value. If the expression evaluates to a string, the
-       * audit annotation is included with the string value. If the expression
-       * evaluates to null or empty string the audit annotation will be omitted.
-       * The valueExpression may be no longer than 5kb in length.
-       * If the result of the valueExpression is more than 10kb in length, it
-       * will be truncated to 10kb.
-       * If multiple ValidatingAdmissionPolicyBinding resources match an
-       * API request, then the valueExpression will be evaluated for
-       * each binding. All unique values produced by the valueExpressions
-       * will be joined together in a comma-separated list.
-       * Required.
-       * 
- * - * optional string valueExpression = 2; - */ - public Builder clearValueExpression() { - bitField0_ = (bitField0_ & ~0x00000002); - valueExpression_ = getDefaultInstance().getValueExpression(); - onChanged(); - return this; - } - /** - *
-       * valueExpression represents the expression which is evaluated by CEL to
-       * produce an audit annotation value. The expression must evaluate to either
-       * a string or null value. If the expression evaluates to a string, the
-       * audit annotation is included with the string value. If the expression
-       * evaluates to null or empty string the audit annotation will be omitted.
-       * The valueExpression may be no longer than 5kb in length.
-       * If the result of the valueExpression is more than 10kb in length, it
-       * will be truncated to 10kb.
-       * If multiple ValidatingAdmissionPolicyBinding resources match an
-       * API request, then the valueExpression will be evaluated for
-       * each binding. All unique values produced by the valueExpressions
-       * will be joined together in a comma-separated list.
-       * Required.
-       * 
- * - * optional string valueExpression = 2; - */ - public Builder setValueExpressionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - valueExpression_ = value; + expression_ = value; onChanged(); return this; } @@ -1102,133 +973,190 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.AuditAnnotation) + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.ApplyConfiguration) } - // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.AuditAnnotation) - private static final io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.ApplyConfiguration) + private static final io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation(); + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration(); } - public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation getDefaultInstance() { + public static io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public AuditAnnotation parsePartialFrom( + public ApplyConfiguration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AuditAnnotation(input, extensionRegistry); + return new ApplyConfiguration(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation getDefaultInstanceForType() { + public io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ExpressionWarningOrBuilder extends - // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.ExpressionWarning) + public interface AuditAnnotationOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.AuditAnnotation) com.google.protobuf.MessageOrBuilder { /** *
-     * The path to the field that refers the expression.
-     * For example, the reference to the expression of the first item of
-     * validations is "spec.validations[0].expression"
+     * key specifies the audit annotation key. The audit annotation keys of
+     * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
+     * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
+     * The key is combined with the resource name of the
+     * ValidatingAdmissionPolicy to construct an audit annotation key:
+     * "{ValidatingAdmissionPolicy name}/{key}".
+     * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
+     * and the same audit annotation key, the annotation key will be identical.
+     * In this case, the first annotation written with the key will be included
+     * in the audit event and all subsequent annotations with the same key
+     * will be discarded.
+     * Required.
      * 
* - * optional string fieldRef = 2; + * optional string key = 1; */ - boolean hasFieldRef(); + boolean hasKey(); /** *
-     * The path to the field that refers the expression.
-     * For example, the reference to the expression of the first item of
-     * validations is "spec.validations[0].expression"
+     * key specifies the audit annotation key. The audit annotation keys of
+     * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
+     * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
+     * The key is combined with the resource name of the
+     * ValidatingAdmissionPolicy to construct an audit annotation key:
+     * "{ValidatingAdmissionPolicy name}/{key}".
+     * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
+     * and the same audit annotation key, the annotation key will be identical.
+     * In this case, the first annotation written with the key will be included
+     * in the audit event and all subsequent annotations with the same key
+     * will be discarded.
+     * Required.
      * 
* - * optional string fieldRef = 2; + * optional string key = 1; */ - java.lang.String getFieldRef(); + java.lang.String getKey(); /** *
-     * The path to the field that refers the expression.
-     * For example, the reference to the expression of the first item of
-     * validations is "spec.validations[0].expression"
+     * key specifies the audit annotation key. The audit annotation keys of
+     * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
+     * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
+     * The key is combined with the resource name of the
+     * ValidatingAdmissionPolicy to construct an audit annotation key:
+     * "{ValidatingAdmissionPolicy name}/{key}".
+     * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
+     * and the same audit annotation key, the annotation key will be identical.
+     * In this case, the first annotation written with the key will be included
+     * in the audit event and all subsequent annotations with the same key
+     * will be discarded.
+     * Required.
      * 
* - * optional string fieldRef = 2; + * optional string key = 1; */ com.google.protobuf.ByteString - getFieldRefBytes(); + getKeyBytes(); /** *
-     * The content of type checking information in a human-readable form.
-     * Each line of the warning contains the type that the expression is checked
-     * against, followed by the type check error from the compiler.
+     * valueExpression represents the expression which is evaluated by CEL to
+     * produce an audit annotation value. The expression must evaluate to either
+     * a string or null value. If the expression evaluates to a string, the
+     * audit annotation is included with the string value. If the expression
+     * evaluates to null or empty string the audit annotation will be omitted.
+     * The valueExpression may be no longer than 5kb in length.
+     * If the result of the valueExpression is more than 10kb in length, it
+     * will be truncated to 10kb.
+     * If multiple ValidatingAdmissionPolicyBinding resources match an
+     * API request, then the valueExpression will be evaluated for
+     * each binding. All unique values produced by the valueExpressions
+     * will be joined together in a comma-separated list.
+     * Required.
      * 
* - * optional string warning = 3; + * optional string valueExpression = 2; */ - boolean hasWarning(); + boolean hasValueExpression(); /** *
-     * The content of type checking information in a human-readable form.
-     * Each line of the warning contains the type that the expression is checked
-     * against, followed by the type check error from the compiler.
+     * valueExpression represents the expression which is evaluated by CEL to
+     * produce an audit annotation value. The expression must evaluate to either
+     * a string or null value. If the expression evaluates to a string, the
+     * audit annotation is included with the string value. If the expression
+     * evaluates to null or empty string the audit annotation will be omitted.
+     * The valueExpression may be no longer than 5kb in length.
+     * If the result of the valueExpression is more than 10kb in length, it
+     * will be truncated to 10kb.
+     * If multiple ValidatingAdmissionPolicyBinding resources match an
+     * API request, then the valueExpression will be evaluated for
+     * each binding. All unique values produced by the valueExpressions
+     * will be joined together in a comma-separated list.
+     * Required.
      * 
* - * optional string warning = 3; + * optional string valueExpression = 2; */ - java.lang.String getWarning(); + java.lang.String getValueExpression(); /** *
-     * The content of type checking information in a human-readable form.
-     * Each line of the warning contains the type that the expression is checked
-     * against, followed by the type check error from the compiler.
+     * valueExpression represents the expression which is evaluated by CEL to
+     * produce an audit annotation value. The expression must evaluate to either
+     * a string or null value. If the expression evaluates to a string, the
+     * audit annotation is included with the string value. If the expression
+     * evaluates to null or empty string the audit annotation will be omitted.
+     * The valueExpression may be no longer than 5kb in length.
+     * If the result of the valueExpression is more than 10kb in length, it
+     * will be truncated to 10kb.
+     * If multiple ValidatingAdmissionPolicyBinding resources match an
+     * API request, then the valueExpression will be evaluated for
+     * each binding. All unique values produced by the valueExpressions
+     * will be joined together in a comma-separated list.
+     * Required.
      * 
* - * optional string warning = 3; + * optional string valueExpression = 2; */ com.google.protobuf.ByteString - getWarningBytes(); + getValueExpressionBytes(); } /** *
-   * ExpressionWarning is a warning information that targets a specific expression.
+   * AuditAnnotation describes how to produce an audit annotation for an API request.
    * 
* - * Protobuf type {@code k8s.io.api.admissionregistration.v1.ExpressionWarning} + * Protobuf type {@code k8s.io.api.admissionregistration.v1.AuditAnnotation} */ - public static final class ExpressionWarning extends + public static final class AuditAnnotation extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.ExpressionWarning) - ExpressionWarningOrBuilder { + // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.AuditAnnotation) + AuditAnnotationOrBuilder { private static final long serialVersionUID = 0L; - // Use ExpressionWarning.newBuilder() to construct. - private ExpressionWarning(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AuditAnnotation.newBuilder() to construct. + private AuditAnnotation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ExpressionWarning() { - fieldRef_ = ""; - warning_ = ""; + private AuditAnnotation() { + key_ = ""; + valueExpression_ = ""; } @java.lang.Override @@ -1236,7 +1164,7 @@ private ExpressionWarning() { getUnknownFields() { return this.unknownFields; } - private ExpressionWarning( + private AuditAnnotation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -1255,16 +1183,16 @@ private ExpressionWarning( case 0: done = true; break; - case 18: { + case 10: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - fieldRef_ = bs; + key_ = bs; break; } - case 26: { + case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - warning_ = bs; + valueExpression_ = bs; break; } default: { @@ -1288,43 +1216,61 @@ private ExpressionWarning( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_ExpressionWarning_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_AuditAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_ExpressionWarning_fieldAccessorTable + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_AuditAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.class, io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.Builder.class); + io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation.class, io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation.Builder.class); } private int bitField0_; - public static final int FIELDREF_FIELD_NUMBER = 2; - private volatile java.lang.Object fieldRef_; + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; /** *
-     * The path to the field that refers the expression.
-     * For example, the reference to the expression of the first item of
-     * validations is "spec.validations[0].expression"
+     * key specifies the audit annotation key. The audit annotation keys of
+     * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
+     * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
+     * The key is combined with the resource name of the
+     * ValidatingAdmissionPolicy to construct an audit annotation key:
+     * "{ValidatingAdmissionPolicy name}/{key}".
+     * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
+     * and the same audit annotation key, the annotation key will be identical.
+     * In this case, the first annotation written with the key will be included
+     * in the audit event and all subsequent annotations with the same key
+     * will be discarded.
+     * Required.
      * 
* - * optional string fieldRef = 2; + * optional string key = 1; */ - public boolean hasFieldRef() { + public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-     * The path to the field that refers the expression.
-     * For example, the reference to the expression of the first item of
-     * validations is "spec.validations[0].expression"
+     * key specifies the audit annotation key. The audit annotation keys of
+     * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
+     * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
+     * The key is combined with the resource name of the
+     * ValidatingAdmissionPolicy to construct an audit annotation key:
+     * "{ValidatingAdmissionPolicy name}/{key}".
+     * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
+     * and the same audit annotation key, the annotation key will be identical.
+     * In this case, the first annotation written with the key will be included
+     * in the audit event and all subsequent annotations with the same key
+     * will be discarded.
+     * Required.
      * 
* - * optional string fieldRef = 2; + * optional string key = 1; */ - public java.lang.String getFieldRef() { - java.lang.Object ref = fieldRef_; + public java.lang.String getKey() { + java.lang.Object ref = key_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -1332,59 +1278,88 @@ public java.lang.String getFieldRef() { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - fieldRef_ = s; + key_ = s; } return s; } } /** *
-     * The path to the field that refers the expression.
-     * For example, the reference to the expression of the first item of
-     * validations is "spec.validations[0].expression"
+     * key specifies the audit annotation key. The audit annotation keys of
+     * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
+     * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
+     * The key is combined with the resource name of the
+     * ValidatingAdmissionPolicy to construct an audit annotation key:
+     * "{ValidatingAdmissionPolicy name}/{key}".
+     * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
+     * and the same audit annotation key, the annotation key will be identical.
+     * In this case, the first annotation written with the key will be included
+     * in the audit event and all subsequent annotations with the same key
+     * will be discarded.
+     * Required.
      * 
* - * optional string fieldRef = 2; + * optional string key = 1; */ public com.google.protobuf.ByteString - getFieldRefBytes() { - java.lang.Object ref = fieldRef_; + getKeyBytes() { + java.lang.Object ref = key_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - fieldRef_ = b; + key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int WARNING_FIELD_NUMBER = 3; - private volatile java.lang.Object warning_; + public static final int VALUEEXPRESSION_FIELD_NUMBER = 2; + private volatile java.lang.Object valueExpression_; /** *
-     * The content of type checking information in a human-readable form.
-     * Each line of the warning contains the type that the expression is checked
-     * against, followed by the type check error from the compiler.
+     * valueExpression represents the expression which is evaluated by CEL to
+     * produce an audit annotation value. The expression must evaluate to either
+     * a string or null value. If the expression evaluates to a string, the
+     * audit annotation is included with the string value. If the expression
+     * evaluates to null or empty string the audit annotation will be omitted.
+     * The valueExpression may be no longer than 5kb in length.
+     * If the result of the valueExpression is more than 10kb in length, it
+     * will be truncated to 10kb.
+     * If multiple ValidatingAdmissionPolicyBinding resources match an
+     * API request, then the valueExpression will be evaluated for
+     * each binding. All unique values produced by the valueExpressions
+     * will be joined together in a comma-separated list.
+     * Required.
      * 
* - * optional string warning = 3; + * optional string valueExpression = 2; */ - public boolean hasWarning() { + public boolean hasValueExpression() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
-     * The content of type checking information in a human-readable form.
-     * Each line of the warning contains the type that the expression is checked
-     * against, followed by the type check error from the compiler.
+     * valueExpression represents the expression which is evaluated by CEL to
+     * produce an audit annotation value. The expression must evaluate to either
+     * a string or null value. If the expression evaluates to a string, the
+     * audit annotation is included with the string value. If the expression
+     * evaluates to null or empty string the audit annotation will be omitted.
+     * The valueExpression may be no longer than 5kb in length.
+     * If the result of the valueExpression is more than 10kb in length, it
+     * will be truncated to 10kb.
+     * If multiple ValidatingAdmissionPolicyBinding resources match an
+     * API request, then the valueExpression will be evaluated for
+     * each binding. All unique values produced by the valueExpressions
+     * will be joined together in a comma-separated list.
+     * Required.
      * 
* - * optional string warning = 3; + * optional string valueExpression = 2; */ - public java.lang.String getWarning() { - java.lang.Object ref = warning_; + public java.lang.String getValueExpression() { + java.lang.Object ref = valueExpression_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -1392,28 +1367,38 @@ public java.lang.String getWarning() { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - warning_ = s; + valueExpression_ = s; } return s; } } /** *
-     * The content of type checking information in a human-readable form.
-     * Each line of the warning contains the type that the expression is checked
-     * against, followed by the type check error from the compiler.
+     * valueExpression represents the expression which is evaluated by CEL to
+     * produce an audit annotation value. The expression must evaluate to either
+     * a string or null value. If the expression evaluates to a string, the
+     * audit annotation is included with the string value. If the expression
+     * evaluates to null or empty string the audit annotation will be omitted.
+     * The valueExpression may be no longer than 5kb in length.
+     * If the result of the valueExpression is more than 10kb in length, it
+     * will be truncated to 10kb.
+     * If multiple ValidatingAdmissionPolicyBinding resources match an
+     * API request, then the valueExpression will be evaluated for
+     * each binding. All unique values produced by the valueExpressions
+     * will be joined together in a comma-separated list.
+     * Required.
      * 
* - * optional string warning = 3; + * optional string valueExpression = 2; */ public com.google.protobuf.ByteString - getWarningBytes() { - java.lang.Object ref = warning_; + getValueExpressionBytes() { + java.lang.Object ref = valueExpression_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - warning_ = b; + valueExpression_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1435,10 +1420,10 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldRef_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, warning_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, valueExpression_); } unknownFields.writeTo(output); } @@ -1450,10 +1435,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldRef_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, warning_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, valueExpression_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -1465,21 +1450,21 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning)) { + if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation)) { return super.equals(obj); } - io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning other = (io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning) obj; + io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation other = (io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation) obj; boolean result = true; - result = result && (hasFieldRef() == other.hasFieldRef()); - if (hasFieldRef()) { - result = result && getFieldRef() - .equals(other.getFieldRef()); + result = result && (hasKey() == other.hasKey()); + if (hasKey()) { + result = result && getKey() + .equals(other.getKey()); } - result = result && (hasWarning() == other.hasWarning()); - if (hasWarning()) { - result = result && getWarning() - .equals(other.getWarning()); + result = result && (hasValueExpression() == other.hasValueExpression()); + if (hasValueExpression()) { + result = result && getValueExpression() + .equals(other.getValueExpression()); } result = result && unknownFields.equals(other.unknownFields); return result; @@ -1492,82 +1477,82 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasFieldRef()) { - hash = (37 * hash) + FIELDREF_FIELD_NUMBER; - hash = (53 * hash) + getFieldRef().hashCode(); + if (hasKey()) { + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); } - if (hasWarning()) { - hash = (37 * hash) + WARNING_FIELD_NUMBER; - hash = (53 * hash) + getWarning().hashCode(); + if (hasValueExpression()) { + hash = (37 * hash) + VALUEEXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getValueExpression().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom(byte[] data) + public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseDelimitedFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseDelimitedFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -1580,7 +1565,7 @@ public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarni public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning prototype) { + public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -1597,29 +1582,29 @@ protected Builder newBuilderForType( } /** *
-     * ExpressionWarning is a warning information that targets a specific expression.
+     * AuditAnnotation describes how to produce an audit annotation for an API request.
      * 
* - * Protobuf type {@code k8s.io.api.admissionregistration.v1.ExpressionWarning} + * Protobuf type {@code k8s.io.api.admissionregistration.v1.AuditAnnotation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.ExpressionWarning) - io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarningOrBuilder { + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.AuditAnnotation) + io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_ExpressionWarning_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_AuditAnnotation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_ExpressionWarning_fieldAccessorTable + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_AuditAnnotation_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.class, io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.Builder.class); + io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation.class, io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation.Builder.class); } - // Construct using io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.newBuilder() + // Construct using io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -1637,9 +1622,9 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - fieldRef_ = ""; + key_ = ""; bitField0_ = (bitField0_ & ~0x00000001); - warning_ = ""; + valueExpression_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1647,17 +1632,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_ExpressionWarning_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_AuditAnnotation_descriptor; } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning getDefaultInstanceForType() { - return io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.getDefaultInstance(); + public io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation.getDefaultInstance(); } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning build() { - io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning result = buildPartial(); + public io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation build() { + io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -1665,18 +1650,18 @@ public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning buil } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning buildPartial() { - io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning result = new io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning(this); + public io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation result = new io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } - result.fieldRef_ = fieldRef_; + result.key_ = key_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } - result.warning_ = warning_; + result.valueExpression_ = valueExpression_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -1716,24 +1701,24 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning) { - return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning)other); + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning other) { - if (other == io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.getDefaultInstance()) return this; - if (other.hasFieldRef()) { + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation.getDefaultInstance()) return this; + if (other.hasKey()) { bitField0_ |= 0x00000001; - fieldRef_ = other.fieldRef_; + key_ = other.key_; onChanged(); } - if (other.hasWarning()) { + if (other.hasValueExpression()) { bitField0_ |= 0x00000002; - warning_ = other.warning_; + valueExpression_ = other.valueExpression_; onChanged(); } this.mergeUnknownFields(other.unknownFields); @@ -1751,11 +1736,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parsedMessage = null; + io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning) e.getUnfinishedMessage(); + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1766,36 +1751,54 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object fieldRef_ = ""; + private java.lang.Object key_ = ""; /** *
-       * The path to the field that refers the expression.
-       * For example, the reference to the expression of the first item of
-       * validations is "spec.validations[0].expression"
+       * key specifies the audit annotation key. The audit annotation keys of
+       * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
+       * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
+       * The key is combined with the resource name of the
+       * ValidatingAdmissionPolicy to construct an audit annotation key:
+       * "{ValidatingAdmissionPolicy name}/{key}".
+       * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
+       * and the same audit annotation key, the annotation key will be identical.
+       * In this case, the first annotation written with the key will be included
+       * in the audit event and all subsequent annotations with the same key
+       * will be discarded.
+       * Required.
        * 
* - * optional string fieldRef = 2; + * optional string key = 1; */ - public boolean hasFieldRef() { + public boolean hasKey() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-       * The path to the field that refers the expression.
-       * For example, the reference to the expression of the first item of
-       * validations is "spec.validations[0].expression"
+       * key specifies the audit annotation key. The audit annotation keys of
+       * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
+       * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
+       * The key is combined with the resource name of the
+       * ValidatingAdmissionPolicy to construct an audit annotation key:
+       * "{ValidatingAdmissionPolicy name}/{key}".
+       * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
+       * and the same audit annotation key, the annotation key will be identical.
+       * In this case, the first annotation written with the key will be included
+       * in the audit event and all subsequent annotations with the same key
+       * will be discarded.
+       * Required.
        * 
* - * optional string fieldRef = 2; + * optional string key = 1; */ - public java.lang.String getFieldRef() { - java.lang.Object ref = fieldRef_; + public java.lang.String getKey() { + java.lang.Object ref = key_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - fieldRef_ = s; + key_ = s; } return s; } else { @@ -1804,21 +1807,30 @@ public java.lang.String getFieldRef() { } /** *
-       * The path to the field that refers the expression.
-       * For example, the reference to the expression of the first item of
-       * validations is "spec.validations[0].expression"
+       * key specifies the audit annotation key. The audit annotation keys of
+       * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
+       * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
+       * The key is combined with the resource name of the
+       * ValidatingAdmissionPolicy to construct an audit annotation key:
+       * "{ValidatingAdmissionPolicy name}/{key}".
+       * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
+       * and the same audit annotation key, the annotation key will be identical.
+       * In this case, the first annotation written with the key will be included
+       * in the audit event and all subsequent annotations with the same key
+       * will be discarded.
+       * Required.
        * 
* - * optional string fieldRef = 2; + * optional string key = 1; */ public com.google.protobuf.ByteString - getFieldRefBytes() { - java.lang.Object ref = fieldRef_; + getKeyBytes() { + java.lang.Object ref = key_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - fieldRef_ = b; + key_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1826,88 +1838,135 @@ public java.lang.String getFieldRef() { } /** *
-       * The path to the field that refers the expression.
-       * For example, the reference to the expression of the first item of
-       * validations is "spec.validations[0].expression"
+       * key specifies the audit annotation key. The audit annotation keys of
+       * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
+       * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
+       * The key is combined with the resource name of the
+       * ValidatingAdmissionPolicy to construct an audit annotation key:
+       * "{ValidatingAdmissionPolicy name}/{key}".
+       * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
+       * and the same audit annotation key, the annotation key will be identical.
+       * In this case, the first annotation written with the key will be included
+       * in the audit event and all subsequent annotations with the same key
+       * will be discarded.
+       * Required.
        * 
* - * optional string fieldRef = 2; + * optional string key = 1; */ - public Builder setFieldRef( + public Builder setKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - fieldRef_ = value; + key_ = value; onChanged(); return this; } /** *
-       * The path to the field that refers the expression.
-       * For example, the reference to the expression of the first item of
-       * validations is "spec.validations[0].expression"
+       * key specifies the audit annotation key. The audit annotation keys of
+       * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
+       * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
+       * The key is combined with the resource name of the
+       * ValidatingAdmissionPolicy to construct an audit annotation key:
+       * "{ValidatingAdmissionPolicy name}/{key}".
+       * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
+       * and the same audit annotation key, the annotation key will be identical.
+       * In this case, the first annotation written with the key will be included
+       * in the audit event and all subsequent annotations with the same key
+       * will be discarded.
+       * Required.
        * 
* - * optional string fieldRef = 2; + * optional string key = 1; */ - public Builder clearFieldRef() { + public Builder clearKey() { bitField0_ = (bitField0_ & ~0x00000001); - fieldRef_ = getDefaultInstance().getFieldRef(); + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** *
-       * The path to the field that refers the expression.
-       * For example, the reference to the expression of the first item of
-       * validations is "spec.validations[0].expression"
+       * key specifies the audit annotation key. The audit annotation keys of
+       * a ValidatingAdmissionPolicy must be unique. The key must be a qualified
+       * name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length.
+       * The key is combined with the resource name of the
+       * ValidatingAdmissionPolicy to construct an audit annotation key:
+       * "{ValidatingAdmissionPolicy name}/{key}".
+       * If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy
+       * and the same audit annotation key, the annotation key will be identical.
+       * In this case, the first annotation written with the key will be included
+       * in the audit event and all subsequent annotations with the same key
+       * will be discarded.
+       * Required.
        * 
* - * optional string fieldRef = 2; + * optional string key = 1; */ - public Builder setFieldRefBytes( + public Builder setKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - fieldRef_ = value; + key_ = value; onChanged(); return this; } - private java.lang.Object warning_ = ""; + private java.lang.Object valueExpression_ = ""; /** *
-       * The content of type checking information in a human-readable form.
-       * Each line of the warning contains the type that the expression is checked
-       * against, followed by the type check error from the compiler.
+       * valueExpression represents the expression which is evaluated by CEL to
+       * produce an audit annotation value. The expression must evaluate to either
+       * a string or null value. If the expression evaluates to a string, the
+       * audit annotation is included with the string value. If the expression
+       * evaluates to null or empty string the audit annotation will be omitted.
+       * The valueExpression may be no longer than 5kb in length.
+       * If the result of the valueExpression is more than 10kb in length, it
+       * will be truncated to 10kb.
+       * If multiple ValidatingAdmissionPolicyBinding resources match an
+       * API request, then the valueExpression will be evaluated for
+       * each binding. All unique values produced by the valueExpressions
+       * will be joined together in a comma-separated list.
+       * Required.
        * 
* - * optional string warning = 3; + * optional string valueExpression = 2; */ - public boolean hasWarning() { + public boolean hasValueExpression() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
-       * The content of type checking information in a human-readable form.
-       * Each line of the warning contains the type that the expression is checked
-       * against, followed by the type check error from the compiler.
+       * valueExpression represents the expression which is evaluated by CEL to
+       * produce an audit annotation value. The expression must evaluate to either
+       * a string or null value. If the expression evaluates to a string, the
+       * audit annotation is included with the string value. If the expression
+       * evaluates to null or empty string the audit annotation will be omitted.
+       * The valueExpression may be no longer than 5kb in length.
+       * If the result of the valueExpression is more than 10kb in length, it
+       * will be truncated to 10kb.
+       * If multiple ValidatingAdmissionPolicyBinding resources match an
+       * API request, then the valueExpression will be evaluated for
+       * each binding. All unique values produced by the valueExpressions
+       * will be joined together in a comma-separated list.
+       * Required.
        * 
* - * optional string warning = 3; + * optional string valueExpression = 2; */ - public java.lang.String getWarning() { - java.lang.Object ref = warning_; + public java.lang.String getValueExpression() { + java.lang.Object ref = valueExpression_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - warning_ = s; + valueExpression_ = s; } return s; } else { @@ -1916,21 +1975,31 @@ public java.lang.String getWarning() { } /** *
-       * The content of type checking information in a human-readable form.
-       * Each line of the warning contains the type that the expression is checked
-       * against, followed by the type check error from the compiler.
+       * valueExpression represents the expression which is evaluated by CEL to
+       * produce an audit annotation value. The expression must evaluate to either
+       * a string or null value. If the expression evaluates to a string, the
+       * audit annotation is included with the string value. If the expression
+       * evaluates to null or empty string the audit annotation will be omitted.
+       * The valueExpression may be no longer than 5kb in length.
+       * If the result of the valueExpression is more than 10kb in length, it
+       * will be truncated to 10kb.
+       * If multiple ValidatingAdmissionPolicyBinding resources match an
+       * API request, then the valueExpression will be evaluated for
+       * each binding. All unique values produced by the valueExpressions
+       * will be joined together in a comma-separated list.
+       * Required.
        * 
* - * optional string warning = 3; + * optional string valueExpression = 2; */ public com.google.protobuf.ByteString - getWarningBytes() { - java.lang.Object ref = warning_; + getValueExpressionBytes() { + java.lang.Object ref = valueExpression_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - warning_ = b; + valueExpression_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -1938,54 +2007,84 @@ public java.lang.String getWarning() { } /** *
-       * The content of type checking information in a human-readable form.
-       * Each line of the warning contains the type that the expression is checked
-       * against, followed by the type check error from the compiler.
+       * valueExpression represents the expression which is evaluated by CEL to
+       * produce an audit annotation value. The expression must evaluate to either
+       * a string or null value. If the expression evaluates to a string, the
+       * audit annotation is included with the string value. If the expression
+       * evaluates to null or empty string the audit annotation will be omitted.
+       * The valueExpression may be no longer than 5kb in length.
+       * If the result of the valueExpression is more than 10kb in length, it
+       * will be truncated to 10kb.
+       * If multiple ValidatingAdmissionPolicyBinding resources match an
+       * API request, then the valueExpression will be evaluated for
+       * each binding. All unique values produced by the valueExpressions
+       * will be joined together in a comma-separated list.
+       * Required.
        * 
* - * optional string warning = 3; + * optional string valueExpression = 2; */ - public Builder setWarning( + public Builder setValueExpression( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - warning_ = value; + valueExpression_ = value; onChanged(); return this; } /** *
-       * The content of type checking information in a human-readable form.
-       * Each line of the warning contains the type that the expression is checked
-       * against, followed by the type check error from the compiler.
+       * valueExpression represents the expression which is evaluated by CEL to
+       * produce an audit annotation value. The expression must evaluate to either
+       * a string or null value. If the expression evaluates to a string, the
+       * audit annotation is included with the string value. If the expression
+       * evaluates to null or empty string the audit annotation will be omitted.
+       * The valueExpression may be no longer than 5kb in length.
+       * If the result of the valueExpression is more than 10kb in length, it
+       * will be truncated to 10kb.
+       * If multiple ValidatingAdmissionPolicyBinding resources match an
+       * API request, then the valueExpression will be evaluated for
+       * each binding. All unique values produced by the valueExpressions
+       * will be joined together in a comma-separated list.
+       * Required.
        * 
* - * optional string warning = 3; + * optional string valueExpression = 2; */ - public Builder clearWarning() { + public Builder clearValueExpression() { bitField0_ = (bitField0_ & ~0x00000002); - warning_ = getDefaultInstance().getWarning(); + valueExpression_ = getDefaultInstance().getValueExpression(); onChanged(); return this; } /** *
-       * The content of type checking information in a human-readable form.
-       * Each line of the warning contains the type that the expression is checked
-       * against, followed by the type check error from the compiler.
+       * valueExpression represents the expression which is evaluated by CEL to
+       * produce an audit annotation value. The expression must evaluate to either
+       * a string or null value. If the expression evaluates to a string, the
+       * audit annotation is included with the string value. If the expression
+       * evaluates to null or empty string the audit annotation will be omitted.
+       * The valueExpression may be no longer than 5kb in length.
+       * If the result of the valueExpression is more than 10kb in length, it
+       * will be truncated to 10kb.
+       * If multiple ValidatingAdmissionPolicyBinding resources match an
+       * API request, then the valueExpression will be evaluated for
+       * each binding. All unique values produced by the valueExpressions
+       * will be joined together in a comma-separated list.
+       * Required.
        * 
* - * optional string warning = 3; + * optional string valueExpression = 2; */ - public Builder setWarningBytes( + public Builder setValueExpressionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - warning_ = value; + valueExpression_ = value; onChanged(); return this; } @@ -2002,172 +2101,133 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.ExpressionWarning) + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.AuditAnnotation) } - // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.ExpressionWarning) - private static final io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.AuditAnnotation) + private static final io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning(); + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation(); } - public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning getDefaultInstance() { + public static io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation getDefaultInstance() { return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ExpressionWarning parsePartialFrom( + public AuditAnnotation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ExpressionWarning(input, extensionRegistry); + return new AuditAnnotation(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning getDefaultInstanceForType() { + public io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface MatchConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.MatchCondition) + public interface ExpressionWarningOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.ExpressionWarning) com.google.protobuf.MessageOrBuilder { /** *
-     * Name is an identifier for this match condition, used for strategic merging of MatchConditions,
-     * as well as providing an identifier for logging purposes. A good name should be descriptive of
-     * the associated expression.
-     * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
-     * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
-     * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
-     * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
-     * Required.
+     * fieldRef is the path to the field that refers to the expression.
+     * For example, the reference to the expression of the first item of
+     * validations is "spec.validations[0].expression"
      * 
* - * optional string name = 1; + * optional string fieldRef = 2; */ - boolean hasName(); + boolean hasFieldRef(); /** *
-     * Name is an identifier for this match condition, used for strategic merging of MatchConditions,
-     * as well as providing an identifier for logging purposes. A good name should be descriptive of
-     * the associated expression.
-     * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
-     * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
-     * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
-     * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
-     * Required.
+     * fieldRef is the path to the field that refers to the expression.
+     * For example, the reference to the expression of the first item of
+     * validations is "spec.validations[0].expression"
      * 
* - * optional string name = 1; + * optional string fieldRef = 2; */ - java.lang.String getName(); + java.lang.String getFieldRef(); /** *
-     * Name is an identifier for this match condition, used for strategic merging of MatchConditions,
-     * as well as providing an identifier for logging purposes. A good name should be descriptive of
-     * the associated expression.
-     * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
-     * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
-     * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
-     * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
-     * Required.
+     * fieldRef is the path to the field that refers to the expression.
+     * For example, the reference to the expression of the first item of
+     * validations is "spec.validations[0].expression"
      * 
* - * optional string name = 1; + * optional string fieldRef = 2; */ com.google.protobuf.ByteString - getNameBytes(); + getFieldRefBytes(); /** *
-     * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
-     * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
-     * 'object' - The object from the incoming request. The value is null for DELETE requests.
-     * 'oldObject' - The existing object. The value is null for CREATE requests.
-     * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
-     * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
-     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
-     * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
-     *   request resource.
-     * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
-     * Required.
+     * warning contains the content of type checking information in a human-readable form.
+     * Each line of the warning contains the type that the expression is checked
+     * against, followed by the type check error from the compiler.
      * 
* - * optional string expression = 2; + * optional string warning = 3; */ - boolean hasExpression(); + boolean hasWarning(); /** *
-     * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
-     * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
-     * 'object' - The object from the incoming request. The value is null for DELETE requests.
-     * 'oldObject' - The existing object. The value is null for CREATE requests.
-     * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
-     * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
-     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
-     * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
-     *   request resource.
-     * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
-     * Required.
+     * warning contains the content of type checking information in a human-readable form.
+     * Each line of the warning contains the type that the expression is checked
+     * against, followed by the type check error from the compiler.
      * 
* - * optional string expression = 2; + * optional string warning = 3; */ - java.lang.String getExpression(); + java.lang.String getWarning(); /** *
-     * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
-     * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
-     * 'object' - The object from the incoming request. The value is null for DELETE requests.
-     * 'oldObject' - The existing object. The value is null for CREATE requests.
-     * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
-     * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
-     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
-     * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
-     *   request resource.
-     * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
-     * Required.
+     * warning contains the content of type checking information in a human-readable form.
+     * Each line of the warning contains the type that the expression is checked
+     * against, followed by the type check error from the compiler.
      * 
* - * optional string expression = 2; + * optional string warning = 3; */ com.google.protobuf.ByteString - getExpressionBytes(); + getWarningBytes(); } /** *
-   * MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.
+   * ExpressionWarning is a warning information that targets a specific expression.
    * 
* - * Protobuf type {@code k8s.io.api.admissionregistration.v1.MatchCondition} + * Protobuf type {@code k8s.io.api.admissionregistration.v1.ExpressionWarning} */ - public static final class MatchCondition extends + public static final class ExpressionWarning extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.MatchCondition) - MatchConditionOrBuilder { + // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.ExpressionWarning) + ExpressionWarningOrBuilder { private static final long serialVersionUID = 0L; - // Use MatchCondition.newBuilder() to construct. - private MatchCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ExpressionWarning.newBuilder() to construct. + private ExpressionWarning(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MatchCondition() { - name_ = ""; - expression_ = ""; + private ExpressionWarning() { + fieldRef_ = ""; + warning_ = ""; } @java.lang.Override @@ -2175,7 +2235,7 @@ private MatchCondition() { getUnknownFields() { return this.unknownFields; } - private MatchCondition( + private ExpressionWarning( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -2194,16 +2254,16 @@ private MatchCondition( case 0: done = true; break; - case 10: { + case 18: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; - name_ = bs; + fieldRef_ = bs; break; } - case 18: { + case 26: { com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000002; - expression_ = bs; + warning_ = bs; break; } default: { @@ -2227,53 +2287,43 @@ private MatchCondition( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchCondition_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_ExpressionWarning_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchCondition_fieldAccessorTable + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_ExpressionWarning_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.class, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder.class); + io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.class, io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.Builder.class); } private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + public static final int FIELDREF_FIELD_NUMBER = 2; + private volatile java.lang.Object fieldRef_; /** *
-     * Name is an identifier for this match condition, used for strategic merging of MatchConditions,
-     * as well as providing an identifier for logging purposes. A good name should be descriptive of
-     * the associated expression.
-     * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
-     * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
-     * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
-     * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
-     * Required.
+     * fieldRef is the path to the field that refers to the expression.
+     * For example, the reference to the expression of the first item of
+     * validations is "spec.validations[0].expression"
      * 
* - * optional string name = 1; + * optional string fieldRef = 2; */ - public boolean hasName() { + public boolean hasFieldRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-     * Name is an identifier for this match condition, used for strategic merging of MatchConditions,
-     * as well as providing an identifier for logging purposes. A good name should be descriptive of
-     * the associated expression.
-     * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
-     * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
-     * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
-     * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
-     * Required.
+     * fieldRef is the path to the field that refers to the expression.
+     * For example, the reference to the expression of the first item of
+     * validations is "spec.validations[0].expression"
      * 
* - * optional string name = 1; + * optional string fieldRef = 2; */ - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getFieldRef() { + java.lang.Object ref = fieldRef_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -2281,80 +2331,59 @@ public java.lang.String getName() { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - name_ = s; + fieldRef_ = s; } return s; } } /** *
-     * Name is an identifier for this match condition, used for strategic merging of MatchConditions,
-     * as well as providing an identifier for logging purposes. A good name should be descriptive of
-     * the associated expression.
-     * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
-     * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
-     * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
-     * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
-     * Required.
+     * fieldRef is the path to the field that refers to the expression.
+     * For example, the reference to the expression of the first item of
+     * validations is "spec.validations[0].expression"
      * 
* - * optional string name = 1; + * optional string fieldRef = 2; */ public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; + getFieldRefBytes() { + java.lang.Object ref = fieldRef_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - name_ = b; + fieldRef_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int EXPRESSION_FIELD_NUMBER = 2; - private volatile java.lang.Object expression_; + public static final int WARNING_FIELD_NUMBER = 3; + private volatile java.lang.Object warning_; /** *
-     * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
-     * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
-     * 'object' - The object from the incoming request. The value is null for DELETE requests.
-     * 'oldObject' - The existing object. The value is null for CREATE requests.
-     * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
-     * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
-     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
-     * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
-     *   request resource.
-     * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
-     * Required.
+     * warning contains the content of type checking information in a human-readable form.
+     * Each line of the warning contains the type that the expression is checked
+     * against, followed by the type check error from the compiler.
      * 
* - * optional string expression = 2; + * optional string warning = 3; */ - public boolean hasExpression() { + public boolean hasWarning() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
-     * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
-     * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
-     * 'object' - The object from the incoming request. The value is null for DELETE requests.
-     * 'oldObject' - The existing object. The value is null for CREATE requests.
-     * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
-     * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
-     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
-     * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
-     *   request resource.
-     * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
-     * Required.
+     * warning contains the content of type checking information in a human-readable form.
+     * Each line of the warning contains the type that the expression is checked
+     * against, followed by the type check error from the compiler.
      * 
* - * optional string expression = 2; + * optional string warning = 3; */ - public java.lang.String getExpression() { - java.lang.Object ref = expression_; + public java.lang.String getWarning() { + java.lang.Object ref = warning_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -2362,36 +2391,28 @@ public java.lang.String getExpression() { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - expression_ = s; + warning_ = s; } return s; } } /** *
-     * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
-     * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
-     * 'object' - The object from the incoming request. The value is null for DELETE requests.
-     * 'oldObject' - The existing object. The value is null for CREATE requests.
-     * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
-     * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
-     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
-     * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
-     *   request resource.
-     * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
-     * Required.
+     * warning contains the content of type checking information in a human-readable form.
+     * Each line of the warning contains the type that the expression is checked
+     * against, followed by the type check error from the compiler.
      * 
* - * optional string expression = 2; + * optional string warning = 3; */ public com.google.protobuf.ByteString - getExpressionBytes() { - java.lang.Object ref = expression_; + getWarningBytes() { + java.lang.Object ref = warning_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - expression_ = b; + warning_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2413,10 +2434,10 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldRef_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, expression_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, warning_); } unknownFields.writeTo(output); } @@ -2428,10 +2449,10 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldRef_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, expression_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, warning_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -2443,21 +2464,21 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.MatchCondition)) { + if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning)) { return super.equals(obj); } - io.kubernetes.client.proto.V1Admissionregistration.MatchCondition other = (io.kubernetes.client.proto.V1Admissionregistration.MatchCondition) obj; + io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning other = (io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning) obj; boolean result = true; - result = result && (hasName() == other.hasName()); - if (hasName()) { - result = result && getName() - .equals(other.getName()); + result = result && (hasFieldRef() == other.hasFieldRef()); + if (hasFieldRef()) { + result = result && getFieldRef() + .equals(other.getFieldRef()); } - result = result && (hasExpression() == other.hasExpression()); - if (hasExpression()) { - result = result && getExpression() - .equals(other.getExpression()); + result = result && (hasWarning() == other.hasWarning()); + if (hasWarning()) { + result = result && getWarning() + .equals(other.getWarning()); } result = result && unknownFields.equals(other.unknownFields); return result; @@ -2470,82 +2491,82 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); + if (hasFieldRef()) { + hash = (37 * hash) + FIELDREF_FIELD_NUMBER; + hash = (53 * hash) + getFieldRef().hashCode(); } - if (hasExpression()) { - hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getExpression().hashCode(); + if (hasWarning()) { + hash = (37 * hash) + WARNING_FIELD_NUMBER; + hash = (53 * hash) + getWarning().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom(byte[] data) + public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseDelimitedFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseDelimitedFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -2558,7 +2579,7 @@ public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MatchCondition prototype) { + public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -2575,29 +2596,29 @@ protected Builder newBuilderForType( } /** *
-     * MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.
+     * ExpressionWarning is a warning information that targets a specific expression.
      * 
* - * Protobuf type {@code k8s.io.api.admissionregistration.v1.MatchCondition} + * Protobuf type {@code k8s.io.api.admissionregistration.v1.ExpressionWarning} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MatchCondition) - io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder { + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.ExpressionWarning) + io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarningOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchCondition_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_ExpressionWarning_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchCondition_fieldAccessorTable + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_ExpressionWarning_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.class, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder.class); + io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.class, io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.Builder.class); } - // Construct using io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.newBuilder() + // Construct using io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -2615,9 +2636,9 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - name_ = ""; + fieldRef_ = ""; bitField0_ = (bitField0_ & ~0x00000001); - expression_ = ""; + warning_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -2625,17 +2646,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchCondition_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_ExpressionWarning_descriptor; } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getDefaultInstanceForType() { - return io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.getDefaultInstance(); + public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.getDefaultInstance(); } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition build() { - io.kubernetes.client.proto.V1Admissionregistration.MatchCondition result = buildPartial(); + public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning build() { + io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -2643,18 +2664,18 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition build() } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition buildPartial() { - io.kubernetes.client.proto.V1Admissionregistration.MatchCondition result = new io.kubernetes.client.proto.V1Admissionregistration.MatchCondition(this); + public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning result = new io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } - result.name_ = name_; + result.fieldRef_ = fieldRef_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } - result.expression_ = expression_; + result.warning_ = warning_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -2694,24 +2715,24 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MatchCondition) { - return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MatchCondition)other); + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MatchCondition other) { - if (other == io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.getDefaultInstance()) return this; - if (other.hasName()) { + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.getDefaultInstance()) return this; + if (other.hasFieldRef()) { bitField0_ |= 0x00000001; - name_ = other.name_; + fieldRef_ = other.fieldRef_; onChanged(); } - if (other.hasExpression()) { + if (other.hasWarning()) { bitField0_ |= 0x00000002; - expression_ = other.expression_; + warning_ = other.warning_; onChanged(); } this.mergeUnknownFields(other.unknownFields); @@ -2729,11 +2750,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parsedMessage = null; + io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MatchCondition) e.getUnfinishedMessage(); + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -2744,46 +2765,36 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object name_ = ""; + private java.lang.Object fieldRef_ = ""; /** *
-       * Name is an identifier for this match condition, used for strategic merging of MatchConditions,
-       * as well as providing an identifier for logging purposes. A good name should be descriptive of
-       * the associated expression.
-       * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
-       * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
-       * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
-       * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
-       * Required.
+       * fieldRef is the path to the field that refers to the expression.
+       * For example, the reference to the expression of the first item of
+       * validations is "spec.validations[0].expression"
        * 
* - * optional string name = 1; + * optional string fieldRef = 2; */ - public boolean hasName() { + public boolean hasFieldRef() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-       * Name is an identifier for this match condition, used for strategic merging of MatchConditions,
-       * as well as providing an identifier for logging purposes. A good name should be descriptive of
-       * the associated expression.
-       * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
-       * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
-       * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
-       * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
-       * Required.
+       * fieldRef is the path to the field that refers to the expression.
+       * For example, the reference to the expression of the first item of
+       * validations is "spec.validations[0].expression"
        * 
* - * optional string name = 1; + * optional string fieldRef = 2; */ - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getFieldRef() { + java.lang.Object ref = fieldRef_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - name_ = s; + fieldRef_ = s; } return s; } else { @@ -2792,26 +2803,21 @@ public java.lang.String getName() { } /** *
-       * Name is an identifier for this match condition, used for strategic merging of MatchConditions,
-       * as well as providing an identifier for logging purposes. A good name should be descriptive of
-       * the associated expression.
-       * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
-       * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
-       * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
-       * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
-       * Required.
+       * fieldRef is the path to the field that refers to the expression.
+       * For example, the reference to the expression of the first item of
+       * validations is "spec.validations[0].expression"
        * 
* - * optional string name = 1; + * optional string fieldRef = 2; */ public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; + getFieldRefBytes() { + java.lang.Object ref = fieldRef_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - name_ = b; + fieldRef_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2819,119 +2825,88 @@ public java.lang.String getName() { } /** *
-       * Name is an identifier for this match condition, used for strategic merging of MatchConditions,
-       * as well as providing an identifier for logging purposes. A good name should be descriptive of
-       * the associated expression.
-       * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
-       * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
-       * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
-       * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
-       * Required.
+       * fieldRef is the path to the field that refers to the expression.
+       * For example, the reference to the expression of the first item of
+       * validations is "spec.validations[0].expression"
        * 
* - * optional string name = 1; + * optional string fieldRef = 2; */ - public Builder setName( + public Builder setFieldRef( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - name_ = value; + fieldRef_ = value; onChanged(); return this; } /** *
-       * Name is an identifier for this match condition, used for strategic merging of MatchConditions,
-       * as well as providing an identifier for logging purposes. A good name should be descriptive of
-       * the associated expression.
-       * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
-       * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
-       * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
-       * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
-       * Required.
+       * fieldRef is the path to the field that refers to the expression.
+       * For example, the reference to the expression of the first item of
+       * validations is "spec.validations[0].expression"
        * 
* - * optional string name = 1; + * optional string fieldRef = 2; */ - public Builder clearName() { + public Builder clearFieldRef() { bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); + fieldRef_ = getDefaultInstance().getFieldRef(); onChanged(); return this; } /** *
-       * Name is an identifier for this match condition, used for strategic merging of MatchConditions,
-       * as well as providing an identifier for logging purposes. A good name should be descriptive of
-       * the associated expression.
-       * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
-       * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
-       * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
-       * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
-       * Required.
+       * fieldRef is the path to the field that refers to the expression.
+       * For example, the reference to the expression of the first item of
+       * validations is "spec.validations[0].expression"
        * 
* - * optional string name = 1; + * optional string fieldRef = 2; */ - public Builder setNameBytes( + public Builder setFieldRefBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; - name_ = value; + fieldRef_ = value; onChanged(); return this; } - private java.lang.Object expression_ = ""; + private java.lang.Object warning_ = ""; /** *
-       * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
-       * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
-       * 'object' - The object from the incoming request. The value is null for DELETE requests.
-       * 'oldObject' - The existing object. The value is null for CREATE requests.
-       * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
-       * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
-       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
-       * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
-       *   request resource.
-       * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
-       * Required.
+       * warning contains the content of type checking information in a human-readable form.
+       * Each line of the warning contains the type that the expression is checked
+       * against, followed by the type check error from the compiler.
        * 
* - * optional string expression = 2; + * optional string warning = 3; */ - public boolean hasExpression() { + public boolean hasWarning() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
-       * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
-       * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
-       * 'object' - The object from the incoming request. The value is null for DELETE requests.
-       * 'oldObject' - The existing object. The value is null for CREATE requests.
-       * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
-       * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
-       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
-       * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
-       *   request resource.
-       * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
-       * Required.
+       * warning contains the content of type checking information in a human-readable form.
+       * Each line of the warning contains the type that the expression is checked
+       * against, followed by the type check error from the compiler.
        * 
* - * optional string expression = 2; + * optional string warning = 3; */ - public java.lang.String getExpression() { - java.lang.Object ref = expression_; + public java.lang.String getWarning() { + java.lang.Object ref = warning_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - expression_ = s; + warning_ = s; } return s; } else { @@ -2940,29 +2915,21 @@ public java.lang.String getExpression() { } /** *
-       * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
-       * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
-       * 'object' - The object from the incoming request. The value is null for DELETE requests.
-       * 'oldObject' - The existing object. The value is null for CREATE requests.
-       * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
-       * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
-       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
-       * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
-       *   request resource.
-       * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
-       * Required.
+       * warning contains the content of type checking information in a human-readable form.
+       * Each line of the warning contains the type that the expression is checked
+       * against, followed by the type check error from the compiler.
        * 
* - * optional string expression = 2; + * optional string warning = 3; */ public com.google.protobuf.ByteString - getExpressionBytes() { - java.lang.Object ref = expression_; + getWarningBytes() { + java.lang.Object ref = warning_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - expression_ = b; + warning_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -2970,78 +2937,54 @@ public java.lang.String getExpression() { } /** *
-       * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
-       * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
-       * 'object' - The object from the incoming request. The value is null for DELETE requests.
-       * 'oldObject' - The existing object. The value is null for CREATE requests.
-       * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
-       * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
-       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
-       * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
-       *   request resource.
-       * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
-       * Required.
+       * warning contains the content of type checking information in a human-readable form.
+       * Each line of the warning contains the type that the expression is checked
+       * against, followed by the type check error from the compiler.
        * 
* - * optional string expression = 2; + * optional string warning = 3; */ - public Builder setExpression( + public Builder setWarning( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - expression_ = value; + warning_ = value; onChanged(); return this; } /** *
-       * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
-       * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
-       * 'object' - The object from the incoming request. The value is null for DELETE requests.
-       * 'oldObject' - The existing object. The value is null for CREATE requests.
-       * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
-       * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
-       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
-       * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
-       *   request resource.
-       * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
-       * Required.
+       * warning contains the content of type checking information in a human-readable form.
+       * Each line of the warning contains the type that the expression is checked
+       * against, followed by the type check error from the compiler.
        * 
* - * optional string expression = 2; + * optional string warning = 3; */ - public Builder clearExpression() { + public Builder clearWarning() { bitField0_ = (bitField0_ & ~0x00000002); - expression_ = getDefaultInstance().getExpression(); + warning_ = getDefaultInstance().getWarning(); onChanged(); return this; } /** *
-       * Expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
-       * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
-       * 'object' - The object from the incoming request. The value is null for DELETE requests.
-       * 'oldObject' - The existing object. The value is null for CREATE requests.
-       * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
-       * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
-       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
-       * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
-       *   request resource.
-       * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
-       * Required.
+       * warning contains the content of type checking information in a human-readable form.
+       * Each line of the warning contains the type that the expression is checked
+       * against, followed by the type check error from the compiler.
        * 
* - * optional string expression = 2; + * optional string warning = 3; */ - public Builder setExpressionBytes( + public Builder setWarningBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; - expression_ = value; + warning_ = value; onChanged(); return this; } @@ -3058,450 +3001,241 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MatchCondition) + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.ExpressionWarning) } - // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MatchCondition) - private static final io.kubernetes.client.proto.V1Admissionregistration.MatchCondition DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.ExpressionWarning) + private static final io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MatchCondition(); + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning(); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getDefaultInstance() { + public static io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning getDefaultInstance() { return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public MatchCondition parsePartialFrom( + public ExpressionWarning parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MatchCondition(input, extensionRegistry); + return new ExpressionWarning(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getDefaultInstanceForType() { + public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface MatchResourcesOrBuilder extends - // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.MatchResources) + public interface JSONPatchOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.JSONPatch) com.google.protobuf.MessageOrBuilder { /** *
-     * NamespaceSelector decides whether to run the admission control policy on an object based
-     * on whether the namespace for that object matches the selector. If the
-     * object itself is a namespace, the matching is performed on
-     * object.metadata.labels. If the object is another cluster scoped resource,
-     * it never skips the policy.
-     * For example, to run the webhook on any objects whose namespace is not
-     * associated with "runlevel" of "0" or "1";  you will set the selector as
-     * follows:
-     * "namespaceSelector": {
-     *   "matchExpressions": [
-     *     {
-     *       "key": "runlevel",
-     *       "operator": "NotIn",
-     *       "values": [
-     *         "0",
-     *         "1"
-     *       ]
-     *     }
-     *   ]
-     * }
-     * If instead you want to only run the policy on any objects whose
-     * namespace is associated with the "environment" of "prod" or "staging";
-     * you will set the selector as follows:
-     * "namespaceSelector": {
-     *   "matchExpressions": [
-     *     {
-     *       "key": "environment",
-     *       "operator": "In",
-     *       "values": [
-     *         "prod",
-     *         "staging"
-     *       ]
-     *     }
-     *   ]
-     * }
-     * See
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * for more examples of label selectors.
-     * Default to the empty LabelSelector, which matches everything.
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; - */ - boolean hasNamespaceSelector(); - /** - *
-     * NamespaceSelector decides whether to run the admission control policy on an object based
-     * on whether the namespace for that object matches the selector. If the
-     * object itself is a namespace, the matching is performed on
-     * object.metadata.labels. If the object is another cluster scoped resource,
-     * it never skips the policy.
-     * For example, to run the webhook on any objects whose namespace is not
-     * associated with "runlevel" of "0" or "1";  you will set the selector as
-     * follows:
-     * "namespaceSelector": {
-     *   "matchExpressions": [
-     *     {
-     *       "key": "runlevel",
-     *       "operator": "NotIn",
-     *       "values": [
-     *         "0",
-     *         "1"
-     *       ]
-     *     }
-     *   ]
-     * }
-     * If instead you want to only run the policy on any objects whose
-     * namespace is associated with the "environment" of "prod" or "staging";
-     * you will set the selector as follows:
-     * "namespaceSelector": {
-     *   "matchExpressions": [
-     *     {
-     *       "key": "environment",
-     *       "operator": "In",
-     *       "values": [
-     *         "prod",
-     *         "staging"
-     *       ]
-     *     }
-     *   ]
-     * }
-     * See
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * for more examples of label selectors.
-     * Default to the empty LabelSelector, which matches everything.
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; - */ - io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector(); - /** - *
-     * NamespaceSelector decides whether to run the admission control policy on an object based
-     * on whether the namespace for that object matches the selector. If the
-     * object itself is a namespace, the matching is performed on
-     * object.metadata.labels. If the object is another cluster scoped resource,
-     * it never skips the policy.
-     * For example, to run the webhook on any objects whose namespace is not
-     * associated with "runlevel" of "0" or "1";  you will set the selector as
-     * follows:
-     * "namespaceSelector": {
-     *   "matchExpressions": [
-     *     {
-     *       "key": "runlevel",
-     *       "operator": "NotIn",
-     *       "values": [
-     *         "0",
-     *         "1"
-     *       ]
-     *     }
-     *   ]
-     * }
-     * If instead you want to only run the policy on any objects whose
-     * namespace is associated with the "environment" of "prod" or "staging";
-     * you will set the selector as follows:
-     * "namespaceSelector": {
-     *   "matchExpressions": [
-     *     {
-     *       "key": "environment",
-     *       "operator": "In",
-     *       "values": [
-     *         "prod",
-     *         "staging"
-     *       ]
-     *     }
-     *   ]
-     * }
-     * See
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * for more examples of label selectors.
-     * Default to the empty LabelSelector, which matches everything.
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; - */ - io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder(); - - /** - *
-     * ObjectSelector decides whether to run the validation based on if the
-     * object has matching labels. objectSelector is evaluated against both
-     * the oldObject and newObject that would be sent to the cel validation, and
-     * is considered to match if either object matches the selector. A null
-     * object (oldObject in the case of create, or newObject in the case of
-     * delete) or an object that cannot have labels (like a
-     * DeploymentRollback or a PodProxyOptions object) is not considered to
-     * match.
-     * Use the object selector only if the webhook is opt-in, because end
-     * users may skip the admission webhook by setting the labels.
-     * Default to the empty LabelSelector, which matches everything.
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; - */ - boolean hasObjectSelector(); - /** - *
-     * ObjectSelector decides whether to run the validation based on if the
-     * object has matching labels. objectSelector is evaluated against both
-     * the oldObject and newObject that would be sent to the cel validation, and
-     * is considered to match if either object matches the selector. A null
-     * object (oldObject in the case of create, or newObject in the case of
-     * delete) or an object that cannot have labels (like a
-     * DeploymentRollback or a PodProxyOptions object) is not considered to
-     * match.
-     * Use the object selector only if the webhook is opt-in, because end
-     * users may skip the admission webhook by setting the labels.
-     * Default to the empty LabelSelector, which matches everything.
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; - */ - io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector(); - /** - *
-     * ObjectSelector decides whether to run the validation based on if the
-     * object has matching labels. objectSelector is evaluated against both
-     * the oldObject and newObject that would be sent to the cel validation, and
-     * is considered to match if either object matches the selector. A null
-     * object (oldObject in the case of create, or newObject in the case of
-     * delete) or an object that cannot have labels (like a
-     * DeploymentRollback or a PodProxyOptions object) is not considered to
-     * match.
-     * Use the object selector only if the webhook is opt-in, because end
-     * users may skip the admission webhook by setting the labels.
-     * Default to the empty LabelSelector, which matches everything.
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; - */ - io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorOrBuilder(); - - /** - *
-     * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-     * The policy cares about an operation if it matches _any_ Rule.
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; - */ - java.util.List - getResourceRulesList(); - /** - *
-     * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-     * The policy cares about an operation if it matches _any_ Rule.
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; - */ - io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations getResourceRules(int index); - /** - *
-     * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-     * The policy cares about an operation if it matches _any_ Rule.
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; - */ - int getResourceRulesCount(); - /** - *
-     * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-     * The policy cares about an operation if it matches _any_ Rule.
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; - */ - java.util.List - getResourceRulesOrBuilderList(); - /** - *
-     * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-     * The policy cares about an operation if it matches _any_ Rule.
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; - */ - io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder getResourceRulesOrBuilder( - int index); - - /** - *
-     * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; - */ - java.util.List - getExcludeResourceRulesList(); - /** - *
-     * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; - */ - io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations getExcludeResourceRules(int index); - /** - *
-     * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; - */ - int getExcludeResourceRulesCount(); - /** - *
-     * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; - */ - java.util.List - getExcludeResourceRulesOrBuilderList(); - /** - *
-     * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; - */ - io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder getExcludeResourceRulesOrBuilder( - int index); - - /** - *
-     * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
-     * Allowed values are "Exact" or "Equivalent".
-     * - Exact: match a request only if it exactly matches a specified rule.
-     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
-     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
-     * Defaults to "Equivalent"
-     * +optional
+     * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).
+     * ref: https://github.com/google/cel-spec
+     * expression must return an array of JSONPatch values.
+     * For example, this CEL expression returns a JSON patch to conditionally modify a value:
+     * 	  [
+     * 	    JSONPatch{op: "test", path: "/spec/example", value: "Red"},
+     * 	    JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
+     * 	  ]
+     * To define an object for the patch value, use Object types. For example:
+     * 	  [
+     * 	    JSONPatch{
+     * 	      op: "add",
+     * 	      path: "/spec/selector",
+     * 	      value: Object.spec.selector{matchLabels: {"environment": "test"}}
+     * 	    }
+     * 	  ]
+     * To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
+     * 	  [
+     * 	    JSONPatch{
+     * 	      op: "add",
+     * 	      path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
+     * 	      value: "test"
+     * 	    },
+     * 	  ]
+     * CEL expressions have access to the types needed to create JSON patches and objects:
+     * - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
+     *   See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
+     *   integer, array, map or object.  If set, the 'path' and 'from' fields must be set to a
+     *   [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
+     *   function may be used to escape path keys containing '/' and '~'.
+     * - 'Object' - CEL type of the resource object.
+     * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+     * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+     * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+     * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * - 'oldObject' - The existing object. The value is null for CREATE requests.
+     * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+     * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+     * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+     * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+     *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+     * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)
+     * as well as:
+     * - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and  '/' are escaped as '~0' and `~1' respectively).
+     * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
+     * Required.
      * 
* - * optional string matchPolicy = 7; + * optional string expression = 1; */ - boolean hasMatchPolicy(); + boolean hasExpression(); /** *
-     * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
-     * Allowed values are "Exact" or "Equivalent".
-     * - Exact: match a request only if it exactly matches a specified rule.
-     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
-     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
-     * Defaults to "Equivalent"
-     * +optional
+     * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).
+     * ref: https://github.com/google/cel-spec
+     * expression must return an array of JSONPatch values.
+     * For example, this CEL expression returns a JSON patch to conditionally modify a value:
+     * 	  [
+     * 	    JSONPatch{op: "test", path: "/spec/example", value: "Red"},
+     * 	    JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
+     * 	  ]
+     * To define an object for the patch value, use Object types. For example:
+     * 	  [
+     * 	    JSONPatch{
+     * 	      op: "add",
+     * 	      path: "/spec/selector",
+     * 	      value: Object.spec.selector{matchLabels: {"environment": "test"}}
+     * 	    }
+     * 	  ]
+     * To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
+     * 	  [
+     * 	    JSONPatch{
+     * 	      op: "add",
+     * 	      path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
+     * 	      value: "test"
+     * 	    },
+     * 	  ]
+     * CEL expressions have access to the types needed to create JSON patches and objects:
+     * - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
+     *   See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
+     *   integer, array, map or object.  If set, the 'path' and 'from' fields must be set to a
+     *   [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
+     *   function may be used to escape path keys containing '/' and '~'.
+     * - 'Object' - CEL type of the resource object.
+     * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+     * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+     * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+     * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * - 'oldObject' - The existing object. The value is null for CREATE requests.
+     * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+     * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+     * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+     * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+     *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+     * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)
+     * as well as:
+     * - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and  '/' are escaped as '~0' and `~1' respectively).
+     * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
+     * Required.
      * 
* - * optional string matchPolicy = 7; + * optional string expression = 1; */ - java.lang.String getMatchPolicy(); + java.lang.String getExpression(); /** *
-     * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
-     * Allowed values are "Exact" or "Equivalent".
-     * - Exact: match a request only if it exactly matches a specified rule.
-     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
-     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
-     * Defaults to "Equivalent"
-     * +optional
+     * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).
+     * ref: https://github.com/google/cel-spec
+     * expression must return an array of JSONPatch values.
+     * For example, this CEL expression returns a JSON patch to conditionally modify a value:
+     * 	  [
+     * 	    JSONPatch{op: "test", path: "/spec/example", value: "Red"},
+     * 	    JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
+     * 	  ]
+     * To define an object for the patch value, use Object types. For example:
+     * 	  [
+     * 	    JSONPatch{
+     * 	      op: "add",
+     * 	      path: "/spec/selector",
+     * 	      value: Object.spec.selector{matchLabels: {"environment": "test"}}
+     * 	    }
+     * 	  ]
+     * To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
+     * 	  [
+     * 	    JSONPatch{
+     * 	      op: "add",
+     * 	      path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
+     * 	      value: "test"
+     * 	    },
+     * 	  ]
+     * CEL expressions have access to the types needed to create JSON patches and objects:
+     * - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
+     *   See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
+     *   integer, array, map or object.  If set, the 'path' and 'from' fields must be set to a
+     *   [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
+     *   function may be used to escape path keys containing '/' and '~'.
+     * - 'Object' - CEL type of the resource object.
+     * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+     * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+     * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+     * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * - 'oldObject' - The existing object. The value is null for CREATE requests.
+     * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+     * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+     * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+     * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+     *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+     * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)
+     * as well as:
+     * - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and  '/' are escaped as '~0' and `~1' respectively).
+     * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
+     * Required.
      * 
* - * optional string matchPolicy = 7; + * optional string expression = 1; */ com.google.protobuf.ByteString - getMatchPolicyBytes(); + getExpressionBytes(); } /** *
-   * MatchResources decides whether to run the admission control policy on an object based
-   * on whether it meets the match criteria.
-   * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-   * +structType=atomic
+   * JSONPatch defines a JSON Patch.
    * 
* - * Protobuf type {@code k8s.io.api.admissionregistration.v1.MatchResources} + * Protobuf type {@code k8s.io.api.admissionregistration.v1.JSONPatch} */ - public static final class MatchResources extends + public static final class JSONPatch extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.MatchResources) - MatchResourcesOrBuilder { + // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.JSONPatch) + JSONPatchOrBuilder { private static final long serialVersionUID = 0L; - // Use MatchResources.newBuilder() to construct. - private MatchResources(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use JSONPatch.newBuilder() to construct. + private JSONPatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MatchResources() { - resourceRules_ = java.util.Collections.emptyList(); - excludeResourceRules_ = java.util.Collections.emptyList(); - matchPolicy_ = ""; + private JSONPatch() { + expression_ = ""; } @java.lang.Override @@ -3509,7 +3243,7 @@ private MatchResources() { getUnknownFields() { return this.unknownFields; } - private MatchResources( + private JSONPatch( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3529,59 +3263,15 @@ private MatchResources( done = true; break; case 10: { - io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = namespaceSelector_.toBuilder(); - } - namespaceSelector_ = input.readMessage(io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(namespaceSelector_); - namespaceSelector_ = subBuilder.buildPartial(); - } + com.google.protobuf.ByteString bs = input.readBytes(); bitField0_ |= 0x00000001; + expression_ = bs; break; } - case 18: { - io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null; - if (((bitField0_ & 0x00000002) == 0x00000002)) { - subBuilder = objectSelector_.toBuilder(); - } - objectSelector_ = input.readMessage(io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(objectSelector_); - objectSelector_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - case 26: { - if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - resourceRules_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - resourceRules_.add( - input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.PARSER, extensionRegistry)); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - excludeResourceRules_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - excludeResourceRules_.add( - input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.PARSER, extensionRegistry)); - break; - } - case 58: { - com.google.protobuf.ByteString bs = input.readBytes(); - bitField0_ |= 0x00000004; - matchPolicy_ = bs; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } break; } @@ -3593,429 +3283,143 @@ private MatchResources( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { - resourceRules_ = java.util.Collections.unmodifiableList(resourceRules_); - } - if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { - excludeResourceRules_ = java.util.Collections.unmodifiableList(excludeResourceRules_); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchResources_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_JSONPatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchResources_fieldAccessorTable + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_JSONPatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1Admissionregistration.MatchResources.class, io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder.class); + io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.class, io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.Builder.class); } private int bitField0_; - public static final int NAMESPACESELECTOR_FIELD_NUMBER = 1; - private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_; + public static final int EXPRESSION_FIELD_NUMBER = 1; + private volatile java.lang.Object expression_; /** *
-     * NamespaceSelector decides whether to run the admission control policy on an object based
-     * on whether the namespace for that object matches the selector. If the
-     * object itself is a namespace, the matching is performed on
-     * object.metadata.labels. If the object is another cluster scoped resource,
-     * it never skips the policy.
-     * For example, to run the webhook on any objects whose namespace is not
-     * associated with "runlevel" of "0" or "1";  you will set the selector as
-     * follows:
-     * "namespaceSelector": {
-     *   "matchExpressions": [
-     *     {
-     *       "key": "runlevel",
-     *       "operator": "NotIn",
-     *       "values": [
-     *         "0",
-     *         "1"
-     *       ]
-     *     }
-     *   ]
-     * }
-     * If instead you want to only run the policy on any objects whose
-     * namespace is associated with the "environment" of "prod" or "staging";
-     * you will set the selector as follows:
-     * "namespaceSelector": {
-     *   "matchExpressions": [
-     *     {
-     *       "key": "environment",
-     *       "operator": "In",
-     *       "values": [
-     *         "prod",
-     *         "staging"
-     *       ]
-     *     }
-     *   ]
-     * }
-     * See
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * for more examples of label selectors.
-     * Default to the empty LabelSelector, which matches everything.
-     * +optional
+     * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).
+     * ref: https://github.com/google/cel-spec
+     * expression must return an array of JSONPatch values.
+     * For example, this CEL expression returns a JSON patch to conditionally modify a value:
+     * 	  [
+     * 	    JSONPatch{op: "test", path: "/spec/example", value: "Red"},
+     * 	    JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
+     * 	  ]
+     * To define an object for the patch value, use Object types. For example:
+     * 	  [
+     * 	    JSONPatch{
+     * 	      op: "add",
+     * 	      path: "/spec/selector",
+     * 	      value: Object.spec.selector{matchLabels: {"environment": "test"}}
+     * 	    }
+     * 	  ]
+     * To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
+     * 	  [
+     * 	    JSONPatch{
+     * 	      op: "add",
+     * 	      path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
+     * 	      value: "test"
+     * 	    },
+     * 	  ]
+     * CEL expressions have access to the types needed to create JSON patches and objects:
+     * - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
+     *   See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
+     *   integer, array, map or object.  If set, the 'path' and 'from' fields must be set to a
+     *   [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
+     *   function may be used to escape path keys containing '/' and '~'.
+     * - 'Object' - CEL type of the resource object.
+     * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+     * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+     * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+     * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * - 'oldObject' - The existing object. The value is null for CREATE requests.
+     * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+     * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+     * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+     * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+     *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+     * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)
+     * as well as:
+     * - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and  '/' are escaped as '~0' and `~1' respectively).
+     * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
+     * Required.
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + * optional string expression = 1; */ - public boolean hasNamespaceSelector() { + public boolean hasExpression() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-     * NamespaceSelector decides whether to run the admission control policy on an object based
-     * on whether the namespace for that object matches the selector. If the
-     * object itself is a namespace, the matching is performed on
-     * object.metadata.labels. If the object is another cluster scoped resource,
-     * it never skips the policy.
-     * For example, to run the webhook on any objects whose namespace is not
-     * associated with "runlevel" of "0" or "1";  you will set the selector as
-     * follows:
-     * "namespaceSelector": {
-     *   "matchExpressions": [
-     *     {
-     *       "key": "runlevel",
-     *       "operator": "NotIn",
-     *       "values": [
-     *         "0",
-     *         "1"
-     *       ]
-     *     }
-     *   ]
-     * }
-     * If instead you want to only run the policy on any objects whose
-     * namespace is associated with the "environment" of "prod" or "staging";
-     * you will set the selector as follows:
-     * "namespaceSelector": {
-     *   "matchExpressions": [
-     *     {
-     *       "key": "environment",
-     *       "operator": "In",
-     *       "values": [
-     *         "prod",
-     *         "staging"
-     *       ]
-     *     }
-     *   ]
-     * }
-     * See
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * for more examples of label selectors.
-     * Default to the empty LabelSelector, which matches everything.
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; - */ - public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() { - return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; - } - /** - *
-     * NamespaceSelector decides whether to run the admission control policy on an object based
-     * on whether the namespace for that object matches the selector. If the
-     * object itself is a namespace, the matching is performed on
-     * object.metadata.labels. If the object is another cluster scoped resource,
-     * it never skips the policy.
-     * For example, to run the webhook on any objects whose namespace is not
-     * associated with "runlevel" of "0" or "1";  you will set the selector as
-     * follows:
-     * "namespaceSelector": {
-     *   "matchExpressions": [
-     *     {
-     *       "key": "runlevel",
-     *       "operator": "NotIn",
-     *       "values": [
-     *         "0",
-     *         "1"
-     *       ]
-     *     }
-     *   ]
-     * }
-     * If instead you want to only run the policy on any objects whose
-     * namespace is associated with the "environment" of "prod" or "staging";
-     * you will set the selector as follows:
-     * "namespaceSelector": {
-     *   "matchExpressions": [
-     *     {
-     *       "key": "environment",
-     *       "operator": "In",
-     *       "values": [
-     *         "prod",
-     *         "staging"
-     *       ]
-     *     }
-     *   ]
-     * }
-     * See
-     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-     * for more examples of label selectors.
-     * Default to the empty LabelSelector, which matches everything.
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; - */ - public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder() { - return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; - } - - public static final int OBJECTSELECTOR_FIELD_NUMBER = 2; - private io.kubernetes.client.proto.Meta.LabelSelector objectSelector_; - /** - *
-     * ObjectSelector decides whether to run the validation based on if the
-     * object has matching labels. objectSelector is evaluated against both
-     * the oldObject and newObject that would be sent to the cel validation, and
-     * is considered to match if either object matches the selector. A null
-     * object (oldObject in the case of create, or newObject in the case of
-     * delete) or an object that cannot have labels (like a
-     * DeploymentRollback or a PodProxyOptions object) is not considered to
-     * match.
-     * Use the object selector only if the webhook is opt-in, because end
-     * users may skip the admission webhook by setting the labels.
-     * Default to the empty LabelSelector, which matches everything.
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; - */ - public boolean hasObjectSelector() { - return ((bitField0_ & 0x00000002) == 0x00000002); - } - /** - *
-     * ObjectSelector decides whether to run the validation based on if the
-     * object has matching labels. objectSelector is evaluated against both
-     * the oldObject and newObject that would be sent to the cel validation, and
-     * is considered to match if either object matches the selector. A null
-     * object (oldObject in the case of create, or newObject in the case of
-     * delete) or an object that cannot have labels (like a
-     * DeploymentRollback or a PodProxyOptions object) is not considered to
-     * match.
-     * Use the object selector only if the webhook is opt-in, because end
-     * users may skip the admission webhook by setting the labels.
-     * Default to the empty LabelSelector, which matches everything.
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; - */ - public io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector() { - return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; - } - /** - *
-     * ObjectSelector decides whether to run the validation based on if the
-     * object has matching labels. objectSelector is evaluated against both
-     * the oldObject and newObject that would be sent to the cel validation, and
-     * is considered to match if either object matches the selector. A null
-     * object (oldObject in the case of create, or newObject in the case of
-     * delete) or an object that cannot have labels (like a
-     * DeploymentRollback or a PodProxyOptions object) is not considered to
-     * match.
-     * Use the object selector only if the webhook is opt-in, because end
-     * users may skip the admission webhook by setting the labels.
-     * Default to the empty LabelSelector, which matches everything.
-     * +optional
-     * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; - */ - public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorOrBuilder() { - return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; - } - - public static final int RESOURCERULES_FIELD_NUMBER = 3; - private java.util.List resourceRules_; - /** - *
-     * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-     * The policy cares about an operation if it matches _any_ Rule.
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; - */ - public java.util.List getResourceRulesList() { - return resourceRules_; - } - /** - *
-     * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-     * The policy cares about an operation if it matches _any_ Rule.
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; - */ - public java.util.List - getResourceRulesOrBuilderList() { - return resourceRules_; - } - /** - *
-     * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-     * The policy cares about an operation if it matches _any_ Rule.
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; - */ - public int getResourceRulesCount() { - return resourceRules_.size(); - } - /** - *
-     * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-     * The policy cares about an operation if it matches _any_ Rule.
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; - */ - public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations getResourceRules(int index) { - return resourceRules_.get(index); - } - /** - *
-     * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-     * The policy cares about an operation if it matches _any_ Rule.
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; - */ - public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder getResourceRulesOrBuilder( - int index) { - return resourceRules_.get(index); - } - - public static final int EXCLUDERESOURCERULES_FIELD_NUMBER = 4; - private java.util.List excludeResourceRules_; - /** - *
-     * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; - */ - public java.util.List getExcludeResourceRulesList() { - return excludeResourceRules_; - } - /** - *
-     * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; - */ - public java.util.List - getExcludeResourceRulesOrBuilderList() { - return excludeResourceRules_; - } - /** - *
-     * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; - */ - public int getExcludeResourceRulesCount() { - return excludeResourceRules_.size(); - } - /** - *
-     * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; - */ - public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations getExcludeResourceRules(int index) { - return excludeResourceRules_.get(index); - } - /** - *
-     * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-     * +listType=atomic
-     * +optional
-     * 
- * - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; - */ - public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder getExcludeResourceRulesOrBuilder( - int index) { - return excludeResourceRules_.get(index); - } - - public static final int MATCHPOLICY_FIELD_NUMBER = 7; - private volatile java.lang.Object matchPolicy_; - /** - *
-     * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
-     * Allowed values are "Exact" or "Equivalent".
-     * - Exact: match a request only if it exactly matches a specified rule.
-     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
-     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
-     * Defaults to "Equivalent"
-     * +optional
-     * 
- * - * optional string matchPolicy = 7; - */ - public boolean hasMatchPolicy() { - return ((bitField0_ & 0x00000004) == 0x00000004); - } - /** - *
-     * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
-     * Allowed values are "Exact" or "Equivalent".
-     * - Exact: match a request only if it exactly matches a specified rule.
-     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
-     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
-     * Defaults to "Equivalent"
-     * +optional
+     * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).
+     * ref: https://github.com/google/cel-spec
+     * expression must return an array of JSONPatch values.
+     * For example, this CEL expression returns a JSON patch to conditionally modify a value:
+     * 	  [
+     * 	    JSONPatch{op: "test", path: "/spec/example", value: "Red"},
+     * 	    JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
+     * 	  ]
+     * To define an object for the patch value, use Object types. For example:
+     * 	  [
+     * 	    JSONPatch{
+     * 	      op: "add",
+     * 	      path: "/spec/selector",
+     * 	      value: Object.spec.selector{matchLabels: {"environment": "test"}}
+     * 	    }
+     * 	  ]
+     * To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
+     * 	  [
+     * 	    JSONPatch{
+     * 	      op: "add",
+     * 	      path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
+     * 	      value: "test"
+     * 	    },
+     * 	  ]
+     * CEL expressions have access to the types needed to create JSON patches and objects:
+     * - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
+     *   See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
+     *   integer, array, map or object.  If set, the 'path' and 'from' fields must be set to a
+     *   [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
+     *   function may be used to escape path keys containing '/' and '~'.
+     * - 'Object' - CEL type of the resource object.
+     * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+     * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+     * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+     * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * - 'oldObject' - The existing object. The value is null for CREATE requests.
+     * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+     * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+     * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+     * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+     *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+     * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)
+     * as well as:
+     * - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and  '/' are escaped as '~0' and `~1' respectively).
+     * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
+     * Required.
      * 
* - * optional string matchPolicy = 7; + * optional string expression = 1; */ - public java.lang.String getMatchPolicy() { - java.lang.Object ref = matchPolicy_; + public java.lang.String getExpression() { + java.lang.Object ref = expression_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { @@ -4023,37 +3427,75 @@ public java.lang.String getMatchPolicy() { (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - matchPolicy_ = s; + expression_ = s; } return s; } } /** *
-     * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
-     * Allowed values are "Exact" or "Equivalent".
-     * - Exact: match a request only if it exactly matches a specified rule.
-     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
-     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
-     * Defaults to "Equivalent"
-     * +optional
+     * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).
+     * ref: https://github.com/google/cel-spec
+     * expression must return an array of JSONPatch values.
+     * For example, this CEL expression returns a JSON patch to conditionally modify a value:
+     * 	  [
+     * 	    JSONPatch{op: "test", path: "/spec/example", value: "Red"},
+     * 	    JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
+     * 	  ]
+     * To define an object for the patch value, use Object types. For example:
+     * 	  [
+     * 	    JSONPatch{
+     * 	      op: "add",
+     * 	      path: "/spec/selector",
+     * 	      value: Object.spec.selector{matchLabels: {"environment": "test"}}
+     * 	    }
+     * 	  ]
+     * To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
+     * 	  [
+     * 	    JSONPatch{
+     * 	      op: "add",
+     * 	      path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
+     * 	      value: "test"
+     * 	    },
+     * 	  ]
+     * CEL expressions have access to the types needed to create JSON patches and objects:
+     * - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
+     *   See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
+     *   integer, array, map or object.  If set, the 'path' and 'from' fields must be set to a
+     *   [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
+     *   function may be used to escape path keys containing '/' and '~'.
+     * - 'Object' - CEL type of the resource object.
+     * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+     * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+     * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+     * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * - 'oldObject' - The existing object. The value is null for CREATE requests.
+     * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+     * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+     * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+     * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+     *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+     * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)
+     * as well as:
+     * - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and  '/' are escaped as '~0' and `~1' respectively).
+     * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
+     * Required.
      * 
* - * optional string matchPolicy = 7; + * optional string expression = 1; */ public com.google.protobuf.ByteString - getMatchPolicyBytes() { - java.lang.Object ref = matchPolicy_; + getExpressionBytes() { + java.lang.Object ref = expression_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - matchPolicy_ = b; + expression_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -4075,19 +3517,7 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getNamespaceSelector()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - output.writeMessage(2, getObjectSelector()); - } - for (int i = 0; i < resourceRules_.size(); i++) { - output.writeMessage(3, resourceRules_.get(i)); - } - for (int i = 0; i < excludeResourceRules_.size(); i++) { - output.writeMessage(4, excludeResourceRules_.get(i)); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, matchPolicy_); + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, expression_); } unknownFields.writeTo(output); } @@ -4099,23 +3529,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getNamespaceSelector()); - } - if (((bitField0_ & 0x00000002) == 0x00000002)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getObjectSelector()); - } - for (int i = 0; i < resourceRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, resourceRules_.get(i)); - } - for (int i = 0; i < excludeResourceRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, excludeResourceRules_.get(i)); - } - if (((bitField0_ & 0x00000004) == 0x00000004)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, matchPolicy_); + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, expression_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -4127,130 +3541,100 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.MatchResources)) { + if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.JSONPatch)) { return super.equals(obj); } - io.kubernetes.client.proto.V1Admissionregistration.MatchResources other = (io.kubernetes.client.proto.V1Admissionregistration.MatchResources) obj; + io.kubernetes.client.proto.V1Admissionregistration.JSONPatch other = (io.kubernetes.client.proto.V1Admissionregistration.JSONPatch) obj; boolean result = true; - result = result && (hasNamespaceSelector() == other.hasNamespaceSelector()); - if (hasNamespaceSelector()) { - result = result && getNamespaceSelector() - .equals(other.getNamespaceSelector()); + result = result && (hasExpression() == other.hasExpression()); + if (hasExpression()) { + result = result && getExpression() + .equals(other.getExpression()); } - result = result && (hasObjectSelector() == other.hasObjectSelector()); - if (hasObjectSelector()) { - result = result && getObjectSelector() - .equals(other.getObjectSelector()); - } - result = result && getResourceRulesList() - .equals(other.getResourceRulesList()); - result = result && getExcludeResourceRulesList() - .equals(other.getExcludeResourceRulesList()); - result = result && (hasMatchPolicy() == other.hasMatchPolicy()); - if (hasMatchPolicy()) { - result = result && getMatchPolicy() - .equals(other.getMatchPolicy()); - } - result = result && unknownFields.equals(other.unknownFields); - return result; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasNamespaceSelector()) { - hash = (37 * hash) + NAMESPACESELECTOR_FIELD_NUMBER; - hash = (53 * hash) + getNamespaceSelector().hashCode(); - } - if (hasObjectSelector()) { - hash = (37 * hash) + OBJECTSELECTOR_FIELD_NUMBER; - hash = (53 * hash) + getObjectSelector().hashCode(); - } - if (getResourceRulesCount() > 0) { - hash = (37 * hash) + RESOURCERULES_FIELD_NUMBER; - hash = (53 * hash) + getResourceRulesList().hashCode(); - } - if (getExcludeResourceRulesCount() > 0) { - hash = (37 * hash) + EXCLUDERESOURCERULES_FIELD_NUMBER; - hash = (53 * hash) + getExcludeResourceRulesList().hashCode(); - } - if (hasMatchPolicy()) { - hash = (37 * hash) + MATCHPOLICY_FIELD_NUMBER; - hash = (53 * hash) + getMatchPolicy().hashCode(); + if (hasExpression()) { + hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getExpression().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.JSONPatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.JSONPatch parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.JSONPatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.JSONPatch parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom(byte[] data) + public static io.kubernetes.client.proto.V1Admissionregistration.JSONPatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.JSONPatch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1Admissionregistration.JSONPatch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.JSONPatch parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseDelimitedFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1Admissionregistration.JSONPatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseDelimitedFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.JSONPatch parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.JSONPatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.JSONPatch parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -4263,7 +3647,7 @@ public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MatchResources prototype) { + public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.JSONPatch prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -4280,32 +3664,29 @@ protected Builder newBuilderForType( } /** *
-     * MatchResources decides whether to run the admission control policy on an object based
-     * on whether it meets the match criteria.
-     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-     * +structType=atomic
+     * JSONPatch defines a JSON Patch.
      * 
* - * Protobuf type {@code k8s.io.api.admissionregistration.v1.MatchResources} + * Protobuf type {@code k8s.io.api.admissionregistration.v1.JSONPatch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MatchResources) - io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder { + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.JSONPatch) + io.kubernetes.client.proto.V1Admissionregistration.JSONPatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchResources_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_JSONPatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchResources_fieldAccessorTable + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_JSONPatch_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1Admissionregistration.MatchResources.class, io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder.class); + io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.class, io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.Builder.class); } - // Construct using io.kubernetes.client.proto.V1Admissionregistration.MatchResources.newBuilder() + // Construct using io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -4318,58 +3699,30 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getNamespaceSelectorFieldBuilder(); - getObjectSelectorFieldBuilder(); - getResourceRulesFieldBuilder(); - getExcludeResourceRulesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - if (namespaceSelectorBuilder_ == null) { - namespaceSelector_ = null; - } else { - namespaceSelectorBuilder_.clear(); - } + expression_ = ""; bitField0_ = (bitField0_ & ~0x00000001); - if (objectSelectorBuilder_ == null) { - objectSelector_ = null; - } else { - objectSelectorBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (resourceRulesBuilder_ == null) { - resourceRules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - resourceRulesBuilder_.clear(); - } - if (excludeResourceRulesBuilder_ == null) { - excludeResourceRules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - excludeResourceRulesBuilder_.clear(); - } - matchPolicy_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchResources_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_JSONPatch_descriptor; } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MatchResources getDefaultInstanceForType() { - return io.kubernetes.client.proto.V1Admissionregistration.MatchResources.getDefaultInstance(); + public io.kubernetes.client.proto.V1Admissionregistration.JSONPatch getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.getDefaultInstance(); } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MatchResources build() { - io.kubernetes.client.proto.V1Admissionregistration.MatchResources result = buildPartial(); + public io.kubernetes.client.proto.V1Admissionregistration.JSONPatch build() { + io.kubernetes.client.proto.V1Admissionregistration.JSONPatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -4377,48 +3730,14 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchResources build() } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MatchResources buildPartial() { - io.kubernetes.client.proto.V1Admissionregistration.MatchResources result = new io.kubernetes.client.proto.V1Admissionregistration.MatchResources(this); + public io.kubernetes.client.proto.V1Admissionregistration.JSONPatch buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.JSONPatch result = new io.kubernetes.client.proto.V1Admissionregistration.JSONPatch(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } - if (namespaceSelectorBuilder_ == null) { - result.namespaceSelector_ = namespaceSelector_; - } else { - result.namespaceSelector_ = namespaceSelectorBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (objectSelectorBuilder_ == null) { - result.objectSelector_ = objectSelector_; - } else { - result.objectSelector_ = objectSelectorBuilder_.build(); - } - if (resourceRulesBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - resourceRules_ = java.util.Collections.unmodifiableList(resourceRules_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.resourceRules_ = resourceRules_; - } else { - result.resourceRules_ = resourceRulesBuilder_.build(); - } - if (excludeResourceRulesBuilder_ == null) { - if (((bitField0_ & 0x00000008) == 0x00000008)) { - excludeResourceRules_ = java.util.Collections.unmodifiableList(excludeResourceRules_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.excludeResourceRules_ = excludeResourceRules_; - } else { - result.excludeResourceRules_ = excludeResourceRulesBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000004; - } - result.matchPolicy_ = matchPolicy_; + result.expression_ = expression_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -4458,77 +3777,19 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MatchResources) { - return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MatchResources)other); + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.JSONPatch) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.JSONPatch)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MatchResources other) { - if (other == io.kubernetes.client.proto.V1Admissionregistration.MatchResources.getDefaultInstance()) return this; - if (other.hasNamespaceSelector()) { - mergeNamespaceSelector(other.getNamespaceSelector()); - } - if (other.hasObjectSelector()) { - mergeObjectSelector(other.getObjectSelector()); - } - if (resourceRulesBuilder_ == null) { - if (!other.resourceRules_.isEmpty()) { - if (resourceRules_.isEmpty()) { - resourceRules_ = other.resourceRules_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureResourceRulesIsMutable(); - resourceRules_.addAll(other.resourceRules_); - } - onChanged(); - } - } else { - if (!other.resourceRules_.isEmpty()) { - if (resourceRulesBuilder_.isEmpty()) { - resourceRulesBuilder_.dispose(); - resourceRulesBuilder_ = null; - resourceRules_ = other.resourceRules_; - bitField0_ = (bitField0_ & ~0x00000004); - resourceRulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getResourceRulesFieldBuilder() : null; - } else { - resourceRulesBuilder_.addAllMessages(other.resourceRules_); - } - } - } - if (excludeResourceRulesBuilder_ == null) { - if (!other.excludeResourceRules_.isEmpty()) { - if (excludeResourceRules_.isEmpty()) { - excludeResourceRules_ = other.excludeResourceRules_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureExcludeResourceRulesIsMutable(); - excludeResourceRules_.addAll(other.excludeResourceRules_); - } - onChanged(); - } - } else { - if (!other.excludeResourceRules_.isEmpty()) { - if (excludeResourceRulesBuilder_.isEmpty()) { - excludeResourceRulesBuilder_.dispose(); - excludeResourceRulesBuilder_ = null; - excludeResourceRules_ = other.excludeResourceRules_; - bitField0_ = (bitField0_ & ~0x00000008); - excludeResourceRulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExcludeResourceRulesFieldBuilder() : null; - } else { - excludeResourceRulesBuilder_.addAllMessages(other.excludeResourceRules_); - } - } - } - if (other.hasMatchPolicy()) { - bitField0_ |= 0x00000010; - matchPolicy_ = other.matchPolicy_; + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.JSONPatch other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.getDefaultInstance()) return this; + if (other.hasExpression()) { + bitField0_ |= 0x00000001; + expression_ = other.expression_; onChanged(); } this.mergeUnknownFields(other.unknownFields); @@ -4546,11 +3807,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.kubernetes.client.proto.V1Admissionregistration.MatchResources parsedMessage = null; + io.kubernetes.client.proto.V1Admissionregistration.JSONPatch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MatchResources) e.getUnfinishedMessage(); + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.JSONPatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -4561,238 +3822,3427 @@ public Builder mergeFrom( } private int bitField0_; - private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> namespaceSelectorBuilder_; + private java.lang.Object expression_ = ""; /** *
-       * NamespaceSelector decides whether to run the admission control policy on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the policy.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the policy on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
-       * +optional
+       * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).
+       * ref: https://github.com/google/cel-spec
+       * expression must return an array of JSONPatch values.
+       * For example, this CEL expression returns a JSON patch to conditionally modify a value:
+       * 	  [
+       * 	    JSONPatch{op: "test", path: "/spec/example", value: "Red"},
+       * 	    JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
+       * 	  ]
+       * To define an object for the patch value, use Object types. For example:
+       * 	  [
+       * 	    JSONPatch{
+       * 	      op: "add",
+       * 	      path: "/spec/selector",
+       * 	      value: Object.spec.selector{matchLabels: {"environment": "test"}}
+       * 	    }
+       * 	  ]
+       * To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
+       * 	  [
+       * 	    JSONPatch{
+       * 	      op: "add",
+       * 	      path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
+       * 	      value: "test"
+       * 	    },
+       * 	  ]
+       * CEL expressions have access to the types needed to create JSON patches and objects:
+       * - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
+       *   See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
+       *   integer, array, map or object.  If set, the 'path' and 'from' fields must be set to a
+       *   [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
+       *   function may be used to escape path keys containing '/' and '~'.
+       * - 'Object' - CEL type of the resource object.
+       * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+       * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+       * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+       * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * - 'oldObject' - The existing object. The value is null for CREATE requests.
+       * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+       * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+       * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+       * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+       *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+       * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)
+       * as well as:
+       * - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and  '/' are escaped as '~0' and `~1' respectively).
+       * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
+       * Required.
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + * optional string expression = 1; */ - public boolean hasNamespaceSelector() { + public boolean hasExpression() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-       * NamespaceSelector decides whether to run the admission control policy on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the policy.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the policy on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
-       * +optional
+       * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).
+       * ref: https://github.com/google/cel-spec
+       * expression must return an array of JSONPatch values.
+       * For example, this CEL expression returns a JSON patch to conditionally modify a value:
+       * 	  [
+       * 	    JSONPatch{op: "test", path: "/spec/example", value: "Red"},
+       * 	    JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
+       * 	  ]
+       * To define an object for the patch value, use Object types. For example:
+       * 	  [
+       * 	    JSONPatch{
+       * 	      op: "add",
+       * 	      path: "/spec/selector",
+       * 	      value: Object.spec.selector{matchLabels: {"environment": "test"}}
+       * 	    }
+       * 	  ]
+       * To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
+       * 	  [
+       * 	    JSONPatch{
+       * 	      op: "add",
+       * 	      path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
+       * 	      value: "test"
+       * 	    },
+       * 	  ]
+       * CEL expressions have access to the types needed to create JSON patches and objects:
+       * - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
+       *   See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
+       *   integer, array, map or object.  If set, the 'path' and 'from' fields must be set to a
+       *   [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
+       *   function may be used to escape path keys containing '/' and '~'.
+       * - 'Object' - CEL type of the resource object.
+       * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+       * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+       * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+       * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * - 'oldObject' - The existing object. The value is null for CREATE requests.
+       * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+       * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+       * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+       * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+       *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+       * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)
+       * as well as:
+       * - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and  '/' are escaped as '~0' and `~1' respectively).
+       * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
+       * Required.
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + * optional string expression = 1; */ - public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() { - if (namespaceSelectorBuilder_ == null) { - return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; + public java.lang.String getExpression() { + java.lang.Object ref = expression_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + expression_ = s; + } + return s; } else { - return namespaceSelectorBuilder_.getMessage(); + return (java.lang.String) ref; } } /** *
-       * NamespaceSelector decides whether to run the admission control policy on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the policy.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the policy on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
-       * +optional
+       * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).
+       * ref: https://github.com/google/cel-spec
+       * expression must return an array of JSONPatch values.
+       * For example, this CEL expression returns a JSON patch to conditionally modify a value:
+       * 	  [
+       * 	    JSONPatch{op: "test", path: "/spec/example", value: "Red"},
+       * 	    JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
+       * 	  ]
+       * To define an object for the patch value, use Object types. For example:
+       * 	  [
+       * 	    JSONPatch{
+       * 	      op: "add",
+       * 	      path: "/spec/selector",
+       * 	      value: Object.spec.selector{matchLabels: {"environment": "test"}}
+       * 	    }
+       * 	  ]
+       * To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
+       * 	  [
+       * 	    JSONPatch{
+       * 	      op: "add",
+       * 	      path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
+       * 	      value: "test"
+       * 	    },
+       * 	  ]
+       * CEL expressions have access to the types needed to create JSON patches and objects:
+       * - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
+       *   See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
+       *   integer, array, map or object.  If set, the 'path' and 'from' fields must be set to a
+       *   [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
+       *   function may be used to escape path keys containing '/' and '~'.
+       * - 'Object' - CEL type of the resource object.
+       * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+       * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+       * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+       * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * - 'oldObject' - The existing object. The value is null for CREATE requests.
+       * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+       * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+       * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+       * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+       *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+       * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)
+       * as well as:
+       * - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and  '/' are escaped as '~0' and `~1' respectively).
+       * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
+       * Required.
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + * optional string expression = 1; */ - public Builder setNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { - if (namespaceSelectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - namespaceSelector_ = value; - onChanged(); + public com.google.protobuf.ByteString + getExpressionBytes() { + java.lang.Object ref = expression_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + expression_ = b; + return b; } else { - namespaceSelectorBuilder_.setMessage(value); + return (com.google.protobuf.ByteString) ref; } - bitField0_ |= 0x00000001; + } + /** + *
+       * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).
+       * ref: https://github.com/google/cel-spec
+       * expression must return an array of JSONPatch values.
+       * For example, this CEL expression returns a JSON patch to conditionally modify a value:
+       * 	  [
+       * 	    JSONPatch{op: "test", path: "/spec/example", value: "Red"},
+       * 	    JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
+       * 	  ]
+       * To define an object for the patch value, use Object types. For example:
+       * 	  [
+       * 	    JSONPatch{
+       * 	      op: "add",
+       * 	      path: "/spec/selector",
+       * 	      value: Object.spec.selector{matchLabels: {"environment": "test"}}
+       * 	    }
+       * 	  ]
+       * To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
+       * 	  [
+       * 	    JSONPatch{
+       * 	      op: "add",
+       * 	      path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
+       * 	      value: "test"
+       * 	    },
+       * 	  ]
+       * CEL expressions have access to the types needed to create JSON patches and objects:
+       * - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
+       *   See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
+       *   integer, array, map or object.  If set, the 'path' and 'from' fields must be set to a
+       *   [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
+       *   function may be used to escape path keys containing '/' and '~'.
+       * - 'Object' - CEL type of the resource object.
+       * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+       * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+       * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+       * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * - 'oldObject' - The existing object. The value is null for CREATE requests.
+       * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+       * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+       * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+       * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+       *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+       * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)
+       * as well as:
+       * - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and  '/' are escaped as '~0' and `~1' respectively).
+       * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
+       * Required.
+       * 
+ * + * optional string expression = 1; + */ + public Builder setExpression( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + expression_ = value; + onChanged(); return this; } /** *
-       * NamespaceSelector decides whether to run the admission control policy on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the policy.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the policy on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
-       * +optional
+       * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).
+       * ref: https://github.com/google/cel-spec
+       * expression must return an array of JSONPatch values.
+       * For example, this CEL expression returns a JSON patch to conditionally modify a value:
+       * 	  [
+       * 	    JSONPatch{op: "test", path: "/spec/example", value: "Red"},
+       * 	    JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
+       * 	  ]
+       * To define an object for the patch value, use Object types. For example:
+       * 	  [
+       * 	    JSONPatch{
+       * 	      op: "add",
+       * 	      path: "/spec/selector",
+       * 	      value: Object.spec.selector{matchLabels: {"environment": "test"}}
+       * 	    }
+       * 	  ]
+       * To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
+       * 	  [
+       * 	    JSONPatch{
+       * 	      op: "add",
+       * 	      path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
+       * 	      value: "test"
+       * 	    },
+       * 	  ]
+       * CEL expressions have access to the types needed to create JSON patches and objects:
+       * - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
+       *   See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
+       *   integer, array, map or object.  If set, the 'path' and 'from' fields must be set to a
+       *   [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
+       *   function may be used to escape path keys containing '/' and '~'.
+       * - 'Object' - CEL type of the resource object.
+       * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+       * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+       * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+       * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * - 'oldObject' - The existing object. The value is null for CREATE requests.
+       * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+       * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+       * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+       * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+       *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+       * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)
+       * as well as:
+       * - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and  '/' are escaped as '~0' and `~1' respectively).
+       * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
+       * Required.
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + * optional string expression = 1; */ - public Builder setNamespaceSelector( - io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { - if (namespaceSelectorBuilder_ == null) { - namespaceSelector_ = builderForValue.build(); - onChanged(); - } else { - namespaceSelectorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; + public Builder clearExpression() { + bitField0_ = (bitField0_ & ~0x00000001); + expression_ = getDefaultInstance().getExpression(); + onChanged(); return this; } /** *
-       * NamespaceSelector decides whether to run the admission control policy on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the policy.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
+       * expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/).
+       * ref: https://github.com/google/cel-spec
+       * expression must return an array of JSONPatch values.
+       * For example, this CEL expression returns a JSON patch to conditionally modify a value:
+       * 	  [
+       * 	    JSONPatch{op: "test", path: "/spec/example", value: "Red"},
+       * 	    JSONPatch{op: "replace", path: "/spec/example", value: "Green"}
+       * 	  ]
+       * To define an object for the patch value, use Object types. For example:
+       * 	  [
+       * 	    JSONPatch{
+       * 	      op: "add",
+       * 	      path: "/spec/selector",
+       * 	      value: Object.spec.selector{matchLabels: {"environment": "test"}}
+       * 	    }
+       * 	  ]
+       * To use strings containing '/' and '~' as JSONPatch path keys, use "jsonpatch.escapeKey". For example:
+       * 	  [
+       * 	    JSONPatch{
+       * 	      op: "add",
+       * 	      path: "/metadata/labels/" + jsonpatch.escapeKey("example.com/environment"),
+       * 	      value: "test"
+       * 	    },
+       * 	  ]
+       * CEL expressions have access to the types needed to create JSON patches and objects:
+       * - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'.
+       *   See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string,
+       *   integer, array, map or object.  If set, the 'path' and 'from' fields must be set to a
+       *   [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL
+       *   function may be used to escape path keys containing '/' and '~'.
+       * - 'Object' - CEL type of the resource object.
+       * - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec')
+       * - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers')
+       * CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables:
+       * - 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * - 'oldObject' - The existing object. The value is null for CREATE requests.
+       * - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)).
+       * - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind.
+       * - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources.
+       * - 'variables' - Map of composited variables, from its name to its lazily evaluated value.
+       *   For example, a variable named 'foo' can be accessed as 'variables.foo'.
+       * - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries)
+       * as well as:
+       * - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and  '/' are escaped as '~0' and `~1' respectively).
+       * Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible.
+       * Required.
+       * 
+ * + * optional string expression = 1; + */ + public Builder setExpressionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + expression_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.JSONPatch) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.JSONPatch) + private static final io.kubernetes.client.proto.V1Admissionregistration.JSONPatch DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.JSONPatch(); + } + + public static io.kubernetes.client.proto.V1Admissionregistration.JSONPatch getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public JSONPatch parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new JSONPatch(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.JSONPatch getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MatchConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.MatchCondition) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * name is an identifier for this match condition, used for strategic merging of MatchConditions,
+     * as well as providing an identifier for logging purposes. A good name should be descriptive of
+     * the associated expression.
+     * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
+     * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
+     * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
+     * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + boolean hasName(); + /** + *
+     * name is an identifier for this match condition, used for strategic merging of MatchConditions,
+     * as well as providing an identifier for logging purposes. A good name should be descriptive of
+     * the associated expression.
+     * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
+     * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
+     * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
+     * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + java.lang.String getName(); + /** + *
+     * name is an identifier for this match condition, used for strategic merging of MatchConditions,
+     * as well as providing an identifier for logging purposes. A good name should be descriptive of
+     * the associated expression.
+     * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
+     * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
+     * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
+     * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
+     * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
+     * 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * 'oldObject' - The existing object. The value is null for CREATE requests.
+     * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
+     * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
+     * Required.
+     * 
+ * + * optional string expression = 2; + */ + boolean hasExpression(); + /** + *
+     * expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
+     * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
+     * 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * 'oldObject' - The existing object. The value is null for CREATE requests.
+     * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
+     * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
+     * Required.
+     * 
+ * + * optional string expression = 2; + */ + java.lang.String getExpression(); + /** + *
+     * expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
+     * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
+     * 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * 'oldObject' - The existing object. The value is null for CREATE requests.
+     * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
+     * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
+     * Required.
+     * 
+ * + * optional string expression = 2; + */ + com.google.protobuf.ByteString + getExpressionBytes(); + } + /** + *
+   * MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.
+   * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MatchCondition} + */ + public static final class MatchCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.MatchCondition) + MatchConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use MatchCondition.newBuilder() to construct. + private MatchCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MatchCondition() { + name_ = ""; + expression_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MatchCondition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + expression_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.class, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * name is an identifier for this match condition, used for strategic merging of MatchConditions,
+     * as well as providing an identifier for logging purposes. A good name should be descriptive of
+     * the associated expression.
+     * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
+     * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
+     * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
+     * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * name is an identifier for this match condition, used for strategic merging of MatchConditions,
+     * as well as providing an identifier for logging purposes. A good name should be descriptive of
+     * the associated expression.
+     * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
+     * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
+     * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
+     * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + *
+     * name is an identifier for this match condition, used for strategic merging of MatchConditions,
+     * as well as providing an identifier for logging purposes. A good name should be descriptive of
+     * the associated expression.
+     * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
+     * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
+     * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
+     * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPRESSION_FIELD_NUMBER = 2; + private volatile java.lang.Object expression_; + /** + *
+     * expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
+     * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
+     * 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * 'oldObject' - The existing object. The value is null for CREATE requests.
+     * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
+     * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
+     * Required.
+     * 
+ * + * optional string expression = 2; + */ + public boolean hasExpression() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
+     * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
+     * 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * 'oldObject' - The existing object. The value is null for CREATE requests.
+     * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
+     * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
+     * Required.
+     * 
+ * + * optional string expression = 2; + */ + public java.lang.String getExpression() { + java.lang.Object ref = expression_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + expression_ = s; + } + return s; + } + } + /** + *
+     * expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
+     * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
+     * 'object' - The object from the incoming request. The value is null for DELETE requests.
+     * 'oldObject' - The existing object. The value is null for CREATE requests.
+     * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
+     * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+     *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+     * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+     *   request resource.
+     * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
+     * Required.
+     * 
+ * + * optional string expression = 2; + */ + public com.google.protobuf.ByteString + getExpressionBytes() { + java.lang.Object ref = expression_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + expression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, expression_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, expression_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.MatchCondition)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition other = (io.kubernetes.client.proto.V1Admissionregistration.MatchCondition) obj; + + boolean result = true; + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && (hasExpression() == other.hasExpression()); + if (hasExpression()) { + result = result && getExpression() + .equals(other.getExpression()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasExpression()) { + hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MatchCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * MatchCondition represents a condition which must by fulfilled for a request to be sent to a webhook.
+     * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MatchCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MatchCondition) + io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.class, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + expression_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchCondition_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition build() { + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition result = new io.kubernetes.client.proto.V1Admissionregistration.MatchCondition(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.expression_ = expression_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MatchCondition) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MatchCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MatchCondition other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + if (other.hasExpression()) { + bitField0_ |= 0x00000002; + expression_ = other.expression_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MatchCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * name is an identifier for this match condition, used for strategic merging of MatchConditions,
+       * as well as providing an identifier for logging purposes. A good name should be descriptive of
+       * the associated expression.
+       * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
+       * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
+       * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
+       * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * name is an identifier for this match condition, used for strategic merging of MatchConditions,
+       * as well as providing an identifier for logging purposes. A good name should be descriptive of
+       * the associated expression.
+       * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
+       * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
+       * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
+       * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * name is an identifier for this match condition, used for strategic merging of MatchConditions,
+       * as well as providing an identifier for logging purposes. A good name should be descriptive of
+       * the associated expression.
+       * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
+       * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
+       * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
+       * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * name is an identifier for this match condition, used for strategic merging of MatchConditions,
+       * as well as providing an identifier for logging purposes. A good name should be descriptive of
+       * the associated expression.
+       * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
+       * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
+       * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
+       * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + *
+       * name is an identifier for this match condition, used for strategic merging of MatchConditions,
+       * as well as providing an identifier for logging purposes. A good name should be descriptive of
+       * the associated expression.
+       * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
+       * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
+       * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
+       * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * name is an identifier for this match condition, used for strategic merging of MatchConditions,
+       * as well as providing an identifier for logging purposes. A good name should be descriptive of
+       * the associated expression.
+       * Name must be a qualified name consisting of alphanumeric characters, '-', '_' or '.', and
+       * must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or
+       * '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]') with an
+       * optional DNS subdomain prefix and '/' (e.g. 'example.com/MyName')
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object expression_ = ""; + /** + *
+       * expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
+       * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
+       * 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * 'oldObject' - The existing object. The value is null for CREATE requests.
+       * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
+       * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
+       * Required.
+       * 
+ * + * optional string expression = 2; + */ + public boolean hasExpression() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
+       * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
+       * 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * 'oldObject' - The existing object. The value is null for CREATE requests.
+       * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
+       * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
+       * Required.
+       * 
+ * + * optional string expression = 2; + */ + public java.lang.String getExpression() { + java.lang.Object ref = expression_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + expression_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
+       * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
+       * 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * 'oldObject' - The existing object. The value is null for CREATE requests.
+       * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
+       * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
+       * Required.
+       * 
+ * + * optional string expression = 2; + */ + public com.google.protobuf.ByteString + getExpressionBytes() { + java.lang.Object ref = expression_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + expression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
+       * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
+       * 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * 'oldObject' - The existing object. The value is null for CREATE requests.
+       * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
+       * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
+       * Required.
+       * 
+ * + * optional string expression = 2; + */ + public Builder setExpression( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + expression_ = value; + onChanged(); + return this; + } + /** + *
+       * expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
+       * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
+       * 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * 'oldObject' - The existing object. The value is null for CREATE requests.
+       * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
+       * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
+       * Required.
+       * 
+ * + * optional string expression = 2; + */ + public Builder clearExpression() { + bitField0_ = (bitField0_ & ~0x00000002); + expression_ = getDefaultInstance().getExpression(); + onChanged(); + return this; + } + /** + *
+       * expression represents the expression which will be evaluated by CEL. Must evaluate to bool.
+       * CEL expressions have access to the contents of the AdmissionRequest and Authorizer, organized into CEL variables:
+       * 'object' - The object from the incoming request. The value is null for DELETE requests.
+       * 'oldObject' - The existing object. The value is null for CREATE requests.
+       * 'request' - Attributes of the admission request(/pkg/apis/admission/types.go#AdmissionRequest).
+       * 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request.
+       *   See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz
+       * 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the
+       *   request resource.
+       * Documentation on CEL: https://kubernetes.io/docs/reference/using-api/cel/
+       * Required.
+       * 
+ * + * optional string expression = 2; + */ + public Builder setExpressionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + expression_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MatchCondition) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MatchCondition) + private static final io.kubernetes.client.proto.V1Admissionregistration.MatchCondition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MatchCondition(); + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MatchCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MatchCondition(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MatchResourcesOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.MatchResources) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * namespaceSelector decides whether to run the admission control policy on an object based
+     * on whether the namespace for that object matches the selector. If the
+     * object itself is a namespace, the matching is performed on
+     * object.metadata.labels. If the object is another cluster scoped resource,
+     * it never skips the policy.
+     * For example, to run the webhook on any objects whose namespace is not
+     * associated with "runlevel" of "0" or "1";  you will set the selector as
+     * follows:
+     * "namespaceSelector": {
+     *   "matchExpressions": [
+     *     {
+     *       "key": "runlevel",
+     *       "operator": "NotIn",
+     *       "values": [
+     *         "0",
+     *         "1"
+     *       ]
+     *     }
+     *   ]
+     * }
+     * If instead you want to only run the policy on any objects whose
+     * namespace is associated with the "environment" of "prod" or "staging";
+     * you will set the selector as follows:
+     * "namespaceSelector": {
+     *   "matchExpressions": [
+     *     {
+     *       "key": "environment",
+     *       "operator": "In",
+     *       "values": [
+     *         "prod",
+     *         "staging"
+     *       ]
+     *     }
+     *   ]
+     * }
+     * See
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * for more examples of label selectors.
+     * Default to the empty LabelSelector, which matches everything.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + */ + boolean hasNamespaceSelector(); + /** + *
+     * namespaceSelector decides whether to run the admission control policy on an object based
+     * on whether the namespace for that object matches the selector. If the
+     * object itself is a namespace, the matching is performed on
+     * object.metadata.labels. If the object is another cluster scoped resource,
+     * it never skips the policy.
+     * For example, to run the webhook on any objects whose namespace is not
+     * associated with "runlevel" of "0" or "1";  you will set the selector as
+     * follows:
+     * "namespaceSelector": {
+     *   "matchExpressions": [
+     *     {
+     *       "key": "runlevel",
+     *       "operator": "NotIn",
+     *       "values": [
+     *         "0",
+     *         "1"
+     *       ]
+     *     }
+     *   ]
+     * }
+     * If instead you want to only run the policy on any objects whose
+     * namespace is associated with the "environment" of "prod" or "staging";
+     * you will set the selector as follows:
+     * "namespaceSelector": {
+     *   "matchExpressions": [
+     *     {
+     *       "key": "environment",
+     *       "operator": "In",
+     *       "values": [
+     *         "prod",
+     *         "staging"
+     *       ]
+     *     }
+     *   ]
+     * }
+     * See
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * for more examples of label selectors.
+     * Default to the empty LabelSelector, which matches everything.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + */ + io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector(); + /** + *
+     * namespaceSelector decides whether to run the admission control policy on an object based
+     * on whether the namespace for that object matches the selector. If the
+     * object itself is a namespace, the matching is performed on
+     * object.metadata.labels. If the object is another cluster scoped resource,
+     * it never skips the policy.
+     * For example, to run the webhook on any objects whose namespace is not
+     * associated with "runlevel" of "0" or "1";  you will set the selector as
+     * follows:
+     * "namespaceSelector": {
+     *   "matchExpressions": [
+     *     {
+     *       "key": "runlevel",
+     *       "operator": "NotIn",
+     *       "values": [
+     *         "0",
+     *         "1"
+     *       ]
+     *     }
+     *   ]
+     * }
+     * If instead you want to only run the policy on any objects whose
+     * namespace is associated with the "environment" of "prod" or "staging";
+     * you will set the selector as follows:
+     * "namespaceSelector": {
+     *   "matchExpressions": [
+     *     {
+     *       "key": "environment",
+     *       "operator": "In",
+     *       "values": [
+     *         "prod",
+     *         "staging"
+     *       ]
+     *     }
+     *   ]
+     * }
+     * See
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * for more examples of label selectors.
+     * Default to the empty LabelSelector, which matches everything.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + */ + io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder(); + + /** + *
+     * objectSelector decides whether to run the validation based on if the
+     * object has matching labels. objectSelector is evaluated against both
+     * the oldObject and newObject that would be sent to the cel validation, and
+     * is considered to match if either object matches the selector. A null
+     * object (oldObject in the case of create, or newObject in the case of
+     * delete) or an object that cannot have labels (like a
+     * DeploymentRollback or a PodProxyOptions object) is not considered to
+     * match.
+     * Use the object selector only if the webhook is opt-in, because end
+     * users may skip the admission webhook by setting the labels.
+     * Default to the empty LabelSelector, which matches everything.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + */ + boolean hasObjectSelector(); + /** + *
+     * objectSelector decides whether to run the validation based on if the
+     * object has matching labels. objectSelector is evaluated against both
+     * the oldObject and newObject that would be sent to the cel validation, and
+     * is considered to match if either object matches the selector. A null
+     * object (oldObject in the case of create, or newObject in the case of
+     * delete) or an object that cannot have labels (like a
+     * DeploymentRollback or a PodProxyOptions object) is not considered to
+     * match.
+     * Use the object selector only if the webhook is opt-in, because end
+     * users may skip the admission webhook by setting the labels.
+     * Default to the empty LabelSelector, which matches everything.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + */ + io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector(); + /** + *
+     * objectSelector decides whether to run the validation based on if the
+     * object has matching labels. objectSelector is evaluated against both
+     * the oldObject and newObject that would be sent to the cel validation, and
+     * is considered to match if either object matches the selector. A null
+     * object (oldObject in the case of create, or newObject in the case of
+     * delete) or an object that cannot have labels (like a
+     * DeploymentRollback or a PodProxyOptions object) is not considered to
+     * match.
+     * Use the object selector only if the webhook is opt-in, because end
+     * users may skip the admission webhook by setting the labels.
+     * Default to the empty LabelSelector, which matches everything.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + */ + io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorOrBuilder(); + + /** + *
+     * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+     * The policy cares about an operation if it matches _any_ Rule.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + java.util.List + getResourceRulesList(); + /** + *
+     * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+     * The policy cares about an operation if it matches _any_ Rule.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations getResourceRules(int index); + /** + *
+     * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+     * The policy cares about an operation if it matches _any_ Rule.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + int getResourceRulesCount(); + /** + *
+     * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+     * The policy cares about an operation if it matches _any_ Rule.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + java.util.List + getResourceRulesOrBuilderList(); + /** + *
+     * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+     * The policy cares about an operation if it matches _any_ Rule.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder getResourceRulesOrBuilder( + int index); + + /** + *
+     * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + java.util.List + getExcludeResourceRulesList(); + /** + *
+     * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations getExcludeResourceRules(int index); + /** + *
+     * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + int getExcludeResourceRulesCount(); + /** + *
+     * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + java.util.List + getExcludeResourceRulesOrBuilderList(); + /** + *
+     * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder getExcludeResourceRulesOrBuilder( + int index); + + /** + *
+     * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
+     * Allowed values are "Exact" or "Equivalent".
+     * - Exact: match a request only if it exactly matches a specified rule.
+     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
+     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
+     * Defaults to "Equivalent"
+     * +optional
+     * 
+ * + * optional string matchPolicy = 7; + */ + boolean hasMatchPolicy(); + /** + *
+     * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
+     * Allowed values are "Exact" or "Equivalent".
+     * - Exact: match a request only if it exactly matches a specified rule.
+     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
+     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
+     * Defaults to "Equivalent"
+     * +optional
+     * 
+ * + * optional string matchPolicy = 7; + */ + java.lang.String getMatchPolicy(); + /** + *
+     * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
+     * Allowed values are "Exact" or "Equivalent".
+     * - Exact: match a request only if it exactly matches a specified rule.
+     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
+     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
+     * Defaults to "Equivalent"
+     * +optional
+     * 
+ * + * optional string matchPolicy = 7; + */ + com.google.protobuf.ByteString + getMatchPolicyBytes(); + } + /** + *
+   * MatchResources decides whether to run the admission control policy on an object based
+   * on whether it meets the match criteria.
+   * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+   * +structType=atomic
+   * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MatchResources} + */ + public static final class MatchResources extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.MatchResources) + MatchResourcesOrBuilder { + private static final long serialVersionUID = 0L; + // Use MatchResources.newBuilder() to construct. + private MatchResources(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MatchResources() { + resourceRules_ = java.util.Collections.emptyList(); + excludeResourceRules_ = java.util.Collections.emptyList(); + matchPolicy_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MatchResources( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = namespaceSelector_.toBuilder(); + } + namespaceSelector_ = input.readMessage(io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(namespaceSelector_); + namespaceSelector_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.Meta.LabelSelector.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = objectSelector_.toBuilder(); + } + objectSelector_ = input.readMessage(io.kubernetes.client.proto.Meta.LabelSelector.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(objectSelector_); + objectSelector_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + resourceRules_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + resourceRules_.add( + input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.PARSER, extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + excludeResourceRules_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + excludeResourceRules_.add( + input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.PARSER, extensionRegistry)); + break; + } + case 58: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + matchPolicy_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + resourceRules_ = java.util.Collections.unmodifiableList(resourceRules_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + excludeResourceRules_ = java.util.Collections.unmodifiableList(excludeResourceRules_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchResources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchResources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MatchResources.class, io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder.class); + } + + private int bitField0_; + public static final int NAMESPACESELECTOR_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_; + /** + *
+     * namespaceSelector decides whether to run the admission control policy on an object based
+     * on whether the namespace for that object matches the selector. If the
+     * object itself is a namespace, the matching is performed on
+     * object.metadata.labels. If the object is another cluster scoped resource,
+     * it never skips the policy.
+     * For example, to run the webhook on any objects whose namespace is not
+     * associated with "runlevel" of "0" or "1";  you will set the selector as
+     * follows:
+     * "namespaceSelector": {
+     *   "matchExpressions": [
+     *     {
+     *       "key": "runlevel",
+     *       "operator": "NotIn",
+     *       "values": [
+     *         "0",
+     *         "1"
+     *       ]
+     *     }
+     *   ]
+     * }
+     * If instead you want to only run the policy on any objects whose
+     * namespace is associated with the "environment" of "prod" or "staging";
+     * you will set the selector as follows:
+     * "namespaceSelector": {
+     *   "matchExpressions": [
+     *     {
+     *       "key": "environment",
+     *       "operator": "In",
+     *       "values": [
+     *         "prod",
+     *         "staging"
+     *       ]
+     *     }
+     *   ]
+     * }
+     * See
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * for more examples of label selectors.
+     * Default to the empty LabelSelector, which matches everything.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + */ + public boolean hasNamespaceSelector() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * namespaceSelector decides whether to run the admission control policy on an object based
+     * on whether the namespace for that object matches the selector. If the
+     * object itself is a namespace, the matching is performed on
+     * object.metadata.labels. If the object is another cluster scoped resource,
+     * it never skips the policy.
+     * For example, to run the webhook on any objects whose namespace is not
+     * associated with "runlevel" of "0" or "1";  you will set the selector as
+     * follows:
+     * "namespaceSelector": {
+     *   "matchExpressions": [
+     *     {
+     *       "key": "runlevel",
+     *       "operator": "NotIn",
+     *       "values": [
+     *         "0",
+     *         "1"
+     *       ]
+     *     }
+     *   ]
+     * }
+     * If instead you want to only run the policy on any objects whose
+     * namespace is associated with the "environment" of "prod" or "staging";
+     * you will set the selector as follows:
+     * "namespaceSelector": {
+     *   "matchExpressions": [
+     *     {
+     *       "key": "environment",
+     *       "operator": "In",
+     *       "values": [
+     *         "prod",
+     *         "staging"
+     *       ]
+     *     }
+     *   ]
+     * }
+     * See
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * for more examples of label selectors.
+     * Default to the empty LabelSelector, which matches everything.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + */ + public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() { + return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; + } + /** + *
+     * namespaceSelector decides whether to run the admission control policy on an object based
+     * on whether the namespace for that object matches the selector. If the
+     * object itself is a namespace, the matching is performed on
+     * object.metadata.labels. If the object is another cluster scoped resource,
+     * it never skips the policy.
+     * For example, to run the webhook on any objects whose namespace is not
+     * associated with "runlevel" of "0" or "1";  you will set the selector as
+     * follows:
+     * "namespaceSelector": {
+     *   "matchExpressions": [
+     *     {
+     *       "key": "runlevel",
+     *       "operator": "NotIn",
+     *       "values": [
+     *         "0",
+     *         "1"
+     *       ]
+     *     }
+     *   ]
+     * }
+     * If instead you want to only run the policy on any objects whose
+     * namespace is associated with the "environment" of "prod" or "staging";
+     * you will set the selector as follows:
+     * "namespaceSelector": {
+     *   "matchExpressions": [
+     *     {
+     *       "key": "environment",
+     *       "operator": "In",
+     *       "values": [
+     *         "prod",
+     *         "staging"
+     *       ]
+     *     }
+     *   ]
+     * }
+     * See
+     * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+     * for more examples of label selectors.
+     * Default to the empty LabelSelector, which matches everything.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + */ + public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder() { + return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; + } + + public static final int OBJECTSELECTOR_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.Meta.LabelSelector objectSelector_; + /** + *
+     * objectSelector decides whether to run the validation based on if the
+     * object has matching labels. objectSelector is evaluated against both
+     * the oldObject and newObject that would be sent to the cel validation, and
+     * is considered to match if either object matches the selector. A null
+     * object (oldObject in the case of create, or newObject in the case of
+     * delete) or an object that cannot have labels (like a
+     * DeploymentRollback or a PodProxyOptions object) is not considered to
+     * match.
+     * Use the object selector only if the webhook is opt-in, because end
+     * users may skip the admission webhook by setting the labels.
+     * Default to the empty LabelSelector, which matches everything.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + */ + public boolean hasObjectSelector() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * objectSelector decides whether to run the validation based on if the
+     * object has matching labels. objectSelector is evaluated against both
+     * the oldObject and newObject that would be sent to the cel validation, and
+     * is considered to match if either object matches the selector. A null
+     * object (oldObject in the case of create, or newObject in the case of
+     * delete) or an object that cannot have labels (like a
+     * DeploymentRollback or a PodProxyOptions object) is not considered to
+     * match.
+     * Use the object selector only if the webhook is opt-in, because end
+     * users may skip the admission webhook by setting the labels.
+     * Default to the empty LabelSelector, which matches everything.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + */ + public io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector() { + return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; + } + /** + *
+     * objectSelector decides whether to run the validation based on if the
+     * object has matching labels. objectSelector is evaluated against both
+     * the oldObject and newObject that would be sent to the cel validation, and
+     * is considered to match if either object matches the selector. A null
+     * object (oldObject in the case of create, or newObject in the case of
+     * delete) or an object that cannot have labels (like a
+     * DeploymentRollback or a PodProxyOptions object) is not considered to
+     * match.
+     * Use the object selector only if the webhook is opt-in, because end
+     * users may skip the admission webhook by setting the labels.
+     * Default to the empty LabelSelector, which matches everything.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + */ + public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorOrBuilder() { + return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; + } + + public static final int RESOURCERULES_FIELD_NUMBER = 3; + private java.util.List resourceRules_; + /** + *
+     * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+     * The policy cares about an operation if it matches _any_ Rule.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public java.util.List getResourceRulesList() { + return resourceRules_; + } + /** + *
+     * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+     * The policy cares about an operation if it matches _any_ Rule.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public java.util.List + getResourceRulesOrBuilderList() { + return resourceRules_; + } + /** + *
+     * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+     * The policy cares about an operation if it matches _any_ Rule.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public int getResourceRulesCount() { + return resourceRules_.size(); + } + /** + *
+     * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+     * The policy cares about an operation if it matches _any_ Rule.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations getResourceRules(int index) { + return resourceRules_.get(index); + } + /** + *
+     * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+     * The policy cares about an operation if it matches _any_ Rule.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder getResourceRulesOrBuilder( + int index) { + return resourceRules_.get(index); + } + + public static final int EXCLUDERESOURCERULES_FIELD_NUMBER = 4; + private java.util.List excludeResourceRules_; + /** + *
+     * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public java.util.List getExcludeResourceRulesList() { + return excludeResourceRules_; + } + /** + *
+     * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public java.util.List + getExcludeResourceRulesOrBuilderList() { + return excludeResourceRules_; + } + /** + *
+     * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public int getExcludeResourceRulesCount() { + return excludeResourceRules_.size(); + } + /** + *
+     * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations getExcludeResourceRules(int index) { + return excludeResourceRules_.get(index); + } + /** + *
+     * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder getExcludeResourceRulesOrBuilder( + int index) { + return excludeResourceRules_.get(index); + } + + public static final int MATCHPOLICY_FIELD_NUMBER = 7; + private volatile java.lang.Object matchPolicy_; + /** + *
+     * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
+     * Allowed values are "Exact" or "Equivalent".
+     * - Exact: match a request only if it exactly matches a specified rule.
+     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
+     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
+     * Defaults to "Equivalent"
+     * +optional
+     * 
+ * + * optional string matchPolicy = 7; + */ + public boolean hasMatchPolicy() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
+     * Allowed values are "Exact" or "Equivalent".
+     * - Exact: match a request only if it exactly matches a specified rule.
+     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
+     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
+     * Defaults to "Equivalent"
+     * +optional
+     * 
+ * + * optional string matchPolicy = 7; + */ + public java.lang.String getMatchPolicy() { + java.lang.Object ref = matchPolicy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + matchPolicy_ = s; + } + return s; + } + } + /** + *
+     * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
+     * Allowed values are "Exact" or "Equivalent".
+     * - Exact: match a request only if it exactly matches a specified rule.
+     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+     * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+     * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
+     * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+     * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+     * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+     * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
+     * Defaults to "Equivalent"
+     * +optional
+     * 
+ * + * optional string matchPolicy = 7; + */ + public com.google.protobuf.ByteString + getMatchPolicyBytes() { + java.lang.Object ref = matchPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + matchPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getNamespaceSelector()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getObjectSelector()); + } + for (int i = 0; i < resourceRules_.size(); i++) { + output.writeMessage(3, resourceRules_.get(i)); + } + for (int i = 0; i < excludeResourceRules_.size(); i++) { + output.writeMessage(4, excludeResourceRules_.get(i)); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, matchPolicy_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getNamespaceSelector()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getObjectSelector()); + } + for (int i = 0; i < resourceRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, resourceRules_.get(i)); + } + for (int i = 0; i < excludeResourceRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, excludeResourceRules_.get(i)); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, matchPolicy_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.MatchResources)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Admissionregistration.MatchResources other = (io.kubernetes.client.proto.V1Admissionregistration.MatchResources) obj; + + boolean result = true; + result = result && (hasNamespaceSelector() == other.hasNamespaceSelector()); + if (hasNamespaceSelector()) { + result = result && getNamespaceSelector() + .equals(other.getNamespaceSelector()); + } + result = result && (hasObjectSelector() == other.hasObjectSelector()); + if (hasObjectSelector()) { + result = result && getObjectSelector() + .equals(other.getObjectSelector()); + } + result = result && getResourceRulesList() + .equals(other.getResourceRulesList()); + result = result && getExcludeResourceRulesList() + .equals(other.getExcludeResourceRulesList()); + result = result && (hasMatchPolicy() == other.hasMatchPolicy()); + if (hasMatchPolicy()) { + result = result && getMatchPolicy() + .equals(other.getMatchPolicy()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNamespaceSelector()) { + hash = (37 * hash) + NAMESPACESELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getNamespaceSelector().hashCode(); + } + if (hasObjectSelector()) { + hash = (37 * hash) + OBJECTSELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getObjectSelector().hashCode(); + } + if (getResourceRulesCount() > 0) { + hash = (37 * hash) + RESOURCERULES_FIELD_NUMBER; + hash = (53 * hash) + getResourceRulesList().hashCode(); + } + if (getExcludeResourceRulesCount() > 0) { + hash = (37 * hash) + EXCLUDERESOURCERULES_FIELD_NUMBER; + hash = (53 * hash) + getExcludeResourceRulesList().hashCode(); + } + if (hasMatchPolicy()) { + hash = (37 * hash) + MATCHPOLICY_FIELD_NUMBER; + hash = (53 * hash) + getMatchPolicy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MatchResources prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * MatchResources decides whether to run the admission control policy on an object based
+     * on whether it meets the match criteria.
+     * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+     * +structType=atomic
+     * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MatchResources} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MatchResources) + io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchResources_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchResources_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MatchResources.class, io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Admissionregistration.MatchResources.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNamespaceSelectorFieldBuilder(); + getObjectSelectorFieldBuilder(); + getResourceRulesFieldBuilder(); + getExcludeResourceRulesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (namespaceSelectorBuilder_ == null) { + namespaceSelector_ = null; + } else { + namespaceSelectorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (objectSelectorBuilder_ == null) { + objectSelector_ = null; + } else { + objectSelectorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (resourceRulesBuilder_ == null) { + resourceRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + resourceRulesBuilder_.clear(); + } + if (excludeResourceRulesBuilder_ == null) { + excludeResourceRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + excludeResourceRulesBuilder_.clear(); + } + matchPolicy_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MatchResources_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MatchResources getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.MatchResources.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MatchResources build() { + io.kubernetes.client.proto.V1Admissionregistration.MatchResources result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MatchResources buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.MatchResources result = new io.kubernetes.client.proto.V1Admissionregistration.MatchResources(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (namespaceSelectorBuilder_ == null) { + result.namespaceSelector_ = namespaceSelector_; + } else { + result.namespaceSelector_ = namespaceSelectorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (objectSelectorBuilder_ == null) { + result.objectSelector_ = objectSelector_; + } else { + result.objectSelector_ = objectSelectorBuilder_.build(); + } + if (resourceRulesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + resourceRules_ = java.util.Collections.unmodifiableList(resourceRules_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.resourceRules_ = resourceRules_; + } else { + result.resourceRules_ = resourceRulesBuilder_.build(); + } + if (excludeResourceRulesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + excludeResourceRules_ = java.util.Collections.unmodifiableList(excludeResourceRules_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.excludeResourceRules_ = excludeResourceRules_; + } else { + result.excludeResourceRules_ = excludeResourceRulesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000004; + } + result.matchPolicy_ = matchPolicy_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MatchResources) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MatchResources)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MatchResources other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.MatchResources.getDefaultInstance()) return this; + if (other.hasNamespaceSelector()) { + mergeNamespaceSelector(other.getNamespaceSelector()); + } + if (other.hasObjectSelector()) { + mergeObjectSelector(other.getObjectSelector()); + } + if (resourceRulesBuilder_ == null) { + if (!other.resourceRules_.isEmpty()) { + if (resourceRules_.isEmpty()) { + resourceRules_ = other.resourceRules_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureResourceRulesIsMutable(); + resourceRules_.addAll(other.resourceRules_); + } + onChanged(); + } + } else { + if (!other.resourceRules_.isEmpty()) { + if (resourceRulesBuilder_.isEmpty()) { + resourceRulesBuilder_.dispose(); + resourceRulesBuilder_ = null; + resourceRules_ = other.resourceRules_; + bitField0_ = (bitField0_ & ~0x00000004); + resourceRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourceRulesFieldBuilder() : null; + } else { + resourceRulesBuilder_.addAllMessages(other.resourceRules_); + } + } + } + if (excludeResourceRulesBuilder_ == null) { + if (!other.excludeResourceRules_.isEmpty()) { + if (excludeResourceRules_.isEmpty()) { + excludeResourceRules_ = other.excludeResourceRules_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureExcludeResourceRulesIsMutable(); + excludeResourceRules_.addAll(other.excludeResourceRules_); + } + onChanged(); + } + } else { + if (!other.excludeResourceRules_.isEmpty()) { + if (excludeResourceRulesBuilder_.isEmpty()) { + excludeResourceRulesBuilder_.dispose(); + excludeResourceRulesBuilder_ = null; + excludeResourceRules_ = other.excludeResourceRules_; + bitField0_ = (bitField0_ & ~0x00000008); + excludeResourceRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getExcludeResourceRulesFieldBuilder() : null; + } else { + excludeResourceRulesBuilder_.addAllMessages(other.excludeResourceRules_); + } + } + } + if (other.hasMatchPolicy()) { + bitField0_ |= 0x00000010; + matchPolicy_ = other.matchPolicy_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Admissionregistration.MatchResources parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MatchResources) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> namespaceSelectorBuilder_; + /** + *
+       * namespaceSelector decides whether to run the admission control policy on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the policy.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the policy on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + */ + public boolean hasNamespaceSelector() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * namespaceSelector decides whether to run the admission control policy on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the policy.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the policy on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + */ + public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() { + if (namespaceSelectorBuilder_ == null) { + return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; + } else { + return namespaceSelectorBuilder_.getMessage(); + } + } + /** + *
+       * namespaceSelector decides whether to run the admission control policy on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the policy.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the policy on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + */ + public Builder setNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { + if (namespaceSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + namespaceSelector_ = value; + onChanged(); + } else { + namespaceSelectorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * namespaceSelector decides whether to run the admission control policy on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the policy.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the policy on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + */ + public Builder setNamespaceSelector( + io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { + if (namespaceSelectorBuilder_ == null) { + namespaceSelector_ = builderForValue.build(); + onChanged(); + } else { + namespaceSelectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * namespaceSelector decides whether to run the admission control policy on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the policy.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the policy on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + */ + public Builder mergeNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { + if (namespaceSelectorBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + namespaceSelector_ != null && + namespaceSelector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { + namespaceSelector_ = + io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(namespaceSelector_).mergeFrom(value).buildPartial(); + } else { + namespaceSelector_ = value; + } + onChanged(); + } else { + namespaceSelectorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * namespaceSelector decides whether to run the admission control policy on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the policy.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the policy on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + */ + public Builder clearNamespaceSelector() { + if (namespaceSelectorBuilder_ == null) { + namespaceSelector_ = null; + onChanged(); + } else { + namespaceSelectorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * namespaceSelector decides whether to run the admission control policy on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the policy.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the policy on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + */ + public io.kubernetes.client.proto.Meta.LabelSelector.Builder getNamespaceSelectorBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getNamespaceSelectorFieldBuilder().getBuilder(); + } + /** + *
+       * namespaceSelector decides whether to run the admission control policy on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the policy.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the policy on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + */ + public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder() { + if (namespaceSelectorBuilder_ != null) { + return namespaceSelectorBuilder_.getMessageOrBuilder(); + } else { + return namespaceSelector_ == null ? + io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; + } + } + /** + *
+       * namespaceSelector decides whether to run the admission control policy on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the policy.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
        *   "matchExpressions": [
        *     {
        *       "key": "runlevel",
@@ -4826,1279 +7276,10734 @@ public Builder setNamespaceSelector(
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> + getNamespaceSelectorFieldBuilder() { + if (namespaceSelectorBuilder_ == null) { + namespaceSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( + getNamespaceSelector(), + getParentForChildren(), + isClean()); + namespaceSelector_ = null; + } + return namespaceSelectorBuilder_; + } + + private io.kubernetes.client.proto.Meta.LabelSelector objectSelector_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> objectSelectorBuilder_; + /** + *
+       * objectSelector decides whether to run the validation based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the cel validation, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + */ + public boolean hasObjectSelector() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * objectSelector decides whether to run the validation based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the cel validation, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + */ + public io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector() { + if (objectSelectorBuilder_ == null) { + return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; + } else { + return objectSelectorBuilder_.getMessage(); + } + } + /** + *
+       * objectSelector decides whether to run the validation based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the cel validation, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + */ + public Builder setObjectSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { + if (objectSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + objectSelector_ = value; + onChanged(); + } else { + objectSelectorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * objectSelector decides whether to run the validation based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the cel validation, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + */ + public Builder setObjectSelector( + io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { + if (objectSelectorBuilder_ == null) { + objectSelector_ = builderForValue.build(); + onChanged(); + } else { + objectSelectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * objectSelector decides whether to run the validation based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the cel validation, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + */ + public Builder mergeObjectSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { + if (objectSelectorBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + objectSelector_ != null && + objectSelector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { + objectSelector_ = + io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(objectSelector_).mergeFrom(value).buildPartial(); + } else { + objectSelector_ = value; + } + onChanged(); + } else { + objectSelectorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * objectSelector decides whether to run the validation based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the cel validation, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + */ + public Builder clearObjectSelector() { + if (objectSelectorBuilder_ == null) { + objectSelector_ = null; + onChanged(); + } else { + objectSelectorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * objectSelector decides whether to run the validation based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the cel validation, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + */ + public io.kubernetes.client.proto.Meta.LabelSelector.Builder getObjectSelectorBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getObjectSelectorFieldBuilder().getBuilder(); + } + /** + *
+       * objectSelector decides whether to run the validation based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the cel validation, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + */ + public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorOrBuilder() { + if (objectSelectorBuilder_ != null) { + return objectSelectorBuilder_.getMessageOrBuilder(); + } else { + return objectSelector_ == null ? + io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; + } + } + /** + *
+       * objectSelector decides whether to run the validation based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the cel validation, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> + getObjectSelectorFieldBuilder() { + if (objectSelectorBuilder_ == null) { + objectSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( + getObjectSelector(), + getParentForChildren(), + isClean()); + objectSelector_ = null; + } + return objectSelectorBuilder_; + } + + private java.util.List resourceRules_ = + java.util.Collections.emptyList(); + private void ensureResourceRulesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + resourceRules_ = new java.util.ArrayList(resourceRules_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder> resourceRulesBuilder_; + + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public java.util.List getResourceRulesList() { + if (resourceRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceRules_); + } else { + return resourceRulesBuilder_.getMessageList(); + } + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public int getResourceRulesCount() { + if (resourceRulesBuilder_ == null) { + return resourceRules_.size(); + } else { + return resourceRulesBuilder_.getCount(); + } + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations getResourceRules(int index) { + if (resourceRulesBuilder_ == null) { + return resourceRules_.get(index); + } else { + return resourceRulesBuilder_.getMessage(index); + } + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public Builder setResourceRules( + int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations value) { + if (resourceRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceRulesIsMutable(); + resourceRules_.set(index, value); + onChanged(); + } else { + resourceRulesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public Builder setResourceRules( + int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder builderForValue) { + if (resourceRulesBuilder_ == null) { + ensureResourceRulesIsMutable(); + resourceRules_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public Builder addResourceRules(io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations value) { + if (resourceRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceRulesIsMutable(); + resourceRules_.add(value); + onChanged(); + } else { + resourceRulesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public Builder addResourceRules( + int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations value) { + if (resourceRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceRulesIsMutable(); + resourceRules_.add(index, value); + onChanged(); + } else { + resourceRulesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public Builder addResourceRules( + io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder builderForValue) { + if (resourceRulesBuilder_ == null) { + ensureResourceRulesIsMutable(); + resourceRules_.add(builderForValue.build()); + onChanged(); + } else { + resourceRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public Builder addResourceRules( + int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder builderForValue) { + if (resourceRulesBuilder_ == null) { + ensureResourceRulesIsMutable(); + resourceRules_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public Builder addAllResourceRules( + java.lang.Iterable values) { + if (resourceRulesBuilder_ == null) { + ensureResourceRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceRules_); + onChanged(); + } else { + resourceRulesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public Builder clearResourceRules() { + if (resourceRulesBuilder_ == null) { + resourceRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + resourceRulesBuilder_.clear(); + } + return this; + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public Builder removeResourceRules(int index) { + if (resourceRulesBuilder_ == null) { + ensureResourceRulesIsMutable(); + resourceRules_.remove(index); + onChanged(); + } else { + resourceRulesBuilder_.remove(index); + } + return this; + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder getResourceRulesBuilder( + int index) { + return getResourceRulesFieldBuilder().getBuilder(index); + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder getResourceRulesOrBuilder( + int index) { + if (resourceRulesBuilder_ == null) { + return resourceRules_.get(index); } else { + return resourceRulesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public java.util.List + getResourceRulesOrBuilderList() { + if (resourceRulesBuilder_ != null) { + return resourceRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resourceRules_); + } + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder addResourceRulesBuilder() { + return getResourceRulesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.getDefaultInstance()); + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder addResourceRulesBuilder( + int index) { + return getResourceRulesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.getDefaultInstance()); + } + /** + *
+       * resourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
+       * The policy cares about an operation if it matches _any_ Rule.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + */ + public java.util.List + getResourceRulesBuilderList() { + return getResourceRulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder> + getResourceRulesFieldBuilder() { + if (resourceRulesBuilder_ == null) { + resourceRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder>( + resourceRules_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + resourceRules_ = null; + } + return resourceRulesBuilder_; + } + + private java.util.List excludeResourceRules_ = + java.util.Collections.emptyList(); + private void ensureExcludeResourceRulesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + excludeResourceRules_ = new java.util.ArrayList(excludeResourceRules_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder> excludeResourceRulesBuilder_; + + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public java.util.List getExcludeResourceRulesList() { + if (excludeResourceRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(excludeResourceRules_); + } else { + return excludeResourceRulesBuilder_.getMessageList(); + } + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public int getExcludeResourceRulesCount() { + if (excludeResourceRulesBuilder_ == null) { + return excludeResourceRules_.size(); + } else { + return excludeResourceRulesBuilder_.getCount(); + } + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations getExcludeResourceRules(int index) { + if (excludeResourceRulesBuilder_ == null) { + return excludeResourceRules_.get(index); + } else { + return excludeResourceRulesBuilder_.getMessage(index); + } + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public Builder setExcludeResourceRules( + int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations value) { + if (excludeResourceRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeResourceRulesIsMutable(); + excludeResourceRules_.set(index, value); + onChanged(); + } else { + excludeResourceRulesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public Builder setExcludeResourceRules( + int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder builderForValue) { + if (excludeResourceRulesBuilder_ == null) { + ensureExcludeResourceRulesIsMutable(); + excludeResourceRules_.set(index, builderForValue.build()); + onChanged(); + } else { + excludeResourceRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public Builder addExcludeResourceRules(io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations value) { + if (excludeResourceRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeResourceRulesIsMutable(); + excludeResourceRules_.add(value); + onChanged(); + } else { + excludeResourceRulesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public Builder addExcludeResourceRules( + int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations value) { + if (excludeResourceRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludeResourceRulesIsMutable(); + excludeResourceRules_.add(index, value); + onChanged(); + } else { + excludeResourceRulesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public Builder addExcludeResourceRules( + io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder builderForValue) { + if (excludeResourceRulesBuilder_ == null) { + ensureExcludeResourceRulesIsMutable(); + excludeResourceRules_.add(builderForValue.build()); + onChanged(); + } else { + excludeResourceRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public Builder addExcludeResourceRules( + int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder builderForValue) { + if (excludeResourceRulesBuilder_ == null) { + ensureExcludeResourceRulesIsMutable(); + excludeResourceRules_.add(index, builderForValue.build()); + onChanged(); + } else { + excludeResourceRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public Builder addAllExcludeResourceRules( + java.lang.Iterable values) { + if (excludeResourceRulesBuilder_ == null) { + ensureExcludeResourceRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, excludeResourceRules_); + onChanged(); + } else { + excludeResourceRulesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public Builder clearExcludeResourceRules() { + if (excludeResourceRulesBuilder_ == null) { + excludeResourceRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + excludeResourceRulesBuilder_.clear(); + } + return this; + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public Builder removeExcludeResourceRules(int index) { + if (excludeResourceRulesBuilder_ == null) { + ensureExcludeResourceRulesIsMutable(); + excludeResourceRules_.remove(index); + onChanged(); + } else { + excludeResourceRulesBuilder_.remove(index); + } + return this; + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder getExcludeResourceRulesBuilder( + int index) { + return getExcludeResourceRulesFieldBuilder().getBuilder(index); + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder getExcludeResourceRulesOrBuilder( + int index) { + if (excludeResourceRulesBuilder_ == null) { + return excludeResourceRules_.get(index); } else { + return excludeResourceRulesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public java.util.List + getExcludeResourceRulesOrBuilderList() { + if (excludeResourceRulesBuilder_ != null) { + return excludeResourceRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(excludeResourceRules_); + } + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder addExcludeResourceRulesBuilder() { + return getExcludeResourceRulesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.getDefaultInstance()); + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder addExcludeResourceRulesBuilder( + int index) { + return getExcludeResourceRulesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.getDefaultInstance()); + } + /** + *
+       * excludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
+       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + */ + public java.util.List + getExcludeResourceRulesBuilderList() { + return getExcludeResourceRulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder> + getExcludeResourceRulesFieldBuilder() { + if (excludeResourceRulesBuilder_ == null) { + excludeResourceRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder>( + excludeResourceRules_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + excludeResourceRules_ = null; + } + return excludeResourceRulesBuilder_; + } + + private java.lang.Object matchPolicy_ = ""; + /** + *
+       * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
+       * Allowed values are "Exact" or "Equivalent".
+       * - Exact: match a request only if it exactly matches a specified rule.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
+       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
+       * Defaults to "Equivalent"
+       * +optional
+       * 
+ * + * optional string matchPolicy = 7; + */ + public boolean hasMatchPolicy() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+       * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
+       * Allowed values are "Exact" or "Equivalent".
+       * - Exact: match a request only if it exactly matches a specified rule.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
+       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
+       * Defaults to "Equivalent"
+       * +optional
+       * 
+ * + * optional string matchPolicy = 7; + */ + public java.lang.String getMatchPolicy() { + java.lang.Object ref = matchPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + matchPolicy_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
+       * Allowed values are "Exact" or "Equivalent".
+       * - Exact: match a request only if it exactly matches a specified rule.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
+       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
+       * Defaults to "Equivalent"
+       * +optional
+       * 
+ * + * optional string matchPolicy = 7; + */ + public com.google.protobuf.ByteString + getMatchPolicyBytes() { + java.lang.Object ref = matchPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + matchPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
+       * Allowed values are "Exact" or "Equivalent".
+       * - Exact: match a request only if it exactly matches a specified rule.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
+       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
+       * Defaults to "Equivalent"
+       * +optional
+       * 
+ * + * optional string matchPolicy = 7; + */ + public Builder setMatchPolicy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + matchPolicy_ = value; + onChanged(); + return this; + } + /** + *
+       * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
+       * Allowed values are "Exact" or "Equivalent".
+       * - Exact: match a request only if it exactly matches a specified rule.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
+       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
+       * Defaults to "Equivalent"
+       * +optional
+       * 
+ * + * optional string matchPolicy = 7; + */ + public Builder clearMatchPolicy() { + bitField0_ = (bitField0_ & ~0x00000010); + matchPolicy_ = getDefaultInstance().getMatchPolicy(); + onChanged(); + return this; + } + /** + *
+       * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
+       * Allowed values are "Exact" or "Equivalent".
+       * - Exact: match a request only if it exactly matches a specified rule.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
+       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
+       * Defaults to "Equivalent"
+       * +optional
+       * 
+ * + * optional string matchPolicy = 7; + */ + public Builder setMatchPolicyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + matchPolicy_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MatchResources) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MatchResources) + private static final io.kubernetes.client.proto.V1Admissionregistration.MatchResources DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MatchResources(); + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MatchResources parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MatchResources(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MatchResources getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MutatingAdmissionPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * spec defines the desired behavior of the MutatingAdmissionPolicy.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * spec defines the desired behavior of the MutatingAdmissionPolicy.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec spec = 2; + */ + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec getSpec(); + /** + *
+     * spec defines the desired behavior of the MutatingAdmissionPolicy.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec spec = 2; + */ + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.
+   * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy} + */ + public static final class MutatingAdmissionPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy) + MutatingAdmissionPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use MutatingAdmissionPolicy.newBuilder() to construct. + private MutatingAdmissionPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutatingAdmissionPolicy() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutatingAdmissionPolicy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int SPEC_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec spec_; + /** + *
+     * spec defines the desired behavior of the MutatingAdmissionPolicy.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * spec defines the desired behavior of the MutatingAdmissionPolicy.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec spec = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec getSpec() { + return spec_ == null ? io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.getDefaultInstance() : spec_; + } + /** + *
+     * spec defines the desired behavior of the MutatingAdmissionPolicy.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec spec = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpecOrBuilder getSpecOrBuilder() { + return spec_ == null ? io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.getDefaultInstance() : spec_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getSpec()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy other = (io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * MutatingAdmissionPolicy describes the definition of an admission mutation policy that mutates the object coming into admission chain.
+     * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy) + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getSpecFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (specBuilder_ == null) { + spec_ = null; + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicy_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy build() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy result = new io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpecOrBuilder> specBuilder_; + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicy.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicy.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec spec = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicy.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec spec = 2; + */ + public Builder setSpec(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicy.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec spec = 2; + */ + public Builder setSpec( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicy.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec spec = 2; + */ + public Builder mergeSpec(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + spec_ != null && + spec_ != io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.getDefaultInstance()) { + spec_ = + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicy.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicy.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec spec = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicy.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec spec = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicy.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy) + private static final io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy(); + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutatingAdmissionPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutatingAdmissionPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MutatingAdmissionPolicyBindingOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec spec = 2; + */ + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec getSpec(); + /** + *
+     * spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec spec = 2; + */ + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources.
+   * MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators
+   * configure policies for clusters.
+   * For a given admission request, each binding will cause its policy to be
+   * evaluated N times, where N is 1 for policies/bindings that don't use
+   * params, otherwise N is the number of parameters selected by the binding.
+   * Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget).
+   * Adding/removing policies, bindings, or params can not affect whether a
+   * given (policy, binding, param) combination is within its own CEL budget.
+   * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding} + */ + public static final class MutatingAdmissionPolicyBinding extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding) + MutatingAdmissionPolicyBindingOrBuilder { + private static final long serialVersionUID = 0L; + // Use MutatingAdmissionPolicyBinding.newBuilder() to construct. + private MutatingAdmissionPolicyBinding(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutatingAdmissionPolicyBinding() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutatingAdmissionPolicyBinding( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int SPEC_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec spec_; + /** + *
+     * spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec getSpec() { + return spec_ == null ? io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.getDefaultInstance() : spec_; + } + /** + *
+     * spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpecOrBuilder getSpecOrBuilder() { + return spec_ == null ? io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.getDefaultInstance() : spec_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getSpec()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding other = (io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * MutatingAdmissionPolicyBinding binds the MutatingAdmissionPolicy with parametrized resources.
+     * MutatingAdmissionPolicyBinding and the optional parameter resource together define how cluster administrators
+     * configure policies for clusters.
+     * For a given admission request, each binding will cause its policy to be
+     * evaluated N times, where N is 1 for policies/bindings that don't use
+     * params, otherwise N is the number of parameters selected by the binding.
+     * Each evaluation is constrained by a [runtime cost budget](https://kubernetes.io/docs/reference/using-api/cel/#runtime-cost-budget).
+     * Adding/removing policies, bindings, or params can not affect whether a
+     * given (policy, binding, param) combination is within its own CEL budget.
+     * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding) + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getSpecFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (specBuilder_ == null) { + spec_ = null; + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBinding_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding build() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding result = new io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpecOrBuilder> specBuilder_; + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec spec = 2; + */ + public Builder setSpec(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec spec = 2; + */ + public Builder setSpec( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec spec = 2; + */ + public Builder mergeSpec(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + spec_ != null && + spec_ != io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.getDefaultInstance()) { + spec_ = + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * spec defines the desired behavior of the MutatingAdmissionPolicyBinding.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding) + private static final io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding(); + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutatingAdmissionPolicyBinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutatingAdmissionPolicyBinding(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MutatingAdmissionPolicyBindingListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * List of PolicyBinding.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * List of PolicyBinding.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding getItems(int index); + /** + *
+     * List of PolicyBinding.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + int getItemsCount(); + /** + *
+     * List of PolicyBinding.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * List of PolicyBinding.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.
+   * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingList} + */ + public static final class MutatingAdmissionPolicyBindingList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingList) + MutatingAdmissionPolicyBindingListOrBuilder { + private static final long serialVersionUID = 0L; + // Use MutatingAdmissionPolicyBindingList.newBuilder() to construct. + private MutatingAdmissionPolicyBindingList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutatingAdmissionPolicyBindingList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutatingAdmissionPolicyBindingList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * List of PolicyBinding.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * List of PolicyBinding.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * List of PolicyBinding.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * List of PolicyBinding.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding getItems(int index) { + return items_.get(index); + } + /** + *
+     * List of PolicyBinding.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList other = (io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * MutatingAdmissionPolicyBindingList is a list of MutatingAdmissionPolicyBinding.
+     * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingList) + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList build() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList result = new io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingOrBuilder> itemsBuilder_; + + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.getDefaultInstance()); + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.getDefaultInstance()); + } + /** + *
+       * List of PolicyBinding.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBinding items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBinding.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingList) + private static final io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList(); + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutatingAdmissionPolicyBindingList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutatingAdmissionPolicyBindingList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MutatingAdmissionPolicyBindingSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to.
+     * If the referenced resource does not exist, this binding is considered invalid and will be ignored
+     * Required.
+     * 
+ * + * optional string policyName = 1; + */ + boolean hasPolicyName(); + /** + *
+     * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to.
+     * If the referenced resource does not exist, this binding is considered invalid and will be ignored
+     * Required.
+     * 
+ * + * optional string policyName = 1; + */ + java.lang.String getPolicyName(); + /** + *
+     * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to.
+     * If the referenced resource does not exist, this binding is considered invalid and will be ignored
+     * Required.
+     * 
+ * + * optional string policyName = 1; + */ + com.google.protobuf.ByteString + getPolicyNameBytes(); + + /** + *
+     * paramRef specifies the parameter resource used to configure the admission control policy.
+     * It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy.
+     * If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied.
+     * If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamRef paramRef = 2; + */ + boolean hasParamRef(); + /** + *
+     * paramRef specifies the parameter resource used to configure the admission control policy.
+     * It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy.
+     * If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied.
+     * If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamRef paramRef = 2; + */ + io.kubernetes.client.proto.V1Admissionregistration.ParamRef getParamRef(); + /** + *
+     * paramRef specifies the parameter resource used to configure the admission control policy.
+     * It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy.
+     * If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied.
+     * If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamRef paramRef = 2; + */ + io.kubernetes.client.proto.V1Admissionregistration.ParamRefOrBuilder getParamRefOrBuilder(); + + /** + *
+     * matchResources limits what resources match this binding and may be mutated by it.
+     * Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and
+     * matchConditions before the resource may be mutated.
+     * When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints
+     * and matchConditions must match for the resource to be mutated.
+     * Additionally, matchResources.resourceRules are optional and do not constraint matching when unset.
+     * Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required.
+     * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+     * '*' matches CREATE, UPDATE and CONNECT.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchResources = 3; + */ + boolean hasMatchResources(); + /** + *
+     * matchResources limits what resources match this binding and may be mutated by it.
+     * Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and
+     * matchConditions before the resource may be mutated.
+     * When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints
+     * and matchConditions must match for the resource to be mutated.
+     * Additionally, matchResources.resourceRules are optional and do not constraint matching when unset.
+     * Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required.
+     * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+     * '*' matches CREATE, UPDATE and CONNECT.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchResources = 3; + */ + io.kubernetes.client.proto.V1Admissionregistration.MatchResources getMatchResources(); + /** + *
+     * matchResources limits what resources match this binding and may be mutated by it.
+     * Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and
+     * matchConditions before the resource may be mutated.
+     * When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints
+     * and matchConditions must match for the resource to be mutated.
+     * Additionally, matchResources.resourceRules are optional and do not constraint matching when unset.
+     * Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required.
+     * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+     * '*' matches CREATE, UPDATE and CONNECT.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchResources = 3; + */ + io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder getMatchResourcesOrBuilder(); + } + /** + *
+   * MutatingAdmissionPolicyBindingSpec defines the specification of the MutatingAdmissionPolicyBinding.
+   * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec} + */ + public static final class MutatingAdmissionPolicyBindingSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec) + MutatingAdmissionPolicyBindingSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use MutatingAdmissionPolicyBindingSpec.newBuilder() to construct. + private MutatingAdmissionPolicyBindingSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutatingAdmissionPolicyBindingSpec() { + policyName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutatingAdmissionPolicyBindingSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + policyName_ = bs; + break; + } + case 18: { + io.kubernetes.client.proto.V1Admissionregistration.ParamRef.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = paramRef_.toBuilder(); + } + paramRef_ = input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.ParamRef.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(paramRef_); + paramRef_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = matchResources_.toBuilder(); + } + matchResources_ = input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.MatchResources.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(matchResources_); + matchResources_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.Builder.class); + } + + private int bitField0_; + public static final int POLICYNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object policyName_; + /** + *
+     * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to.
+     * If the referenced resource does not exist, this binding is considered invalid and will be ignored
+     * Required.
+     * 
+ * + * optional string policyName = 1; + */ + public boolean hasPolicyName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to.
+     * If the referenced resource does not exist, this binding is considered invalid and will be ignored
+     * Required.
+     * 
+ * + * optional string policyName = 1; + */ + public java.lang.String getPolicyName() { + java.lang.Object ref = policyName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + policyName_ = s; + } + return s; + } + } + /** + *
+     * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to.
+     * If the referenced resource does not exist, this binding is considered invalid and will be ignored
+     * Required.
+     * 
+ * + * optional string policyName = 1; + */ + public com.google.protobuf.ByteString + getPolicyNameBytes() { + java.lang.Object ref = policyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMREF_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Admissionregistration.ParamRef paramRef_; + /** + *
+     * paramRef specifies the parameter resource used to configure the admission control policy.
+     * It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy.
+     * If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied.
+     * If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamRef paramRef = 2; + */ + public boolean hasParamRef() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * paramRef specifies the parameter resource used to configure the admission control policy.
+     * It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy.
+     * If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied.
+     * If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamRef paramRef = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.ParamRef getParamRef() { + return paramRef_ == null ? io.kubernetes.client.proto.V1Admissionregistration.ParamRef.getDefaultInstance() : paramRef_; + } + /** + *
+     * paramRef specifies the parameter resource used to configure the admission control policy.
+     * It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy.
+     * If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied.
+     * If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamRef paramRef = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.ParamRefOrBuilder getParamRefOrBuilder() { + return paramRef_ == null ? io.kubernetes.client.proto.V1Admissionregistration.ParamRef.getDefaultInstance() : paramRef_; + } + + public static final int MATCHRESOURCES_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.V1Admissionregistration.MatchResources matchResources_; + /** + *
+     * matchResources limits what resources match this binding and may be mutated by it.
+     * Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and
+     * matchConditions before the resource may be mutated.
+     * When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints
+     * and matchConditions must match for the resource to be mutated.
+     * Additionally, matchResources.resourceRules are optional and do not constraint matching when unset.
+     * Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required.
+     * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+     * '*' matches CREATE, UPDATE and CONNECT.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchResources = 3; + */ + public boolean hasMatchResources() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * matchResources limits what resources match this binding and may be mutated by it.
+     * Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and
+     * matchConditions before the resource may be mutated.
+     * When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints
+     * and matchConditions must match for the resource to be mutated.
+     * Additionally, matchResources.resourceRules are optional and do not constraint matching when unset.
+     * Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required.
+     * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+     * '*' matches CREATE, UPDATE and CONNECT.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchResources = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MatchResources getMatchResources() { + return matchResources_ == null ? io.kubernetes.client.proto.V1Admissionregistration.MatchResources.getDefaultInstance() : matchResources_; + } + /** + *
+     * matchResources limits what resources match this binding and may be mutated by it.
+     * Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and
+     * matchConditions before the resource may be mutated.
+     * When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints
+     * and matchConditions must match for the resource to be mutated.
+     * Additionally, matchResources.resourceRules are optional and do not constraint matching when unset.
+     * Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required.
+     * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+     * '*' matches CREATE, UPDATE and CONNECT.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchResources = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder getMatchResourcesOrBuilder() { + return matchResources_ == null ? io.kubernetes.client.proto.V1Admissionregistration.MatchResources.getDefaultInstance() : matchResources_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyName_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getParamRef()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getMatchResources()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyName_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getParamRef()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getMatchResources()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec other = (io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec) obj; + + boolean result = true; + result = result && (hasPolicyName() == other.hasPolicyName()); + if (hasPolicyName()) { + result = result && getPolicyName() + .equals(other.getPolicyName()); + } + result = result && (hasParamRef() == other.hasParamRef()); + if (hasParamRef()) { + result = result && getParamRef() + .equals(other.getParamRef()); + } + result = result && (hasMatchResources() == other.hasMatchResources()); + if (hasMatchResources()) { + result = result && getMatchResources() + .equals(other.getMatchResources()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPolicyName()) { + hash = (37 * hash) + POLICYNAME_FIELD_NUMBER; + hash = (53 * hash) + getPolicyName().hashCode(); + } + if (hasParamRef()) { + hash = (37 * hash) + PARAMREF_FIELD_NUMBER; + hash = (53 * hash) + getParamRef().hashCode(); + } + if (hasMatchResources()) { + hash = (37 * hash) + MATCHRESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getMatchResources().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * MutatingAdmissionPolicyBindingSpec defines the specification of the MutatingAdmissionPolicyBinding.
+     * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec) + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getParamRefFieldBuilder(); + getMatchResourcesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + policyName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (paramRefBuilder_ == null) { + paramRef_ = null; + } else { + paramRefBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (matchResourcesBuilder_ == null) { + matchResources_ = null; + } else { + matchResourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingSpec_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec build() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec result = new io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.policyName_ = policyName_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (paramRefBuilder_ == null) { + result.paramRef_ = paramRef_; + } else { + result.paramRef_ = paramRefBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (matchResourcesBuilder_ == null) { + result.matchResources_ = matchResources_; + } else { + result.matchResources_ = matchResourcesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec.getDefaultInstance()) return this; + if (other.hasPolicyName()) { + bitField0_ |= 0x00000001; + policyName_ = other.policyName_; + onChanged(); + } + if (other.hasParamRef()) { + mergeParamRef(other.getParamRef()); + } + if (other.hasMatchResources()) { + mergeMatchResources(other.getMatchResources()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object policyName_ = ""; + /** + *
+       * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to.
+       * If the referenced resource does not exist, this binding is considered invalid and will be ignored
+       * Required.
+       * 
+ * + * optional string policyName = 1; + */ + public boolean hasPolicyName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to.
+       * If the referenced resource does not exist, this binding is considered invalid and will be ignored
+       * Required.
+       * 
+ * + * optional string policyName = 1; + */ + public java.lang.String getPolicyName() { + java.lang.Object ref = policyName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + policyName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to.
+       * If the referenced resource does not exist, this binding is considered invalid and will be ignored
+       * Required.
+       * 
+ * + * optional string policyName = 1; + */ + public com.google.protobuf.ByteString + getPolicyNameBytes() { + java.lang.Object ref = policyName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to.
+       * If the referenced resource does not exist, this binding is considered invalid and will be ignored
+       * Required.
+       * 
+ * + * optional string policyName = 1; + */ + public Builder setPolicyName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + policyName_ = value; + onChanged(); + return this; + } + /** + *
+       * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to.
+       * If the referenced resource does not exist, this binding is considered invalid and will be ignored
+       * Required.
+       * 
+ * + * optional string policyName = 1; + */ + public Builder clearPolicyName() { + bitField0_ = (bitField0_ & ~0x00000001); + policyName_ = getDefaultInstance().getPolicyName(); + onChanged(); + return this; + } + /** + *
+       * policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to.
+       * If the referenced resource does not exist, this binding is considered invalid and will be ignored
+       * Required.
+       * 
+ * + * optional string policyName = 1; + */ + public Builder setPolicyNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + policyName_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1Admissionregistration.ParamRef paramRef_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.ParamRef, io.kubernetes.client.proto.V1Admissionregistration.ParamRef.Builder, io.kubernetes.client.proto.V1Admissionregistration.ParamRefOrBuilder> paramRefBuilder_; + /** + *
+       * paramRef specifies the parameter resource used to configure the admission control policy.
+       * It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy.
+       * If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied.
+       * If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamRef paramRef = 2; + */ + public boolean hasParamRef() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * paramRef specifies the parameter resource used to configure the admission control policy.
+       * It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy.
+       * If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied.
+       * If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamRef paramRef = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.ParamRef getParamRef() { + if (paramRefBuilder_ == null) { + return paramRef_ == null ? io.kubernetes.client.proto.V1Admissionregistration.ParamRef.getDefaultInstance() : paramRef_; + } else { + return paramRefBuilder_.getMessage(); + } + } + /** + *
+       * paramRef specifies the parameter resource used to configure the admission control policy.
+       * It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy.
+       * If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied.
+       * If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamRef paramRef = 2; + */ + public Builder setParamRef(io.kubernetes.client.proto.V1Admissionregistration.ParamRef value) { + if (paramRefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + paramRef_ = value; + onChanged(); + } else { + paramRefBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * paramRef specifies the parameter resource used to configure the admission control policy.
+       * It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy.
+       * If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied.
+       * If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamRef paramRef = 2; + */ + public Builder setParamRef( + io.kubernetes.client.proto.V1Admissionregistration.ParamRef.Builder builderForValue) { + if (paramRefBuilder_ == null) { + paramRef_ = builderForValue.build(); + onChanged(); + } else { + paramRefBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * paramRef specifies the parameter resource used to configure the admission control policy.
+       * It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy.
+       * If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied.
+       * If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamRef paramRef = 2; + */ + public Builder mergeParamRef(io.kubernetes.client.proto.V1Admissionregistration.ParamRef value) { + if (paramRefBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + paramRef_ != null && + paramRef_ != io.kubernetes.client.proto.V1Admissionregistration.ParamRef.getDefaultInstance()) { + paramRef_ = + io.kubernetes.client.proto.V1Admissionregistration.ParamRef.newBuilder(paramRef_).mergeFrom(value).buildPartial(); + } else { + paramRef_ = value; + } + onChanged(); + } else { + paramRefBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * paramRef specifies the parameter resource used to configure the admission control policy.
+       * It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy.
+       * If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied.
+       * If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamRef paramRef = 2; + */ + public Builder clearParamRef() { + if (paramRefBuilder_ == null) { + paramRef_ = null; + onChanged(); + } else { + paramRefBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * paramRef specifies the parameter resource used to configure the admission control policy.
+       * It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy.
+       * If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied.
+       * If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamRef paramRef = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.ParamRef.Builder getParamRefBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getParamRefFieldBuilder().getBuilder(); + } + /** + *
+       * paramRef specifies the parameter resource used to configure the admission control policy.
+       * It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy.
+       * If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied.
+       * If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamRef paramRef = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.ParamRefOrBuilder getParamRefOrBuilder() { + if (paramRefBuilder_ != null) { + return paramRefBuilder_.getMessageOrBuilder(); + } else { + return paramRef_ == null ? + io.kubernetes.client.proto.V1Admissionregistration.ParamRef.getDefaultInstance() : paramRef_; + } + } + /** + *
+       * paramRef specifies the parameter resource used to configure the admission control policy.
+       * It should point to a resource of the type specified in spec.ParamKind of the bound MutatingAdmissionPolicy.
+       * If the policy specifies a ParamKind and the resource referred to by ParamRef does not exist, this binding is considered mis-configured and the FailurePolicy of the MutatingAdmissionPolicy applied.
+       * If the policy does not specify a ParamKind then this field is ignored, and the rules are evaluated without a param.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamRef paramRef = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.ParamRef, io.kubernetes.client.proto.V1Admissionregistration.ParamRef.Builder, io.kubernetes.client.proto.V1Admissionregistration.ParamRefOrBuilder> + getParamRefFieldBuilder() { + if (paramRefBuilder_ == null) { + paramRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.ParamRef, io.kubernetes.client.proto.V1Admissionregistration.ParamRef.Builder, io.kubernetes.client.proto.V1Admissionregistration.ParamRefOrBuilder>( + getParamRef(), + getParentForChildren(), + isClean()); + paramRef_ = null; + } + return paramRefBuilder_; + } + + private io.kubernetes.client.proto.V1Admissionregistration.MatchResources matchResources_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MatchResources, io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder> matchResourcesBuilder_; + /** + *
+       * matchResources limits what resources match this binding and may be mutated by it.
+       * Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and
+       * matchConditions before the resource may be mutated.
+       * When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints
+       * and matchConditions must match for the resource to be mutated.
+       * Additionally, matchResources.resourceRules are optional and do not constraint matching when unset.
+       * Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchResources = 3; + */ + public boolean hasMatchResources() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * matchResources limits what resources match this binding and may be mutated by it.
+       * Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and
+       * matchConditions before the resource may be mutated.
+       * When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints
+       * and matchConditions must match for the resource to be mutated.
+       * Additionally, matchResources.resourceRules are optional and do not constraint matching when unset.
+       * Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchResources = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MatchResources getMatchResources() { + if (matchResourcesBuilder_ == null) { + return matchResources_ == null ? io.kubernetes.client.proto.V1Admissionregistration.MatchResources.getDefaultInstance() : matchResources_; + } else { + return matchResourcesBuilder_.getMessage(); + } + } + /** + *
+       * matchResources limits what resources match this binding and may be mutated by it.
+       * Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and
+       * matchConditions before the resource may be mutated.
+       * When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints
+       * and matchConditions must match for the resource to be mutated.
+       * Additionally, matchResources.resourceRules are optional and do not constraint matching when unset.
+       * Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchResources = 3; + */ + public Builder setMatchResources(io.kubernetes.client.proto.V1Admissionregistration.MatchResources value) { + if (matchResourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + matchResources_ = value; + onChanged(); + } else { + matchResourcesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * matchResources limits what resources match this binding and may be mutated by it.
+       * Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and
+       * matchConditions before the resource may be mutated.
+       * When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints
+       * and matchConditions must match for the resource to be mutated.
+       * Additionally, matchResources.resourceRules are optional and do not constraint matching when unset.
+       * Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchResources = 3; + */ + public Builder setMatchResources( + io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder builderForValue) { + if (matchResourcesBuilder_ == null) { + matchResources_ = builderForValue.build(); + onChanged(); + } else { + matchResourcesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * matchResources limits what resources match this binding and may be mutated by it.
+       * Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and
+       * matchConditions before the resource may be mutated.
+       * When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints
+       * and matchConditions must match for the resource to be mutated.
+       * Additionally, matchResources.resourceRules are optional and do not constraint matching when unset.
+       * Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchResources = 3; + */ + public Builder mergeMatchResources(io.kubernetes.client.proto.V1Admissionregistration.MatchResources value) { + if (matchResourcesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + matchResources_ != null && + matchResources_ != io.kubernetes.client.proto.V1Admissionregistration.MatchResources.getDefaultInstance()) { + matchResources_ = + io.kubernetes.client.proto.V1Admissionregistration.MatchResources.newBuilder(matchResources_).mergeFrom(value).buildPartial(); + } else { + matchResources_ = value; + } + onChanged(); + } else { + matchResourcesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * matchResources limits what resources match this binding and may be mutated by it.
+       * Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and
+       * matchConditions before the resource may be mutated.
+       * When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints
+       * and matchConditions must match for the resource to be mutated.
+       * Additionally, matchResources.resourceRules are optional and do not constraint matching when unset.
+       * Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchResources = 3; + */ + public Builder clearMatchResources() { + if (matchResourcesBuilder_ == null) { + matchResources_ = null; + onChanged(); + } else { + matchResourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * matchResources limits what resources match this binding and may be mutated by it.
+       * Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and
+       * matchConditions before the resource may be mutated.
+       * When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints
+       * and matchConditions must match for the resource to be mutated.
+       * Additionally, matchResources.resourceRules are optional and do not constraint matching when unset.
+       * Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchResources = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder getMatchResourcesBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getMatchResourcesFieldBuilder().getBuilder(); + } + /** + *
+       * matchResources limits what resources match this binding and may be mutated by it.
+       * Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and
+       * matchConditions before the resource may be mutated.
+       * When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints
+       * and matchConditions must match for the resource to be mutated.
+       * Additionally, matchResources.resourceRules are optional and do not constraint matching when unset.
+       * Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchResources = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder getMatchResourcesOrBuilder() { + if (matchResourcesBuilder_ != null) { + return matchResourcesBuilder_.getMessageOrBuilder(); + } else { + return matchResources_ == null ? + io.kubernetes.client.proto.V1Admissionregistration.MatchResources.getDefaultInstance() : matchResources_; + } + } + /** + *
+       * matchResources limits what resources match this binding and may be mutated by it.
+       * Note that if matchResources matches a resource, the resource must also match a policy's matchConstraints and
+       * matchConditions before the resource may be mutated.
+       * When matchResources is unset, it does not constrain resource matching, and only the policy's matchConstraints
+       * and matchConditions must match for the resource to be mutated.
+       * Additionally, matchResources.resourceRules are optional and do not constraint matching when unset.
+       * Note that this is differs from MutatingAdmissionPolicy matchConstraints, where resourceRules are required.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchResources = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MatchResources, io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder> + getMatchResourcesFieldBuilder() { + if (matchResourcesBuilder_ == null) { + matchResourcesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MatchResources, io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder>( + getMatchResources(), + getParentForChildren(), + isClean()); + matchResources_ = null; + } + return matchResourcesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyBindingSpec) + private static final io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec(); + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutatingAdmissionPolicyBindingSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutatingAdmissionPolicyBindingSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyBindingSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MutatingAdmissionPolicyListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * List of ValidatingAdmissionPolicy.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * List of ValidatingAdmissionPolicy.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy getItems(int index); + /** + *
+     * List of ValidatingAdmissionPolicy.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + int getItemsCount(); + /** + *
+     * List of ValidatingAdmissionPolicy.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * List of ValidatingAdmissionPolicy.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.
+   * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyList} + */ + public static final class MutatingAdmissionPolicyList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyList) + MutatingAdmissionPolicyListOrBuilder { + private static final long serialVersionUID = 0L; + // Use MutatingAdmissionPolicyList.newBuilder() to construct. + private MutatingAdmissionPolicyList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutatingAdmissionPolicyList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutatingAdmissionPolicyList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * List of ValidatingAdmissionPolicy.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * List of ValidatingAdmissionPolicy.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * List of ValidatingAdmissionPolicy.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * List of ValidatingAdmissionPolicy.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy getItems(int index) { + return items_.get(index); + } + /** + *
+     * List of ValidatingAdmissionPolicy.
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList other = (io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * MutatingAdmissionPolicyList is a list of MutatingAdmissionPolicy.
+     * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyList) + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList build() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList result = new io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyOrBuilder> itemsBuilder_; + + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.getDefaultInstance()); + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.getDefaultInstance()); + } + /** + *
+       * List of ValidatingAdmissionPolicy.
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicy items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicy.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicyList) + private static final io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList(); + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutatingAdmissionPolicyList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutatingAdmissionPolicyList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicyList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MutatingAdmissionPolicySpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * paramKind specifies the kind of resources used to parameterize this policy.
+     * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
+     * If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
+     * If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamKind paramKind = 1; + */ + boolean hasParamKind(); + /** + *
+     * paramKind specifies the kind of resources used to parameterize this policy.
+     * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
+     * If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
+     * If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamKind paramKind = 1; + */ + io.kubernetes.client.proto.V1Admissionregistration.ParamKind getParamKind(); + /** + *
+     * paramKind specifies the kind of resources used to parameterize this policy.
+     * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
+     * If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
+     * If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamKind paramKind = 1; + */ + io.kubernetes.client.proto.V1Admissionregistration.ParamKindOrBuilder getParamKindOrBuilder(); + + /** + *
+     * matchConstraints specifies what resources this policy is designed to validate.
+     * The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints.
+     * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
+     * MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.
+     * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+     * '*' matches CREATE, UPDATE and CONNECT.
+     * Required.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchConstraints = 2; + */ + boolean hasMatchConstraints(); + /** + *
+     * matchConstraints specifies what resources this policy is designed to validate.
+     * The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints.
+     * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
+     * MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.
+     * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+     * '*' matches CREATE, UPDATE and CONNECT.
+     * Required.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchConstraints = 2; + */ + io.kubernetes.client.proto.V1Admissionregistration.MatchResources getMatchConstraints(); + /** + *
+     * matchConstraints specifies what resources this policy is designed to validate.
+     * The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints.
+     * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
+     * MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.
+     * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+     * '*' matches CREATE, UPDATE and CONNECT.
+     * Required.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchConstraints = 2; + */ + io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder getMatchConstraintsOrBuilder(); + + /** + *
+     * variables contain definitions of variables that can be used in composition of other expressions.
+     * Each variable is defined as a named CEL expression.
+     * The variables defined here will be available under `variables` in other expressions of the policy
+     * except matchConditions because matchConditions are evaluated before the rest of the policy.
+     * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+     * Thus, variables must be sorted by the order of first appearance and acyclic.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; + */ + java.util.List + getVariablesList(); + /** + *
+     * variables contain definitions of variables that can be used in composition of other expressions.
+     * Each variable is defined as a named CEL expression.
+     * The variables defined here will be available under `variables` in other expressions of the policy
+     * except matchConditions because matchConditions are evaluated before the rest of the policy.
+     * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+     * Thus, variables must be sorted by the order of first appearance and acyclic.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; + */ + io.kubernetes.client.proto.V1Admissionregistration.Variable getVariables(int index); + /** + *
+     * variables contain definitions of variables that can be used in composition of other expressions.
+     * Each variable is defined as a named CEL expression.
+     * The variables defined here will be available under `variables` in other expressions of the policy
+     * except matchConditions because matchConditions are evaluated before the rest of the policy.
+     * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+     * Thus, variables must be sorted by the order of first appearance and acyclic.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; + */ + int getVariablesCount(); + /** + *
+     * variables contain definitions of variables that can be used in composition of other expressions.
+     * Each variable is defined as a named CEL expression.
+     * The variables defined here will be available under `variables` in other expressions of the policy
+     * except matchConditions because matchConditions are evaluated before the rest of the policy.
+     * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+     * Thus, variables must be sorted by the order of first appearance and acyclic.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; + */ + java.util.List + getVariablesOrBuilderList(); + /** + *
+     * variables contain definitions of variables that can be used in composition of other expressions.
+     * Each variable is defined as a named CEL expression.
+     * The variables defined here will be available under `variables` in other expressions of the policy
+     * except matchConditions because matchConditions are evaluated before the rest of the policy.
+     * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+     * Thus, variables must be sorted by the order of first appearance and acyclic.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; + */ + io.kubernetes.client.proto.V1Admissionregistration.VariableOrBuilder getVariablesOrBuilder( + int index); + + /** + *
+     * mutations contain operations to perform on matching objects.
+     * mutations may not be empty; a minimum of one mutation is required.
+     * mutations are evaluated in order, and are reinvoked according to
+     * the reinvocationPolicy.
+     * The mutations of a policy are invoked for each binding of this policy
+     * and reinvocation of mutations occurs on a per binding basis.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; + */ + java.util.List + getMutationsList(); + /** + *
+     * mutations contain operations to perform on matching objects.
+     * mutations may not be empty; a minimum of one mutation is required.
+     * mutations are evaluated in order, and are reinvoked according to
+     * the reinvocationPolicy.
+     * The mutations of a policy are invoked for each binding of this policy
+     * and reinvocation of mutations occurs on a per binding basis.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; + */ + io.kubernetes.client.proto.V1Admissionregistration.Mutation getMutations(int index); + /** + *
+     * mutations contain operations to perform on matching objects.
+     * mutations may not be empty; a minimum of one mutation is required.
+     * mutations are evaluated in order, and are reinvoked according to
+     * the reinvocationPolicy.
+     * The mutations of a policy are invoked for each binding of this policy
+     * and reinvocation of mutations occurs on a per binding basis.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; + */ + int getMutationsCount(); + /** + *
+     * mutations contain operations to perform on matching objects.
+     * mutations may not be empty; a minimum of one mutation is required.
+     * mutations are evaluated in order, and are reinvoked according to
+     * the reinvocationPolicy.
+     * The mutations of a policy are invoked for each binding of this policy
+     * and reinvocation of mutations occurs on a per binding basis.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; + */ + java.util.List + getMutationsOrBuilderList(); + /** + *
+     * mutations contain operations to perform on matching objects.
+     * mutations may not be empty; a minimum of one mutation is required.
+     * mutations are evaluated in order, and are reinvoked according to
+     * the reinvocationPolicy.
+     * The mutations of a policy are invoked for each binding of this policy
+     * and reinvocation of mutations occurs on a per binding basis.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; + */ + io.kubernetes.client.proto.V1Admissionregistration.MutationOrBuilder getMutationsOrBuilder( + int index); + + /** + *
+     * failurePolicy defines how to handle failures for the admission policy. Failures can
+     * occur from CEL expression parse errors, type check errors, runtime errors and invalid
+     * or mis-configured policy definitions or bindings.
+     * A policy is invalid if paramKind refers to a non-existent Kind.
+     * A binding is invalid if paramRef.name refers to a non-existent resource.
+     * failurePolicy does not define how validations that evaluate to false are handled.
+     * Allowed values are Ignore or Fail. Defaults to Fail.
+     * +optional
+     * 
+ * + * optional string failurePolicy = 5; + */ + boolean hasFailurePolicy(); + /** + *
+     * failurePolicy defines how to handle failures for the admission policy. Failures can
+     * occur from CEL expression parse errors, type check errors, runtime errors and invalid
+     * or mis-configured policy definitions or bindings.
+     * A policy is invalid if paramKind refers to a non-existent Kind.
+     * A binding is invalid if paramRef.name refers to a non-existent resource.
+     * failurePolicy does not define how validations that evaluate to false are handled.
+     * Allowed values are Ignore or Fail. Defaults to Fail.
+     * +optional
+     * 
+ * + * optional string failurePolicy = 5; + */ + java.lang.String getFailurePolicy(); + /** + *
+     * failurePolicy defines how to handle failures for the admission policy. Failures can
+     * occur from CEL expression parse errors, type check errors, runtime errors and invalid
+     * or mis-configured policy definitions or bindings.
+     * A policy is invalid if paramKind refers to a non-existent Kind.
+     * A binding is invalid if paramRef.name refers to a non-existent resource.
+     * failurePolicy does not define how validations that evaluate to false are handled.
+     * Allowed values are Ignore or Fail. Defaults to Fail.
+     * +optional
+     * 
+ * + * optional string failurePolicy = 5; + */ + com.google.protobuf.ByteString + getFailurePolicyBytes(); + + /** + *
+     * matchConditions is a list of conditions that must be met for a request to be validated.
+     * Match conditions filter requests that have already been matched by the matchConstraints.
+     * An empty list of matchConditions matches all requests.
+     * There are a maximum of 64 match conditions allowed.
+     * If a parameter object is provided, it can be accessed via the `params` handle in the same
+     * manner as validation expressions.
+     * The exact matching logic is (in order):
+     *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+     *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+     *   3. If any matchCondition evaluates to an error (but none are FALSE):
+     *      - If failurePolicy=Fail, reject the request
+     *      - If failurePolicy=Ignore, the policy is skipped
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; + */ + java.util.List + getMatchConditionsList(); + /** + *
+     * matchConditions is a list of conditions that must be met for a request to be validated.
+     * Match conditions filter requests that have already been matched by the matchConstraints.
+     * An empty list of matchConditions matches all requests.
+     * There are a maximum of 64 match conditions allowed.
+     * If a parameter object is provided, it can be accessed via the `params` handle in the same
+     * manner as validation expressions.
+     * The exact matching logic is (in order):
+     *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+     *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+     *   3. If any matchCondition evaluates to an error (but none are FALSE):
+     *      - If failurePolicy=Fail, reject the request
+     *      - If failurePolicy=Ignore, the policy is skipped
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; + */ + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getMatchConditions(int index); + /** + *
+     * matchConditions is a list of conditions that must be met for a request to be validated.
+     * Match conditions filter requests that have already been matched by the matchConstraints.
+     * An empty list of matchConditions matches all requests.
+     * There are a maximum of 64 match conditions allowed.
+     * If a parameter object is provided, it can be accessed via the `params` handle in the same
+     * manner as validation expressions.
+     * The exact matching logic is (in order):
+     *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+     *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+     *   3. If any matchCondition evaluates to an error (but none are FALSE):
+     *      - If failurePolicy=Fail, reject the request
+     *      - If failurePolicy=Ignore, the policy is skipped
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; + */ + int getMatchConditionsCount(); + /** + *
+     * matchConditions is a list of conditions that must be met for a request to be validated.
+     * Match conditions filter requests that have already been matched by the matchConstraints.
+     * An empty list of matchConditions matches all requests.
+     * There are a maximum of 64 match conditions allowed.
+     * If a parameter object is provided, it can be accessed via the `params` handle in the same
+     * manner as validation expressions.
+     * The exact matching logic is (in order):
+     *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+     *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+     *   3. If any matchCondition evaluates to an error (but none are FALSE):
+     *      - If failurePolicy=Fail, reject the request
+     *      - If failurePolicy=Ignore, the policy is skipped
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; + */ + java.util.List + getMatchConditionsOrBuilderList(); + /** + *
+     * matchConditions is a list of conditions that must be met for a request to be validated.
+     * Match conditions filter requests that have already been matched by the matchConstraints.
+     * An empty list of matchConditions matches all requests.
+     * There are a maximum of 64 match conditions allowed.
+     * If a parameter object is provided, it can be accessed via the `params` handle in the same
+     * manner as validation expressions.
+     * The exact matching logic is (in order):
+     *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+     *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+     *   3. If any matchCondition evaluates to an error (but none are FALSE):
+     *      - If failurePolicy=Fail, reject the request
+     *      - If failurePolicy=Ignore, the policy is skipped
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; + */ + io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder getMatchConditionsOrBuilder( + int index); + + /** + *
+     * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding
+     * as part of a single admission evaluation.
+     * Allowed values are "Never" and "IfNeeded".
+     * Never: These mutations will not be called more than once per binding in a single admission evaluation.
+     * IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of
+     * order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies.  Mutations are only
+     * reinvoked when mutations change the object after this mutation is invoked.
+     * Required.
+     * 
+ * + * optional string reinvocationPolicy = 7; + */ + boolean hasReinvocationPolicy(); + /** + *
+     * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding
+     * as part of a single admission evaluation.
+     * Allowed values are "Never" and "IfNeeded".
+     * Never: These mutations will not be called more than once per binding in a single admission evaluation.
+     * IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of
+     * order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies.  Mutations are only
+     * reinvoked when mutations change the object after this mutation is invoked.
+     * Required.
+     * 
+ * + * optional string reinvocationPolicy = 7; + */ + java.lang.String getReinvocationPolicy(); + /** + *
+     * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding
+     * as part of a single admission evaluation.
+     * Allowed values are "Never" and "IfNeeded".
+     * Never: These mutations will not be called more than once per binding in a single admission evaluation.
+     * IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of
+     * order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies.  Mutations are only
+     * reinvoked when mutations change the object after this mutation is invoked.
+     * Required.
+     * 
+ * + * optional string reinvocationPolicy = 7; + */ + com.google.protobuf.ByteString + getReinvocationPolicyBytes(); + } + /** + *
+   * MutatingAdmissionPolicySpec defines the desired behavior of the admission policy.
+   * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec} + */ + public static final class MutatingAdmissionPolicySpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec) + MutatingAdmissionPolicySpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use MutatingAdmissionPolicySpec.newBuilder() to construct. + private MutatingAdmissionPolicySpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutatingAdmissionPolicySpec() { + variables_ = java.util.Collections.emptyList(); + mutations_ = java.util.Collections.emptyList(); + failurePolicy_ = ""; + matchConditions_ = java.util.Collections.emptyList(); + reinvocationPolicy_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutatingAdmissionPolicySpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.V1Admissionregistration.ParamKind.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = paramKind_.toBuilder(); + } + paramKind_ = input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.ParamKind.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(paramKind_); + paramKind_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = matchConstraints_.toBuilder(); + } + matchConstraints_ = input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.MatchResources.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(matchConstraints_); + matchConstraints_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + variables_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + variables_.add( + input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.Variable.PARSER, extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + mutations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + mutations_.add( + input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.Mutation.PARSER, extensionRegistry)); + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + failurePolicy_ = bs; + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + matchConditions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + matchConditions_.add( + input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.PARSER, extensionRegistry)); + break; + } + case 58: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + reinvocationPolicy_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + variables_ = java.util.Collections.unmodifiableList(variables_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + mutations_ = java.util.Collections.unmodifiableList(mutations_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + matchConditions_ = java.util.Collections.unmodifiableList(matchConditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicySpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicySpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.Builder.class); + } + + private int bitField0_; + public static final int PARAMKIND_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.V1Admissionregistration.ParamKind paramKind_; + /** + *
+     * paramKind specifies the kind of resources used to parameterize this policy.
+     * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
+     * If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
+     * If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamKind paramKind = 1; + */ + public boolean hasParamKind() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * paramKind specifies the kind of resources used to parameterize this policy.
+     * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
+     * If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
+     * If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamKind paramKind = 1; + */ + public io.kubernetes.client.proto.V1Admissionregistration.ParamKind getParamKind() { + return paramKind_ == null ? io.kubernetes.client.proto.V1Admissionregistration.ParamKind.getDefaultInstance() : paramKind_; + } + /** + *
+     * paramKind specifies the kind of resources used to parameterize this policy.
+     * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
+     * If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
+     * If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamKind paramKind = 1; + */ + public io.kubernetes.client.proto.V1Admissionregistration.ParamKindOrBuilder getParamKindOrBuilder() { + return paramKind_ == null ? io.kubernetes.client.proto.V1Admissionregistration.ParamKind.getDefaultInstance() : paramKind_; + } + + public static final int MATCHCONSTRAINTS_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Admissionregistration.MatchResources matchConstraints_; + /** + *
+     * matchConstraints specifies what resources this policy is designed to validate.
+     * The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints.
+     * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
+     * MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.
+     * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+     * '*' matches CREATE, UPDATE and CONNECT.
+     * Required.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchConstraints = 2; + */ + public boolean hasMatchConstraints() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * matchConstraints specifies what resources this policy is designed to validate.
+     * The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints.
+     * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
+     * MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.
+     * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+     * '*' matches CREATE, UPDATE and CONNECT.
+     * Required.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchConstraints = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MatchResources getMatchConstraints() { + return matchConstraints_ == null ? io.kubernetes.client.proto.V1Admissionregistration.MatchResources.getDefaultInstance() : matchConstraints_; + } + /** + *
+     * matchConstraints specifies what resources this policy is designed to validate.
+     * The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints.
+     * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
+     * MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.
+     * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+     * '*' matches CREATE, UPDATE and CONNECT.
+     * Required.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchConstraints = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder getMatchConstraintsOrBuilder() { + return matchConstraints_ == null ? io.kubernetes.client.proto.V1Admissionregistration.MatchResources.getDefaultInstance() : matchConstraints_; + } + + public static final int VARIABLES_FIELD_NUMBER = 3; + private java.util.List variables_; + /** + *
+     * variables contain definitions of variables that can be used in composition of other expressions.
+     * Each variable is defined as a named CEL expression.
+     * The variables defined here will be available under `variables` in other expressions of the policy
+     * except matchConditions because matchConditions are evaluated before the rest of the policy.
+     * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+     * Thus, variables must be sorted by the order of first appearance and acyclic.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; + */ + public java.util.List getVariablesList() { + return variables_; + } + /** + *
+     * variables contain definitions of variables that can be used in composition of other expressions.
+     * Each variable is defined as a named CEL expression.
+     * The variables defined here will be available under `variables` in other expressions of the policy
+     * except matchConditions because matchConditions are evaluated before the rest of the policy.
+     * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+     * Thus, variables must be sorted by the order of first appearance and acyclic.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; + */ + public java.util.List + getVariablesOrBuilderList() { + return variables_; + } + /** + *
+     * variables contain definitions of variables that can be used in composition of other expressions.
+     * Each variable is defined as a named CEL expression.
+     * The variables defined here will be available under `variables` in other expressions of the policy
+     * except matchConditions because matchConditions are evaluated before the rest of the policy.
+     * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+     * Thus, variables must be sorted by the order of first appearance and acyclic.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; + */ + public int getVariablesCount() { + return variables_.size(); + } + /** + *
+     * variables contain definitions of variables that can be used in composition of other expressions.
+     * Each variable is defined as a named CEL expression.
+     * The variables defined here will be available under `variables` in other expressions of the policy
+     * except matchConditions because matchConditions are evaluated before the rest of the policy.
+     * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+     * Thus, variables must be sorted by the order of first appearance and acyclic.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.Variable getVariables(int index) { + return variables_.get(index); + } + /** + *
+     * variables contain definitions of variables that can be used in composition of other expressions.
+     * Each variable is defined as a named CEL expression.
+     * The variables defined here will be available under `variables` in other expressions of the policy
+     * except matchConditions because matchConditions are evaluated before the rest of the policy.
+     * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+     * Thus, variables must be sorted by the order of first appearance and acyclic.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.VariableOrBuilder getVariablesOrBuilder( + int index) { + return variables_.get(index); + } + + public static final int MUTATIONS_FIELD_NUMBER = 4; + private java.util.List mutations_; + /** + *
+     * mutations contain operations to perform on matching objects.
+     * mutations may not be empty; a minimum of one mutation is required.
+     * mutations are evaluated in order, and are reinvoked according to
+     * the reinvocationPolicy.
+     * The mutations of a policy are invoked for each binding of this policy
+     * and reinvocation of mutations occurs on a per binding basis.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; + */ + public java.util.List getMutationsList() { + return mutations_; + } + /** + *
+     * mutations contain operations to perform on matching objects.
+     * mutations may not be empty; a minimum of one mutation is required.
+     * mutations are evaluated in order, and are reinvoked according to
+     * the reinvocationPolicy.
+     * The mutations of a policy are invoked for each binding of this policy
+     * and reinvocation of mutations occurs on a per binding basis.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; + */ + public java.util.List + getMutationsOrBuilderList() { + return mutations_; + } + /** + *
+     * mutations contain operations to perform on matching objects.
+     * mutations may not be empty; a minimum of one mutation is required.
+     * mutations are evaluated in order, and are reinvoked according to
+     * the reinvocationPolicy.
+     * The mutations of a policy are invoked for each binding of this policy
+     * and reinvocation of mutations occurs on a per binding basis.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; + */ + public int getMutationsCount() { + return mutations_.size(); + } + /** + *
+     * mutations contain operations to perform on matching objects.
+     * mutations may not be empty; a minimum of one mutation is required.
+     * mutations are evaluated in order, and are reinvoked according to
+     * the reinvocationPolicy.
+     * The mutations of a policy are invoked for each binding of this policy
+     * and reinvocation of mutations occurs on a per binding basis.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; + */ + public io.kubernetes.client.proto.V1Admissionregistration.Mutation getMutations(int index) { + return mutations_.get(index); + } + /** + *
+     * mutations contain operations to perform on matching objects.
+     * mutations may not be empty; a minimum of one mutation is required.
+     * mutations are evaluated in order, and are reinvoked according to
+     * the reinvocationPolicy.
+     * The mutations of a policy are invoked for each binding of this policy
+     * and reinvocation of mutations occurs on a per binding basis.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutationOrBuilder getMutationsOrBuilder( + int index) { + return mutations_.get(index); + } + + public static final int FAILUREPOLICY_FIELD_NUMBER = 5; + private volatile java.lang.Object failurePolicy_; + /** + *
+     * failurePolicy defines how to handle failures for the admission policy. Failures can
+     * occur from CEL expression parse errors, type check errors, runtime errors and invalid
+     * or mis-configured policy definitions or bindings.
+     * A policy is invalid if paramKind refers to a non-existent Kind.
+     * A binding is invalid if paramRef.name refers to a non-existent resource.
+     * failurePolicy does not define how validations that evaluate to false are handled.
+     * Allowed values are Ignore or Fail. Defaults to Fail.
+     * +optional
+     * 
+ * + * optional string failurePolicy = 5; + */ + public boolean hasFailurePolicy() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * failurePolicy defines how to handle failures for the admission policy. Failures can
+     * occur from CEL expression parse errors, type check errors, runtime errors and invalid
+     * or mis-configured policy definitions or bindings.
+     * A policy is invalid if paramKind refers to a non-existent Kind.
+     * A binding is invalid if paramRef.name refers to a non-existent resource.
+     * failurePolicy does not define how validations that evaluate to false are handled.
+     * Allowed values are Ignore or Fail. Defaults to Fail.
+     * +optional
+     * 
+ * + * optional string failurePolicy = 5; + */ + public java.lang.String getFailurePolicy() { + java.lang.Object ref = failurePolicy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + failurePolicy_ = s; + } + return s; + } + } + /** + *
+     * failurePolicy defines how to handle failures for the admission policy. Failures can
+     * occur from CEL expression parse errors, type check errors, runtime errors and invalid
+     * or mis-configured policy definitions or bindings.
+     * A policy is invalid if paramKind refers to a non-existent Kind.
+     * A binding is invalid if paramRef.name refers to a non-existent resource.
+     * failurePolicy does not define how validations that evaluate to false are handled.
+     * Allowed values are Ignore or Fail. Defaults to Fail.
+     * +optional
+     * 
+ * + * optional string failurePolicy = 5; + */ + public com.google.protobuf.ByteString + getFailurePolicyBytes() { + java.lang.Object ref = failurePolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failurePolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MATCHCONDITIONS_FIELD_NUMBER = 6; + private java.util.List matchConditions_; + /** + *
+     * matchConditions is a list of conditions that must be met for a request to be validated.
+     * Match conditions filter requests that have already been matched by the matchConstraints.
+     * An empty list of matchConditions matches all requests.
+     * There are a maximum of 64 match conditions allowed.
+     * If a parameter object is provided, it can be accessed via the `params` handle in the same
+     * manner as validation expressions.
+     * The exact matching logic is (in order):
+     *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+     *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+     *   3. If any matchCondition evaluates to an error (but none are FALSE):
+     *      - If failurePolicy=Fail, reject the request
+     *      - If failurePolicy=Ignore, the policy is skipped
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; + */ + public java.util.List getMatchConditionsList() { + return matchConditions_; + } + /** + *
+     * matchConditions is a list of conditions that must be met for a request to be validated.
+     * Match conditions filter requests that have already been matched by the matchConstraints.
+     * An empty list of matchConditions matches all requests.
+     * There are a maximum of 64 match conditions allowed.
+     * If a parameter object is provided, it can be accessed via the `params` handle in the same
+     * manner as validation expressions.
+     * The exact matching logic is (in order):
+     *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+     *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+     *   3. If any matchCondition evaluates to an error (but none are FALSE):
+     *      - If failurePolicy=Fail, reject the request
+     *      - If failurePolicy=Ignore, the policy is skipped
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; + */ + public java.util.List + getMatchConditionsOrBuilderList() { + return matchConditions_; + } + /** + *
+     * matchConditions is a list of conditions that must be met for a request to be validated.
+     * Match conditions filter requests that have already been matched by the matchConstraints.
+     * An empty list of matchConditions matches all requests.
+     * There are a maximum of 64 match conditions allowed.
+     * If a parameter object is provided, it can be accessed via the `params` handle in the same
+     * manner as validation expressions.
+     * The exact matching logic is (in order):
+     *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+     *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+     *   3. If any matchCondition evaluates to an error (but none are FALSE):
+     *      - If failurePolicy=Fail, reject the request
+     *      - If failurePolicy=Ignore, the policy is skipped
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; + */ + public int getMatchConditionsCount() { + return matchConditions_.size(); + } + /** + *
+     * matchConditions is a list of conditions that must be met for a request to be validated.
+     * Match conditions filter requests that have already been matched by the matchConstraints.
+     * An empty list of matchConditions matches all requests.
+     * There are a maximum of 64 match conditions allowed.
+     * If a parameter object is provided, it can be accessed via the `params` handle in the same
+     * manner as validation expressions.
+     * The exact matching logic is (in order):
+     *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+     *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+     *   3. If any matchCondition evaluates to an error (but none are FALSE):
+     *      - If failurePolicy=Fail, reject the request
+     *      - If failurePolicy=Ignore, the policy is skipped
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getMatchConditions(int index) { + return matchConditions_.get(index); + } + /** + *
+     * matchConditions is a list of conditions that must be met for a request to be validated.
+     * Match conditions filter requests that have already been matched by the matchConstraints.
+     * An empty list of matchConditions matches all requests.
+     * There are a maximum of 64 match conditions allowed.
+     * If a parameter object is provided, it can be accessed via the `params` handle in the same
+     * manner as validation expressions.
+     * The exact matching logic is (in order):
+     *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+     *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+     *   3. If any matchCondition evaluates to an error (but none are FALSE):
+     *      - If failurePolicy=Fail, reject the request
+     *      - If failurePolicy=Ignore, the policy is skipped
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder getMatchConditionsOrBuilder( + int index) { + return matchConditions_.get(index); + } + + public static final int REINVOCATIONPOLICY_FIELD_NUMBER = 7; + private volatile java.lang.Object reinvocationPolicy_; + /** + *
+     * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding
+     * as part of a single admission evaluation.
+     * Allowed values are "Never" and "IfNeeded".
+     * Never: These mutations will not be called more than once per binding in a single admission evaluation.
+     * IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of
+     * order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies.  Mutations are only
+     * reinvoked when mutations change the object after this mutation is invoked.
+     * Required.
+     * 
+ * + * optional string reinvocationPolicy = 7; + */ + public boolean hasReinvocationPolicy() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding
+     * as part of a single admission evaluation.
+     * Allowed values are "Never" and "IfNeeded".
+     * Never: These mutations will not be called more than once per binding in a single admission evaluation.
+     * IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of
+     * order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies.  Mutations are only
+     * reinvoked when mutations change the object after this mutation is invoked.
+     * Required.
+     * 
+ * + * optional string reinvocationPolicy = 7; + */ + public java.lang.String getReinvocationPolicy() { + java.lang.Object ref = reinvocationPolicy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + reinvocationPolicy_ = s; + } + return s; + } + } + /** + *
+     * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding
+     * as part of a single admission evaluation.
+     * Allowed values are "Never" and "IfNeeded".
+     * Never: These mutations will not be called more than once per binding in a single admission evaluation.
+     * IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of
+     * order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies.  Mutations are only
+     * reinvoked when mutations change the object after this mutation is invoked.
+     * Required.
+     * 
+ * + * optional string reinvocationPolicy = 7; + */ + public com.google.protobuf.ByteString + getReinvocationPolicyBytes() { + java.lang.Object ref = reinvocationPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reinvocationPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getParamKind()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getMatchConstraints()); + } + for (int i = 0; i < variables_.size(); i++) { + output.writeMessage(3, variables_.get(i)); + } + for (int i = 0; i < mutations_.size(); i++) { + output.writeMessage(4, mutations_.get(i)); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, failurePolicy_); + } + for (int i = 0; i < matchConditions_.size(); i++) { + output.writeMessage(6, matchConditions_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, reinvocationPolicy_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getParamKind()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMatchConstraints()); + } + for (int i = 0; i < variables_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, variables_.get(i)); + } + for (int i = 0; i < mutations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, mutations_.get(i)); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, failurePolicy_); + } + for (int i = 0; i < matchConditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, matchConditions_.get(i)); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, reinvocationPolicy_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec other = (io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec) obj; + + boolean result = true; + result = result && (hasParamKind() == other.hasParamKind()); + if (hasParamKind()) { + result = result && getParamKind() + .equals(other.getParamKind()); + } + result = result && (hasMatchConstraints() == other.hasMatchConstraints()); + if (hasMatchConstraints()) { + result = result && getMatchConstraints() + .equals(other.getMatchConstraints()); + } + result = result && getVariablesList() + .equals(other.getVariablesList()); + result = result && getMutationsList() + .equals(other.getMutationsList()); + result = result && (hasFailurePolicy() == other.hasFailurePolicy()); + if (hasFailurePolicy()) { + result = result && getFailurePolicy() + .equals(other.getFailurePolicy()); + } + result = result && getMatchConditionsList() + .equals(other.getMatchConditionsList()); + result = result && (hasReinvocationPolicy() == other.hasReinvocationPolicy()); + if (hasReinvocationPolicy()) { + result = result && getReinvocationPolicy() + .equals(other.getReinvocationPolicy()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasParamKind()) { + hash = (37 * hash) + PARAMKIND_FIELD_NUMBER; + hash = (53 * hash) + getParamKind().hashCode(); + } + if (hasMatchConstraints()) { + hash = (37 * hash) + MATCHCONSTRAINTS_FIELD_NUMBER; + hash = (53 * hash) + getMatchConstraints().hashCode(); + } + if (getVariablesCount() > 0) { + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getVariablesList().hashCode(); + } + if (getMutationsCount() > 0) { + hash = (37 * hash) + MUTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getMutationsList().hashCode(); + } + if (hasFailurePolicy()) { + hash = (37 * hash) + FAILUREPOLICY_FIELD_NUMBER; + hash = (53 * hash) + getFailurePolicy().hashCode(); + } + if (getMatchConditionsCount() > 0) { + hash = (37 * hash) + MATCHCONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getMatchConditionsList().hashCode(); + } + if (hasReinvocationPolicy()) { + hash = (37 * hash) + REINVOCATIONPOLICY_FIELD_NUMBER; + hash = (53 * hash) + getReinvocationPolicy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * MutatingAdmissionPolicySpec defines the desired behavior of the admission policy.
+     * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec) + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicySpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicySpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getParamKindFieldBuilder(); + getMatchConstraintsFieldBuilder(); + getVariablesFieldBuilder(); + getMutationsFieldBuilder(); + getMatchConditionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (paramKindBuilder_ == null) { + paramKind_ = null; + } else { + paramKindBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (matchConstraintsBuilder_ == null) { + matchConstraints_ = null; + } else { + matchConstraintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (variablesBuilder_ == null) { + variables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + variablesBuilder_.clear(); + } + if (mutationsBuilder_ == null) { + mutations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + mutationsBuilder_.clear(); + } + failurePolicy_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + if (matchConditionsBuilder_ == null) { + matchConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + matchConditionsBuilder_.clear(); + } + reinvocationPolicy_ = ""; + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicySpec_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec build() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec result = new io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (paramKindBuilder_ == null) { + result.paramKind_ = paramKind_; + } else { + result.paramKind_ = paramKindBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (matchConstraintsBuilder_ == null) { + result.matchConstraints_ = matchConstraints_; + } else { + result.matchConstraints_ = matchConstraintsBuilder_.build(); + } + if (variablesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + variables_ = java.util.Collections.unmodifiableList(variables_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.variables_ = variables_; + } else { + result.variables_ = variablesBuilder_.build(); + } + if (mutationsBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + mutations_ = java.util.Collections.unmodifiableList(mutations_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.mutations_ = mutations_; + } else { + result.mutations_ = mutationsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000004; + } + result.failurePolicy_ = failurePolicy_; + if (matchConditionsBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + matchConditions_ = java.util.Collections.unmodifiableList(matchConditions_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.matchConditions_ = matchConditions_; + } else { + result.matchConditions_ = matchConditionsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000008; + } + result.reinvocationPolicy_ = reinvocationPolicy_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec.getDefaultInstance()) return this; + if (other.hasParamKind()) { + mergeParamKind(other.getParamKind()); + } + if (other.hasMatchConstraints()) { + mergeMatchConstraints(other.getMatchConstraints()); + } + if (variablesBuilder_ == null) { + if (!other.variables_.isEmpty()) { + if (variables_.isEmpty()) { + variables_ = other.variables_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureVariablesIsMutable(); + variables_.addAll(other.variables_); + } + onChanged(); + } + } else { + if (!other.variables_.isEmpty()) { + if (variablesBuilder_.isEmpty()) { + variablesBuilder_.dispose(); + variablesBuilder_ = null; + variables_ = other.variables_; + bitField0_ = (bitField0_ & ~0x00000004); + variablesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVariablesFieldBuilder() : null; + } else { + variablesBuilder_.addAllMessages(other.variables_); + } + } + } + if (mutationsBuilder_ == null) { + if (!other.mutations_.isEmpty()) { + if (mutations_.isEmpty()) { + mutations_ = other.mutations_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureMutationsIsMutable(); + mutations_.addAll(other.mutations_); + } + onChanged(); + } + } else { + if (!other.mutations_.isEmpty()) { + if (mutationsBuilder_.isEmpty()) { + mutationsBuilder_.dispose(); + mutationsBuilder_ = null; + mutations_ = other.mutations_; + bitField0_ = (bitField0_ & ~0x00000008); + mutationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMutationsFieldBuilder() : null; + } else { + mutationsBuilder_.addAllMessages(other.mutations_); + } + } + } + if (other.hasFailurePolicy()) { + bitField0_ |= 0x00000010; + failurePolicy_ = other.failurePolicy_; + onChanged(); + } + if (matchConditionsBuilder_ == null) { + if (!other.matchConditions_.isEmpty()) { + if (matchConditions_.isEmpty()) { + matchConditions_ = other.matchConditions_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureMatchConditionsIsMutable(); + matchConditions_.addAll(other.matchConditions_); + } + onChanged(); + } + } else { + if (!other.matchConditions_.isEmpty()) { + if (matchConditionsBuilder_.isEmpty()) { + matchConditionsBuilder_.dispose(); + matchConditionsBuilder_ = null; + matchConditions_ = other.matchConditions_; + bitField0_ = (bitField0_ & ~0x00000020); + matchConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMatchConditionsFieldBuilder() : null; + } else { + matchConditionsBuilder_.addAllMessages(other.matchConditions_); + } + } + } + if (other.hasReinvocationPolicy()) { + bitField0_ |= 0x00000040; + reinvocationPolicy_ = other.reinvocationPolicy_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.V1Admissionregistration.ParamKind paramKind_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.ParamKind, io.kubernetes.client.proto.V1Admissionregistration.ParamKind.Builder, io.kubernetes.client.proto.V1Admissionregistration.ParamKindOrBuilder> paramKindBuilder_; + /** + *
+       * paramKind specifies the kind of resources used to parameterize this policy.
+       * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
+       * If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
+       * If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamKind paramKind = 1; + */ + public boolean hasParamKind() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * paramKind specifies the kind of resources used to parameterize this policy.
+       * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
+       * If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
+       * If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamKind paramKind = 1; + */ + public io.kubernetes.client.proto.V1Admissionregistration.ParamKind getParamKind() { + if (paramKindBuilder_ == null) { + return paramKind_ == null ? io.kubernetes.client.proto.V1Admissionregistration.ParamKind.getDefaultInstance() : paramKind_; + } else { + return paramKindBuilder_.getMessage(); + } + } + /** + *
+       * paramKind specifies the kind of resources used to parameterize this policy.
+       * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
+       * If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
+       * If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamKind paramKind = 1; + */ + public Builder setParamKind(io.kubernetes.client.proto.V1Admissionregistration.ParamKind value) { + if (paramKindBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + paramKind_ = value; + onChanged(); + } else { + paramKindBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * paramKind specifies the kind of resources used to parameterize this policy.
+       * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
+       * If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
+       * If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamKind paramKind = 1; + */ + public Builder setParamKind( + io.kubernetes.client.proto.V1Admissionregistration.ParamKind.Builder builderForValue) { + if (paramKindBuilder_ == null) { + paramKind_ = builderForValue.build(); + onChanged(); + } else { + paramKindBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * paramKind specifies the kind of resources used to parameterize this policy.
+       * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
+       * If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
+       * If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamKind paramKind = 1; + */ + public Builder mergeParamKind(io.kubernetes.client.proto.V1Admissionregistration.ParamKind value) { + if (paramKindBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + paramKind_ != null && + paramKind_ != io.kubernetes.client.proto.V1Admissionregistration.ParamKind.getDefaultInstance()) { + paramKind_ = + io.kubernetes.client.proto.V1Admissionregistration.ParamKind.newBuilder(paramKind_).mergeFrom(value).buildPartial(); + } else { + paramKind_ = value; + } + onChanged(); + } else { + paramKindBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * paramKind specifies the kind of resources used to parameterize this policy.
+       * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
+       * If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
+       * If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamKind paramKind = 1; + */ + public Builder clearParamKind() { + if (paramKindBuilder_ == null) { + paramKind_ = null; + onChanged(); + } else { + paramKindBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * paramKind specifies the kind of resources used to parameterize this policy.
+       * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
+       * If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
+       * If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamKind paramKind = 1; + */ + public io.kubernetes.client.proto.V1Admissionregistration.ParamKind.Builder getParamKindBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getParamKindFieldBuilder().getBuilder(); + } + /** + *
+       * paramKind specifies the kind of resources used to parameterize this policy.
+       * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
+       * If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
+       * If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamKind paramKind = 1; + */ + public io.kubernetes.client.proto.V1Admissionregistration.ParamKindOrBuilder getParamKindOrBuilder() { + if (paramKindBuilder_ != null) { + return paramKindBuilder_.getMessageOrBuilder(); + } else { + return paramKind_ == null ? + io.kubernetes.client.proto.V1Admissionregistration.ParamKind.getDefaultInstance() : paramKind_; + } + } + /** + *
+       * paramKind specifies the kind of resources used to parameterize this policy.
+       * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
+       * If paramKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
+       * If paramKind is specified but paramRef is unset in MutatingAdmissionPolicyBinding, the params variable will be null.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.ParamKind paramKind = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.ParamKind, io.kubernetes.client.proto.V1Admissionregistration.ParamKind.Builder, io.kubernetes.client.proto.V1Admissionregistration.ParamKindOrBuilder> + getParamKindFieldBuilder() { + if (paramKindBuilder_ == null) { + paramKindBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.ParamKind, io.kubernetes.client.proto.V1Admissionregistration.ParamKind.Builder, io.kubernetes.client.proto.V1Admissionregistration.ParamKindOrBuilder>( + getParamKind(), + getParentForChildren(), + isClean()); + paramKind_ = null; + } + return paramKindBuilder_; + } + + private io.kubernetes.client.proto.V1Admissionregistration.MatchResources matchConstraints_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MatchResources, io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder> matchConstraintsBuilder_; + /** + *
+       * matchConstraints specifies what resources this policy is designed to validate.
+       * The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints.
+       * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
+       * MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * Required.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchConstraints = 2; + */ + public boolean hasMatchConstraints() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * matchConstraints specifies what resources this policy is designed to validate.
+       * The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints.
+       * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
+       * MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * Required.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchConstraints = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MatchResources getMatchConstraints() { + if (matchConstraintsBuilder_ == null) { + return matchConstraints_ == null ? io.kubernetes.client.proto.V1Admissionregistration.MatchResources.getDefaultInstance() : matchConstraints_; + } else { + return matchConstraintsBuilder_.getMessage(); + } + } + /** + *
+       * matchConstraints specifies what resources this policy is designed to validate.
+       * The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints.
+       * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
+       * MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * Required.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchConstraints = 2; + */ + public Builder setMatchConstraints(io.kubernetes.client.proto.V1Admissionregistration.MatchResources value) { + if (matchConstraintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + matchConstraints_ = value; + onChanged(); + } else { + matchConstraintsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * matchConstraints specifies what resources this policy is designed to validate.
+       * The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints.
+       * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
+       * MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * Required.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchConstraints = 2; + */ + public Builder setMatchConstraints( + io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder builderForValue) { + if (matchConstraintsBuilder_ == null) { + matchConstraints_ = builderForValue.build(); + onChanged(); + } else { + matchConstraintsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * matchConstraints specifies what resources this policy is designed to validate.
+       * The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints.
+       * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
+       * MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * Required.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchConstraints = 2; + */ + public Builder mergeMatchConstraints(io.kubernetes.client.proto.V1Admissionregistration.MatchResources value) { + if (matchConstraintsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + matchConstraints_ != null && + matchConstraints_ != io.kubernetes.client.proto.V1Admissionregistration.MatchResources.getDefaultInstance()) { + matchConstraints_ = + io.kubernetes.client.proto.V1Admissionregistration.MatchResources.newBuilder(matchConstraints_).mergeFrom(value).buildPartial(); + } else { + matchConstraints_ = value; + } + onChanged(); + } else { + matchConstraintsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * matchConstraints specifies what resources this policy is designed to validate.
+       * The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints.
+       * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
+       * MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * Required.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchConstraints = 2; + */ + public Builder clearMatchConstraints() { + if (matchConstraintsBuilder_ == null) { + matchConstraints_ = null; + onChanged(); + } else { + matchConstraintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * matchConstraints specifies what resources this policy is designed to validate.
+       * The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints.
+       * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
+       * MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * Required.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchConstraints = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder getMatchConstraintsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMatchConstraintsFieldBuilder().getBuilder(); + } + /** + *
+       * matchConstraints specifies what resources this policy is designed to validate.
+       * The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints.
+       * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
+       * MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * Required.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchConstraints = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder getMatchConstraintsOrBuilder() { + if (matchConstraintsBuilder_ != null) { + return matchConstraintsBuilder_.getMessageOrBuilder(); + } else { + return matchConstraints_ == null ? + io.kubernetes.client.proto.V1Admissionregistration.MatchResources.getDefaultInstance() : matchConstraints_; + } + } + /** + *
+       * matchConstraints specifies what resources this policy is designed to validate.
+       * The MutatingAdmissionPolicy cares about a request if it matches _all_ Constraints.
+       * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
+       * MutatingAdmissionPolicy cannot match MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding.
+       * The CREATE, UPDATE and CONNECT operations are allowed.  The DELETE operation may not be matched.
+       * '*' matches CREATE, UPDATE and CONNECT.
+       * Required.
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.MatchResources matchConstraints = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MatchResources, io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder> + getMatchConstraintsFieldBuilder() { + if (matchConstraintsBuilder_ == null) { + matchConstraintsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MatchResources, io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder>( + getMatchConstraints(), + getParentForChildren(), + isClean()); + matchConstraints_ = null; + } + return matchConstraintsBuilder_; + } + + private java.util.List variables_ = + java.util.Collections.emptyList(); + private void ensureVariablesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + variables_ = new java.util.ArrayList(variables_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.Variable, io.kubernetes.client.proto.V1Admissionregistration.Variable.Builder, io.kubernetes.client.proto.V1Admissionregistration.VariableOrBuilder> variablesBuilder_; + + /** + *
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; */ - public Builder mergeNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { - if (namespaceSelectorBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - namespaceSelector_ != null && - namespaceSelector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { - namespaceSelector_ = - io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(namespaceSelector_).mergeFrom(value).buildPartial(); - } else { - namespaceSelector_ = value; + public java.util.List getVariablesList() { + if (variablesBuilder_ == null) { + return java.util.Collections.unmodifiableList(variables_); + } else { + return variablesBuilder_.getMessageList(); + } + } + /** + *
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; + */ + public int getVariablesCount() { + if (variablesBuilder_ == null) { + return variables_.size(); + } else { + return variablesBuilder_.getCount(); + } + } + /** + *
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.Variable getVariables(int index) { + if (variablesBuilder_ == null) { + return variables_.get(index); + } else { + return variablesBuilder_.getMessage(index); + } + } + /** + *
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; + */ + public Builder setVariables( + int index, io.kubernetes.client.proto.V1Admissionregistration.Variable value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + ensureVariablesIsMutable(); + variables_.set(index, value); onChanged(); } else { - namespaceSelectorBuilder_.mergeFrom(value); + variablesBuilder_.setMessage(index, value); } - bitField0_ |= 0x00000001; return this; } /** *
-       * NamespaceSelector decides whether to run the admission control policy on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the policy.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the policy on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; */ - public Builder clearNamespaceSelector() { - if (namespaceSelectorBuilder_ == null) { - namespaceSelector_ = null; + public Builder setVariables( + int index, io.kubernetes.client.proto.V1Admissionregistration.Variable.Builder builderForValue) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.set(index, builderForValue.build()); onChanged(); } else { - namespaceSelectorBuilder_.clear(); + variablesBuilder_.setMessage(index, builderForValue.build()); } - bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
-       * NamespaceSelector decides whether to run the admission control policy on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the policy.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the policy on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; */ - public io.kubernetes.client.proto.Meta.LabelSelector.Builder getNamespaceSelectorBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getNamespaceSelectorFieldBuilder().getBuilder(); + public Builder addVariables(io.kubernetes.client.proto.V1Admissionregistration.Variable value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariablesIsMutable(); + variables_.add(value); + onChanged(); + } else { + variablesBuilder_.addMessage(value); + } + return this; } /** *
-       * NamespaceSelector decides whether to run the admission control policy on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the policy.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the policy on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; */ - public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder() { - if (namespaceSelectorBuilder_ != null) { - return namespaceSelectorBuilder_.getMessageOrBuilder(); + public Builder addVariables( + int index, io.kubernetes.client.proto.V1Admissionregistration.Variable value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVariablesIsMutable(); + variables_.add(index, value); + onChanged(); } else { - return namespaceSelector_ == null ? - io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; + variablesBuilder_.addMessage(index, value); } + return this; } /** *
-       * NamespaceSelector decides whether to run the admission control policy on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the policy.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the policy on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 1; + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> - getNamespaceSelectorFieldBuilder() { - if (namespaceSelectorBuilder_ == null) { - namespaceSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( - getNamespaceSelector(), - getParentForChildren(), - isClean()); - namespaceSelector_ = null; + public Builder addVariables( + io.kubernetes.client.proto.V1Admissionregistration.Variable.Builder builderForValue) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.add(builderForValue.build()); + onChanged(); + } else { + variablesBuilder_.addMessage(builderForValue.build()); } - return namespaceSelectorBuilder_; + return this; } - - private io.kubernetes.client.proto.Meta.LabelSelector objectSelector_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> objectSelectorBuilder_; /** *
-       * ObjectSelector decides whether to run the validation based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the cel validation, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; */ - public boolean hasObjectSelector() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public Builder addVariables( + int index, io.kubernetes.client.proto.V1Admissionregistration.Variable.Builder builderForValue) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.add(index, builderForValue.build()); + onChanged(); + } else { + variablesBuilder_.addMessage(index, builderForValue.build()); + } + return this; } /** *
-       * ObjectSelector decides whether to run the validation based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the cel validation, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; */ - public io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector() { - if (objectSelectorBuilder_ == null) { - return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; + public Builder addAllVariables( + java.lang.Iterable values) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, variables_); + onChanged(); } else { - return objectSelectorBuilder_.getMessage(); + variablesBuilder_.addAllMessages(values); } + return this; } /** *
-       * ObjectSelector decides whether to run the validation based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the cel validation, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; */ - public Builder setObjectSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { - if (objectSelectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - objectSelector_ = value; + public Builder clearVariables() { + if (variablesBuilder_ == null) { + variables_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { - objectSelectorBuilder_.setMessage(value); + variablesBuilder_.clear(); } - bitField0_ |= 0x00000002; return this; } /** *
-       * ObjectSelector decides whether to run the validation based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the cel validation, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; */ - public Builder setObjectSelector( - io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { - if (objectSelectorBuilder_ == null) { - objectSelector_ = builderForValue.build(); + public Builder removeVariables(int index) { + if (variablesBuilder_ == null) { + ensureVariablesIsMutable(); + variables_.remove(index); onChanged(); } else { - objectSelectorBuilder_.setMessage(builderForValue.build()); + variablesBuilder_.remove(index); } - bitField0_ |= 0x00000002; return this; } /** *
-       * ObjectSelector decides whether to run the validation based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the cel validation, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; */ - public Builder mergeObjectSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { - if (objectSelectorBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - objectSelector_ != null && - objectSelector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { - objectSelector_ = - io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(objectSelector_).mergeFrom(value).buildPartial(); - } else { - objectSelector_ = value; - } - onChanged(); - } else { - objectSelectorBuilder_.mergeFrom(value); + public io.kubernetes.client.proto.V1Admissionregistration.Variable.Builder getVariablesBuilder( + int index) { + return getVariablesFieldBuilder().getBuilder(index); + } + /** + *
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.VariableOrBuilder getVariablesOrBuilder( + int index) { + if (variablesBuilder_ == null) { + return variables_.get(index); } else { + return variablesBuilder_.getMessageOrBuilder(index); } - bitField0_ |= 0x00000002; - return this; } /** *
-       * ObjectSelector decides whether to run the validation based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the cel validation, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; */ - public Builder clearObjectSelector() { - if (objectSelectorBuilder_ == null) { - objectSelector_ = null; - onChanged(); + public java.util.List + getVariablesOrBuilderList() { + if (variablesBuilder_ != null) { + return variablesBuilder_.getMessageOrBuilderList(); } else { - objectSelectorBuilder_.clear(); + return java.util.Collections.unmodifiableList(variables_); } - bitField0_ = (bitField0_ & ~0x00000002); - return this; } /** *
-       * ObjectSelector decides whether to run the validation based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the cel validation, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; */ - public io.kubernetes.client.proto.Meta.LabelSelector.Builder getObjectSelectorBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getObjectSelectorFieldBuilder().getBuilder(); + public io.kubernetes.client.proto.V1Admissionregistration.Variable.Builder addVariablesBuilder() { + return getVariablesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Admissionregistration.Variable.getDefaultInstance()); } /** *
-       * ObjectSelector decides whether to run the validation based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the cel validation, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; */ - public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorOrBuilder() { - if (objectSelectorBuilder_ != null) { - return objectSelectorBuilder_.getMessageOrBuilder(); - } else { - return objectSelector_ == null ? - io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; - } + public io.kubernetes.client.proto.V1Admissionregistration.Variable.Builder addVariablesBuilder( + int index) { + return getVariablesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Admissionregistration.Variable.getDefaultInstance()); } /** *
-       * ObjectSelector decides whether to run the validation based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the cel validation, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
+       * variables contain definitions of variables that can be used in composition of other expressions.
+       * Each variable is defined as a named CEL expression.
+       * The variables defined here will be available under `variables` in other expressions of the policy
+       * except matchConditions because matchConditions are evaluated before the rest of the policy.
+       * The expression of a variable can refer to other variables defined earlier in the list but not those after.
+       * Thus, variables must be sorted by the order of first appearance and acyclic.
+       * +listType=atomic
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 2; + * repeated .k8s.io.api.admissionregistration.v1.Variable variables = 3; */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> - getObjectSelectorFieldBuilder() { - if (objectSelectorBuilder_ == null) { - objectSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( - getObjectSelector(), + public java.util.List + getVariablesBuilderList() { + return getVariablesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.Variable, io.kubernetes.client.proto.V1Admissionregistration.Variable.Builder, io.kubernetes.client.proto.V1Admissionregistration.VariableOrBuilder> + getVariablesFieldBuilder() { + if (variablesBuilder_ == null) { + variablesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.Variable, io.kubernetes.client.proto.V1Admissionregistration.Variable.Builder, io.kubernetes.client.proto.V1Admissionregistration.VariableOrBuilder>( + variables_, + ((bitField0_ & 0x00000004) == 0x00000004), getParentForChildren(), isClean()); - objectSelector_ = null; + variables_ = null; } - return objectSelectorBuilder_; + return variablesBuilder_; } - private java.util.List resourceRules_ = + private java.util.List mutations_ = java.util.Collections.emptyList(); - private void ensureResourceRulesIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - resourceRules_ = new java.util.ArrayList(resourceRules_); - bitField0_ |= 0x00000004; + private void ensureMutationsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + mutations_ = new java.util.ArrayList(mutations_); + bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder> resourceRulesBuilder_; + io.kubernetes.client.proto.V1Admissionregistration.Mutation, io.kubernetes.client.proto.V1Admissionregistration.Mutation.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutationOrBuilder> mutationsBuilder_; /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public java.util.List getResourceRulesList() { - if (resourceRulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(resourceRules_); + public java.util.List getMutationsList() { + if (mutationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mutations_); } else { - return resourceRulesBuilder_.getMessageList(); + return mutationsBuilder_.getMessageList(); } } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public int getResourceRulesCount() { - if (resourceRulesBuilder_ == null) { - return resourceRules_.size(); + public int getMutationsCount() { + if (mutationsBuilder_ == null) { + return mutations_.size(); } else { - return resourceRulesBuilder_.getCount(); + return mutationsBuilder_.getCount(); } } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations getResourceRules(int index) { - if (resourceRulesBuilder_ == null) { - return resourceRules_.get(index); + public io.kubernetes.client.proto.V1Admissionregistration.Mutation getMutations(int index) { + if (mutationsBuilder_ == null) { + return mutations_.get(index); } else { - return resourceRulesBuilder_.getMessage(index); + return mutationsBuilder_.getMessage(index); } } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public Builder setResourceRules( - int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations value) { - if (resourceRulesBuilder_ == null) { + public Builder setMutations( + int index, io.kubernetes.client.proto.V1Admissionregistration.Mutation value) { + if (mutationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureResourceRulesIsMutable(); - resourceRules_.set(index, value); + ensureMutationsIsMutable(); + mutations_.set(index, value); onChanged(); } else { - resourceRulesBuilder_.setMessage(index, value); + mutationsBuilder_.setMessage(index, value); } return this; } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public Builder setResourceRules( - int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder builderForValue) { - if (resourceRulesBuilder_ == null) { - ensureResourceRulesIsMutable(); - resourceRules_.set(index, builderForValue.build()); + public Builder setMutations( + int index, io.kubernetes.client.proto.V1Admissionregistration.Mutation.Builder builderForValue) { + if (mutationsBuilder_ == null) { + ensureMutationsIsMutable(); + mutations_.set(index, builderForValue.build()); onChanged(); } else { - resourceRulesBuilder_.setMessage(index, builderForValue.build()); + mutationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public Builder addResourceRules(io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations value) { - if (resourceRulesBuilder_ == null) { + public Builder addMutations(io.kubernetes.client.proto.V1Admissionregistration.Mutation value) { + if (mutationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureResourceRulesIsMutable(); - resourceRules_.add(value); + ensureMutationsIsMutable(); + mutations_.add(value); onChanged(); } else { - resourceRulesBuilder_.addMessage(value); + mutationsBuilder_.addMessage(value); } return this; } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public Builder addResourceRules( - int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations value) { - if (resourceRulesBuilder_ == null) { + public Builder addMutations( + int index, io.kubernetes.client.proto.V1Admissionregistration.Mutation value) { + if (mutationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureResourceRulesIsMutable(); - resourceRules_.add(index, value); + ensureMutationsIsMutable(); + mutations_.add(index, value); onChanged(); } else { - resourceRulesBuilder_.addMessage(index, value); + mutationsBuilder_.addMessage(index, value); } return this; } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public Builder addResourceRules( - io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder builderForValue) { - if (resourceRulesBuilder_ == null) { - ensureResourceRulesIsMutable(); - resourceRules_.add(builderForValue.build()); + public Builder addMutations( + io.kubernetes.client.proto.V1Admissionregistration.Mutation.Builder builderForValue) { + if (mutationsBuilder_ == null) { + ensureMutationsIsMutable(); + mutations_.add(builderForValue.build()); onChanged(); } else { - resourceRulesBuilder_.addMessage(builderForValue.build()); + mutationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public Builder addResourceRules( - int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder builderForValue) { - if (resourceRulesBuilder_ == null) { - ensureResourceRulesIsMutable(); - resourceRules_.add(index, builderForValue.build()); + public Builder addMutations( + int index, io.kubernetes.client.proto.V1Admissionregistration.Mutation.Builder builderForValue) { + if (mutationsBuilder_ == null) { + ensureMutationsIsMutable(); + mutations_.add(index, builderForValue.build()); onChanged(); } else { - resourceRulesBuilder_.addMessage(index, builderForValue.build()); + mutationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public Builder addAllResourceRules( - java.lang.Iterable values) { - if (resourceRulesBuilder_ == null) { - ensureResourceRulesIsMutable(); + public Builder addAllMutations( + java.lang.Iterable values) { + if (mutationsBuilder_ == null) { + ensureMutationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, resourceRules_); + values, mutations_); onChanged(); } else { - resourceRulesBuilder_.addAllMessages(values); + mutationsBuilder_.addAllMessages(values); } return this; } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public Builder clearResourceRules() { - if (resourceRulesBuilder_ == null) { - resourceRules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + public Builder clearMutations() { + if (mutationsBuilder_ == null) { + mutations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { - resourceRulesBuilder_.clear(); + mutationsBuilder_.clear(); } return this; } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public Builder removeResourceRules(int index) { - if (resourceRulesBuilder_ == null) { - ensureResourceRulesIsMutable(); - resourceRules_.remove(index); + public Builder removeMutations(int index) { + if (mutationsBuilder_ == null) { + ensureMutationsIsMutable(); + mutations_.remove(index); onChanged(); } else { - resourceRulesBuilder_.remove(index); + mutationsBuilder_.remove(index); } return this; } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder getResourceRulesBuilder( + public io.kubernetes.client.proto.V1Admissionregistration.Mutation.Builder getMutationsBuilder( int index) { - return getResourceRulesFieldBuilder().getBuilder(index); + return getMutationsFieldBuilder().getBuilder(index); } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder getResourceRulesOrBuilder( + public io.kubernetes.client.proto.V1Admissionregistration.MutationOrBuilder getMutationsOrBuilder( int index) { - if (resourceRulesBuilder_ == null) { - return resourceRules_.get(index); } else { - return resourceRulesBuilder_.getMessageOrBuilder(index); + if (mutationsBuilder_ == null) { + return mutations_.get(index); } else { + return mutationsBuilder_.getMessageOrBuilder(index); } } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public java.util.List - getResourceRulesOrBuilderList() { - if (resourceRulesBuilder_ != null) { - return resourceRulesBuilder_.getMessageOrBuilderList(); + public java.util.List + getMutationsOrBuilderList() { + if (mutationsBuilder_ != null) { + return mutationsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(resourceRules_); + return java.util.Collections.unmodifiableList(mutations_); } } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder addResourceRulesBuilder() { - return getResourceRulesFieldBuilder().addBuilder( - io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.getDefaultInstance()); + public io.kubernetes.client.proto.V1Admissionregistration.Mutation.Builder addMutationsBuilder() { + return getMutationsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Admissionregistration.Mutation.getDefaultInstance()); } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder addResourceRulesBuilder( + public io.kubernetes.client.proto.V1Admissionregistration.Mutation.Builder addMutationsBuilder( int index) { - return getResourceRulesFieldBuilder().addBuilder( - index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.getDefaultInstance()); + return getMutationsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Admissionregistration.Mutation.getDefaultInstance()); } /** *
-       * ResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy matches.
-       * The policy cares about an operation if it matches _any_ Rule.
+       * mutations contain operations to perform on matching objects.
+       * mutations may not be empty; a minimum of one mutation is required.
+       * mutations are evaluated in order, and are reinvoked according to
+       * the reinvocationPolicy.
+       * The mutations of a policy are invoked for each binding of this policy
+       * and reinvocation of mutations occurs on a per binding basis.
        * +listType=atomic
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations resourceRules = 3; + * repeated .k8s.io.api.admissionregistration.v1.Mutation mutations = 4; */ - public java.util.List - getResourceRulesBuilderList() { - return getResourceRulesFieldBuilder().getBuilderList(); + public java.util.List + getMutationsBuilderList() { + return getMutationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder> - getResourceRulesFieldBuilder() { - if (resourceRulesBuilder_ == null) { - resourceRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder>( - resourceRules_, - ((bitField0_ & 0x00000004) == 0x00000004), + io.kubernetes.client.proto.V1Admissionregistration.Mutation, io.kubernetes.client.proto.V1Admissionregistration.Mutation.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutationOrBuilder> + getMutationsFieldBuilder() { + if (mutationsBuilder_ == null) { + mutationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.Mutation, io.kubernetes.client.proto.V1Admissionregistration.Mutation.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutationOrBuilder>( + mutations_, + ((bitField0_ & 0x00000008) == 0x00000008), getParentForChildren(), isClean()); - resourceRules_ = null; + mutations_ = null; } - return resourceRulesBuilder_; + return mutationsBuilder_; } - private java.util.List excludeResourceRules_ = + private java.lang.Object failurePolicy_ = ""; + /** + *
+       * failurePolicy defines how to handle failures for the admission policy. Failures can
+       * occur from CEL expression parse errors, type check errors, runtime errors and invalid
+       * or mis-configured policy definitions or bindings.
+       * A policy is invalid if paramKind refers to a non-existent Kind.
+       * A binding is invalid if paramRef.name refers to a non-existent resource.
+       * failurePolicy does not define how validations that evaluate to false are handled.
+       * Allowed values are Ignore or Fail. Defaults to Fail.
+       * +optional
+       * 
+ * + * optional string failurePolicy = 5; + */ + public boolean hasFailurePolicy() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+       * failurePolicy defines how to handle failures for the admission policy. Failures can
+       * occur from CEL expression parse errors, type check errors, runtime errors and invalid
+       * or mis-configured policy definitions or bindings.
+       * A policy is invalid if paramKind refers to a non-existent Kind.
+       * A binding is invalid if paramRef.name refers to a non-existent resource.
+       * failurePolicy does not define how validations that evaluate to false are handled.
+       * Allowed values are Ignore or Fail. Defaults to Fail.
+       * +optional
+       * 
+ * + * optional string failurePolicy = 5; + */ + public java.lang.String getFailurePolicy() { + java.lang.Object ref = failurePolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + failurePolicy_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * failurePolicy defines how to handle failures for the admission policy. Failures can
+       * occur from CEL expression parse errors, type check errors, runtime errors and invalid
+       * or mis-configured policy definitions or bindings.
+       * A policy is invalid if paramKind refers to a non-existent Kind.
+       * A binding is invalid if paramRef.name refers to a non-existent resource.
+       * failurePolicy does not define how validations that evaluate to false are handled.
+       * Allowed values are Ignore or Fail. Defaults to Fail.
+       * +optional
+       * 
+ * + * optional string failurePolicy = 5; + */ + public com.google.protobuf.ByteString + getFailurePolicyBytes() { + java.lang.Object ref = failurePolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failurePolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * failurePolicy defines how to handle failures for the admission policy. Failures can
+       * occur from CEL expression parse errors, type check errors, runtime errors and invalid
+       * or mis-configured policy definitions or bindings.
+       * A policy is invalid if paramKind refers to a non-existent Kind.
+       * A binding is invalid if paramRef.name refers to a non-existent resource.
+       * failurePolicy does not define how validations that evaluate to false are handled.
+       * Allowed values are Ignore or Fail. Defaults to Fail.
+       * +optional
+       * 
+ * + * optional string failurePolicy = 5; + */ + public Builder setFailurePolicy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + failurePolicy_ = value; + onChanged(); + return this; + } + /** + *
+       * failurePolicy defines how to handle failures for the admission policy. Failures can
+       * occur from CEL expression parse errors, type check errors, runtime errors and invalid
+       * or mis-configured policy definitions or bindings.
+       * A policy is invalid if paramKind refers to a non-existent Kind.
+       * A binding is invalid if paramRef.name refers to a non-existent resource.
+       * failurePolicy does not define how validations that evaluate to false are handled.
+       * Allowed values are Ignore or Fail. Defaults to Fail.
+       * +optional
+       * 
+ * + * optional string failurePolicy = 5; + */ + public Builder clearFailurePolicy() { + bitField0_ = (bitField0_ & ~0x00000010); + failurePolicy_ = getDefaultInstance().getFailurePolicy(); + onChanged(); + return this; + } + /** + *
+       * failurePolicy defines how to handle failures for the admission policy. Failures can
+       * occur from CEL expression parse errors, type check errors, runtime errors and invalid
+       * or mis-configured policy definitions or bindings.
+       * A policy is invalid if paramKind refers to a non-existent Kind.
+       * A binding is invalid if paramRef.name refers to a non-existent resource.
+       * failurePolicy does not define how validations that evaluate to false are handled.
+       * Allowed values are Ignore or Fail. Defaults to Fail.
+       * +optional
+       * 
+ * + * optional string failurePolicy = 5; + */ + public Builder setFailurePolicyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + failurePolicy_ = value; + onChanged(); + return this; + } + + private java.util.List matchConditions_ = java.util.Collections.emptyList(); - private void ensureExcludeResourceRulesIsMutable() { - if (!((bitField0_ & 0x00000008) == 0x00000008)) { - excludeResourceRules_ = new java.util.ArrayList(excludeResourceRules_); - bitField0_ |= 0x00000008; + private void ensureMatchConditionsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + matchConditions_ = new java.util.ArrayList(matchConditions_); + bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder> excludeResourceRulesBuilder_; + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder> matchConditionsBuilder_; /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public java.util.List getExcludeResourceRulesList() { - if (excludeResourceRulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(excludeResourceRules_); + public java.util.List getMatchConditionsList() { + if (matchConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(matchConditions_); } else { - return excludeResourceRulesBuilder_.getMessageList(); + return matchConditionsBuilder_.getMessageList(); } } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public int getExcludeResourceRulesCount() { - if (excludeResourceRulesBuilder_ == null) { - return excludeResourceRules_.size(); + public int getMatchConditionsCount() { + if (matchConditionsBuilder_ == null) { + return matchConditions_.size(); } else { - return excludeResourceRulesBuilder_.getCount(); + return matchConditionsBuilder_.getCount(); } } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations getExcludeResourceRules(int index) { - if (excludeResourceRulesBuilder_ == null) { - return excludeResourceRules_.get(index); + public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getMatchConditions(int index) { + if (matchConditionsBuilder_ == null) { + return matchConditions_.get(index); } else { - return excludeResourceRulesBuilder_.getMessage(index); + return matchConditionsBuilder_.getMessage(index); } } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public Builder setExcludeResourceRules( - int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations value) { - if (excludeResourceRulesBuilder_ == null) { + public Builder setMatchConditions( + int index, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition value) { + if (matchConditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureExcludeResourceRulesIsMutable(); - excludeResourceRules_.set(index, value); + ensureMatchConditionsIsMutable(); + matchConditions_.set(index, value); onChanged(); } else { - excludeResourceRulesBuilder_.setMessage(index, value); + matchConditionsBuilder_.setMessage(index, value); } return this; } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public Builder setExcludeResourceRules( - int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder builderForValue) { - if (excludeResourceRulesBuilder_ == null) { - ensureExcludeResourceRulesIsMutable(); - excludeResourceRules_.set(index, builderForValue.build()); + public Builder setMatchConditions( + int index, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder builderForValue) { + if (matchConditionsBuilder_ == null) { + ensureMatchConditionsIsMutable(); + matchConditions_.set(index, builderForValue.build()); onChanged(); } else { - excludeResourceRulesBuilder_.setMessage(index, builderForValue.build()); + matchConditionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public Builder addExcludeResourceRules(io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations value) { - if (excludeResourceRulesBuilder_ == null) { + public Builder addMatchConditions(io.kubernetes.client.proto.V1Admissionregistration.MatchCondition value) { + if (matchConditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureExcludeResourceRulesIsMutable(); - excludeResourceRules_.add(value); + ensureMatchConditionsIsMutable(); + matchConditions_.add(value); onChanged(); } else { - excludeResourceRulesBuilder_.addMessage(value); + matchConditionsBuilder_.addMessage(value); } return this; } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public Builder addExcludeResourceRules( - int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations value) { - if (excludeResourceRulesBuilder_ == null) { + public Builder addMatchConditions( + int index, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition value) { + if (matchConditionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureExcludeResourceRulesIsMutable(); - excludeResourceRules_.add(index, value); + ensureMatchConditionsIsMutable(); + matchConditions_.add(index, value); onChanged(); } else { - excludeResourceRulesBuilder_.addMessage(index, value); + matchConditionsBuilder_.addMessage(index, value); } return this; } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public Builder addExcludeResourceRules( - io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder builderForValue) { - if (excludeResourceRulesBuilder_ == null) { - ensureExcludeResourceRulesIsMutable(); - excludeResourceRules_.add(builderForValue.build()); + public Builder addMatchConditions( + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder builderForValue) { + if (matchConditionsBuilder_ == null) { + ensureMatchConditionsIsMutable(); + matchConditions_.add(builderForValue.build()); onChanged(); } else { - excludeResourceRulesBuilder_.addMessage(builderForValue.build()); + matchConditionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public Builder addExcludeResourceRules( - int index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder builderForValue) { - if (excludeResourceRulesBuilder_ == null) { - ensureExcludeResourceRulesIsMutable(); - excludeResourceRules_.add(index, builderForValue.build()); + public Builder addMatchConditions( + int index, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder builderForValue) { + if (matchConditionsBuilder_ == null) { + ensureMatchConditionsIsMutable(); + matchConditions_.add(index, builderForValue.build()); onChanged(); } else { - excludeResourceRulesBuilder_.addMessage(index, builderForValue.build()); + matchConditionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public Builder addAllExcludeResourceRules( - java.lang.Iterable values) { - if (excludeResourceRulesBuilder_ == null) { - ensureExcludeResourceRulesIsMutable(); + public Builder addAllMatchConditions( + java.lang.Iterable values) { + if (matchConditionsBuilder_ == null) { + ensureMatchConditionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, excludeResourceRules_); + values, matchConditions_); onChanged(); } else { - excludeResourceRulesBuilder_.addAllMessages(values); + matchConditionsBuilder_.addAllMessages(values); } return this; } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public Builder clearExcludeResourceRules() { - if (excludeResourceRulesBuilder_ == null) { - excludeResourceRules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); + public Builder clearMatchConditions() { + if (matchConditionsBuilder_ == null) { + matchConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { - excludeResourceRulesBuilder_.clear(); + matchConditionsBuilder_.clear(); } return this; } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public Builder removeExcludeResourceRules(int index) { - if (excludeResourceRulesBuilder_ == null) { - ensureExcludeResourceRulesIsMutable(); - excludeResourceRules_.remove(index); + public Builder removeMatchConditions(int index) { + if (matchConditionsBuilder_ == null) { + ensureMatchConditionsIsMutable(); + matchConditions_.remove(index); onChanged(); } else { - excludeResourceRulesBuilder_.remove(index); + matchConditionsBuilder_.remove(index); } return this; } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder getExcludeResourceRulesBuilder( + public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder getMatchConditionsBuilder( int index) { - return getExcludeResourceRulesFieldBuilder().getBuilder(index); + return getMatchConditionsFieldBuilder().getBuilder(index); } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder getExcludeResourceRulesOrBuilder( + public io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder getMatchConditionsOrBuilder( int index) { - if (excludeResourceRulesBuilder_ == null) { - return excludeResourceRules_.get(index); } else { - return excludeResourceRulesBuilder_.getMessageOrBuilder(index); + if (matchConditionsBuilder_ == null) { + return matchConditions_.get(index); } else { + return matchConditionsBuilder_.getMessageOrBuilder(index); } } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public java.util.List - getExcludeResourceRulesOrBuilderList() { - if (excludeResourceRulesBuilder_ != null) { - return excludeResourceRulesBuilder_.getMessageOrBuilderList(); + public java.util.List + getMatchConditionsOrBuilderList() { + if (matchConditionsBuilder_ != null) { + return matchConditionsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(excludeResourceRules_); + return java.util.Collections.unmodifiableList(matchConditions_); } } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder addExcludeResourceRulesBuilder() { - return getExcludeResourceRulesFieldBuilder().addBuilder( - io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.getDefaultInstance()); + public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder addMatchConditionsBuilder() { + return getMatchConditionsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.getDefaultInstance()); } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder addExcludeResourceRulesBuilder( + public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder addMatchConditionsBuilder( int index) { - return getExcludeResourceRulesFieldBuilder().addBuilder( - index, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.getDefaultInstance()); + return getMatchConditionsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.getDefaultInstance()); } /** *
-       * ExcludeResourceRules describes what operations on what resources/subresources the ValidatingAdmissionPolicy should not care about.
-       * The exclude rules take precedence over include rules (if a resource matches both, it is excluded)
-       * +listType=atomic
+       * matchConditions is a list of conditions that must be met for a request to be validated.
+       * Match conditions filter requests that have already been matched by the matchConstraints.
+       * An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * If a parameter object is provided, it can be accessed via the `params` handle in the same
+       * manner as validation expressions.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the policy is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the policy is evaluated.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the policy is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.NamedRuleWithOperations excludeResourceRules = 4; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 6; */ - public java.util.List - getExcludeResourceRulesBuilderList() { - return getExcludeResourceRulesFieldBuilder().getBuilderList(); + public java.util.List + getMatchConditionsBuilderList() { + return getMatchConditionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder> - getExcludeResourceRulesFieldBuilder() { - if (excludeResourceRulesBuilder_ == null) { - excludeResourceRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.NamedRuleWithOperationsOrBuilder>( - excludeResourceRules_, - ((bitField0_ & 0x00000008) == 0x00000008), + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder> + getMatchConditionsFieldBuilder() { + if (matchConditionsBuilder_ == null) { + matchConditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder>( + matchConditions_, + ((bitField0_ & 0x00000020) == 0x00000020), getParentForChildren(), isClean()); - excludeResourceRules_ = null; + matchConditions_ = null; } - return excludeResourceRulesBuilder_; + return matchConditionsBuilder_; } - private java.lang.Object matchPolicy_ = ""; + private java.lang.Object reinvocationPolicy_ = ""; /** *
-       * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
-       * Allowed values are "Exact" or "Equivalent".
-       * - Exact: match a request only if it exactly matches a specified rule.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
-       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
-       * Defaults to "Equivalent"
-       * +optional
+       * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding
+       * as part of a single admission evaluation.
+       * Allowed values are "Never" and "IfNeeded".
+       * Never: These mutations will not be called more than once per binding in a single admission evaluation.
+       * IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of
+       * order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies.  Mutations are only
+       * reinvoked when mutations change the object after this mutation is invoked.
+       * Required.
        * 
* - * optional string matchPolicy = 7; + * optional string reinvocationPolicy = 7; */ - public boolean hasMatchPolicy() { - return ((bitField0_ & 0x00000010) == 0x00000010); + public boolean hasReinvocationPolicy() { + return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
-       * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
-       * Allowed values are "Exact" or "Equivalent".
-       * - Exact: match a request only if it exactly matches a specified rule.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
-       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
-       * Defaults to "Equivalent"
-       * +optional
+       * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding
+       * as part of a single admission evaluation.
+       * Allowed values are "Never" and "IfNeeded".
+       * Never: These mutations will not be called more than once per binding in a single admission evaluation.
+       * IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of
+       * order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies.  Mutations are only
+       * reinvoked when mutations change the object after this mutation is invoked.
+       * Required.
        * 
* - * optional string matchPolicy = 7; + * optional string reinvocationPolicy = 7; */ - public java.lang.String getMatchPolicy() { - java.lang.Object ref = matchPolicy_; + public java.lang.String getReinvocationPolicy() { + java.lang.Object ref = reinvocationPolicy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - matchPolicy_ = s; + reinvocationPolicy_ = s; } return s; } else { @@ -6107,30 +18012,26 @@ public java.lang.String getMatchPolicy() { } /** *
-       * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
-       * Allowed values are "Exact" or "Equivalent".
-       * - Exact: match a request only if it exactly matches a specified rule.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
-       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
-       * Defaults to "Equivalent"
-       * +optional
+       * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding
+       * as part of a single admission evaluation.
+       * Allowed values are "Never" and "IfNeeded".
+       * Never: These mutations will not be called more than once per binding in a single admission evaluation.
+       * IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of
+       * order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies.  Mutations are only
+       * reinvoked when mutations change the object after this mutation is invoked.
+       * Required.
        * 
* - * optional string matchPolicy = 7; + * optional string reinvocationPolicy = 7; */ public com.google.protobuf.ByteString - getMatchPolicyBytes() { - java.lang.Object ref = matchPolicy_; + getReinvocationPolicyBytes() { + java.lang.Object ref = reinvocationPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - matchPolicy_ = b; + reinvocationPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -6138,81 +18039,69 @@ public java.lang.String getMatchPolicy() { } /** *
-       * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
-       * Allowed values are "Exact" or "Equivalent".
-       * - Exact: match a request only if it exactly matches a specified rule.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
-       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
-       * Defaults to "Equivalent"
-       * +optional
+       * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding
+       * as part of a single admission evaluation.
+       * Allowed values are "Never" and "IfNeeded".
+       * Never: These mutations will not be called more than once per binding in a single admission evaluation.
+       * IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of
+       * order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies.  Mutations are only
+       * reinvoked when mutations change the object after this mutation is invoked.
+       * Required.
        * 
* - * optional string matchPolicy = 7; + * optional string reinvocationPolicy = 7; */ - public Builder setMatchPolicy( + public Builder setReinvocationPolicy( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; - matchPolicy_ = value; + bitField0_ |= 0x00000040; + reinvocationPolicy_ = value; onChanged(); return this; } /** *
-       * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
-       * Allowed values are "Exact" or "Equivalent".
-       * - Exact: match a request only if it exactly matches a specified rule.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
-       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
-       * Defaults to "Equivalent"
-       * +optional
+       * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding
+       * as part of a single admission evaluation.
+       * Allowed values are "Never" and "IfNeeded".
+       * Never: These mutations will not be called more than once per binding in a single admission evaluation.
+       * IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of
+       * order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies.  Mutations are only
+       * reinvoked when mutations change the object after this mutation is invoked.
+       * Required.
        * 
* - * optional string matchPolicy = 7; + * optional string reinvocationPolicy = 7; */ - public Builder clearMatchPolicy() { - bitField0_ = (bitField0_ & ~0x00000010); - matchPolicy_ = getDefaultInstance().getMatchPolicy(); + public Builder clearReinvocationPolicy() { + bitField0_ = (bitField0_ & ~0x00000040); + reinvocationPolicy_ = getDefaultInstance().getReinvocationPolicy(); onChanged(); return this; } /** *
-       * matchPolicy defines how the "MatchResources" list is used to match incoming requests.
-       * Allowed values are "Exact" or "Equivalent".
-       * - Exact: match a request only if it exactly matches a specified rule.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the ValidatingAdmissionPolicy.
-       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the ValidatingAdmissionPolicy.
-       * Defaults to "Equivalent"
-       * +optional
+       * reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding
+       * as part of a single admission evaluation.
+       * Allowed values are "Never" and "IfNeeded".
+       * Never: These mutations will not be called more than once per binding in a single admission evaluation.
+       * IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of
+       * order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies.  Mutations are only
+       * reinvoked when mutations change the object after this mutation is invoked.
+       * Required.
        * 
* - * optional string matchPolicy = 7; + * optional string reinvocationPolicy = 7; */ - public Builder setMatchPolicyBytes( + public Builder setReinvocationPolicyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000010; - matchPolicy_ = value; + bitField0_ |= 0x00000040; + reinvocationPolicy_ = value; onChanged(); return this; } @@ -6229,41 +18118,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MatchResources) + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec) } - // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MatchResources) - private static final io.kubernetes.client.proto.V1Admissionregistration.MatchResources DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MutatingAdmissionPolicySpec) + private static final io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MatchResources(); + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec(); } - public static io.kubernetes.client.proto.V1Admissionregistration.MatchResources getDefaultInstance() { + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec getDefaultInstance() { return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public MatchResources parsePartialFrom( + public MutatingAdmissionPolicySpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MatchResources(input, extensionRegistry); + return new MutatingAdmissionPolicySpec(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MatchResources getDefaultInstanceForType() { + public io.kubernetes.client.proto.V1Admissionregistration.MutatingAdmissionPolicySpec getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -6275,7 +18164,7 @@ public interface MutatingWebhookOrBuilder extends /** *
-     * The name of the admission webhook.
+     * name is the name of the admission webhook.
      * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
      * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
      * of the organization.
@@ -6287,7 +18176,7 @@ public interface MutatingWebhookOrBuilder extends
     boolean hasName();
     /**
      * 
-     * The name of the admission webhook.
+     * name is the name of the admission webhook.
      * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
      * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
      * of the organization.
@@ -6299,7 +18188,7 @@ public interface MutatingWebhookOrBuilder extends
     java.lang.String getName();
     /**
      * 
-     * The name of the admission webhook.
+     * name is the name of the admission webhook.
      * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
      * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
      * of the organization.
@@ -6313,7 +18202,7 @@ public interface MutatingWebhookOrBuilder extends
 
     /**
      * 
-     * ClientConfig defines how to communicate with the hook.
+     * clientConfig defines how to communicate with the hook.
      * Required
      * 
* @@ -6322,7 +18211,7 @@ public interface MutatingWebhookOrBuilder extends boolean hasClientConfig(); /** *
-     * ClientConfig defines how to communicate with the hook.
+     * clientConfig defines how to communicate with the hook.
      * Required
      * 
* @@ -6331,7 +18220,7 @@ public interface MutatingWebhookOrBuilder extends io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig getClientConfig(); /** *
-     * ClientConfig defines how to communicate with the hook.
+     * clientConfig defines how to communicate with the hook.
      * Required
      * 
* @@ -6341,7 +18230,7 @@ public interface MutatingWebhookOrBuilder extends /** *
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -6356,7 +18245,7 @@ public interface MutatingWebhookOrBuilder extends
         getRulesList();
     /**
      * 
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -6370,7 +18259,7 @@ public interface MutatingWebhookOrBuilder extends
     io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations getRules(int index);
     /**
      * 
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -6384,7 +18273,7 @@ public interface MutatingWebhookOrBuilder extends
     int getRulesCount();
     /**
      * 
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -6399,7 +18288,7 @@ public interface MutatingWebhookOrBuilder extends
         getRulesOrBuilderList();
     /**
      * 
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -6415,7 +18304,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
 
     /**
      * 
-     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+     * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
      * allowed values are Ignore or Fail. Defaults to Fail.
      * +optional
      * 
@@ -6425,7 +18314,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g boolean hasFailurePolicy(); /** *
-     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+     * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
      * allowed values are Ignore or Fail. Defaults to Fail.
      * +optional
      * 
@@ -6435,7 +18324,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g java.lang.String getFailurePolicy(); /** *
-     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+     * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
      * allowed values are Ignore or Fail. Defaults to Fail.
      * +optional
      * 
@@ -6506,7 +18395,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g /** *
-     * NamespaceSelector decides whether to run the webhook on an object based
+     * namespaceSelector decides whether to run the webhook on an object based
      * on whether the namespace for that object matches the selector. If the
      * object itself is a namespace, the matching is performed on
      * object.metadata.labels. If the object is another cluster scoped resource,
@@ -6553,7 +18442,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     boolean hasNamespaceSelector();
     /**
      * 
-     * NamespaceSelector decides whether to run the webhook on an object based
+     * namespaceSelector decides whether to run the webhook on an object based
      * on whether the namespace for that object matches the selector. If the
      * object itself is a namespace, the matching is performed on
      * object.metadata.labels. If the object is another cluster scoped resource,
@@ -6600,7 +18489,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector();
     /**
      * 
-     * NamespaceSelector decides whether to run the webhook on an object based
+     * namespaceSelector decides whether to run the webhook on an object based
      * on whether the namespace for that object matches the selector. If the
      * object itself is a namespace, the matching is performed on
      * object.metadata.labels. If the object is another cluster scoped resource,
@@ -6648,7 +18537,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
 
     /**
      * 
-     * ObjectSelector decides whether to run the webhook based on if the
+     * objectSelector decides whether to run the webhook based on if the
      * object has matching labels. objectSelector is evaluated against both
      * the oldObject and newObject that would be sent to the webhook, and
      * is considered to match if either object matches the selector. A null
@@ -6667,7 +18556,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     boolean hasObjectSelector();
     /**
      * 
-     * ObjectSelector decides whether to run the webhook based on if the
+     * objectSelector decides whether to run the webhook based on if the
      * object has matching labels. objectSelector is evaluated against both
      * the oldObject and newObject that would be sent to the webhook, and
      * is considered to match if either object matches the selector. A null
@@ -6686,7 +18575,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector();
     /**
      * 
-     * ObjectSelector decides whether to run the webhook based on if the
+     * objectSelector decides whether to run the webhook based on if the
      * object has matching labels. objectSelector is evaluated against both
      * the oldObject and newObject that would be sent to the webhook, and
      * is considered to match if either object matches the selector. A null
@@ -6706,7 +18595,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
 
     /**
      * 
-     * SideEffects states whether this webhook has side effects.
+     * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -6719,7 +18608,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     boolean hasSideEffects();
     /**
      * 
-     * SideEffects states whether this webhook has side effects.
+     * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -6732,7 +18621,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     java.lang.String getSideEffects();
     /**
      * 
-     * SideEffects states whether this webhook has side effects.
+     * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -6747,7 +18636,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
 
     /**
      * 
-     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+     * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
      * the webhook call will be ignored or the API call will fail based on the
      * failure policy.
      * The timeout value must be between 1 and 30 seconds.
@@ -6760,7 +18649,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     boolean hasTimeoutSeconds();
     /**
      * 
-     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+     * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
      * the webhook call will be ignored or the API call will fail based on the
      * failure policy.
      * The timeout value must be between 1 and 30 seconds.
@@ -6774,7 +18663,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
 
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -6790,7 +18679,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
         getAdmissionReviewVersionsList();
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -6805,7 +18694,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     int getAdmissionReviewVersionsCount();
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -6820,7 +18709,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     java.lang.String getAdmissionReviewVersions(int index);
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -6899,7 +18788,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
 
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -6922,7 +18811,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
         getMatchConditionsList();
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -6944,7 +18833,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getMatchConditions(int index);
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -6966,7 +18855,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     int getMatchConditionsCount();
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -6989,7 +18878,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
         getMatchConditionsOrBuilderList();
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -7210,7 +19099,7 @@ private MutatingWebhook(
     private volatile java.lang.Object name_;
     /**
      * 
-     * The name of the admission webhook.
+     * name is the name of the admission webhook.
      * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
      * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
      * of the organization.
@@ -7224,7 +19113,7 @@ public boolean hasName() {
     }
     /**
      * 
-     * The name of the admission webhook.
+     * name is the name of the admission webhook.
      * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
      * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
      * of the organization.
@@ -7249,7 +19138,7 @@ public java.lang.String getName() {
     }
     /**
      * 
-     * The name of the admission webhook.
+     * name is the name of the admission webhook.
      * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
      * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
      * of the organization.
@@ -7276,7 +19165,7 @@ public java.lang.String getName() {
     private io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig clientConfig_;
     /**
      * 
-     * ClientConfig defines how to communicate with the hook.
+     * clientConfig defines how to communicate with the hook.
      * Required
      * 
* @@ -7287,7 +19176,7 @@ public boolean hasClientConfig() { } /** *
-     * ClientConfig defines how to communicate with the hook.
+     * clientConfig defines how to communicate with the hook.
      * Required
      * 
* @@ -7298,7 +19187,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig ge } /** *
-     * ClientConfig defines how to communicate with the hook.
+     * clientConfig defines how to communicate with the hook.
      * Required
      * 
* @@ -7312,7 +19201,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfigOrB private java.util.List rules_; /** *
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -7328,7 +19217,7 @@ public java.util.List
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -7345,7 +19234,7 @@ public java.util.List
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -7361,7 +19250,7 @@ public int getRulesCount() {
     }
     /**
      * 
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -7377,7 +19266,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations get
     }
     /**
      * 
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -7397,7 +19286,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBu
     private volatile java.lang.Object failurePolicy_;
     /**
      * 
-     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+     * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
      * allowed values are Ignore or Fail. Defaults to Fail.
      * +optional
      * 
@@ -7409,7 +19298,7 @@ public boolean hasFailurePolicy() { } /** *
-     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+     * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
      * allowed values are Ignore or Fail. Defaults to Fail.
      * +optional
      * 
@@ -7432,7 +19321,7 @@ public java.lang.String getFailurePolicy() { } /** *
-     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+     * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
      * allowed values are Ignore or Fail. Defaults to Fail.
      * +optional
      * 
@@ -7544,7 +19433,7 @@ public java.lang.String getMatchPolicy() { private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_; /** *
-     * NamespaceSelector decides whether to run the webhook on an object based
+     * namespaceSelector decides whether to run the webhook on an object based
      * on whether the namespace for that object matches the selector. If the
      * object itself is a namespace, the matching is performed on
      * object.metadata.labels. If the object is another cluster scoped resource,
@@ -7593,7 +19482,7 @@ public boolean hasNamespaceSelector() {
     }
     /**
      * 
-     * NamespaceSelector decides whether to run the webhook on an object based
+     * namespaceSelector decides whether to run the webhook on an object based
      * on whether the namespace for that object matches the selector. If the
      * object itself is a namespace, the matching is performed on
      * object.metadata.labels. If the object is another cluster scoped resource,
@@ -7642,7 +19531,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() {
     }
     /**
      * 
-     * NamespaceSelector decides whether to run the webhook on an object based
+     * namespaceSelector decides whether to run the webhook on an object based
      * on whether the namespace for that object matches the selector. If the
      * object itself is a namespace, the matching is performed on
      * object.metadata.labels. If the object is another cluster scoped resource,
@@ -7694,7 +19583,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelect
     private io.kubernetes.client.proto.Meta.LabelSelector objectSelector_;
     /**
      * 
-     * ObjectSelector decides whether to run the webhook based on if the
+     * objectSelector decides whether to run the webhook based on if the
      * object has matching labels. objectSelector is evaluated against both
      * the oldObject and newObject that would be sent to the webhook, and
      * is considered to match if either object matches the selector. A null
@@ -7715,7 +19604,7 @@ public boolean hasObjectSelector() {
     }
     /**
      * 
-     * ObjectSelector decides whether to run the webhook based on if the
+     * objectSelector decides whether to run the webhook based on if the
      * object has matching labels. objectSelector is evaluated against both
      * the oldObject and newObject that would be sent to the webhook, and
      * is considered to match if either object matches the selector. A null
@@ -7736,7 +19625,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector() {
     }
     /**
      * 
-     * ObjectSelector decides whether to run the webhook based on if the
+     * objectSelector decides whether to run the webhook based on if the
      * object has matching labels. objectSelector is evaluated against both
      * the oldObject and newObject that would be sent to the webhook, and
      * is considered to match if either object matches the selector. A null
@@ -7760,7 +19649,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorO
     private volatile java.lang.Object sideEffects_;
     /**
      * 
-     * SideEffects states whether this webhook has side effects.
+     * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -7775,7 +19664,7 @@ public boolean hasSideEffects() {
     }
     /**
      * 
-     * SideEffects states whether this webhook has side effects.
+     * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -7801,7 +19690,7 @@ public java.lang.String getSideEffects() {
     }
     /**
      * 
-     * SideEffects states whether this webhook has side effects.
+     * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -7829,7 +19718,7 @@ public java.lang.String getSideEffects() {
     private int timeoutSeconds_;
     /**
      * 
-     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+     * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
      * the webhook call will be ignored or the API call will fail based on the
      * failure policy.
      * The timeout value must be between 1 and 30 seconds.
@@ -7844,7 +19733,7 @@ public boolean hasTimeoutSeconds() {
     }
     /**
      * 
-     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+     * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
      * the webhook call will be ignored or the API call will fail based on the
      * failure policy.
      * The timeout value must be between 1 and 30 seconds.
@@ -7862,7 +19751,7 @@ public int getTimeoutSeconds() {
     private com.google.protobuf.LazyStringList admissionReviewVersions_;
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -7880,7 +19769,7 @@ public int getTimeoutSeconds() {
     }
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -7897,7 +19786,7 @@ public int getAdmissionReviewVersionsCount() {
     }
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -7914,7 +19803,7 @@ public java.lang.String getAdmissionReviewVersions(int index) {
     }
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -8025,7 +19914,7 @@ public java.lang.String getReinvocationPolicy() {
     private java.util.List matchConditions_;
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -8049,7 +19938,7 @@ public java.util.List
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -8074,7 +19963,7 @@ public java.util.List
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -8098,7 +19987,7 @@ public int getMatchConditionsCount() {
     }
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -8122,7 +20011,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getMatc
     }
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -8305,1279 +20194,2725 @@ public boolean equals(final java.lang.Object obj) {
         result = result && getSideEffects()
             .equals(other.getSideEffects());
       }
-      result = result && (hasTimeoutSeconds() == other.hasTimeoutSeconds());
-      if (hasTimeoutSeconds()) {
-        result = result && (getTimeoutSeconds()
-            == other.getTimeoutSeconds());
+      result = result && (hasTimeoutSeconds() == other.hasTimeoutSeconds());
+      if (hasTimeoutSeconds()) {
+        result = result && (getTimeoutSeconds()
+            == other.getTimeoutSeconds());
+      }
+      result = result && getAdmissionReviewVersionsList()
+          .equals(other.getAdmissionReviewVersionsList());
+      result = result && (hasReinvocationPolicy() == other.hasReinvocationPolicy());
+      if (hasReinvocationPolicy()) {
+        result = result && getReinvocationPolicy()
+            .equals(other.getReinvocationPolicy());
+      }
+      result = result && getMatchConditionsList()
+          .equals(other.getMatchConditionsList());
+      result = result && unknownFields.equals(other.unknownFields);
+      return result;
+    }
+
+    @java.lang.Override
+    public int hashCode() {
+      if (memoizedHashCode != 0) {
+        return memoizedHashCode;
+      }
+      int hash = 41;
+      hash = (19 * hash) + getDescriptor().hashCode();
+      if (hasName()) {
+        hash = (37 * hash) + NAME_FIELD_NUMBER;
+        hash = (53 * hash) + getName().hashCode();
+      }
+      if (hasClientConfig()) {
+        hash = (37 * hash) + CLIENTCONFIG_FIELD_NUMBER;
+        hash = (53 * hash) + getClientConfig().hashCode();
+      }
+      if (getRulesCount() > 0) {
+        hash = (37 * hash) + RULES_FIELD_NUMBER;
+        hash = (53 * hash) + getRulesList().hashCode();
+      }
+      if (hasFailurePolicy()) {
+        hash = (37 * hash) + FAILUREPOLICY_FIELD_NUMBER;
+        hash = (53 * hash) + getFailurePolicy().hashCode();
+      }
+      if (hasMatchPolicy()) {
+        hash = (37 * hash) + MATCHPOLICY_FIELD_NUMBER;
+        hash = (53 * hash) + getMatchPolicy().hashCode();
+      }
+      if (hasNamespaceSelector()) {
+        hash = (37 * hash) + NAMESPACESELECTOR_FIELD_NUMBER;
+        hash = (53 * hash) + getNamespaceSelector().hashCode();
+      }
+      if (hasObjectSelector()) {
+        hash = (37 * hash) + OBJECTSELECTOR_FIELD_NUMBER;
+        hash = (53 * hash) + getObjectSelector().hashCode();
+      }
+      if (hasSideEffects()) {
+        hash = (37 * hash) + SIDEEFFECTS_FIELD_NUMBER;
+        hash = (53 * hash) + getSideEffects().hashCode();
+      }
+      if (hasTimeoutSeconds()) {
+        hash = (37 * hash) + TIMEOUTSECONDS_FIELD_NUMBER;
+        hash = (53 * hash) + getTimeoutSeconds();
+      }
+      if (getAdmissionReviewVersionsCount() > 0) {
+        hash = (37 * hash) + ADMISSIONREVIEWVERSIONS_FIELD_NUMBER;
+        hash = (53 * hash) + getAdmissionReviewVersionsList().hashCode();
+      }
+      if (hasReinvocationPolicy()) {
+        hash = (37 * hash) + REINVOCATIONPOLICY_FIELD_NUMBER;
+        hash = (53 * hash) + getReinvocationPolicy().hashCode();
+      }
+      if (getMatchConditionsCount() > 0) {
+        hash = (37 * hash) + MATCHCONDITIONS_FIELD_NUMBER;
+        hash = (53 * hash) + getMatchConditionsList().hashCode();
+      }
+      hash = (29 * hash) + unknownFields.hashCode();
+      memoizedHashCode = hash;
+      return hash;
+    }
+
+    public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom(
+        java.nio.ByteBuffer data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data);
+    }
+    public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom(
+        java.nio.ByteBuffer data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data, extensionRegistry);
+    }
+    public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom(
+        com.google.protobuf.ByteString data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data);
+    }
+    public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom(
+        com.google.protobuf.ByteString data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data, extensionRegistry);
+    }
+    public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom(byte[] data)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data);
+    }
+    public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom(
+        byte[] data,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return PARSER.parseFrom(data, extensionRegistry);
+    }
+    public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
+    }
+    public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
+    }
+    public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseDelimitedFrom(java.io.InputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input);
+    }
+    public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseDelimitedFrom(
+        java.io.InputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    }
+    public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom(
+        com.google.protobuf.CodedInputStream input)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input);
+    }
+    public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws java.io.IOException {
+      return com.google.protobuf.GeneratedMessageV3
+          .parseWithIOException(PARSER, input, extensionRegistry);
+    }
+
+    @java.lang.Override
+    public Builder newBuilderForType() { return newBuilder(); }
+    public static Builder newBuilder() {
+      return DEFAULT_INSTANCE.toBuilder();
+    }
+    public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook prototype) {
+      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+    }
+    @java.lang.Override
+    public Builder toBuilder() {
+      return this == DEFAULT_INSTANCE
+          ? new Builder() : new Builder().mergeFrom(this);
+    }
+
+    @java.lang.Override
+    protected Builder newBuilderForType(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      Builder builder = new Builder(parent);
+      return builder;
+    }
+    /**
+     * 
+     * MutatingWebhook describes an admission webhook and the resources and operations it applies to.
+     * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingWebhook} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MutatingWebhook) + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhook_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhook_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getClientConfigFieldBuilder(); + getRulesFieldBuilder(); + getNamespaceSelectorFieldBuilder(); + getObjectSelectorFieldBuilder(); + getMatchConditionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (clientConfigBuilder_ == null) { + clientConfig_ = null; + } else { + clientConfigBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + rulesBuilder_.clear(); + } + failurePolicy_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + matchPolicy_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + if (namespaceSelectorBuilder_ == null) { + namespaceSelector_ = null; + } else { + namespaceSelectorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (objectSelectorBuilder_ == null) { + objectSelector_ = null; + } else { + objectSelectorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + sideEffects_ = ""; + bitField0_ = (bitField0_ & ~0x00000080); + timeoutSeconds_ = 0; + bitField0_ = (bitField0_ & ~0x00000100); + admissionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000200); + reinvocationPolicy_ = ""; + bitField0_ = (bitField0_ & ~0x00000400); + if (matchConditionsBuilder_ == null) { + matchConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + } else { + matchConditionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhook_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook build() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook result = new io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (clientConfigBuilder_ == null) { + result.clientConfig_ = clientConfig_; + } else { + result.clientConfig_ = clientConfigBuilder_.build(); + } + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000004; + } + result.failurePolicy_ = failurePolicy_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.matchPolicy_ = matchPolicy_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + if (namespaceSelectorBuilder_ == null) { + result.namespaceSelector_ = namespaceSelector_; + } else { + result.namespaceSelector_ = namespaceSelectorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + if (objectSelectorBuilder_ == null) { + result.objectSelector_ = objectSelector_; + } else { + result.objectSelector_ = objectSelectorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000040; + } + result.sideEffects_ = sideEffects_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000080; + } + result.timeoutSeconds_ = timeoutSeconds_; + if (((bitField0_ & 0x00000200) == 0x00000200)) { + admissionReviewVersions_ = admissionReviewVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.admissionReviewVersions_ = admissionReviewVersions_; + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000100; + } + result.reinvocationPolicy_ = reinvocationPolicy_; + if (matchConditionsBuilder_ == null) { + if (((bitField0_ & 0x00000800) == 0x00000800)) { + matchConditions_ = java.util.Collections.unmodifiableList(matchConditions_); + bitField0_ = (bitField0_ & ~0x00000800); + } + result.matchConditions_ = matchConditions_; + } else { + result.matchConditions_ = matchConditionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + if (other.hasClientConfig()) { + mergeClientConfig(other.getClientConfig()); + } + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000004); + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRulesFieldBuilder() : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + if (other.hasFailurePolicy()) { + bitField0_ |= 0x00000008; + failurePolicy_ = other.failurePolicy_; + onChanged(); + } + if (other.hasMatchPolicy()) { + bitField0_ |= 0x00000010; + matchPolicy_ = other.matchPolicy_; + onChanged(); + } + if (other.hasNamespaceSelector()) { + mergeNamespaceSelector(other.getNamespaceSelector()); + } + if (other.hasObjectSelector()) { + mergeObjectSelector(other.getObjectSelector()); + } + if (other.hasSideEffects()) { + bitField0_ |= 0x00000080; + sideEffects_ = other.sideEffects_; + onChanged(); + } + if (other.hasTimeoutSeconds()) { + setTimeoutSeconds(other.getTimeoutSeconds()); + } + if (!other.admissionReviewVersions_.isEmpty()) { + if (admissionReviewVersions_.isEmpty()) { + admissionReviewVersions_ = other.admissionReviewVersions_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureAdmissionReviewVersionsIsMutable(); + admissionReviewVersions_.addAll(other.admissionReviewVersions_); + } + onChanged(); + } + if (other.hasReinvocationPolicy()) { + bitField0_ |= 0x00000400; + reinvocationPolicy_ = other.reinvocationPolicy_; + onChanged(); + } + if (matchConditionsBuilder_ == null) { + if (!other.matchConditions_.isEmpty()) { + if (matchConditions_.isEmpty()) { + matchConditions_ = other.matchConditions_; + bitField0_ = (bitField0_ & ~0x00000800); + } else { + ensureMatchConditionsIsMutable(); + matchConditions_.addAll(other.matchConditions_); + } + onChanged(); + } + } else { + if (!other.matchConditions_.isEmpty()) { + if (matchConditionsBuilder_.isEmpty()) { + matchConditionsBuilder_.dispose(); + matchConditionsBuilder_ = null; + matchConditions_ = other.matchConditions_; + bitField0_ = (bitField0_ & ~0x00000800); + matchConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getMatchConditionsFieldBuilder() : null; + } else { + matchConditionsBuilder_.addAllMessages(other.matchConditions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; } - result = result && getAdmissionReviewVersionsList() - .equals(other.getAdmissionReviewVersionsList()); - result = result && (hasReinvocationPolicy() == other.hasReinvocationPolicy()); - if (hasReinvocationPolicy()) { - result = result && getReinvocationPolicy() - .equals(other.getReinvocationPolicy()); + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; } - result = result && getMatchConditionsList() - .equals(other.getMatchConditionsList()); - result = result && unknownFields.equals(other.unknownFields); - return result; - } + private int bitField0_; - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + private java.lang.Object name_ = ""; + /** + *
+       * name is the name of the admission webhook.
+       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
+       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
+       * of the organization.
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasName()) { - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); + /** + *
+       * name is the name of the admission webhook.
+       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
+       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
+       * of the organization.
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } } - if (hasClientConfig()) { - hash = (37 * hash) + CLIENTCONFIG_FIELD_NUMBER; - hash = (53 * hash) + getClientConfig().hashCode(); + /** + *
+       * name is the name of the admission webhook.
+       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
+       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
+       * of the organization.
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - if (getRulesCount() > 0) { - hash = (37 * hash) + RULES_FIELD_NUMBER; - hash = (53 * hash) + getRulesList().hashCode(); + /** + *
+       * name is the name of the admission webhook.
+       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
+       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
+       * of the organization.
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; } - if (hasFailurePolicy()) { - hash = (37 * hash) + FAILUREPOLICY_FIELD_NUMBER; - hash = (53 * hash) + getFailurePolicy().hashCode(); + /** + *
+       * name is the name of the admission webhook.
+       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
+       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
+       * of the organization.
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; } - if (hasMatchPolicy()) { - hash = (37 * hash) + MATCHPOLICY_FIELD_NUMBER; - hash = (53 * hash) + getMatchPolicy().hashCode(); + /** + *
+       * name is the name of the admission webhook.
+       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
+       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
+       * of the organization.
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; } - if (hasNamespaceSelector()) { - hash = (37 * hash) + NAMESPACESELECTOR_FIELD_NUMBER; - hash = (53 * hash) + getNamespaceSelector().hashCode(); + + private io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig clientConfig_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig, io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.Builder, io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfigOrBuilder> clientConfigBuilder_; + /** + *
+       * clientConfig defines how to communicate with the hook.
+       * Required
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + */ + public boolean hasClientConfig() { + return ((bitField0_ & 0x00000002) == 0x00000002); } - if (hasObjectSelector()) { - hash = (37 * hash) + OBJECTSELECTOR_FIELD_NUMBER; - hash = (53 * hash) + getObjectSelector().hashCode(); + /** + *
+       * clientConfig defines how to communicate with the hook.
+       * Required
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig getClientConfig() { + if (clientConfigBuilder_ == null) { + return clientConfig_ == null ? io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.getDefaultInstance() : clientConfig_; + } else { + return clientConfigBuilder_.getMessage(); + } } - if (hasSideEffects()) { - hash = (37 * hash) + SIDEEFFECTS_FIELD_NUMBER; - hash = (53 * hash) + getSideEffects().hashCode(); + /** + *
+       * clientConfig defines how to communicate with the hook.
+       * Required
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + */ + public Builder setClientConfig(io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig value) { + if (clientConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + clientConfig_ = value; + onChanged(); + } else { + clientConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; } - if (hasTimeoutSeconds()) { - hash = (37 * hash) + TIMEOUTSECONDS_FIELD_NUMBER; - hash = (53 * hash) + getTimeoutSeconds(); + /** + *
+       * clientConfig defines how to communicate with the hook.
+       * Required
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + */ + public Builder setClientConfig( + io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.Builder builderForValue) { + if (clientConfigBuilder_ == null) { + clientConfig_ = builderForValue.build(); + onChanged(); + } else { + clientConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; } - if (getAdmissionReviewVersionsCount() > 0) { - hash = (37 * hash) + ADMISSIONREVIEWVERSIONS_FIELD_NUMBER; - hash = (53 * hash) + getAdmissionReviewVersionsList().hashCode(); + /** + *
+       * clientConfig defines how to communicate with the hook.
+       * Required
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + */ + public Builder mergeClientConfig(io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig value) { + if (clientConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + clientConfig_ != null && + clientConfig_ != io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.getDefaultInstance()) { + clientConfig_ = + io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.newBuilder(clientConfig_).mergeFrom(value).buildPartial(); + } else { + clientConfig_ = value; + } + onChanged(); + } else { + clientConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; } - if (hasReinvocationPolicy()) { - hash = (37 * hash) + REINVOCATIONPOLICY_FIELD_NUMBER; - hash = (53 * hash) + getReinvocationPolicy().hashCode(); + /** + *
+       * clientConfig defines how to communicate with the hook.
+       * Required
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + */ + public Builder clearClientConfig() { + if (clientConfigBuilder_ == null) { + clientConfig_ = null; + onChanged(); + } else { + clientConfigBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; } - if (getMatchConditionsCount() > 0) { - hash = (37 * hash) + MATCHCONDITIONS_FIELD_NUMBER; - hash = (53 * hash) + getMatchConditionsList().hashCode(); + /** + *
+       * clientConfig defines how to communicate with the hook.
+       * Required
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.Builder getClientConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getClientConfigFieldBuilder().getBuilder(); } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * MutatingWebhook describes an admission webhook and the resources and operations it applies to.
-     * 
- * - * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingWebhook} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MutatingWebhook) - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhook_descriptor; + /** + *
+       * clientConfig defines how to communicate with the hook.
+       * Required
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfigOrBuilder getClientConfigOrBuilder() { + if (clientConfigBuilder_ != null) { + return clientConfigBuilder_.getMessageOrBuilder(); + } else { + return clientConfig_ == null ? + io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.getDefaultInstance() : clientConfig_; + } } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhook_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder.class); + /** + *
+       * clientConfig defines how to communicate with the hook.
+       * Required
+       * 
+ * + * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig, io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.Builder, io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfigOrBuilder> + getClientConfigFieldBuilder() { + if (clientConfigBuilder_ == null) { + clientConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig, io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.Builder, io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfigOrBuilder>( + getClientConfig(), + getParentForChildren(), + isClean()); + clientConfig_ = null; + } + return clientConfigBuilder_; } - // Construct using io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + private java.util.List rules_ = + java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000004; + } } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getClientConfigFieldBuilder(); - getRulesFieldBuilder(); - getNamespaceSelectorFieldBuilder(); - getObjectSelectorFieldBuilder(); - getMatchConditionsFieldBuilder(); + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder> rulesBuilder_; + + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); } } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (clientConfigBuilder_ == null) { - clientConfig_ = null; + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); } else { - clientConfigBuilder_.clear(); + return rulesBuilder_.getCount(); } - bitField0_ = (bitField0_ & ~0x00000002); + } + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations getRules(int index) { if (rulesBuilder_ == null) { - rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); + return rules_.get(index); } else { - rulesBuilder_.clear(); + return rulesBuilder_.getMessage(index); } - failurePolicy_ = ""; - bitField0_ = (bitField0_ & ~0x00000008); - matchPolicy_ = ""; - bitField0_ = (bitField0_ & ~0x00000010); - if (namespaceSelectorBuilder_ == null) { - namespaceSelector_ = null; + } + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public Builder setRules( + int index, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); } else { - namespaceSelectorBuilder_.clear(); + rulesBuilder_.setMessage(index, value); } - bitField0_ = (bitField0_ & ~0x00000020); - if (objectSelectorBuilder_ == null) { - objectSelector_ = null; + return this; + } + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public Builder setRules( + int index, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); } else { - objectSelectorBuilder_.clear(); + rulesBuilder_.setMessage(index, builderForValue.build()); } - bitField0_ = (bitField0_ & ~0x00000040); - sideEffects_ = ""; - bitField0_ = (bitField0_ & ~0x00000080); - timeoutSeconds_ = 0; - bitField0_ = (bitField0_ & ~0x00000100); - admissionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000200); - reinvocationPolicy_ = ""; - bitField0_ = (bitField0_ & ~0x00000400); - if (matchConditionsBuilder_ == null) { - matchConditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + return this; + } + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public Builder addRules(io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); } else { - matchConditionsBuilder_.clear(); + rulesBuilder_.addMessage(value); } return this; } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhook_descriptor; - } - - @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook getDefaultInstanceForType() { - return io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.getDefaultInstance(); - } - - @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook build() { - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public Builder addRules( + int index, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); } - return result; + return this; } - - @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook buildPartial() { - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook result = new io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) == 0x00000001)) { - to_bitField0_ |= 0x00000001; - } - result.name_ = name_; - if (((from_bitField0_ & 0x00000002) == 0x00000002)) { - to_bitField0_ |= 0x00000002; - } - if (clientConfigBuilder_ == null) { - result.clientConfig_ = clientConfig_; + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public Builder addRules( + io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); } else { - result.clientConfig_ = clientConfigBuilder_.build(); + rulesBuilder_.addMessage(builderForValue.build()); } + return this; + } + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public Builder addRules( + int index, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder builderForValue) { if (rulesBuilder_ == null) { - if (((bitField0_ & 0x00000004) == 0x00000004)) { - rules_ = java.util.Collections.unmodifiableList(rules_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.rules_ = rules_; + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); } else { - result.rules_ = rulesBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) == 0x00000008)) { - to_bitField0_ |= 0x00000004; - } - result.failurePolicy_ = failurePolicy_; - if (((from_bitField0_ & 0x00000010) == 0x00000010)) { - to_bitField0_ |= 0x00000008; - } - result.matchPolicy_ = matchPolicy_; - if (((from_bitField0_ & 0x00000020) == 0x00000020)) { - to_bitField0_ |= 0x00000010; + rulesBuilder_.addMessage(index, builderForValue.build()); } - if (namespaceSelectorBuilder_ == null) { - result.namespaceSelector_ = namespaceSelector_; + return this; + } + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rules_); + onChanged(); } else { - result.namespaceSelector_ = namespaceSelectorBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) == 0x00000040)) { - to_bitField0_ |= 0x00000020; + rulesBuilder_.addAllMessages(values); } - if (objectSelectorBuilder_ == null) { - result.objectSelector_ = objectSelector_; + return this; + } + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); } else { - result.objectSelector_ = objectSelectorBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) == 0x00000080)) { - to_bitField0_ |= 0x00000040; - } - result.sideEffects_ = sideEffects_; - if (((from_bitField0_ & 0x00000100) == 0x00000100)) { - to_bitField0_ |= 0x00000080; + rulesBuilder_.clear(); } - result.timeoutSeconds_ = timeoutSeconds_; - if (((bitField0_ & 0x00000200) == 0x00000200)) { - admissionReviewVersions_ = admissionReviewVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000200); + return this; + } + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); } - result.admissionReviewVersions_ = admissionReviewVersions_; - if (((from_bitField0_ & 0x00000400) == 0x00000400)) { - to_bitField0_ |= 0x00000100; + return this; + } + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder getRulesBuilder( + int index) { + return getRulesFieldBuilder().getBuilder(index); + } + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder getRulesOrBuilder( + int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); } else { + return rulesBuilder_.getMessageOrBuilder(index); } - result.reinvocationPolicy_ = reinvocationPolicy_; - if (matchConditionsBuilder_ == null) { - if (((bitField0_ & 0x00000800) == 0x00000800)) { - matchConditions_ = java.util.Collections.unmodifiableList(matchConditions_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.matchConditions_ = matchConditions_; + } + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); } else { - result.matchConditions_ = matchConditionsBuilder_.build(); + return java.util.Collections.unmodifiableList(rules_); } - result.bitField0_ = to_bitField0_; - onBuilt(); - return result; } - - @java.lang.Override - public Builder clone() { - return (Builder) super.clone(); + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder addRulesBuilder() { + return getRulesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.getDefaultInstance()); } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.setField(field, value); + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder addRulesBuilder( + int index) { + return getRulesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.getDefaultInstance()); } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return (Builder) super.clearField(field); + /** + *
+       * rules describes what operations on what resources/subresources the webhook cares about.
+       * The webhook cares about an operation if it matches _any_ Rule.
+       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
+       * from putting the cluster in a state which cannot be recovered from without completely
+       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
+       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + */ + public java.util.List + getRulesBuilderList() { + return getRulesFieldBuilder().getBuilderList(); } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return (Builder) super.clearOneof(oneof); + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder> + getRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder>( + rules_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + rules_ = null; + } + return rulesBuilder_; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return (Builder) super.setRepeatedField(field, index, value); + + private java.lang.Object failurePolicy_ = ""; + /** + *
+       * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
+       * allowed values are Ignore or Fail. Defaults to Fail.
+       * +optional
+       * 
+ * + * optional string failurePolicy = 4; + */ + public boolean hasFailurePolicy() { + return ((bitField0_ & 0x00000008) == 0x00000008); } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return (Builder) super.addRepeatedField(field, value); + /** + *
+       * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
+       * allowed values are Ignore or Fail. Defaults to Fail.
+       * +optional
+       * 
+ * + * optional string failurePolicy = 4; + */ + public java.lang.String getFailurePolicy() { + java.lang.Object ref = failurePolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + failurePolicy_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook) { - return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook)other); + /** + *
+       * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
+       * allowed values are Ignore or Fail. Defaults to Fail.
+       * +optional
+       * 
+ * + * optional string failurePolicy = 4; + */ + public com.google.protobuf.ByteString + getFailurePolicyBytes() { + java.lang.Object ref = failurePolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + failurePolicy_ = b; + return b; } else { - super.mergeFrom(other); - return this; + return (com.google.protobuf.ByteString) ref; } } + /** + *
+       * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
+       * allowed values are Ignore or Fail. Defaults to Fail.
+       * +optional
+       * 
+ * + * optional string failurePolicy = 4; + */ + public Builder setFailurePolicy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + failurePolicy_ = value; + onChanged(); + return this; + } + /** + *
+       * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
+       * allowed values are Ignore or Fail. Defaults to Fail.
+       * +optional
+       * 
+ * + * optional string failurePolicy = 4; + */ + public Builder clearFailurePolicy() { + bitField0_ = (bitField0_ & ~0x00000008); + failurePolicy_ = getDefaultInstance().getFailurePolicy(); + onChanged(); + return this; + } + /** + *
+       * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
+       * allowed values are Ignore or Fail. Defaults to Fail.
+       * +optional
+       * 
+ * + * optional string failurePolicy = 4; + */ + public Builder setFailurePolicyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + failurePolicy_ = value; + onChanged(); + return this; + } - public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook other) { - if (other == io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.getDefaultInstance()) return this; - if (other.hasName()) { - bitField0_ |= 0x00000001; - name_ = other.name_; - onChanged(); - } - if (other.hasClientConfig()) { - mergeClientConfig(other.getClientConfig()); - } - if (rulesBuilder_ == null) { - if (!other.rules_.isEmpty()) { - if (rules_.isEmpty()) { - rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureRulesIsMutable(); - rules_.addAll(other.rules_); - } - onChanged(); + private java.lang.Object matchPolicy_ = ""; + /** + *
+       * matchPolicy defines how the "rules" list is used to match incoming requests.
+       * Allowed values are "Exact" or "Equivalent".
+       * - Exact: match a request only if it exactly matches a specified rule.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
+       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
+       * Defaults to "Equivalent"
+       * +optional
+       * 
+ * + * optional string matchPolicy = 9; + */ + public boolean hasMatchPolicy() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+       * matchPolicy defines how the "rules" list is used to match incoming requests.
+       * Allowed values are "Exact" or "Equivalent".
+       * - Exact: match a request only if it exactly matches a specified rule.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
+       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
+       * Defaults to "Equivalent"
+       * +optional
+       * 
+ * + * optional string matchPolicy = 9; + */ + public java.lang.String getMatchPolicy() { + java.lang.Object ref = matchPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + matchPolicy_ = s; } + return s; } else { - if (!other.rules_.isEmpty()) { - if (rulesBuilder_.isEmpty()) { - rulesBuilder_.dispose(); - rulesBuilder_ = null; - rules_ = other.rules_; - bitField0_ = (bitField0_ & ~0x00000004); - rulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRulesFieldBuilder() : null; - } else { - rulesBuilder_.addAllMessages(other.rules_); - } - } - } - if (other.hasFailurePolicy()) { - bitField0_ |= 0x00000008; - failurePolicy_ = other.failurePolicy_; - onChanged(); - } - if (other.hasMatchPolicy()) { - bitField0_ |= 0x00000010; - matchPolicy_ = other.matchPolicy_; - onChanged(); - } - if (other.hasNamespaceSelector()) { - mergeNamespaceSelector(other.getNamespaceSelector()); - } - if (other.hasObjectSelector()) { - mergeObjectSelector(other.getObjectSelector()); - } - if (other.hasSideEffects()) { - bitField0_ |= 0x00000080; - sideEffects_ = other.sideEffects_; - onChanged(); - } - if (other.hasTimeoutSeconds()) { - setTimeoutSeconds(other.getTimeoutSeconds()); - } - if (!other.admissionReviewVersions_.isEmpty()) { - if (admissionReviewVersions_.isEmpty()) { - admissionReviewVersions_ = other.admissionReviewVersions_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureAdmissionReviewVersionsIsMutable(); - admissionReviewVersions_.addAll(other.admissionReviewVersions_); - } - onChanged(); - } - if (other.hasReinvocationPolicy()) { - bitField0_ |= 0x00000400; - reinvocationPolicy_ = other.reinvocationPolicy_; - onChanged(); + return (java.lang.String) ref; } - if (matchConditionsBuilder_ == null) { - if (!other.matchConditions_.isEmpty()) { - if (matchConditions_.isEmpty()) { - matchConditions_ = other.matchConditions_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensureMatchConditionsIsMutable(); - matchConditions_.addAll(other.matchConditions_); - } - onChanged(); - } + } + /** + *
+       * matchPolicy defines how the "rules" list is used to match incoming requests.
+       * Allowed values are "Exact" or "Equivalent".
+       * - Exact: match a request only if it exactly matches a specified rule.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
+       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
+       * Defaults to "Equivalent"
+       * +optional
+       * 
+ * + * optional string matchPolicy = 9; + */ + public com.google.protobuf.ByteString + getMatchPolicyBytes() { + java.lang.Object ref = matchPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + matchPolicy_ = b; + return b; } else { - if (!other.matchConditions_.isEmpty()) { - if (matchConditionsBuilder_.isEmpty()) { - matchConditionsBuilder_.dispose(); - matchConditionsBuilder_ = null; - matchConditions_ = other.matchConditions_; - bitField0_ = (bitField0_ & ~0x00000800); - matchConditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMatchConditionsFieldBuilder() : null; - } else { - matchConditionsBuilder_.addAllMessages(other.matchConditions_); - } - } + return (com.google.protobuf.ByteString) ref; } - this.mergeUnknownFields(other.unknownFields); + } + /** + *
+       * matchPolicy defines how the "rules" list is used to match incoming requests.
+       * Allowed values are "Exact" or "Equivalent".
+       * - Exact: match a request only if it exactly matches a specified rule.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
+       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
+       * Defaults to "Equivalent"
+       * +optional
+       * 
+ * + * optional string matchPolicy = 9; + */ + public Builder setMatchPolicy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + matchPolicy_ = value; onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + *
+       * matchPolicy defines how the "rules" list is used to match incoming requests.
+       * Allowed values are "Exact" or "Equivalent".
+       * - Exact: match a request only if it exactly matches a specified rule.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
+       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
+       * Defaults to "Equivalent"
+       * +optional
+       * 
+ * + * optional string matchPolicy = 9; + */ + public Builder clearMatchPolicy() { + bitField0_ = (bitField0_ & ~0x00000010); + matchPolicy_ = getDefaultInstance().getMatchPolicy(); + onChanged(); + return this; + } + /** + *
+       * matchPolicy defines how the "rules" list is used to match incoming requests.
+       * Allowed values are "Exact" or "Equivalent".
+       * - Exact: match a request only if it exactly matches a specified rule.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
+       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
+       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
+       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
+       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
+       * Defaults to "Equivalent"
+       * +optional
+       * 
+ * + * optional string matchPolicy = 9; + */ + public Builder setMatchPolicyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + matchPolicy_ = value; + onChanged(); + return this; } - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); + private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> namespaceSelectorBuilder_; + /** + *
+       * namespaceSelector decides whether to run the webhook on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the webhook.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the webhook on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; + */ + public boolean hasNamespaceSelector() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+       * namespaceSelector decides whether to run the webhook on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the webhook.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the webhook on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; + */ + public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() { + if (namespaceSelectorBuilder_ == null) { + return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; + } else { + return namespaceSelectorBuilder_.getMessage(); + } + } + /** + *
+       * namespaceSelector decides whether to run the webhook on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the webhook.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the webhook on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; + */ + public Builder setNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { + if (namespaceSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } + namespaceSelector_ = value; + onChanged(); + } else { + namespaceSelectorBuilder_.setMessage(value); } + bitField0_ |= 0x00000020; return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; + } /** *
-       * The name of the admission webhook.
-       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
-       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
-       * of the organization.
-       * Required.
+       * namespaceSelector decides whether to run the webhook on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the webhook.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the webhook on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
        * 
* - * optional string name = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; */ - public boolean hasName() { - return ((bitField0_ & 0x00000001) == 0x00000001); + public Builder setNamespaceSelector( + io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { + if (namespaceSelectorBuilder_ == null) { + namespaceSelector_ = builderForValue.build(); + onChanged(); + } else { + namespaceSelectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + return this; } /** *
-       * The name of the admission webhook.
-       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
-       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
-       * of the organization.
-       * Required.
+       * namespaceSelector decides whether to run the webhook on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the webhook.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the webhook on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
        * 
* - * optional string name = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - name_ = s; + public Builder mergeNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { + if (namespaceSelectorBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020) && + namespaceSelector_ != null && + namespaceSelector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { + namespaceSelector_ = + io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(namespaceSelector_).mergeFrom(value).buildPartial(); + } else { + namespaceSelector_ = value; } - return s; + onChanged(); } else { - return (java.lang.String) ref; + namespaceSelectorBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000020; + return this; } /** *
-       * The name of the admission webhook.
-       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
-       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
-       * of the organization.
-       * Required.
+       * namespaceSelector decides whether to run the webhook on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the webhook.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the webhook on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
        * 
* - * optional string name = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; + public Builder clearNamespaceSelector() { + if (namespaceSelectorBuilder_ == null) { + namespaceSelector_ = null; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + namespaceSelectorBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000020); + return this; } /** *
-       * The name of the admission webhook.
-       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
-       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
-       * of the organization.
-       * Required.
+       * namespaceSelector decides whether to run the webhook on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the webhook.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the webhook on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
        * 
* - * optional string name = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; + public io.kubernetes.client.proto.Meta.LabelSelector.Builder getNamespaceSelectorBuilder() { + bitField0_ |= 0x00000020; onChanged(); - return this; + return getNamespaceSelectorFieldBuilder().getBuilder(); } /** *
-       * The name of the admission webhook.
-       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
-       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
-       * of the organization.
-       * Required.
+       * namespaceSelector decides whether to run the webhook on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the webhook.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the webhook on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
        * 
* - * optional string name = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = getDefaultInstance().getName(); - onChanged(); - return this; + public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder() { + if (namespaceSelectorBuilder_ != null) { + return namespaceSelectorBuilder_.getMessageOrBuilder(); + } else { + return namespaceSelector_ == null ? + io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; + } } /** *
-       * The name of the admission webhook.
-       * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
-       * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
-       * of the organization.
-       * Required.
+       * namespaceSelector decides whether to run the webhook on an object based
+       * on whether the namespace for that object matches the selector. If the
+       * object itself is a namespace, the matching is performed on
+       * object.metadata.labels. If the object is another cluster scoped resource,
+       * it never skips the webhook.
+       * For example, to run the webhook on any objects whose namespace is not
+       * associated with "runlevel" of "0" or "1";  you will set the selector as
+       * follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "runlevel",
+       *       "operator": "NotIn",
+       *       "values": [
+       *         "0",
+       *         "1"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * If instead you want to only run the webhook on any objects whose
+       * namespace is associated with the "environment" of "prod" or "staging";
+       * you will set the selector as follows:
+       * "namespaceSelector": {
+       *   "matchExpressions": [
+       *     {
+       *       "key": "environment",
+       *       "operator": "In",
+       *       "values": [
+       *         "prod",
+       *         "staging"
+       *       ]
+       *     }
+       *   ]
+       * }
+       * See
+       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
+       * for more examples of label selectors.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
        * 
* - * optional string name = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> + getNamespaceSelectorFieldBuilder() { + if (namespaceSelectorBuilder_ == null) { + namespaceSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( + getNamespaceSelector(), + getParentForChildren(), + isClean()); + namespaceSelector_ = null; + } + return namespaceSelectorBuilder_; } - private io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig clientConfig_ = null; + private io.kubernetes.client.proto.Meta.LabelSelector objectSelector_ = null; private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig, io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.Builder, io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfigOrBuilder> clientConfigBuilder_; + io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> objectSelectorBuilder_; /** *
-       * ClientConfig defines how to communicate with the hook.
-       * Required
+       * objectSelector decides whether to run the webhook based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the webhook, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
        * 
* - * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; */ - public boolean hasClientConfig() { - return ((bitField0_ & 0x00000002) == 0x00000002); + public boolean hasObjectSelector() { + return ((bitField0_ & 0x00000040) == 0x00000040); } /** *
-       * ClientConfig defines how to communicate with the hook.
-       * Required
+       * objectSelector decides whether to run the webhook based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the webhook, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
        * 
* - * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; */ - public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig getClientConfig() { - if (clientConfigBuilder_ == null) { - return clientConfig_ == null ? io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.getDefaultInstance() : clientConfig_; + public io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector() { + if (objectSelectorBuilder_ == null) { + return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; } else { - return clientConfigBuilder_.getMessage(); + return objectSelectorBuilder_.getMessage(); } } /** *
-       * ClientConfig defines how to communicate with the hook.
-       * Required
+       * objectSelector decides whether to run the webhook based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the webhook, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
        * 
* - * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; */ - public Builder setClientConfig(io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig value) { - if (clientConfigBuilder_ == null) { + public Builder setObjectSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { + if (objectSelectorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - clientConfig_ = value; + objectSelector_ = value; onChanged(); } else { - clientConfigBuilder_.setMessage(value); + objectSelectorBuilder_.setMessage(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000040; return this; } /** *
-       * ClientConfig defines how to communicate with the hook.
-       * Required
+       * objectSelector decides whether to run the webhook based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the webhook, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
        * 
* - * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; */ - public Builder setClientConfig( - io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.Builder builderForValue) { - if (clientConfigBuilder_ == null) { - clientConfig_ = builderForValue.build(); + public Builder setObjectSelector( + io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { + if (objectSelectorBuilder_ == null) { + objectSelector_ = builderForValue.build(); onChanged(); } else { - clientConfigBuilder_.setMessage(builderForValue.build()); + objectSelectorBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000040; return this; } /** *
-       * ClientConfig defines how to communicate with the hook.
-       * Required
+       * objectSelector decides whether to run the webhook based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the webhook, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
        * 
* - * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; */ - public Builder mergeClientConfig(io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig value) { - if (clientConfigBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002) && - clientConfig_ != null && - clientConfig_ != io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.getDefaultInstance()) { - clientConfig_ = - io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.newBuilder(clientConfig_).mergeFrom(value).buildPartial(); + public Builder mergeObjectSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { + if (objectSelectorBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040) && + objectSelector_ != null && + objectSelector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { + objectSelector_ = + io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(objectSelector_).mergeFrom(value).buildPartial(); } else { - clientConfig_ = value; + objectSelector_ = value; } onChanged(); } else { - clientConfigBuilder_.mergeFrom(value); + objectSelectorBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000040; return this; } /** *
-       * ClientConfig defines how to communicate with the hook.
-       * Required
+       * objectSelector decides whether to run the webhook based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the webhook, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
        * 
* - * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; - */ - public Builder clearClientConfig() { - if (clientConfigBuilder_ == null) { - clientConfig_ = null; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; + */ + public Builder clearObjectSelector() { + if (objectSelectorBuilder_ == null) { + objectSelector_ = null; onChanged(); } else { - clientConfigBuilder_.clear(); + objectSelectorBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000040); return this; } /** *
-       * ClientConfig defines how to communicate with the hook.
-       * Required
+       * objectSelector decides whether to run the webhook based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the webhook, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
        * 
* - * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; */ - public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.Builder getClientConfigBuilder() { - bitField0_ |= 0x00000002; + public io.kubernetes.client.proto.Meta.LabelSelector.Builder getObjectSelectorBuilder() { + bitField0_ |= 0x00000040; onChanged(); - return getClientConfigFieldBuilder().getBuilder(); + return getObjectSelectorFieldBuilder().getBuilder(); } /** *
-       * ClientConfig defines how to communicate with the hook.
-       * Required
+       * objectSelector decides whether to run the webhook based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the webhook, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
        * 
* - * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; */ - public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfigOrBuilder getClientConfigOrBuilder() { - if (clientConfigBuilder_ != null) { - return clientConfigBuilder_.getMessageOrBuilder(); + public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorOrBuilder() { + if (objectSelectorBuilder_ != null) { + return objectSelectorBuilder_.getMessageOrBuilder(); } else { - return clientConfig_ == null ? - io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.getDefaultInstance() : clientConfig_; + return objectSelector_ == null ? + io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; } } /** *
-       * ClientConfig defines how to communicate with the hook.
-       * Required
+       * objectSelector decides whether to run the webhook based on if the
+       * object has matching labels. objectSelector is evaluated against both
+       * the oldObject and newObject that would be sent to the webhook, and
+       * is considered to match if either object matches the selector. A null
+       * object (oldObject in the case of create, or newObject in the case of
+       * delete) or an object that cannot have labels (like a
+       * DeploymentRollback or a PodProxyOptions object) is not considered to
+       * match.
+       * Use the object selector only if the webhook is opt-in, because end
+       * users may skip the admission webhook by setting the labels.
+       * Default to the empty LabelSelector, which matches everything.
+       * +optional
        * 
* - * optional .k8s.io.api.admissionregistration.v1.WebhookClientConfig clientConfig = 2; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; */ private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig, io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.Builder, io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfigOrBuilder> - getClientConfigFieldBuilder() { - if (clientConfigBuilder_ == null) { - clientConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig, io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.Builder, io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfigOrBuilder>( - getClientConfig(), + io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> + getObjectSelectorFieldBuilder() { + if (objectSelectorBuilder_ == null) { + objectSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( + getObjectSelector(), getParentForChildren(), isClean()); - clientConfig_ = null; + objectSelector_ = null; } - return clientConfigBuilder_; - } - - private java.util.List rules_ = - java.util.Collections.emptyList(); - private void ensureRulesIsMutable() { - if (!((bitField0_ & 0x00000004) == 0x00000004)) { - rules_ = new java.util.ArrayList(rules_); - bitField0_ |= 0x00000004; - } + return objectSelectorBuilder_; } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder> rulesBuilder_; - + private java.lang.Object sideEffects_ = ""; /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
-       * +listType=atomic
+       * sideEffects states whether this webhook has side 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 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.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * optional string sideEffects = 6; */ - public java.util.List getRulesList() { - if (rulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(rules_); - } else { - return rulesBuilder_.getMessageList(); - } + public boolean hasSideEffects() { + return ((bitField0_ & 0x00000080) == 0x00000080); } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
-       * +listType=atomic
+       * sideEffects states whether this webhook has side 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 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.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * optional string sideEffects = 6; */ - public int getRulesCount() { - if (rulesBuilder_ == null) { - return rules_.size(); + public java.lang.String getSideEffects() { + java.lang.Object ref = sideEffects_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + sideEffects_ = s; + } + return s; } else { - return rulesBuilder_.getCount(); + return (java.lang.String) ref; } } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
-       * +listType=atomic
+       * sideEffects states whether this webhook has side 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 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.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * optional string sideEffects = 6; */ - public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations getRules(int index) { - if (rulesBuilder_ == null) { - return rules_.get(index); + public com.google.protobuf.ByteString + getSideEffectsBytes() { + java.lang.Object ref = sideEffects_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + sideEffects_ = b; + return b; } else { - return rulesBuilder_.getMessage(index); + return (com.google.protobuf.ByteString) ref; } } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
-       * +listType=atomic
+       * sideEffects states whether this webhook has side 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 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.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * optional string sideEffects = 6; */ - public Builder setRules( - int index, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.set(index, value); - onChanged(); - } else { - rulesBuilder_.setMessage(index, value); - } + public Builder setSideEffects( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + sideEffects_ = value; + onChanged(); return this; } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
-       * +listType=atomic
+       * sideEffects states whether this webhook has side 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 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.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * optional string sideEffects = 6; */ - public Builder setRules( - int index, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.set(index, builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.setMessage(index, builderForValue.build()); - } + public Builder clearSideEffects() { + bitField0_ = (bitField0_ & ~0x00000080); + sideEffects_ = getDefaultInstance().getSideEffects(); + onChanged(); return this; } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
-       * +listType=atomic
+       * sideEffects states whether this webhook has side 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 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.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * optional string sideEffects = 6; */ - public Builder addRules(io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.add(value); - onChanged(); - } else { - rulesBuilder_.addMessage(value); - } + public Builder setSideEffectsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + sideEffects_ = value; + onChanged(); return this; } + + private int timeoutSeconds_ ; /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
-       * +listType=atomic
+       * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+       * the webhook call will be ignored or the API call will fail based on the
+       * failure policy.
+       * The timeout value must be between 1 and 30 seconds.
+       * Default to 10 seconds.
+       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * optional int32 timeoutSeconds = 7; */ - public Builder addRules( - int index, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations value) { - if (rulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRulesIsMutable(); - rules_.add(index, value); - onChanged(); - } else { - rulesBuilder_.addMessage(index, value); - } - return this; + public boolean hasTimeoutSeconds() { + return ((bitField0_ & 0x00000100) == 0x00000100); } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
-       * +listType=atomic
+       * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+       * the webhook call will be ignored or the API call will fail based on the
+       * failure policy.
+       * The timeout value must be between 1 and 30 seconds.
+       * Default to 10 seconds.
+       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * optional int32 timeoutSeconds = 7; */ - public Builder addRules( - io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.addMessage(builderForValue.build()); - } + public int getTimeoutSeconds() { + return timeoutSeconds_; + } + /** + *
+       * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+       * the webhook call will be ignored or the API call will fail based on the
+       * failure policy.
+       * The timeout value must be between 1 and 30 seconds.
+       * Default to 10 seconds.
+       * +optional
+       * 
+ * + * optional int32 timeoutSeconds = 7; + */ + public Builder setTimeoutSeconds(int value) { + bitField0_ |= 0x00000100; + timeoutSeconds_ = value; + onChanged(); return this; } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
-       * +listType=atomic
+       * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+       * the webhook call will be ignored or the API call will fail based on the
+       * failure policy.
+       * The timeout value must be between 1 and 30 seconds.
+       * Default to 10 seconds.
+       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * optional int32 timeoutSeconds = 7; */ - public Builder addRules( - int index, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder builderForValue) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.add(index, builderForValue.build()); - onChanged(); - } else { - rulesBuilder_.addMessage(index, builderForValue.build()); - } + public Builder clearTimeoutSeconds() { + bitField0_ = (bitField0_ & ~0x00000100); + timeoutSeconds_ = 0; + onChanged(); return this; } + + private com.google.protobuf.LazyStringList admissionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAdmissionReviewVersionsIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + admissionReviewVersions_ = new com.google.protobuf.LazyStringArrayList(admissionReviewVersions_); + bitField0_ |= 0x00000200; + } + } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * versions the Webhook expects. API server will try to use first version in
+       * the list which it supports. If none of the versions specified in this list
+       * supported by API server, validation will fail for this object.
+       * If a persisted webhook configuration specifies allowed versions and does not
+       * include any versions known to the API Server, calls to the webhook will fail
+       * and be subject to the failure policy.
        * +listType=atomic
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * repeated string admissionReviewVersions = 8; */ - public Builder addAllRules( - java.lang.Iterable values) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rules_); - onChanged(); - } else { - rulesBuilder_.addAllMessages(values); - } - return this; + public com.google.protobuf.ProtocolStringList + getAdmissionReviewVersionsList() { + return admissionReviewVersions_.getUnmodifiableView(); } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * versions the Webhook expects. API server will try to use first version in
+       * the list which it supports. If none of the versions specified in this list
+       * supported by API server, validation will fail for this object.
+       * If a persisted webhook configuration specifies allowed versions and does not
+       * include any versions known to the API Server, calls to the webhook will fail
+       * and be subject to the failure policy.
        * +listType=atomic
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * repeated string admissionReviewVersions = 8; */ - public Builder clearRules() { - if (rulesBuilder_ == null) { - rules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - rulesBuilder_.clear(); - } - return this; + public int getAdmissionReviewVersionsCount() { + return admissionReviewVersions_.size(); } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * versions the Webhook expects. API server will try to use first version in
+       * the list which it supports. If none of the versions specified in this list
+       * supported by API server, validation will fail for this object.
+       * If a persisted webhook configuration specifies allowed versions and does not
+       * include any versions known to the API Server, calls to the webhook will fail
+       * and be subject to the failure policy.
        * +listType=atomic
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * repeated string admissionReviewVersions = 8; */ - public Builder removeRules(int index) { - if (rulesBuilder_ == null) { - ensureRulesIsMutable(); - rules_.remove(index); - onChanged(); - } else { - rulesBuilder_.remove(index); - } - return this; + public java.lang.String getAdmissionReviewVersions(int index) { + return admissionReviewVersions_.get(index); } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * versions the Webhook expects. API server will try to use first version in
+       * the list which it supports. If none of the versions specified in this list
+       * supported by API server, validation will fail for this object.
+       * If a persisted webhook configuration specifies allowed versions and does not
+       * include any versions known to the API Server, calls to the webhook will fail
+       * and be subject to the failure policy.
        * +listType=atomic
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * repeated string admissionReviewVersions = 8; */ - public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder getRulesBuilder( - int index) { - return getRulesFieldBuilder().getBuilder(index); + public com.google.protobuf.ByteString + getAdmissionReviewVersionsBytes(int index) { + return admissionReviewVersions_.getByteString(index); } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * versions the Webhook expects. API server will try to use first version in
+       * the list which it supports. If none of the versions specified in this list
+       * supported by API server, validation will fail for this object.
+       * If a persisted webhook configuration specifies allowed versions and does not
+       * include any versions known to the API Server, calls to the webhook will fail
+       * and be subject to the failure policy.
        * +listType=atomic
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * repeated string admissionReviewVersions = 8; */ - public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder getRulesOrBuilder( - int index) { - if (rulesBuilder_ == null) { - return rules_.get(index); } else { - return rulesBuilder_.getMessageOrBuilder(index); - } + public Builder setAdmissionReviewVersions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdmissionReviewVersionsIsMutable(); + admissionReviewVersions_.set(index, value); + onChanged(); + return this; } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * versions the Webhook expects. API server will try to use first version in
+       * the list which it supports. If none of the versions specified in this list
+       * supported by API server, validation will fail for this object.
+       * If a persisted webhook configuration specifies allowed versions and does not
+       * include any versions known to the API Server, calls to the webhook will fail
+       * and be subject to the failure policy.
        * +listType=atomic
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * repeated string admissionReviewVersions = 8; */ - public java.util.List - getRulesOrBuilderList() { - if (rulesBuilder_ != null) { - return rulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rules_); - } + public Builder addAdmissionReviewVersions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdmissionReviewVersionsIsMutable(); + admissionReviewVersions_.add(value); + onChanged(); + return this; } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * versions the Webhook expects. API server will try to use first version in
+       * the list which it supports. If none of the versions specified in this list
+       * supported by API server, validation will fail for this object.
+       * If a persisted webhook configuration specifies allowed versions and does not
+       * include any versions known to the API Server, calls to the webhook will fail
+       * and be subject to the failure policy.
        * +listType=atomic
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * repeated string admissionReviewVersions = 8; */ - public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder addRulesBuilder() { - return getRulesFieldBuilder().addBuilder( - io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.getDefaultInstance()); + public Builder addAllAdmissionReviewVersions( + java.lang.Iterable values) { + ensureAdmissionReviewVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, admissionReviewVersions_); + onChanged(); + return this; } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * versions the Webhook expects. API server will try to use first version in
+       * the list which it supports. If none of the versions specified in this list
+       * supported by API server, validation will fail for this object.
+       * If a persisted webhook configuration specifies allowed versions and does not
+       * include any versions known to the API Server, calls to the webhook will fail
+       * and be subject to the failure policy.
        * +listType=atomic
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * repeated string admissionReviewVersions = 8; */ - public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder addRulesBuilder( - int index) { - return getRulesFieldBuilder().addBuilder( - index, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.getDefaultInstance()); + public Builder clearAdmissionReviewVersions() { + admissionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; } /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
-       * The webhook cares about an operation if it matches _any_ Rule.
-       * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
-       * from putting the cluster in a state which cannot be recovered from without completely
-       * disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called
-       * on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * versions the Webhook expects. API server will try to use first version in
+       * the list which it supports. If none of the versions specified in this list
+       * supported by API server, validation will fail for this object.
+       * If a persisted webhook configuration specifies allowed versions and does not
+       * include any versions known to the API Server, calls to the webhook will fail
+       * and be subject to the failure policy.
        * +listType=atomic
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.RuleWithOperations rules = 3; + * repeated string admissionReviewVersions = 8; */ - public java.util.List - getRulesBuilderList() { - return getRulesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder> - getRulesFieldBuilder() { - if (rulesBuilder_ == null) { - rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Builder, io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder>( - rules_, - ((bitField0_ & 0x00000004) == 0x00000004), - getParentForChildren(), - isClean()); - rules_ = null; - } - return rulesBuilder_; + public Builder addAdmissionReviewVersionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdmissionReviewVersionsIsMutable(); + admissionReviewVersions_.add(value); + onChanged(); + return this; } - private java.lang.Object failurePolicy_ = ""; + private java.lang.Object reinvocationPolicy_ = ""; /** *
-       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
-       * allowed values are Ignore or Fail. Defaults to Fail.
+       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
+       * Allowed values are "Never" and "IfNeeded".
+       * Never: the webhook will not be called more than once in a single admission evaluation.
+       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
+       * if the object being admitted is modified by other admission plugins after the initial webhook call.
+       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
+       * Note:
+       * * the number of additional invocations is not guaranteed to be exactly one.
+       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
+       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
+       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
+       * Defaults to "Never".
        * +optional
        * 
* - * optional string failurePolicy = 4; + * optional string reinvocationPolicy = 10; */ - public boolean hasFailurePolicy() { - return ((bitField0_ & 0x00000008) == 0x00000008); + public boolean hasReinvocationPolicy() { + return ((bitField0_ & 0x00000400) == 0x00000400); } /** *
-       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
-       * allowed values are Ignore or Fail. Defaults to Fail.
+       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
+       * Allowed values are "Never" and "IfNeeded".
+       * Never: the webhook will not be called more than once in a single admission evaluation.
+       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
+       * if the object being admitted is modified by other admission plugins after the initial webhook call.
+       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
+       * Note:
+       * * the number of additional invocations is not guaranteed to be exactly one.
+       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
+       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
+       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
+       * Defaults to "Never".
        * +optional
        * 
* - * optional string failurePolicy = 4; + * optional string reinvocationPolicy = 10; */ - public java.lang.String getFailurePolicy() { - java.lang.Object ref = failurePolicy_; + public java.lang.String getReinvocationPolicy() { + java.lang.Object ref = reinvocationPolicy_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { - failurePolicy_ = s; + reinvocationPolicy_ = s; } return s; } else { @@ -9586,21 +22921,31 @@ public java.lang.String getFailurePolicy() { } /** *
-       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
-       * allowed values are Ignore or Fail. Defaults to Fail.
+       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
+       * Allowed values are "Never" and "IfNeeded".
+       * Never: the webhook will not be called more than once in a single admission evaluation.
+       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
+       * if the object being admitted is modified by other admission plugins after the initial webhook call.
+       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
+       * Note:
+       * * the number of additional invocations is not guaranteed to be exactly one.
+       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
+       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
+       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
+       * Defaults to "Never".
        * +optional
        * 
* - * optional string failurePolicy = 4; + * optional string reinvocationPolicy = 10; */ public com.google.protobuf.ByteString - getFailurePolicyBytes() { - java.lang.Object ref = failurePolicy_; + getReinvocationPolicyBytes() { + java.lang.Object ref = reinvocationPolicy_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - failurePolicy_ = b; + reinvocationPolicy_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -9608,2106 +22953,1969 @@ public java.lang.String getFailurePolicy() { } /** *
-       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
-       * allowed values are Ignore or Fail. Defaults to Fail.
+       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
+       * Allowed values are "Never" and "IfNeeded".
+       * Never: the webhook will not be called more than once in a single admission evaluation.
+       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
+       * if the object being admitted is modified by other admission plugins after the initial webhook call.
+       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
+       * Note:
+       * * the number of additional invocations is not guaranteed to be exactly one.
+       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
+       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
+       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
+       * Defaults to "Never".
        * +optional
        * 
* - * optional string failurePolicy = 4; + * optional string reinvocationPolicy = 10; */ - public Builder setFailurePolicy( + public Builder setReinvocationPolicy( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; - failurePolicy_ = value; + bitField0_ |= 0x00000400; + reinvocationPolicy_ = value; onChanged(); return this; } /** *
-       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
-       * allowed values are Ignore or Fail. Defaults to Fail.
+       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
+       * Allowed values are "Never" and "IfNeeded".
+       * Never: the webhook will not be called more than once in a single admission evaluation.
+       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
+       * if the object being admitted is modified by other admission plugins after the initial webhook call.
+       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
+       * Note:
+       * * the number of additional invocations is not guaranteed to be exactly one.
+       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
+       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
+       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
+       * Defaults to "Never".
        * +optional
        * 
* - * optional string failurePolicy = 4; + * optional string reinvocationPolicy = 10; */ - public Builder clearFailurePolicy() { - bitField0_ = (bitField0_ & ~0x00000008); - failurePolicy_ = getDefaultInstance().getFailurePolicy(); + public Builder clearReinvocationPolicy() { + bitField0_ = (bitField0_ & ~0x00000400); + reinvocationPolicy_ = getDefaultInstance().getReinvocationPolicy(); onChanged(); return this; } /** *
-       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
-       * allowed values are Ignore or Fail. Defaults to Fail.
+       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
+       * Allowed values are "Never" and "IfNeeded".
+       * Never: the webhook will not be called more than once in a single admission evaluation.
+       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
+       * if the object being admitted is modified by other admission plugins after the initial webhook call.
+       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
+       * Note:
+       * * the number of additional invocations is not guaranteed to be exactly one.
+       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
+       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
+       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
+       * Defaults to "Never".
        * +optional
        * 
* - * optional string failurePolicy = 4; + * optional string reinvocationPolicy = 10; */ - public Builder setFailurePolicyBytes( + public Builder setReinvocationPolicyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000008; - failurePolicy_ = value; + bitField0_ |= 0x00000400; + reinvocationPolicy_ = value; onChanged(); return this; } - private java.lang.Object matchPolicy_ = ""; + private java.util.List matchConditions_ = + java.util.Collections.emptyList(); + private void ensureMatchConditionsIsMutable() { + if (!((bitField0_ & 0x00000800) == 0x00000800)) { + matchConditions_ = new java.util.ArrayList(matchConditions_); + bitField0_ |= 0x00000800; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder> matchConditionsBuilder_; + /** *
-       * matchPolicy defines how the "rules" list is used to match incoming requests.
-       * Allowed values are "Exact" or "Equivalent".
-       * - Exact: match a request only if it exactly matches a specified rule.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
-       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
-       * Defaults to "Equivalent"
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * optional string matchPolicy = 9; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; */ - public boolean hasMatchPolicy() { - return ((bitField0_ & 0x00000010) == 0x00000010); + public java.util.List getMatchConditionsList() { + if (matchConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(matchConditions_); + } else { + return matchConditionsBuilder_.getMessageList(); + } } /** *
-       * matchPolicy defines how the "rules" list is used to match incoming requests.
-       * Allowed values are "Exact" or "Equivalent".
-       * - Exact: match a request only if it exactly matches a specified rule.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
-       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
-       * Defaults to "Equivalent"
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * optional string matchPolicy = 9; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; */ - public java.lang.String getMatchPolicy() { - java.lang.Object ref = matchPolicy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - matchPolicy_ = s; + public int getMatchConditionsCount() { + if (matchConditionsBuilder_ == null) { + return matchConditions_.size(); + } else { + return matchConditionsBuilder_.getCount(); + } + } + /** + *
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getMatchConditions(int index) { + if (matchConditionsBuilder_ == null) { + return matchConditions_.get(index); + } else { + return matchConditionsBuilder_.getMessage(index); + } + } + /** + *
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + */ + public Builder setMatchConditions( + int index, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition value) { + if (matchConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); } - return s; + ensureMatchConditionsIsMutable(); + matchConditions_.set(index, value); + onChanged(); } else { - return (java.lang.String) ref; + matchConditionsBuilder_.setMessage(index, value); } + return this; } /** *
-       * matchPolicy defines how the "rules" list is used to match incoming requests.
-       * Allowed values are "Exact" or "Equivalent".
-       * - Exact: match a request only if it exactly matches a specified rule.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
-       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
-       * Defaults to "Equivalent"
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * optional string matchPolicy = 9; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; */ - public com.google.protobuf.ByteString - getMatchPolicyBytes() { - java.lang.Object ref = matchPolicy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - matchPolicy_ = b; - return b; + public Builder setMatchConditions( + int index, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder builderForValue) { + if (matchConditionsBuilder_ == null) { + ensureMatchConditionsIsMutable(); + matchConditions_.set(index, builderForValue.build()); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + matchConditionsBuilder_.setMessage(index, builderForValue.build()); } + return this; } /** *
-       * matchPolicy defines how the "rules" list is used to match incoming requests.
-       * Allowed values are "Exact" or "Equivalent".
-       * - Exact: match a request only if it exactly matches a specified rule.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
-       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
-       * Defaults to "Equivalent"
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * optional string matchPolicy = 9; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; */ - public Builder setMatchPolicy( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - matchPolicy_ = value; - onChanged(); + public Builder addMatchConditions(io.kubernetes.client.proto.V1Admissionregistration.MatchCondition value) { + if (matchConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchConditionsIsMutable(); + matchConditions_.add(value); + onChanged(); + } else { + matchConditionsBuilder_.addMessage(value); + } return this; } /** *
-       * matchPolicy defines how the "rules" list is used to match incoming requests.
-       * Allowed values are "Exact" or "Equivalent".
-       * - Exact: match a request only if it exactly matches a specified rule.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
-       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
-       * Defaults to "Equivalent"
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * optional string matchPolicy = 9; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + */ + public Builder addMatchConditions( + int index, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition value) { + if (matchConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMatchConditionsIsMutable(); + matchConditions_.add(index, value); + onChanged(); + } else { + matchConditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; */ - public Builder clearMatchPolicy() { - bitField0_ = (bitField0_ & ~0x00000010); - matchPolicy_ = getDefaultInstance().getMatchPolicy(); - onChanged(); + public Builder addMatchConditions( + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder builderForValue) { + if (matchConditionsBuilder_ == null) { + ensureMatchConditionsIsMutable(); + matchConditions_.add(builderForValue.build()); + onChanged(); + } else { + matchConditionsBuilder_.addMessage(builderForValue.build()); + } return this; } /** *
-       * matchPolicy defines how the "rules" list is used to match incoming requests.
-       * Allowed values are "Exact" or "Equivalent".
-       * - Exact: match a request only if it exactly matches a specified rule.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.
-       * - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version.
-       * For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1,
-       * and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: ["deployments"]`,
-       * a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.
-       * Defaults to "Equivalent"
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * optional string matchPolicy = 9; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; */ - public Builder setMatchPolicyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - matchPolicy_ = value; - onChanged(); + public Builder addMatchConditions( + int index, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder builderForValue) { + if (matchConditionsBuilder_ == null) { + ensureMatchConditionsIsMutable(); + matchConditions_.add(index, builderForValue.build()); + onChanged(); + } else { + matchConditionsBuilder_.addMessage(index, builderForValue.build()); + } return this; } - - private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> namespaceSelectorBuilder_; /** *
-       * NamespaceSelector decides whether to run the webhook on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the webhook.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the webhook on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; */ - public boolean hasNamespaceSelector() { - return ((bitField0_ & 0x00000020) == 0x00000020); + public Builder addAllMatchConditions( + java.lang.Iterable values) { + if (matchConditionsBuilder_ == null) { + ensureMatchConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, matchConditions_); + onChanged(); + } else { + matchConditionsBuilder_.addAllMessages(values); + } + return this; } /** *
-       * NamespaceSelector decides whether to run the webhook on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the webhook.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the webhook on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; */ - public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() { - if (namespaceSelectorBuilder_ == null) { - return namespaceSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; + public Builder clearMatchConditions() { + if (matchConditionsBuilder_ == null) { + matchConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); } else { - return namespaceSelectorBuilder_.getMessage(); + matchConditionsBuilder_.clear(); } + return this; } /** *
-       * NamespaceSelector decides whether to run the webhook on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the webhook.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the webhook on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; */ - public Builder setNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { - if (namespaceSelectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - namespaceSelector_ = value; + public Builder removeMatchConditions(int index) { + if (matchConditionsBuilder_ == null) { + ensureMatchConditionsIsMutable(); + matchConditions_.remove(index); onChanged(); } else { - namespaceSelectorBuilder_.setMessage(value); + matchConditionsBuilder_.remove(index); } - bitField0_ |= 0x00000020; return this; } /** *
-       * NamespaceSelector decides whether to run the webhook on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the webhook.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the webhook on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; */ - public Builder setNamespaceSelector( - io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { - if (namespaceSelectorBuilder_ == null) { - namespaceSelector_ = builderForValue.build(); - onChanged(); - } else { - namespaceSelectorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - return this; + public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder getMatchConditionsBuilder( + int index) { + return getMatchConditionsFieldBuilder().getBuilder(index); } /** *
-       * NamespaceSelector decides whether to run the webhook on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the webhook.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the webhook on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; */ - public Builder mergeNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { - if (namespaceSelectorBuilder_ == null) { - if (((bitField0_ & 0x00000020) == 0x00000020) && - namespaceSelector_ != null && - namespaceSelector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { - namespaceSelector_ = - io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(namespaceSelector_).mergeFrom(value).buildPartial(); - } else { - namespaceSelector_ = value; - } - onChanged(); - } else { - namespaceSelectorBuilder_.mergeFrom(value); + public io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder getMatchConditionsOrBuilder( + int index) { + if (matchConditionsBuilder_ == null) { + return matchConditions_.get(index); } else { + return matchConditionsBuilder_.getMessageOrBuilder(index); } - bitField0_ |= 0x00000020; - return this; } /** *
-       * NamespaceSelector decides whether to run the webhook on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the webhook.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the webhook on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; */ - public Builder clearNamespaceSelector() { - if (namespaceSelectorBuilder_ == null) { - namespaceSelector_ = null; - onChanged(); + public java.util.List + getMatchConditionsOrBuilderList() { + if (matchConditionsBuilder_ != null) { + return matchConditionsBuilder_.getMessageOrBuilderList(); } else { - namespaceSelectorBuilder_.clear(); + return java.util.Collections.unmodifiableList(matchConditions_); } - bitField0_ = (bitField0_ & ~0x00000020); - return this; } /** *
-       * NamespaceSelector decides whether to run the webhook on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the webhook.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the webhook on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; */ - public io.kubernetes.client.proto.Meta.LabelSelector.Builder getNamespaceSelectorBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getNamespaceSelectorFieldBuilder().getBuilder(); + public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder addMatchConditionsBuilder() { + return getMatchConditionsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.getDefaultInstance()); } /** *
-       * NamespaceSelector decides whether to run the webhook on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the webhook.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the webhook on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; */ - public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder() { - if (namespaceSelectorBuilder_ != null) { - return namespaceSelectorBuilder_.getMessageOrBuilder(); - } else { - return namespaceSelector_ == null ? - io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : namespaceSelector_; - } + public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder addMatchConditionsBuilder( + int index) { + return getMatchConditionsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.getDefaultInstance()); } /** *
-       * NamespaceSelector decides whether to run the webhook on an object based
-       * on whether the namespace for that object matches the selector. If the
-       * object itself is a namespace, the matching is performed on
-       * object.metadata.labels. If the object is another cluster scoped resource,
-       * it never skips the webhook.
-       * For example, to run the webhook on any objects whose namespace is not
-       * associated with "runlevel" of "0" or "1";  you will set the selector as
-       * follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "runlevel",
-       *       "operator": "NotIn",
-       *       "values": [
-       *         "0",
-       *         "1"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * If instead you want to only run the webhook on any objects whose
-       * namespace is associated with the "environment" of "prod" or "staging";
-       * you will set the selector as follows:
-       * "namespaceSelector": {
-       *   "matchExpressions": [
-       *     {
-       *       "key": "environment",
-       *       "operator": "In",
-       *       "values": [
-       *         "prod",
-       *         "staging"
-       *       ]
-       *     }
-       *   ]
-       * }
-       * See
-       * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
-       * for more examples of label selectors.
-       * Default to the empty LabelSelector, which matches everything.
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
+       * webhook. Match conditions filter requests that have already been matched by the rules,
+       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
+       * There are a maximum of 64 match conditions allowed.
+       * The exact matching logic is (in order):
+       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
+       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
+       *   3. If any matchCondition evaluates to an error (but none are FALSE):
+       *      - If failurePolicy=Fail, reject the request
+       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * +patchMergeKey=name
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=name
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 5; + * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> - getNamespaceSelectorFieldBuilder() { - if (namespaceSelectorBuilder_ == null) { - namespaceSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( - getNamespaceSelector(), + public java.util.List + getMatchConditionsBuilderList() { + return getMatchConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder> + getMatchConditionsFieldBuilder() { + if (matchConditionsBuilder_ == null) { + matchConditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MatchCondition, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder>( + matchConditions_, + ((bitField0_ & 0x00000800) == 0x00000800), getParentForChildren(), isClean()); - namespaceSelector_ = null; + matchConditions_ = null; } - return namespaceSelectorBuilder_; + return matchConditionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MutatingWebhook) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MutatingWebhook) + private static final io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook(); + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MutatingWebhook parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MutatingWebhook(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface MutatingWebhookConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * webhooks is a list of webhooks and the affected resources and operations.
+     * +optional
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + */ + java.util.List + getWebhooksList(); + /** + *
+     * webhooks is a list of webhooks and the affected resources and operations.
+     * +optional
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + */ + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook getWebhooks(int index); + /** + *
+     * webhooks is a list of webhooks and the affected resources and operations.
+     * +optional
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + */ + int getWebhooksCount(); + /** + *
+     * webhooks is a list of webhooks and the affected resources and operations.
+     * +optional
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + */ + java.util.List + getWebhooksOrBuilderList(); + /** + *
+     * webhooks is a list of webhooks and the affected resources and operations.
+     * +optional
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + */ + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookOrBuilder getWebhooksOrBuilder( + int index); + } + /** + *
+   * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.
+   * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration} + */ + public static final class MutatingWebhookConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration) + MutatingWebhookConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use MutatingWebhookConfiguration.newBuilder() to construct. + private MutatingWebhookConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MutatingWebhookConfiguration() { + webhooks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private MutatingWebhookConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + webhooks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + webhooks_.add( + input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + webhooks_ = java.util.Collections.unmodifiableList(webhooks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int WEBHOOKS_FIELD_NUMBER = 2; + private java.util.List webhooks_; + /** + *
+     * webhooks is a list of webhooks and the affected resources and operations.
+     * +optional
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + */ + public java.util.List getWebhooksList() { + return webhooks_; + } + /** + *
+     * webhooks is a list of webhooks and the affected resources and operations.
+     * +optional
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + */ + public java.util.List + getWebhooksOrBuilderList() { + return webhooks_; + } + /** + *
+     * webhooks is a list of webhooks and the affected resources and operations.
+     * +optional
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + */ + public int getWebhooksCount() { + return webhooks_.size(); + } + /** + *
+     * webhooks is a list of webhooks and the affected resources and operations.
+     * +optional
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook getWebhooks(int index) { + return webhooks_.get(index); + } + /** + *
+     * webhooks is a list of webhooks and the affected resources and operations.
+     * +optional
+     * +patchMergeKey=name
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=name
+     * 
+ * + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + */ + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookOrBuilder getWebhooksOrBuilder( + int index) { + return webhooks_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } - private io.kubernetes.client.proto.Meta.LabelSelector objectSelector_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> objectSelectorBuilder_; - /** - *
-       * ObjectSelector decides whether to run the webhook based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the webhook, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
-       * +optional
-       * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; - */ - public boolean hasObjectSelector() { - return ((bitField0_ & 0x00000040) == 0x00000040); - } - /** - *
-       * ObjectSelector decides whether to run the webhook based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the webhook, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
-       * +optional
-       * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; - */ - public io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector() { - if (objectSelectorBuilder_ == null) { - return objectSelector_ == null ? io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; - } else { - return objectSelectorBuilder_.getMessage(); - } - } - /** - *
-       * ObjectSelector decides whether to run the webhook based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the webhook, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
-       * +optional
-       * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; - */ - public Builder setObjectSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { - if (objectSelectorBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - objectSelector_ = value; - onChanged(); - } else { - objectSelectorBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - return this; + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); } - /** - *
-       * ObjectSelector decides whether to run the webhook based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the webhook, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
-       * +optional
-       * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; - */ - public Builder setObjectSelector( - io.kubernetes.client.proto.Meta.LabelSelector.Builder builderForValue) { - if (objectSelectorBuilder_ == null) { - objectSelector_ = builderForValue.build(); - onChanged(); - } else { - objectSelectorBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - return this; + for (int i = 0; i < webhooks_.size(); i++) { + output.writeMessage(2, webhooks_.get(i)); } - /** - *
-       * ObjectSelector decides whether to run the webhook based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the webhook, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
-       * +optional
-       * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; - */ - public Builder mergeObjectSelector(io.kubernetes.client.proto.Meta.LabelSelector value) { - if (objectSelectorBuilder_ == null) { - if (((bitField0_ & 0x00000040) == 0x00000040) && - objectSelector_ != null && - objectSelector_ != io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance()) { - objectSelector_ = - io.kubernetes.client.proto.Meta.LabelSelector.newBuilder(objectSelector_).mergeFrom(value).buildPartial(); - } else { - objectSelector_ = value; - } - onChanged(); - } else { - objectSelectorBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - return this; + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); } - /** - *
-       * ObjectSelector decides whether to run the webhook based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the webhook, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
-       * +optional
-       * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; - */ - public Builder clearObjectSelector() { - if (objectSelectorBuilder_ == null) { - objectSelector_ = null; - onChanged(); - } else { - objectSelectorBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000040); - return this; + for (int i = 0; i < webhooks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, webhooks_.get(i)); } - /** - *
-       * ObjectSelector decides whether to run the webhook based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the webhook, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
-       * +optional
-       * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; - */ - public io.kubernetes.client.proto.Meta.LabelSelector.Builder getObjectSelectorBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getObjectSelectorFieldBuilder().getBuilder(); + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; } - /** - *
-       * ObjectSelector decides whether to run the webhook based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the webhook, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
-       * +optional
-       * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; - */ - public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorOrBuilder() { - if (objectSelectorBuilder_ != null) { - return objectSelectorBuilder_.getMessageOrBuilder(); - } else { - return objectSelector_ == null ? - io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance() : objectSelector_; - } + if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration)) { + return super.equals(obj); } - /** - *
-       * ObjectSelector decides whether to run the webhook based on if the
-       * object has matching labels. objectSelector is evaluated against both
-       * the oldObject and newObject that would be sent to the webhook, and
-       * is considered to match if either object matches the selector. A null
-       * object (oldObject in the case of create, or newObject in the case of
-       * delete) or an object that cannot have labels (like a
-       * DeploymentRollback or a PodProxyOptions object) is not considered to
-       * match.
-       * Use the object selector only if the webhook is opt-in, because end
-       * users may skip the admission webhook by setting the labels.
-       * Default to the empty LabelSelector, which matches everything.
-       * +optional
-       * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector objectSelector = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> - getObjectSelectorFieldBuilder() { - if (objectSelectorBuilder_ == null) { - objectSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder>( - getObjectSelector(), - getParentForChildren(), - isClean()); - objectSelector_ = null; - } - return objectSelectorBuilder_; + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration other = (io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); } + result = result && getWebhooksList() + .equals(other.getWebhooksList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } - private java.lang.Object sideEffects_ = ""; - /** - *
-       * SideEffects states whether this webhook has side 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 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.
-       * 
- * - * optional string sideEffects = 6; - */ - public boolean hasSideEffects() { - return ((bitField0_ & 0x00000080) == 0x00000080); + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; } - /** - *
-       * SideEffects states whether this webhook has side 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 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.
-       * 
- * - * optional string sideEffects = 6; - */ - public java.lang.String getSideEffects() { - java.lang.Object ref = sideEffects_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - sideEffects_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); } - /** - *
-       * SideEffects states whether this webhook has side 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 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.
-       * 
- * - * optional string sideEffects = 6; - */ - public com.google.protobuf.ByteString - getSideEffectsBytes() { - java.lang.Object ref = sideEffects_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sideEffects_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + if (getWebhooksCount() > 0) { + hash = (37 * hash) + WEBHOOKS_FIELD_NUMBER; + hash = (53 * hash) + getWebhooksList().hashCode(); } - /** - *
-       * SideEffects states whether this webhook has side 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 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.
-       * 
- * - * optional string sideEffects = 6; - */ - public Builder setSideEffects( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - sideEffects_ = value; - onChanged(); - return this; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.
+     * 
+ * + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration) + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfiguration_descriptor; } - /** - *
-       * SideEffects states whether this webhook has side 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 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.
-       * 
- * - * optional string sideEffects = 6; - */ - public Builder clearSideEffects() { - bitField0_ = (bitField0_ & ~0x00000080); - sideEffects_ = getDefaultInstance().getSideEffects(); - onChanged(); - return this; + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); } - /** - *
-       * SideEffects states whether this webhook has side 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 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.
-       * 
- * - * optional string sideEffects = 6; - */ - public Builder setSideEffectsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000080; - sideEffects_ = value; - onChanged(); + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getWebhooksFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (webhooksBuilder_ == null) { + webhooks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + webhooksBuilder_.clear(); + } return this; } - private int timeoutSeconds_ ; - /** - *
-       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
-       * the webhook call will be ignored or the API call will fail based on the
-       * failure policy.
-       * The timeout value must be between 1 and 30 seconds.
-       * Default to 10 seconds.
-       * +optional
-       * 
- * - * optional int32 timeoutSeconds = 7; - */ - public boolean hasTimeoutSeconds() { - return ((bitField0_ & 0x00000100) == 0x00000100); + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfiguration_descriptor; } - /** - *
-       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
-       * the webhook call will be ignored or the API call will fail based on the
-       * failure policy.
-       * The timeout value must be between 1 and 30 seconds.
-       * Default to 10 seconds.
-       * +optional
-       * 
- * - * optional int32 timeoutSeconds = 7; - */ - public int getTimeoutSeconds() { - return timeoutSeconds_; + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.getDefaultInstance(); } - /** - *
-       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
-       * the webhook call will be ignored or the API call will fail based on the
-       * failure policy.
-       * The timeout value must be between 1 and 30 seconds.
-       * Default to 10 seconds.
-       * +optional
-       * 
- * - * optional int32 timeoutSeconds = 7; - */ - public Builder setTimeoutSeconds(int value) { - bitField0_ |= 0x00000100; - timeoutSeconds_ = value; - onChanged(); - return this; + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration build() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; } - /** - *
-       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
-       * the webhook call will be ignored or the API call will fail based on the
-       * failure policy.
-       * The timeout value must be between 1 and 30 seconds.
-       * Default to 10 seconds.
-       * +optional
-       * 
- * - * optional int32 timeoutSeconds = 7; - */ - public Builder clearTimeoutSeconds() { - bitField0_ = (bitField0_ & ~0x00000100); - timeoutSeconds_ = 0; - onChanged(); - return this; + + @java.lang.Override + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration result = new io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (webhooksBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + webhooks_ = java.util.Collections.unmodifiableList(webhooks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.webhooks_ = webhooks_; + } else { + result.webhooks_ = webhooksBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; } - private com.google.protobuf.LazyStringList admissionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAdmissionReviewVersionsIsMutable() { - if (!((bitField0_ & 0x00000200) == 0x00000200)) { - admissionReviewVersions_ = new com.google.protobuf.LazyStringArrayList(admissionReviewVersions_); - bitField0_ |= 0x00000200; - } + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); } - /** - *
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
-       * versions the Webhook expects. API server will try to use first version in
-       * the list which it supports. If none of the versions specified in this list
-       * supported by API server, validation will fail for this object.
-       * If a persisted webhook configuration specifies allowed versions and does not
-       * include any versions known to the API Server, calls to the webhook will fail
-       * and be subject to the failure policy.
-       * +listType=atomic
-       * 
- * - * repeated string admissionReviewVersions = 8; - */ - public com.google.protobuf.ProtocolStringList - getAdmissionReviewVersionsList() { - return admissionReviewVersions_.getUnmodifiableView(); + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); } - /** - *
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
-       * versions the Webhook expects. API server will try to use first version in
-       * the list which it supports. If none of the versions specified in this list
-       * supported by API server, validation will fail for this object.
-       * If a persisted webhook configuration specifies allowed versions and does not
-       * include any versions known to the API Server, calls to the webhook will fail
-       * and be subject to the failure policy.
-       * +listType=atomic
-       * 
- * - * repeated string admissionReviewVersions = 8; - */ - public int getAdmissionReviewVersionsCount() { - return admissionReviewVersions_.size(); + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); } - /** - *
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
-       * versions the Webhook expects. API server will try to use first version in
-       * the list which it supports. If none of the versions specified in this list
-       * supported by API server, validation will fail for this object.
-       * If a persisted webhook configuration specifies allowed versions and does not
-       * include any versions known to the API Server, calls to the webhook will fail
-       * and be subject to the failure policy.
-       * +listType=atomic
-       * 
- * - * repeated string admissionReviewVersions = 8; - */ - public java.lang.String getAdmissionReviewVersions(int index) { - return admissionReviewVersions_.get(index); + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); } - /** - *
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
-       * versions the Webhook expects. API server will try to use first version in
-       * the list which it supports. If none of the versions specified in this list
-       * supported by API server, validation will fail for this object.
-       * If a persisted webhook configuration specifies allowed versions and does not
-       * include any versions known to the API Server, calls to the webhook will fail
-       * and be subject to the failure policy.
-       * +listType=atomic
-       * 
- * - * repeated string admissionReviewVersions = 8; - */ - public com.google.protobuf.ByteString - getAdmissionReviewVersionsBytes(int index) { - return admissionReviewVersions_.getByteString(index); + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); } - /** - *
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
-       * versions the Webhook expects. API server will try to use first version in
-       * the list which it supports. If none of the versions specified in this list
-       * supported by API server, validation will fail for this object.
-       * If a persisted webhook configuration specifies allowed versions and does not
-       * include any versions known to the API Server, calls to the webhook will fail
-       * and be subject to the failure policy.
-       * +listType=atomic
-       * 
- * - * repeated string admissionReviewVersions = 8; - */ - public Builder setAdmissionReviewVersions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdmissionReviewVersionsIsMutable(); - admissionReviewVersions_.set(index, value); + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (webhooksBuilder_ == null) { + if (!other.webhooks_.isEmpty()) { + if (webhooks_.isEmpty()) { + webhooks_ = other.webhooks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureWebhooksIsMutable(); + webhooks_.addAll(other.webhooks_); + } + onChanged(); + } + } else { + if (!other.webhooks_.isEmpty()) { + if (webhooksBuilder_.isEmpty()) { + webhooksBuilder_.dispose(); + webhooksBuilder_ = null; + webhooks_ = other.webhooks_; + bitField0_ = (bitField0_ & ~0x00000002); + webhooksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getWebhooksFieldBuilder() : null; + } else { + webhooksBuilder_.addAllMessages(other.webhooks_); + } + } + } + this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } - /** - *
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
-       * versions the Webhook expects. API server will try to use first version in
-       * the list which it supports. If none of the versions specified in this list
-       * supported by API server, validation will fail for this object.
-       * If a persisted webhook configuration specifies allowed versions and does not
-       * include any versions known to the API Server, calls to the webhook will fail
-       * and be subject to the failure policy.
-       * +listType=atomic
-       * 
- * - * repeated string admissionReviewVersions = 8; - */ - public Builder addAdmissionReviewVersions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdmissionReviewVersionsIsMutable(); - admissionReviewVersions_.add(value); - onChanged(); + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } return this; } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** *
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
-       * versions the Webhook expects. API server will try to use first version in
-       * the list which it supports. If none of the versions specified in this list
-       * supported by API server, validation will fail for this object.
-       * If a persisted webhook configuration specifies allowed versions and does not
-       * include any versions known to the API Server, calls to the webhook will fail
-       * and be subject to the failure policy.
-       * +listType=atomic
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
        * 
* - * repeated string admissionReviewVersions = 8; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ - public Builder addAllAdmissionReviewVersions( - java.lang.Iterable values) { - ensureAdmissionReviewVersionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, admissionReviewVersions_); - onChanged(); - return this; + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
-       * versions the Webhook expects. API server will try to use first version in
-       * the list which it supports. If none of the versions specified in this list
-       * supported by API server, validation will fail for this object.
-       * If a persisted webhook configuration specifies allowed versions and does not
-       * include any versions known to the API Server, calls to the webhook will fail
-       * and be subject to the failure policy.
-       * +listType=atomic
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
        * 
* - * repeated string admissionReviewVersions = 8; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ - public Builder clearAdmissionReviewVersions() { - admissionReviewVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } } /** *
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
-       * versions the Webhook expects. API server will try to use first version in
-       * the list which it supports. If none of the versions specified in this list
-       * supported by API server, validation will fail for this object.
-       * If a persisted webhook configuration specifies allowed versions and does not
-       * include any versions known to the API Server, calls to the webhook will fail
-       * and be subject to the failure policy.
-       * +listType=atomic
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * +optional
        * 
* - * repeated string admissionReviewVersions = 8; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ - public Builder addAdmissionReviewVersionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdmissionReviewVersionsIsMutable(); - admissionReviewVersions_.add(value); - onChanged(); + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; return this; } - - private java.lang.Object reinvocationPolicy_ = ""; /** *
-       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
-       * Allowed values are "Never" and "IfNeeded".
-       * Never: the webhook will not be called more than once in a single admission evaluation.
-       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
-       * if the object being admitted is modified by other admission plugins after the initial webhook call.
-       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
-       * Note:
-       * * the number of additional invocations is not guaranteed to be exactly one.
-       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
-       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
-       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
-       * Defaults to "Never".
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* - * optional string reinvocationPolicy = 10; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ - public boolean hasReinvocationPolicy() { - return ((bitField0_ & 0x00000400) == 0x00000400); + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; } /** *
-       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
-       * Allowed values are "Never" and "IfNeeded".
-       * Never: the webhook will not be called more than once in a single admission evaluation.
-       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
-       * if the object being admitted is modified by other admission plugins after the initial webhook call.
-       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
-       * Note:
-       * * the number of additional invocations is not guaranteed to be exactly one.
-       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
-       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
-       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
-       * Defaults to "Never".
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* - * optional string reinvocationPolicy = 10; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ - public java.lang.String getReinvocationPolicy() { - java.lang.Object ref = reinvocationPolicy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (bs.isValidUtf8()) { - reinvocationPolicy_ = s; + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; } - return s; + onChanged(); } else { - return (java.lang.String) ref; + metadataBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000001; + return this; } /** *
-       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
-       * Allowed values are "Never" and "IfNeeded".
-       * Never: the webhook will not be called more than once in a single admission evaluation.
-       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
-       * if the object being admitted is modified by other admission plugins after the initial webhook call.
-       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
-       * Note:
-       * * the number of additional invocations is not guaranteed to be exactly one.
-       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
-       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
-       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
-       * Defaults to "Never".
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* - * optional string reinvocationPolicy = 10; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ - public com.google.protobuf.ByteString - getReinvocationPolicyBytes() { - java.lang.Object ref = reinvocationPolicy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - reinvocationPolicy_ = b; - return b; + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + metadataBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); + return this; } /** *
-       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
-       * Allowed values are "Never" and "IfNeeded".
-       * Never: the webhook will not be called more than once in a single admission evaluation.
-       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
-       * if the object being admitted is modified by other admission plugins after the initial webhook call.
-       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
-       * Note:
-       * * the number of additional invocations is not guaranteed to be exactly one.
-       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
-       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
-       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
-       * Defaults to "Never".
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* - * optional string reinvocationPolicy = 10; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ - public Builder setReinvocationPolicy( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - reinvocationPolicy_ = value; + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; onChanged(); - return this; + return getMetadataFieldBuilder().getBuilder(); } /** *
-       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
-       * Allowed values are "Never" and "IfNeeded".
-       * Never: the webhook will not be called more than once in a single admission evaluation.
-       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
-       * if the object being admitted is modified by other admission plugins after the initial webhook call.
-       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
-       * Note:
-       * * the number of additional invocations is not guaranteed to be exactly one.
-       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
-       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
-       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
-       * Defaults to "Never".
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* - * optional string reinvocationPolicy = 10; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ - public Builder clearReinvocationPolicy() { - bitField0_ = (bitField0_ & ~0x00000400); - reinvocationPolicy_ = getDefaultInstance().getReinvocationPolicy(); - onChanged(); - return this; + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } } /** *
-       * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation.
-       * Allowed values are "Never" and "IfNeeded".
-       * Never: the webhook will not be called more than once in a single admission evaluation.
-       * IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation
-       * if the object being admitted is modified by other admission plugins after the initial webhook call.
-       * Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted.
-       * Note:
-       * * the number of additional invocations is not guaranteed to be exactly one.
-       * * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again.
-       * * webhooks that use this option may be reordered to minimize the number of additional invocations.
-       * * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.
-       * Defaults to "Never".
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* - * optional string reinvocationPolicy = 10; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; */ - public Builder setReinvocationPolicyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000400; - reinvocationPolicy_ = value; - onChanged(); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; } - private java.util.List matchConditions_ = + private java.util.List webhooks_ = java.util.Collections.emptyList(); - private void ensureMatchConditionsIsMutable() { - if (!((bitField0_ & 0x00000800) == 0x00000800)) { - matchConditions_ = new java.util.ArrayList(matchConditions_); - bitField0_ |= 0x00000800; + private void ensureWebhooksIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + webhooks_ = new java.util.ArrayList(webhooks_); + bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.MatchCondition, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder> matchConditionsBuilder_; + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookOrBuilder> webhooksBuilder_; /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public java.util.List getMatchConditionsList() { - if (matchConditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(matchConditions_); + public java.util.List getWebhooksList() { + if (webhooksBuilder_ == null) { + return java.util.Collections.unmodifiableList(webhooks_); } else { - return matchConditionsBuilder_.getMessageList(); + return webhooksBuilder_.getMessageList(); } } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public int getMatchConditionsCount() { - if (matchConditionsBuilder_ == null) { - return matchConditions_.size(); + public int getWebhooksCount() { + if (webhooksBuilder_ == null) { + return webhooks_.size(); } else { - return matchConditionsBuilder_.getCount(); + return webhooksBuilder_.getCount(); } } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getMatchConditions(int index) { - if (matchConditionsBuilder_ == null) { - return matchConditions_.get(index); + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook getWebhooks(int index) { + if (webhooksBuilder_ == null) { + return webhooks_.get(index); } else { - return matchConditionsBuilder_.getMessage(index); + return webhooksBuilder_.getMessage(index); } } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public Builder setMatchConditions( - int index, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition value) { - if (matchConditionsBuilder_ == null) { + public Builder setWebhooks( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook value) { + if (webhooksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureMatchConditionsIsMutable(); - matchConditions_.set(index, value); + ensureWebhooksIsMutable(); + webhooks_.set(index, value); onChanged(); } else { - matchConditionsBuilder_.setMessage(index, value); + webhooksBuilder_.setMessage(index, value); } return this; } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public Builder setMatchConditions( - int index, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder builderForValue) { - if (matchConditionsBuilder_ == null) { - ensureMatchConditionsIsMutable(); - matchConditions_.set(index, builderForValue.build()); + public Builder setWebhooks( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder builderForValue) { + if (webhooksBuilder_ == null) { + ensureWebhooksIsMutable(); + webhooks_.set(index, builderForValue.build()); onChanged(); } else { - matchConditionsBuilder_.setMessage(index, builderForValue.build()); + webhooksBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public Builder addMatchConditions(io.kubernetes.client.proto.V1Admissionregistration.MatchCondition value) { - if (matchConditionsBuilder_ == null) { + public Builder addWebhooks(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook value) { + if (webhooksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureMatchConditionsIsMutable(); - matchConditions_.add(value); + ensureWebhooksIsMutable(); + webhooks_.add(value); onChanged(); } else { - matchConditionsBuilder_.addMessage(value); + webhooksBuilder_.addMessage(value); } return this; } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public Builder addMatchConditions( - int index, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition value) { - if (matchConditionsBuilder_ == null) { + public Builder addWebhooks( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook value) { + if (webhooksBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureMatchConditionsIsMutable(); - matchConditions_.add(index, value); + ensureWebhooksIsMutable(); + webhooks_.add(index, value); onChanged(); } else { - matchConditionsBuilder_.addMessage(index, value); + webhooksBuilder_.addMessage(index, value); } return this; } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public Builder addMatchConditions( - io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder builderForValue) { - if (matchConditionsBuilder_ == null) { - ensureMatchConditionsIsMutable(); - matchConditions_.add(builderForValue.build()); + public Builder addWebhooks( + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder builderForValue) { + if (webhooksBuilder_ == null) { + ensureWebhooksIsMutable(); + webhooks_.add(builderForValue.build()); onChanged(); } else { - matchConditionsBuilder_.addMessage(builderForValue.build()); + webhooksBuilder_.addMessage(builderForValue.build()); } return this; } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public Builder addMatchConditions( - int index, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder builderForValue) { - if (matchConditionsBuilder_ == null) { - ensureMatchConditionsIsMutable(); - matchConditions_.add(index, builderForValue.build()); + public Builder addWebhooks( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder builderForValue) { + if (webhooksBuilder_ == null) { + ensureWebhooksIsMutable(); + webhooks_.add(index, builderForValue.build()); onChanged(); } else { - matchConditionsBuilder_.addMessage(index, builderForValue.build()); + webhooksBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public Builder addAllMatchConditions( - java.lang.Iterable values) { - if (matchConditionsBuilder_ == null) { - ensureMatchConditionsIsMutable(); + public Builder addAllWebhooks( + java.lang.Iterable values) { + if (webhooksBuilder_ == null) { + ensureWebhooksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, matchConditions_); + values, webhooks_); onChanged(); } else { - matchConditionsBuilder_.addAllMessages(values); + webhooksBuilder_.addAllMessages(values); } return this; } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public Builder clearMatchConditions() { - if (matchConditionsBuilder_ == null) { - matchConditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + public Builder clearWebhooks() { + if (webhooksBuilder_ == null) { + webhooks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { - matchConditionsBuilder_.clear(); + webhooksBuilder_.clear(); } return this; } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public Builder removeMatchConditions(int index) { - if (matchConditionsBuilder_ == null) { - ensureMatchConditionsIsMutable(); - matchConditions_.remove(index); + public Builder removeWebhooks(int index) { + if (webhooksBuilder_ == null) { + ensureWebhooksIsMutable(); + webhooks_.remove(index); onChanged(); } else { - matchConditionsBuilder_.remove(index); + webhooksBuilder_.remove(index); } return this; } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder getMatchConditionsBuilder( + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder getWebhooksBuilder( int index) { - return getMatchConditionsFieldBuilder().getBuilder(index); + return getWebhooksFieldBuilder().getBuilder(index); } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder getMatchConditionsOrBuilder( + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookOrBuilder getWebhooksOrBuilder( int index) { - if (matchConditionsBuilder_ == null) { - return matchConditions_.get(index); } else { - return matchConditionsBuilder_.getMessageOrBuilder(index); + if (webhooksBuilder_ == null) { + return webhooks_.get(index); } else { + return webhooksBuilder_.getMessageOrBuilder(index); } } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public java.util.List - getMatchConditionsOrBuilderList() { - if (matchConditionsBuilder_ != null) { - return matchConditionsBuilder_.getMessageOrBuilderList(); + public java.util.List + getWebhooksOrBuilderList() { + if (webhooksBuilder_ != null) { + return webhooksBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(matchConditions_); + return java.util.Collections.unmodifiableList(webhooks_); } } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder addMatchConditionsBuilder() { - return getMatchConditionsFieldBuilder().addBuilder( - io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.getDefaultInstance()); + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder addWebhooksBuilder() { + return getWebhooksFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.getDefaultInstance()); } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder addMatchConditionsBuilder( + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder addWebhooksBuilder( int index) { - return getMatchConditionsFieldBuilder().addBuilder( - index, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.getDefaultInstance()); + return getWebhooksFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.getDefaultInstance()); } /** *
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
-       * webhook. Match conditions filter requests that have already been matched by the rules,
-       * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
-       * There are a maximum of 64 match conditions allowed.
-       * The exact matching logic is (in order):
-       *   1. If ANY matchCondition evaluates to FALSE, the webhook is skipped.
-       *   2. If ALL matchConditions evaluate to TRUE, the webhook is called.
-       *   3. If any matchCondition evaluates to an error (but none are FALSE):
-       *      - If failurePolicy=Fail, reject the request
-       *      - If failurePolicy=Ignore, the error is ignored and the webhook is skipped
+       * webhooks is a list of webhooks and the affected resources and operations.
+       * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
        * +listType=map
        * +listMapKey=name
-       * +optional
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MatchCondition matchConditions = 12; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; */ - public java.util.List - getMatchConditionsBuilderList() { - return getMatchConditionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.MatchCondition, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder> - getMatchConditionsFieldBuilder() { - if (matchConditionsBuilder_ == null) { - matchConditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.MatchCondition, io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder>( - matchConditions_, - ((bitField0_ & 0x00000800) == 0x00000800), + public java.util.List + getWebhooksBuilderList() { + return getWebhooksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookOrBuilder> + getWebhooksFieldBuilder() { + if (webhooksBuilder_ == null) { + webhooksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookOrBuilder>( + webhooks_, + ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); - matchConditions_ = null; + webhooks_ = null; } - return matchConditionsBuilder_; + return webhooksBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -11722,165 +24930,143 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MutatingWebhook) + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration) } - // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MutatingWebhook) - private static final io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration) + private static final io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook(); + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration(); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook getDefaultInstance() { + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration getDefaultInstance() { return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public MutatingWebhook parsePartialFrom( + public MutatingWebhookConfiguration parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MutatingWebhook(input, extensionRegistry); + return new MutatingWebhookConfiguration(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook getDefaultInstanceForType() { + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface MutatingWebhookConfigurationOrBuilder extends - // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration) + public interface MutatingWebhookConfigurationListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList) com.google.protobuf.MessageOrBuilder { /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ boolean hasMetadata(); /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ - io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ - io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); /** *
-     * Webhooks is a list of webhooks and the affected resources and operations.
-     * +optional
-     * +patchMergeKey=name
-     * +patchStrategy=merge
-     * +listType=map
-     * +listMapKey=name
+     * List of MutatingWebhookConfiguration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - java.util.List - getWebhooksList(); + java.util.List + getItemsList(); /** *
-     * Webhooks is a list of webhooks and the affected resources and operations.
-     * +optional
-     * +patchMergeKey=name
-     * +patchStrategy=merge
-     * +listType=map
-     * +listMapKey=name
+     * List of MutatingWebhookConfiguration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook getWebhooks(int index); + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration getItems(int index); /** *
-     * Webhooks is a list of webhooks and the affected resources and operations.
-     * +optional
-     * +patchMergeKey=name
-     * +patchStrategy=merge
-     * +listType=map
-     * +listMapKey=name
+     * List of MutatingWebhookConfiguration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - int getWebhooksCount(); + int getItemsCount(); /** *
-     * Webhooks is a list of webhooks and the affected resources and operations.
-     * +optional
-     * +patchMergeKey=name
-     * +patchStrategy=merge
-     * +listType=map
-     * +listMapKey=name
+     * List of MutatingWebhookConfiguration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - java.util.List - getWebhooksOrBuilderList(); + java.util.List + getItemsOrBuilderList(); /** *
-     * Webhooks is a list of webhooks and the affected resources and operations.
-     * +optional
-     * +patchMergeKey=name
-     * +patchStrategy=merge
-     * +listType=map
-     * +listMapKey=name
+     * List of MutatingWebhookConfiguration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookOrBuilder getWebhooksOrBuilder( + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationOrBuilder getItemsOrBuilder( int index); } /** *
-   * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.
+   * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.
    * 
* - * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration} + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList} */ - public static final class MutatingWebhookConfiguration extends + public static final class MutatingWebhookConfigurationList extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration) - MutatingWebhookConfigurationOrBuilder { + // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList) + MutatingWebhookConfigurationListOrBuilder { private static final long serialVersionUID = 0L; - // Use MutatingWebhookConfiguration.newBuilder() to construct. - private MutatingWebhookConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use MutatingWebhookConfigurationList.newBuilder() to construct. + private MutatingWebhookConfigurationList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MutatingWebhookConfiguration() { - webhooks_ = java.util.Collections.emptyList(); + private MutatingWebhookConfigurationList() { + items_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -11888,7 +25074,7 @@ private MutatingWebhookConfiguration() { getUnknownFields() { return this.unknownFields; } - private MutatingWebhookConfiguration( + private MutatingWebhookConfigurationList( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -11908,11 +25094,11 @@ private MutatingWebhookConfiguration( done = true; break; case 10: { - io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; if (((bitField0_ & 0x00000001) == 0x00000001)) { subBuilder = metadata_.toBuilder(); } - metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(metadata_); metadata_ = subBuilder.buildPartial(); @@ -11922,11 +25108,11 @@ private MutatingWebhookConfiguration( } case 18: { if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - webhooks_ = new java.util.ArrayList(); + items_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000002; } - webhooks_.add( - input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.PARSER, extensionRegistry)); + items_.add( + input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.PARSER, extensionRegistry)); break; } default: { @@ -11945,7 +25131,7 @@ private MutatingWebhookConfiguration( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - webhooks_ = java.util.Collections.unmodifiableList(webhooks_); + items_ = java.util.Collections.unmodifiableList(items_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -11953,132 +25139,110 @@ private MutatingWebhookConfiguration( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfiguration_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfigurationList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfiguration_fieldAccessorTable + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfigurationList_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder.class); + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList.Builder.class); } private int bitField0_; public static final int METADATA_FIELD_NUMBER = 1; - private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ - public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { - return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ - public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } - public static final int WEBHOOKS_FIELD_NUMBER = 2; - private java.util.List webhooks_; + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; /** *
-     * Webhooks is a list of webhooks and the affected resources and operations.
-     * +optional
-     * +patchMergeKey=name
-     * +patchStrategy=merge
-     * +listType=map
-     * +listMapKey=name
+     * List of MutatingWebhookConfiguration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public java.util.List getWebhooksList() { - return webhooks_; + public java.util.List getItemsList() { + return items_; } /** *
-     * Webhooks is a list of webhooks and the affected resources and operations.
-     * +optional
-     * +patchMergeKey=name
-     * +patchStrategy=merge
-     * +listType=map
-     * +listMapKey=name
+     * List of MutatingWebhookConfiguration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public java.util.List - getWebhooksOrBuilderList() { - return webhooks_; + public java.util.List + getItemsOrBuilderList() { + return items_; } /** *
-     * Webhooks is a list of webhooks and the affected resources and operations.
-     * +optional
-     * +patchMergeKey=name
-     * +patchStrategy=merge
-     * +listType=map
-     * +listMapKey=name
+     * List of MutatingWebhookConfiguration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public int getWebhooksCount() { - return webhooks_.size(); + public int getItemsCount() { + return items_.size(); } /** *
-     * Webhooks is a list of webhooks and the affected resources and operations.
-     * +optional
-     * +patchMergeKey=name
-     * +patchStrategy=merge
-     * +listType=map
-     * +listMapKey=name
+     * List of MutatingWebhookConfiguration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook getWebhooks(int index) { - return webhooks_.get(index); + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration getItems(int index) { + return items_.get(index); } /** *
-     * Webhooks is a list of webhooks and the affected resources and operations.
-     * +optional
-     * +patchMergeKey=name
-     * +patchStrategy=merge
-     * +listType=map
-     * +listMapKey=name
+     * List of MutatingWebhookConfiguration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookOrBuilder getWebhooksOrBuilder( + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationOrBuilder getItemsOrBuilder( int index) { - return webhooks_.get(index); + return items_.get(index); } private byte memoizedIsInitialized = -1; @@ -12098,8 +25262,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeMessage(1, getMetadata()); } - for (int i = 0; i < webhooks_.size(); i++) { - output.writeMessage(2, webhooks_.get(i)); + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); } unknownFields.writeTo(output); } @@ -12114,9 +25278,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMetadata()); } - for (int i = 0; i < webhooks_.size(); i++) { + for (int i = 0; i < items_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, webhooks_.get(i)); + .computeMessageSize(2, items_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -12128,10 +25292,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration)) { + if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList)) { return super.equals(obj); } - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration other = (io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration) obj; + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList other = (io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList) obj; boolean result = true; result = result && (hasMetadata() == other.hasMetadata()); @@ -12139,8 +25303,8 @@ public boolean equals(final java.lang.Object obj) { result = result && getMetadata() .equals(other.getMetadata()); } - result = result && getWebhooksList() - .equals(other.getWebhooksList()); + result = result && getItemsList() + .equals(other.getItemsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -12156,78 +25320,78 @@ public int hashCode() { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } - if (getWebhooksCount() > 0) { - hash = (37 * hash) + WEBHOOKS_FIELD_NUMBER; - hash = (53 * hash) + getWebhooksList().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom(byte[] data) + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseDelimitedFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseDelimitedFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -12240,7 +25404,7 @@ public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration prototype) { + public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -12257,29 +25421,29 @@ protected Builder newBuilderForType( } /** *
-     * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.
+     * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.
      * 
* - * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration} + * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration) - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationOrBuilder { + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList) + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfiguration_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfigurationList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfiguration_fieldAccessorTable + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfigurationList_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder.class); + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList.Builder.class); } - // Construct using io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.newBuilder() + // Construct using io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -12293,7 +25457,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMetadataFieldBuilder(); - getWebhooksFieldBuilder(); + getItemsFieldBuilder(); } } @java.lang.Override @@ -12305,11 +25469,11 @@ public Builder clear() { metadataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); - if (webhooksBuilder_ == null) { - webhooks_ = java.util.Collections.emptyList(); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { - webhooksBuilder_.clear(); + itemsBuilder_.clear(); } return this; } @@ -12317,17 +25481,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfiguration_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfigurationList_descriptor; } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration getDefaultInstanceForType() { - return io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.getDefaultInstance(); + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList.getDefaultInstance(); } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration build() { - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration result = buildPartial(); + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList build() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -12335,8 +25499,8 @@ public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigu } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration buildPartial() { - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration result = new io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration(this); + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList result = new io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { @@ -12347,14 +25511,14 @@ public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigu } else { result.metadata_ = metadataBuilder_.build(); } - if (webhooksBuilder_ == null) { + if (itemsBuilder_ == null) { if (((bitField0_ & 0x00000002) == 0x00000002)) { - webhooks_ = java.util.Collections.unmodifiableList(webhooks_); + items_ = java.util.Collections.unmodifiableList(items_); bitField0_ = (bitField0_ & ~0x00000002); } - result.webhooks_ = webhooks_; + result.items_ = items_; } else { - result.webhooks_ = webhooksBuilder_.build(); + result.items_ = itemsBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); @@ -12395,42 +25559,42 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration) { - return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration)other); + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration other) { - if (other == io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.getDefaultInstance()) return this; + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList.getDefaultInstance()) return this; if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } - if (webhooksBuilder_ == null) { - if (!other.webhooks_.isEmpty()) { - if (webhooks_.isEmpty()) { - webhooks_ = other.webhooks_; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000002); } else { - ensureWebhooksIsMutable(); - webhooks_.addAll(other.webhooks_); + ensureItemsIsMutable(); + items_.addAll(other.items_); } onChanged(); } } else { - if (!other.webhooks_.isEmpty()) { - if (webhooksBuilder_.isEmpty()) { - webhooksBuilder_.dispose(); - webhooksBuilder_ = null; - webhooks_ = other.webhooks_; + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; bitField0_ = (bitField0_ & ~0x00000002); - webhooksBuilder_ = + itemsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getWebhooksFieldBuilder() : null; + getItemsFieldBuilder() : null; } else { - webhooksBuilder_.addAllMessages(other.webhooks_); + itemsBuilder_.addAllMessages(other.items_); } } } @@ -12449,11 +25613,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration parsedMessage = null; + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration) e.getUnfinishedMessage(); + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -12464,44 +25628,47 @@ public Builder mergeFrom( } private int bitField0_; - private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public boolean hasMetadata() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ - public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { if (metadataBuilder_ == null) { - return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } else { return metadataBuilder_.getMessage(); } } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ - public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { if (metadataBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -12516,14 +25683,15 @@ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public Builder setMetadata( - io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { if (metadataBuilder_ == null) { metadata_ = builderForValue.build(); onChanged(); @@ -12535,19 +25703,20 @@ public Builder setMetadata( } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ - public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { if (metadataBuilder_ == null) { if (((bitField0_ & 0x00000001) == 0x00000001) && metadata_ != null && - metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { metadata_ = - io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); } else { metadata_ = value; } @@ -12560,11 +25729,12 @@ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ public Builder clearMetadata() { if (metadataBuilder_ == null) { @@ -12578,47 +25748,50 @@ public Builder clearMetadata() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ - public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMetadataFieldBuilder().getBuilder(); } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ - public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { if (metadataBuilder_ != null) { return metadataBuilder_.getMessageOrBuilder(); } else { return metadata_ == null ? - io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; } } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> getMetadataFieldBuilder() { if (metadataBuilder_ == null) { metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( getMetadata(), getParentForChildren(), isClean()); @@ -12627,406 +25800,316 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( return metadataBuilder_; } - private java.util.List webhooks_ = + private java.util.List items_ = java.util.Collections.emptyList(); - private void ensureWebhooksIsMutable() { + private void ensureItemsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { - webhooks_ = new java.util.ArrayList(webhooks_); + items_ = new java.util.ArrayList(items_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookOrBuilder> webhooksBuilder_; + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationOrBuilder> itemsBuilder_; /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public java.util.List getWebhooksList() { - if (webhooksBuilder_ == null) { - return java.util.Collections.unmodifiableList(webhooks_); + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); } else { - return webhooksBuilder_.getMessageList(); + return itemsBuilder_.getMessageList(); } } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public int getWebhooksCount() { - if (webhooksBuilder_ == null) { - return webhooks_.size(); + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); } else { - return webhooksBuilder_.getCount(); + return itemsBuilder_.getCount(); } } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook getWebhooks(int index) { - if (webhooksBuilder_ == null) { - return webhooks_.get(index); + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { - return webhooksBuilder_.getMessage(index); + return itemsBuilder_.getMessage(index); } } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public Builder setWebhooks( - int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook value) { - if (webhooksBuilder_ == null) { + public Builder setItems( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration value) { + if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureWebhooksIsMutable(); - webhooks_.set(index, value); + ensureItemsIsMutable(); + items_.set(index, value); onChanged(); } else { - webhooksBuilder_.setMessage(index, value); + itemsBuilder_.setMessage(index, value); } return this; } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
- * - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; - */ - public Builder setWebhooks( - int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder builderForValue) { - if (webhooksBuilder_ == null) { - ensureWebhooksIsMutable(); - webhooks_.set(index, builderForValue.build()); + * + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); onChanged(); } else { - webhooksBuilder_.setMessage(index, builderForValue.build()); + itemsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public Builder addWebhooks(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook value) { - if (webhooksBuilder_ == null) { + public Builder addItems(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration value) { + if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureWebhooksIsMutable(); - webhooks_.add(value); + ensureItemsIsMutable(); + items_.add(value); onChanged(); } else { - webhooksBuilder_.addMessage(value); + itemsBuilder_.addMessage(value); } return this; } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public Builder addWebhooks( - int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook value) { - if (webhooksBuilder_ == null) { + public Builder addItems( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration value) { + if (itemsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureWebhooksIsMutable(); - webhooks_.add(index, value); + ensureItemsIsMutable(); + items_.add(index, value); onChanged(); } else { - webhooksBuilder_.addMessage(index, value); + itemsBuilder_.addMessage(index, value); } return this; } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public Builder addWebhooks( - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder builderForValue) { - if (webhooksBuilder_ == null) { - ensureWebhooksIsMutable(); - webhooks_.add(builderForValue.build()); + public Builder addItems( + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); onChanged(); } else { - webhooksBuilder_.addMessage(builderForValue.build()); + itemsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public Builder addWebhooks( - int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder builderForValue) { - if (webhooksBuilder_ == null) { - ensureWebhooksIsMutable(); - webhooks_.add(index, builderForValue.build()); + public Builder addItems( + int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); onChanged(); } else { - webhooksBuilder_.addMessage(index, builderForValue.build()); + itemsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public Builder addAllWebhooks( - java.lang.Iterable values) { - if (webhooksBuilder_ == null) { - ensureWebhooksIsMutable(); + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, webhooks_); + values, items_); onChanged(); } else { - webhooksBuilder_.addAllMessages(values); + itemsBuilder_.addAllMessages(values); } return this; } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public Builder clearWebhooks() { - if (webhooksBuilder_ == null) { - webhooks_ = java.util.Collections.emptyList(); + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { - webhooksBuilder_.clear(); + itemsBuilder_.clear(); } return this; } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public Builder removeWebhooks(int index) { - if (webhooksBuilder_ == null) { - ensureWebhooksIsMutable(); - webhooks_.remove(index); + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); onChanged(); } else { - webhooksBuilder_.remove(index); + itemsBuilder_.remove(index); } return this; } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder getWebhooksBuilder( + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder getItemsBuilder( int index) { - return getWebhooksFieldBuilder().getBuilder(index); + return getItemsFieldBuilder().getBuilder(index); } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookOrBuilder getWebhooksOrBuilder( + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationOrBuilder getItemsOrBuilder( int index) { - if (webhooksBuilder_ == null) { - return webhooks_.get(index); } else { - return webhooksBuilder_.getMessageOrBuilder(index); + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); } } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public java.util.List - getWebhooksOrBuilderList() { - if (webhooksBuilder_ != null) { - return webhooksBuilder_.getMessageOrBuilderList(); + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(webhooks_); + return java.util.Collections.unmodifiableList(items_); } } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder addWebhooksBuilder() { - return getWebhooksFieldBuilder().addBuilder( - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.getDefaultInstance()); + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.getDefaultInstance()); } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder addWebhooksBuilder( + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder addItemsBuilder( int index) { - return getWebhooksFieldBuilder().addBuilder( - index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.getDefaultInstance()); + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.getDefaultInstance()); } /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
-       * +optional
-       * +patchMergeKey=name
-       * +patchStrategy=merge
-       * +listType=map
-       * +listMapKey=name
+       * List of MutatingWebhookConfiguration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhook Webhooks = 2; + * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; */ - public java.util.List - getWebhooksBuilderList() { - return getWebhooksFieldBuilder().getBuilderList(); + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookOrBuilder> - getWebhooksFieldBuilder() { - if (webhooksBuilder_ == null) { - webhooksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookOrBuilder>( - webhooks_, + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationOrBuilder>( + items_, ((bitField0_ & 0x00000002) == 0x00000002), getParentForChildren(), isClean()); - webhooks_ = null; + items_ = null; } - return webhooksBuilder_; + return itemsBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -13041,143 +26124,165 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration) + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList) } - // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration) - private static final io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList) + private static final io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration(); + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList(); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration getDefaultInstance() { + public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList getDefaultInstance() { return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public MutatingWebhookConfiguration parsePartialFrom( + public MutatingWebhookConfigurationList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MutatingWebhookConfiguration(input, extensionRegistry); + return new MutatingWebhookConfigurationList(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration getDefaultInstanceForType() { + public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface MutatingWebhookConfigurationListOrBuilder extends - // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList) + public interface MutationOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.admissionregistration.v1.Mutation) com.google.protobuf.MessageOrBuilder { /** *
-     * Standard list metadata.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-     * +optional
+     * patchType indicates the patch strategy used.
+     * Allowed values are "ApplyConfiguration" and "JSONPatch".
+     * Required.
+     * +unionDiscriminator
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + * optional string patchType = 2; */ - boolean hasMetadata(); + boolean hasPatchType(); /** *
-     * Standard list metadata.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-     * +optional
+     * patchType indicates the patch strategy used.
+     * Allowed values are "ApplyConfiguration" and "JSONPatch".
+     * Required.
+     * +unionDiscriminator
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + * optional string patchType = 2; */ - io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + java.lang.String getPatchType(); /** *
-     * Standard list metadata.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-     * +optional
+     * patchType indicates the patch strategy used.
+     * Allowed values are "ApplyConfiguration" and "JSONPatch".
+     * Required.
+     * +unionDiscriminator
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + * optional string patchType = 2; */ - io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + com.google.protobuf.ByteString + getPatchTypeBytes(); /** *
-     * List of MutatingWebhookConfiguration.
+     * applyConfiguration defines the desired configuration values of an object.
+     * The configuration is applied to the admission object using
+     * [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff).
+     * A CEL expression is used to create apply configuration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.ApplyConfiguration applyConfiguration = 3; */ - java.util.List - getItemsList(); + boolean hasApplyConfiguration(); /** *
-     * List of MutatingWebhookConfiguration.
+     * applyConfiguration defines the desired configuration values of an object.
+     * The configuration is applied to the admission object using
+     * [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff).
+     * A CEL expression is used to create apply configuration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.ApplyConfiguration applyConfiguration = 3; */ - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration getItems(int index); + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration getApplyConfiguration(); /** *
-     * List of MutatingWebhookConfiguration.
+     * applyConfiguration defines the desired configuration values of an object.
+     * The configuration is applied to the admission object using
+     * [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff).
+     * A CEL expression is used to create apply configuration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.ApplyConfiguration applyConfiguration = 3; */ - int getItemsCount(); + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfigurationOrBuilder getApplyConfigurationOrBuilder(); + /** *
-     * List of MutatingWebhookConfiguration.
+     * jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object.
+     * A CEL expression is used to create the JSON patch.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.JSONPatch jsonPatch = 4; */ - java.util.List - getItemsOrBuilderList(); + boolean hasJsonPatch(); /** *
-     * List of MutatingWebhookConfiguration.
+     * jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object.
+     * A CEL expression is used to create the JSON patch.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.JSONPatch jsonPatch = 4; */ - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationOrBuilder getItemsOrBuilder( - int index); + io.kubernetes.client.proto.V1Admissionregistration.JSONPatch getJsonPatch(); + /** + *
+     * jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object.
+     * A CEL expression is used to create the JSON patch.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.JSONPatch jsonPatch = 4; + */ + io.kubernetes.client.proto.V1Admissionregistration.JSONPatchOrBuilder getJsonPatchOrBuilder(); } /** *
-   * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.
+   * Mutation specifies the CEL expression which is used to apply the Mutation.
    * 
* - * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList} + * Protobuf type {@code k8s.io.api.admissionregistration.v1.Mutation} */ - public static final class MutatingWebhookConfigurationList extends + public static final class Mutation extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList) - MutatingWebhookConfigurationListOrBuilder { + // @@protoc_insertion_point(message_implements:k8s.io.api.admissionregistration.v1.Mutation) + MutationOrBuilder { private static final long serialVersionUID = 0L; - // Use MutatingWebhookConfigurationList.newBuilder() to construct. - private MutatingWebhookConfigurationList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use Mutation.newBuilder() to construct. + private Mutation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private MutatingWebhookConfigurationList() { - items_ = java.util.Collections.emptyList(); + private Mutation() { + patchType_ = ""; } @java.lang.Override @@ -13185,7 +26290,7 @@ private MutatingWebhookConfigurationList() { getUnknownFields() { return this.unknownFields; } - private MutatingWebhookConfigurationList( + private Mutation( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -13204,26 +26309,36 @@ private MutatingWebhookConfigurationList( case 0: done = true; break; - case 10: { - io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) == 0x00000001)) { - subBuilder = metadata_.toBuilder(); + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + patchType_ = bs; + break; + } + case 26: { + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = applyConfiguration_.toBuilder(); } - metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + applyConfiguration_ = input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.PARSER, extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(applyConfiguration_); + applyConfiguration_ = subBuilder.buildPartial(); } - bitField0_ |= 0x00000001; + bitField0_ |= 0x00000002; break; } - case 18: { - if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - items_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; + case 34: { + io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = jsonPatch_.toBuilder(); } - items_.add( - input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.PARSER, extensionRegistry)); + jsonPatch_ = input.readMessage(io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(jsonPatch_); + jsonPatch_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; break; } default: { @@ -13241,119 +26356,163 @@ private MutatingWebhookConfigurationList( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { - items_ = java.util.Collections.unmodifiableList(items_); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfigurationList_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_Mutation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfigurationList_fieldAccessorTable + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_Mutation_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList.Builder.class); + io.kubernetes.client.proto.V1Admissionregistration.Mutation.class, io.kubernetes.client.proto.V1Admissionregistration.Mutation.Builder.class); } private int bitField0_; - public static final int METADATA_FIELD_NUMBER = 1; - private io.kubernetes.client.proto.Meta.ListMeta metadata_; + public static final int PATCHTYPE_FIELD_NUMBER = 2; + private volatile java.lang.Object patchType_; /** *
-     * Standard list metadata.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-     * +optional
+     * patchType indicates the patch strategy used.
+     * Allowed values are "ApplyConfiguration" and "JSONPatch".
+     * Required.
+     * +unionDiscriminator
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + * optional string patchType = 2; */ - public boolean hasMetadata() { + public boolean hasPatchType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-     * Standard list metadata.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-     * +optional
+     * patchType indicates the patch strategy used.
+     * Allowed values are "ApplyConfiguration" and "JSONPatch".
+     * Required.
+     * +unionDiscriminator
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + * optional string patchType = 2; */ - public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { - return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + public java.lang.String getPatchType() { + java.lang.Object ref = patchType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + patchType_ = s; + } + return s; + } } /** *
-     * Standard list metadata.
-     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-     * +optional
+     * patchType indicates the patch strategy used.
+     * Allowed values are "ApplyConfiguration" and "JSONPatch".
+     * Required.
+     * +unionDiscriminator
      * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + * optional string patchType = 2; */ - public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + public com.google.protobuf.ByteString + getPatchTypeBytes() { + java.lang.Object ref = patchType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + patchType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - public static final int ITEMS_FIELD_NUMBER = 2; - private java.util.List items_; + public static final int APPLYCONFIGURATION_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration applyConfiguration_; /** *
-     * List of MutatingWebhookConfiguration.
+     * applyConfiguration defines the desired configuration values of an object.
+     * The configuration is applied to the admission object using
+     * [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff).
+     * A CEL expression is used to create apply configuration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.ApplyConfiguration applyConfiguration = 3; */ - public java.util.List getItemsList() { - return items_; + public boolean hasApplyConfiguration() { + return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
-     * List of MutatingWebhookConfiguration.
+     * applyConfiguration defines the desired configuration values of an object.
+     * The configuration is applied to the admission object using
+     * [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff).
+     * A CEL expression is used to create apply configuration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.ApplyConfiguration applyConfiguration = 3; */ - public java.util.List - getItemsOrBuilderList() { - return items_; + public io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration getApplyConfiguration() { + return applyConfiguration_ == null ? io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.getDefaultInstance() : applyConfiguration_; } /** *
-     * List of MutatingWebhookConfiguration.
+     * applyConfiguration defines the desired configuration values of an object.
+     * The configuration is applied to the admission object using
+     * [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff).
+     * A CEL expression is used to create apply configuration.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.ApplyConfiguration applyConfiguration = 3; */ - public int getItemsCount() { - return items_.size(); + public io.kubernetes.client.proto.V1Admissionregistration.ApplyConfigurationOrBuilder getApplyConfigurationOrBuilder() { + return applyConfiguration_ == null ? io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.getDefaultInstance() : applyConfiguration_; } + + public static final int JSONPATCH_FIELD_NUMBER = 4; + private io.kubernetes.client.proto.V1Admissionregistration.JSONPatch jsonPatch_; /** *
-     * List of MutatingWebhookConfiguration.
+     * jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object.
+     * A CEL expression is used to create the JSON patch.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.JSONPatch jsonPatch = 4; */ - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration getItems(int index) { - return items_.get(index); + public boolean hasJsonPatch() { + return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
-     * List of MutatingWebhookConfiguration.
+     * jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object.
+     * A CEL expression is used to create the JSON patch.
      * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.JSONPatch jsonPatch = 4; */ - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationOrBuilder getItemsOrBuilder( - int index) { - return items_.get(index); + public io.kubernetes.client.proto.V1Admissionregistration.JSONPatch getJsonPatch() { + return jsonPatch_ == null ? io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.getDefaultInstance() : jsonPatch_; + } + /** + *
+     * jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object.
+     * A CEL expression is used to create the JSON patch.
+     * 
+ * + * optional .k8s.io.api.admissionregistration.v1.JSONPatch jsonPatch = 4; + */ + public io.kubernetes.client.proto.V1Admissionregistration.JSONPatchOrBuilder getJsonPatchOrBuilder() { + return jsonPatch_ == null ? io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.getDefaultInstance() : jsonPatch_; } private byte memoizedIsInitialized = -1; @@ -13371,10 +26530,13 @@ public final boolean isInitialized() { public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) == 0x00000001)) { - output.writeMessage(1, getMetadata()); + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, patchType_); } - for (int i = 0; i < items_.size(); i++) { - output.writeMessage(2, items_.get(i)); + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(3, getApplyConfiguration()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(4, getJsonPatch()); } unknownFields.writeTo(output); } @@ -13386,12 +26548,15 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, patchType_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMetadata()); + .computeMessageSize(3, getApplyConfiguration()); } - for (int i = 0; i < items_.size(); i++) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, items_.get(i)); + .computeMessageSize(4, getJsonPatch()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -13403,19 +26568,27 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList)) { + if (!(obj instanceof io.kubernetes.client.proto.V1Admissionregistration.Mutation)) { return super.equals(obj); } - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList other = (io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList) obj; + io.kubernetes.client.proto.V1Admissionregistration.Mutation other = (io.kubernetes.client.proto.V1Admissionregistration.Mutation) obj; boolean result = true; - result = result && (hasMetadata() == other.hasMetadata()); - if (hasMetadata()) { - result = result && getMetadata() - .equals(other.getMetadata()); + result = result && (hasPatchType() == other.hasPatchType()); + if (hasPatchType()) { + result = result && getPatchType() + .equals(other.getPatchType()); + } + result = result && (hasApplyConfiguration() == other.hasApplyConfiguration()); + if (hasApplyConfiguration()) { + result = result && getApplyConfiguration() + .equals(other.getApplyConfiguration()); + } + result = result && (hasJsonPatch() == other.hasJsonPatch()); + if (hasJsonPatch()) { + result = result && getJsonPatch() + .equals(other.getJsonPatch()); } - result = result && getItemsList() - .equals(other.getItemsList()); result = result && unknownFields.equals(other.unknownFields); return result; } @@ -13427,82 +26600,86 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); + if (hasPatchType()) { + hash = (37 * hash) + PATCHTYPE_FIELD_NUMBER; + hash = (53 * hash) + getPatchType().hashCode(); } - if (getItemsCount() > 0) { - hash = (37 * hash) + ITEMS_FIELD_NUMBER; - hash = (53 * hash) + getItemsList().hashCode(); + if (hasApplyConfiguration()) { + hash = (37 * hash) + APPLYCONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getApplyConfiguration().hashCode(); + } + if (hasJsonPatch()) { + hash = (37 * hash) + JSONPATCH_FIELD_NUMBER; + hash = (53 * hash) + getJsonPatch().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.Mutation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.Mutation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.Mutation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.Mutation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom(byte[] data) + public static io.kubernetes.client.proto.V1Admissionregistration.Mutation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.Mutation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1Admissionregistration.Mutation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.Mutation parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseDelimitedFrom(java.io.InputStream input) + public static io.kubernetes.client.proto.V1Admissionregistration.Mutation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseDelimitedFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.Mutation parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.Mutation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parseFrom( + public static io.kubernetes.client.proto.V1Admissionregistration.Mutation parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -13515,7 +26692,7 @@ public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhook public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList prototype) { + public static Builder newBuilder(io.kubernetes.client.proto.V1Admissionregistration.Mutation prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -13532,29 +26709,29 @@ protected Builder newBuilderForType( } /** *
-     * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.
+     * Mutation specifies the CEL expression which is used to apply the Mutation.
      * 
* - * Protobuf type {@code k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList} + * Protobuf type {@code k8s.io.api.admissionregistration.v1.Mutation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList) - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationListOrBuilder { + // @@protoc_insertion_point(builder_implements:k8s.io.api.admissionregistration.v1.Mutation) + io.kubernetes.client.proto.V1Admissionregistration.MutationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfigurationList_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_Mutation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfigurationList_fieldAccessorTable + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_Mutation_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList.class, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList.Builder.class); + io.kubernetes.client.proto.V1Admissionregistration.Mutation.class, io.kubernetes.client.proto.V1Admissionregistration.Mutation.Builder.class); } - // Construct using io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList.newBuilder() + // Construct using io.kubernetes.client.proto.V1Admissionregistration.Mutation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -13567,42 +26744,44 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getMetadataFieldBuilder(); - getItemsFieldBuilder(); + getApplyConfigurationFieldBuilder(); + getJsonPatchFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - if (metadataBuilder_ == null) { - metadata_ = null; + patchType_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (applyConfigurationBuilder_ == null) { + applyConfiguration_ = null; } else { - metadataBuilder_.clear(); + applyConfigurationBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000001); - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000002); + if (jsonPatchBuilder_ == null) { + jsonPatch_ = null; } else { - itemsBuilder_.clear(); + jsonPatchBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfigurationList_descriptor; + return io.kubernetes.client.proto.V1Admissionregistration.internal_static_k8s_io_api_admissionregistration_v1_Mutation_descriptor; } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList getDefaultInstanceForType() { - return io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList.getDefaultInstance(); + public io.kubernetes.client.proto.V1Admissionregistration.Mutation getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Admissionregistration.Mutation.getDefaultInstance(); } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList build() { - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList result = buildPartial(); + public io.kubernetes.client.proto.V1Admissionregistration.Mutation build() { + io.kubernetes.client.proto.V1Admissionregistration.Mutation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -13610,26 +26789,29 @@ public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigu } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList buildPartial() { - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList result = new io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList(this); + public io.kubernetes.client.proto.V1Admissionregistration.Mutation buildPartial() { + io.kubernetes.client.proto.V1Admissionregistration.Mutation result = new io.kubernetes.client.proto.V1Admissionregistration.Mutation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } - if (metadataBuilder_ == null) { - result.metadata_ = metadata_; + result.patchType_ = patchType_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (applyConfigurationBuilder_ == null) { + result.applyConfiguration_ = applyConfiguration_; } else { - result.metadata_ = metadataBuilder_.build(); + result.applyConfiguration_ = applyConfigurationBuilder_.build(); } - if (itemsBuilder_ == null) { - if (((bitField0_ & 0x00000002) == 0x00000002)) { - items_ = java.util.Collections.unmodifiableList(items_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.items_ = items_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (jsonPatchBuilder_ == null) { + result.jsonPatch_ = jsonPatch_; } else { - result.items_ = itemsBuilder_.build(); + result.jsonPatch_ = jsonPatchBuilder_.build(); } result.bitField0_ = to_bitField0_; onBuilt(); @@ -13670,44 +26852,26 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList) { - return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList)other); + if (other instanceof io.kubernetes.client.proto.V1Admissionregistration.Mutation) { + return mergeFrom((io.kubernetes.client.proto.V1Admissionregistration.Mutation)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList other) { - if (other == io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList.getDefaultInstance()) return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); + public Builder mergeFrom(io.kubernetes.client.proto.V1Admissionregistration.Mutation other) { + if (other == io.kubernetes.client.proto.V1Admissionregistration.Mutation.getDefaultInstance()) return this; + if (other.hasPatchType()) { + bitField0_ |= 0x00000001; + patchType_ = other.patchType_; + onChanged(); } - if (itemsBuilder_ == null) { - if (!other.items_.isEmpty()) { - if (items_.isEmpty()) { - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureItemsIsMutable(); - items_.addAll(other.items_); - } - onChanged(); - } - } else { - if (!other.items_.isEmpty()) { - if (itemsBuilder_.isEmpty()) { - itemsBuilder_.dispose(); - itemsBuilder_ = null; - items_ = other.items_; - bitField0_ = (bitField0_ & ~0x00000002); - itemsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getItemsFieldBuilder() : null; - } else { - itemsBuilder_.addAllMessages(other.items_); - } - } + if (other.hasApplyConfiguration()) { + mergeApplyConfiguration(other.getApplyConfiguration()); + } + if (other.hasJsonPatch()) { + mergeJsonPatch(other.getJsonPatch()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -13724,11 +26888,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList parsedMessage = null; + io.kubernetes.client.proto.V1Admissionregistration.Mutation parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList) e.getUnfinishedMessage(); + parsedMessage = (io.kubernetes.client.proto.V1Admissionregistration.Mutation) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -13739,488 +26903,466 @@ public Builder mergeFrom( } private int bitField0_; - private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + private java.lang.Object patchType_ = ""; /** *
-       * Standard list metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-       * +optional
+       * patchType indicates the patch strategy used.
+       * Allowed values are "ApplyConfiguration" and "JSONPatch".
+       * Required.
+       * +unionDiscriminator
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + * optional string patchType = 2; */ - public boolean hasMetadata() { + public boolean hasPatchType() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** *
-       * Standard list metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-       * +optional
-       * 
- * - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; - */ - public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - *
-       * Standard list metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-       * +optional
+       * patchType indicates the patch strategy used.
+       * Allowed values are "ApplyConfiguration" and "JSONPatch".
+       * Required.
+       * +unionDiscriminator
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + * optional string patchType = 2; */ - public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + public java.lang.String getPatchType() { + java.lang.Object ref = patchType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + patchType_ = s; } - metadata_ = value; - onChanged(); + return s; } else { - metadataBuilder_.setMessage(value); + return (java.lang.String) ref; } - bitField0_ |= 0x00000001; - return this; } /** *
-       * Standard list metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-       * +optional
+       * patchType indicates the patch strategy used.
+       * Allowed values are "ApplyConfiguration" and "JSONPatch".
+       * Required.
+       * +unionDiscriminator
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + * optional string patchType = 2; */ - public Builder setMetadata( - io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); + public com.google.protobuf.ByteString + getPatchTypeBytes() { + java.lang.Object ref = patchType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + patchType_ = b; + return b; } else { - metadataBuilder_.setMessage(builderForValue.build()); + return (com.google.protobuf.ByteString) ref; } - bitField0_ |= 0x00000001; - return this; } /** *
-       * Standard list metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-       * +optional
+       * patchType indicates the patch strategy used.
+       * Allowed values are "ApplyConfiguration" and "JSONPatch".
+       * Required.
+       * +unionDiscriminator
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + * optional string patchType = 2; */ - public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000001) == 0x00000001) && - metadata_ != null && - metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { - metadata_ = - io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; + public Builder setPatchType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + patchType_ = value; + onChanged(); return this; } /** *
-       * Standard list metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-       * +optional
+       * patchType indicates the patch strategy used.
+       * Allowed values are "ApplyConfiguration" and "JSONPatch".
+       * Required.
+       * +unionDiscriminator
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + * optional string patchType = 2; */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadataBuilder_.clear(); - } + public Builder clearPatchType() { bitField0_ = (bitField0_ & ~0x00000001); + patchType_ = getDefaultInstance().getPatchType(); + onChanged(); return this; } /** *
-       * Standard list metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-       * +optional
+       * patchType indicates the patch strategy used.
+       * Allowed values are "ApplyConfiguration" and "JSONPatch".
+       * Required.
+       * +unionDiscriminator
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + * optional string patchType = 2; */ - public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { - bitField0_ |= 0x00000001; + public Builder setPatchTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + patchType_ = value; onChanged(); - return getMetadataFieldBuilder().getBuilder(); + return this; } + + private io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration applyConfiguration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration, io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.Builder, io.kubernetes.client.proto.V1Admissionregistration.ApplyConfigurationOrBuilder> applyConfigurationBuilder_; /** *
-       * Standard list metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-       * +optional
+       * applyConfiguration defines the desired configuration values of an object.
+       * The configuration is applied to the admission object using
+       * [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff).
+       * A CEL expression is used to create apply configuration.
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + * optional .k8s.io.api.admissionregistration.v1.ApplyConfiguration applyConfiguration = 3; */ - public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? - io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; - } + public boolean hasApplyConfiguration() { + return ((bitField0_ & 0x00000002) == 0x00000002); } /** *
-       * Standard list metadata.
-       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-       * +optional
+       * applyConfiguration defines the desired configuration values of an object.
+       * The configuration is applied to the admission object using
+       * [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff).
+       * A CEL expression is used to create apply configuration.
        * 
* - * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + * optional .k8s.io.api.admissionregistration.v1.ApplyConfiguration applyConfiguration = 3; */ - private com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( - getMetadata(), - getParentForChildren(), - isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private java.util.List items_ = - java.util.Collections.emptyList(); - private void ensureItemsIsMutable() { - if (!((bitField0_ & 0x00000002) == 0x00000002)) { - items_ = new java.util.ArrayList(items_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationOrBuilder> itemsBuilder_; - - /** - *
-       * List of MutatingWebhookConfiguration.
-       * 
- * - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; - */ - public java.util.List getItemsList() { - if (itemsBuilder_ == null) { - return java.util.Collections.unmodifiableList(items_); + public io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration getApplyConfiguration() { + if (applyConfigurationBuilder_ == null) { + return applyConfiguration_ == null ? io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.getDefaultInstance() : applyConfiguration_; } else { - return itemsBuilder_.getMessageList(); + return applyConfigurationBuilder_.getMessage(); } } /** *
-       * List of MutatingWebhookConfiguration.
+       * applyConfiguration defines the desired configuration values of an object.
+       * The configuration is applied to the admission object using
+       * [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff).
+       * A CEL expression is used to create apply configuration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.ApplyConfiguration applyConfiguration = 3; */ - public int getItemsCount() { - if (itemsBuilder_ == null) { - return items_.size(); + public Builder setApplyConfiguration(io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration value) { + if (applyConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applyConfiguration_ = value; + onChanged(); } else { - return itemsBuilder_.getCount(); + applyConfigurationBuilder_.setMessage(value); } + bitField0_ |= 0x00000002; + return this; } /** *
-       * List of MutatingWebhookConfiguration.
+       * applyConfiguration defines the desired configuration values of an object.
+       * The configuration is applied to the admission object using
+       * [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff).
+       * A CEL expression is used to create apply configuration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.ApplyConfiguration applyConfiguration = 3; */ - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration getItems(int index) { - if (itemsBuilder_ == null) { - return items_.get(index); + public Builder setApplyConfiguration( + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.Builder builderForValue) { + if (applyConfigurationBuilder_ == null) { + applyConfiguration_ = builderForValue.build(); + onChanged(); } else { - return itemsBuilder_.getMessage(index); + applyConfigurationBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000002; + return this; } /** *
-       * List of MutatingWebhookConfiguration.
+       * applyConfiguration defines the desired configuration values of an object.
+       * The configuration is applied to the admission object using
+       * [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff).
+       * A CEL expression is used to create apply configuration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.ApplyConfiguration applyConfiguration = 3; */ - public Builder setItems( - int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); + public Builder mergeApplyConfiguration(io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration value) { + if (applyConfigurationBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + applyConfiguration_ != null && + applyConfiguration_ != io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.getDefaultInstance()) { + applyConfiguration_ = + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.newBuilder(applyConfiguration_).mergeFrom(value).buildPartial(); + } else { + applyConfiguration_ = value; } - ensureItemsIsMutable(); - items_.set(index, value); onChanged(); } else { - itemsBuilder_.setMessage(index, value); + applyConfigurationBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000002; return this; } /** *
-       * List of MutatingWebhookConfiguration.
+       * applyConfiguration defines the desired configuration values of an object.
+       * The configuration is applied to the admission object using
+       * [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff).
+       * A CEL expression is used to create apply configuration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.ApplyConfiguration applyConfiguration = 3; */ - public Builder setItems( - int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.set(index, builderForValue.build()); + public Builder clearApplyConfiguration() { + if (applyConfigurationBuilder_ == null) { + applyConfiguration_ = null; onChanged(); } else { - itemsBuilder_.setMessage(index, builderForValue.build()); + applyConfigurationBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
-       * List of MutatingWebhookConfiguration.
+       * applyConfiguration defines the desired configuration values of an object.
+       * The configuration is applied to the admission object using
+       * [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff).
+       * A CEL expression is used to create apply configuration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.ApplyConfiguration applyConfiguration = 3; */ - public Builder addItems(io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(value); - onChanged(); - } else { - itemsBuilder_.addMessage(value); - } - return this; + public io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.Builder getApplyConfigurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getApplyConfigurationFieldBuilder().getBuilder(); } /** *
-       * List of MutatingWebhookConfiguration.
+       * applyConfiguration defines the desired configuration values of an object.
+       * The configuration is applied to the admission object using
+       * [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff).
+       * A CEL expression is used to create apply configuration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.ApplyConfiguration applyConfiguration = 3; */ - public Builder addItems( - int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration value) { - if (itemsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureItemsIsMutable(); - items_.add(index, value); - onChanged(); + public io.kubernetes.client.proto.V1Admissionregistration.ApplyConfigurationOrBuilder getApplyConfigurationOrBuilder() { + if (applyConfigurationBuilder_ != null) { + return applyConfigurationBuilder_.getMessageOrBuilder(); } else { - itemsBuilder_.addMessage(index, value); + return applyConfiguration_ == null ? + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.getDefaultInstance() : applyConfiguration_; } - return this; } /** *
-       * List of MutatingWebhookConfiguration.
+       * applyConfiguration defines the desired configuration values of an object.
+       * The configuration is applied to the admission object using
+       * [structured merge diff](https://github.com/kubernetes-sigs/structured-merge-diff).
+       * A CEL expression is used to create apply configuration.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.ApplyConfiguration applyConfiguration = 3; */ - public Builder addItems( - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(builderForValue.build()); + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration, io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.Builder, io.kubernetes.client.proto.V1Admissionregistration.ApplyConfigurationOrBuilder> + getApplyConfigurationFieldBuilder() { + if (applyConfigurationBuilder_ == null) { + applyConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration, io.kubernetes.client.proto.V1Admissionregistration.ApplyConfiguration.Builder, io.kubernetes.client.proto.V1Admissionregistration.ApplyConfigurationOrBuilder>( + getApplyConfiguration(), + getParentForChildren(), + isClean()); + applyConfiguration_ = null; } - return this; + return applyConfigurationBuilder_; } + + private io.kubernetes.client.proto.V1Admissionregistration.JSONPatch jsonPatch_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.JSONPatch, io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.Builder, io.kubernetes.client.proto.V1Admissionregistration.JSONPatchOrBuilder> jsonPatchBuilder_; /** *
-       * List of MutatingWebhookConfiguration.
+       * jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object.
+       * A CEL expression is used to create the JSON patch.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.JSONPatch jsonPatch = 4; */ - public Builder addItems( - int index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder builderForValue) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.add(index, builderForValue.build()); - onChanged(); - } else { - itemsBuilder_.addMessage(index, builderForValue.build()); - } - return this; + public boolean hasJsonPatch() { + return ((bitField0_ & 0x00000004) == 0x00000004); } /** *
-       * List of MutatingWebhookConfiguration.
+       * jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object.
+       * A CEL expression is used to create the JSON patch.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.JSONPatch jsonPatch = 4; */ - public Builder addAllItems( - java.lang.Iterable values) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, items_); - onChanged(); + public io.kubernetes.client.proto.V1Admissionregistration.JSONPatch getJsonPatch() { + if (jsonPatchBuilder_ == null) { + return jsonPatch_ == null ? io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.getDefaultInstance() : jsonPatch_; } else { - itemsBuilder_.addAllMessages(values); + return jsonPatchBuilder_.getMessage(); } - return this; } /** *
-       * List of MutatingWebhookConfiguration.
+       * jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object.
+       * A CEL expression is used to create the JSON patch.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.JSONPatch jsonPatch = 4; */ - public Builder clearItems() { - if (itemsBuilder_ == null) { - items_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + public Builder setJsonPatch(io.kubernetes.client.proto.V1Admissionregistration.JSONPatch value) { + if (jsonPatchBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + jsonPatch_ = value; onChanged(); } else { - itemsBuilder_.clear(); + jsonPatchBuilder_.setMessage(value); } + bitField0_ |= 0x00000004; return this; } /** *
-       * List of MutatingWebhookConfiguration.
+       * jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object.
+       * A CEL expression is used to create the JSON patch.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.JSONPatch jsonPatch = 4; */ - public Builder removeItems(int index) { - if (itemsBuilder_ == null) { - ensureItemsIsMutable(); - items_.remove(index); + public Builder setJsonPatch( + io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.Builder builderForValue) { + if (jsonPatchBuilder_ == null) { + jsonPatch_ = builderForValue.build(); onChanged(); } else { - itemsBuilder_.remove(index); + jsonPatchBuilder_.setMessage(builderForValue.build()); } + bitField0_ |= 0x00000004; return this; } /** *
-       * List of MutatingWebhookConfiguration.
-       * 
- * - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; - */ - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder getItemsBuilder( - int index) { - return getItemsFieldBuilder().getBuilder(index); - } - /** - *
-       * List of MutatingWebhookConfiguration.
+       * jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object.
+       * A CEL expression is used to create the JSON patch.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.JSONPatch jsonPatch = 4; */ - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationOrBuilder getItemsOrBuilder( - int index) { - if (itemsBuilder_ == null) { - return items_.get(index); } else { - return itemsBuilder_.getMessageOrBuilder(index); + public Builder mergeJsonPatch(io.kubernetes.client.proto.V1Admissionregistration.JSONPatch value) { + if (jsonPatchBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + jsonPatch_ != null && + jsonPatch_ != io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.getDefaultInstance()) { + jsonPatch_ = + io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.newBuilder(jsonPatch_).mergeFrom(value).buildPartial(); + } else { + jsonPatch_ = value; + } + onChanged(); + } else { + jsonPatchBuilder_.mergeFrom(value); } + bitField0_ |= 0x00000004; + return this; } /** *
-       * List of MutatingWebhookConfiguration.
+       * jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object.
+       * A CEL expression is used to create the JSON patch.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.JSONPatch jsonPatch = 4; */ - public java.util.List - getItemsOrBuilderList() { - if (itemsBuilder_ != null) { - return itemsBuilder_.getMessageOrBuilderList(); + public Builder clearJsonPatch() { + if (jsonPatchBuilder_ == null) { + jsonPatch_ = null; + onChanged(); } else { - return java.util.Collections.unmodifiableList(items_); + jsonPatchBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); + return this; } /** *
-       * List of MutatingWebhookConfiguration.
+       * jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object.
+       * A CEL expression is used to create the JSON patch.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.JSONPatch jsonPatch = 4; */ - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder addItemsBuilder() { - return getItemsFieldBuilder().addBuilder( - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.getDefaultInstance()); + public io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.Builder getJsonPatchBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getJsonPatchFieldBuilder().getBuilder(); } /** *
-       * List of MutatingWebhookConfiguration.
+       * jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object.
+       * A CEL expression is used to create the JSON patch.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.JSONPatch jsonPatch = 4; */ - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder addItemsBuilder( - int index) { - return getItemsFieldBuilder().addBuilder( - index, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.getDefaultInstance()); + public io.kubernetes.client.proto.V1Admissionregistration.JSONPatchOrBuilder getJsonPatchOrBuilder() { + if (jsonPatchBuilder_ != null) { + return jsonPatchBuilder_.getMessageOrBuilder(); + } else { + return jsonPatch_ == null ? + io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.getDefaultInstance() : jsonPatch_; + } } /** *
-       * List of MutatingWebhookConfiguration.
+       * jsonPatch defines a [JSON patch](https://jsonpatch.com/) operation to perform a mutation to the object.
+       * A CEL expression is used to create the JSON patch.
        * 
* - * repeated .k8s.io.api.admissionregistration.v1.MutatingWebhookConfiguration items = 2; + * optional .k8s.io.api.admissionregistration.v1.JSONPatch jsonPatch = 4; */ - public java.util.List - getItemsBuilderList() { - return getItemsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationOrBuilder> - getItemsFieldBuilder() { - if (itemsBuilder_ == null) { - itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfiguration.Builder, io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationOrBuilder>( - items_, - ((bitField0_ & 0x00000002) == 0x00000002), + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.JSONPatch, io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.Builder, io.kubernetes.client.proto.V1Admissionregistration.JSONPatchOrBuilder> + getJsonPatchFieldBuilder() { + if (jsonPatchBuilder_ == null) { + jsonPatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Admissionregistration.JSONPatch, io.kubernetes.client.proto.V1Admissionregistration.JSONPatch.Builder, io.kubernetes.client.proto.V1Admissionregistration.JSONPatchOrBuilder>( + getJsonPatch(), getParentForChildren(), isClean()); - items_ = null; + jsonPatch_ = null; } - return itemsBuilder_; + return jsonPatchBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -14235,41 +27377,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList) + // @@protoc_insertion_point(builder_scope:k8s.io.api.admissionregistration.v1.Mutation) } - // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.MutatingWebhookConfigurationList) - private static final io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:k8s.io.api.admissionregistration.v1.Mutation) + private static final io.kubernetes.client.proto.V1Admissionregistration.Mutation DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList(); + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Admissionregistration.Mutation(); } - public static io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList getDefaultInstance() { + public static io.kubernetes.client.proto.V1Admissionregistration.Mutation getDefaultInstance() { return DEFAULT_INSTANCE; } - @java.lang.Deprecated public static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public MutatingWebhookConfigurationList parsePartialFrom( + public Mutation parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MutatingWebhookConfigurationList(input, extensionRegistry); + return new Mutation(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.kubernetes.client.proto.V1Admissionregistration.MutatingWebhookConfigurationList getDefaultInstanceForType() { + public io.kubernetes.client.proto.V1Admissionregistration.Mutation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -14281,7 +27423,7 @@ public interface NamedRuleWithOperationsOrBuilder extends /** *
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
      * +listType=atomic
      * +optional
      * 
@@ -14292,7 +27434,7 @@ public interface NamedRuleWithOperationsOrBuilder extends getResourceNamesList(); /** *
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
      * +listType=atomic
      * +optional
      * 
@@ -14302,7 +27444,7 @@ public interface NamedRuleWithOperationsOrBuilder extends int getResourceNamesCount(); /** *
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
      * +listType=atomic
      * +optional
      * 
@@ -14312,7 +27454,7 @@ public interface NamedRuleWithOperationsOrBuilder extends java.lang.String getResourceNames(int index); /** *
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
      * +listType=atomic
      * +optional
      * 
@@ -14454,7 +27596,7 @@ private NamedRuleWithOperations( private com.google.protobuf.LazyStringList resourceNames_; /** *
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
      * +listType=atomic
      * +optional
      * 
@@ -14467,7 +27609,7 @@ private NamedRuleWithOperations( } /** *
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
      * +listType=atomic
      * +optional
      * 
@@ -14479,7 +27621,7 @@ public int getResourceNamesCount() { } /** *
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
      * +listType=atomic
      * +optional
      * 
@@ -14491,7 +27633,7 @@ public java.lang.String getResourceNames(int index) { } /** *
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
      * +listType=atomic
      * +optional
      * 
@@ -14908,7 +28050,7 @@ private void ensureResourceNamesIsMutable() { } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
        * +listType=atomic
        * +optional
        * 
@@ -14921,7 +28063,7 @@ private void ensureResourceNamesIsMutable() { } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
        * +listType=atomic
        * +optional
        * 
@@ -14933,7 +28075,7 @@ public int getResourceNamesCount() { } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
        * +listType=atomic
        * +optional
        * 
@@ -14945,7 +28087,7 @@ public java.lang.String getResourceNames(int index) { } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
        * +listType=atomic
        * +optional
        * 
@@ -14958,7 +28100,7 @@ public java.lang.String getResourceNames(int index) { } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
        * +listType=atomic
        * +optional
        * 
@@ -14977,7 +28119,7 @@ public Builder setResourceNames( } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
        * +listType=atomic
        * +optional
        * 
@@ -14996,7 +28138,7 @@ public Builder addResourceNames( } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
        * +listType=atomic
        * +optional
        * 
@@ -15013,7 +28155,7 @@ public Builder addAllResourceNames( } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
        * +listType=atomic
        * +optional
        * 
@@ -15028,7 +28170,7 @@ public Builder clearResourceNames() { } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.
        * +listType=atomic
        * +optional
        * 
@@ -15258,7 +28400,7 @@ public interface ParamKindOrBuilder extends /** *
-     * APIVersion is the API group version the resources belong to.
+     * apiVersion is the API group version the resources belong to.
      * In format of "group/version".
      * Required.
      * 
@@ -15268,7 +28410,7 @@ public interface ParamKindOrBuilder extends boolean hasApiVersion(); /** *
-     * APIVersion is the API group version the resources belong to.
+     * apiVersion is the API group version the resources belong to.
      * In format of "group/version".
      * Required.
      * 
@@ -15278,7 +28420,7 @@ public interface ParamKindOrBuilder extends java.lang.String getApiVersion(); /** *
-     * APIVersion is the API group version the resources belong to.
+     * apiVersion is the API group version the resources belong to.
      * In format of "group/version".
      * Required.
      * 
@@ -15290,7 +28432,7 @@ public interface ParamKindOrBuilder extends /** *
-     * Kind is the API kind the resources belong to.
+     * kind is the API kind the resources belong to.
      * Required.
      * 
* @@ -15299,7 +28441,7 @@ public interface ParamKindOrBuilder extends boolean hasKind(); /** *
-     * Kind is the API kind the resources belong to.
+     * kind is the API kind the resources belong to.
      * Required.
      * 
* @@ -15308,7 +28450,7 @@ public interface ParamKindOrBuilder extends java.lang.String getKind(); /** *
-     * Kind is the API kind the resources belong to.
+     * kind is the API kind the resources belong to.
      * Required.
      * 
* @@ -15412,7 +28554,7 @@ private ParamKind( private volatile java.lang.Object apiVersion_; /** *
-     * APIVersion is the API group version the resources belong to.
+     * apiVersion is the API group version the resources belong to.
      * In format of "group/version".
      * Required.
      * 
@@ -15424,7 +28566,7 @@ public boolean hasApiVersion() { } /** *
-     * APIVersion is the API group version the resources belong to.
+     * apiVersion is the API group version the resources belong to.
      * In format of "group/version".
      * Required.
      * 
@@ -15447,7 +28589,7 @@ public java.lang.String getApiVersion() { } /** *
-     * APIVersion is the API group version the resources belong to.
+     * apiVersion is the API group version the resources belong to.
      * In format of "group/version".
      * Required.
      * 
@@ -15472,7 +28614,7 @@ public java.lang.String getApiVersion() { private volatile java.lang.Object kind_; /** *
-     * Kind is the API kind the resources belong to.
+     * kind is the API kind the resources belong to.
      * Required.
      * 
* @@ -15483,7 +28625,7 @@ public boolean hasKind() { } /** *
-     * Kind is the API kind the resources belong to.
+     * kind is the API kind the resources belong to.
      * Required.
      * 
* @@ -15505,7 +28647,7 @@ public java.lang.String getKind() { } /** *
-     * Kind is the API kind the resources belong to.
+     * kind is the API kind the resources belong to.
      * Required.
      * 
* @@ -15875,7 +29017,7 @@ public Builder mergeFrom( private java.lang.Object apiVersion_ = ""; /** *
-       * APIVersion is the API group version the resources belong to.
+       * apiVersion is the API group version the resources belong to.
        * In format of "group/version".
        * Required.
        * 
@@ -15887,7 +29029,7 @@ public boolean hasApiVersion() { } /** *
-       * APIVersion is the API group version the resources belong to.
+       * apiVersion is the API group version the resources belong to.
        * In format of "group/version".
        * Required.
        * 
@@ -15910,7 +29052,7 @@ public java.lang.String getApiVersion() { } /** *
-       * APIVersion is the API group version the resources belong to.
+       * apiVersion is the API group version the resources belong to.
        * In format of "group/version".
        * Required.
        * 
@@ -15932,7 +29074,7 @@ public java.lang.String getApiVersion() { } /** *
-       * APIVersion is the API group version the resources belong to.
+       * apiVersion is the API group version the resources belong to.
        * In format of "group/version".
        * Required.
        * 
@@ -15951,7 +29093,7 @@ public Builder setApiVersion( } /** *
-       * APIVersion is the API group version the resources belong to.
+       * apiVersion is the API group version the resources belong to.
        * In format of "group/version".
        * Required.
        * 
@@ -15966,7 +29108,7 @@ public Builder clearApiVersion() { } /** *
-       * APIVersion is the API group version the resources belong to.
+       * apiVersion is the API group version the resources belong to.
        * In format of "group/version".
        * Required.
        * 
@@ -15987,7 +29129,7 @@ public Builder setApiVersionBytes( private java.lang.Object kind_ = ""; /** *
-       * Kind is the API kind the resources belong to.
+       * kind is the API kind the resources belong to.
        * Required.
        * 
* @@ -15998,7 +29140,7 @@ public boolean hasKind() { } /** *
-       * Kind is the API kind the resources belong to.
+       * kind is the API kind the resources belong to.
        * Required.
        * 
* @@ -16020,7 +29162,7 @@ public java.lang.String getKind() { } /** *
-       * Kind is the API kind the resources belong to.
+       * kind is the API kind the resources belong to.
        * Required.
        * 
* @@ -16041,7 +29183,7 @@ public java.lang.String getKind() { } /** *
-       * Kind is the API kind the resources belong to.
+       * kind is the API kind the resources belong to.
        * Required.
        * 
* @@ -16059,7 +29201,7 @@ public Builder setKind( } /** *
-       * Kind is the API kind the resources belong to.
+       * kind is the API kind the resources belong to.
        * Required.
        * 
* @@ -16073,7 +29215,7 @@ public Builder clearKind() { } /** *
-       * Kind is the API kind the resources belong to.
+       * kind is the API kind the resources belong to.
        * Required.
        * 
* @@ -16291,7 +29433,7 @@ public interface ParamRefOrBuilder extends /** *
-     * `parameterNotFoundAction` controls the behavior of the binding when the resource
+     * parameterNotFoundAction controls the behavior of the binding when the resource
      * exists, and name or selector is valid, but there are no parameters
      * matched by the binding. If the value is set to `Allow`, then no
      * matched parameters will be treated as successful validation by the binding.
@@ -16306,7 +29448,7 @@ public interface ParamRefOrBuilder extends
     boolean hasParameterNotFoundAction();
     /**
      * 
-     * `parameterNotFoundAction` controls the behavior of the binding when the resource
+     * parameterNotFoundAction controls the behavior of the binding when the resource
      * exists, and name or selector is valid, but there are no parameters
      * matched by the binding. If the value is set to `Allow`, then no
      * matched parameters will be treated as successful validation by the binding.
@@ -16321,7 +29463,7 @@ public interface ParamRefOrBuilder extends
     java.lang.String getParameterNotFoundAction();
     /**
      * 
-     * `parameterNotFoundAction` controls the behavior of the binding when the resource
+     * parameterNotFoundAction controls the behavior of the binding when the resource
      * exists, and name or selector is valid, but there are no parameters
      * matched by the binding. If the value is set to `Allow`, then no
      * matched parameters will be treated as successful validation by the binding.
@@ -16659,7 +29801,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuild
     private volatile java.lang.Object parameterNotFoundAction_;
     /**
      * 
-     * `parameterNotFoundAction` controls the behavior of the binding when the resource
+     * parameterNotFoundAction controls the behavior of the binding when the resource
      * exists, and name or selector is valid, but there are no parameters
      * matched by the binding. If the value is set to `Allow`, then no
      * matched parameters will be treated as successful validation by the binding.
@@ -16676,7 +29818,7 @@ public boolean hasParameterNotFoundAction() {
     }
     /**
      * 
-     * `parameterNotFoundAction` controls the behavior of the binding when the resource
+     * parameterNotFoundAction controls the behavior of the binding when the resource
      * exists, and name or selector is valid, but there are no parameters
      * matched by the binding. If the value is set to `Allow`, then no
      * matched parameters will be treated as successful validation by the binding.
@@ -16704,7 +29846,7 @@ public java.lang.String getParameterNotFoundAction() {
     }
     /**
      * 
-     * `parameterNotFoundAction` controls the behavior of the binding when the resource
+     * parameterNotFoundAction controls the behavior of the binding when the resource
      * exists, and name or selector is valid, but there are no parameters
      * matched by the binding. If the value is set to `Allow`, then no
      * matched parameters will be treated as successful validation by the binding.
@@ -17645,7 +30787,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuild
       private java.lang.Object parameterNotFoundAction_ = "";
       /**
        * 
-       * `parameterNotFoundAction` controls the behavior of the binding when the resource
+       * parameterNotFoundAction controls the behavior of the binding when the resource
        * exists, and name or selector is valid, but there are no parameters
        * matched by the binding. If the value is set to `Allow`, then no
        * matched parameters will be treated as successful validation by the binding.
@@ -17662,7 +30804,7 @@ public boolean hasParameterNotFoundAction() {
       }
       /**
        * 
-       * `parameterNotFoundAction` controls the behavior of the binding when the resource
+       * parameterNotFoundAction controls the behavior of the binding when the resource
        * exists, and name or selector is valid, but there are no parameters
        * matched by the binding. If the value is set to `Allow`, then no
        * matched parameters will be treated as successful validation by the binding.
@@ -17690,7 +30832,7 @@ public java.lang.String getParameterNotFoundAction() {
       }
       /**
        * 
-       * `parameterNotFoundAction` controls the behavior of the binding when the resource
+       * parameterNotFoundAction controls the behavior of the binding when the resource
        * exists, and name or selector is valid, but there are no parameters
        * matched by the binding. If the value is set to `Allow`, then no
        * matched parameters will be treated as successful validation by the binding.
@@ -17717,7 +30859,7 @@ public java.lang.String getParameterNotFoundAction() {
       }
       /**
        * 
-       * `parameterNotFoundAction` controls the behavior of the binding when the resource
+       * parameterNotFoundAction controls the behavior of the binding when the resource
        * exists, and name or selector is valid, but there are no parameters
        * matched by the binding. If the value is set to `Allow`, then no
        * matched parameters will be treated as successful validation by the binding.
@@ -17741,7 +30883,7 @@ public Builder setParameterNotFoundAction(
       }
       /**
        * 
-       * `parameterNotFoundAction` controls the behavior of the binding when the resource
+       * parameterNotFoundAction controls the behavior of the binding when the resource
        * exists, and name or selector is valid, but there are no parameters
        * matched by the binding. If the value is set to `Allow`, then no
        * matched parameters will be treated as successful validation by the binding.
@@ -17761,7 +30903,7 @@ public Builder clearParameterNotFoundAction() {
       }
       /**
        * 
-       * `parameterNotFoundAction` controls the behavior of the binding when the resource
+       * parameterNotFoundAction controls the behavior of the binding when the resource
        * exists, and name or selector is valid, but there are no parameters
        * matched by the binding. If the value is set to `Allow`, then no
        * matched parameters will be treated as successful validation by the binding.
@@ -17842,7 +30984,7 @@ public interface RuleOrBuilder extends
 
     /**
      * 
-     * APIGroups is the API groups the resources belong to. '*' is all groups.
+     * apiGroups is the API groups the resources belong to. '*' is all groups.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -17854,7 +30996,7 @@ public interface RuleOrBuilder extends
         getApiGroupsList();
     /**
      * 
-     * APIGroups is the API groups the resources belong to. '*' is all groups.
+     * apiGroups is the API groups the resources belong to. '*' is all groups.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -17865,7 +31007,7 @@ public interface RuleOrBuilder extends
     int getApiGroupsCount();
     /**
      * 
-     * APIGroups is the API groups the resources belong to. '*' is all groups.
+     * apiGroups is the API groups the resources belong to. '*' is all groups.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -17876,7 +31018,7 @@ public interface RuleOrBuilder extends
     java.lang.String getApiGroups(int index);
     /**
      * 
-     * APIGroups is the API groups the resources belong to. '*' is all groups.
+     * apiGroups is the API groups the resources belong to. '*' is all groups.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -17889,7 +31031,7 @@ public interface RuleOrBuilder extends
 
     /**
      * 
-     * APIVersions is the API versions the resources belong to. '*' is all versions.
+     * apiVersions is the API versions the resources belong to. '*' is all versions.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -17901,7 +31043,7 @@ public interface RuleOrBuilder extends
         getApiVersionsList();
     /**
      * 
-     * APIVersions is the API versions the resources belong to. '*' is all versions.
+     * apiVersions is the API versions the resources belong to. '*' is all versions.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -17912,7 +31054,7 @@ public interface RuleOrBuilder extends
     int getApiVersionsCount();
     /**
      * 
-     * APIVersions is the API versions the resources belong to. '*' is all versions.
+     * apiVersions is the API versions the resources belong to. '*' is all versions.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -17923,7 +31065,7 @@ public interface RuleOrBuilder extends
     java.lang.String getApiVersions(int index);
     /**
      * 
-     * APIVersions is the API versions the resources belong to. '*' is all versions.
+     * apiVersions is the API versions the resources belong to. '*' is all versions.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -17936,7 +31078,7 @@ public interface RuleOrBuilder extends
 
     /**
      * 
-     * Resources is a list of resources this rule applies to.
+     * resources is a list of resources this rule applies to.
      * For example:
      * 'pods' means pods.
      * 'pods/log' means the log subresource of pods.
@@ -17957,7 +31099,7 @@ public interface RuleOrBuilder extends
         getResourcesList();
     /**
      * 
-     * Resources is a list of resources this rule applies to.
+     * resources is a list of resources this rule applies to.
      * For example:
      * 'pods' means pods.
      * 'pods/log' means the log subresource of pods.
@@ -17977,7 +31119,7 @@ public interface RuleOrBuilder extends
     int getResourcesCount();
     /**
      * 
-     * Resources is a list of resources this rule applies to.
+     * resources is a list of resources this rule applies to.
      * For example:
      * 'pods' means pods.
      * 'pods/log' means the log subresource of pods.
@@ -17997,7 +31139,7 @@ public interface RuleOrBuilder extends
     java.lang.String getResources(int index);
     /**
      * 
-     * Resources is a list of resources this rule applies to.
+     * resources is a list of resources this rule applies to.
      * For example:
      * 'pods' means pods.
      * 'pods/log' means the log subresource of pods.
@@ -18194,7 +31336,7 @@ private Rule(
     private com.google.protobuf.LazyStringList apiGroups_;
     /**
      * 
-     * APIGroups is the API groups the resources belong to. '*' is all groups.
+     * apiGroups is the API groups the resources belong to. '*' is all groups.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -18208,7 +31350,7 @@ private Rule(
     }
     /**
      * 
-     * APIGroups is the API groups the resources belong to. '*' is all groups.
+     * apiGroups is the API groups the resources belong to. '*' is all groups.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -18221,7 +31363,7 @@ public int getApiGroupsCount() {
     }
     /**
      * 
-     * APIGroups is the API groups the resources belong to. '*' is all groups.
+     * apiGroups is the API groups the resources belong to. '*' is all groups.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -18234,7 +31376,7 @@ public java.lang.String getApiGroups(int index) {
     }
     /**
      * 
-     * APIGroups is the API groups the resources belong to. '*' is all groups.
+     * apiGroups is the API groups the resources belong to. '*' is all groups.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -18251,7 +31393,7 @@ public java.lang.String getApiGroups(int index) {
     private com.google.protobuf.LazyStringList apiVersions_;
     /**
      * 
-     * APIVersions is the API versions the resources belong to. '*' is all versions.
+     * apiVersions is the API versions the resources belong to. '*' is all versions.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -18265,7 +31407,7 @@ public java.lang.String getApiGroups(int index) {
     }
     /**
      * 
-     * APIVersions is the API versions the resources belong to. '*' is all versions.
+     * apiVersions is the API versions the resources belong to. '*' is all versions.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -18278,7 +31420,7 @@ public int getApiVersionsCount() {
     }
     /**
      * 
-     * APIVersions is the API versions the resources belong to. '*' is all versions.
+     * apiVersions is the API versions the resources belong to. '*' is all versions.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -18291,7 +31433,7 @@ public java.lang.String getApiVersions(int index) {
     }
     /**
      * 
-     * APIVersions is the API versions the resources belong to. '*' is all versions.
+     * apiVersions is the API versions the resources belong to. '*' is all versions.
      * If '*' is present, the length of the slice must be one.
      * Required.
      * +listType=atomic
@@ -18308,7 +31450,7 @@ public java.lang.String getApiVersions(int index) {
     private com.google.protobuf.LazyStringList resources_;
     /**
      * 
-     * Resources is a list of resources this rule applies to.
+     * resources is a list of resources this rule applies to.
      * For example:
      * 'pods' means pods.
      * 'pods/log' means the log subresource of pods.
@@ -18331,7 +31473,7 @@ public java.lang.String getApiVersions(int index) {
     }
     /**
      * 
-     * Resources is a list of resources this rule applies to.
+     * resources is a list of resources this rule applies to.
      * For example:
      * 'pods' means pods.
      * 'pods/log' means the log subresource of pods.
@@ -18353,7 +31495,7 @@ public int getResourcesCount() {
     }
     /**
      * 
-     * Resources is a list of resources this rule applies to.
+     * resources is a list of resources this rule applies to.
      * For example:
      * 'pods' means pods.
      * 'pods/log' means the log subresource of pods.
@@ -18375,7 +31517,7 @@ public java.lang.String getResources(int index) {
     }
     /**
      * 
-     * Resources is a list of resources this rule applies to.
+     * resources is a list of resources this rule applies to.
      * For example:
      * 'pods' means pods.
      * 'pods/log' means the log subresource of pods.
@@ -18907,7 +32049,7 @@ private void ensureApiGroupsIsMutable() {
       }
       /**
        * 
-       * APIGroups is the API groups the resources belong to. '*' is all groups.
+       * apiGroups is the API groups the resources belong to. '*' is all groups.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -18921,7 +32063,7 @@ private void ensureApiGroupsIsMutable() {
       }
       /**
        * 
-       * APIGroups is the API groups the resources belong to. '*' is all groups.
+       * apiGroups is the API groups the resources belong to. '*' is all groups.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -18934,7 +32076,7 @@ public int getApiGroupsCount() {
       }
       /**
        * 
-       * APIGroups is the API groups the resources belong to. '*' is all groups.
+       * apiGroups is the API groups the resources belong to. '*' is all groups.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -18947,7 +32089,7 @@ public java.lang.String getApiGroups(int index) {
       }
       /**
        * 
-       * APIGroups is the API groups the resources belong to. '*' is all groups.
+       * apiGroups is the API groups the resources belong to. '*' is all groups.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -18961,7 +32103,7 @@ public java.lang.String getApiGroups(int index) {
       }
       /**
        * 
-       * APIGroups is the API groups the resources belong to. '*' is all groups.
+       * apiGroups is the API groups the resources belong to. '*' is all groups.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -18981,7 +32123,7 @@ public Builder setApiGroups(
       }
       /**
        * 
-       * APIGroups is the API groups the resources belong to. '*' is all groups.
+       * apiGroups is the API groups the resources belong to. '*' is all groups.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -19001,7 +32143,7 @@ public Builder addApiGroups(
       }
       /**
        * 
-       * APIGroups is the API groups the resources belong to. '*' is all groups.
+       * apiGroups is the API groups the resources belong to. '*' is all groups.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -19019,7 +32161,7 @@ public Builder addAllApiGroups(
       }
       /**
        * 
-       * APIGroups is the API groups the resources belong to. '*' is all groups.
+       * apiGroups is the API groups the resources belong to. '*' is all groups.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -19035,7 +32177,7 @@ public Builder clearApiGroups() {
       }
       /**
        * 
-       * APIGroups is the API groups the resources belong to. '*' is all groups.
+       * apiGroups is the API groups the resources belong to. '*' is all groups.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -19063,7 +32205,7 @@ private void ensureApiVersionsIsMutable() {
       }
       /**
        * 
-       * APIVersions is the API versions the resources belong to. '*' is all versions.
+       * apiVersions is the API versions the resources belong to. '*' is all versions.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -19077,7 +32219,7 @@ private void ensureApiVersionsIsMutable() {
       }
       /**
        * 
-       * APIVersions is the API versions the resources belong to. '*' is all versions.
+       * apiVersions is the API versions the resources belong to. '*' is all versions.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -19090,7 +32232,7 @@ public int getApiVersionsCount() {
       }
       /**
        * 
-       * APIVersions is the API versions the resources belong to. '*' is all versions.
+       * apiVersions is the API versions the resources belong to. '*' is all versions.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -19103,7 +32245,7 @@ public java.lang.String getApiVersions(int index) {
       }
       /**
        * 
-       * APIVersions is the API versions the resources belong to. '*' is all versions.
+       * apiVersions is the API versions the resources belong to. '*' is all versions.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -19117,7 +32259,7 @@ public java.lang.String getApiVersions(int index) {
       }
       /**
        * 
-       * APIVersions is the API versions the resources belong to. '*' is all versions.
+       * apiVersions is the API versions the resources belong to. '*' is all versions.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -19137,7 +32279,7 @@ public Builder setApiVersions(
       }
       /**
        * 
-       * APIVersions is the API versions the resources belong to. '*' is all versions.
+       * apiVersions is the API versions the resources belong to. '*' is all versions.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -19157,7 +32299,7 @@ public Builder addApiVersions(
       }
       /**
        * 
-       * APIVersions is the API versions the resources belong to. '*' is all versions.
+       * apiVersions is the API versions the resources belong to. '*' is all versions.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -19175,7 +32317,7 @@ public Builder addAllApiVersions(
       }
       /**
        * 
-       * APIVersions is the API versions the resources belong to. '*' is all versions.
+       * apiVersions is the API versions the resources belong to. '*' is all versions.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -19191,7 +32333,7 @@ public Builder clearApiVersions() {
       }
       /**
        * 
-       * APIVersions is the API versions the resources belong to. '*' is all versions.
+       * apiVersions is the API versions the resources belong to. '*' is all versions.
        * If '*' is present, the length of the slice must be one.
        * Required.
        * +listType=atomic
@@ -19219,7 +32361,7 @@ private void ensureResourcesIsMutable() {
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.
+       * resources is a list of resources this rule applies to.
        * For example:
        * 'pods' means pods.
        * 'pods/log' means the log subresource of pods.
@@ -19242,7 +32384,7 @@ private void ensureResourcesIsMutable() {
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.
+       * resources is a list of resources this rule applies to.
        * For example:
        * 'pods' means pods.
        * 'pods/log' means the log subresource of pods.
@@ -19264,7 +32406,7 @@ public int getResourcesCount() {
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.
+       * resources is a list of resources this rule applies to.
        * For example:
        * 'pods' means pods.
        * 'pods/log' means the log subresource of pods.
@@ -19286,7 +32428,7 @@ public java.lang.String getResources(int index) {
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.
+       * resources is a list of resources this rule applies to.
        * For example:
        * 'pods' means pods.
        * 'pods/log' means the log subresource of pods.
@@ -19309,7 +32451,7 @@ public java.lang.String getResources(int index) {
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.
+       * resources is a list of resources this rule applies to.
        * For example:
        * 'pods' means pods.
        * 'pods/log' means the log subresource of pods.
@@ -19338,7 +32480,7 @@ public Builder setResources(
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.
+       * resources is a list of resources this rule applies to.
        * For example:
        * 'pods' means pods.
        * 'pods/log' means the log subresource of pods.
@@ -19367,7 +32509,7 @@ public Builder addResources(
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.
+       * resources is a list of resources this rule applies to.
        * For example:
        * 'pods' means pods.
        * 'pods/log' means the log subresource of pods.
@@ -19394,7 +32536,7 @@ public Builder addAllResources(
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.
+       * resources is a list of resources this rule applies to.
        * For example:
        * 'pods' means pods.
        * 'pods/log' means the log subresource of pods.
@@ -19419,7 +32561,7 @@ public Builder clearResources() {
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.
+       * resources is a list of resources this rule applies to.
        * For example:
        * 'pods' means pods.
        * 'pods/log' means the log subresource of pods.
@@ -19653,7 +32795,7 @@ public interface RuleWithOperationsOrBuilder extends
 
     /**
      * 
-     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+     * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
      * for all of those operations and any future admission operations that are added.
      * If '*' is present, the length of the slice must be one.
      * Required.
@@ -19666,7 +32808,7 @@ public interface RuleWithOperationsOrBuilder extends
         getOperationsList();
     /**
      * 
-     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+     * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
      * for all of those operations and any future admission operations that are added.
      * If '*' is present, the length of the slice must be one.
      * Required.
@@ -19678,7 +32820,7 @@ public interface RuleWithOperationsOrBuilder extends
     int getOperationsCount();
     /**
      * 
-     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+     * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
      * for all of those operations and any future admission operations that are added.
      * If '*' is present, the length of the slice must be one.
      * Required.
@@ -19690,7 +32832,7 @@ public interface RuleWithOperationsOrBuilder extends
     java.lang.String getOperations(int index);
     /**
      * 
-     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+     * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
      * for all of those operations and any future admission operations that are added.
      * If '*' is present, the length of the slice must be one.
      * Required.
@@ -19837,7 +32979,7 @@ private RuleWithOperations(
     private com.google.protobuf.LazyStringList operations_;
     /**
      * 
-     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+     * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
      * for all of those operations and any future admission operations that are added.
      * If '*' is present, the length of the slice must be one.
      * Required.
@@ -19852,7 +32994,7 @@ private RuleWithOperations(
     }
     /**
      * 
-     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+     * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
      * for all of those operations and any future admission operations that are added.
      * If '*' is present, the length of the slice must be one.
      * Required.
@@ -19866,7 +33008,7 @@ public int getOperationsCount() {
     }
     /**
      * 
-     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+     * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
      * for all of those operations and any future admission operations that are added.
      * If '*' is present, the length of the slice must be one.
      * Required.
@@ -19880,7 +33022,7 @@ public java.lang.String getOperations(int index) {
     }
     /**
      * 
-     * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+     * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
      * for all of those operations and any future admission operations that are added.
      * If '*' is present, the length of the slice must be one.
      * Required.
@@ -20302,7 +33444,7 @@ private void ensureOperationsIsMutable() {
       }
       /**
        * 
-       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+       * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
        * for all of those operations and any future admission operations that are added.
        * If '*' is present, the length of the slice must be one.
        * Required.
@@ -20317,7 +33459,7 @@ private void ensureOperationsIsMutable() {
       }
       /**
        * 
-       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+       * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
        * for all of those operations and any future admission operations that are added.
        * If '*' is present, the length of the slice must be one.
        * Required.
@@ -20331,7 +33473,7 @@ public int getOperationsCount() {
       }
       /**
        * 
-       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+       * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
        * for all of those operations and any future admission operations that are added.
        * If '*' is present, the length of the slice must be one.
        * Required.
@@ -20345,7 +33487,7 @@ public java.lang.String getOperations(int index) {
       }
       /**
        * 
-       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+       * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
        * for all of those operations and any future admission operations that are added.
        * If '*' is present, the length of the slice must be one.
        * Required.
@@ -20360,7 +33502,7 @@ public java.lang.String getOperations(int index) {
       }
       /**
        * 
-       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+       * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
        * for all of those operations and any future admission operations that are added.
        * If '*' is present, the length of the slice must be one.
        * Required.
@@ -20381,7 +33523,7 @@ public Builder setOperations(
       }
       /**
        * 
-       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+       * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
        * for all of those operations and any future admission operations that are added.
        * If '*' is present, the length of the slice must be one.
        * Required.
@@ -20402,7 +33544,7 @@ public Builder addOperations(
       }
       /**
        * 
-       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+       * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
        * for all of those operations and any future admission operations that are added.
        * If '*' is present, the length of the slice must be one.
        * Required.
@@ -20421,7 +33563,7 @@ public Builder addAllOperations(
       }
       /**
        * 
-       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+       * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
        * for all of those operations and any future admission operations that are added.
        * If '*' is present, the length of the slice must be one.
        * Required.
@@ -20438,7 +33580,7 @@ public Builder clearOperations() {
       }
       /**
        * 
-       * Operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
+       * operations is the operations the admission hook cares about - CREATE, UPDATE, DELETE, CONNECT or *
        * for all of those operations and any future admission operations that are added.
        * If '*' is present, the length of the slice must be one.
        * Required.
@@ -20679,7 +33821,7 @@ public interface ServiceReferenceOrBuilder extends
 
     /**
      * 
-     * `namespace` is the namespace of the service.
+     * namespace is the namespace of the service.
      * Required
      * 
* @@ -20688,7 +33830,7 @@ public interface ServiceReferenceOrBuilder extends boolean hasNamespace(); /** *
-     * `namespace` is the namespace of the service.
+     * namespace is the namespace of the service.
      * Required
      * 
* @@ -20697,7 +33839,7 @@ public interface ServiceReferenceOrBuilder extends java.lang.String getNamespace(); /** *
-     * `namespace` is the namespace of the service.
+     * namespace is the namespace of the service.
      * Required
      * 
* @@ -20708,7 +33850,7 @@ public interface ServiceReferenceOrBuilder extends /** *
-     * `name` is the name of the service.
+     * name is the name of the service.
      * Required
      * 
* @@ -20717,7 +33859,7 @@ public interface ServiceReferenceOrBuilder extends boolean hasName(); /** *
-     * `name` is the name of the service.
+     * name is the name of the service.
      * Required
      * 
* @@ -20726,7 +33868,7 @@ public interface ServiceReferenceOrBuilder extends java.lang.String getName(); /** *
-     * `name` is the name of the service.
+     * name is the name of the service.
      * Required
      * 
* @@ -20737,7 +33879,7 @@ public interface ServiceReferenceOrBuilder extends /** *
-     * `path` is an optional URL path which will be sent in any request to
+     * path is an optional URL path which will be sent in any request to
      * this service.
      * +optional
      * 
@@ -20747,7 +33889,7 @@ public interface ServiceReferenceOrBuilder extends boolean hasPath(); /** *
-     * `path` is an optional URL path which will be sent in any request to
+     * path is an optional URL path which will be sent in any request to
      * this service.
      * +optional
      * 
@@ -20757,7 +33899,7 @@ public interface ServiceReferenceOrBuilder extends java.lang.String getPath(); /** *
-     * `path` is an optional URL path which will be sent in any request to
+     * path is an optional URL path which will be sent in any request to
      * this service.
      * +optional
      * 
@@ -20769,7 +33911,7 @@ public interface ServiceReferenceOrBuilder extends /** *
-     * If specified, the port on the service that hosting webhook.
+     * port is the port on the service that hosts the webhook.
      * Default to 443 for backward compatibility.
      * `port` should be a valid port number (1-65535, inclusive).
      * +optional
@@ -20780,7 +33922,7 @@ public interface ServiceReferenceOrBuilder extends
     boolean hasPort();
     /**
      * 
-     * If specified, the port on the service that hosting webhook.
+     * port is the port on the service that hosts the webhook.
      * Default to 443 for backward compatibility.
      * `port` should be a valid port number (1-65535, inclusive).
      * +optional
@@ -20897,7 +34039,7 @@ private ServiceReference(
     private volatile java.lang.Object namespace_;
     /**
      * 
-     * `namespace` is the namespace of the service.
+     * namespace is the namespace of the service.
      * Required
      * 
* @@ -20908,7 +34050,7 @@ public boolean hasNamespace() { } /** *
-     * `namespace` is the namespace of the service.
+     * namespace is the namespace of the service.
      * Required
      * 
* @@ -20930,7 +34072,7 @@ public java.lang.String getNamespace() { } /** *
-     * `namespace` is the namespace of the service.
+     * namespace is the namespace of the service.
      * Required
      * 
* @@ -20954,7 +34096,7 @@ public java.lang.String getNamespace() { private volatile java.lang.Object name_; /** *
-     * `name` is the name of the service.
+     * name is the name of the service.
      * Required
      * 
* @@ -20965,7 +34107,7 @@ public boolean hasName() { } /** *
-     * `name` is the name of the service.
+     * name is the name of the service.
      * Required
      * 
* @@ -20987,7 +34129,7 @@ public java.lang.String getName() { } /** *
-     * `name` is the name of the service.
+     * name is the name of the service.
      * Required
      * 
* @@ -21011,7 +34153,7 @@ public java.lang.String getName() { private volatile java.lang.Object path_; /** *
-     * `path` is an optional URL path which will be sent in any request to
+     * path is an optional URL path which will be sent in any request to
      * this service.
      * +optional
      * 
@@ -21023,7 +34165,7 @@ public boolean hasPath() { } /** *
-     * `path` is an optional URL path which will be sent in any request to
+     * path is an optional URL path which will be sent in any request to
      * this service.
      * +optional
      * 
@@ -21046,7 +34188,7 @@ public java.lang.String getPath() { } /** *
-     * `path` is an optional URL path which will be sent in any request to
+     * path is an optional URL path which will be sent in any request to
      * this service.
      * +optional
      * 
@@ -21071,7 +34213,7 @@ public java.lang.String getPath() { private int port_; /** *
-     * If specified, the port on the service that hosting webhook.
+     * port is the port on the service that hosts the webhook.
      * Default to 443 for backward compatibility.
      * `port` should be a valid port number (1-65535, inclusive).
      * +optional
@@ -21084,7 +34226,7 @@ public boolean hasPort() {
     }
     /**
      * 
-     * If specified, the port on the service that hosting webhook.
+     * port is the port on the service that hosts the webhook.
      * Default to 443 for backward compatibility.
      * `port` should be a valid port number (1-65535, inclusive).
      * +optional
@@ -21496,7 +34638,7 @@ public Builder mergeFrom(
       private java.lang.Object namespace_ = "";
       /**
        * 
-       * `namespace` is the namespace of the service.
+       * namespace is the namespace of the service.
        * Required
        * 
* @@ -21507,7 +34649,7 @@ public boolean hasNamespace() { } /** *
-       * `namespace` is the namespace of the service.
+       * namespace is the namespace of the service.
        * Required
        * 
* @@ -21529,7 +34671,7 @@ public java.lang.String getNamespace() { } /** *
-       * `namespace` is the namespace of the service.
+       * namespace is the namespace of the service.
        * Required
        * 
* @@ -21550,7 +34692,7 @@ public java.lang.String getNamespace() { } /** *
-       * `namespace` is the namespace of the service.
+       * namespace is the namespace of the service.
        * Required
        * 
* @@ -21568,7 +34710,7 @@ public Builder setNamespace( } /** *
-       * `namespace` is the namespace of the service.
+       * namespace is the namespace of the service.
        * Required
        * 
* @@ -21582,7 +34724,7 @@ public Builder clearNamespace() { } /** *
-       * `namespace` is the namespace of the service.
+       * namespace is the namespace of the service.
        * Required
        * 
* @@ -21602,7 +34744,7 @@ public Builder setNamespaceBytes( private java.lang.Object name_ = ""; /** *
-       * `name` is the name of the service.
+       * name is the name of the service.
        * Required
        * 
* @@ -21613,7 +34755,7 @@ public boolean hasName() { } /** *
-       * `name` is the name of the service.
+       * name is the name of the service.
        * Required
        * 
* @@ -21635,7 +34777,7 @@ public java.lang.String getName() { } /** *
-       * `name` is the name of the service.
+       * name is the name of the service.
        * Required
        * 
* @@ -21656,7 +34798,7 @@ public java.lang.String getName() { } /** *
-       * `name` is the name of the service.
+       * name is the name of the service.
        * Required
        * 
* @@ -21674,7 +34816,7 @@ public Builder setName( } /** *
-       * `name` is the name of the service.
+       * name is the name of the service.
        * Required
        * 
* @@ -21688,7 +34830,7 @@ public Builder clearName() { } /** *
-       * `name` is the name of the service.
+       * name is the name of the service.
        * Required
        * 
* @@ -21708,7 +34850,7 @@ public Builder setNameBytes( private java.lang.Object path_ = ""; /** *
-       * `path` is an optional URL path which will be sent in any request to
+       * path is an optional URL path which will be sent in any request to
        * this service.
        * +optional
        * 
@@ -21720,7 +34862,7 @@ public boolean hasPath() { } /** *
-       * `path` is an optional URL path which will be sent in any request to
+       * path is an optional URL path which will be sent in any request to
        * this service.
        * +optional
        * 
@@ -21743,7 +34885,7 @@ public java.lang.String getPath() { } /** *
-       * `path` is an optional URL path which will be sent in any request to
+       * path is an optional URL path which will be sent in any request to
        * this service.
        * +optional
        * 
@@ -21765,7 +34907,7 @@ public java.lang.String getPath() { } /** *
-       * `path` is an optional URL path which will be sent in any request to
+       * path is an optional URL path which will be sent in any request to
        * this service.
        * +optional
        * 
@@ -21784,7 +34926,7 @@ public Builder setPath( } /** *
-       * `path` is an optional URL path which will be sent in any request to
+       * path is an optional URL path which will be sent in any request to
        * this service.
        * +optional
        * 
@@ -21799,7 +34941,7 @@ public Builder clearPath() { } /** *
-       * `path` is an optional URL path which will be sent in any request to
+       * path is an optional URL path which will be sent in any request to
        * this service.
        * +optional
        * 
@@ -21820,7 +34962,7 @@ public Builder setPathBytes( private int port_ ; /** *
-       * If specified, the port on the service that hosting webhook.
+       * port is the port on the service that hosts the webhook.
        * Default to 443 for backward compatibility.
        * `port` should be a valid port number (1-65535, inclusive).
        * +optional
@@ -21833,7 +34975,7 @@ public boolean hasPort() {
       }
       /**
        * 
-       * If specified, the port on the service that hosting webhook.
+       * port is the port on the service that hosts the webhook.
        * Default to 443 for backward compatibility.
        * `port` should be a valid port number (1-65535, inclusive).
        * +optional
@@ -21846,7 +34988,7 @@ public int getPort() {
       }
       /**
        * 
-       * If specified, the port on the service that hosting webhook.
+       * port is the port on the service that hosts the webhook.
        * Default to 443 for backward compatibility.
        * `port` should be a valid port number (1-65535, inclusive).
        * +optional
@@ -21862,7 +35004,7 @@ public Builder setPort(int value) {
       }
       /**
        * 
-       * If specified, the port on the service that hosting webhook.
+       * port is the port on the service that hosts the webhook.
        * Default to 443 for backward compatibility.
        * `port` should be a valid port number (1-65535, inclusive).
        * +optional
@@ -21935,7 +35077,7 @@ public interface TypeCheckingOrBuilder extends
 
     /**
      * 
-     * The type checking warnings for each expression.
+     * expressionWarnings contains the type checking warnings for each expression.
      * +optional
      * +listType=atomic
      * 
@@ -21946,7 +35088,7 @@ public interface TypeCheckingOrBuilder extends getExpressionWarningsList(); /** *
-     * The type checking warnings for each expression.
+     * expressionWarnings contains the type checking warnings for each expression.
      * +optional
      * +listType=atomic
      * 
@@ -21956,7 +35098,7 @@ public interface TypeCheckingOrBuilder extends io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning getExpressionWarnings(int index); /** *
-     * The type checking warnings for each expression.
+     * expressionWarnings contains the type checking warnings for each expression.
      * +optional
      * +listType=atomic
      * 
@@ -21966,7 +35108,7 @@ public interface TypeCheckingOrBuilder extends int getExpressionWarningsCount(); /** *
-     * The type checking warnings for each expression.
+     * expressionWarnings contains the type checking warnings for each expression.
      * +optional
      * +listType=atomic
      * 
@@ -21977,7 +35119,7 @@ public interface TypeCheckingOrBuilder extends getExpressionWarningsOrBuilderList(); /** *
-     * The type checking warnings for each expression.
+     * expressionWarnings contains the type checking warnings for each expression.
      * +optional
      * +listType=atomic
      * 
@@ -22080,7 +35222,7 @@ private TypeChecking( private java.util.List expressionWarnings_; /** *
-     * The type checking warnings for each expression.
+     * expressionWarnings contains the type checking warnings for each expression.
      * +optional
      * +listType=atomic
      * 
@@ -22092,7 +35234,7 @@ public java.util.List - * The type checking warnings for each expression. + * expressionWarnings contains the type checking warnings for each expression. * +optional * +listType=atomic *
@@ -22105,7 +35247,7 @@ public java.util.List - * The type checking warnings for each expression. + * expressionWarnings contains the type checking warnings for each expression. * +optional * +listType=atomic *
@@ -22117,7 +35259,7 @@ public int getExpressionWarningsCount() { } /** *
-     * The type checking warnings for each expression.
+     * expressionWarnings contains the type checking warnings for each expression.
      * +optional
      * +listType=atomic
      * 
@@ -22129,7 +35271,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning getE } /** *
-     * The type checking warnings for each expression.
+     * expressionWarnings contains the type checking warnings for each expression.
      * +optional
      * +listType=atomic
      * 
@@ -22503,7 +35645,7 @@ private void ensureExpressionWarningsIsMutable() { /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22519,7 +35661,7 @@ public java.util.List - * The type checking warnings for each expression. + * expressionWarnings contains the type checking warnings for each expression. * +optional * +listType=atomic *
@@ -22535,7 +35677,7 @@ public int getExpressionWarningsCount() { } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22551,7 +35693,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning getE } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22574,7 +35716,7 @@ public Builder setExpressionWarnings( } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22594,7 +35736,7 @@ public Builder setExpressionWarnings( } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22616,7 +35758,7 @@ public Builder addExpressionWarnings(io.kubernetes.client.proto.V1Admissionregis } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22639,7 +35781,7 @@ public Builder addExpressionWarnings( } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22659,7 +35801,7 @@ public Builder addExpressionWarnings( } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22679,7 +35821,7 @@ public Builder addExpressionWarnings( } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22700,7 +35842,7 @@ public Builder addAllExpressionWarnings( } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22719,7 +35861,7 @@ public Builder clearExpressionWarnings() { } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22738,7 +35880,7 @@ public Builder removeExpressionWarnings(int index) { } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22751,7 +35893,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.Buil } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22767,7 +35909,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarningOrBui } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22784,7 +35926,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarningOrBui } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22797,7 +35939,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.Buil } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22811,7 +35953,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ExpressionWarning.Buil } /** *
-       * The type checking warnings for each expression.
+       * expressionWarnings contains the type checking warnings for each expression.
        * +optional
        * +listType=atomic
        * 
@@ -22895,7 +36037,7 @@ public interface ValidatingAdmissionPolicyOrBuilder extends /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -22904,7 +36046,7 @@ public interface ValidatingAdmissionPolicyOrBuilder extends boolean hasMetadata(); /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -22913,7 +36055,7 @@ public interface ValidatingAdmissionPolicyOrBuilder extends io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -22923,7 +36065,7 @@ public interface ValidatingAdmissionPolicyOrBuilder extends /** *
-     * Specification of the desired behavior of the ValidatingAdmissionPolicy.
+     * spec defines the desired behavior of the ValidatingAdmissionPolicy.
      * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicySpec spec = 2; @@ -22931,7 +36073,7 @@ public interface ValidatingAdmissionPolicyOrBuilder extends boolean hasSpec(); /** *
-     * Specification of the desired behavior of the ValidatingAdmissionPolicy.
+     * spec defines the desired behavior of the ValidatingAdmissionPolicy.
      * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicySpec spec = 2; @@ -22939,7 +36081,7 @@ public interface ValidatingAdmissionPolicyOrBuilder extends io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPolicySpec getSpec(); /** *
-     * Specification of the desired behavior of the ValidatingAdmissionPolicy.
+     * spec defines the desired behavior of the ValidatingAdmissionPolicy.
      * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicySpec spec = 2; @@ -22948,7 +36090,7 @@ public interface ValidatingAdmissionPolicyOrBuilder extends /** *
-     * The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
+     * status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
      * behaves in the expected way.
      * Populated by the system.
      * Read-only.
@@ -22960,7 +36102,7 @@ public interface ValidatingAdmissionPolicyOrBuilder extends
     boolean hasStatus();
     /**
      * 
-     * The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
+     * status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
      * behaves in the expected way.
      * Populated by the system.
      * Read-only.
@@ -22972,7 +36114,7 @@ public interface ValidatingAdmissionPolicyOrBuilder extends
     io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPolicyStatus getStatus();
     /**
      * 
-     * The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
+     * status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
      * behaves in the expected way.
      * Populated by the system.
      * Read-only.
@@ -22986,6 +36128,7 @@ public interface ValidatingAdmissionPolicyOrBuilder extends
   /**
    * 
    * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.
+   * +k8s:supportsSubresource="/status"
    * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicy} @@ -23102,7 +36245,7 @@ private ValidatingAdmissionPolicy( private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -23113,7 +36256,7 @@ public boolean hasMetadata() { } /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -23124,7 +36267,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -23138,7 +36281,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( private io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPolicySpec spec_; /** *
-     * Specification of the desired behavior of the ValidatingAdmissionPolicy.
+     * spec defines the desired behavior of the ValidatingAdmissionPolicy.
      * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicySpec spec = 2; @@ -23148,7 +36291,7 @@ public boolean hasSpec() { } /** *
-     * Specification of the desired behavior of the ValidatingAdmissionPolicy.
+     * spec defines the desired behavior of the ValidatingAdmissionPolicy.
      * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicySpec spec = 2; @@ -23158,7 +36301,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPol } /** *
-     * Specification of the desired behavior of the ValidatingAdmissionPolicy.
+     * spec defines the desired behavior of the ValidatingAdmissionPolicy.
      * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicySpec spec = 2; @@ -23171,7 +36314,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPol private io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPolicyStatus status_; /** *
-     * The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
+     * status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
      * behaves in the expected way.
      * Populated by the system.
      * Read-only.
@@ -23185,7 +36328,7 @@ public boolean hasStatus() {
     }
     /**
      * 
-     * The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
+     * status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
      * behaves in the expected way.
      * Populated by the system.
      * Read-only.
@@ -23199,7 +36342,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPol
     }
     /**
      * 
-     * The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
+     * status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
      * behaves in the expected way.
      * Populated by the system.
      * Read-only.
@@ -23408,6 +36551,7 @@ protected Builder newBuilderForType(
     /**
      * 
      * ValidatingAdmissionPolicy describes the definition of an admission validation policy that accepts or rejects an object without changing it.
+     * +k8s:supportsSubresource="/status"
      * 
* * Protobuf type {@code k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicy} @@ -23613,7 +36757,7 @@ public Builder mergeFrom( io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -23624,7 +36768,7 @@ public boolean hasMetadata() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -23639,7 +36783,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -23660,7 +36804,7 @@ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -23679,7 +36823,7 @@ public Builder setMetadata( } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -23704,7 +36848,7 @@ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -23722,7 +36866,7 @@ public Builder clearMetadata() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -23735,7 +36879,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -23751,7 +36895,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -23776,7 +36920,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPolicySpec, io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPolicySpec.Builder, io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPolicySpecOrBuilder> specBuilder_; /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicy.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicy.
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicySpec spec = 2; @@ -23786,7 +36930,7 @@ public boolean hasSpec() { } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicy.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicy.
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicySpec spec = 2; @@ -23800,7 +36944,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPol } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicy.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicy.
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicySpec spec = 2; @@ -23820,7 +36964,7 @@ public Builder setSpec(io.kubernetes.client.proto.V1Admissionregistration.Valida } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicy.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicy.
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicySpec spec = 2; @@ -23838,7 +36982,7 @@ public Builder setSpec( } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicy.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicy.
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicySpec spec = 2; @@ -23862,7 +37006,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Admissionregistration.Vali } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicy.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicy.
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicySpec spec = 2; @@ -23879,7 +37023,7 @@ public Builder clearSpec() { } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicy.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicy.
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicySpec spec = 2; @@ -23891,7 +37035,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPol } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicy.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicy.
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicySpec spec = 2; @@ -23906,7 +37050,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPol } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicy.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicy.
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicySpec spec = 2; @@ -23930,7 +37074,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPol io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPolicyStatus, io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPolicyStatus.Builder, io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPolicyStatusOrBuilder> statusBuilder_; /** *
-       * The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
+       * status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
        * behaves in the expected way.
        * Populated by the system.
        * Read-only.
@@ -23944,7 +37088,7 @@ public boolean hasStatus() {
       }
       /**
        * 
-       * The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
+       * status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
        * behaves in the expected way.
        * Populated by the system.
        * Read-only.
@@ -23962,7 +37106,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPol
       }
       /**
        * 
-       * The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
+       * status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
        * behaves in the expected way.
        * Populated by the system.
        * Read-only.
@@ -23986,7 +37130,7 @@ public Builder setStatus(io.kubernetes.client.proto.V1Admissionregistration.Vali
       }
       /**
        * 
-       * The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
+       * status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
        * behaves in the expected way.
        * Populated by the system.
        * Read-only.
@@ -24008,7 +37152,7 @@ public Builder setStatus(
       }
       /**
        * 
-       * The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
+       * status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
        * behaves in the expected way.
        * Populated by the system.
        * Read-only.
@@ -24036,7 +37180,7 @@ public Builder mergeStatus(io.kubernetes.client.proto.V1Admissionregistration.Va
       }
       /**
        * 
-       * The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
+       * status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
        * behaves in the expected way.
        * Populated by the system.
        * Read-only.
@@ -24057,7 +37201,7 @@ public Builder clearStatus() {
       }
       /**
        * 
-       * The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
+       * status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
        * behaves in the expected way.
        * Populated by the system.
        * Read-only.
@@ -24073,7 +37217,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPol
       }
       /**
        * 
-       * The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
+       * status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
        * behaves in the expected way.
        * Populated by the system.
        * Read-only.
@@ -24092,7 +37236,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPol
       }
       /**
        * 
-       * The status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
+       * status represents the current status of the ValidatingAdmissionPolicy, including warnings that are useful to determine if the policy
        * behaves in the expected way.
        * Populated by the system.
        * Read-only.
@@ -24173,7 +37317,7 @@ public interface ValidatingAdmissionPolicyBindingOrBuilder extends
 
     /**
      * 
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -24182,7 +37326,7 @@ public interface ValidatingAdmissionPolicyBindingOrBuilder extends boolean hasMetadata(); /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -24191,7 +37335,7 @@ public interface ValidatingAdmissionPolicyBindingOrBuilder extends io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -24201,7 +37345,8 @@ public interface ValidatingAdmissionPolicyBindingOrBuilder extends /** *
-     * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+     * spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
+     * +required
      * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec spec = 2; @@ -24209,7 +37354,8 @@ public interface ValidatingAdmissionPolicyBindingOrBuilder extends boolean hasSpec(); /** *
-     * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+     * spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
+     * +required
      * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec spec = 2; @@ -24217,7 +37363,8 @@ public interface ValidatingAdmissionPolicyBindingOrBuilder extends io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPolicyBindingSpec getSpec(); /** *
-     * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+     * spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
+     * +required
      * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec spec = 2; @@ -24338,7 +37485,7 @@ private ValidatingAdmissionPolicyBinding( private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -24349,7 +37496,7 @@ public boolean hasMetadata() { } /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -24360,7 +37507,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -24374,7 +37521,8 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( private io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPolicyBindingSpec spec_; /** *
-     * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+     * spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
+     * +required
      * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec spec = 2; @@ -24384,7 +37532,8 @@ public boolean hasSpec() { } /** *
-     * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+     * spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
+     * +required
      * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec spec = 2; @@ -24394,7 +37543,8 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPol } /** *
-     * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+     * spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
+     * +required
      * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec spec = 2; @@ -24778,7 +37928,7 @@ public Builder mergeFrom( io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -24789,7 +37939,7 @@ public boolean hasMetadata() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -24804,7 +37954,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -24825,7 +37975,7 @@ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -24844,7 +37994,7 @@ public Builder setMetadata( } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -24869,7 +38019,7 @@ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -24887,7 +38037,7 @@ public Builder clearMetadata() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -24900,7 +38050,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -24916,7 +38066,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -24941,7 +38091,8 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPolicyBindingSpec, io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPolicyBindingSpec.Builder, io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPolicyBindingSpecOrBuilder> specBuilder_; /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * +required
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec spec = 2; @@ -24951,7 +38102,8 @@ public boolean hasSpec() { } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * +required
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec spec = 2; @@ -24965,7 +38117,8 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPol } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * +required
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec spec = 2; @@ -24985,7 +38138,8 @@ public Builder setSpec(io.kubernetes.client.proto.V1Admissionregistration.Valida } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * +required
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec spec = 2; @@ -25003,7 +38157,8 @@ public Builder setSpec( } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * +required
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec spec = 2; @@ -25027,7 +38182,8 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Admissionregistration.Vali } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * +required
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec spec = 2; @@ -25044,7 +38200,8 @@ public Builder clearSpec() { } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * +required
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec spec = 2; @@ -25056,7 +38213,8 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPol } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * +required
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec spec = 2; @@ -25071,7 +38229,8 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingAdmissionPol } /** *
-       * Specification of the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * spec defines the desired behavior of the ValidatingAdmissionPolicyBinding.
+       * +required
        * 
* * optional .k8s.io.api.admissionregistration.v1.ValidatingAdmissionPolicyBindingSpec spec = 2; @@ -25148,7 +38307,7 @@ public interface ValidatingAdmissionPolicyBindingListOrBuilder extends /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -25158,7 +38317,7 @@ public interface ValidatingAdmissionPolicyBindingListOrBuilder extends boolean hasMetadata(); /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -25168,7 +38327,7 @@ public interface ValidatingAdmissionPolicyBindingListOrBuilder extends io.kubernetes.client.proto.Meta.ListMeta getMetadata(); /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -25327,7 +38486,7 @@ private ValidatingAdmissionPolicyBindingList( private io.kubernetes.client.proto.Meta.ListMeta metadata_; /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -25339,7 +38498,7 @@ public boolean hasMetadata() { } /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -25351,7 +38510,7 @@ public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { } /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -25805,7 +38964,7 @@ public Builder mergeFrom( io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -25817,7 +38976,7 @@ public boolean hasMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -25833,7 +38992,7 @@ public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -25855,7 +39014,7 @@ public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -25875,7 +39034,7 @@ public Builder setMetadata( } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -25901,7 +39060,7 @@ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -25920,7 +39079,7 @@ public Builder clearMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -25934,7 +39093,7 @@ public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -25951,7 +39110,7 @@ public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -26342,9 +39501,11 @@ public interface ValidatingAdmissionPolicyBindingSpecOrBuilder extends /** *
-     * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
+     * policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
      * If the referenced resource does not exist, this binding is considered invalid and will be ignored
      * Required.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string policyName = 1; @@ -26352,9 +39513,11 @@ public interface ValidatingAdmissionPolicyBindingSpecOrBuilder extends boolean hasPolicyName(); /** *
-     * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
+     * policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
      * If the referenced resource does not exist, this binding is considered invalid and will be ignored
      * Required.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string policyName = 1; @@ -26362,9 +39525,11 @@ public interface ValidatingAdmissionPolicyBindingSpecOrBuilder extends java.lang.String getPolicyName(); /** *
-     * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
+     * policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
      * If the referenced resource does not exist, this binding is considered invalid and will be ignored
      * Required.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string policyName = 1; @@ -26411,7 +39576,7 @@ public interface ValidatingAdmissionPolicyBindingSpecOrBuilder extends /** *
-     * MatchResources declares what resources match this binding and will be validated by it.
+     * matchResources declares what resources match this binding and will be validated by it.
      * Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
      * If this is unset, all resources matched by the policy are validated by this binding
      * When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
@@ -26424,7 +39589,7 @@ public interface ValidatingAdmissionPolicyBindingSpecOrBuilder extends
     boolean hasMatchResources();
     /**
      * 
-     * MatchResources declares what resources match this binding and will be validated by it.
+     * matchResources declares what resources match this binding and will be validated by it.
      * Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
      * If this is unset, all resources matched by the policy are validated by this binding
      * When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
@@ -26437,7 +39602,7 @@ public interface ValidatingAdmissionPolicyBindingSpecOrBuilder extends
     io.kubernetes.client.proto.V1Admissionregistration.MatchResources getMatchResources();
     /**
      * 
-     * MatchResources declares what resources match this binding and will be validated by it.
+     * matchResources declares what resources match this binding and will be validated by it.
      * Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
      * If this is unset, all resources matched by the policy are validated by this binding
      * When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
@@ -26482,6 +39647,8 @@ public interface ValidatingAdmissionPolicyBindingSpecOrBuilder extends
      * API response body and the HTTP warning headers.
      * Required.
      * +listType=set
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * repeated string validationActions = 4; @@ -26521,6 +39688,8 @@ public interface ValidatingAdmissionPolicyBindingSpecOrBuilder extends * API response body and the HTTP warning headers. * Required. * +listType=set + * +required + * +k8s:alpha(since: "1.36")=+k8s:required *
* * repeated string validationActions = 4; @@ -26559,6 +39728,8 @@ public interface ValidatingAdmissionPolicyBindingSpecOrBuilder extends * API response body and the HTTP warning headers. * Required. * +listType=set + * +required + * +k8s:alpha(since: "1.36")=+k8s:required *
* * repeated string validationActions = 4; @@ -26597,6 +39768,8 @@ public interface ValidatingAdmissionPolicyBindingSpecOrBuilder extends * API response body and the HTTP warning headers. * Required. * +listType=set + * +required + * +k8s:alpha(since: "1.36")=+k8s:required *
* * repeated string validationActions = 4; @@ -26730,9 +39903,11 @@ private ValidatingAdmissionPolicyBindingSpec( private volatile java.lang.Object policyName_; /** *
-     * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
+     * policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
      * If the referenced resource does not exist, this binding is considered invalid and will be ignored
      * Required.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string policyName = 1; @@ -26742,9 +39917,11 @@ public boolean hasPolicyName() { } /** *
-     * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
+     * policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
      * If the referenced resource does not exist, this binding is considered invalid and will be ignored
      * Required.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string policyName = 1; @@ -26765,9 +39942,11 @@ public java.lang.String getPolicyName() { } /** *
-     * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
+     * policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
      * If the referenced resource does not exist, this binding is considered invalid and will be ignored
      * Required.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string policyName = 1; @@ -26835,7 +40014,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ParamRefOrBuilder getP private io.kubernetes.client.proto.V1Admissionregistration.MatchResources matchResources_; /** *
-     * MatchResources declares what resources match this binding and will be validated by it.
+     * matchResources declares what resources match this binding and will be validated by it.
      * Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
      * If this is unset, all resources matched by the policy are validated by this binding
      * When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
@@ -26850,7 +40029,7 @@ public boolean hasMatchResources() {
     }
     /**
      * 
-     * MatchResources declares what resources match this binding and will be validated by it.
+     * matchResources declares what resources match this binding and will be validated by it.
      * Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
      * If this is unset, all resources matched by the policy are validated by this binding
      * When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
@@ -26865,7 +40044,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchResources getMatc
     }
     /**
      * 
-     * MatchResources declares what resources match this binding and will be validated by it.
+     * matchResources declares what resources match this binding and will be validated by it.
      * Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
      * If this is unset, all resources matched by the policy are validated by this binding
      * When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
@@ -26914,6 +40093,8 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilde
      * API response body and the HTTP warning headers.
      * Required.
      * +listType=set
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * repeated string validationActions = 4; @@ -26955,6 +40136,8 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilde * API response body and the HTTP warning headers. * Required. * +listType=set + * +required + * +k8s:alpha(since: "1.36")=+k8s:required *
* * repeated string validationActions = 4; @@ -26995,6 +40178,8 @@ public int getValidationActionsCount() { * API response body and the HTTP warning headers. * Required. * +listType=set + * +required + * +k8s:alpha(since: "1.36")=+k8s:required *
* * repeated string validationActions = 4; @@ -27035,6 +40220,8 @@ public java.lang.String getValidationActions(int index) { * API response body and the HTTP warning headers. * Required. * +listType=set + * +required + * +k8s:alpha(since: "1.36")=+k8s:required *
* * repeated string validationActions = 4; @@ -27469,9 +40656,11 @@ public Builder mergeFrom( private java.lang.Object policyName_ = ""; /** *
-       * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
+       * policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
        * If the referenced resource does not exist, this binding is considered invalid and will be ignored
        * Required.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string policyName = 1; @@ -27481,9 +40670,11 @@ public boolean hasPolicyName() { } /** *
-       * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
+       * policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
        * If the referenced resource does not exist, this binding is considered invalid and will be ignored
        * Required.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string policyName = 1; @@ -27504,9 +40695,11 @@ public java.lang.String getPolicyName() { } /** *
-       * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
+       * policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
        * If the referenced resource does not exist, this binding is considered invalid and will be ignored
        * Required.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string policyName = 1; @@ -27526,9 +40719,11 @@ public java.lang.String getPolicyName() { } /** *
-       * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
+       * policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
        * If the referenced resource does not exist, this binding is considered invalid and will be ignored
        * Required.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string policyName = 1; @@ -27545,9 +40740,11 @@ public Builder setPolicyName( } /** *
-       * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
+       * policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
        * If the referenced resource does not exist, this binding is considered invalid and will be ignored
        * Required.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string policyName = 1; @@ -27560,9 +40757,11 @@ public Builder clearPolicyName() { } /** *
-       * PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
+       * policyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to.
        * If the referenced resource does not exist, this binding is considered invalid and will be ignored
        * Required.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string policyName = 1; @@ -27773,7 +40972,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ParamRefOrBuilder getP io.kubernetes.client.proto.V1Admissionregistration.MatchResources, io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder> matchResourcesBuilder_; /** *
-       * MatchResources declares what resources match this binding and will be validated by it.
+       * matchResources declares what resources match this binding and will be validated by it.
        * Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
        * If this is unset, all resources matched by the policy are validated by this binding
        * When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
@@ -27788,7 +40987,7 @@ public boolean hasMatchResources() {
       }
       /**
        * 
-       * MatchResources declares what resources match this binding and will be validated by it.
+       * matchResources declares what resources match this binding and will be validated by it.
        * Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
        * If this is unset, all resources matched by the policy are validated by this binding
        * When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
@@ -27807,7 +41006,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchResources getMatc
       }
       /**
        * 
-       * MatchResources declares what resources match this binding and will be validated by it.
+       * matchResources declares what resources match this binding and will be validated by it.
        * Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
        * If this is unset, all resources matched by the policy are validated by this binding
        * When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
@@ -27832,7 +41031,7 @@ public Builder setMatchResources(io.kubernetes.client.proto.V1Admissionregistrat
       }
       /**
        * 
-       * MatchResources declares what resources match this binding and will be validated by it.
+       * matchResources declares what resources match this binding and will be validated by it.
        * Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
        * If this is unset, all resources matched by the policy are validated by this binding
        * When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
@@ -27855,7 +41054,7 @@ public Builder setMatchResources(
       }
       /**
        * 
-       * MatchResources declares what resources match this binding and will be validated by it.
+       * matchResources declares what resources match this binding and will be validated by it.
        * Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
        * If this is unset, all resources matched by the policy are validated by this binding
        * When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
@@ -27884,7 +41083,7 @@ public Builder mergeMatchResources(io.kubernetes.client.proto.V1Admissionregistr
       }
       /**
        * 
-       * MatchResources declares what resources match this binding and will be validated by it.
+       * matchResources declares what resources match this binding and will be validated by it.
        * Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
        * If this is unset, all resources matched by the policy are validated by this binding
        * When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
@@ -27906,7 +41105,7 @@ public Builder clearMatchResources() {
       }
       /**
        * 
-       * MatchResources declares what resources match this binding and will be validated by it.
+       * matchResources declares what resources match this binding and will be validated by it.
        * Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
        * If this is unset, all resources matched by the policy are validated by this binding
        * When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
@@ -27923,7 +41122,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder
       }
       /**
        * 
-       * MatchResources declares what resources match this binding and will be validated by it.
+       * matchResources declares what resources match this binding and will be validated by it.
        * Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
        * If this is unset, all resources matched by the policy are validated by this binding
        * When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
@@ -27943,7 +41142,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilde
       }
       /**
        * 
-       * MatchResources declares what resources match this binding and will be validated by it.
+       * matchResources declares what resources match this binding and will be validated by it.
        * Note that this is intersected with the policy's matchConstraints, so only requests that are matched by the policy can be selected by this.
        * If this is unset, all resources matched by the policy are validated by this binding
        * When resourceRules is unset, it does not constrain resource matching. If a resource is matched by the other fields of this object, it will be validated.
@@ -28007,6 +41206,8 @@ private void ensureValidationActionsIsMutable() {
        * API response body and the HTTP warning headers.
        * Required.
        * +listType=set
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * repeated string validationActions = 4; @@ -28048,6 +41249,8 @@ private void ensureValidationActionsIsMutable() { * API response body and the HTTP warning headers. * Required. * +listType=set + * +required + * +k8s:alpha(since: "1.36")=+k8s:required *
* * repeated string validationActions = 4; @@ -28088,6 +41291,8 @@ public int getValidationActionsCount() { * API response body and the HTTP warning headers. * Required. * +listType=set + * +required + * +k8s:alpha(since: "1.36")=+k8s:required *
* * repeated string validationActions = 4; @@ -28128,6 +41333,8 @@ public java.lang.String getValidationActions(int index) { * API response body and the HTTP warning headers. * Required. * +listType=set + * +required + * +k8s:alpha(since: "1.36")=+k8s:required *
* * repeated string validationActions = 4; @@ -28169,6 +41376,8 @@ public java.lang.String getValidationActions(int index) { * API response body and the HTTP warning headers. * Required. * +listType=set + * +required + * +k8s:alpha(since: "1.36")=+k8s:required *
* * repeated string validationActions = 4; @@ -28216,6 +41425,8 @@ public Builder setValidationActions( * API response body and the HTTP warning headers. * Required. * +listType=set + * +required + * +k8s:alpha(since: "1.36")=+k8s:required *
* * repeated string validationActions = 4; @@ -28263,6 +41474,8 @@ public Builder addValidationActions( * API response body and the HTTP warning headers. * Required. * +listType=set + * +required + * +k8s:alpha(since: "1.36")=+k8s:required *
* * repeated string validationActions = 4; @@ -28308,6 +41521,8 @@ public Builder addAllValidationActions( * API response body and the HTTP warning headers. * Required. * +listType=set + * +required + * +k8s:alpha(since: "1.36")=+k8s:required *
* * repeated string validationActions = 4; @@ -28351,6 +41566,8 @@ public Builder clearValidationActions() { * API response body and the HTTP warning headers. * Required. * +listType=set + * +required + * +k8s:alpha(since: "1.36")=+k8s:required *
* * repeated string validationActions = 4; @@ -28424,7 +41641,7 @@ public interface ValidatingAdmissionPolicyListOrBuilder extends /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -28434,7 +41651,7 @@ public interface ValidatingAdmissionPolicyListOrBuilder extends boolean hasMetadata(); /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -28444,7 +41661,7 @@ public interface ValidatingAdmissionPolicyListOrBuilder extends io.kubernetes.client.proto.Meta.ListMeta getMetadata(); /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -28603,7 +41820,7 @@ private ValidatingAdmissionPolicyList( private io.kubernetes.client.proto.Meta.ListMeta metadata_; /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -28615,7 +41832,7 @@ public boolean hasMetadata() { } /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -28627,7 +41844,7 @@ public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { } /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -29081,7 +42298,7 @@ public Builder mergeFrom( io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -29093,7 +42310,7 @@ public boolean hasMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -29109,7 +42326,7 @@ public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -29131,7 +42348,7 @@ public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -29151,7 +42368,7 @@ public Builder setMetadata( } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -29177,7 +42394,7 @@ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -29196,7 +42413,7 @@ public Builder clearMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -29210,7 +42427,7 @@ public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -29227,7 +42444,7 @@ public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -29618,7 +42835,7 @@ public interface ValidatingAdmissionPolicySpecOrBuilder extends /** *
-     * ParamKind specifies the kind of resources used to parameterize this policy.
+     * paramKind specifies the kind of resources used to parameterize this policy.
      * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
      * If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
      * If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
@@ -29630,7 +42847,7 @@ public interface ValidatingAdmissionPolicySpecOrBuilder extends
     boolean hasParamKind();
     /**
      * 
-     * ParamKind specifies the kind of resources used to parameterize this policy.
+     * paramKind specifies the kind of resources used to parameterize this policy.
      * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
      * If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
      * If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
@@ -29642,7 +42859,7 @@ public interface ValidatingAdmissionPolicySpecOrBuilder extends
     io.kubernetes.client.proto.V1Admissionregistration.ParamKind getParamKind();
     /**
      * 
-     * ParamKind specifies the kind of resources used to parameterize this policy.
+     * paramKind specifies the kind of resources used to parameterize this policy.
      * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
      * If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
      * If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
@@ -29655,7 +42872,7 @@ public interface ValidatingAdmissionPolicySpecOrBuilder extends
 
     /**
      * 
-     * MatchConstraints specifies what resources this policy is designed to validate.
+     * matchConstraints specifies what resources this policy is designed to validate.
      * The AdmissionPolicy cares about a request if it matches _all_ Constraints.
      * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
      * ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
@@ -29667,7 +42884,7 @@ public interface ValidatingAdmissionPolicySpecOrBuilder extends
     boolean hasMatchConstraints();
     /**
      * 
-     * MatchConstraints specifies what resources this policy is designed to validate.
+     * matchConstraints specifies what resources this policy is designed to validate.
      * The AdmissionPolicy cares about a request if it matches _all_ Constraints.
      * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
      * ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
@@ -29679,7 +42896,7 @@ public interface ValidatingAdmissionPolicySpecOrBuilder extends
     io.kubernetes.client.proto.V1Admissionregistration.MatchResources getMatchConstraints();
     /**
      * 
-     * MatchConstraints specifies what resources this policy is designed to validate.
+     * matchConstraints specifies what resources this policy is designed to validate.
      * The AdmissionPolicy cares about a request if it matches _all_ Constraints.
      * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
      * ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
@@ -29692,7 +42909,7 @@ public interface ValidatingAdmissionPolicySpecOrBuilder extends
 
     /**
      * 
-     * Validations contain CEL expressions which is used to apply the validation.
+     * validations contain CEL expressions which is used to apply the validation.
      * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
      * required.
      * +listType=atomic
@@ -29705,7 +42922,7 @@ public interface ValidatingAdmissionPolicySpecOrBuilder extends
         getValidationsList();
     /**
      * 
-     * Validations contain CEL expressions which is used to apply the validation.
+     * validations contain CEL expressions which is used to apply the validation.
      * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
      * required.
      * +listType=atomic
@@ -29717,7 +42934,7 @@ public interface ValidatingAdmissionPolicySpecOrBuilder extends
     io.kubernetes.client.proto.V1Admissionregistration.Validation getValidations(int index);
     /**
      * 
-     * Validations contain CEL expressions which is used to apply the validation.
+     * validations contain CEL expressions which is used to apply the validation.
      * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
      * required.
      * +listType=atomic
@@ -29729,7 +42946,7 @@ public interface ValidatingAdmissionPolicySpecOrBuilder extends
     int getValidationsCount();
     /**
      * 
-     * Validations contain CEL expressions which is used to apply the validation.
+     * validations contain CEL expressions which is used to apply the validation.
      * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
      * required.
      * +listType=atomic
@@ -29742,7 +42959,7 @@ public interface ValidatingAdmissionPolicySpecOrBuilder extends
         getValidationsOrBuilderList();
     /**
      * 
-     * Validations contain CEL expressions which is used to apply the validation.
+     * validations contain CEL expressions which is used to apply the validation.
      * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
      * required.
      * +listType=atomic
@@ -29878,7 +43095,7 @@ io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotationOrBuilder getA
 
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be validated.
+     * matchConditions is a list of conditions that must be met for a request to be validated.
      * Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -29903,7 +43120,7 @@ io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotationOrBuilder getA
         getMatchConditionsList();
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be validated.
+     * matchConditions is a list of conditions that must be met for a request to be validated.
      * Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -29927,7 +43144,7 @@ io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotationOrBuilder getA
     io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getMatchConditions(int index);
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be validated.
+     * matchConditions is a list of conditions that must be met for a request to be validated.
      * Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -29951,7 +43168,7 @@ io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotationOrBuilder getA
     int getMatchConditionsCount();
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be validated.
+     * matchConditions is a list of conditions that must be met for a request to be validated.
      * Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -29976,7 +43193,7 @@ io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotationOrBuilder getA
         getMatchConditionsOrBuilderList();
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be validated.
+     * matchConditions is a list of conditions that must be met for a request to be validated.
      * Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -30002,7 +43219,7 @@ io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder getMa
 
     /**
      * 
-     * Variables contain definitions of variables that can be used in composition of other expressions.
+     * variables contain definitions of variables that can be used in composition of other expressions.
      * Each variable is defined as a named CEL expression.
      * The variables defined here will be available under `variables` in other expressions of the policy
      * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -30021,7 +43238,7 @@ io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder getMa
         getVariablesList();
     /**
      * 
-     * Variables contain definitions of variables that can be used in composition of other expressions.
+     * variables contain definitions of variables that can be used in composition of other expressions.
      * Each variable is defined as a named CEL expression.
      * The variables defined here will be available under `variables` in other expressions of the policy
      * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -30039,7 +43256,7 @@ io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder getMa
     io.kubernetes.client.proto.V1Admissionregistration.Variable getVariables(int index);
     /**
      * 
-     * Variables contain definitions of variables that can be used in composition of other expressions.
+     * variables contain definitions of variables that can be used in composition of other expressions.
      * Each variable is defined as a named CEL expression.
      * The variables defined here will be available under `variables` in other expressions of the policy
      * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -30057,7 +43274,7 @@ io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder getMa
     int getVariablesCount();
     /**
      * 
-     * Variables contain definitions of variables that can be used in composition of other expressions.
+     * variables contain definitions of variables that can be used in composition of other expressions.
      * Each variable is defined as a named CEL expression.
      * The variables defined here will be available under `variables` in other expressions of the policy
      * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -30076,7 +43293,7 @@ io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilder getMa
         getVariablesOrBuilderList();
     /**
      * 
-     * Variables contain definitions of variables that can be used in composition of other expressions.
+     * variables contain definitions of variables that can be used in composition of other expressions.
      * Each variable is defined as a named CEL expression.
      * The variables defined here will be available under `variables` in other expressions of the policy
      * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -30259,7 +43476,7 @@ private ValidatingAdmissionPolicySpec(
     private io.kubernetes.client.proto.V1Admissionregistration.ParamKind paramKind_;
     /**
      * 
-     * ParamKind specifies the kind of resources used to parameterize this policy.
+     * paramKind specifies the kind of resources used to parameterize this policy.
      * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
      * If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
      * If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
@@ -30273,7 +43490,7 @@ public boolean hasParamKind() {
     }
     /**
      * 
-     * ParamKind specifies the kind of resources used to parameterize this policy.
+     * paramKind specifies the kind of resources used to parameterize this policy.
      * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
      * If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
      * If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
@@ -30287,7 +43504,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ParamKind getParamKind
     }
     /**
      * 
-     * ParamKind specifies the kind of resources used to parameterize this policy.
+     * paramKind specifies the kind of resources used to parameterize this policy.
      * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
      * If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
      * If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
@@ -30304,7 +43521,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ParamKindOrBuilder get
     private io.kubernetes.client.proto.V1Admissionregistration.MatchResources matchConstraints_;
     /**
      * 
-     * MatchConstraints specifies what resources this policy is designed to validate.
+     * matchConstraints specifies what resources this policy is designed to validate.
      * The AdmissionPolicy cares about a request if it matches _all_ Constraints.
      * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
      * ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
@@ -30318,7 +43535,7 @@ public boolean hasMatchConstraints() {
     }
     /**
      * 
-     * MatchConstraints specifies what resources this policy is designed to validate.
+     * matchConstraints specifies what resources this policy is designed to validate.
      * The AdmissionPolicy cares about a request if it matches _all_ Constraints.
      * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
      * ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
@@ -30332,7 +43549,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchResources getMatc
     }
     /**
      * 
-     * MatchConstraints specifies what resources this policy is designed to validate.
+     * matchConstraints specifies what resources this policy is designed to validate.
      * The AdmissionPolicy cares about a request if it matches _all_ Constraints.
      * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
      * ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
@@ -30349,7 +43566,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilde
     private java.util.List validations_;
     /**
      * 
-     * Validations contain CEL expressions which is used to apply the validation.
+     * validations contain CEL expressions which is used to apply the validation.
      * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
      * required.
      * +listType=atomic
@@ -30363,7 +43580,7 @@ public java.util.List
-     * Validations contain CEL expressions which is used to apply the validation.
+     * validations contain CEL expressions which is used to apply the validation.
      * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
      * required.
      * +listType=atomic
@@ -30378,7 +43595,7 @@ public java.util.List
-     * Validations contain CEL expressions which is used to apply the validation.
+     * validations contain CEL expressions which is used to apply the validation.
      * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
      * required.
      * +listType=atomic
@@ -30392,7 +43609,7 @@ public int getValidationsCount() {
     }
     /**
      * 
-     * Validations contain CEL expressions which is used to apply the validation.
+     * validations contain CEL expressions which is used to apply the validation.
      * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
      * required.
      * +listType=atomic
@@ -30406,7 +43623,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.Validation getValidati
     }
     /**
      * 
-     * Validations contain CEL expressions which is used to apply the validation.
+     * validations contain CEL expressions which is used to apply the validation.
      * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
      * required.
      * +listType=atomic
@@ -30585,7 +43802,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.AuditAnnotationOrBuild
     private java.util.List matchConditions_;
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be validated.
+     * matchConditions is a list of conditions that must be met for a request to be validated.
      * Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -30611,7 +43828,7 @@ public java.util.List
-     * MatchConditions is a list of conditions that must be met for a request to be validated.
+     * matchConditions is a list of conditions that must be met for a request to be validated.
      * Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -30638,7 +43855,7 @@ public java.util.List
-     * MatchConditions is a list of conditions that must be met for a request to be validated.
+     * matchConditions is a list of conditions that must be met for a request to be validated.
      * Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -30664,7 +43881,7 @@ public int getMatchConditionsCount() {
     }
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be validated.
+     * matchConditions is a list of conditions that must be met for a request to be validated.
      * Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -30690,7 +43907,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getMatc
     }
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be validated.
+     * matchConditions is a list of conditions that must be met for a request to be validated.
      * Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -30720,7 +43937,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilde
     private java.util.List variables_;
     /**
      * 
-     * Variables contain definitions of variables that can be used in composition of other expressions.
+     * variables contain definitions of variables that can be used in composition of other expressions.
      * Each variable is defined as a named CEL expression.
      * The variables defined here will be available under `variables` in other expressions of the policy
      * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -30740,7 +43957,7 @@ public java.util.List
-     * Variables contain definitions of variables that can be used in composition of other expressions.
+     * variables contain definitions of variables that can be used in composition of other expressions.
      * Each variable is defined as a named CEL expression.
      * The variables defined here will be available under `variables` in other expressions of the policy
      * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -30761,7 +43978,7 @@ public java.util.List
-     * Variables contain definitions of variables that can be used in composition of other expressions.
+     * variables contain definitions of variables that can be used in composition of other expressions.
      * Each variable is defined as a named CEL expression.
      * The variables defined here will be available under `variables` in other expressions of the policy
      * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -30781,7 +43998,7 @@ public int getVariablesCount() {
     }
     /**
      * 
-     * Variables contain definitions of variables that can be used in composition of other expressions.
+     * variables contain definitions of variables that can be used in composition of other expressions.
      * Each variable is defined as a named CEL expression.
      * The variables defined here will be available under `variables` in other expressions of the policy
      * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -30801,7 +44018,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.Variable getVariables(
     }
     /**
      * 
-     * Variables contain definitions of variables that can be used in composition of other expressions.
+     * variables contain definitions of variables that can be used in composition of other expressions.
      * Each variable is defined as a named CEL expression.
      * The variables defined here will be available under `variables` in other expressions of the policy
      * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -31434,7 +44651,7 @@ public Builder mergeFrom(
           io.kubernetes.client.proto.V1Admissionregistration.ParamKind, io.kubernetes.client.proto.V1Admissionregistration.ParamKind.Builder, io.kubernetes.client.proto.V1Admissionregistration.ParamKindOrBuilder> paramKindBuilder_;
       /**
        * 
-       * ParamKind specifies the kind of resources used to parameterize this policy.
+       * paramKind specifies the kind of resources used to parameterize this policy.
        * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
        * If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
        * If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
@@ -31448,7 +44665,7 @@ public boolean hasParamKind() {
       }
       /**
        * 
-       * ParamKind specifies the kind of resources used to parameterize this policy.
+       * paramKind specifies the kind of resources used to parameterize this policy.
        * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
        * If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
        * If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
@@ -31466,7 +44683,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ParamKind getParamKind
       }
       /**
        * 
-       * ParamKind specifies the kind of resources used to parameterize this policy.
+       * paramKind specifies the kind of resources used to parameterize this policy.
        * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
        * If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
        * If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
@@ -31490,7 +44707,7 @@ public Builder setParamKind(io.kubernetes.client.proto.V1Admissionregistration.P
       }
       /**
        * 
-       * ParamKind specifies the kind of resources used to parameterize this policy.
+       * paramKind specifies the kind of resources used to parameterize this policy.
        * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
        * If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
        * If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
@@ -31512,7 +44729,7 @@ public Builder setParamKind(
       }
       /**
        * 
-       * ParamKind specifies the kind of resources used to parameterize this policy.
+       * paramKind specifies the kind of resources used to parameterize this policy.
        * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
        * If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
        * If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
@@ -31540,7 +44757,7 @@ public Builder mergeParamKind(io.kubernetes.client.proto.V1Admissionregistration
       }
       /**
        * 
-       * ParamKind specifies the kind of resources used to parameterize this policy.
+       * paramKind specifies the kind of resources used to parameterize this policy.
        * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
        * If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
        * If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
@@ -31561,7 +44778,7 @@ public Builder clearParamKind() {
       }
       /**
        * 
-       * ParamKind specifies the kind of resources used to parameterize this policy.
+       * paramKind specifies the kind of resources used to parameterize this policy.
        * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
        * If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
        * If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
@@ -31577,7 +44794,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ParamKind.Builder getP
       }
       /**
        * 
-       * ParamKind specifies the kind of resources used to parameterize this policy.
+       * paramKind specifies the kind of resources used to parameterize this policy.
        * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
        * If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
        * If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
@@ -31596,7 +44813,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ParamKindOrBuilder get
       }
       /**
        * 
-       * ParamKind specifies the kind of resources used to parameterize this policy.
+       * paramKind specifies the kind of resources used to parameterize this policy.
        * If absent, there are no parameters for this policy and the param CEL variable will not be provided to validation expressions.
        * If ParamKind refers to a non-existent kind, this policy definition is mis-configured and the FailurePolicy is applied.
        * If paramKind is specified but paramRef is unset in ValidatingAdmissionPolicyBinding, the params variable will be null.
@@ -31624,7 +44841,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ParamKindOrBuilder get
           io.kubernetes.client.proto.V1Admissionregistration.MatchResources, io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder, io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilder> matchConstraintsBuilder_;
       /**
        * 
-       * MatchConstraints specifies what resources this policy is designed to validate.
+       * matchConstraints specifies what resources this policy is designed to validate.
        * The AdmissionPolicy cares about a request if it matches _all_ Constraints.
        * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
        * ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
@@ -31638,7 +44855,7 @@ public boolean hasMatchConstraints() {
       }
       /**
        * 
-       * MatchConstraints specifies what resources this policy is designed to validate.
+       * matchConstraints specifies what resources this policy is designed to validate.
        * The AdmissionPolicy cares about a request if it matches _all_ Constraints.
        * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
        * ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
@@ -31656,7 +44873,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchResources getMatc
       }
       /**
        * 
-       * MatchConstraints specifies what resources this policy is designed to validate.
+       * matchConstraints specifies what resources this policy is designed to validate.
        * The AdmissionPolicy cares about a request if it matches _all_ Constraints.
        * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
        * ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
@@ -31680,7 +44897,7 @@ public Builder setMatchConstraints(io.kubernetes.client.proto.V1Admissionregistr
       }
       /**
        * 
-       * MatchConstraints specifies what resources this policy is designed to validate.
+       * matchConstraints specifies what resources this policy is designed to validate.
        * The AdmissionPolicy cares about a request if it matches _all_ Constraints.
        * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
        * ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
@@ -31702,7 +44919,7 @@ public Builder setMatchConstraints(
       }
       /**
        * 
-       * MatchConstraints specifies what resources this policy is designed to validate.
+       * matchConstraints specifies what resources this policy is designed to validate.
        * The AdmissionPolicy cares about a request if it matches _all_ Constraints.
        * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
        * ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
@@ -31730,7 +44947,7 @@ public Builder mergeMatchConstraints(io.kubernetes.client.proto.V1Admissionregis
       }
       /**
        * 
-       * MatchConstraints specifies what resources this policy is designed to validate.
+       * matchConstraints specifies what resources this policy is designed to validate.
        * The AdmissionPolicy cares about a request if it matches _all_ Constraints.
        * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
        * ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
@@ -31751,7 +44968,7 @@ public Builder clearMatchConstraints() {
       }
       /**
        * 
-       * MatchConstraints specifies what resources this policy is designed to validate.
+       * matchConstraints specifies what resources this policy is designed to validate.
        * The AdmissionPolicy cares about a request if it matches _all_ Constraints.
        * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
        * ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
@@ -31767,7 +44984,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchResources.Builder
       }
       /**
        * 
-       * MatchConstraints specifies what resources this policy is designed to validate.
+       * matchConstraints specifies what resources this policy is designed to validate.
        * The AdmissionPolicy cares about a request if it matches _all_ Constraints.
        * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
        * ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
@@ -31786,7 +45003,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchResourcesOrBuilde
       }
       /**
        * 
-       * MatchConstraints specifies what resources this policy is designed to validate.
+       * matchConstraints specifies what resources this policy is designed to validate.
        * The AdmissionPolicy cares about a request if it matches _all_ Constraints.
        * However, in order to prevent clusters from being put into an unstable state that cannot be recovered from via the API
        * ValidatingAdmissionPolicy cannot match ValidatingAdmissionPolicy and ValidatingAdmissionPolicyBinding.
@@ -31823,7 +45040,7 @@ private void ensureValidationsIsMutable() {
 
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -31841,7 +45058,7 @@ public java.util.List
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -31859,7 +45076,7 @@ public int getValidationsCount() {
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -31877,7 +45094,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.Validation getValidati
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -31902,7 +45119,7 @@ public Builder setValidations(
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -31924,7 +45141,7 @@ public Builder setValidations(
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -31948,7 +45165,7 @@ public Builder addValidations(io.kubernetes.client.proto.V1Admissionregistration
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -31973,7 +45190,7 @@ public Builder addValidations(
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -31995,7 +45212,7 @@ public Builder addValidations(
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -32017,7 +45234,7 @@ public Builder addValidations(
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -32040,7 +45257,7 @@ public Builder addAllValidations(
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -32061,7 +45278,7 @@ public Builder clearValidations() {
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -32082,7 +45299,7 @@ public Builder removeValidations(int index) {
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -32097,7 +45314,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.Validation.Builder get
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -32115,7 +45332,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidationOrBuilder ge
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -32134,7 +45351,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidationOrBuilder ge
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -32149,7 +45366,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.Validation.Builder add
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -32165,7 +45382,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.Validation.Builder add
       }
       /**
        * 
-       * Validations contain CEL expressions which is used to apply the validation.
+       * validations contain CEL expressions which is used to apply the validation.
        * Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is
        * required.
        * +listType=atomic
@@ -32763,7 +45980,7 @@ private void ensureMatchConditionsIsMutable() {
 
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -32793,7 +46010,7 @@ public java.util.List
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -32823,7 +46040,7 @@ public int getMatchConditionsCount() {
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -32853,7 +46070,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getMatc
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -32890,7 +46107,7 @@ public Builder setMatchConditions(
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -32924,7 +46141,7 @@ public Builder setMatchConditions(
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -32960,7 +46177,7 @@ public Builder addMatchConditions(io.kubernetes.client.proto.V1Admissionregistra
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -32997,7 +46214,7 @@ public Builder addMatchConditions(
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -33031,7 +46248,7 @@ public Builder addMatchConditions(
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -33065,7 +46282,7 @@ public Builder addMatchConditions(
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -33100,7 +46317,7 @@ public Builder addAllMatchConditions(
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -33133,7 +46350,7 @@ public Builder clearMatchConditions() {
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -33166,7 +46383,7 @@ public Builder removeMatchConditions(int index) {
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -33193,7 +46410,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -33223,7 +46440,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilde
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -33254,7 +46471,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilde
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -33281,7 +46498,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -33309,7 +46526,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be validated.
+       * matchConditions is a list of conditions that must be met for a request to be validated.
        * Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -33363,7 +46580,7 @@ private void ensureVariablesIsMutable() {
 
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33387,7 +46604,7 @@ public java.util.List
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33411,7 +46628,7 @@ public int getVariablesCount() {
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33435,7 +46652,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.Variable getVariables(
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33466,7 +46683,7 @@ public Builder setVariables(
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33494,7 +46711,7 @@ public Builder setVariables(
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33524,7 +46741,7 @@ public Builder addVariables(io.kubernetes.client.proto.V1Admissionregistration.V
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33555,7 +46772,7 @@ public Builder addVariables(
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33583,7 +46800,7 @@ public Builder addVariables(
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33611,7 +46828,7 @@ public Builder addVariables(
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33640,7 +46857,7 @@ public Builder addAllVariables(
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33667,7 +46884,7 @@ public Builder clearVariables() {
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33694,7 +46911,7 @@ public Builder removeVariables(int index) {
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33715,7 +46932,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.Variable.Builder getVa
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33739,7 +46956,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.VariableOrBuilder getV
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33764,7 +46981,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.VariableOrBuilder getV
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33785,7 +47002,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.Variable.Builder addVa
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33807,7 +47024,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.Variable.Builder addVa
       }
       /**
        * 
-       * Variables contain definitions of variables that can be used in composition of other expressions.
+       * variables contain definitions of variables that can be used in composition of other expressions.
        * Each variable is defined as a named CEL expression.
        * The variables defined here will be available under `variables` in other expressions of the policy
        * except MatchConditions because MatchConditions are evaluated before the rest of the policy.
@@ -33899,7 +47116,7 @@ public interface ValidatingAdmissionPolicyStatusOrBuilder extends
 
     /**
      * 
-     * The generation observed by the controller.
+     * observedGeneration is the generation observed by the controller.
      * +optional
      * 
* @@ -33908,7 +47125,7 @@ public interface ValidatingAdmissionPolicyStatusOrBuilder extends boolean hasObservedGeneration(); /** *
-     * The generation observed by the controller.
+     * observedGeneration is the generation observed by the controller.
      * +optional
      * 
* @@ -33918,7 +47135,7 @@ public interface ValidatingAdmissionPolicyStatusOrBuilder extends /** *
-     * The results of type checking for each expression.
+     * typeChecking contains the results of type checking for each expression.
      * Presence of this field indicates the completion of the type checking.
      * +optional
      * 
@@ -33928,7 +47145,7 @@ public interface ValidatingAdmissionPolicyStatusOrBuilder extends boolean hasTypeChecking(); /** *
-     * The results of type checking for each expression.
+     * typeChecking contains the results of type checking for each expression.
      * Presence of this field indicates the completion of the type checking.
      * +optional
      * 
@@ -33938,7 +47155,7 @@ public interface ValidatingAdmissionPolicyStatusOrBuilder extends io.kubernetes.client.proto.V1Admissionregistration.TypeChecking getTypeChecking(); /** *
-     * The results of type checking for each expression.
+     * typeChecking contains the results of type checking for each expression.
      * Presence of this field indicates the completion of the type checking.
      * +optional
      * 
@@ -33949,10 +47166,13 @@ public interface ValidatingAdmissionPolicyStatusOrBuilder extends /** *
-     * The conditions represent the latest available observations of a policy's current state.
+     * conditions represent the latest available observations of a policy's current state.
      * +optional
      * +listType=map
      * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
      * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -33961,10 +47181,13 @@ public interface ValidatingAdmissionPolicyStatusOrBuilder extends getConditionsList(); /** *
-     * The conditions represent the latest available observations of a policy's current state.
+     * conditions represent the latest available observations of a policy's current state.
      * +optional
      * +listType=map
      * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
      * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -33972,10 +47195,13 @@ public interface ValidatingAdmissionPolicyStatusOrBuilder extends io.kubernetes.client.proto.Meta.Condition getConditions(int index); /** *
-     * The conditions represent the latest available observations of a policy's current state.
+     * conditions represent the latest available observations of a policy's current state.
      * +optional
      * +listType=map
      * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
      * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -33983,10 +47209,13 @@ public interface ValidatingAdmissionPolicyStatusOrBuilder extends int getConditionsCount(); /** *
-     * The conditions represent the latest available observations of a policy's current state.
+     * conditions represent the latest available observations of a policy's current state.
      * +optional
      * +listType=map
      * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
      * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -33995,10 +47224,13 @@ public interface ValidatingAdmissionPolicyStatusOrBuilder extends getConditionsOrBuilderList(); /** *
-     * The conditions represent the latest available observations of a policy's current state.
+     * conditions represent the latest available observations of a policy's current state.
      * +optional
      * +listType=map
      * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
      * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -34118,7 +47350,7 @@ private ValidatingAdmissionPolicyStatus( private long observedGeneration_; /** *
-     * The generation observed by the controller.
+     * observedGeneration is the generation observed by the controller.
      * +optional
      * 
* @@ -34129,7 +47361,7 @@ public boolean hasObservedGeneration() { } /** *
-     * The generation observed by the controller.
+     * observedGeneration is the generation observed by the controller.
      * +optional
      * 
* @@ -34143,7 +47375,7 @@ public long getObservedGeneration() { private io.kubernetes.client.proto.V1Admissionregistration.TypeChecking typeChecking_; /** *
-     * The results of type checking for each expression.
+     * typeChecking contains the results of type checking for each expression.
      * Presence of this field indicates the completion of the type checking.
      * +optional
      * 
@@ -34155,7 +47387,7 @@ public boolean hasTypeChecking() { } /** *
-     * The results of type checking for each expression.
+     * typeChecking contains the results of type checking for each expression.
      * Presence of this field indicates the completion of the type checking.
      * +optional
      * 
@@ -34167,7 +47399,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.TypeChecking getTypeCh } /** *
-     * The results of type checking for each expression.
+     * typeChecking contains the results of type checking for each expression.
      * Presence of this field indicates the completion of the type checking.
      * +optional
      * 
@@ -34182,10 +47414,13 @@ public io.kubernetes.client.proto.V1Admissionregistration.TypeCheckingOrBuilder private java.util.List conditions_; /** *
-     * The conditions represent the latest available observations of a policy's current state.
+     * conditions represent the latest available observations of a policy's current state.
      * +optional
      * +listType=map
      * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
      * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -34195,10 +47430,13 @@ public java.util.List getConditionsLi } /** *
-     * The conditions represent the latest available observations of a policy's current state.
+     * conditions represent the latest available observations of a policy's current state.
      * +optional
      * +listType=map
      * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
      * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -34209,10 +47447,13 @@ public java.util.List getConditionsLi } /** *
-     * The conditions represent the latest available observations of a policy's current state.
+     * conditions represent the latest available observations of a policy's current state.
      * +optional
      * +listType=map
      * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
      * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -34222,10 +47463,13 @@ public int getConditionsCount() { } /** *
-     * The conditions represent the latest available observations of a policy's current state.
+     * conditions represent the latest available observations of a policy's current state.
      * +optional
      * +listType=map
      * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
      * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -34235,10 +47479,13 @@ public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { } /** *
-     * The conditions represent the latest available observations of a policy's current state.
+     * conditions represent the latest available observations of a policy's current state.
      * +optional
      * +listType=map
      * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
      * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -34660,7 +47907,7 @@ public Builder mergeFrom( private long observedGeneration_ ; /** *
-       * The generation observed by the controller.
+       * observedGeneration is the generation observed by the controller.
        * +optional
        * 
* @@ -34671,7 +47918,7 @@ public boolean hasObservedGeneration() { } /** *
-       * The generation observed by the controller.
+       * observedGeneration is the generation observed by the controller.
        * +optional
        * 
* @@ -34682,7 +47929,7 @@ public long getObservedGeneration() { } /** *
-       * The generation observed by the controller.
+       * observedGeneration is the generation observed by the controller.
        * +optional
        * 
* @@ -34696,7 +47943,7 @@ public Builder setObservedGeneration(long value) { } /** *
-       * The generation observed by the controller.
+       * observedGeneration is the generation observed by the controller.
        * +optional
        * 
* @@ -34714,7 +47961,7 @@ public Builder clearObservedGeneration() { io.kubernetes.client.proto.V1Admissionregistration.TypeChecking, io.kubernetes.client.proto.V1Admissionregistration.TypeChecking.Builder, io.kubernetes.client.proto.V1Admissionregistration.TypeCheckingOrBuilder> typeCheckingBuilder_; /** *
-       * The results of type checking for each expression.
+       * typeChecking contains the results of type checking for each expression.
        * Presence of this field indicates the completion of the type checking.
        * +optional
        * 
@@ -34726,7 +47973,7 @@ public boolean hasTypeChecking() { } /** *
-       * The results of type checking for each expression.
+       * typeChecking contains the results of type checking for each expression.
        * Presence of this field indicates the completion of the type checking.
        * +optional
        * 
@@ -34742,7 +47989,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.TypeChecking getTypeCh } /** *
-       * The results of type checking for each expression.
+       * typeChecking contains the results of type checking for each expression.
        * Presence of this field indicates the completion of the type checking.
        * +optional
        * 
@@ -34764,7 +48011,7 @@ public Builder setTypeChecking(io.kubernetes.client.proto.V1Admissionregistratio } /** *
-       * The results of type checking for each expression.
+       * typeChecking contains the results of type checking for each expression.
        * Presence of this field indicates the completion of the type checking.
        * +optional
        * 
@@ -34784,7 +48031,7 @@ public Builder setTypeChecking( } /** *
-       * The results of type checking for each expression.
+       * typeChecking contains the results of type checking for each expression.
        * Presence of this field indicates the completion of the type checking.
        * +optional
        * 
@@ -34810,7 +48057,7 @@ public Builder mergeTypeChecking(io.kubernetes.client.proto.V1Admissionregistrat } /** *
-       * The results of type checking for each expression.
+       * typeChecking contains the results of type checking for each expression.
        * Presence of this field indicates the completion of the type checking.
        * +optional
        * 
@@ -34829,7 +48076,7 @@ public Builder clearTypeChecking() { } /** *
-       * The results of type checking for each expression.
+       * typeChecking contains the results of type checking for each expression.
        * Presence of this field indicates the completion of the type checking.
        * +optional
        * 
@@ -34843,7 +48090,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.TypeChecking.Builder g } /** *
-       * The results of type checking for each expression.
+       * typeChecking contains the results of type checking for each expression.
        * Presence of this field indicates the completion of the type checking.
        * +optional
        * 
@@ -34860,7 +48107,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.TypeCheckingOrBuilder } /** *
-       * The results of type checking for each expression.
+       * typeChecking contains the results of type checking for each expression.
        * Presence of this field indicates the completion of the type checking.
        * +optional
        * 
@@ -34895,10 +48142,13 @@ private void ensureConditionsIsMutable() { /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -34912,10 +48162,13 @@ public java.util.List getConditionsLi } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -34929,10 +48182,13 @@ public int getConditionsCount() { } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -34946,10 +48202,13 @@ public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -34970,10 +48229,13 @@ public Builder setConditions( } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -34991,10 +48253,13 @@ public Builder setConditions( } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -35014,10 +48279,13 @@ public Builder addConditions(io.kubernetes.client.proto.Meta.Condition value) { } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -35038,10 +48306,13 @@ public Builder addConditions( } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -35059,10 +48330,13 @@ public Builder addConditions( } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -35080,10 +48354,13 @@ public Builder addConditions( } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -35102,10 +48379,13 @@ public Builder addAllConditions( } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -35122,10 +48402,13 @@ public Builder clearConditions() { } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -35142,10 +48425,13 @@ public Builder removeConditions(int index) { } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -35156,10 +48442,13 @@ public io.kubernetes.client.proto.Meta.Condition.Builder getConditionsBuilder( } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -35173,10 +48462,13 @@ public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -35191,10 +48483,13 @@ public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -35205,10 +48500,13 @@ public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder() } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -35220,10 +48518,13 @@ public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder( } /** *
-       * The conditions represent the latest available observations of a policy's current state.
+       * conditions represent the latest available observations of a policy's current state.
        * +optional
        * +listType=map
        * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
        * 
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 3; @@ -35305,7 +48606,7 @@ public interface ValidatingWebhookOrBuilder extends /** *
-     * The name of the admission webhook.
+     * name is the name of the admission webhook.
      * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
      * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
      * of the organization.
@@ -35317,7 +48618,7 @@ public interface ValidatingWebhookOrBuilder extends
     boolean hasName();
     /**
      * 
-     * The name of the admission webhook.
+     * name is the name of the admission webhook.
      * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
      * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
      * of the organization.
@@ -35329,7 +48630,7 @@ public interface ValidatingWebhookOrBuilder extends
     java.lang.String getName();
     /**
      * 
-     * The name of the admission webhook.
+     * name is the name of the admission webhook.
      * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
      * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
      * of the organization.
@@ -35343,7 +48644,7 @@ public interface ValidatingWebhookOrBuilder extends
 
     /**
      * 
-     * ClientConfig defines how to communicate with the hook.
+     * clientConfig defines how to communicate with the hook.
      * Required
      * 
* @@ -35352,7 +48653,7 @@ public interface ValidatingWebhookOrBuilder extends boolean hasClientConfig(); /** *
-     * ClientConfig defines how to communicate with the hook.
+     * clientConfig defines how to communicate with the hook.
      * Required
      * 
* @@ -35361,7 +48662,7 @@ public interface ValidatingWebhookOrBuilder extends io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig getClientConfig(); /** *
-     * ClientConfig defines how to communicate with the hook.
+     * clientConfig defines how to communicate with the hook.
      * Required
      * 
* @@ -35371,7 +48672,7 @@ public interface ValidatingWebhookOrBuilder extends /** *
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -35386,7 +48687,7 @@ public interface ValidatingWebhookOrBuilder extends
         getRulesList();
     /**
      * 
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -35400,7 +48701,7 @@ public interface ValidatingWebhookOrBuilder extends
     io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations getRules(int index);
     /**
      * 
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -35414,7 +48715,7 @@ public interface ValidatingWebhookOrBuilder extends
     int getRulesCount();
     /**
      * 
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -35429,7 +48730,7 @@ public interface ValidatingWebhookOrBuilder extends
         getRulesOrBuilderList();
     /**
      * 
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -35445,7 +48746,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
 
     /**
      * 
-     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+     * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
      * allowed values are Ignore or Fail. Defaults to Fail.
      * +optional
      * 
@@ -35455,7 +48756,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g boolean hasFailurePolicy(); /** *
-     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+     * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
      * allowed values are Ignore or Fail. Defaults to Fail.
      * +optional
      * 
@@ -35465,7 +48766,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g java.lang.String getFailurePolicy(); /** *
-     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+     * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
      * allowed values are Ignore or Fail. Defaults to Fail.
      * +optional
      * 
@@ -35536,7 +48837,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g /** *
-     * NamespaceSelector decides whether to run the webhook on an object based
+     * namespaceSelector decides whether to run the webhook on an object based
      * on whether the namespace for that object matches the selector. If the
      * object itself is a namespace, the matching is performed on
      * object.metadata.labels. If the object is another cluster scoped resource,
@@ -35583,7 +48884,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     boolean hasNamespaceSelector();
     /**
      * 
-     * NamespaceSelector decides whether to run the webhook on an object based
+     * namespaceSelector decides whether to run the webhook on an object based
      * on whether the namespace for that object matches the selector. If the
      * object itself is a namespace, the matching is performed on
      * object.metadata.labels. If the object is another cluster scoped resource,
@@ -35630,7 +48931,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector();
     /**
      * 
-     * NamespaceSelector decides whether to run the webhook on an object based
+     * namespaceSelector decides whether to run the webhook on an object based
      * on whether the namespace for that object matches the selector. If the
      * object itself is a namespace, the matching is performed on
      * object.metadata.labels. If the object is another cluster scoped resource,
@@ -35678,7 +48979,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
 
     /**
      * 
-     * ObjectSelector decides whether to run the webhook based on if the
+     * objectSelector decides whether to run the webhook based on if the
      * object has matching labels. objectSelector is evaluated against both
      * the oldObject and newObject that would be sent to the webhook, and
      * is considered to match if either object matches the selector. A null
@@ -35697,7 +48998,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     boolean hasObjectSelector();
     /**
      * 
-     * ObjectSelector decides whether to run the webhook based on if the
+     * objectSelector decides whether to run the webhook based on if the
      * object has matching labels. objectSelector is evaluated against both
      * the oldObject and newObject that would be sent to the webhook, and
      * is considered to match if either object matches the selector. A null
@@ -35716,7 +49017,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector();
     /**
      * 
-     * ObjectSelector decides whether to run the webhook based on if the
+     * objectSelector decides whether to run the webhook based on if the
      * object has matching labels. objectSelector is evaluated against both
      * the oldObject and newObject that would be sent to the webhook, and
      * is considered to match if either object matches the selector. A null
@@ -35736,7 +49037,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
 
     /**
      * 
-     * SideEffects states whether this webhook has side effects.
+     * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -35749,7 +49050,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     boolean hasSideEffects();
     /**
      * 
-     * SideEffects states whether this webhook has side effects.
+     * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -35762,7 +49063,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     java.lang.String getSideEffects();
     /**
      * 
-     * SideEffects states whether this webhook has side effects.
+     * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -35777,7 +49078,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
 
     /**
      * 
-     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+     * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
      * the webhook call will be ignored or the API call will fail based on the
      * failure policy.
      * The timeout value must be between 1 and 30 seconds.
@@ -35790,7 +49091,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     boolean hasTimeoutSeconds();
     /**
      * 
-     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+     * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
      * the webhook call will be ignored or the API call will fail based on the
      * failure policy.
      * The timeout value must be between 1 and 30 seconds.
@@ -35804,7 +49105,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
 
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -35820,7 +49121,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
         getAdmissionReviewVersionsList();
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -35835,7 +49136,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     int getAdmissionReviewVersionsCount();
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -35850,7 +49151,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     java.lang.String getAdmissionReviewVersions(int index);
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -35867,7 +49168,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
 
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -35890,7 +49191,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
         getMatchConditionsList();
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -35912,7 +49213,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getMatchConditions(int index);
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -35934,7 +49235,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
     int getMatchConditionsCount();
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -35957,7 +49258,7 @@ io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBuilder g
         getMatchConditionsOrBuilderList();
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -36171,7 +49472,7 @@ private ValidatingWebhook(
     private volatile java.lang.Object name_;
     /**
      * 
-     * The name of the admission webhook.
+     * name is the name of the admission webhook.
      * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
      * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
      * of the organization.
@@ -36185,7 +49486,7 @@ public boolean hasName() {
     }
     /**
      * 
-     * The name of the admission webhook.
+     * name is the name of the admission webhook.
      * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
      * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
      * of the organization.
@@ -36210,7 +49511,7 @@ public java.lang.String getName() {
     }
     /**
      * 
-     * The name of the admission webhook.
+     * name is the name of the admission webhook.
      * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
      * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
      * of the organization.
@@ -36237,7 +49538,7 @@ public java.lang.String getName() {
     private io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig clientConfig_;
     /**
      * 
-     * ClientConfig defines how to communicate with the hook.
+     * clientConfig defines how to communicate with the hook.
      * Required
      * 
* @@ -36248,7 +49549,7 @@ public boolean hasClientConfig() { } /** *
-     * ClientConfig defines how to communicate with the hook.
+     * clientConfig defines how to communicate with the hook.
      * Required
      * 
* @@ -36259,7 +49560,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig ge } /** *
-     * ClientConfig defines how to communicate with the hook.
+     * clientConfig defines how to communicate with the hook.
      * Required
      * 
* @@ -36273,7 +49574,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfigOrB private java.util.List rules_; /** *
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -36289,7 +49590,7 @@ public java.util.List
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -36306,7 +49607,7 @@ public java.util.List
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -36322,7 +49623,7 @@ public int getRulesCount() {
     }
     /**
      * 
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -36338,7 +49639,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations get
     }
     /**
      * 
-     * Rules describes what operations on what resources/subresources the webhook cares about.
+     * rules describes what operations on what resources/subresources the webhook cares about.
      * The webhook cares about an operation if it matches _any_ Rule.
      * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
      * from putting the cluster in a state which cannot be recovered from without completely
@@ -36358,7 +49659,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBu
     private volatile java.lang.Object failurePolicy_;
     /**
      * 
-     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+     * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
      * allowed values are Ignore or Fail. Defaults to Fail.
      * +optional
      * 
@@ -36370,7 +49671,7 @@ public boolean hasFailurePolicy() { } /** *
-     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+     * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
      * allowed values are Ignore or Fail. Defaults to Fail.
      * +optional
      * 
@@ -36393,7 +49694,7 @@ public java.lang.String getFailurePolicy() { } /** *
-     * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+     * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
      * allowed values are Ignore or Fail. Defaults to Fail.
      * +optional
      * 
@@ -36505,7 +49806,7 @@ public java.lang.String getMatchPolicy() { private io.kubernetes.client.proto.Meta.LabelSelector namespaceSelector_; /** *
-     * NamespaceSelector decides whether to run the webhook on an object based
+     * namespaceSelector decides whether to run the webhook on an object based
      * on whether the namespace for that object matches the selector. If the
      * object itself is a namespace, the matching is performed on
      * object.metadata.labels. If the object is another cluster scoped resource,
@@ -36554,7 +49855,7 @@ public boolean hasNamespaceSelector() {
     }
     /**
      * 
-     * NamespaceSelector decides whether to run the webhook on an object based
+     * namespaceSelector decides whether to run the webhook on an object based
      * on whether the namespace for that object matches the selector. If the
      * object itself is a namespace, the matching is performed on
      * object.metadata.labels. If the object is another cluster scoped resource,
@@ -36603,7 +49904,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() {
     }
     /**
      * 
-     * NamespaceSelector decides whether to run the webhook on an object based
+     * namespaceSelector decides whether to run the webhook on an object based
      * on whether the namespace for that object matches the selector. If the
      * object itself is a namespace, the matching is performed on
      * object.metadata.labels. If the object is another cluster scoped resource,
@@ -36655,7 +49956,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelect
     private io.kubernetes.client.proto.Meta.LabelSelector objectSelector_;
     /**
      * 
-     * ObjectSelector decides whether to run the webhook based on if the
+     * objectSelector decides whether to run the webhook based on if the
      * object has matching labels. objectSelector is evaluated against both
      * the oldObject and newObject that would be sent to the webhook, and
      * is considered to match if either object matches the selector. A null
@@ -36676,7 +49977,7 @@ public boolean hasObjectSelector() {
     }
     /**
      * 
-     * ObjectSelector decides whether to run the webhook based on if the
+     * objectSelector decides whether to run the webhook based on if the
      * object has matching labels. objectSelector is evaluated against both
      * the oldObject and newObject that would be sent to the webhook, and
      * is considered to match if either object matches the selector. A null
@@ -36697,7 +49998,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector() {
     }
     /**
      * 
-     * ObjectSelector decides whether to run the webhook based on if the
+     * objectSelector decides whether to run the webhook based on if the
      * object has matching labels. objectSelector is evaluated against both
      * the oldObject and newObject that would be sent to the webhook, and
      * is considered to match if either object matches the selector. A null
@@ -36721,7 +50022,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorO
     private volatile java.lang.Object sideEffects_;
     /**
      * 
-     * SideEffects states whether this webhook has side effects.
+     * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -36736,7 +50037,7 @@ public boolean hasSideEffects() {
     }
     /**
      * 
-     * SideEffects states whether this webhook has side effects.
+     * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -36762,7 +50063,7 @@ public java.lang.String getSideEffects() {
     }
     /**
      * 
-     * SideEffects states whether this webhook has side effects.
+     * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -36790,7 +50091,7 @@ public java.lang.String getSideEffects() {
     private int timeoutSeconds_;
     /**
      * 
-     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+     * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
      * the webhook call will be ignored or the API call will fail based on the
      * failure policy.
      * The timeout value must be between 1 and 30 seconds.
@@ -36805,7 +50106,7 @@ public boolean hasTimeoutSeconds() {
     }
     /**
      * 
-     * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+     * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
      * the webhook call will be ignored or the API call will fail based on the
      * failure policy.
      * The timeout value must be between 1 and 30 seconds.
@@ -36823,7 +50124,7 @@ public int getTimeoutSeconds() {
     private com.google.protobuf.LazyStringList admissionReviewVersions_;
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -36841,7 +50142,7 @@ public int getTimeoutSeconds() {
     }
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -36858,7 +50159,7 @@ public int getAdmissionReviewVersionsCount() {
     }
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -36875,7 +50176,7 @@ public java.lang.String getAdmissionReviewVersions(int index) {
     }
     /**
      * 
-     * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+     * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
      * versions the Webhook expects. API server will try to use first version in
      * the list which it supports. If none of the versions specified in this list
      * supported by API server, validation will fail for this object.
@@ -36896,7 +50197,7 @@ public java.lang.String getAdmissionReviewVersions(int index) {
     private java.util.List matchConditions_;
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -36920,7 +50221,7 @@ public java.util.List
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -36945,7 +50246,7 @@ public java.util.List
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -36969,7 +50270,7 @@ public int getMatchConditionsCount() {
     }
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -36993,7 +50294,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getMatc
     }
     /**
      * 
-     * MatchConditions is a list of conditions that must be met for a request to be sent to this
+     * matchConditions is a list of conditions that must be met for a request to be sent to this
      * webhook. Match conditions filter requests that have already been matched by the rules,
      * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
      * There are a maximum of 64 match conditions allowed.
@@ -37689,7 +50990,7 @@ public Builder mergeFrom(
       private java.lang.Object name_ = "";
       /**
        * 
-       * The name of the admission webhook.
+       * name is the name of the admission webhook.
        * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
        * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
        * of the organization.
@@ -37703,7 +51004,7 @@ public boolean hasName() {
       }
       /**
        * 
-       * The name of the admission webhook.
+       * name is the name of the admission webhook.
        * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
        * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
        * of the organization.
@@ -37728,7 +51029,7 @@ public java.lang.String getName() {
       }
       /**
        * 
-       * The name of the admission webhook.
+       * name is the name of the admission webhook.
        * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
        * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
        * of the organization.
@@ -37752,7 +51053,7 @@ public java.lang.String getName() {
       }
       /**
        * 
-       * The name of the admission webhook.
+       * name is the name of the admission webhook.
        * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
        * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
        * of the organization.
@@ -37773,7 +51074,7 @@ public Builder setName(
       }
       /**
        * 
-       * The name of the admission webhook.
+       * name is the name of the admission webhook.
        * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
        * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
        * of the organization.
@@ -37790,7 +51091,7 @@ public Builder clearName() {
       }
       /**
        * 
-       * The name of the admission webhook.
+       * name is the name of the admission webhook.
        * Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where
        * "imagepolicy" is the name of the webhook, and kubernetes.io is the name
        * of the organization.
@@ -37815,7 +51116,7 @@ public Builder setNameBytes(
           io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig, io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.Builder, io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfigOrBuilder> clientConfigBuilder_;
       /**
        * 
-       * ClientConfig defines how to communicate with the hook.
+       * clientConfig defines how to communicate with the hook.
        * Required
        * 
* @@ -37826,7 +51127,7 @@ public boolean hasClientConfig() { } /** *
-       * ClientConfig defines how to communicate with the hook.
+       * clientConfig defines how to communicate with the hook.
        * Required
        * 
* @@ -37841,7 +51142,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig ge } /** *
-       * ClientConfig defines how to communicate with the hook.
+       * clientConfig defines how to communicate with the hook.
        * Required
        * 
* @@ -37862,7 +51163,7 @@ public Builder setClientConfig(io.kubernetes.client.proto.V1Admissionregistratio } /** *
-       * ClientConfig defines how to communicate with the hook.
+       * clientConfig defines how to communicate with the hook.
        * Required
        * 
* @@ -37881,7 +51182,7 @@ public Builder setClientConfig( } /** *
-       * ClientConfig defines how to communicate with the hook.
+       * clientConfig defines how to communicate with the hook.
        * Required
        * 
* @@ -37906,7 +51207,7 @@ public Builder mergeClientConfig(io.kubernetes.client.proto.V1Admissionregistrat } /** *
-       * ClientConfig defines how to communicate with the hook.
+       * clientConfig defines how to communicate with the hook.
        * Required
        * 
* @@ -37924,7 +51225,7 @@ public Builder clearClientConfig() { } /** *
-       * ClientConfig defines how to communicate with the hook.
+       * clientConfig defines how to communicate with the hook.
        * Required
        * 
* @@ -37937,7 +51238,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig.Bu } /** *
-       * ClientConfig defines how to communicate with the hook.
+       * clientConfig defines how to communicate with the hook.
        * Required
        * 
* @@ -37953,7 +51254,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfigOrB } /** *
-       * ClientConfig defines how to communicate with the hook.
+       * clientConfig defines how to communicate with the hook.
        * Required
        * 
* @@ -37987,7 +51288,7 @@ private void ensureRulesIsMutable() { /** *
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38007,7 +51308,7 @@ public java.util.List
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38027,7 +51328,7 @@ public int getRulesCount() {
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38047,7 +51348,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations get
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38074,7 +51375,7 @@ public Builder setRules(
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38098,7 +51399,7 @@ public Builder setRules(
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38124,7 +51425,7 @@ public Builder addRules(io.kubernetes.client.proto.V1Admissionregistration.RuleW
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38151,7 +51452,7 @@ public Builder addRules(
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38175,7 +51476,7 @@ public Builder addRules(
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38199,7 +51500,7 @@ public Builder addRules(
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38224,7 +51525,7 @@ public Builder addAllRules(
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38247,7 +51548,7 @@ public Builder clearRules() {
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38270,7 +51571,7 @@ public Builder removeRules(int index) {
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38287,7 +51588,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Bui
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38307,7 +51608,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBu
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38328,7 +51629,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperationsOrBu
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38345,7 +51646,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Bui
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38363,7 +51664,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Bui
       }
       /**
        * 
-       * Rules describes what operations on what resources/subresources the webhook cares about.
+       * rules describes what operations on what resources/subresources the webhook cares about.
        * The webhook cares about an operation if it matches _any_ Rule.
        * However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks
        * from putting the cluster in a state which cannot be recovered from without completely
@@ -38396,7 +51697,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.RuleWithOperations.Bui
       private java.lang.Object failurePolicy_ = "";
       /**
        * 
-       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+       * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
        * allowed values are Ignore or Fail. Defaults to Fail.
        * +optional
        * 
@@ -38408,7 +51709,7 @@ public boolean hasFailurePolicy() { } /** *
-       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+       * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
        * allowed values are Ignore or Fail. Defaults to Fail.
        * +optional
        * 
@@ -38431,7 +51732,7 @@ public java.lang.String getFailurePolicy() { } /** *
-       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+       * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
        * allowed values are Ignore or Fail. Defaults to Fail.
        * +optional
        * 
@@ -38453,7 +51754,7 @@ public java.lang.String getFailurePolicy() { } /** *
-       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+       * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
        * allowed values are Ignore or Fail. Defaults to Fail.
        * +optional
        * 
@@ -38472,7 +51773,7 @@ public Builder setFailurePolicy( } /** *
-       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+       * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
        * allowed values are Ignore or Fail. Defaults to Fail.
        * +optional
        * 
@@ -38487,7 +51788,7 @@ public Builder clearFailurePolicy() { } /** *
-       * FailurePolicy defines how unrecognized errors from the admission endpoint are handled -
+       * failurePolicy defines how unrecognized errors from the admission endpoint are handled -
        * allowed values are Ignore or Fail. Defaults to Fail.
        * +optional
        * 
@@ -38676,7 +51977,7 @@ public Builder setMatchPolicyBytes( io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> namespaceSelectorBuilder_; /** *
-       * NamespaceSelector decides whether to run the webhook on an object based
+       * namespaceSelector decides whether to run the webhook on an object based
        * on whether the namespace for that object matches the selector. If the
        * object itself is a namespace, the matching is performed on
        * object.metadata.labels. If the object is another cluster scoped resource,
@@ -38725,7 +52026,7 @@ public boolean hasNamespaceSelector() {
       }
       /**
        * 
-       * NamespaceSelector decides whether to run the webhook on an object based
+       * namespaceSelector decides whether to run the webhook on an object based
        * on whether the namespace for that object matches the selector. If the
        * object itself is a namespace, the matching is performed on
        * object.metadata.labels. If the object is another cluster scoped resource,
@@ -38778,7 +52079,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector getNamespaceSelector() {
       }
       /**
        * 
-       * NamespaceSelector decides whether to run the webhook on an object based
+       * namespaceSelector decides whether to run the webhook on an object based
        * on whether the namespace for that object matches the selector. If the
        * object itself is a namespace, the matching is performed on
        * object.metadata.labels. If the object is another cluster scoped resource,
@@ -38837,7 +52138,7 @@ public Builder setNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelecto
       }
       /**
        * 
-       * NamespaceSelector decides whether to run the webhook on an object based
+       * namespaceSelector decides whether to run the webhook on an object based
        * on whether the namespace for that object matches the selector. If the
        * object itself is a namespace, the matching is performed on
        * object.metadata.labels. If the object is another cluster scoped resource,
@@ -38894,7 +52195,7 @@ public Builder setNamespaceSelector(
       }
       /**
        * 
-       * NamespaceSelector decides whether to run the webhook on an object based
+       * namespaceSelector decides whether to run the webhook on an object based
        * on whether the namespace for that object matches the selector. If the
        * object itself is a namespace, the matching is performed on
        * object.metadata.labels. If the object is another cluster scoped resource,
@@ -38957,7 +52258,7 @@ public Builder mergeNamespaceSelector(io.kubernetes.client.proto.Meta.LabelSelec
       }
       /**
        * 
-       * NamespaceSelector decides whether to run the webhook on an object based
+       * namespaceSelector decides whether to run the webhook on an object based
        * on whether the namespace for that object matches the selector. If the
        * object itself is a namespace, the matching is performed on
        * object.metadata.labels. If the object is another cluster scoped resource,
@@ -39013,7 +52314,7 @@ public Builder clearNamespaceSelector() {
       }
       /**
        * 
-       * NamespaceSelector decides whether to run the webhook on an object based
+       * namespaceSelector decides whether to run the webhook on an object based
        * on whether the namespace for that object matches the selector. If the
        * object itself is a namespace, the matching is performed on
        * object.metadata.labels. If the object is another cluster scoped resource,
@@ -39064,7 +52365,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getNamespaceSelecto
       }
       /**
        * 
-       * NamespaceSelector decides whether to run the webhook on an object based
+       * namespaceSelector decides whether to run the webhook on an object based
        * on whether the namespace for that object matches the selector. If the
        * object itself is a namespace, the matching is performed on
        * object.metadata.labels. If the object is another cluster scoped resource,
@@ -39118,7 +52419,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelect
       }
       /**
        * 
-       * NamespaceSelector decides whether to run the webhook on an object based
+       * namespaceSelector decides whether to run the webhook on an object based
        * on whether the namespace for that object matches the selector. If the
        * object itself is a namespace, the matching is performed on
        * object.metadata.labels. If the object is another cluster scoped resource,
@@ -39181,7 +52482,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelect
           io.kubernetes.client.proto.Meta.LabelSelector, io.kubernetes.client.proto.Meta.LabelSelector.Builder, io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder> objectSelectorBuilder_;
       /**
        * 
-       * ObjectSelector decides whether to run the webhook based on if the
+       * objectSelector decides whether to run the webhook based on if the
        * object has matching labels. objectSelector is evaluated against both
        * the oldObject and newObject that would be sent to the webhook, and
        * is considered to match if either object matches the selector. A null
@@ -39202,7 +52503,7 @@ public boolean hasObjectSelector() {
       }
       /**
        * 
-       * ObjectSelector decides whether to run the webhook based on if the
+       * objectSelector decides whether to run the webhook based on if the
        * object has matching labels. objectSelector is evaluated against both
        * the oldObject and newObject that would be sent to the webhook, and
        * is considered to match if either object matches the selector. A null
@@ -39227,7 +52528,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector getObjectSelector() {
       }
       /**
        * 
-       * ObjectSelector decides whether to run the webhook based on if the
+       * objectSelector decides whether to run the webhook based on if the
        * object has matching labels. objectSelector is evaluated against both
        * the oldObject and newObject that would be sent to the webhook, and
        * is considered to match if either object matches the selector. A null
@@ -39258,7 +52559,7 @@ public Builder setObjectSelector(io.kubernetes.client.proto.Meta.LabelSelector v
       }
       /**
        * 
-       * ObjectSelector decides whether to run the webhook based on if the
+       * objectSelector decides whether to run the webhook based on if the
        * object has matching labels. objectSelector is evaluated against both
        * the oldObject and newObject that would be sent to the webhook, and
        * is considered to match if either object matches the selector. A null
@@ -39287,7 +52588,7 @@ public Builder setObjectSelector(
       }
       /**
        * 
-       * ObjectSelector decides whether to run the webhook based on if the
+       * objectSelector decides whether to run the webhook based on if the
        * object has matching labels. objectSelector is evaluated against both
        * the oldObject and newObject that would be sent to the webhook, and
        * is considered to match if either object matches the selector. A null
@@ -39322,7 +52623,7 @@ public Builder mergeObjectSelector(io.kubernetes.client.proto.Meta.LabelSelector
       }
       /**
        * 
-       * ObjectSelector decides whether to run the webhook based on if the
+       * objectSelector decides whether to run the webhook based on if the
        * object has matching labels. objectSelector is evaluated against both
        * the oldObject and newObject that would be sent to the webhook, and
        * is considered to match if either object matches the selector. A null
@@ -39350,7 +52651,7 @@ public Builder clearObjectSelector() {
       }
       /**
        * 
-       * ObjectSelector decides whether to run the webhook based on if the
+       * objectSelector decides whether to run the webhook based on if the
        * object has matching labels. objectSelector is evaluated against both
        * the oldObject and newObject that would be sent to the webhook, and
        * is considered to match if either object matches the selector. A null
@@ -39373,7 +52674,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getObjectSelectorBu
       }
       /**
        * 
-       * ObjectSelector decides whether to run the webhook based on if the
+       * objectSelector decides whether to run the webhook based on if the
        * object has matching labels. objectSelector is evaluated against both
        * the oldObject and newObject that would be sent to the webhook, and
        * is considered to match if either object matches the selector. A null
@@ -39399,7 +52700,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorO
       }
       /**
        * 
-       * ObjectSelector decides whether to run the webhook based on if the
+       * objectSelector decides whether to run the webhook based on if the
        * object has matching labels. objectSelector is evaluated against both
        * the oldObject and newObject that would be sent to the webhook, and
        * is considered to match if either object matches the selector. A null
@@ -39432,7 +52733,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getObjectSelectorO
       private java.lang.Object sideEffects_ = "";
       /**
        * 
-       * SideEffects states whether this webhook has side effects.
+       * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -39447,7 +52748,7 @@ public boolean hasSideEffects() {
       }
       /**
        * 
-       * SideEffects states whether this webhook has side effects.
+       * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -39473,7 +52774,7 @@ public java.lang.String getSideEffects() {
       }
       /**
        * 
-       * SideEffects states whether this webhook has side effects.
+       * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -39498,7 +52799,7 @@ public java.lang.String getSideEffects() {
       }
       /**
        * 
-       * SideEffects states whether this webhook has side effects.
+       * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -39520,7 +52821,7 @@ public Builder setSideEffects(
       }
       /**
        * 
-       * SideEffects states whether this webhook has side effects.
+       * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -39538,7 +52839,7 @@ public Builder clearSideEffects() {
       }
       /**
        * 
-       * SideEffects states whether this webhook has side effects.
+       * sideEffects states whether this webhook has side 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 chain and the side effects therefore need to be undone.
@@ -39562,7 +52863,7 @@ public Builder setSideEffectsBytes(
       private int timeoutSeconds_ ;
       /**
        * 
-       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+       * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
        * the webhook call will be ignored or the API call will fail based on the
        * failure policy.
        * The timeout value must be between 1 and 30 seconds.
@@ -39577,7 +52878,7 @@ public boolean hasTimeoutSeconds() {
       }
       /**
        * 
-       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+       * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
        * the webhook call will be ignored or the API call will fail based on the
        * failure policy.
        * The timeout value must be between 1 and 30 seconds.
@@ -39592,7 +52893,7 @@ public int getTimeoutSeconds() {
       }
       /**
        * 
-       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+       * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
        * the webhook call will be ignored or the API call will fail based on the
        * failure policy.
        * The timeout value must be between 1 and 30 seconds.
@@ -39610,7 +52911,7 @@ public Builder setTimeoutSeconds(int value) {
       }
       /**
        * 
-       * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes,
+       * timeoutSeconds specifies the timeout for this webhook. After the timeout passes,
        * the webhook call will be ignored or the API call will fail based on the
        * failure policy.
        * The timeout value must be between 1 and 30 seconds.
@@ -39636,7 +52937,7 @@ private void ensureAdmissionReviewVersionsIsMutable() {
       }
       /**
        * 
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
        * versions the Webhook expects. API server will try to use first version in
        * the list which it supports. If none of the versions specified in this list
        * supported by API server, validation will fail for this object.
@@ -39654,7 +52955,7 @@ private void ensureAdmissionReviewVersionsIsMutable() {
       }
       /**
        * 
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
        * versions the Webhook expects. API server will try to use first version in
        * the list which it supports. If none of the versions specified in this list
        * supported by API server, validation will fail for this object.
@@ -39671,7 +52972,7 @@ public int getAdmissionReviewVersionsCount() {
       }
       /**
        * 
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
        * versions the Webhook expects. API server will try to use first version in
        * the list which it supports. If none of the versions specified in this list
        * supported by API server, validation will fail for this object.
@@ -39688,7 +52989,7 @@ public java.lang.String getAdmissionReviewVersions(int index) {
       }
       /**
        * 
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
        * versions the Webhook expects. API server will try to use first version in
        * the list which it supports. If none of the versions specified in this list
        * supported by API server, validation will fail for this object.
@@ -39706,7 +53007,7 @@ public java.lang.String getAdmissionReviewVersions(int index) {
       }
       /**
        * 
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
        * versions the Webhook expects. API server will try to use first version in
        * the list which it supports. If none of the versions specified in this list
        * supported by API server, validation will fail for this object.
@@ -39730,7 +53031,7 @@ public Builder setAdmissionReviewVersions(
       }
       /**
        * 
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
        * versions the Webhook expects. API server will try to use first version in
        * the list which it supports. If none of the versions specified in this list
        * supported by API server, validation will fail for this object.
@@ -39754,7 +53055,7 @@ public Builder addAdmissionReviewVersions(
       }
       /**
        * 
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
        * versions the Webhook expects. API server will try to use first version in
        * the list which it supports. If none of the versions specified in this list
        * supported by API server, validation will fail for this object.
@@ -39776,7 +53077,7 @@ public Builder addAllAdmissionReviewVersions(
       }
       /**
        * 
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
        * versions the Webhook expects. API server will try to use first version in
        * the list which it supports. If none of the versions specified in this list
        * supported by API server, validation will fail for this object.
@@ -39796,7 +53097,7 @@ public Builder clearAdmissionReviewVersions() {
       }
       /**
        * 
-       * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview`
+       * admissionReviewVersions is an ordered list of preferred `AdmissionReview`
        * versions the Webhook expects. API server will try to use first version in
        * the list which it supports. If none of the versions specified in this list
        * supported by API server, validation will fail for this object.
@@ -39833,7 +53134,7 @@ private void ensureMatchConditionsIsMutable() {
 
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -39861,7 +53162,7 @@ public java.util.List
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -39889,7 +53190,7 @@ public int getMatchConditionsCount() {
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -39917,7 +53218,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition getMatc
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -39952,7 +53253,7 @@ public Builder setMatchConditions(
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -39984,7 +53285,7 @@ public Builder setMatchConditions(
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -40018,7 +53319,7 @@ public Builder addMatchConditions(io.kubernetes.client.proto.V1Admissionregistra
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -40053,7 +53354,7 @@ public Builder addMatchConditions(
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -40085,7 +53386,7 @@ public Builder addMatchConditions(
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -40117,7 +53418,7 @@ public Builder addMatchConditions(
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -40150,7 +53451,7 @@ public Builder addAllMatchConditions(
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -40181,7 +53482,7 @@ public Builder clearMatchConditions() {
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -40212,7 +53513,7 @@ public Builder removeMatchConditions(int index) {
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -40237,7 +53538,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -40265,7 +53566,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilde
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -40294,7 +53595,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchConditionOrBuilde
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -40319,7 +53620,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -40345,7 +53646,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.MatchCondition.Builder
       }
       /**
        * 
-       * MatchConditions is a list of conditions that must be met for a request to be sent to this
+       * matchConditions is a list of conditions that must be met for a request to be sent to this
        * webhook. Match conditions filter requests that have already been matched by the rules,
        * namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests.
        * There are a maximum of 64 match conditions allowed.
@@ -40441,7 +53742,7 @@ public interface ValidatingWebhookConfigurationOrBuilder extends
 
     /**
      * 
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -40450,7 +53751,7 @@ public interface ValidatingWebhookConfigurationOrBuilder extends boolean hasMetadata(); /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -40459,7 +53760,7 @@ public interface ValidatingWebhookConfigurationOrBuilder extends io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -40469,7 +53770,7 @@ public interface ValidatingWebhookConfigurationOrBuilder extends /** *
-     * Webhooks is a list of webhooks and the affected resources and operations.
+     * webhooks is a list of webhooks and the affected resources and operations.
      * +optional
      * +patchMergeKey=name
      * +patchStrategy=merge
@@ -40483,7 +53784,7 @@ public interface ValidatingWebhookConfigurationOrBuilder extends
         getWebhooksList();
     /**
      * 
-     * Webhooks is a list of webhooks and the affected resources and operations.
+     * webhooks is a list of webhooks and the affected resources and operations.
      * +optional
      * +patchMergeKey=name
      * +patchStrategy=merge
@@ -40496,7 +53797,7 @@ public interface ValidatingWebhookConfigurationOrBuilder extends
     io.kubernetes.client.proto.V1Admissionregistration.ValidatingWebhook getWebhooks(int index);
     /**
      * 
-     * Webhooks is a list of webhooks and the affected resources and operations.
+     * webhooks is a list of webhooks and the affected resources and operations.
      * +optional
      * +patchMergeKey=name
      * +patchStrategy=merge
@@ -40509,7 +53810,7 @@ public interface ValidatingWebhookConfigurationOrBuilder extends
     int getWebhooksCount();
     /**
      * 
-     * Webhooks is a list of webhooks and the affected resources and operations.
+     * webhooks is a list of webhooks and the affected resources and operations.
      * +optional
      * +patchMergeKey=name
      * +patchStrategy=merge
@@ -40523,7 +53824,7 @@ public interface ValidatingWebhookConfigurationOrBuilder extends
         getWebhooksOrBuilderList();
     /**
      * 
-     * Webhooks is a list of webhooks and the affected resources and operations.
+     * webhooks is a list of webhooks and the affected resources and operations.
      * +optional
      * +patchMergeKey=name
      * +patchStrategy=merge
@@ -40642,7 +53943,7 @@ private ValidatingWebhookConfiguration(
     private io.kubernetes.client.proto.Meta.ObjectMeta metadata_;
     /**
      * 
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -40653,7 +53954,7 @@ public boolean hasMetadata() { } /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -40664,7 +53965,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -40678,7 +53979,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( private java.util.List webhooks_; /** *
-     * Webhooks is a list of webhooks and the affected resources and operations.
+     * webhooks is a list of webhooks and the affected resources and operations.
      * +optional
      * +patchMergeKey=name
      * +patchStrategy=merge
@@ -40693,7 +53994,7 @@ public java.util.List
-     * Webhooks is a list of webhooks and the affected resources and operations.
+     * webhooks is a list of webhooks and the affected resources and operations.
      * +optional
      * +patchMergeKey=name
      * +patchStrategy=merge
@@ -40709,7 +54010,7 @@ public java.util.List
-     * Webhooks is a list of webhooks and the affected resources and operations.
+     * webhooks is a list of webhooks and the affected resources and operations.
      * +optional
      * +patchMergeKey=name
      * +patchStrategy=merge
@@ -40724,7 +54025,7 @@ public int getWebhooksCount() {
     }
     /**
      * 
-     * Webhooks is a list of webhooks and the affected resources and operations.
+     * webhooks is a list of webhooks and the affected resources and operations.
      * +optional
      * +patchMergeKey=name
      * +patchStrategy=merge
@@ -40739,7 +54040,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingWebhook getW
     }
     /**
      * 
-     * Webhooks is a list of webhooks and the affected resources and operations.
+     * webhooks is a list of webhooks and the affected resources and operations.
      * +optional
      * +patchMergeKey=name
      * +patchStrategy=merge
@@ -41142,7 +54443,7 @@ public Builder mergeFrom(
           io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_;
       /**
        * 
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -41153,7 +54454,7 @@ public boolean hasMetadata() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -41168,7 +54469,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -41189,7 +54490,7 @@ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -41208,7 +54509,7 @@ public Builder setMetadata( } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -41233,7 +54534,7 @@ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -41251,7 +54552,7 @@ public Builder clearMetadata() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -41264,7 +54565,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -41280,7 +54581,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -41314,7 +54615,7 @@ private void ensureWebhooksIsMutable() { /** *
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41333,7 +54634,7 @@ public java.util.List
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41352,7 +54653,7 @@ public int getWebhooksCount() {
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41371,7 +54672,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingWebhook getW
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41397,7 +54698,7 @@ public Builder setWebhooks(
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41420,7 +54721,7 @@ public Builder setWebhooks(
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41445,7 +54746,7 @@ public Builder addWebhooks(io.kubernetes.client.proto.V1Admissionregistration.Va
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41471,7 +54772,7 @@ public Builder addWebhooks(
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41494,7 +54795,7 @@ public Builder addWebhooks(
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41517,7 +54818,7 @@ public Builder addWebhooks(
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41541,7 +54842,7 @@ public Builder addAllWebhooks(
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41563,7 +54864,7 @@ public Builder clearWebhooks() {
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41585,7 +54886,7 @@ public Builder removeWebhooks(int index) {
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41601,7 +54902,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingWebhook.Buil
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41620,7 +54921,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingWebhookOrBui
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41640,7 +54941,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingWebhookOrBui
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41656,7 +54957,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingWebhook.Buil
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41673,7 +54974,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ValidatingWebhook.Buil
       }
       /**
        * 
-       * Webhooks is a list of webhooks and the affected resources and operations.
+       * webhooks is a list of webhooks and the affected resources and operations.
        * +optional
        * +patchMergeKey=name
        * +patchStrategy=merge
@@ -41760,7 +55061,7 @@ public interface ValidatingWebhookConfigurationListOrBuilder extends
 
     /**
      * 
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -41770,7 +55071,7 @@ public interface ValidatingWebhookConfigurationListOrBuilder extends boolean hasMetadata(); /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -41780,7 +55081,7 @@ public interface ValidatingWebhookConfigurationListOrBuilder extends io.kubernetes.client.proto.Meta.ListMeta getMetadata(); /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -41939,7 +55240,7 @@ private ValidatingWebhookConfigurationList( private io.kubernetes.client.proto.Meta.ListMeta metadata_; /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -41951,7 +55252,7 @@ public boolean hasMetadata() { } /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -41963,7 +55264,7 @@ public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { } /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
      * +optional
      * 
@@ -42417,7 +55718,7 @@ public Builder mergeFrom( io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -42429,7 +55730,7 @@ public boolean hasMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -42445,7 +55746,7 @@ public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -42467,7 +55768,7 @@ public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -42487,7 +55788,7 @@ public Builder setMetadata( } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -42513,7 +55814,7 @@ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -42532,7 +55833,7 @@ public Builder clearMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -42546,7 +55847,7 @@ public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -42563,7 +55864,7 @@ public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
        * +optional
        * 
@@ -42954,7 +56255,7 @@ public interface ValidationOrBuilder extends /** *
-     * Expression represents the expression which will be evaluated by CEL.
+     * expression represents the expression which will be evaluated by CEL.
      * ref: https://github.com/google/cel-spec
      * CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
      * - 'object' - The object from the incoming request. The value is null for DELETE requests.
@@ -42998,7 +56299,7 @@ public interface ValidationOrBuilder extends
     boolean hasExpression();
     /**
      * 
-     * Expression represents the expression which will be evaluated by CEL.
+     * expression represents the expression which will be evaluated by CEL.
      * ref: https://github.com/google/cel-spec
      * CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
      * - 'object' - The object from the incoming request. The value is null for DELETE requests.
@@ -43042,7 +56343,7 @@ public interface ValidationOrBuilder extends
     java.lang.String getExpression();
     /**
      * 
-     * Expression represents the expression which will be evaluated by CEL.
+     * expression represents the expression which will be evaluated by CEL.
      * ref: https://github.com/google/cel-spec
      * CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
      * - 'object' - The object from the incoming request. The value is null for DELETE requests.
@@ -43088,7 +56389,7 @@ public interface ValidationOrBuilder extends
 
     /**
      * 
-     * Message represents the message displayed when validation fails. The message is required if the Expression contains
+     * message represents the message displayed when validation fails. The message is required if the Expression contains
      * line breaks. The message must not contain line breaks.
      * If unset, the message is "failed rule: {Rule}".
      * e.g. "must be a URL with the host matching spec.host"
@@ -43103,7 +56404,7 @@ public interface ValidationOrBuilder extends
     boolean hasMessage();
     /**
      * 
-     * Message represents the message displayed when validation fails. The message is required if the Expression contains
+     * message represents the message displayed when validation fails. The message is required if the Expression contains
      * line breaks. The message must not contain line breaks.
      * If unset, the message is "failed rule: {Rule}".
      * e.g. "must be a URL with the host matching spec.host"
@@ -43118,7 +56419,7 @@ public interface ValidationOrBuilder extends
     java.lang.String getMessage();
     /**
      * 
-     * Message represents the message displayed when validation fails. The message is required if the Expression contains
+     * message represents the message displayed when validation fails. The message is required if the Expression contains
      * line breaks. The message must not contain line breaks.
      * If unset, the message is "failed rule: {Rule}".
      * e.g. "must be a URL with the host matching spec.host"
@@ -43135,7 +56436,7 @@ public interface ValidationOrBuilder extends
 
     /**
      * 
-     * Reason represents a machine-readable description of why this validation failed.
+     * reason represents a machine-readable description of why this validation failed.
      * If this is the first validation in the list to fail, this reason, as well as the
      * corresponding HTTP response code, are used in the
      * HTTP response to the client.
@@ -43149,7 +56450,7 @@ public interface ValidationOrBuilder extends
     boolean hasReason();
     /**
      * 
-     * Reason represents a machine-readable description of why this validation failed.
+     * reason represents a machine-readable description of why this validation failed.
      * If this is the first validation in the list to fail, this reason, as well as the
      * corresponding HTTP response code, are used in the
      * HTTP response to the client.
@@ -43163,7 +56464,7 @@ public interface ValidationOrBuilder extends
     java.lang.String getReason();
     /**
      * 
-     * Reason represents a machine-readable description of why this validation failed.
+     * reason represents a machine-readable description of why this validation failed.
      * If this is the first validation in the list to fail, this reason, as well as the
      * corresponding HTTP response code, are used in the
      * HTTP response to the client.
@@ -43341,7 +56642,7 @@ private Validation(
     private volatile java.lang.Object expression_;
     /**
      * 
-     * Expression represents the expression which will be evaluated by CEL.
+     * expression represents the expression which will be evaluated by CEL.
      * ref: https://github.com/google/cel-spec
      * CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
      * - 'object' - The object from the incoming request. The value is null for DELETE requests.
@@ -43387,7 +56688,7 @@ public boolean hasExpression() {
     }
     /**
      * 
-     * Expression represents the expression which will be evaluated by CEL.
+     * expression represents the expression which will be evaluated by CEL.
      * ref: https://github.com/google/cel-spec
      * CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
      * - 'object' - The object from the incoming request. The value is null for DELETE requests.
@@ -43444,7 +56745,7 @@ public java.lang.String getExpression() {
     }
     /**
      * 
-     * Expression represents the expression which will be evaluated by CEL.
+     * expression represents the expression which will be evaluated by CEL.
      * ref: https://github.com/google/cel-spec
      * CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
      * - 'object' - The object from the incoming request. The value is null for DELETE requests.
@@ -43503,7 +56804,7 @@ public java.lang.String getExpression() {
     private volatile java.lang.Object message_;
     /**
      * 
-     * Message represents the message displayed when validation fails. The message is required if the Expression contains
+     * message represents the message displayed when validation fails. The message is required if the Expression contains
      * line breaks. The message must not contain line breaks.
      * If unset, the message is "failed rule: {Rule}".
      * e.g. "must be a URL with the host matching spec.host"
@@ -43520,7 +56821,7 @@ public boolean hasMessage() {
     }
     /**
      * 
-     * Message represents the message displayed when validation fails. The message is required if the Expression contains
+     * message represents the message displayed when validation fails. The message is required if the Expression contains
      * line breaks. The message must not contain line breaks.
      * If unset, the message is "failed rule: {Rule}".
      * e.g. "must be a URL with the host matching spec.host"
@@ -43548,7 +56849,7 @@ public java.lang.String getMessage() {
     }
     /**
      * 
-     * Message represents the message displayed when validation fails. The message is required if the Expression contains
+     * message represents the message displayed when validation fails. The message is required if the Expression contains
      * line breaks. The message must not contain line breaks.
      * If unset, the message is "failed rule: {Rule}".
      * e.g. "must be a URL with the host matching spec.host"
@@ -43578,7 +56879,7 @@ public java.lang.String getMessage() {
     private volatile java.lang.Object reason_;
     /**
      * 
-     * Reason represents a machine-readable description of why this validation failed.
+     * reason represents a machine-readable description of why this validation failed.
      * If this is the first validation in the list to fail, this reason, as well as the
      * corresponding HTTP response code, are used in the
      * HTTP response to the client.
@@ -43594,7 +56895,7 @@ public boolean hasReason() {
     }
     /**
      * 
-     * Reason represents a machine-readable description of why this validation failed.
+     * reason represents a machine-readable description of why this validation failed.
      * If this is the first validation in the list to fail, this reason, as well as the
      * corresponding HTTP response code, are used in the
      * HTTP response to the client.
@@ -43621,7 +56922,7 @@ public java.lang.String getReason() {
     }
     /**
      * 
-     * Reason represents a machine-readable description of why this validation failed.
+     * reason represents a machine-readable description of why this validation failed.
      * If this is the first validation in the list to fail, this reason, as well as the
      * corresponding HTTP response code, are used in the
      * HTTP response to the client.
@@ -44131,7 +57432,7 @@ public Builder mergeFrom(
       private java.lang.Object expression_ = "";
       /**
        * 
-       * Expression represents the expression which will be evaluated by CEL.
+       * expression represents the expression which will be evaluated by CEL.
        * ref: https://github.com/google/cel-spec
        * CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
        * - 'object' - The object from the incoming request. The value is null for DELETE requests.
@@ -44177,7 +57478,7 @@ public boolean hasExpression() {
       }
       /**
        * 
-       * Expression represents the expression which will be evaluated by CEL.
+       * expression represents the expression which will be evaluated by CEL.
        * ref: https://github.com/google/cel-spec
        * CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
        * - 'object' - The object from the incoming request. The value is null for DELETE requests.
@@ -44234,7 +57535,7 @@ public java.lang.String getExpression() {
       }
       /**
        * 
-       * Expression represents the expression which will be evaluated by CEL.
+       * expression represents the expression which will be evaluated by CEL.
        * ref: https://github.com/google/cel-spec
        * CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
        * - 'object' - The object from the incoming request. The value is null for DELETE requests.
@@ -44290,7 +57591,7 @@ public java.lang.String getExpression() {
       }
       /**
        * 
-       * Expression represents the expression which will be evaluated by CEL.
+       * expression represents the expression which will be evaluated by CEL.
        * ref: https://github.com/google/cel-spec
        * CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
        * - 'object' - The object from the incoming request. The value is null for DELETE requests.
@@ -44343,7 +57644,7 @@ public Builder setExpression(
       }
       /**
        * 
-       * Expression represents the expression which will be evaluated by CEL.
+       * expression represents the expression which will be evaluated by CEL.
        * ref: https://github.com/google/cel-spec
        * CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
        * - 'object' - The object from the incoming request. The value is null for DELETE requests.
@@ -44392,7 +57693,7 @@ public Builder clearExpression() {
       }
       /**
        * 
-       * Expression represents the expression which will be evaluated by CEL.
+       * expression represents the expression which will be evaluated by CEL.
        * ref: https://github.com/google/cel-spec
        * CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables:
        * - 'object' - The object from the incoming request. The value is null for DELETE requests.
@@ -44447,7 +57748,7 @@ public Builder setExpressionBytes(
       private java.lang.Object message_ = "";
       /**
        * 
-       * Message represents the message displayed when validation fails. The message is required if the Expression contains
+       * message represents the message displayed when validation fails. The message is required if the Expression contains
        * line breaks. The message must not contain line breaks.
        * If unset, the message is "failed rule: {Rule}".
        * e.g. "must be a URL with the host matching spec.host"
@@ -44464,7 +57765,7 @@ public boolean hasMessage() {
       }
       /**
        * 
-       * Message represents the message displayed when validation fails. The message is required if the Expression contains
+       * message represents the message displayed when validation fails. The message is required if the Expression contains
        * line breaks. The message must not contain line breaks.
        * If unset, the message is "failed rule: {Rule}".
        * e.g. "must be a URL with the host matching spec.host"
@@ -44492,7 +57793,7 @@ public java.lang.String getMessage() {
       }
       /**
        * 
-       * Message represents the message displayed when validation fails. The message is required if the Expression contains
+       * message represents the message displayed when validation fails. The message is required if the Expression contains
        * line breaks. The message must not contain line breaks.
        * If unset, the message is "failed rule: {Rule}".
        * e.g. "must be a URL with the host matching spec.host"
@@ -44519,7 +57820,7 @@ public java.lang.String getMessage() {
       }
       /**
        * 
-       * Message represents the message displayed when validation fails. The message is required if the Expression contains
+       * message represents the message displayed when validation fails. The message is required if the Expression contains
        * line breaks. The message must not contain line breaks.
        * If unset, the message is "failed rule: {Rule}".
        * e.g. "must be a URL with the host matching spec.host"
@@ -44543,7 +57844,7 @@ public Builder setMessage(
       }
       /**
        * 
-       * Message represents the message displayed when validation fails. The message is required if the Expression contains
+       * message represents the message displayed when validation fails. The message is required if the Expression contains
        * line breaks. The message must not contain line breaks.
        * If unset, the message is "failed rule: {Rule}".
        * e.g. "must be a URL with the host matching spec.host"
@@ -44563,7 +57864,7 @@ public Builder clearMessage() {
       }
       /**
        * 
-       * Message represents the message displayed when validation fails. The message is required if the Expression contains
+       * message represents the message displayed when validation fails. The message is required if the Expression contains
        * line breaks. The message must not contain line breaks.
        * If unset, the message is "failed rule: {Rule}".
        * e.g. "must be a URL with the host matching spec.host"
@@ -44589,7 +57890,7 @@ public Builder setMessageBytes(
       private java.lang.Object reason_ = "";
       /**
        * 
-       * Reason represents a machine-readable description of why this validation failed.
+       * reason represents a machine-readable description of why this validation failed.
        * If this is the first validation in the list to fail, this reason, as well as the
        * corresponding HTTP response code, are used in the
        * HTTP response to the client.
@@ -44605,7 +57906,7 @@ public boolean hasReason() {
       }
       /**
        * 
-       * Reason represents a machine-readable description of why this validation failed.
+       * reason represents a machine-readable description of why this validation failed.
        * If this is the first validation in the list to fail, this reason, as well as the
        * corresponding HTTP response code, are used in the
        * HTTP response to the client.
@@ -44632,7 +57933,7 @@ public java.lang.String getReason() {
       }
       /**
        * 
-       * Reason represents a machine-readable description of why this validation failed.
+       * reason represents a machine-readable description of why this validation failed.
        * If this is the first validation in the list to fail, this reason, as well as the
        * corresponding HTTP response code, are used in the
        * HTTP response to the client.
@@ -44658,7 +57959,7 @@ public java.lang.String getReason() {
       }
       /**
        * 
-       * Reason represents a machine-readable description of why this validation failed.
+       * reason represents a machine-readable description of why this validation failed.
        * If this is the first validation in the list to fail, this reason, as well as the
        * corresponding HTTP response code, are used in the
        * HTTP response to the client.
@@ -44681,7 +57982,7 @@ public Builder setReason(
       }
       /**
        * 
-       * Reason represents a machine-readable description of why this validation failed.
+       * reason represents a machine-readable description of why this validation failed.
        * If this is the first validation in the list to fail, this reason, as well as the
        * corresponding HTTP response code, are used in the
        * HTTP response to the client.
@@ -44700,7 +58001,7 @@ public Builder clearReason() {
       }
       /**
        * 
-       * Reason represents a machine-readable description of why this validation failed.
+       * reason represents a machine-readable description of why this validation failed.
        * If this is the first validation in the list to fail, this reason, as well as the
        * corresponding HTTP response code, are used in the
        * HTTP response to the client.
@@ -44940,7 +58241,7 @@ public interface VariableOrBuilder extends
 
     /**
      * 
-     * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
+     * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
      * The variable can be accessed in other expressions through `variables`
      * For example, if name is "foo", the variable will be available as `variables.foo`
      * 
@@ -44950,7 +58251,7 @@ public interface VariableOrBuilder extends boolean hasName(); /** *
-     * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
+     * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
      * The variable can be accessed in other expressions through `variables`
      * For example, if name is "foo", the variable will be available as `variables.foo`
      * 
@@ -44960,7 +58261,7 @@ public interface VariableOrBuilder extends java.lang.String getName(); /** *
-     * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
+     * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
      * The variable can be accessed in other expressions through `variables`
      * For example, if name is "foo", the variable will be available as `variables.foo`
      * 
@@ -44972,7 +58273,7 @@ public interface VariableOrBuilder extends /** *
-     * Expression is the expression that will be evaluated as the value of the variable.
+     * expression is the expression that will be evaluated as the value of the variable.
      * The CEL expression has access to the same identifiers as the CEL expressions in Validation.
      * 
* @@ -44981,7 +58282,7 @@ public interface VariableOrBuilder extends boolean hasExpression(); /** *
-     * Expression is the expression that will be evaluated as the value of the variable.
+     * expression is the expression that will be evaluated as the value of the variable.
      * The CEL expression has access to the same identifiers as the CEL expressions in Validation.
      * 
* @@ -44990,7 +58291,7 @@ public interface VariableOrBuilder extends java.lang.String getExpression(); /** *
-     * Expression is the expression that will be evaluated as the value of the variable.
+     * expression is the expression that will be evaluated as the value of the variable.
      * The CEL expression has access to the same identifiers as the CEL expressions in Validation.
      * 
* @@ -45094,7 +58395,7 @@ private Variable( private volatile java.lang.Object name_; /** *
-     * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
+     * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
      * The variable can be accessed in other expressions through `variables`
      * For example, if name is "foo", the variable will be available as `variables.foo`
      * 
@@ -45106,7 +58407,7 @@ public boolean hasName() { } /** *
-     * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
+     * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
      * The variable can be accessed in other expressions through `variables`
      * For example, if name is "foo", the variable will be available as `variables.foo`
      * 
@@ -45129,7 +58430,7 @@ public java.lang.String getName() { } /** *
-     * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
+     * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
      * The variable can be accessed in other expressions through `variables`
      * For example, if name is "foo", the variable will be available as `variables.foo`
      * 
@@ -45154,7 +58455,7 @@ public java.lang.String getName() { private volatile java.lang.Object expression_; /** *
-     * Expression is the expression that will be evaluated as the value of the variable.
+     * expression is the expression that will be evaluated as the value of the variable.
      * The CEL expression has access to the same identifiers as the CEL expressions in Validation.
      * 
* @@ -45165,7 +58466,7 @@ public boolean hasExpression() { } /** *
-     * Expression is the expression that will be evaluated as the value of the variable.
+     * expression is the expression that will be evaluated as the value of the variable.
      * The CEL expression has access to the same identifiers as the CEL expressions in Validation.
      * 
* @@ -45187,7 +58488,7 @@ public java.lang.String getExpression() { } /** *
-     * Expression is the expression that will be evaluated as the value of the variable.
+     * expression is the expression that will be evaluated as the value of the variable.
      * The CEL expression has access to the same identifiers as the CEL expressions in Validation.
      * 
* @@ -45557,7 +58858,7 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** *
-       * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
+       * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
        * The variable can be accessed in other expressions through `variables`
        * For example, if name is "foo", the variable will be available as `variables.foo`
        * 
@@ -45569,7 +58870,7 @@ public boolean hasName() { } /** *
-       * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
+       * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
        * The variable can be accessed in other expressions through `variables`
        * For example, if name is "foo", the variable will be available as `variables.foo`
        * 
@@ -45592,7 +58893,7 @@ public java.lang.String getName() { } /** *
-       * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
+       * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
        * The variable can be accessed in other expressions through `variables`
        * For example, if name is "foo", the variable will be available as `variables.foo`
        * 
@@ -45614,7 +58915,7 @@ public java.lang.String getName() { } /** *
-       * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
+       * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
        * The variable can be accessed in other expressions through `variables`
        * For example, if name is "foo", the variable will be available as `variables.foo`
        * 
@@ -45633,7 +58934,7 @@ public Builder setName( } /** *
-       * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
+       * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
        * The variable can be accessed in other expressions through `variables`
        * For example, if name is "foo", the variable will be available as `variables.foo`
        * 
@@ -45648,7 +58949,7 @@ public Builder clearName() { } /** *
-       * Name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
+       * name is the name of the variable. The name must be a valid CEL identifier and unique among all variables.
        * The variable can be accessed in other expressions through `variables`
        * For example, if name is "foo", the variable will be available as `variables.foo`
        * 
@@ -45669,7 +58970,7 @@ public Builder setNameBytes( private java.lang.Object expression_ = ""; /** *
-       * Expression is the expression that will be evaluated as the value of the variable.
+       * expression is the expression that will be evaluated as the value of the variable.
        * The CEL expression has access to the same identifiers as the CEL expressions in Validation.
        * 
* @@ -45680,7 +58981,7 @@ public boolean hasExpression() { } /** *
-       * Expression is the expression that will be evaluated as the value of the variable.
+       * expression is the expression that will be evaluated as the value of the variable.
        * The CEL expression has access to the same identifiers as the CEL expressions in Validation.
        * 
* @@ -45702,7 +59003,7 @@ public java.lang.String getExpression() { } /** *
-       * Expression is the expression that will be evaluated as the value of the variable.
+       * expression is the expression that will be evaluated as the value of the variable.
        * The CEL expression has access to the same identifiers as the CEL expressions in Validation.
        * 
* @@ -45723,7 +59024,7 @@ public java.lang.String getExpression() { } /** *
-       * Expression is the expression that will be evaluated as the value of the variable.
+       * expression is the expression that will be evaluated as the value of the variable.
        * The CEL expression has access to the same identifiers as the CEL expressions in Validation.
        * 
* @@ -45741,7 +59042,7 @@ public Builder setExpression( } /** *
-       * Expression is the expression that will be evaluated as the value of the variable.
+       * expression is the expression that will be evaluated as the value of the variable.
        * The CEL expression has access to the same identifiers as the CEL expressions in Validation.
        * 
* @@ -45755,7 +59056,7 @@ public Builder clearExpression() { } /** *
-       * Expression is the expression that will be evaluated as the value of the variable.
+       * expression is the expression that will be evaluated as the value of the variable.
        * The CEL expression has access to the same identifiers as the CEL expressions in Validation.
        * 
* @@ -45830,7 +59131,7 @@ public interface WebhookClientConfigOrBuilder extends /** *
-     * `url` gives the location of the webhook, in standard URL form
+     * url gives the location of the webhook, in standard URL form
      * (`scheme://host:port/path`). Exactly one of `url` or `service`
      * must be specified.
      * The `host` should not refer to a service running in the cluster; use
@@ -45858,7 +59159,7 @@ public interface WebhookClientConfigOrBuilder extends
     boolean hasUrl();
     /**
      * 
-     * `url` gives the location of the webhook, in standard URL form
+     * url gives the location of the webhook, in standard URL form
      * (`scheme://host:port/path`). Exactly one of `url` or `service`
      * must be specified.
      * The `host` should not refer to a service running in the cluster; use
@@ -45886,7 +59187,7 @@ public interface WebhookClientConfigOrBuilder extends
     java.lang.String getUrl();
     /**
      * 
-     * `url` gives the location of the webhook, in standard URL form
+     * url gives the location of the webhook, in standard URL form
      * (`scheme://host:port/path`). Exactly one of `url` or `service`
      * must be specified.
      * The `host` should not refer to a service running in the cluster; use
@@ -45916,7 +59217,7 @@ public interface WebhookClientConfigOrBuilder extends
 
     /**
      * 
-     * `service` is a reference to the service for this webhook. Either
+     * service is a reference to the service for this webhook. Either
      * `service` or `url` must be specified.
      * If the webhook is running within the cluster, then you should use `service`.
      * +optional
@@ -45927,7 +59228,7 @@ public interface WebhookClientConfigOrBuilder extends
     boolean hasService();
     /**
      * 
-     * `service` is a reference to the service for this webhook. Either
+     * service is a reference to the service for this webhook. Either
      * `service` or `url` must be specified.
      * If the webhook is running within the cluster, then you should use `service`.
      * +optional
@@ -45938,7 +59239,7 @@ public interface WebhookClientConfigOrBuilder extends
     io.kubernetes.client.proto.V1Admissionregistration.ServiceReference getService();
     /**
      * 
-     * `service` is a reference to the service for this webhook. Either
+     * service is a reference to the service for this webhook. Either
      * `service` or `url` must be specified.
      * If the webhook is running within the cluster, then you should use `service`.
      * +optional
@@ -45950,7 +59251,7 @@ public interface WebhookClientConfigOrBuilder extends
 
     /**
      * 
-     * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
+     * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
      * If unspecified, system trust roots on the apiserver are used.
      * +optional
      * 
@@ -45960,7 +59261,7 @@ public interface WebhookClientConfigOrBuilder extends boolean hasCaBundle(); /** *
-     * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
+     * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
      * If unspecified, system trust roots on the apiserver are used.
      * +optional
      * 
@@ -46076,7 +59377,7 @@ private WebhookClientConfig( private volatile java.lang.Object url_; /** *
-     * `url` gives the location of the webhook, in standard URL form
+     * url gives the location of the webhook, in standard URL form
      * (`scheme://host:port/path`). Exactly one of `url` or `service`
      * must be specified.
      * The `host` should not refer to a service running in the cluster; use
@@ -46106,7 +59407,7 @@ public boolean hasUrl() {
     }
     /**
      * 
-     * `url` gives the location of the webhook, in standard URL form
+     * url gives the location of the webhook, in standard URL form
      * (`scheme://host:port/path`). Exactly one of `url` or `service`
      * must be specified.
      * The `host` should not refer to a service running in the cluster; use
@@ -46147,7 +59448,7 @@ public java.lang.String getUrl() {
     }
     /**
      * 
-     * `url` gives the location of the webhook, in standard URL form
+     * url gives the location of the webhook, in standard URL form
      * (`scheme://host:port/path`). Exactly one of `url` or `service`
      * must be specified.
      * The `host` should not refer to a service running in the cluster; use
@@ -46190,7 +59491,7 @@ public java.lang.String getUrl() {
     private io.kubernetes.client.proto.V1Admissionregistration.ServiceReference service_;
     /**
      * 
-     * `service` is a reference to the service for this webhook. Either
+     * service is a reference to the service for this webhook. Either
      * `service` or `url` must be specified.
      * If the webhook is running within the cluster, then you should use `service`.
      * +optional
@@ -46203,7 +59504,7 @@ public boolean hasService() {
     }
     /**
      * 
-     * `service` is a reference to the service for this webhook. Either
+     * service is a reference to the service for this webhook. Either
      * `service` or `url` must be specified.
      * If the webhook is running within the cluster, then you should use `service`.
      * +optional
@@ -46216,7 +59517,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ServiceReference getSe
     }
     /**
      * 
-     * `service` is a reference to the service for this webhook. Either
+     * service is a reference to the service for this webhook. Either
      * `service` or `url` must be specified.
      * If the webhook is running within the cluster, then you should use `service`.
      * +optional
@@ -46232,7 +59533,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ServiceReferenceOrBuil
     private com.google.protobuf.ByteString caBundle_;
     /**
      * 
-     * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
+     * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
      * If unspecified, system trust roots on the apiserver are used.
      * +optional
      * 
@@ -46244,7 +59545,7 @@ public boolean hasCaBundle() { } /** *
-     * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
+     * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
      * If unspecified, system trust roots on the apiserver are used.
      * +optional
      * 
@@ -46638,7 +59939,7 @@ public Builder mergeFrom( private java.lang.Object url_ = ""; /** *
-       * `url` gives the location of the webhook, in standard URL form
+       * url gives the location of the webhook, in standard URL form
        * (`scheme://host:port/path`). Exactly one of `url` or `service`
        * must be specified.
        * The `host` should not refer to a service running in the cluster; use
@@ -46668,7 +59969,7 @@ public boolean hasUrl() {
       }
       /**
        * 
-       * `url` gives the location of the webhook, in standard URL form
+       * url gives the location of the webhook, in standard URL form
        * (`scheme://host:port/path`). Exactly one of `url` or `service`
        * must be specified.
        * The `host` should not refer to a service running in the cluster; use
@@ -46709,7 +60010,7 @@ public java.lang.String getUrl() {
       }
       /**
        * 
-       * `url` gives the location of the webhook, in standard URL form
+       * url gives the location of the webhook, in standard URL form
        * (`scheme://host:port/path`). Exactly one of `url` or `service`
        * must be specified.
        * The `host` should not refer to a service running in the cluster; use
@@ -46749,7 +60050,7 @@ public java.lang.String getUrl() {
       }
       /**
        * 
-       * `url` gives the location of the webhook, in standard URL form
+       * url gives the location of the webhook, in standard URL form
        * (`scheme://host:port/path`). Exactly one of `url` or `service`
        * must be specified.
        * The `host` should not refer to a service running in the cluster; use
@@ -46786,7 +60087,7 @@ public Builder setUrl(
       }
       /**
        * 
-       * `url` gives the location of the webhook, in standard URL form
+       * url gives the location of the webhook, in standard URL form
        * (`scheme://host:port/path`). Exactly one of `url` or `service`
        * must be specified.
        * The `host` should not refer to a service running in the cluster; use
@@ -46819,7 +60120,7 @@ public Builder clearUrl() {
       }
       /**
        * 
-       * `url` gives the location of the webhook, in standard URL form
+       * url gives the location of the webhook, in standard URL form
        * (`scheme://host:port/path`). Exactly one of `url` or `service`
        * must be specified.
        * The `host` should not refer to a service running in the cluster; use
@@ -46860,7 +60161,7 @@ public Builder setUrlBytes(
           io.kubernetes.client.proto.V1Admissionregistration.ServiceReference, io.kubernetes.client.proto.V1Admissionregistration.ServiceReference.Builder, io.kubernetes.client.proto.V1Admissionregistration.ServiceReferenceOrBuilder> serviceBuilder_;
       /**
        * 
-       * `service` is a reference to the service for this webhook. Either
+       * service is a reference to the service for this webhook. Either
        * `service` or `url` must be specified.
        * If the webhook is running within the cluster, then you should use `service`.
        * +optional
@@ -46873,7 +60174,7 @@ public boolean hasService() {
       }
       /**
        * 
-       * `service` is a reference to the service for this webhook. Either
+       * service is a reference to the service for this webhook. Either
        * `service` or `url` must be specified.
        * If the webhook is running within the cluster, then you should use `service`.
        * +optional
@@ -46890,7 +60191,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ServiceReference getSe
       }
       /**
        * 
-       * `service` is a reference to the service for this webhook. Either
+       * service is a reference to the service for this webhook. Either
        * `service` or `url` must be specified.
        * If the webhook is running within the cluster, then you should use `service`.
        * +optional
@@ -46913,7 +60214,7 @@ public Builder setService(io.kubernetes.client.proto.V1Admissionregistration.Ser
       }
       /**
        * 
-       * `service` is a reference to the service for this webhook. Either
+       * service is a reference to the service for this webhook. Either
        * `service` or `url` must be specified.
        * If the webhook is running within the cluster, then you should use `service`.
        * +optional
@@ -46934,7 +60235,7 @@ public Builder setService(
       }
       /**
        * 
-       * `service` is a reference to the service for this webhook. Either
+       * service is a reference to the service for this webhook. Either
        * `service` or `url` must be specified.
        * If the webhook is running within the cluster, then you should use `service`.
        * +optional
@@ -46961,7 +60262,7 @@ public Builder mergeService(io.kubernetes.client.proto.V1Admissionregistration.S
       }
       /**
        * 
-       * `service` is a reference to the service for this webhook. Either
+       * service is a reference to the service for this webhook. Either
        * `service` or `url` must be specified.
        * If the webhook is running within the cluster, then you should use `service`.
        * +optional
@@ -46981,7 +60282,7 @@ public Builder clearService() {
       }
       /**
        * 
-       * `service` is a reference to the service for this webhook. Either
+       * service is a reference to the service for this webhook. Either
        * `service` or `url` must be specified.
        * If the webhook is running within the cluster, then you should use `service`.
        * +optional
@@ -46996,7 +60297,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ServiceReference.Build
       }
       /**
        * 
-       * `service` is a reference to the service for this webhook. Either
+       * service is a reference to the service for this webhook. Either
        * `service` or `url` must be specified.
        * If the webhook is running within the cluster, then you should use `service`.
        * +optional
@@ -47014,7 +60315,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ServiceReferenceOrBuil
       }
       /**
        * 
-       * `service` is a reference to the service for this webhook. Either
+       * service is a reference to the service for this webhook. Either
        * `service` or `url` must be specified.
        * If the webhook is running within the cluster, then you should use `service`.
        * +optional
@@ -47039,7 +60340,7 @@ public io.kubernetes.client.proto.V1Admissionregistration.ServiceReferenceOrBuil
       private com.google.protobuf.ByteString caBundle_ = com.google.protobuf.ByteString.EMPTY;
       /**
        * 
-       * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
+       * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
        * If unspecified, system trust roots on the apiserver are used.
        * +optional
        * 
@@ -47051,7 +60352,7 @@ public boolean hasCaBundle() { } /** *
-       * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
+       * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
        * If unspecified, system trust roots on the apiserver are used.
        * +optional
        * 
@@ -47063,7 +60364,7 @@ public com.google.protobuf.ByteString getCaBundle() { } /** *
-       * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
+       * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
        * If unspecified, system trust roots on the apiserver are used.
        * +optional
        * 
@@ -47081,7 +60382,7 @@ public Builder setCaBundle(com.google.protobuf.ByteString value) { } /** *
-       * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
+       * caBundle is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
        * If unspecified, system trust roots on the apiserver are used.
        * +optional
        * 
@@ -47147,6 +60448,11 @@ public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig ge } + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_admissionregistration_v1_ApplyConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_admissionregistration_v1_ApplyConfiguration_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_admissionregistration_v1_AuditAnnotation_descriptor; private static final @@ -47157,6 +60463,11 @@ public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig ge private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_admissionregistration_v1_ExpressionWarning_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_admissionregistration_v1_JSONPatch_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_admissionregistration_v1_JSONPatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_admissionregistration_v1_MatchCondition_descriptor; private static final @@ -47167,6 +60478,36 @@ public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig ge private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_admissionregistration_v1_MatchResources_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicy_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBinding_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBinding_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicySpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicySpec_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhook_descriptor; private static final @@ -47182,6 +60523,11 @@ public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig ge private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfigurationList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_admissionregistration_v1_Mutation_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_admissionregistration_v1_Mutation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_k8s_io_api_admissionregistration_v1_NamedRuleWithOperations_descriptor; private static final @@ -47297,137 +60643,177 @@ public io.kubernetes.client.proto.V1Admissionregistration.WebhookClientConfig ge "/meta/v1/generated.proto\032/k8s.io/apimach" + "inery/pkg/runtime/generated.proto\0326k8s.i" + "o/apimachinery/pkg/runtime/schema/genera" + - "ted.proto\"7\n\017AuditAnnotation\022\013\n\003key\030\001 \001(" + - "\t\022\027\n\017valueExpression\030\002 \001(\t\"6\n\021Expression" + - "Warning\022\020\n\010fieldRef\030\002 \001(\t\022\017\n\007warning\030\003 \001" + - "(\t\"2\n\016MatchCondition\022\014\n\004name\030\001 \001(\t\022\022\n\nex" + - "pression\030\002 \001(\t\"\363\002\n\016MatchResources\022N\n\021nam" + - "espaceSelector\030\001 \001(\01323.k8s.io.apimachine" + - "ry.pkg.apis.meta.v1.LabelSelector\022K\n\016obj" + - "ectSelector\030\002 \001(\01323.k8s.io.apimachinery." + - "pkg.apis.meta.v1.LabelSelector\022S\n\rresour" + - "ceRules\030\003 \003(\0132<.k8s.io.api.admissionregi" + - "stration.v1.NamedRuleWithOperations\022Z\n\024e" + - "xcludeResourceRules\030\004 \003(\0132<.k8s.io.api.a" + - "dmissionregistration.v1.NamedRuleWithOpe" + - "rations\022\023\n\013matchPolicy\030\007 \001(\t\"\270\004\n\017Mutatin" + - "gWebhook\022\014\n\004name\030\001 \001(\t\022N\n\014clientConfig\030\002" + - " \001(\01328.k8s.io.api.admissionregistration." + - "v1.WebhookClientConfig\022F\n\005rules\030\003 \003(\01327." + - "k8s.io.api.admissionregistration.v1.Rule" + - "WithOperations\022\025\n\rfailurePolicy\030\004 \001(\t\022\023\n" + - "\013matchPolicy\030\t \001(\t\022N\n\021namespaceSelector\030" + - "\005 \001(\01323.k8s.io.apimachinery.pkg.apis.met" + - "a.v1.LabelSelector\022K\n\016objectSelector\030\013 \001" + - "(\01323.k8s.io.apimachinery.pkg.apis.meta.v" + - "1.LabelSelector\022\023\n\013sideEffects\030\006 \001(\t\022\026\n\016" + - "timeoutSeconds\030\007 \001(\005\022\037\n\027admissionReviewV" + - "ersions\030\010 \003(\t\022\032\n\022reinvocationPolicy\030\n \001(" + - "\t\022L\n\017matchConditions\030\014 \003(\01323.k8s.io.api." + - "admissionregistration.v1.MatchCondition\"" + - "\252\001\n\034MutatingWebhookConfiguration\022B\n\010meta" + - "data\030\001 \001(\01320.k8s.io.apimachinery.pkg.api" + - "s.meta.v1.ObjectMeta\022F\n\010Webhooks\030\002 \003(\01324" + - ".k8s.io.api.admissionregistration.v1.Mut" + - "atingWebhook\"\266\001\n MutatingWebhookConfigur" + - "ationList\022@\n\010metadata\030\001 \001(\0132..k8s.io.api" + - "machinery.pkg.apis.meta.v1.ListMeta\022P\n\005i" + - "tems\030\002 \003(\0132A.k8s.io.api.admissionregistr" + - "ation.v1.MutatingWebhookConfiguration\"\205\001" + - "\n\027NamedRuleWithOperations\022\025\n\rresourceNam" + - "es\030\001 \003(\t\022S\n\022ruleWithOperations\030\002 \001(\01327.k" + - "8s.io.api.admissionregistration.v1.RuleW" + - "ithOperations\"-\n\tParamKind\022\022\n\napiVersion" + - "\030\001 \001(\t\022\014\n\004kind\030\002 \001(\t\"\223\001\n\010ParamRef\022\014\n\004nam" + - "e\030\001 \001(\t\022\021\n\tnamespace\030\002 \001(\t\022E\n\010selector\030\003" + - " \001(\01323.k8s.io.apimachinery.pkg.apis.meta" + - ".v1.LabelSelector\022\037\n\027parameterNotFoundAc" + - "tion\030\004 \001(\t\"P\n\004Rule\022\021\n\tapiGroups\030\001 \003(\t\022\023\n" + - "\013apiVersions\030\002 \003(\t\022\021\n\tresources\030\003 \003(\t\022\r\n" + - "\005scope\030\004 \001(\t\"a\n\022RuleWithOperations\022\022\n\nop" + - "erations\030\001 \003(\t\0227\n\004rule\030\002 \001(\0132).k8s.io.ap" + - "i.admissionregistration.v1.Rule\"O\n\020Servi" + - "ceReference\022\021\n\tnamespace\030\001 \001(\t\022\014\n\004name\030\002" + - " \001(\t\022\014\n\004path\030\003 \001(\t\022\014\n\004port\030\004 \001(\005\"b\n\014Type" + - "Checking\022R\n\022expressionWarnings\030\001 \003(\01326.k" + - "8s.io.api.admissionregistration.v1.Expre" + - "ssionWarning\"\207\002\n\031ValidatingAdmissionPoli" + - "cy\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachine" + - "ry.pkg.apis.meta.v1.ObjectMeta\022P\n\004spec\030\002" + - " \001(\0132B.k8s.io.api.admissionregistration." + - "v1.ValidatingAdmissionPolicySpec\022T\n\006stat" + - "us\030\003 \001(\0132D.k8s.io.api.admissionregistrat" + - "ion.v1.ValidatingAdmissionPolicyStatus\"\277" + - "\001\n ValidatingAdmissionPolicyBinding\022B\n\010m" + - "etadata\030\001 \001(\01320.k8s.io.apimachinery.pkg." + - "apis.meta.v1.ObjectMeta\022W\n\004spec\030\002 \001(\0132I." + + "ted.proto\"(\n\022ApplyConfiguration\022\022\n\nexpre" + + "ssion\030\001 \001(\t\"7\n\017AuditAnnotation\022\013\n\003key\030\001 " + + "\001(\t\022\027\n\017valueExpression\030\002 \001(\t\"6\n\021Expressi" + + "onWarning\022\020\n\010fieldRef\030\002 \001(\t\022\017\n\007warning\030\003" + + " \001(\t\"\037\n\tJSONPatch\022\022\n\nexpression\030\001 \001(\t\"2\n" + + "\016MatchCondition\022\014\n\004name\030\001 \001(\t\022\022\n\nexpress" + + "ion\030\002 \001(\t\"\363\002\n\016MatchResources\022N\n\021namespac" + + "eSelector\030\001 \001(\01323.k8s.io.apimachinery.pk" + + "g.apis.meta.v1.LabelSelector\022K\n\016objectSe" + + "lector\030\002 \001(\01323.k8s.io.apimachinery.pkg.a" + + "pis.meta.v1.LabelSelector\022S\n\rresourceRul" + + "es\030\003 \003(\0132<.k8s.io.api.admissionregistrat" + + "ion.v1.NamedRuleWithOperations\022Z\n\024exclud" + + "eResourceRules\030\004 \003(\0132<.k8s.io.api.admiss" + + "ionregistration.v1.NamedRuleWithOperatio" + + "ns\022\023\n\013matchPolicy\030\007 \001(\t\"\255\001\n\027MutatingAdmi" + + "ssionPolicy\022B\n\010metadata\030\001 \001(\01320.k8s.io.a" + + "pimachinery.pkg.apis.meta.v1.ObjectMeta\022" + + "N\n\004spec\030\002 \001(\0132@.k8s.io.api.admissionregi" + + "stration.v1.MutatingAdmissionPolicySpec\"" + + "\273\001\n\036MutatingAdmissionPolicyBinding\022B\n\010me" + + "tadata\030\001 \001(\01320.k8s.io.apimachinery.pkg.a" + + "pis.meta.v1.ObjectMeta\022U\n\004spec\030\002 \001(\0132G.k" + + "8s.io.api.admissionregistration.v1.Mutat" + + "ingAdmissionPolicyBindingSpec\"\272\001\n\"Mutati" + + "ngAdmissionPolicyBindingList\022@\n\010metadata" + + "\030\001 \001(\0132..k8s.io.apimachinery.pkg.apis.me" + + "ta.v1.ListMeta\022R\n\005items\030\002 \003(\0132C.k8s.io.a" + + "pi.admissionregistration.v1.MutatingAdmi" + + "ssionPolicyBinding\"\306\001\n\"MutatingAdmission" + + "PolicyBindingSpec\022\022\n\npolicyName\030\001 \001(\t\022?\n" + + "\010paramRef\030\002 \001(\0132-.k8s.io.api.admissionre" + + "gistration.v1.ParamRef\022K\n\016matchResources" + + "\030\003 \001(\01323.k8s.io.api.admissionregistratio" + + "n.v1.MatchResources\"\254\001\n\033MutatingAdmissio" + + "nPolicyList\022@\n\010metadata\030\001 \001(\0132..k8s.io.a" + + "pimachinery.pkg.apis.meta.v1.ListMeta\022K\n" + + "\005items\030\002 \003(\0132<.k8s.io.api.admissionregis" + + "tration.v1.MutatingAdmissionPolicy\"\264\003\n\033M" + + "utatingAdmissionPolicySpec\022A\n\tparamKind\030" + + "\001 \001(\0132..k8s.io.api.admissionregistration" + + ".v1.ParamKind\022M\n\020matchConstraints\030\002 \001(\0132" + + "3.k8s.io.api.admissionregistration.v1.Ma" + + "tchResources\022@\n\tvariables\030\003 \003(\0132-.k8s.io" + + ".api.admissionregistration.v1.Variable\022@" + + "\n\tmutations\030\004 \003(\0132-.k8s.io.api.admission" + + "registration.v1.Mutation\022\025\n\rfailurePolic" + + "y\030\005 \001(\t\022L\n\017matchConditions\030\006 \003(\01323.k8s.i" + + "o.api.admissionregistration.v1.MatchCond" + + "ition\022\032\n\022reinvocationPolicy\030\007 \001(\t\"\270\004\n\017Mu" + + "tatingWebhook\022\014\n\004name\030\001 \001(\t\022N\n\014clientCon" + + "fig\030\002 \001(\01328.k8s.io.api.admissionregistra" + + "tion.v1.WebhookClientConfig\022F\n\005rules\030\003 \003" + + "(\01327.k8s.io.api.admissionregistration.v1" + + ".RuleWithOperations\022\025\n\rfailurePolicy\030\004 \001" + + "(\t\022\023\n\013matchPolicy\030\t \001(\t\022N\n\021namespaceSele" + + "ctor\030\005 \001(\01323.k8s.io.apimachinery.pkg.api" + + "s.meta.v1.LabelSelector\022K\n\016objectSelecto" + + "r\030\013 \001(\01323.k8s.io.apimachinery.pkg.apis.m" + + "eta.v1.LabelSelector\022\023\n\013sideEffects\030\006 \001(" + + "\t\022\026\n\016timeoutSeconds\030\007 \001(\005\022\037\n\027admissionRe" + + "viewVersions\030\010 \003(\t\022\032\n\022reinvocationPolicy" + + "\030\n \001(\t\022L\n\017matchConditions\030\014 \003(\01323.k8s.io" + + ".api.admissionregistration.v1.MatchCondi" + + "tion\"\252\001\n\034MutatingWebhookConfiguration\022B\n" + + "\010metadata\030\001 \001(\01320.k8s.io.apimachinery.pk" + + "g.apis.meta.v1.ObjectMeta\022F\n\010Webhooks\030\002 " + + "\003(\01324.k8s.io.api.admissionregistration.v" + + "1.MutatingWebhook\"\266\001\n MutatingWebhookCon" + + "figurationList\022@\n\010metadata\030\001 \001(\0132..k8s.i" + + "o.apimachinery.pkg.apis.meta.v1.ListMeta" + + "\022P\n\005items\030\002 \003(\0132A.k8s.io.api.admissionre" + + "gistration.v1.MutatingWebhookConfigurati" + + "on\"\265\001\n\010Mutation\022\021\n\tpatchType\030\002 \001(\t\022S\n\022ap" + + "plyConfiguration\030\003 \001(\01327.k8s.io.api.admi" + + "ssionregistration.v1.ApplyConfiguration\022" + + "A\n\tjsonPatch\030\004 \001(\0132..k8s.io.api.admissio" + + "nregistration.v1.JSONPatch\"\205\001\n\027NamedRule" + + "WithOperations\022\025\n\rresourceNames\030\001 \003(\t\022S\n" + + "\022ruleWithOperations\030\002 \001(\01327.k8s.io.api.a" + + "dmissionregistration.v1.RuleWithOperatio" + + "ns\"-\n\tParamKind\022\022\n\napiVersion\030\001 \001(\t\022\014\n\004k" + + "ind\030\002 \001(\t\"\223\001\n\010ParamRef\022\014\n\004name\030\001 \001(\t\022\021\n\t" + + "namespace\030\002 \001(\t\022E\n\010selector\030\003 \001(\01323.k8s." + + "io.apimachinery.pkg.apis.meta.v1.LabelSe" + + "lector\022\037\n\027parameterNotFoundAction\030\004 \001(\t\"" + + "P\n\004Rule\022\021\n\tapiGroups\030\001 \003(\t\022\023\n\013apiVersion" + + "s\030\002 \003(\t\022\021\n\tresources\030\003 \003(\t\022\r\n\005scope\030\004 \001(" + + "\t\"a\n\022RuleWithOperations\022\022\n\noperations\030\001 " + + "\003(\t\0227\n\004rule\030\002 \001(\0132).k8s.io.api.admission" + + "registration.v1.Rule\"O\n\020ServiceReference" + + "\022\021\n\tnamespace\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\014\n\004pat" + + "h\030\003 \001(\t\022\014\n\004port\030\004 \001(\005\"b\n\014TypeChecking\022R\n" + + "\022expressionWarnings\030\001 \003(\01326.k8s.io.api.a" + + "dmissionregistration.v1.ExpressionWarnin" + + "g\"\207\002\n\031ValidatingAdmissionPolicy\022B\n\010metad" + + "ata\030\001 \001(\01320.k8s.io.apimachinery.pkg.apis" + + ".meta.v1.ObjectMeta\022P\n\004spec\030\002 \001(\0132B.k8s." + + "io.api.admissionregistration.v1.Validati" + + "ngAdmissionPolicySpec\022T\n\006status\030\003 \001(\0132D." + "k8s.io.api.admissionregistration.v1.Vali" + - "datingAdmissionPolicyBindingSpec\"\276\001\n$Val" + - "idatingAdmissionPolicyBindingList\022@\n\010met" + - "adata\030\001 \001(\0132..k8s.io.apimachinery.pkg.ap" + - "is.meta.v1.ListMeta\022T\n\005items\030\002 \003(\0132E.k8s" + - ".io.api.admissionregistration.v1.Validat" + - "ingAdmissionPolicyBinding\"\343\001\n$Validating" + - "AdmissionPolicyBindingSpec\022\022\n\npolicyName" + - "\030\001 \001(\t\022?\n\010paramRef\030\002 \001(\0132-.k8s.io.api.ad" + - "missionregistration.v1.ParamRef\022K\n\016match" + - "Resources\030\003 \001(\01323.k8s.io.api.admissionre" + - "gistration.v1.MatchResources\022\031\n\021validati" + - "onActions\030\004 \003(\t\"\260\001\n\035ValidatingAdmissionP" + - "olicyList\022@\n\010metadata\030\001 \001(\0132..k8s.io.api" + - "machinery.pkg.apis.meta.v1.ListMeta\022M\n\005i" + - "tems\030\002 \003(\0132>.k8s.io.api.admissionregistr" + - "ation.v1.ValidatingAdmissionPolicy\"\356\003\n\035V" + - "alidatingAdmissionPolicySpec\022A\n\tparamKin" + - "d\030\001 \001(\0132..k8s.io.api.admissionregistrati" + - "on.v1.ParamKind\022M\n\020matchConstraints\030\002 \001(" + + "datingAdmissionPolicyStatus\"\277\001\n Validati" + + "ngAdmissionPolicyBinding\022B\n\010metadata\030\001 \001" + + "(\01320.k8s.io.apimachinery.pkg.apis.meta.v" + + "1.ObjectMeta\022W\n\004spec\030\002 \001(\0132I.k8s.io.api." + + "admissionregistration.v1.ValidatingAdmis" + + "sionPolicyBindingSpec\"\276\001\n$ValidatingAdmi" + + "ssionPolicyBindingList\022@\n\010metadata\030\001 \001(\013" + + "2..k8s.io.apimachinery.pkg.apis.meta.v1." + + "ListMeta\022T\n\005items\030\002 \003(\0132E.k8s.io.api.adm" + + "issionregistration.v1.ValidatingAdmissio" + + "nPolicyBinding\"\343\001\n$ValidatingAdmissionPo" + + "licyBindingSpec\022\022\n\npolicyName\030\001 \001(\t\022?\n\010p" + + "aramRef\030\002 \001(\0132-.k8s.io.api.admissionregi" + + "stration.v1.ParamRef\022K\n\016matchResources\030\003" + + " \001(\01323.k8s.io.api.admissionregistration." + + "v1.MatchResources\022\031\n\021validationActions\030\004" + + " \003(\t\"\260\001\n\035ValidatingAdmissionPolicyList\022@" + + "\n\010metadata\030\001 \001(\0132..k8s.io.apimachinery.p" + + "kg.apis.meta.v1.ListMeta\022M\n\005items\030\002 \003(\0132" + + ">.k8s.io.api.admissionregistration.v1.Va" + + "lidatingAdmissionPolicy\"\356\003\n\035ValidatingAd" + + "missionPolicySpec\022A\n\tparamKind\030\001 \001(\0132..k" + + "8s.io.api.admissionregistration.v1.Param" + + "Kind\022M\n\020matchConstraints\030\002 \001(\01323.k8s.io." + + "api.admissionregistration.v1.MatchResour" + + "ces\022D\n\013validations\030\003 \003(\0132/.k8s.io.api.ad" + + "missionregistration.v1.Validation\022\025\n\rfai" + + "lurePolicy\030\004 \001(\t\022N\n\020auditAnnotations\030\005 \003" + + "(\01324.k8s.io.api.admissionregistration.v1" + + ".AuditAnnotation\022L\n\017matchConditions\030\006 \003(" + "\01323.k8s.io.api.admissionregistration.v1." + - "MatchResources\022D\n\013validations\030\003 \003(\0132/.k8" + - "s.io.api.admissionregistration.v1.Valida" + - "tion\022\025\n\rfailurePolicy\030\004 \001(\t\022N\n\020auditAnno" + - "tations\030\005 \003(\01324.k8s.io.api.admissionregi" + - "stration.v1.AuditAnnotation\022L\n\017matchCond" + - "itions\030\006 \003(\01323.k8s.io.api.admissionregis" + - "tration.v1.MatchCondition\022@\n\tvariables\030\007" + - " \003(\0132-.k8s.io.api.admissionregistration." + - "v1.Variable\"\313\001\n\037ValidatingAdmissionPolic" + - "yStatus\022\032\n\022observedGeneration\030\001 \001(\003\022G\n\014t" + - "ypeChecking\030\002 \001(\01321.k8s.io.api.admission" + - "registration.v1.TypeChecking\022C\n\nconditio" + - "ns\030\003 \003(\0132/.k8s.io.apimachinery.pkg.apis." + - "meta.v1.Condition\"\236\004\n\021ValidatingWebhook\022" + - "\014\n\004name\030\001 \001(\t\022N\n\014clientConfig\030\002 \001(\01328.k8" + - "s.io.api.admissionregistration.v1.Webhoo" + - "kClientConfig\022F\n\005rules\030\003 \003(\01327.k8s.io.ap" + - "i.admissionregistration.v1.RuleWithOpera" + - "tions\022\025\n\rfailurePolicy\030\004 \001(\t\022\023\n\013matchPol" + - "icy\030\t \001(\t\022N\n\021namespaceSelector\030\005 \001(\01323.k" + - "8s.io.apimachinery.pkg.apis.meta.v1.Labe" + - "lSelector\022K\n\016objectSelector\030\n \001(\01323.k8s." + - "io.apimachinery.pkg.apis.meta.v1.LabelSe" + - "lector\022\023\n\013sideEffects\030\006 \001(\t\022\026\n\016timeoutSe" + - "conds\030\007 \001(\005\022\037\n\027admissionReviewVersions\030\010" + - " \003(\t\022L\n\017matchConditions\030\013 \003(\01323.k8s.io.a" + - "pi.admissionregistration.v1.MatchConditi" + - "on\"\256\001\n\036ValidatingWebhookConfiguration\022B\n" + - "\010metadata\030\001 \001(\01320.k8s.io.apimachinery.pk" + - "g.apis.meta.v1.ObjectMeta\022H\n\010Webhooks\030\002 " + - "\003(\01326.k8s.io.api.admissionregistration.v" + - "1.ValidatingWebhook\"\272\001\n\"ValidatingWebhoo" + - "kConfigurationList\022@\n\010metadata\030\001 \001(\0132..k" + - "8s.io.apimachinery.pkg.apis.meta.v1.List" + - "Meta\022R\n\005items\030\002 \003(\0132C.k8s.io.api.admissi" + - "onregistration.v1.ValidatingWebhookConfi" + - "guration\"\\\n\nValidation\022\022\n\nExpression\030\001 \001" + - "(\t\022\017\n\007message\030\002 \001(\t\022\016\n\006reason\030\003 \001(\t\022\031\n\021m" + - "essageExpression\030\004 \001(\t\",\n\010Variable\022\014\n\004Na" + - "me\030\001 \001(\t\022\022\n\nExpression\030\002 \001(\t\"|\n\023WebhookC" + - "lientConfig\022\013\n\003url\030\003 \001(\t\022F\n\007service\030\001 \001(" + - "\01325.k8s.io.api.admissionregistration.v1." + - "ServiceReference\022\020\n\010caBundle\030\002 \001(\014BZ\n\032io" + - ".kubernetes.client.protoB\027V1Admissionreg" + - "istrationZ#k8s.io/api/admissionregistrat" + - "ion/v1" + "MatchCondition\022@\n\tvariables\030\007 \003(\0132-.k8s." + + "io.api.admissionregistration.v1.Variable" + + "\"\313\001\n\037ValidatingAdmissionPolicyStatus\022\032\n\022" + + "observedGeneration\030\001 \001(\003\022G\n\014typeChecking" + + "\030\002 \001(\01321.k8s.io.api.admissionregistratio" + + "n.v1.TypeChecking\022C\n\nconditions\030\003 \003(\0132/." + + "k8s.io.apimachinery.pkg.apis.meta.v1.Con" + + "dition\"\236\004\n\021ValidatingWebhook\022\014\n\004name\030\001 \001" + + "(\t\022N\n\014clientConfig\030\002 \001(\01328.k8s.io.api.ad" + + "missionregistration.v1.WebhookClientConf" + + "ig\022F\n\005rules\030\003 \003(\01327.k8s.io.api.admission" + + "registration.v1.RuleWithOperations\022\025\n\rfa" + + "ilurePolicy\030\004 \001(\t\022\023\n\013matchPolicy\030\t \001(\t\022N" + + "\n\021namespaceSelector\030\005 \001(\01323.k8s.io.apima" + + "chinery.pkg.apis.meta.v1.LabelSelector\022K" + + "\n\016objectSelector\030\n \001(\01323.k8s.io.apimachi" + + "nery.pkg.apis.meta.v1.LabelSelector\022\023\n\013s" + + "ideEffects\030\006 \001(\t\022\026\n\016timeoutSeconds\030\007 \001(\005" + + "\022\037\n\027admissionReviewVersions\030\010 \003(\t\022L\n\017mat" + + "chConditions\030\013 \003(\01323.k8s.io.api.admissio" + + "nregistration.v1.MatchCondition\"\256\001\n\036Vali" + + "datingWebhookConfiguration\022B\n\010metadata\030\001" + + " \001(\01320.k8s.io.apimachinery.pkg.apis.meta" + + ".v1.ObjectMeta\022H\n\010Webhooks\030\002 \003(\01326.k8s.i" + + "o.api.admissionregistration.v1.Validatin" + + "gWebhook\"\272\001\n\"ValidatingWebhookConfigurat" + + "ionList\022@\n\010metadata\030\001 \001(\0132..k8s.io.apima" + + "chinery.pkg.apis.meta.v1.ListMeta\022R\n\005ite" + + "ms\030\002 \003(\0132C.k8s.io.api.admissionregistrat" + + "ion.v1.ValidatingWebhookConfiguration\"\\\n" + + "\nValidation\022\022\n\nExpression\030\001 \001(\t\022\017\n\007messa" + + "ge\030\002 \001(\t\022\016\n\006reason\030\003 \001(\t\022\031\n\021messageExpre" + + "ssion\030\004 \001(\t\",\n\010Variable\022\014\n\004Name\030\001 \001(\t\022\022\n" + + "\nExpression\030\002 \001(\t\"|\n\023WebhookClientConfig" + + "\022\013\n\003url\030\003 \001(\t\022F\n\007service\030\001 \001(\01325.k8s.io." + + "api.admissionregistration.v1.ServiceRefe" + + "rence\022\020\n\010caBundle\030\002 \001(\014BZ\n\032io.kubernetes" + + ".client.protoB\027V1AdmissionregistrationZ#" + + "k8s.io/api/admissionregistration/v1" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -47444,164 +60830,218 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( io.kubernetes.client.proto.Runtime.getDescriptor(), io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), }, assigner); - internal_static_k8s_io_api_admissionregistration_v1_AuditAnnotation_descriptor = + internal_static_k8s_io_api_admissionregistration_v1_ApplyConfiguration_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_k8s_io_api_admissionregistration_v1_ApplyConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_admissionregistration_v1_ApplyConfiguration_descriptor, + new java.lang.String[] { "Expression", }); + internal_static_k8s_io_api_admissionregistration_v1_AuditAnnotation_descriptor = + getDescriptor().getMessageTypes().get(1); internal_static_k8s_io_api_admissionregistration_v1_AuditAnnotation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_AuditAnnotation_descriptor, new java.lang.String[] { "Key", "ValueExpression", }); internal_static_k8s_io_api_admissionregistration_v1_ExpressionWarning_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(2); internal_static_k8s_io_api_admissionregistration_v1_ExpressionWarning_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_ExpressionWarning_descriptor, new java.lang.String[] { "FieldRef", "Warning", }); + internal_static_k8s_io_api_admissionregistration_v1_JSONPatch_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_k8s_io_api_admissionregistration_v1_JSONPatch_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_admissionregistration_v1_JSONPatch_descriptor, + new java.lang.String[] { "Expression", }); internal_static_k8s_io_api_admissionregistration_v1_MatchCondition_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(4); internal_static_k8s_io_api_admissionregistration_v1_MatchCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_MatchCondition_descriptor, new java.lang.String[] { "Name", "Expression", }); internal_static_k8s_io_api_admissionregistration_v1_MatchResources_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(5); internal_static_k8s_io_api_admissionregistration_v1_MatchResources_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_MatchResources_descriptor, new java.lang.String[] { "NamespaceSelector", "ObjectSelector", "ResourceRules", "ExcludeResourceRules", "MatchPolicy", }); + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicy_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicy_descriptor, + new java.lang.String[] { "Metadata", "Spec", }); + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBinding_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBinding_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBinding_descriptor, + new java.lang.String[] { "Metadata", "Spec", }); + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingList_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingSpec_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyBindingSpec_descriptor, + new java.lang.String[] { "PolicyName", "ParamRef", "MatchResources", }); + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyList_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicyList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicySpec_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicySpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_admissionregistration_v1_MutatingAdmissionPolicySpec_descriptor, + new java.lang.String[] { "ParamKind", "MatchConstraints", "Variables", "Mutations", "FailurePolicy", "MatchConditions", "ReinvocationPolicy", }); internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhook_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(12); internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhook_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhook_descriptor, new java.lang.String[] { "Name", "ClientConfig", "Rules", "FailurePolicy", "MatchPolicy", "NamespaceSelector", "ObjectSelector", "SideEffects", "TimeoutSeconds", "AdmissionReviewVersions", "ReinvocationPolicy", "MatchConditions", }); internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfiguration_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(13); internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfiguration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfiguration_descriptor, new java.lang.String[] { "Metadata", "Webhooks", }); internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfigurationList_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(14); internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfigurationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_MutatingWebhookConfigurationList_descriptor, new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_admissionregistration_v1_Mutation_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_k8s_io_api_admissionregistration_v1_Mutation_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_admissionregistration_v1_Mutation_descriptor, + new java.lang.String[] { "PatchType", "ApplyConfiguration", "JsonPatch", }); internal_static_k8s_io_api_admissionregistration_v1_NamedRuleWithOperations_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(16); internal_static_k8s_io_api_admissionregistration_v1_NamedRuleWithOperations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_NamedRuleWithOperations_descriptor, new java.lang.String[] { "ResourceNames", "RuleWithOperations", }); internal_static_k8s_io_api_admissionregistration_v1_ParamKind_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(17); internal_static_k8s_io_api_admissionregistration_v1_ParamKind_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_ParamKind_descriptor, new java.lang.String[] { "ApiVersion", "Kind", }); internal_static_k8s_io_api_admissionregistration_v1_ParamRef_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(18); internal_static_k8s_io_api_admissionregistration_v1_ParamRef_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_ParamRef_descriptor, new java.lang.String[] { "Name", "Namespace", "Selector", "ParameterNotFoundAction", }); internal_static_k8s_io_api_admissionregistration_v1_Rule_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(19); internal_static_k8s_io_api_admissionregistration_v1_Rule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_Rule_descriptor, new java.lang.String[] { "ApiGroups", "ApiVersions", "Resources", "Scope", }); internal_static_k8s_io_api_admissionregistration_v1_RuleWithOperations_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(20); internal_static_k8s_io_api_admissionregistration_v1_RuleWithOperations_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_RuleWithOperations_descriptor, new java.lang.String[] { "Operations", "Rule", }); internal_static_k8s_io_api_admissionregistration_v1_ServiceReference_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(21); internal_static_k8s_io_api_admissionregistration_v1_ServiceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_ServiceReference_descriptor, new java.lang.String[] { "Namespace", "Name", "Path", "Port", }); internal_static_k8s_io_api_admissionregistration_v1_TypeChecking_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(22); internal_static_k8s_io_api_admissionregistration_v1_TypeChecking_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_TypeChecking_descriptor, new java.lang.String[] { "ExpressionWarnings", }); internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicy_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(23); internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicy_descriptor, new java.lang.String[] { "Metadata", "Spec", "Status", }); internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicyBinding_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(24); internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicyBinding_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicyBinding_descriptor, new java.lang.String[] { "Metadata", "Spec", }); internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingList_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(25); internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingSpec_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(26); internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicyBindingSpec_descriptor, new java.lang.String[] { "PolicyName", "ParamRef", "MatchResources", "ValidationActions", }); internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicyList_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(27); internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicyList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicyList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicySpec_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(28); internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicySpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicySpec_descriptor, new java.lang.String[] { "ParamKind", "MatchConstraints", "Validations", "FailurePolicy", "AuditAnnotations", "MatchConditions", "Variables", }); internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicyStatus_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(29); internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicyStatus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_ValidatingAdmissionPolicyStatus_descriptor, new java.lang.String[] { "ObservedGeneration", "TypeChecking", "Conditions", }); internal_static_k8s_io_api_admissionregistration_v1_ValidatingWebhook_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(30); internal_static_k8s_io_api_admissionregistration_v1_ValidatingWebhook_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_ValidatingWebhook_descriptor, new java.lang.String[] { "Name", "ClientConfig", "Rules", "FailurePolicy", "MatchPolicy", "NamespaceSelector", "ObjectSelector", "SideEffects", "TimeoutSeconds", "AdmissionReviewVersions", "MatchConditions", }); internal_static_k8s_io_api_admissionregistration_v1_ValidatingWebhookConfiguration_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(31); internal_static_k8s_io_api_admissionregistration_v1_ValidatingWebhookConfiguration_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_ValidatingWebhookConfiguration_descriptor, new java.lang.String[] { "Metadata", "Webhooks", }); internal_static_k8s_io_api_admissionregistration_v1_ValidatingWebhookConfigurationList_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(32); internal_static_k8s_io_api_admissionregistration_v1_ValidatingWebhookConfigurationList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_ValidatingWebhookConfigurationList_descriptor, new java.lang.String[] { "Metadata", "Items", }); internal_static_k8s_io_api_admissionregistration_v1_Validation_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(33); internal_static_k8s_io_api_admissionregistration_v1_Validation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_Validation_descriptor, new java.lang.String[] { "Expression", "Message", "Reason", "MessageExpression", }); internal_static_k8s_io_api_admissionregistration_v1_Variable_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(34); internal_static_k8s_io_api_admissionregistration_v1_Variable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_Variable_descriptor, new java.lang.String[] { "Name", "Expression", }); internal_static_k8s_io_api_admissionregistration_v1_WebhookClientConfig_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(35); internal_static_k8s_io_api_admissionregistration_v1_WebhookClientConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_admissionregistration_v1_WebhookClientConfig_descriptor, diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Apps.java b/proto/src/main/java/io/kubernetes/client/proto/V1Apps.java index bf12d9c9d6..08110a0f63 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V1Apps.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Apps.java @@ -52,6 +52,7 @@ public interface ControllerRevisionOrBuilder extends /** *
      * Data is the serialized representation of the state.
+     * +required
      * 
* * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; @@ -60,6 +61,7 @@ public interface ControllerRevisionOrBuilder extends /** *
      * Data is the serialized representation of the state.
+     * +required
      * 
* * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; @@ -68,6 +70,7 @@ public interface ControllerRevisionOrBuilder extends /** *
      * Data is the serialized representation of the state.
+     * +required
      * 
* * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; @@ -77,6 +80,7 @@ public interface ControllerRevisionOrBuilder extends /** *
      * Revision indicates the revision of the state represented by Data.
+     * +optional
      * 
* * optional int64 revision = 3; @@ -85,6 +89,7 @@ public interface ControllerRevisionOrBuilder extends /** *
      * Revision indicates the revision of the state represented by Data.
+     * +optional
      * 
* * optional int64 revision = 3; @@ -251,6 +256,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
      * Data is the serialized representation of the state.
+     * +required
      * 
* * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; @@ -261,6 +267,7 @@ public boolean hasData() { /** *
      * Data is the serialized representation of the state.
+     * +required
      * 
* * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; @@ -271,6 +278,7 @@ public io.kubernetes.client.proto.Runtime.RawExtension getData() { /** *
      * Data is the serialized representation of the state.
+     * +required
      * 
* * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; @@ -284,6 +292,7 @@ public io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getDataOrBuilder /** *
      * Revision indicates the revision of the state represented by Data.
+     * +optional
      * 
* * optional int64 revision = 3; @@ -294,6 +303,7 @@ public boolean hasRevision() { /** *
      * Revision indicates the revision of the state represented by Data.
+     * +optional
      * 
* * optional int64 revision = 3; @@ -876,6 +886,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
        * Data is the serialized representation of the state.
+       * +required
        * 
* * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; @@ -886,6 +897,7 @@ public boolean hasData() { /** *
        * Data is the serialized representation of the state.
+       * +required
        * 
* * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; @@ -900,6 +912,7 @@ public io.kubernetes.client.proto.Runtime.RawExtension getData() { /** *
        * Data is the serialized representation of the state.
+       * +required
        * 
* * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; @@ -920,6 +933,7 @@ public Builder setData(io.kubernetes.client.proto.Runtime.RawExtension value) { /** *
        * Data is the serialized representation of the state.
+       * +required
        * 
* * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; @@ -938,6 +952,7 @@ public Builder setData( /** *
        * Data is the serialized representation of the state.
+       * +required
        * 
* * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; @@ -962,6 +977,7 @@ public Builder mergeData(io.kubernetes.client.proto.Runtime.RawExtension value) /** *
        * Data is the serialized representation of the state.
+       * +required
        * 
* * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; @@ -979,6 +995,7 @@ public Builder clearData() { /** *
        * Data is the serialized representation of the state.
+       * +required
        * 
* * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; @@ -991,6 +1008,7 @@ public io.kubernetes.client.proto.Runtime.RawExtension.Builder getDataBuilder() /** *
        * Data is the serialized representation of the state.
+       * +required
        * 
* * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; @@ -1006,6 +1024,7 @@ public io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getDataOrBuilder /** *
        * Data is the serialized representation of the state.
+       * +required
        * 
* * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2; @@ -1028,6 +1047,7 @@ public io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getDataOrBuilder /** *
        * Revision indicates the revision of the state represented by Data.
+       * +optional
        * 
* * optional int64 revision = 3; @@ -1038,6 +1058,7 @@ public boolean hasRevision() { /** *
        * Revision indicates the revision of the state represented by Data.
+       * +optional
        * 
* * optional int64 revision = 3; @@ -1048,6 +1069,7 @@ public long getRevision() { /** *
        * Revision indicates the revision of the state represented by Data.
+       * +optional
        * 
* * optional int64 revision = 3; @@ -1061,6 +1083,7 @@ public Builder setRevision(long value) { /** *
        * Revision indicates the revision of the state represented by Data.
+       * +optional
        * 
* * optional int64 revision = 3; @@ -2342,7 +2365,7 @@ public interface DaemonSetOrBuilder extends *
      * The desired behavior of this daemon set.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.DaemonSetSpec spec = 2; @@ -2352,7 +2375,7 @@ public interface DaemonSetOrBuilder extends *
      * The desired behavior of this daemon set.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.DaemonSetSpec spec = 2; @@ -2362,7 +2385,7 @@ public interface DaemonSetOrBuilder extends *
      * The desired behavior of this daemon set.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.DaemonSetSpec spec = 2; @@ -2412,6 +2435,7 @@ public interface DaemonSetOrBuilder extends /** *
    * DaemonSet represents the configuration of a daemon set.
+   * +k8s:supportsSubresource="/status"
    * 
* * Protobuf type {@code k8s.io.api.apps.v1.DaemonSet} @@ -2569,7 +2593,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( *
      * The desired behavior of this daemon set.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.DaemonSetSpec spec = 2; @@ -2581,7 +2605,7 @@ public boolean hasSpec() { *
      * The desired behavior of this daemon set.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.DaemonSetSpec spec = 2; @@ -2593,7 +2617,7 @@ public io.kubernetes.client.proto.V1Apps.DaemonSetSpec getSpec() { *
      * The desired behavior of this daemon set.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.DaemonSetSpec spec = 2; @@ -2846,6 +2870,7 @@ protected Builder newBuilderForType( /** *
      * DaemonSet represents the configuration of a daemon set.
+     * +k8s:supportsSubresource="/status"
      * 
* * Protobuf type {@code k8s.io.api.apps.v1.DaemonSet} @@ -3225,7 +3250,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( *
        * The desired behavior of this daemon set.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DaemonSetSpec spec = 2; @@ -3237,7 +3262,7 @@ public boolean hasSpec() { *
        * The desired behavior of this daemon set.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DaemonSetSpec spec = 2; @@ -3253,7 +3278,7 @@ public io.kubernetes.client.proto.V1Apps.DaemonSetSpec getSpec() { *
        * The desired behavior of this daemon set.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DaemonSetSpec spec = 2; @@ -3275,7 +3300,7 @@ public Builder setSpec(io.kubernetes.client.proto.V1Apps.DaemonSetSpec value) { *
        * The desired behavior of this daemon set.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DaemonSetSpec spec = 2; @@ -3295,7 +3320,7 @@ public Builder setSpec( *
        * The desired behavior of this daemon set.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DaemonSetSpec spec = 2; @@ -3321,7 +3346,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Apps.DaemonSetSpec value) *
        * The desired behavior of this daemon set.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DaemonSetSpec spec = 2; @@ -3340,7 +3365,7 @@ public Builder clearSpec() { *
        * The desired behavior of this daemon set.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DaemonSetSpec spec = 2; @@ -3354,7 +3379,7 @@ public io.kubernetes.client.proto.V1Apps.DaemonSetSpec.Builder getSpecBuilder() *
        * The desired behavior of this daemon set.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DaemonSetSpec spec = 2; @@ -3371,7 +3396,7 @@ public io.kubernetes.client.proto.V1Apps.DaemonSetSpecOrBuilder getSpecOrBuilder *
        * The desired behavior of this daemon set.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DaemonSetSpec spec = 2; @@ -3648,6 +3673,7 @@ public interface DaemonSetConditionOrBuilder extends /** *
      * Type of DaemonSet condition.
+     * +optional
      * 
* * optional string type = 1; @@ -3656,6 +3682,7 @@ public interface DaemonSetConditionOrBuilder extends /** *
      * Type of DaemonSet condition.
+     * +optional
      * 
* * optional string type = 1; @@ -3664,6 +3691,7 @@ public interface DaemonSetConditionOrBuilder extends /** *
      * Type of DaemonSet condition.
+     * +optional
      * 
* * optional string type = 1; @@ -3674,6 +3702,7 @@ public interface DaemonSetConditionOrBuilder extends /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -3682,6 +3711,7 @@ public interface DaemonSetConditionOrBuilder extends /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -3690,6 +3720,7 @@ public interface DaemonSetConditionOrBuilder extends /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -3905,6 +3936,7 @@ private DaemonSetCondition( /** *
      * Type of DaemonSet condition.
+     * +optional
      * 
* * optional string type = 1; @@ -3915,6 +3947,7 @@ public boolean hasType() { /** *
      * Type of DaemonSet condition.
+     * +optional
      * 
* * optional string type = 1; @@ -3936,6 +3969,7 @@ public java.lang.String getType() { /** *
      * Type of DaemonSet condition.
+     * +optional
      * 
* * optional string type = 1; @@ -3959,6 +3993,7 @@ public java.lang.String getType() { /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -3969,6 +4004,7 @@ public boolean hasStatus() { /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -3990,6 +4026,7 @@ public java.lang.String getStatus() { /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -4594,6 +4631,7 @@ public Builder mergeFrom( /** *
        * Type of DaemonSet condition.
+       * +optional
        * 
* * optional string type = 1; @@ -4604,6 +4642,7 @@ public boolean hasType() { /** *
        * Type of DaemonSet condition.
+       * +optional
        * 
* * optional string type = 1; @@ -4625,6 +4664,7 @@ public java.lang.String getType() { /** *
        * Type of DaemonSet condition.
+       * +optional
        * 
* * optional string type = 1; @@ -4645,6 +4685,7 @@ public java.lang.String getType() { /** *
        * Type of DaemonSet condition.
+       * +optional
        * 
* * optional string type = 1; @@ -4662,6 +4703,7 @@ public Builder setType( /** *
        * Type of DaemonSet condition.
+       * +optional
        * 
* * optional string type = 1; @@ -4675,6 +4717,7 @@ public Builder clearType() { /** *
        * Type of DaemonSet condition.
+       * +optional
        * 
* * optional string type = 1; @@ -4694,6 +4737,7 @@ public Builder setTypeBytes( /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -4704,6 +4748,7 @@ public boolean hasStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -4725,6 +4770,7 @@ public java.lang.String getStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -4745,6 +4791,7 @@ public java.lang.String getStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -4762,6 +4809,7 @@ public Builder setStatus( /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -4775,6 +4823,7 @@ public Builder clearStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -6421,6 +6470,7 @@ public interface DaemonSetSpecOrBuilder extends * Must match in order to be controlled. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; @@ -6432,6 +6482,7 @@ public interface DaemonSetSpecOrBuilder extends * Must match in order to be controlled. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; @@ -6443,6 +6494,7 @@ public interface DaemonSetSpecOrBuilder extends * Must match in order to be controlled. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; @@ -6457,6 +6509,7 @@ public interface DaemonSetSpecOrBuilder extends * selector is specified). * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; @@ -6470,6 +6523,7 @@ public interface DaemonSetSpecOrBuilder extends * selector is specified). * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; @@ -6483,6 +6537,7 @@ public interface DaemonSetSpecOrBuilder extends * selector is specified). * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; @@ -6700,6 +6755,7 @@ private DaemonSetSpec( * Must match in order to be controlled. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; @@ -6713,6 +6769,7 @@ public boolean hasSelector() { * Must match in order to be controlled. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; @@ -6726,6 +6783,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector getSelector() { * Must match in order to be controlled. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; @@ -6744,6 +6802,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuild * selector is specified). * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; @@ -6759,6 +6818,7 @@ public boolean hasTemplate() { * selector is specified). * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; @@ -6774,6 +6834,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpec getTemplate() { * selector is specified). * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; @@ -7333,6 +7394,7 @@ public Builder mergeFrom( * Must match in order to be controlled. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; @@ -7346,6 +7408,7 @@ public boolean hasSelector() { * Must match in order to be controlled. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; @@ -7363,6 +7426,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector getSelector() { * Must match in order to be controlled. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; @@ -7386,6 +7450,7 @@ public Builder setSelector(io.kubernetes.client.proto.Meta.LabelSelector value) * Must match in order to be controlled. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; @@ -7407,6 +7472,7 @@ public Builder setSelector( * Must match in order to be controlled. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; @@ -7434,6 +7500,7 @@ public Builder mergeSelector(io.kubernetes.client.proto.Meta.LabelSelector value * Must match in order to be controlled. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; @@ -7454,6 +7521,7 @@ public Builder clearSelector() { * Must match in order to be controlled. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; @@ -7469,6 +7537,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getSelectorBuilder( * Must match in order to be controlled. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; @@ -7487,6 +7556,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuild * Must match in order to be controlled. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1; @@ -7516,6 +7586,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuild * selector is specified). * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; @@ -7531,6 +7602,7 @@ public boolean hasTemplate() { * selector is specified). * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; @@ -7550,6 +7622,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpec getTemplate() { * selector is specified). * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; @@ -7575,6 +7648,7 @@ public Builder setTemplate(io.kubernetes.client.proto.V1.PodTemplateSpec value) * selector is specified). * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; @@ -7598,6 +7672,7 @@ public Builder setTemplate( * selector is specified). * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; @@ -7627,6 +7702,7 @@ public Builder mergeTemplate(io.kubernetes.client.proto.V1.PodTemplateSpec value * selector is specified). * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; @@ -7649,6 +7725,7 @@ public Builder clearTemplate() { * selector is specified). * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; @@ -7666,6 +7743,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpec.Builder getTemplateBuilder( * selector is specified). * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; @@ -7686,6 +7764,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder getTemplateOrBuild * selector is specified). * The only allowed template.spec.restartPolicy value is "Always". * More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 2; @@ -11327,7 +11406,7 @@ public interface DeploymentOrBuilder extends /** *
      * Specification of the desired behavior of the Deployment.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.DeploymentSpec spec = 2; @@ -11336,7 +11415,7 @@ public interface DeploymentOrBuilder extends /** *
      * Specification of the desired behavior of the Deployment.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.DeploymentSpec spec = 2; @@ -11345,7 +11424,7 @@ public interface DeploymentOrBuilder extends /** *
      * Specification of the desired behavior of the Deployment.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.DeploymentSpec spec = 2; @@ -11383,6 +11462,8 @@ public interface DeploymentOrBuilder extends /** *
    * Deployment enables declarative updates for Pods and ReplicaSets.
+   * +k8s:supportsSubresource="/scale"
+   * +k8s:supportsSubresource="/status"
    * 
* * Protobuf type {@code k8s.io.api.apps.v1.Deployment} @@ -11539,7 +11620,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
      * Specification of the desired behavior of the Deployment.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.DeploymentSpec spec = 2; @@ -11550,7 +11631,7 @@ public boolean hasSpec() { /** *
      * Specification of the desired behavior of the Deployment.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.DeploymentSpec spec = 2; @@ -11561,7 +11642,7 @@ public io.kubernetes.client.proto.V1Apps.DeploymentSpec getSpec() { /** *
      * Specification of the desired behavior of the Deployment.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.DeploymentSpec spec = 2; @@ -11802,6 +11883,8 @@ protected Builder newBuilderForType( /** *
      * Deployment enables declarative updates for Pods and ReplicaSets.
+     * +k8s:supportsSubresource="/scale"
+     * +k8s:supportsSubresource="/status"
      * 
* * Protobuf type {@code k8s.io.api.apps.v1.Deployment} @@ -12180,7 +12263,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
        * Specification of the desired behavior of the Deployment.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DeploymentSpec spec = 2; @@ -12191,7 +12274,7 @@ public boolean hasSpec() { /** *
        * Specification of the desired behavior of the Deployment.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DeploymentSpec spec = 2; @@ -12206,7 +12289,7 @@ public io.kubernetes.client.proto.V1Apps.DeploymentSpec getSpec() { /** *
        * Specification of the desired behavior of the Deployment.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DeploymentSpec spec = 2; @@ -12227,7 +12310,7 @@ public Builder setSpec(io.kubernetes.client.proto.V1Apps.DeploymentSpec value) { /** *
        * Specification of the desired behavior of the Deployment.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DeploymentSpec spec = 2; @@ -12246,7 +12329,7 @@ public Builder setSpec( /** *
        * Specification of the desired behavior of the Deployment.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DeploymentSpec spec = 2; @@ -12271,7 +12354,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Apps.DeploymentSpec value) /** *
        * Specification of the desired behavior of the Deployment.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DeploymentSpec spec = 2; @@ -12289,7 +12372,7 @@ public Builder clearSpec() { /** *
        * Specification of the desired behavior of the Deployment.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DeploymentSpec spec = 2; @@ -12302,7 +12385,7 @@ public io.kubernetes.client.proto.V1Apps.DeploymentSpec.Builder getSpecBuilder() /** *
        * Specification of the desired behavior of the Deployment.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DeploymentSpec spec = 2; @@ -12318,7 +12401,7 @@ public io.kubernetes.client.proto.V1Apps.DeploymentSpecOrBuilder getSpecOrBuilde /** *
        * Specification of the desired behavior of the Deployment.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.DeploymentSpec spec = 2; @@ -12559,6 +12642,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * Type of deployment condition.
+     * +optional
      * 
* * optional string type = 1; @@ -12567,6 +12651,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * Type of deployment condition.
+     * +optional
      * 
* * optional string type = 1; @@ -12575,6 +12660,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * Type of deployment condition.
+     * +optional
      * 
* * optional string type = 1; @@ -12585,6 +12671,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -12593,6 +12680,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -12601,6 +12689,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -12611,6 +12700,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * The last time this condition was updated.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; @@ -12619,6 +12709,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * The last time this condition was updated.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; @@ -12627,6 +12718,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * The last time this condition was updated.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; @@ -12636,6 +12728,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * Last time the condition transitioned from one status to another.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; @@ -12644,6 +12737,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * Last time the condition transitioned from one status to another.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; @@ -12652,6 +12746,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * Last time the condition transitioned from one status to another.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; @@ -12661,6 +12756,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * The reason for the condition's last transition.
+     * +optional
      * 
* * optional string reason = 4; @@ -12669,6 +12765,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * The reason for the condition's last transition.
+     * +optional
      * 
* * optional string reason = 4; @@ -12677,6 +12774,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * The reason for the condition's last transition.
+     * +optional
      * 
* * optional string reason = 4; @@ -12687,6 +12785,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * A human readable message indicating details about the transition.
+     * +optional
      * 
* * optional string message = 5; @@ -12695,6 +12794,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * A human readable message indicating details about the transition.
+     * +optional
      * 
* * optional string message = 5; @@ -12703,6 +12803,7 @@ public interface DeploymentConditionOrBuilder extends /** *
      * A human readable message indicating details about the transition.
+     * +optional
      * 
* * optional string message = 5; @@ -12845,6 +12946,7 @@ private DeploymentCondition( /** *
      * Type of deployment condition.
+     * +optional
      * 
* * optional string type = 1; @@ -12855,6 +12957,7 @@ public boolean hasType() { /** *
      * Type of deployment condition.
+     * +optional
      * 
* * optional string type = 1; @@ -12876,6 +12979,7 @@ public java.lang.String getType() { /** *
      * Type of deployment condition.
+     * +optional
      * 
* * optional string type = 1; @@ -12899,6 +13003,7 @@ public java.lang.String getType() { /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -12909,6 +13014,7 @@ public boolean hasStatus() { /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -12930,6 +13036,7 @@ public java.lang.String getStatus() { /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -12953,6 +13060,7 @@ public java.lang.String getStatus() { /** *
      * The last time this condition was updated.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; @@ -12963,6 +13071,7 @@ public boolean hasLastUpdateTime() { /** *
      * The last time this condition was updated.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; @@ -12973,6 +13082,7 @@ public io.kubernetes.client.proto.Meta.Time getLastUpdateTime() { /** *
      * The last time this condition was updated.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; @@ -12986,6 +13096,7 @@ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastUpdateTimeOrBuilder( /** *
      * Last time the condition transitioned from one status to another.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; @@ -12996,6 +13107,7 @@ public boolean hasLastTransitionTime() { /** *
      * Last time the condition transitioned from one status to another.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; @@ -13006,6 +13118,7 @@ public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { /** *
      * Last time the condition transitioned from one status to another.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; @@ -13019,6 +13132,7 @@ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuil /** *
      * The reason for the condition's last transition.
+     * +optional
      * 
* * optional string reason = 4; @@ -13029,6 +13143,7 @@ public boolean hasReason() { /** *
      * The reason for the condition's last transition.
+     * +optional
      * 
* * optional string reason = 4; @@ -13050,6 +13165,7 @@ public java.lang.String getReason() { /** *
      * The reason for the condition's last transition.
+     * +optional
      * 
* * optional string reason = 4; @@ -13073,6 +13189,7 @@ public java.lang.String getReason() { /** *
      * A human readable message indicating details about the transition.
+     * +optional
      * 
* * optional string message = 5; @@ -13083,6 +13200,7 @@ public boolean hasMessage() { /** *
      * A human readable message indicating details about the transition.
+     * +optional
      * 
* * optional string message = 5; @@ -13104,6 +13222,7 @@ public java.lang.String getMessage() { /** *
      * A human readable message indicating details about the transition.
+     * +optional
      * 
* * optional string message = 5; @@ -13592,6 +13711,7 @@ public Builder mergeFrom( /** *
        * Type of deployment condition.
+       * +optional
        * 
* * optional string type = 1; @@ -13602,6 +13722,7 @@ public boolean hasType() { /** *
        * Type of deployment condition.
+       * +optional
        * 
* * optional string type = 1; @@ -13623,6 +13744,7 @@ public java.lang.String getType() { /** *
        * Type of deployment condition.
+       * +optional
        * 
* * optional string type = 1; @@ -13643,6 +13765,7 @@ public java.lang.String getType() { /** *
        * Type of deployment condition.
+       * +optional
        * 
* * optional string type = 1; @@ -13660,6 +13783,7 @@ public Builder setType( /** *
        * Type of deployment condition.
+       * +optional
        * 
* * optional string type = 1; @@ -13673,6 +13797,7 @@ public Builder clearType() { /** *
        * Type of deployment condition.
+       * +optional
        * 
* * optional string type = 1; @@ -13692,6 +13817,7 @@ public Builder setTypeBytes( /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -13702,6 +13828,7 @@ public boolean hasStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -13723,6 +13850,7 @@ public java.lang.String getStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -13743,6 +13871,7 @@ public java.lang.String getStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -13760,6 +13889,7 @@ public Builder setStatus( /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -13773,6 +13903,7 @@ public Builder clearStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -13794,6 +13925,7 @@ public Builder setStatusBytes( /** *
        * The last time this condition was updated.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; @@ -13804,6 +13936,7 @@ public boolean hasLastUpdateTime() { /** *
        * The last time this condition was updated.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; @@ -13818,6 +13951,7 @@ public io.kubernetes.client.proto.Meta.Time getLastUpdateTime() { /** *
        * The last time this condition was updated.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; @@ -13838,6 +13972,7 @@ public Builder setLastUpdateTime(io.kubernetes.client.proto.Meta.Time value) { /** *
        * The last time this condition was updated.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; @@ -13856,6 +13991,7 @@ public Builder setLastUpdateTime( /** *
        * The last time this condition was updated.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; @@ -13880,6 +14016,7 @@ public Builder mergeLastUpdateTime(io.kubernetes.client.proto.Meta.Time value) { /** *
        * The last time this condition was updated.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; @@ -13897,6 +14034,7 @@ public Builder clearLastUpdateTime() { /** *
        * The last time this condition was updated.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; @@ -13909,6 +14047,7 @@ public io.kubernetes.client.proto.Meta.Time.Builder getLastUpdateTimeBuilder() { /** *
        * The last time this condition was updated.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; @@ -13924,6 +14063,7 @@ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastUpdateTimeOrBuilder( /** *
        * The last time this condition was updated.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6; @@ -13948,6 +14088,7 @@ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastUpdateTimeOrBuilder( /** *
        * Last time the condition transitioned from one status to another.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; @@ -13958,6 +14099,7 @@ public boolean hasLastTransitionTime() { /** *
        * Last time the condition transitioned from one status to another.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; @@ -13972,6 +14114,7 @@ public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { /** *
        * Last time the condition transitioned from one status to another.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; @@ -13992,6 +14135,7 @@ public Builder setLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) /** *
        * Last time the condition transitioned from one status to another.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; @@ -14010,6 +14154,7 @@ public Builder setLastTransitionTime( /** *
        * Last time the condition transitioned from one status to another.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; @@ -14034,6 +14179,7 @@ public Builder mergeLastTransitionTime(io.kubernetes.client.proto.Meta.Time valu /** *
        * Last time the condition transitioned from one status to another.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; @@ -14051,6 +14197,7 @@ public Builder clearLastTransitionTime() { /** *
        * Last time the condition transitioned from one status to another.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; @@ -14063,6 +14210,7 @@ public io.kubernetes.client.proto.Meta.Time.Builder getLastTransitionTimeBuilder /** *
        * Last time the condition transitioned from one status to another.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; @@ -14078,6 +14226,7 @@ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuil /** *
        * Last time the condition transitioned from one status to another.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7; @@ -14100,6 +14249,7 @@ public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuil /** *
        * The reason for the condition's last transition.
+       * +optional
        * 
* * optional string reason = 4; @@ -14110,6 +14260,7 @@ public boolean hasReason() { /** *
        * The reason for the condition's last transition.
+       * +optional
        * 
* * optional string reason = 4; @@ -14131,6 +14282,7 @@ public java.lang.String getReason() { /** *
        * The reason for the condition's last transition.
+       * +optional
        * 
* * optional string reason = 4; @@ -14151,6 +14303,7 @@ public java.lang.String getReason() { /** *
        * The reason for the condition's last transition.
+       * +optional
        * 
* * optional string reason = 4; @@ -14168,6 +14321,7 @@ public Builder setReason( /** *
        * The reason for the condition's last transition.
+       * +optional
        * 
* * optional string reason = 4; @@ -14181,6 +14335,7 @@ public Builder clearReason() { /** *
        * The reason for the condition's last transition.
+       * +optional
        * 
* * optional string reason = 4; @@ -14200,6 +14355,7 @@ public Builder setReasonBytes( /** *
        * A human readable message indicating details about the transition.
+       * +optional
        * 
* * optional string message = 5; @@ -14210,6 +14366,7 @@ public boolean hasMessage() { /** *
        * A human readable message indicating details about the transition.
+       * +optional
        * 
* * optional string message = 5; @@ -14231,6 +14388,7 @@ public java.lang.String getMessage() { /** *
        * A human readable message indicating details about the transition.
+       * +optional
        * 
* * optional string message = 5; @@ -14251,6 +14409,7 @@ public java.lang.String getMessage() { /** *
        * A human readable message indicating details about the transition.
+       * +optional
        * 
* * optional string message = 5; @@ -14268,6 +14427,7 @@ public Builder setMessage( /** *
        * A human readable message indicating details about the transition.
+       * +optional
        * 
* * optional string message = 5; @@ -14281,6 +14441,7 @@ public Builder clearMessage() { /** *
        * A human readable message indicating details about the transition.
+       * +optional
        * 
* * optional string message = 5; @@ -15557,6 +15718,7 @@ public interface DeploymentSpecOrBuilder extends * Label selector for pods. Existing ReplicaSets whose pods are * selected by this will be the ones affected by this deployment. * It must match the pod template's labels. + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -15567,6 +15729,7 @@ public interface DeploymentSpecOrBuilder extends * Label selector for pods. Existing ReplicaSets whose pods are * selected by this will be the ones affected by this deployment. * It must match the pod template's labels. + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -15577,6 +15740,7 @@ public interface DeploymentSpecOrBuilder extends * Label selector for pods. Existing ReplicaSets whose pods are * selected by this will be the ones affected by this deployment. * It must match the pod template's labels. + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -15587,6 +15751,7 @@ public interface DeploymentSpecOrBuilder extends *
      * Template describes the pods that will be created.
      * The only allowed template.spec.restartPolicy value is "Always".
+     * +required
      * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -15596,6 +15761,7 @@ public interface DeploymentSpecOrBuilder extends *
      * Template describes the pods that will be created.
      * The only allowed template.spec.restartPolicy value is "Always".
+     * +required
      * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -15605,6 +15771,7 @@ public interface DeploymentSpecOrBuilder extends *
      * Template describes the pods that will be created.
      * The only allowed template.spec.restartPolicy value is "Always".
+     * +required
      * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -15714,6 +15881,7 @@ public interface DeploymentSpecOrBuilder extends * process failed deployments and a condition with a ProgressDeadlineExceeded * reason will be surfaced in the deployment status. Note that progress will * not be estimated during the time a deployment is paused. Defaults to 600s. + * +optional *
* * optional int32 progressDeadlineSeconds = 9; @@ -15726,6 +15894,7 @@ public interface DeploymentSpecOrBuilder extends * process failed deployments and a condition with a ProgressDeadlineExceeded * reason will be surfaced in the deployment status. Note that progress will * not be estimated during the time a deployment is paused. Defaults to 600s. + * +optional *
* * optional int32 progressDeadlineSeconds = 9; @@ -15911,6 +16080,7 @@ public int getReplicas() { * Label selector for pods. Existing ReplicaSets whose pods are * selected by this will be the ones affected by this deployment. * It must match the pod template's labels. + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -15923,6 +16093,7 @@ public boolean hasSelector() { * Label selector for pods. Existing ReplicaSets whose pods are * selected by this will be the ones affected by this deployment. * It must match the pod template's labels. + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -15935,6 +16106,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector getSelector() { * Label selector for pods. Existing ReplicaSets whose pods are * selected by this will be the ones affected by this deployment. * It must match the pod template's labels. + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -15949,6 +16121,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuild *
      * Template describes the pods that will be created.
      * The only allowed template.spec.restartPolicy value is "Always".
+     * +required
      * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -15960,6 +16133,7 @@ public boolean hasTemplate() { *
      * Template describes the pods that will be created.
      * The only allowed template.spec.restartPolicy value is "Always".
+     * +required
      * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -15971,6 +16145,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpec getTemplate() { *
      * Template describes the pods that will be created.
      * The only allowed template.spec.restartPolicy value is "Always".
+     * +required
      * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -16110,6 +16285,7 @@ public boolean getPaused() { * process failed deployments and a condition with a ProgressDeadlineExceeded * reason will be surfaced in the deployment status. Note that progress will * not be estimated during the time a deployment is paused. Defaults to 600s. + * +optional *
* * optional int32 progressDeadlineSeconds = 9; @@ -16124,6 +16300,7 @@ public boolean hasProgressDeadlineSeconds() { * process failed deployments and a condition with a ProgressDeadlineExceeded * reason will be surfaced in the deployment status. Note that progress will * not be estimated during the time a deployment is paused. Defaults to 600s. + * +optional *
* * optional int32 progressDeadlineSeconds = 9; @@ -16718,6 +16895,7 @@ public Builder clearReplicas() { * Label selector for pods. Existing ReplicaSets whose pods are * selected by this will be the ones affected by this deployment. * It must match the pod template's labels. + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -16730,6 +16908,7 @@ public boolean hasSelector() { * Label selector for pods. Existing ReplicaSets whose pods are * selected by this will be the ones affected by this deployment. * It must match the pod template's labels. + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -16746,6 +16925,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector getSelector() { * Label selector for pods. Existing ReplicaSets whose pods are * selected by this will be the ones affected by this deployment. * It must match the pod template's labels. + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -16768,6 +16948,7 @@ public Builder setSelector(io.kubernetes.client.proto.Meta.LabelSelector value) * Label selector for pods. Existing ReplicaSets whose pods are * selected by this will be the ones affected by this deployment. * It must match the pod template's labels. + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -16788,6 +16969,7 @@ public Builder setSelector( * Label selector for pods. Existing ReplicaSets whose pods are * selected by this will be the ones affected by this deployment. * It must match the pod template's labels. + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -16814,6 +16996,7 @@ public Builder mergeSelector(io.kubernetes.client.proto.Meta.LabelSelector value * Label selector for pods. Existing ReplicaSets whose pods are * selected by this will be the ones affected by this deployment. * It must match the pod template's labels. + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -16833,6 +17016,7 @@ public Builder clearSelector() { * Label selector for pods. Existing ReplicaSets whose pods are * selected by this will be the ones affected by this deployment. * It must match the pod template's labels. + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -16847,6 +17031,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getSelectorBuilder( * Label selector for pods. Existing ReplicaSets whose pods are * selected by this will be the ones affected by this deployment. * It must match the pod template's labels. + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -16864,6 +17049,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuild * Label selector for pods. Existing ReplicaSets whose pods are * selected by this will be the ones affected by this deployment. * It must match the pod template's labels. + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -16889,6 +17075,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuild *
        * Template describes the pods that will be created.
        * The only allowed template.spec.restartPolicy value is "Always".
+       * +required
        * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -16900,6 +17087,7 @@ public boolean hasTemplate() { *
        * Template describes the pods that will be created.
        * The only allowed template.spec.restartPolicy value is "Always".
+       * +required
        * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -16915,6 +17103,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpec getTemplate() { *
        * Template describes the pods that will be created.
        * The only allowed template.spec.restartPolicy value is "Always".
+       * +required
        * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -16936,6 +17125,7 @@ public Builder setTemplate(io.kubernetes.client.proto.V1.PodTemplateSpec value) *
        * Template describes the pods that will be created.
        * The only allowed template.spec.restartPolicy value is "Always".
+       * +required
        * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -16955,6 +17145,7 @@ public Builder setTemplate( *
        * Template describes the pods that will be created.
        * The only allowed template.spec.restartPolicy value is "Always".
+       * +required
        * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -16980,6 +17171,7 @@ public Builder mergeTemplate(io.kubernetes.client.proto.V1.PodTemplateSpec value *
        * Template describes the pods that will be created.
        * The only allowed template.spec.restartPolicy value is "Always".
+       * +required
        * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -16998,6 +17190,7 @@ public Builder clearTemplate() { *
        * Template describes the pods that will be created.
        * The only allowed template.spec.restartPolicy value is "Always".
+       * +required
        * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -17011,6 +17204,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpec.Builder getTemplateBuilder( *
        * Template describes the pods that will be created.
        * The only allowed template.spec.restartPolicy value is "Always".
+       * +required
        * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -17027,6 +17221,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder getTemplateOrBuild *
        * Template describes the pods that will be created.
        * The only allowed template.spec.restartPolicy value is "Always".
+       * +required
        * 
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -17397,6 +17592,7 @@ public Builder clearPaused() { * process failed deployments and a condition with a ProgressDeadlineExceeded * reason will be surfaced in the deployment status. Note that progress will * not be estimated during the time a deployment is paused. Defaults to 600s. + * +optional *
* * optional int32 progressDeadlineSeconds = 9; @@ -17411,6 +17607,7 @@ public boolean hasProgressDeadlineSeconds() { * process failed deployments and a condition with a ProgressDeadlineExceeded * reason will be surfaced in the deployment status. Note that progress will * not be estimated during the time a deployment is paused. Defaults to 600s. + * +optional *
* * optional int32 progressDeadlineSeconds = 9; @@ -17425,6 +17622,7 @@ public int getProgressDeadlineSeconds() { * process failed deployments and a condition with a ProgressDeadlineExceeded * reason will be surfaced in the deployment status. Note that progress will * not be estimated during the time a deployment is paused. Defaults to 600s. + * +optional *
* * optional int32 progressDeadlineSeconds = 9; @@ -17442,6 +17640,7 @@ public Builder setProgressDeadlineSeconds(int value) { * process failed deployments and a condition with a ProgressDeadlineExceeded * reason will be surfaced in the deployment status. Note that progress will * not be estimated during the time a deployment is paused. Defaults to 600s. + * +optional *
* * optional int32 progressDeadlineSeconds = 9; @@ -20617,7 +20816,7 @@ public interface ReplicaSetOrBuilder extends *
      * Spec defines the specification of the desired behavior of the ReplicaSet.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.ReplicaSetSpec spec = 2; @@ -20627,7 +20826,7 @@ public interface ReplicaSetOrBuilder extends *
      * Spec defines the specification of the desired behavior of the ReplicaSet.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.ReplicaSetSpec spec = 2; @@ -20637,7 +20836,7 @@ public interface ReplicaSetOrBuilder extends *
      * Spec defines the specification of the desired behavior of the ReplicaSet.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.ReplicaSetSpec spec = 2; @@ -20687,6 +20886,8 @@ public interface ReplicaSetOrBuilder extends /** *
    * ReplicaSet ensures that a specified number of pod replicas are running at any given time.
+   * +k8s:supportsSubresource="/scale"
+   * +k8s:supportsSubresource="/status"
    * 
* * Protobuf type {@code k8s.io.api.apps.v1.ReplicaSet} @@ -20850,7 +21051,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( *
      * Spec defines the specification of the desired behavior of the ReplicaSet.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.ReplicaSetSpec spec = 2; @@ -20862,7 +21063,7 @@ public boolean hasSpec() { *
      * Spec defines the specification of the desired behavior of the ReplicaSet.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.ReplicaSetSpec spec = 2; @@ -20874,7 +21075,7 @@ public io.kubernetes.client.proto.V1Apps.ReplicaSetSpec getSpec() { *
      * Spec defines the specification of the desired behavior of the ReplicaSet.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.ReplicaSetSpec spec = 2; @@ -21127,6 +21328,8 @@ protected Builder newBuilderForType( /** *
      * ReplicaSet ensures that a specified number of pod replicas are running at any given time.
+     * +k8s:supportsSubresource="/scale"
+     * +k8s:supportsSubresource="/status"
      * 
* * Protobuf type {@code k8s.io.api.apps.v1.ReplicaSet} @@ -21524,7 +21727,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( *
        * Spec defines the specification of the desired behavior of the ReplicaSet.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.ReplicaSetSpec spec = 2; @@ -21536,7 +21739,7 @@ public boolean hasSpec() { *
        * Spec defines the specification of the desired behavior of the ReplicaSet.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.ReplicaSetSpec spec = 2; @@ -21552,7 +21755,7 @@ public io.kubernetes.client.proto.V1Apps.ReplicaSetSpec getSpec() { *
        * Spec defines the specification of the desired behavior of the ReplicaSet.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.ReplicaSetSpec spec = 2; @@ -21574,7 +21777,7 @@ public Builder setSpec(io.kubernetes.client.proto.V1Apps.ReplicaSetSpec value) { *
        * Spec defines the specification of the desired behavior of the ReplicaSet.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.ReplicaSetSpec spec = 2; @@ -21594,7 +21797,7 @@ public Builder setSpec( *
        * Spec defines the specification of the desired behavior of the ReplicaSet.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.ReplicaSetSpec spec = 2; @@ -21620,7 +21823,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Apps.ReplicaSetSpec value) *
        * Spec defines the specification of the desired behavior of the ReplicaSet.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.ReplicaSetSpec spec = 2; @@ -21639,7 +21842,7 @@ public Builder clearSpec() { *
        * Spec defines the specification of the desired behavior of the ReplicaSet.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.ReplicaSetSpec spec = 2; @@ -21653,7 +21856,7 @@ public io.kubernetes.client.proto.V1Apps.ReplicaSetSpec.Builder getSpecBuilder() *
        * Spec defines the specification of the desired behavior of the ReplicaSet.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.ReplicaSetSpec spec = 2; @@ -21670,7 +21873,7 @@ public io.kubernetes.client.proto.V1Apps.ReplicaSetSpecOrBuilder getSpecOrBuilde *
        * Spec defines the specification of the desired behavior of the ReplicaSet.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.ReplicaSetSpec spec = 2; @@ -21947,6 +22150,7 @@ public interface ReplicaSetConditionOrBuilder extends /** *
      * Type of replica set condition.
+     * +optional
      * 
* * optional string type = 1; @@ -21955,6 +22159,7 @@ public interface ReplicaSetConditionOrBuilder extends /** *
      * Type of replica set condition.
+     * +optional
      * 
* * optional string type = 1; @@ -21963,6 +22168,7 @@ public interface ReplicaSetConditionOrBuilder extends /** *
      * Type of replica set condition.
+     * +optional
      * 
* * optional string type = 1; @@ -21973,6 +22179,7 @@ public interface ReplicaSetConditionOrBuilder extends /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -21981,6 +22188,7 @@ public interface ReplicaSetConditionOrBuilder extends /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -21989,6 +22197,7 @@ public interface ReplicaSetConditionOrBuilder extends /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -22204,6 +22413,7 @@ private ReplicaSetCondition( /** *
      * Type of replica set condition.
+     * +optional
      * 
* * optional string type = 1; @@ -22214,6 +22424,7 @@ public boolean hasType() { /** *
      * Type of replica set condition.
+     * +optional
      * 
* * optional string type = 1; @@ -22235,6 +22446,7 @@ public java.lang.String getType() { /** *
      * Type of replica set condition.
+     * +optional
      * 
* * optional string type = 1; @@ -22258,6 +22470,7 @@ public java.lang.String getType() { /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -22268,6 +22481,7 @@ public boolean hasStatus() { /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -22289,6 +22503,7 @@ public java.lang.String getStatus() { /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -22893,6 +23108,7 @@ public Builder mergeFrom( /** *
        * Type of replica set condition.
+       * +optional
        * 
* * optional string type = 1; @@ -22903,6 +23119,7 @@ public boolean hasType() { /** *
        * Type of replica set condition.
+       * +optional
        * 
* * optional string type = 1; @@ -22924,6 +23141,7 @@ public java.lang.String getType() { /** *
        * Type of replica set condition.
+       * +optional
        * 
* * optional string type = 1; @@ -22944,6 +23162,7 @@ public java.lang.String getType() { /** *
        * Type of replica set condition.
+       * +optional
        * 
* * optional string type = 1; @@ -22961,6 +23180,7 @@ public Builder setType( /** *
        * Type of replica set condition.
+       * +optional
        * 
* * optional string type = 1; @@ -22974,6 +23194,7 @@ public Builder clearType() { /** *
        * Type of replica set condition.
+       * +optional
        * 
* * optional string type = 1; @@ -22993,6 +23214,7 @@ public Builder setTypeBytes( /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -23003,6 +23225,7 @@ public boolean hasStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -23024,6 +23247,7 @@ public java.lang.String getStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -23044,6 +23268,7 @@ public java.lang.String getStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -23061,6 +23286,7 @@ public Builder setStatus( /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -23074,6 +23300,7 @@ public Builder clearStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -24796,6 +25023,7 @@ public interface ReplicaSetSpecOrBuilder extends * Label keys and values that must match in order to be controlled by this replica set. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -24807,6 +25035,7 @@ public interface ReplicaSetSpecOrBuilder extends * Label keys and values that must match in order to be controlled by this replica set. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -24818,6 +25047,7 @@ public interface ReplicaSetSpecOrBuilder extends * Label keys and values that must match in order to be controlled by this replica set. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -25040,6 +25270,7 @@ public int getMinReadySeconds() { * Label keys and values that must match in order to be controlled by this replica set. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -25053,6 +25284,7 @@ public boolean hasSelector() { * Label keys and values that must match in order to be controlled by this replica set. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -25066,6 +25298,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector getSelector() { * Label keys and values that must match in order to be controlled by this replica set. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -25661,6 +25894,7 @@ public Builder clearMinReadySeconds() { * Label keys and values that must match in order to be controlled by this replica set. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -25674,6 +25908,7 @@ public boolean hasSelector() { * Label keys and values that must match in order to be controlled by this replica set. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -25691,6 +25926,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector getSelector() { * Label keys and values that must match in order to be controlled by this replica set. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -25714,6 +25950,7 @@ public Builder setSelector(io.kubernetes.client.proto.Meta.LabelSelector value) * Label keys and values that must match in order to be controlled by this replica set. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -25735,6 +25972,7 @@ public Builder setSelector( * Label keys and values that must match in order to be controlled by this replica set. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -25762,6 +26000,7 @@ public Builder mergeSelector(io.kubernetes.client.proto.Meta.LabelSelector value * Label keys and values that must match in order to be controlled by this replica set. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -25782,6 +26021,7 @@ public Builder clearSelector() { * Label keys and values that must match in order to be controlled by this replica set. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -25797,6 +26037,7 @@ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getSelectorBuilder( * Label keys and values that must match in order to be controlled by this replica set. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -25815,6 +26056,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuild * Label keys and values that must match in order to be controlled by this replica set. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -31567,7 +31809,7 @@ public interface StatefulSetOrBuilder extends /** *
      * Spec defines the desired identities of pods in this set.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.StatefulSetSpec spec = 2; @@ -31576,7 +31818,7 @@ public interface StatefulSetOrBuilder extends /** *
      * Spec defines the desired identities of pods in this set.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.StatefulSetSpec spec = 2; @@ -31585,7 +31827,7 @@ public interface StatefulSetOrBuilder extends /** *
      * Spec defines the desired identities of pods in this set.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.StatefulSetSpec spec = 2; @@ -31631,6 +31873,8 @@ public interface StatefulSetOrBuilder extends * - Storage: As many VolumeClaims as requested. * The StatefulSet guarantees that a given network identity will always * map to the same storage identity. + * +k8s:supportsSubresource="/scale" + * +k8s:supportsSubresource="/status" *
* * Protobuf type {@code k8s.io.api.apps.v1.StatefulSet} @@ -31787,7 +32031,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
      * Spec defines the desired identities of pods in this set.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.StatefulSetSpec spec = 2; @@ -31798,7 +32042,7 @@ public boolean hasSpec() { /** *
      * Spec defines the desired identities of pods in this set.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.StatefulSetSpec spec = 2; @@ -31809,7 +32053,7 @@ public io.kubernetes.client.proto.V1Apps.StatefulSetSpec getSpec() { /** *
      * Spec defines the desired identities of pods in this set.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.apps.v1.StatefulSetSpec spec = 2; @@ -32058,6 +32302,8 @@ protected Builder newBuilderForType( * - Storage: As many VolumeClaims as requested. * The StatefulSet guarantees that a given network identity will always * map to the same storage identity. + * +k8s:supportsSubresource="/scale" + * +k8s:supportsSubresource="/status" *
* * Protobuf type {@code k8s.io.api.apps.v1.StatefulSet} @@ -32436,7 +32682,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
        * Spec defines the desired identities of pods in this set.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.StatefulSetSpec spec = 2; @@ -32447,7 +32693,7 @@ public boolean hasSpec() { /** *
        * Spec defines the desired identities of pods in this set.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.StatefulSetSpec spec = 2; @@ -32462,7 +32708,7 @@ public io.kubernetes.client.proto.V1Apps.StatefulSetSpec getSpec() { /** *
        * Spec defines the desired identities of pods in this set.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.StatefulSetSpec spec = 2; @@ -32483,7 +32729,7 @@ public Builder setSpec(io.kubernetes.client.proto.V1Apps.StatefulSetSpec value) /** *
        * Spec defines the desired identities of pods in this set.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.StatefulSetSpec spec = 2; @@ -32502,7 +32748,7 @@ public Builder setSpec( /** *
        * Spec defines the desired identities of pods in this set.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.StatefulSetSpec spec = 2; @@ -32527,7 +32773,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Apps.StatefulSetSpec value /** *
        * Spec defines the desired identities of pods in this set.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.StatefulSetSpec spec = 2; @@ -32545,7 +32791,7 @@ public Builder clearSpec() { /** *
        * Spec defines the desired identities of pods in this set.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.StatefulSetSpec spec = 2; @@ -32558,7 +32804,7 @@ public io.kubernetes.client.proto.V1Apps.StatefulSetSpec.Builder getSpecBuilder( /** *
        * Spec defines the desired identities of pods in this set.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.StatefulSetSpec spec = 2; @@ -32574,7 +32820,7 @@ public io.kubernetes.client.proto.V1Apps.StatefulSetSpecOrBuilder getSpecOrBuild /** *
        * Spec defines the desired identities of pods in this set.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.apps.v1.StatefulSetSpec spec = 2; @@ -32824,6 +33070,7 @@ public interface StatefulSetConditionOrBuilder extends /** *
      * Type of statefulset condition.
+     * +optional
      * 
* * optional string type = 1; @@ -32832,6 +33079,7 @@ public interface StatefulSetConditionOrBuilder extends /** *
      * Type of statefulset condition.
+     * +optional
      * 
* * optional string type = 1; @@ -32840,6 +33088,7 @@ public interface StatefulSetConditionOrBuilder extends /** *
      * Type of statefulset condition.
+     * +optional
      * 
* * optional string type = 1; @@ -32850,6 +33099,7 @@ public interface StatefulSetConditionOrBuilder extends /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -32858,6 +33108,7 @@ public interface StatefulSetConditionOrBuilder extends /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -32866,6 +33117,7 @@ public interface StatefulSetConditionOrBuilder extends /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -33081,6 +33333,7 @@ private StatefulSetCondition( /** *
      * Type of statefulset condition.
+     * +optional
      * 
* * optional string type = 1; @@ -33091,6 +33344,7 @@ public boolean hasType() { /** *
      * Type of statefulset condition.
+     * +optional
      * 
* * optional string type = 1; @@ -33112,6 +33366,7 @@ public java.lang.String getType() { /** *
      * Type of statefulset condition.
+     * +optional
      * 
* * optional string type = 1; @@ -33135,6 +33390,7 @@ public java.lang.String getType() { /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -33145,6 +33401,7 @@ public boolean hasStatus() { /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -33166,6 +33423,7 @@ public java.lang.String getStatus() { /** *
      * Status of the condition, one of True, False, Unknown.
+     * +optional
      * 
* * optional string status = 2; @@ -33770,6 +34028,7 @@ public Builder mergeFrom( /** *
        * Type of statefulset condition.
+       * +optional
        * 
* * optional string type = 1; @@ -33780,6 +34039,7 @@ public boolean hasType() { /** *
        * Type of statefulset condition.
+       * +optional
        * 
* * optional string type = 1; @@ -33801,6 +34061,7 @@ public java.lang.String getType() { /** *
        * Type of statefulset condition.
+       * +optional
        * 
* * optional string type = 1; @@ -33821,6 +34082,7 @@ public java.lang.String getType() { /** *
        * Type of statefulset condition.
+       * +optional
        * 
* * optional string type = 1; @@ -33838,6 +34100,7 @@ public Builder setType( /** *
        * Type of statefulset condition.
+       * +optional
        * 
* * optional string type = 1; @@ -33851,6 +34114,7 @@ public Builder clearType() { /** *
        * Type of statefulset condition.
+       * +optional
        * 
* * optional string type = 1; @@ -33870,6 +34134,7 @@ public Builder setTypeBytes( /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -33880,6 +34145,7 @@ public boolean hasStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -33901,6 +34167,7 @@ public java.lang.String getStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -33921,6 +34188,7 @@ public java.lang.String getStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -33938,6 +34206,7 @@ public Builder setStatus( /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -33951,6 +34220,7 @@ public Builder clearStatus() { /** *
        * Status of the condition, one of True, False, Unknown.
+       * +optional
        * 
* * optional string status = 2; @@ -36208,6 +36478,7 @@ public interface StatefulSetPersistentVolumeClaimRetentionPolicyOrBuilder extend * VolumeClaimTemplates when the StatefulSet is deleted. The default policy * of `Retain` causes PVCs to not be affected by StatefulSet deletion. The * `Delete` policy causes those PVCs to be deleted. + * +optional *
* * optional string whenDeleted = 1; @@ -36219,6 +36490,7 @@ public interface StatefulSetPersistentVolumeClaimRetentionPolicyOrBuilder extend * VolumeClaimTemplates when the StatefulSet is deleted. The default policy * of `Retain` causes PVCs to not be affected by StatefulSet deletion. The * `Delete` policy causes those PVCs to be deleted. + * +optional *
* * optional string whenDeleted = 1; @@ -36230,6 +36502,7 @@ public interface StatefulSetPersistentVolumeClaimRetentionPolicyOrBuilder extend * VolumeClaimTemplates when the StatefulSet is deleted. The default policy * of `Retain` causes PVCs to not be affected by StatefulSet deletion. The * `Delete` policy causes those PVCs to be deleted. + * +optional *
* * optional string whenDeleted = 1; @@ -36244,6 +36517,7 @@ public interface StatefulSetPersistentVolumeClaimRetentionPolicyOrBuilder extend * policy of `Retain` causes PVCs to not be affected by a scaledown. The * `Delete` policy causes the associated PVCs for any excess pods above * the replica count to be deleted. + * +optional *
* * optional string whenScaled = 2; @@ -36256,6 +36530,7 @@ public interface StatefulSetPersistentVolumeClaimRetentionPolicyOrBuilder extend * policy of `Retain` causes PVCs to not be affected by a scaledown. The * `Delete` policy causes the associated PVCs for any excess pods above * the replica count to be deleted. + * +optional *
* * optional string whenScaled = 2; @@ -36268,6 +36543,7 @@ public interface StatefulSetPersistentVolumeClaimRetentionPolicyOrBuilder extend * policy of `Retain` causes PVCs to not be affected by a scaledown. The * `Delete` policy causes the associated PVCs for any excess pods above * the replica count to be deleted. + * +optional *
* * optional string whenScaled = 2; @@ -36374,6 +36650,7 @@ private StatefulSetPersistentVolumeClaimRetentionPolicy( * VolumeClaimTemplates when the StatefulSet is deleted. The default policy * of `Retain` causes PVCs to not be affected by StatefulSet deletion. The * `Delete` policy causes those PVCs to be deleted. + * +optional *
* * optional string whenDeleted = 1; @@ -36387,6 +36664,7 @@ public boolean hasWhenDeleted() { * VolumeClaimTemplates when the StatefulSet is deleted. The default policy * of `Retain` causes PVCs to not be affected by StatefulSet deletion. The * `Delete` policy causes those PVCs to be deleted. + * +optional *
* * optional string whenDeleted = 1; @@ -36411,6 +36689,7 @@ public java.lang.String getWhenDeleted() { * VolumeClaimTemplates when the StatefulSet is deleted. The default policy * of `Retain` causes PVCs to not be affected by StatefulSet deletion. The * `Delete` policy causes those PVCs to be deleted. + * +optional *
* * optional string whenDeleted = 1; @@ -36438,6 +36717,7 @@ public java.lang.String getWhenDeleted() { * policy of `Retain` causes PVCs to not be affected by a scaledown. The * `Delete` policy causes the associated PVCs for any excess pods above * the replica count to be deleted. + * +optional *
* * optional string whenScaled = 2; @@ -36452,6 +36732,7 @@ public boolean hasWhenScaled() { * policy of `Retain` causes PVCs to not be affected by a scaledown. The * `Delete` policy causes the associated PVCs for any excess pods above * the replica count to be deleted. + * +optional *
* * optional string whenScaled = 2; @@ -36477,6 +36758,7 @@ public java.lang.String getWhenScaled() { * policy of `Retain` causes PVCs to not be affected by a scaledown. The * `Delete` policy causes the associated PVCs for any excess pods above * the replica count to be deleted. + * +optional *
* * optional string whenScaled = 2; @@ -36849,6 +37131,7 @@ public Builder mergeFrom( * VolumeClaimTemplates when the StatefulSet is deleted. The default policy * of `Retain` causes PVCs to not be affected by StatefulSet deletion. The * `Delete` policy causes those PVCs to be deleted. + * +optional *
* * optional string whenDeleted = 1; @@ -36862,6 +37145,7 @@ public boolean hasWhenDeleted() { * VolumeClaimTemplates when the StatefulSet is deleted. The default policy * of `Retain` causes PVCs to not be affected by StatefulSet deletion. The * `Delete` policy causes those PVCs to be deleted. + * +optional *
* * optional string whenDeleted = 1; @@ -36886,6 +37170,7 @@ public java.lang.String getWhenDeleted() { * VolumeClaimTemplates when the StatefulSet is deleted. The default policy * of `Retain` causes PVCs to not be affected by StatefulSet deletion. The * `Delete` policy causes those PVCs to be deleted. + * +optional *
* * optional string whenDeleted = 1; @@ -36909,6 +37194,7 @@ public java.lang.String getWhenDeleted() { * VolumeClaimTemplates when the StatefulSet is deleted. The default policy * of `Retain` causes PVCs to not be affected by StatefulSet deletion. The * `Delete` policy causes those PVCs to be deleted. + * +optional *
* * optional string whenDeleted = 1; @@ -36929,6 +37215,7 @@ public Builder setWhenDeleted( * VolumeClaimTemplates when the StatefulSet is deleted. The default policy * of `Retain` causes PVCs to not be affected by StatefulSet deletion. The * `Delete` policy causes those PVCs to be deleted. + * +optional *
* * optional string whenDeleted = 1; @@ -36945,6 +37232,7 @@ public Builder clearWhenDeleted() { * VolumeClaimTemplates when the StatefulSet is deleted. The default policy * of `Retain` causes PVCs to not be affected by StatefulSet deletion. The * `Delete` policy causes those PVCs to be deleted. + * +optional *
* * optional string whenDeleted = 1; @@ -36968,6 +37256,7 @@ public Builder setWhenDeletedBytes( * policy of `Retain` causes PVCs to not be affected by a scaledown. The * `Delete` policy causes the associated PVCs for any excess pods above * the replica count to be deleted. + * +optional *
* * optional string whenScaled = 2; @@ -36982,6 +37271,7 @@ public boolean hasWhenScaled() { * policy of `Retain` causes PVCs to not be affected by a scaledown. The * `Delete` policy causes the associated PVCs for any excess pods above * the replica count to be deleted. + * +optional *
* * optional string whenScaled = 2; @@ -37007,6 +37297,7 @@ public java.lang.String getWhenScaled() { * policy of `Retain` causes PVCs to not be affected by a scaledown. The * `Delete` policy causes the associated PVCs for any excess pods above * the replica count to be deleted. + * +optional *
* * optional string whenScaled = 2; @@ -37031,6 +37322,7 @@ public java.lang.String getWhenScaled() { * policy of `Retain` causes PVCs to not be affected by a scaledown. The * `Delete` policy causes the associated PVCs for any excess pods above * the replica count to be deleted. + * +optional *
* * optional string whenScaled = 2; @@ -37052,6 +37344,7 @@ public Builder setWhenScaled( * policy of `Retain` causes PVCs to not be affected by a scaledown. The * `Delete` policy causes the associated PVCs for any excess pods above * the replica count to be deleted. + * +optional *
* * optional string whenScaled = 2; @@ -37069,6 +37362,7 @@ public Builder clearWhenScaled() { * policy of `Retain` causes PVCs to not be affected by a scaledown. The * `Delete` policy causes the associated PVCs for any excess pods above * the replica count to be deleted. + * +optional *
* * optional string whenScaled = 2; @@ -37172,6 +37466,9 @@ public interface StatefulSetSpecOrBuilder extends * selector is a label query over pods that should match the replica count. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required + * +k8s:alpha(since: "1.37")=+k8s:required + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -37182,6 +37479,9 @@ public interface StatefulSetSpecOrBuilder extends * selector is a label query over pods that should match the replica count. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required + * +k8s:alpha(since: "1.37")=+k8s:required + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -37192,6 +37492,9 @@ public interface StatefulSetSpecOrBuilder extends * selector is a label query over pods that should match the replica count. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required + * +k8s:alpha(since: "1.37")=+k8s:required + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -37207,6 +37510,7 @@ public interface StatefulSetSpecOrBuilder extends * <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named * "web" with index number "3" would be named "web-3". * The only allowed template.spec.restartPolicy value is "Always". + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -37221,6 +37525,7 @@ public interface StatefulSetSpecOrBuilder extends * <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named * "web" with index number "3" would be named "web-3". * The only allowed template.spec.restartPolicy value is "Always". + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -37235,6 +37540,7 @@ public interface StatefulSetSpecOrBuilder extends * <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named * "web" with index number "3" would be named "web-3". * The only allowed template.spec.restartPolicy value is "Always". + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -37251,6 +37557,8 @@ public interface StatefulSetSpecOrBuilder extends * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -37268,6 +37576,8 @@ public interface StatefulSetSpecOrBuilder extends * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -37284,6 +37594,8 @@ public interface StatefulSetSpecOrBuilder extends * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -37300,6 +37612,8 @@ public interface StatefulSetSpecOrBuilder extends * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -37317,6 +37631,8 @@ public interface StatefulSetSpecOrBuilder extends * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -37333,6 +37649,8 @@ io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getVolumeClaimTempl * pattern: pod-specific-string.serviceName.default.svc.cluster.local * where "pod-specific-string" is managed by the StatefulSet controller. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string serviceName = 5; @@ -37346,6 +37664,8 @@ io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getVolumeClaimTempl * pattern: pod-specific-string.serviceName.default.svc.cluster.local * where "pod-specific-string" is managed by the StatefulSet controller. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string serviceName = 5; @@ -37359,6 +37679,8 @@ io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getVolumeClaimTempl * pattern: pod-specific-string.serviceName.default.svc.cluster.local * where "pod-specific-string" is managed by the StatefulSet controller. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string serviceName = 5; @@ -37377,6 +37699,8 @@ io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getVolumeClaimTempl * to match the desired scale without waiting, and on scale down will delete * all pods at once. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string podManagementPolicy = 6; @@ -37393,6 +37717,8 @@ io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getVolumeClaimTempl * to match the desired scale without waiting, and on scale down will delete * all pods at once. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string podManagementPolicy = 6; @@ -37409,6 +37735,8 @@ io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getVolumeClaimTempl * to match the desired scale without waiting, and on scale down will delete * all pods at once. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string podManagementPolicy = 6; @@ -37421,6 +37749,7 @@ io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getVolumeClaimTempl * updateStrategy indicates the StatefulSetUpdateStrategy that will be * employed to update Pods in the StatefulSet when a revision is made to * Template. + * +optional *
* * optional .k8s.io.api.apps.v1.StatefulSetUpdateStrategy updateStrategy = 7; @@ -37431,6 +37760,7 @@ io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getVolumeClaimTempl * updateStrategy indicates the StatefulSetUpdateStrategy that will be * employed to update Pods in the StatefulSet when a revision is made to * Template. + * +optional *
* * optional .k8s.io.api.apps.v1.StatefulSetUpdateStrategy updateStrategy = 7; @@ -37441,6 +37771,7 @@ io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getVolumeClaimTempl * updateStrategy indicates the StatefulSetUpdateStrategy that will be * employed to update Pods in the StatefulSet when a revision is made to * Template. + * +optional *
* * optional .k8s.io.api.apps.v1.StatefulSetUpdateStrategy updateStrategy = 7; @@ -37453,6 +37784,7 @@ io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getVolumeClaimTempl * be maintained in the StatefulSet's revision history. The revision history * consists of all revisions not represented by a currently applied * StatefulSetSpec version. The default value is 10. + * +optional *
* * optional int32 revisionHistoryLimit = 8; @@ -37464,6 +37796,7 @@ io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getVolumeClaimTempl * be maintained in the StatefulSet's revision history. The revision history * consists of all revisions not represented by a currently applied * StatefulSetSpec version. The default value is 10. + * +optional *
* * optional int32 revisionHistoryLimit = 8; @@ -37796,6 +38129,9 @@ public int getReplicas() { * selector is a label query over pods that should match the replica count. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required + * +k8s:alpha(since: "1.37")=+k8s:required + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -37808,6 +38144,9 @@ public boolean hasSelector() { * selector is a label query over pods that should match the replica count. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required + * +k8s:alpha(since: "1.37")=+k8s:required + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -37820,6 +38159,9 @@ public io.kubernetes.client.proto.Meta.LabelSelector getSelector() { * selector is a label query over pods that should match the replica count. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required + * +k8s:alpha(since: "1.37")=+k8s:required + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -37839,6 +38181,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuild * <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named * "web" with index number "3" would be named "web-3". * The only allowed template.spec.restartPolicy value is "Always". + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -37855,6 +38198,7 @@ public boolean hasTemplate() { * <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named * "web" with index number "3" would be named "web-3". * The only allowed template.spec.restartPolicy value is "Always". + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -37871,6 +38215,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpec getTemplate() { * <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named * "web" with index number "3" would be named "web-3". * The only allowed template.spec.restartPolicy value is "Always". + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -37891,6 +38236,8 @@ public io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder getTemplateOrBuild * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -37909,6 +38256,8 @@ public java.util.List getVo * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -37928,6 +38277,8 @@ public java.util.List getVo * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -37946,6 +38297,8 @@ public int getVolumeClaimTemplatesCount() { * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -37964,6 +38317,8 @@ public io.kubernetes.client.proto.V1.PersistentVolumeClaim getVolumeClaimTemplat * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -37984,6 +38339,8 @@ public io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getVolumeCla * pattern: pod-specific-string.serviceName.default.svc.cluster.local * where "pod-specific-string" is managed by the StatefulSet controller. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string serviceName = 5; @@ -37999,6 +38356,8 @@ public boolean hasServiceName() { * pattern: pod-specific-string.serviceName.default.svc.cluster.local * where "pod-specific-string" is managed by the StatefulSet controller. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string serviceName = 5; @@ -38025,6 +38384,8 @@ public java.lang.String getServiceName() { * pattern: pod-specific-string.serviceName.default.svc.cluster.local * where "pod-specific-string" is managed by the StatefulSet controller. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string serviceName = 5; @@ -38056,6 +38417,8 @@ public java.lang.String getServiceName() { * to match the desired scale without waiting, and on scale down will delete * all pods at once. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string podManagementPolicy = 6; @@ -38074,6 +38437,8 @@ public boolean hasPodManagementPolicy() { * to match the desired scale without waiting, and on scale down will delete * all pods at once. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string podManagementPolicy = 6; @@ -38103,6 +38468,8 @@ public java.lang.String getPodManagementPolicy() { * to match the desired scale without waiting, and on scale down will delete * all pods at once. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string podManagementPolicy = 6; @@ -38128,6 +38495,7 @@ public java.lang.String getPodManagementPolicy() { * updateStrategy indicates the StatefulSetUpdateStrategy that will be * employed to update Pods in the StatefulSet when a revision is made to * Template. + * +optional *
* * optional .k8s.io.api.apps.v1.StatefulSetUpdateStrategy updateStrategy = 7; @@ -38140,6 +38508,7 @@ public boolean hasUpdateStrategy() { * updateStrategy indicates the StatefulSetUpdateStrategy that will be * employed to update Pods in the StatefulSet when a revision is made to * Template. + * +optional *
* * optional .k8s.io.api.apps.v1.StatefulSetUpdateStrategy updateStrategy = 7; @@ -38152,6 +38521,7 @@ public io.kubernetes.client.proto.V1Apps.StatefulSetUpdateStrategy getUpdateStra * updateStrategy indicates the StatefulSetUpdateStrategy that will be * employed to update Pods in the StatefulSet when a revision is made to * Template. + * +optional *
* * optional .k8s.io.api.apps.v1.StatefulSetUpdateStrategy updateStrategy = 7; @@ -38168,6 +38538,7 @@ public io.kubernetes.client.proto.V1Apps.StatefulSetUpdateStrategyOrBuilder getU * be maintained in the StatefulSet's revision history. The revision history * consists of all revisions not represented by a currently applied * StatefulSetSpec version. The default value is 10. + * +optional *
* * optional int32 revisionHistoryLimit = 8; @@ -38181,6 +38552,7 @@ public boolean hasRevisionHistoryLimit() { * be maintained in the StatefulSet's revision history. The revision history * consists of all revisions not represented by a currently applied * StatefulSetSpec version. The default value is 10. + * +optional *
* * optional int32 revisionHistoryLimit = 8; @@ -39033,6 +39405,9 @@ public Builder clearReplicas() { * selector is a label query over pods that should match the replica count. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required + * +k8s:alpha(since: "1.37")=+k8s:required + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -39045,6 +39420,9 @@ public boolean hasSelector() { * selector is a label query over pods that should match the replica count. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required + * +k8s:alpha(since: "1.37")=+k8s:required + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -39061,6 +39439,9 @@ public io.kubernetes.client.proto.Meta.LabelSelector getSelector() { * selector is a label query over pods that should match the replica count. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required + * +k8s:alpha(since: "1.37")=+k8s:required + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -39083,6 +39464,9 @@ public Builder setSelector(io.kubernetes.client.proto.Meta.LabelSelector value) * selector is a label query over pods that should match the replica count. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required + * +k8s:alpha(since: "1.37")=+k8s:required + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -39103,6 +39487,9 @@ public Builder setSelector( * selector is a label query over pods that should match the replica count. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required + * +k8s:alpha(since: "1.37")=+k8s:required + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -39129,6 +39516,9 @@ public Builder mergeSelector(io.kubernetes.client.proto.Meta.LabelSelector value * selector is a label query over pods that should match the replica count. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required + * +k8s:alpha(since: "1.37")=+k8s:required + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -39148,6 +39538,9 @@ public Builder clearSelector() { * selector is a label query over pods that should match the replica count. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required + * +k8s:alpha(since: "1.37")=+k8s:required + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -39162,6 +39555,9 @@ public io.kubernetes.client.proto.Meta.LabelSelector.Builder getSelectorBuilder( * selector is a label query over pods that should match the replica count. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required + * +k8s:alpha(since: "1.37")=+k8s:required + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -39179,6 +39575,9 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuild * selector is a label query over pods that should match the replica count. * It must match the pod template's labels. * More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * +required + * +k8s:alpha(since: "1.37")=+k8s:required + * +k8s:alpha(since: "1.37")=+k8s:immutable *
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2; @@ -39209,6 +39608,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getSelectorOrBuild * <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named * "web" with index number "3" would be named "web-3". * The only allowed template.spec.restartPolicy value is "Always". + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -39225,6 +39625,7 @@ public boolean hasTemplate() { * <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named * "web" with index number "3" would be named "web-3". * The only allowed template.spec.restartPolicy value is "Always". + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -39245,6 +39646,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpec getTemplate() { * <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named * "web" with index number "3" would be named "web-3". * The only allowed template.spec.restartPolicy value is "Always". + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -39271,6 +39673,7 @@ public Builder setTemplate(io.kubernetes.client.proto.V1.PodTemplateSpec value) * <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named * "web" with index number "3" would be named "web-3". * The only allowed template.spec.restartPolicy value is "Always". + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -39295,6 +39698,7 @@ public Builder setTemplate( * <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named * "web" with index number "3" would be named "web-3". * The only allowed template.spec.restartPolicy value is "Always". + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -39325,6 +39729,7 @@ public Builder mergeTemplate(io.kubernetes.client.proto.V1.PodTemplateSpec value * <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named * "web" with index number "3" would be named "web-3". * The only allowed template.spec.restartPolicy value is "Always". + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -39348,6 +39753,7 @@ public Builder clearTemplate() { * <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named * "web" with index number "3" would be named "web-3". * The only allowed template.spec.restartPolicy value is "Always". + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -39366,6 +39772,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpec.Builder getTemplateBuilder( * <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named * "web" with index number "3" would be named "web-3". * The only allowed template.spec.restartPolicy value is "Always". + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -39387,6 +39794,7 @@ public io.kubernetes.client.proto.V1.PodTemplateSpecOrBuilder getTemplateOrBuild * <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named * "web" with index number "3" would be named "web-3". * The only allowed template.spec.restartPolicy value is "Always". + * +required *
* * optional .k8s.io.api.core.v1.PodTemplateSpec template = 3; @@ -39427,6 +39835,8 @@ private void ensureVolumeClaimTemplatesIsMutable() { * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39449,6 +39859,8 @@ public java.util.List getVo * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39471,6 +39883,8 @@ public int getVolumeClaimTemplatesCount() { * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39493,6 +39907,8 @@ public io.kubernetes.client.proto.V1.PersistentVolumeClaim getVolumeClaimTemplat * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39522,6 +39938,8 @@ public Builder setVolumeClaimTemplates( * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39548,6 +39966,8 @@ public Builder setVolumeClaimTemplates( * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39576,6 +39996,8 @@ public Builder addVolumeClaimTemplates(io.kubernetes.client.proto.V1.PersistentV * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39605,6 +40027,8 @@ public Builder addVolumeClaimTemplates( * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39631,6 +40055,8 @@ public Builder addVolumeClaimTemplates( * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39657,6 +40083,8 @@ public Builder addVolumeClaimTemplates( * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39684,6 +40112,8 @@ public Builder addAllVolumeClaimTemplates( * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39709,6 +40139,8 @@ public Builder clearVolumeClaimTemplates() { * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39734,6 +40166,8 @@ public Builder removeVolumeClaimTemplates(int index) { * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39753,6 +40187,8 @@ public io.kubernetes.client.proto.V1.PersistentVolumeClaim.Builder getVolumeClai * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39775,6 +40211,8 @@ public io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getVolumeCla * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39798,6 +40236,8 @@ public io.kubernetes.client.proto.V1.PersistentVolumeClaimOrBuilder getVolumeCla * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39817,6 +40257,8 @@ public io.kubernetes.client.proto.V1.PersistentVolumeClaim.Builder addVolumeClai * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39837,6 +40279,8 @@ public io.kubernetes.client.proto.V1.PersistentVolumeClaim.Builder addVolumeClai * any volumes in the template, with the same name. * TODO: Define the behavior if a claim already exists with the same name. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional * +listType=atomic *
* @@ -39870,6 +40314,8 @@ public io.kubernetes.client.proto.V1.PersistentVolumeClaim.Builder addVolumeClai * pattern: pod-specific-string.serviceName.default.svc.cluster.local * where "pod-specific-string" is managed by the StatefulSet controller. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string serviceName = 5; @@ -39885,6 +40331,8 @@ public boolean hasServiceName() { * pattern: pod-specific-string.serviceName.default.svc.cluster.local * where "pod-specific-string" is managed by the StatefulSet controller. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string serviceName = 5; @@ -39911,6 +40359,8 @@ public java.lang.String getServiceName() { * pattern: pod-specific-string.serviceName.default.svc.cluster.local * where "pod-specific-string" is managed by the StatefulSet controller. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string serviceName = 5; @@ -39936,6 +40386,8 @@ public java.lang.String getServiceName() { * pattern: pod-specific-string.serviceName.default.svc.cluster.local * where "pod-specific-string" is managed by the StatefulSet controller. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string serviceName = 5; @@ -39958,6 +40410,8 @@ public Builder setServiceName( * pattern: pod-specific-string.serviceName.default.svc.cluster.local * where "pod-specific-string" is managed by the StatefulSet controller. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string serviceName = 5; @@ -39976,6 +40430,8 @@ public Builder clearServiceName() { * pattern: pod-specific-string.serviceName.default.svc.cluster.local * where "pod-specific-string" is managed by the StatefulSet controller. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string serviceName = 5; @@ -40003,6 +40459,8 @@ public Builder setServiceNameBytes( * to match the desired scale without waiting, and on scale down will delete * all pods at once. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string podManagementPolicy = 6; @@ -40021,6 +40479,8 @@ public boolean hasPodManagementPolicy() { * to match the desired scale without waiting, and on scale down will delete * all pods at once. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string podManagementPolicy = 6; @@ -40050,6 +40510,8 @@ public java.lang.String getPodManagementPolicy() { * to match the desired scale without waiting, and on scale down will delete * all pods at once. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string podManagementPolicy = 6; @@ -40078,6 +40540,8 @@ public java.lang.String getPodManagementPolicy() { * to match the desired scale without waiting, and on scale down will delete * all pods at once. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string podManagementPolicy = 6; @@ -40103,6 +40567,8 @@ public Builder setPodManagementPolicy( * to match the desired scale without waiting, and on scale down will delete * all pods at once. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string podManagementPolicy = 6; @@ -40124,6 +40590,8 @@ public Builder clearPodManagementPolicy() { * to match the desired scale without waiting, and on scale down will delete * all pods at once. * +optional + * +k8s:alpha(since: "1.37")=+k8s:immutable + * +k8s:alpha(since: "1.37")=+k8s:optional *
* * optional string podManagementPolicy = 6; @@ -40147,6 +40615,7 @@ public Builder setPodManagementPolicyBytes( * updateStrategy indicates the StatefulSetUpdateStrategy that will be * employed to update Pods in the StatefulSet when a revision is made to * Template. + * +optional *
* * optional .k8s.io.api.apps.v1.StatefulSetUpdateStrategy updateStrategy = 7; @@ -40159,6 +40628,7 @@ public boolean hasUpdateStrategy() { * updateStrategy indicates the StatefulSetUpdateStrategy that will be * employed to update Pods in the StatefulSet when a revision is made to * Template. + * +optional *
* * optional .k8s.io.api.apps.v1.StatefulSetUpdateStrategy updateStrategy = 7; @@ -40175,6 +40645,7 @@ public io.kubernetes.client.proto.V1Apps.StatefulSetUpdateStrategy getUpdateStra * updateStrategy indicates the StatefulSetUpdateStrategy that will be * employed to update Pods in the StatefulSet when a revision is made to * Template. + * +optional *
* * optional .k8s.io.api.apps.v1.StatefulSetUpdateStrategy updateStrategy = 7; @@ -40197,6 +40668,7 @@ public Builder setUpdateStrategy(io.kubernetes.client.proto.V1Apps.StatefulSetUp * updateStrategy indicates the StatefulSetUpdateStrategy that will be * employed to update Pods in the StatefulSet when a revision is made to * Template. + * +optional *
* * optional .k8s.io.api.apps.v1.StatefulSetUpdateStrategy updateStrategy = 7; @@ -40217,6 +40689,7 @@ public Builder setUpdateStrategy( * updateStrategy indicates the StatefulSetUpdateStrategy that will be * employed to update Pods in the StatefulSet when a revision is made to * Template. + * +optional *
* * optional .k8s.io.api.apps.v1.StatefulSetUpdateStrategy updateStrategy = 7; @@ -40243,6 +40716,7 @@ public Builder mergeUpdateStrategy(io.kubernetes.client.proto.V1Apps.StatefulSet * updateStrategy indicates the StatefulSetUpdateStrategy that will be * employed to update Pods in the StatefulSet when a revision is made to * Template. + * +optional *
* * optional .k8s.io.api.apps.v1.StatefulSetUpdateStrategy updateStrategy = 7; @@ -40262,6 +40736,7 @@ public Builder clearUpdateStrategy() { * updateStrategy indicates the StatefulSetUpdateStrategy that will be * employed to update Pods in the StatefulSet when a revision is made to * Template. + * +optional *
* * optional .k8s.io.api.apps.v1.StatefulSetUpdateStrategy updateStrategy = 7; @@ -40276,6 +40751,7 @@ public io.kubernetes.client.proto.V1Apps.StatefulSetUpdateStrategy.Builder getUp * updateStrategy indicates the StatefulSetUpdateStrategy that will be * employed to update Pods in the StatefulSet when a revision is made to * Template. + * +optional *
* * optional .k8s.io.api.apps.v1.StatefulSetUpdateStrategy updateStrategy = 7; @@ -40293,6 +40769,7 @@ public io.kubernetes.client.proto.V1Apps.StatefulSetUpdateStrategyOrBuilder getU * updateStrategy indicates the StatefulSetUpdateStrategy that will be * employed to update Pods in the StatefulSet when a revision is made to * Template. + * +optional *
* * optional .k8s.io.api.apps.v1.StatefulSetUpdateStrategy updateStrategy = 7; @@ -40318,6 +40795,7 @@ public io.kubernetes.client.proto.V1Apps.StatefulSetUpdateStrategyOrBuilder getU * be maintained in the StatefulSet's revision history. The revision history * consists of all revisions not represented by a currently applied * StatefulSetSpec version. The default value is 10. + * +optional *
* * optional int32 revisionHistoryLimit = 8; @@ -40331,6 +40809,7 @@ public boolean hasRevisionHistoryLimit() { * be maintained in the StatefulSet's revision history. The revision history * consists of all revisions not represented by a currently applied * StatefulSetSpec version. The default value is 10. + * +optional *
* * optional int32 revisionHistoryLimit = 8; @@ -40344,6 +40823,7 @@ public int getRevisionHistoryLimit() { * be maintained in the StatefulSet's revision history. The revision history * consists of all revisions not represented by a currently applied * StatefulSetSpec version. The default value is 10. + * +optional *
* * optional int32 revisionHistoryLimit = 8; @@ -40360,6 +40840,7 @@ public Builder setRevisionHistoryLimit(int value) { * be maintained in the StatefulSet's revision history. The revision history * consists of all revisions not represented by a currently applied * StatefulSetSpec version. The default value is 10. + * +optional *
* * optional int32 revisionHistoryLimit = 8; diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Authentication.java b/proto/src/main/java/io/kubernetes/client/proto/V1Authentication.java index b54569bb3b..96a7b0dcbf 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V1Authentication.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Authentication.java @@ -1993,6 +1993,7 @@ public interface SelfSubjectReviewOrBuilder extends /** *
      * status is filled in by the server with the user attributes.
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.SelfSubjectReviewStatus status = 2; @@ -2001,6 +2002,7 @@ public interface SelfSubjectReviewOrBuilder extends /** *
      * status is filled in by the server with the user attributes.
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.SelfSubjectReviewStatus status = 2; @@ -2009,6 +2011,7 @@ public interface SelfSubjectReviewOrBuilder extends /** *
      * status is filled in by the server with the user attributes.
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.SelfSubjectReviewStatus status = 2; @@ -2020,6 +2023,7 @@ public interface SelfSubjectReviewOrBuilder extends * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. * When using impersonation, users will receive the user info of the user being impersonated. If impersonation or * request header authentication is used, any extra keys will have their case ignored and returned as lowercase. + * +k8s:supportsSubresource="/status" *
* * Protobuf type {@code k8s.io.api.authentication.v1.SelfSubjectReview} @@ -2163,6 +2167,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
      * status is filled in by the server with the user attributes.
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.SelfSubjectReviewStatus status = 2; @@ -2173,6 +2178,7 @@ public boolean hasStatus() { /** *
      * status is filled in by the server with the user attributes.
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.SelfSubjectReviewStatus status = 2; @@ -2183,6 +2189,7 @@ public io.kubernetes.client.proto.V1Authentication.SelfSubjectReviewStatus getSt /** *
      * status is filled in by the server with the user attributes.
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.SelfSubjectReviewStatus status = 2; @@ -2373,6 +2380,7 @@ protected Builder newBuilderForType( * SelfSubjectReview contains the user information that the kube-apiserver has about the user making this request. * When using impersonation, users will receive the user info of the user being impersonated. If impersonation or * request header authentication is used, any extra keys will have their case ignored and returned as lowercase. + * +k8s:supportsSubresource="/status" *
* * Protobuf type {@code k8s.io.api.authentication.v1.SelfSubjectReview} @@ -2733,6 +2741,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
        * status is filled in by the server with the user attributes.
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.SelfSubjectReviewStatus status = 2; @@ -2743,6 +2752,7 @@ public boolean hasStatus() { /** *
        * status is filled in by the server with the user attributes.
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.SelfSubjectReviewStatus status = 2; @@ -2757,6 +2767,7 @@ public io.kubernetes.client.proto.V1Authentication.SelfSubjectReviewStatus getSt /** *
        * status is filled in by the server with the user attributes.
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.SelfSubjectReviewStatus status = 2; @@ -2777,6 +2788,7 @@ public Builder setStatus(io.kubernetes.client.proto.V1Authentication.SelfSubject /** *
        * status is filled in by the server with the user attributes.
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.SelfSubjectReviewStatus status = 2; @@ -2795,6 +2807,7 @@ public Builder setStatus( /** *
        * status is filled in by the server with the user attributes.
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.SelfSubjectReviewStatus status = 2; @@ -2819,6 +2832,7 @@ public Builder mergeStatus(io.kubernetes.client.proto.V1Authentication.SelfSubje /** *
        * status is filled in by the server with the user attributes.
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.SelfSubjectReviewStatus status = 2; @@ -2836,6 +2850,7 @@ public Builder clearStatus() { /** *
        * status is filled in by the server with the user attributes.
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.SelfSubjectReviewStatus status = 2; @@ -2848,6 +2863,7 @@ public io.kubernetes.client.proto.V1Authentication.SelfSubjectReviewStatus.Build /** *
        * status is filled in by the server with the user attributes.
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.SelfSubjectReviewStatus status = 2; @@ -2863,6 +2879,7 @@ public io.kubernetes.client.proto.V1Authentication.SelfSubjectReviewStatusOrBuil /** *
        * status is filled in by the server with the user attributes.
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.SelfSubjectReviewStatus status = 2; @@ -3671,6 +3688,7 @@ public interface TokenRequestOrBuilder extends /** *
      * spec holds information about the request being evaluated
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2; @@ -3679,6 +3697,7 @@ public interface TokenRequestOrBuilder extends /** *
      * spec holds information about the request being evaluated
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2; @@ -3687,6 +3706,7 @@ public interface TokenRequestOrBuilder extends /** *
      * spec holds information about the request being evaluated
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2; @@ -3880,6 +3900,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
      * spec holds information about the request being evaluated
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2; @@ -3890,6 +3911,7 @@ public boolean hasSpec() { /** *
      * spec holds information about the request being evaluated
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2; @@ -3900,6 +3922,7 @@ public io.kubernetes.client.proto.V1Authentication.TokenRequestSpec getSpec() { /** *
      * spec holds information about the request being evaluated
+     * +optional
      * 
* * optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2; @@ -4518,6 +4541,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
        * spec holds information about the request being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2; @@ -4528,6 +4552,7 @@ public boolean hasSpec() { /** *
        * spec holds information about the request being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2; @@ -4542,6 +4567,7 @@ public io.kubernetes.client.proto.V1Authentication.TokenRequestSpec getSpec() { /** *
        * spec holds information about the request being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2; @@ -4562,6 +4588,7 @@ public Builder setSpec(io.kubernetes.client.proto.V1Authentication.TokenRequestS /** *
        * spec holds information about the request being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2; @@ -4580,6 +4607,7 @@ public Builder setSpec( /** *
        * spec holds information about the request being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2; @@ -4604,6 +4632,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Authentication.TokenReques /** *
        * spec holds information about the request being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2; @@ -4621,6 +4650,7 @@ public Builder clearSpec() { /** *
        * spec holds information about the request being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2; @@ -4633,6 +4663,7 @@ public io.kubernetes.client.proto.V1Authentication.TokenRequestSpec.Builder getS /** *
        * spec holds information about the request being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2; @@ -4648,6 +4679,7 @@ public io.kubernetes.client.proto.V1Authentication.TokenRequestSpecOrBuilder get /** *
        * spec holds information about the request being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.authentication.v1.TokenRequestSpec spec = 2; @@ -4893,6 +4925,7 @@ public interface TokenRequestSpecOrBuilder extends * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -4908,6 +4941,7 @@ public interface TokenRequestSpecOrBuilder extends * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -4922,6 +4956,7 @@ public interface TokenRequestSpecOrBuilder extends * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -4936,6 +4971,7 @@ public interface TokenRequestSpecOrBuilder extends * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -5125,6 +5161,7 @@ private TokenRequestSpec( * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -5142,6 +5179,7 @@ private TokenRequestSpec( * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -5158,6 +5196,7 @@ public int getAudiencesCount() { * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -5174,6 +5213,7 @@ public java.lang.String getAudiences(int index) { * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -5664,6 +5704,7 @@ private void ensureAudiencesIsMutable() { * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -5681,6 +5722,7 @@ private void ensureAudiencesIsMutable() { * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -5697,6 +5739,7 @@ public int getAudiencesCount() { * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -5713,6 +5756,7 @@ public java.lang.String getAudiences(int index) { * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -5730,6 +5774,7 @@ public java.lang.String getAudiences(int index) { * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -5753,6 +5798,7 @@ public Builder setAudiences( * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -5776,6 +5822,7 @@ public Builder addAudiences( * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -5797,6 +5844,7 @@ public Builder addAllAudiences( * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -5816,6 +5864,7 @@ public Builder clearAudiences() { * token issued for multiple audiences may be used to authenticate * against any of the audiences listed but implies a high degree of * trust between the target audiences. + * +optional * +listType=atomic *
* @@ -6150,6 +6199,7 @@ public interface TokenRequestStatusOrBuilder extends /** *
      * token is the opaque bearer token.
+     * +optional
      * 
* * optional string token = 1; @@ -6158,6 +6208,7 @@ public interface TokenRequestStatusOrBuilder extends /** *
      * token is the opaque bearer token.
+     * +optional
      * 
* * optional string token = 1; @@ -6166,6 +6217,7 @@ public interface TokenRequestStatusOrBuilder extends /** *
      * token is the opaque bearer token.
+     * +optional
      * 
* * optional string token = 1; @@ -6176,6 +6228,7 @@ public interface TokenRequestStatusOrBuilder extends /** *
      * expirationTimestamp is the time of expiration of the returned token.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; @@ -6184,6 +6237,7 @@ public interface TokenRequestStatusOrBuilder extends /** *
      * expirationTimestamp is the time of expiration of the returned token.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; @@ -6192,6 +6246,7 @@ public interface TokenRequestStatusOrBuilder extends /** *
      * expirationTimestamp is the time of expiration of the returned token.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; @@ -6299,6 +6354,7 @@ private TokenRequestStatus( /** *
      * token is the opaque bearer token.
+     * +optional
      * 
* * optional string token = 1; @@ -6309,6 +6365,7 @@ public boolean hasToken() { /** *
      * token is the opaque bearer token.
+     * +optional
      * 
* * optional string token = 1; @@ -6330,6 +6387,7 @@ public java.lang.String getToken() { /** *
      * token is the opaque bearer token.
+     * +optional
      * 
* * optional string token = 1; @@ -6353,6 +6411,7 @@ public java.lang.String getToken() { /** *
      * expirationTimestamp is the time of expiration of the returned token.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; @@ -6363,6 +6422,7 @@ public boolean hasExpirationTimestamp() { /** *
      * expirationTimestamp is the time of expiration of the returned token.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; @@ -6373,6 +6433,7 @@ public io.kubernetes.client.proto.Meta.Time getExpirationTimestamp() { /** *
      * expirationTimestamp is the time of expiration of the returned token.
+     * +optional
      * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; @@ -6739,6 +6800,7 @@ public Builder mergeFrom( /** *
        * token is the opaque bearer token.
+       * +optional
        * 
* * optional string token = 1; @@ -6749,6 +6811,7 @@ public boolean hasToken() { /** *
        * token is the opaque bearer token.
+       * +optional
        * 
* * optional string token = 1; @@ -6770,6 +6833,7 @@ public java.lang.String getToken() { /** *
        * token is the opaque bearer token.
+       * +optional
        * 
* * optional string token = 1; @@ -6790,6 +6854,7 @@ public java.lang.String getToken() { /** *
        * token is the opaque bearer token.
+       * +optional
        * 
* * optional string token = 1; @@ -6807,6 +6872,7 @@ public Builder setToken( /** *
        * token is the opaque bearer token.
+       * +optional
        * 
* * optional string token = 1; @@ -6820,6 +6886,7 @@ public Builder clearToken() { /** *
        * token is the opaque bearer token.
+       * +optional
        * 
* * optional string token = 1; @@ -6841,6 +6908,7 @@ public Builder setTokenBytes( /** *
        * expirationTimestamp is the time of expiration of the returned token.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; @@ -6851,6 +6919,7 @@ public boolean hasExpirationTimestamp() { /** *
        * expirationTimestamp is the time of expiration of the returned token.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; @@ -6865,6 +6934,7 @@ public io.kubernetes.client.proto.Meta.Time getExpirationTimestamp() { /** *
        * expirationTimestamp is the time of expiration of the returned token.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; @@ -6885,6 +6955,7 @@ public Builder setExpirationTimestamp(io.kubernetes.client.proto.Meta.Time value /** *
        * expirationTimestamp is the time of expiration of the returned token.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; @@ -6903,6 +6974,7 @@ public Builder setExpirationTimestamp( /** *
        * expirationTimestamp is the time of expiration of the returned token.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; @@ -6927,6 +6999,7 @@ public Builder mergeExpirationTimestamp(io.kubernetes.client.proto.Meta.Time val /** *
        * expirationTimestamp is the time of expiration of the returned token.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; @@ -6944,6 +7017,7 @@ public Builder clearExpirationTimestamp() { /** *
        * expirationTimestamp is the time of expiration of the returned token.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; @@ -6956,6 +7030,7 @@ public io.kubernetes.client.proto.Meta.Time.Builder getExpirationTimestampBuilde /** *
        * expirationTimestamp is the time of expiration of the returned token.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; @@ -6971,6 +7046,7 @@ public io.kubernetes.client.proto.Meta.TimeOrBuilder getExpirationTimestampOrBui /** *
        * expirationTimestamp is the time of expiration of the returned token.
+       * +optional
        * 
* * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time expirationTimestamp = 2; @@ -7079,6 +7155,7 @@ public interface TokenReviewOrBuilder extends /** *
      * spec holds information about the request being evaluated
+     * +required
      * 
* * optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2; @@ -7087,6 +7164,7 @@ public interface TokenReviewOrBuilder extends /** *
      * spec holds information about the request being evaluated
+     * +required
      * 
* * optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2; @@ -7095,6 +7173,7 @@ public interface TokenReviewOrBuilder extends /** *
      * spec holds information about the request being evaluated
+     * +required
      * 
* * optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2; @@ -7134,6 +7213,7 @@ public interface TokenReviewOrBuilder extends * TokenReview attempts to authenticate a token to a known user. * Note: TokenReview requests may be cached by the webhook token authenticator * plugin in the kube-apiserver. + * +k8s:supportsSubresource="/status" *
* * Protobuf type {@code k8s.io.api.authentication.v1.TokenReview} @@ -7290,6 +7370,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
      * spec holds information about the request being evaluated
+     * +required
      * 
* * optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2; @@ -7300,6 +7381,7 @@ public boolean hasSpec() { /** *
      * spec holds information about the request being evaluated
+     * +required
      * 
* * optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2; @@ -7310,6 +7392,7 @@ public io.kubernetes.client.proto.V1Authentication.TokenReviewSpec getSpec() { /** *
      * spec holds information about the request being evaluated
+     * +required
      * 
* * optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2; @@ -7552,6 +7635,7 @@ protected Builder newBuilderForType( * TokenReview attempts to authenticate a token to a known user. * Note: TokenReview requests may be cached by the webhook token authenticator * plugin in the kube-apiserver. + * +k8s:supportsSubresource="/status" *
* * Protobuf type {@code k8s.io.api.authentication.v1.TokenReview} @@ -7930,6 +8014,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
        * spec holds information about the request being evaluated
+       * +required
        * 
* * optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2; @@ -7940,6 +8025,7 @@ public boolean hasSpec() { /** *
        * spec holds information about the request being evaluated
+       * +required
        * 
* * optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2; @@ -7954,6 +8040,7 @@ public io.kubernetes.client.proto.V1Authentication.TokenReviewSpec getSpec() { /** *
        * spec holds information about the request being evaluated
+       * +required
        * 
* * optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2; @@ -7974,6 +8061,7 @@ public Builder setSpec(io.kubernetes.client.proto.V1Authentication.TokenReviewSp /** *
        * spec holds information about the request being evaluated
+       * +required
        * 
* * optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2; @@ -7992,6 +8080,7 @@ public Builder setSpec( /** *
        * spec holds information about the request being evaluated
+       * +required
        * 
* * optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2; @@ -8016,6 +8105,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Authentication.TokenReview /** *
        * spec holds information about the request being evaluated
+       * +required
        * 
* * optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2; @@ -8033,6 +8123,7 @@ public Builder clearSpec() { /** *
        * spec holds information about the request being evaluated
+       * +required
        * 
* * optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2; @@ -8045,6 +8136,7 @@ public io.kubernetes.client.proto.V1Authentication.TokenReviewSpec.Builder getSp /** *
        * spec holds information about the request being evaluated
+       * +required
        * 
* * optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2; @@ -8060,6 +8152,7 @@ public io.kubernetes.client.proto.V1Authentication.TokenReviewSpecOrBuilder getS /** *
        * spec holds information about the request being evaluated
+       * +required
        * 
* * optional .k8s.io.api.authentication.v1.TokenReviewSpec spec = 2; @@ -8300,7 +8393,7 @@ public interface TokenReviewSpecOrBuilder extends /** *
      * token is the opaque bearer token.
-     * +optional
+     * +required
      * 
* * optional string token = 1; @@ -8309,7 +8402,7 @@ public interface TokenReviewSpecOrBuilder extends /** *
      * token is the opaque bearer token.
-     * +optional
+     * +required
      * 
* * optional string token = 1; @@ -8318,7 +8411,7 @@ public interface TokenReviewSpecOrBuilder extends /** *
      * token is the opaque bearer token.
-     * +optional
+     * +required
      * 
* * optional string token = 1; @@ -8486,7 +8579,7 @@ private TokenReviewSpec( /** *
      * token is the opaque bearer token.
-     * +optional
+     * +required
      * 
* * optional string token = 1; @@ -8497,7 +8590,7 @@ public boolean hasToken() { /** *
      * token is the opaque bearer token.
-     * +optional
+     * +required
      * 
* * optional string token = 1; @@ -8519,7 +8612,7 @@ public java.lang.String getToken() { /** *
      * token is the opaque bearer token.
-     * +optional
+     * +required
      * 
* * optional string token = 1; @@ -8965,7 +9058,7 @@ public Builder mergeFrom( /** *
        * token is the opaque bearer token.
-       * +optional
+       * +required
        * 
* * optional string token = 1; @@ -8976,7 +9069,7 @@ public boolean hasToken() { /** *
        * token is the opaque bearer token.
-       * +optional
+       * +required
        * 
* * optional string token = 1; @@ -8998,7 +9091,7 @@ public java.lang.String getToken() { /** *
        * token is the opaque bearer token.
-       * +optional
+       * +required
        * 
* * optional string token = 1; @@ -9019,7 +9112,7 @@ public java.lang.String getToken() { /** *
        * token is the opaque bearer token.
-       * +optional
+       * +required
        * 
* * optional string token = 1; @@ -9037,7 +9130,7 @@ public Builder setToken( /** *
        * token is the opaque bearer token.
-       * +optional
+       * +required
        * 
* * optional string token = 1; @@ -9051,7 +9144,7 @@ public Builder clearToken() { /** *
        * token is the opaque bearer token.
-       * +optional
+       * +required
        * 
* * optional string token = 1; diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Authorization.java b/proto/src/main/java/io/kubernetes/client/proto/V1Authorization.java index 86a52cc8aa..ed838fc727 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V1Authorization.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Authorization.java @@ -3315,7 +3315,7 @@ public interface LocalSubjectAccessReviewOrBuilder extends /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -3325,7 +3325,7 @@ public interface LocalSubjectAccessReviewOrBuilder extends boolean hasMetadata(); /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -3335,7 +3335,7 @@ public interface LocalSubjectAccessReviewOrBuilder extends io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -3346,7 +3346,7 @@ public interface LocalSubjectAccessReviewOrBuilder extends /** *
-     * Spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
+     * spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
      * you made the request against.  If empty, it is defaulted.
      * 
* @@ -3355,7 +3355,7 @@ public interface LocalSubjectAccessReviewOrBuilder extends boolean hasSpec(); /** *
-     * Spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
+     * spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
      * you made the request against.  If empty, it is defaulted.
      * 
* @@ -3364,7 +3364,7 @@ public interface LocalSubjectAccessReviewOrBuilder extends io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec getSpec(); /** *
-     * Spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
+     * spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
      * you made the request against.  If empty, it is defaulted.
      * 
* @@ -3374,7 +3374,7 @@ public interface LocalSubjectAccessReviewOrBuilder extends /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -3383,7 +3383,7 @@ public interface LocalSubjectAccessReviewOrBuilder extends boolean hasStatus(); /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -3392,7 +3392,7 @@ public interface LocalSubjectAccessReviewOrBuilder extends io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus getStatus(); /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -3405,6 +3405,7 @@ public interface LocalSubjectAccessReviewOrBuilder extends * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. * Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions * checking. + * +k8s:supportsSubresource="/status" *
* * Protobuf type {@code k8s.io.api.authorization.v1.LocalSubjectAccessReview} @@ -3521,7 +3522,7 @@ private LocalSubjectAccessReview( private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -3533,7 +3534,7 @@ public boolean hasMetadata() { } /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -3545,7 +3546,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -3560,7 +3561,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( private io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec spec_; /** *
-     * Spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
+     * spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
      * you made the request against.  If empty, it is defaulted.
      * 
* @@ -3571,7 +3572,7 @@ public boolean hasSpec() { } /** *
-     * Spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
+     * spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
      * you made the request against.  If empty, it is defaulted.
      * 
* @@ -3582,7 +3583,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec getSpe } /** *
-     * Spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
+     * spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
      * you made the request against.  If empty, it is defaulted.
      * 
* @@ -3596,7 +3597,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpecOrBuild private io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus status_; /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -3607,7 +3608,7 @@ public boolean hasStatus() { } /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -3618,7 +3619,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus getS } /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -3826,6 +3827,7 @@ protected Builder newBuilderForType( * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. * Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions * checking. + * +k8s:supportsSubresource="/status" *
* * Protobuf type {@code k8s.io.api.authorization.v1.LocalSubjectAccessReview} @@ -4031,7 +4033,7 @@ public Builder mergeFrom( io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -4043,7 +4045,7 @@ public boolean hasMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -4059,7 +4061,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -4081,7 +4083,7 @@ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -4101,7 +4103,7 @@ public Builder setMetadata( } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -4127,7 +4129,7 @@ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -4146,7 +4148,7 @@ public Builder clearMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -4160,7 +4162,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -4177,7 +4179,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -4203,7 +4205,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec, io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec.Builder, io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpecOrBuilder> specBuilder_; /** *
-       * Spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
+       * spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
        * you made the request against.  If empty, it is defaulted.
        * 
* @@ -4214,7 +4216,7 @@ public boolean hasSpec() { } /** *
-       * Spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
+       * spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
        * you made the request against.  If empty, it is defaulted.
        * 
* @@ -4229,7 +4231,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec getSpe } /** *
-       * Spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
+       * spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
        * you made the request against.  If empty, it is defaulted.
        * 
* @@ -4250,7 +4252,7 @@ public Builder setSpec(io.kubernetes.client.proto.V1Authorization.SubjectAccessR } /** *
-       * Spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
+       * spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
        * you made the request against.  If empty, it is defaulted.
        * 
* @@ -4269,7 +4271,7 @@ public Builder setSpec( } /** *
-       * Spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
+       * spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
        * you made the request against.  If empty, it is defaulted.
        * 
* @@ -4294,7 +4296,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Authorization.SubjectAcces } /** *
-       * Spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
+       * spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
        * you made the request against.  If empty, it is defaulted.
        * 
* @@ -4312,7 +4314,7 @@ public Builder clearSpec() { } /** *
-       * Spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
+       * spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
        * you made the request against.  If empty, it is defaulted.
        * 
* @@ -4325,7 +4327,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec.Builde } /** *
-       * Spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
+       * spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
        * you made the request against.  If empty, it is defaulted.
        * 
* @@ -4341,7 +4343,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpecOrBuild } /** *
-       * Spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
+       * spec holds information about the request being evaluated.  spec.namespace must be equal to the namespace
        * you made the request against.  If empty, it is defaulted.
        * 
* @@ -4366,7 +4368,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpecOrBuild io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus, io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus.Builder, io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatusOrBuilder> statusBuilder_; /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -4377,7 +4379,7 @@ public boolean hasStatus() { } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -4392,7 +4394,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus getS } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -4413,7 +4415,7 @@ public Builder setStatus(io.kubernetes.client.proto.V1Authorization.SubjectAcces } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -4432,7 +4434,7 @@ public Builder setStatus( } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -4457,7 +4459,7 @@ public Builder mergeStatus(io.kubernetes.client.proto.V1Authorization.SubjectAcc } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -4475,7 +4477,7 @@ public Builder clearStatus() { } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -4488,7 +4490,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus.Buil } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -4504,7 +4506,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatusOrBui } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -4582,7 +4584,7 @@ public interface NonResourceAttributesOrBuilder extends /** *
-     * Path is the URL path of the request
+     * path is the URL path of the request
      * +optional
      * 
* @@ -4591,7 +4593,7 @@ public interface NonResourceAttributesOrBuilder extends boolean hasPath(); /** *
-     * Path is the URL path of the request
+     * path is the URL path of the request
      * +optional
      * 
* @@ -4600,7 +4602,7 @@ public interface NonResourceAttributesOrBuilder extends java.lang.String getPath(); /** *
-     * Path is the URL path of the request
+     * path is the URL path of the request
      * +optional
      * 
* @@ -4611,7 +4613,7 @@ public interface NonResourceAttributesOrBuilder extends /** *
-     * Verb is the standard HTTP verb
+     * verb is the standard HTTP verb
      * +optional
      * 
* @@ -4620,7 +4622,7 @@ public interface NonResourceAttributesOrBuilder extends boolean hasVerb(); /** *
-     * Verb is the standard HTTP verb
+     * verb is the standard HTTP verb
      * +optional
      * 
* @@ -4629,7 +4631,7 @@ public interface NonResourceAttributesOrBuilder extends java.lang.String getVerb(); /** *
-     * Verb is the standard HTTP verb
+     * verb is the standard HTTP verb
      * +optional
      * 
* @@ -4732,7 +4734,7 @@ private NonResourceAttributes( private volatile java.lang.Object path_; /** *
-     * Path is the URL path of the request
+     * path is the URL path of the request
      * +optional
      * 
* @@ -4743,7 +4745,7 @@ public boolean hasPath() { } /** *
-     * Path is the URL path of the request
+     * path is the URL path of the request
      * +optional
      * 
* @@ -4765,7 +4767,7 @@ public java.lang.String getPath() { } /** *
-     * Path is the URL path of the request
+     * path is the URL path of the request
      * +optional
      * 
* @@ -4789,7 +4791,7 @@ public java.lang.String getPath() { private volatile java.lang.Object verb_; /** *
-     * Verb is the standard HTTP verb
+     * verb is the standard HTTP verb
      * +optional
      * 
* @@ -4800,7 +4802,7 @@ public boolean hasVerb() { } /** *
-     * Verb is the standard HTTP verb
+     * verb is the standard HTTP verb
      * +optional
      * 
* @@ -4822,7 +4824,7 @@ public java.lang.String getVerb() { } /** *
-     * Verb is the standard HTTP verb
+     * verb is the standard HTTP verb
      * +optional
      * 
* @@ -5191,7 +5193,7 @@ public Builder mergeFrom( private java.lang.Object path_ = ""; /** *
-       * Path is the URL path of the request
+       * path is the URL path of the request
        * +optional
        * 
* @@ -5202,7 +5204,7 @@ public boolean hasPath() { } /** *
-       * Path is the URL path of the request
+       * path is the URL path of the request
        * +optional
        * 
* @@ -5224,7 +5226,7 @@ public java.lang.String getPath() { } /** *
-       * Path is the URL path of the request
+       * path is the URL path of the request
        * +optional
        * 
* @@ -5245,7 +5247,7 @@ public java.lang.String getPath() { } /** *
-       * Path is the URL path of the request
+       * path is the URL path of the request
        * +optional
        * 
* @@ -5263,7 +5265,7 @@ public Builder setPath( } /** *
-       * Path is the URL path of the request
+       * path is the URL path of the request
        * +optional
        * 
* @@ -5277,7 +5279,7 @@ public Builder clearPath() { } /** *
-       * Path is the URL path of the request
+       * path is the URL path of the request
        * +optional
        * 
* @@ -5297,7 +5299,7 @@ public Builder setPathBytes( private java.lang.Object verb_ = ""; /** *
-       * Verb is the standard HTTP verb
+       * verb is the standard HTTP verb
        * +optional
        * 
* @@ -5308,7 +5310,7 @@ public boolean hasVerb() { } /** *
-       * Verb is the standard HTTP verb
+       * verb is the standard HTTP verb
        * +optional
        * 
* @@ -5330,7 +5332,7 @@ public java.lang.String getVerb() { } /** *
-       * Verb is the standard HTTP verb
+       * verb is the standard HTTP verb
        * +optional
        * 
* @@ -5351,7 +5353,7 @@ public java.lang.String getVerb() { } /** *
-       * Verb is the standard HTTP verb
+       * verb is the standard HTTP verb
        * +optional
        * 
* @@ -5369,7 +5371,7 @@ public Builder setVerb( } /** *
-       * Verb is the standard HTTP verb
+       * verb is the standard HTTP verb
        * +optional
        * 
* @@ -5383,7 +5385,7 @@ public Builder clearVerb() { } /** *
-       * Verb is the standard HTTP verb
+       * verb is the standard HTTP verb
        * +optional
        * 
* @@ -5458,7 +5460,7 @@ public interface NonResourceRuleOrBuilder extends /** *
-     * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+     * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
      * +listType=atomic
      * 
* @@ -5468,7 +5470,7 @@ public interface NonResourceRuleOrBuilder extends getVerbsList(); /** *
-     * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+     * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
      * +listType=atomic
      * 
* @@ -5477,7 +5479,7 @@ public interface NonResourceRuleOrBuilder extends int getVerbsCount(); /** *
-     * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+     * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
      * +listType=atomic
      * 
* @@ -5486,7 +5488,7 @@ public interface NonResourceRuleOrBuilder extends java.lang.String getVerbs(int index); /** *
-     * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+     * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
      * +listType=atomic
      * 
* @@ -5497,7 +5499,7 @@ public interface NonResourceRuleOrBuilder extends /** *
-     * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+     * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
      * final step in the path.  "*" means all.
      * +optional
      * +listType=atomic
@@ -5509,7 +5511,7 @@ public interface NonResourceRuleOrBuilder extends
         getNonResourceURLsList();
     /**
      * 
-     * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+     * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
      * final step in the path.  "*" means all.
      * +optional
      * +listType=atomic
@@ -5520,7 +5522,7 @@ public interface NonResourceRuleOrBuilder extends
     int getNonResourceURLsCount();
     /**
      * 
-     * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+     * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
      * final step in the path.  "*" means all.
      * +optional
      * +listType=atomic
@@ -5531,7 +5533,7 @@ public interface NonResourceRuleOrBuilder extends
     java.lang.String getNonResourceURLs(int index);
     /**
      * 
-     * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+     * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
      * final step in the path.  "*" means all.
      * +optional
      * +listType=atomic
@@ -5647,7 +5649,7 @@ private NonResourceRule(
     private com.google.protobuf.LazyStringList verbs_;
     /**
      * 
-     * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+     * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
      * +listType=atomic
      * 
* @@ -5659,7 +5661,7 @@ private NonResourceRule( } /** *
-     * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+     * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
      * +listType=atomic
      * 
* @@ -5670,7 +5672,7 @@ public int getVerbsCount() { } /** *
-     * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+     * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
      * +listType=atomic
      * 
* @@ -5681,7 +5683,7 @@ public java.lang.String getVerbs(int index) { } /** *
-     * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+     * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
      * +listType=atomic
      * 
* @@ -5696,7 +5698,7 @@ public java.lang.String getVerbs(int index) { private com.google.protobuf.LazyStringList nonResourceURLs_; /** *
-     * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+     * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
      * final step in the path.  "*" means all.
      * +optional
      * +listType=atomic
@@ -5710,7 +5712,7 @@ public java.lang.String getVerbs(int index) {
     }
     /**
      * 
-     * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+     * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
      * final step in the path.  "*" means all.
      * +optional
      * +listType=atomic
@@ -5723,7 +5725,7 @@ public int getNonResourceURLsCount() {
     }
     /**
      * 
-     * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+     * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
      * final step in the path.  "*" means all.
      * +optional
      * +listType=atomic
@@ -5736,7 +5738,7 @@ public java.lang.String getNonResourceURLs(int index) {
     }
     /**
      * 
-     * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+     * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
      * final step in the path.  "*" means all.
      * +optional
      * +listType=atomic
@@ -6118,7 +6120,7 @@ private void ensureVerbsIsMutable() {
       }
       /**
        * 
-       * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+       * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
        * +listType=atomic
        * 
* @@ -6130,7 +6132,7 @@ private void ensureVerbsIsMutable() { } /** *
-       * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+       * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
        * +listType=atomic
        * 
* @@ -6141,7 +6143,7 @@ public int getVerbsCount() { } /** *
-       * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+       * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
        * +listType=atomic
        * 
* @@ -6152,7 +6154,7 @@ public java.lang.String getVerbs(int index) { } /** *
-       * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+       * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
        * +listType=atomic
        * 
* @@ -6164,7 +6166,7 @@ public java.lang.String getVerbs(int index) { } /** *
-       * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+       * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
        * +listType=atomic
        * 
* @@ -6182,7 +6184,7 @@ public Builder setVerbs( } /** *
-       * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+       * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
        * +listType=atomic
        * 
* @@ -6200,7 +6202,7 @@ public Builder addVerbs( } /** *
-       * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+       * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
        * +listType=atomic
        * 
* @@ -6216,7 +6218,7 @@ public Builder addAllVerbs( } /** *
-       * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+       * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
        * +listType=atomic
        * 
* @@ -6230,7 +6232,7 @@ public Builder clearVerbs() { } /** *
-       * Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
+       * verbs is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options.  "*" means all.
        * +listType=atomic
        * 
* @@ -6256,7 +6258,7 @@ private void ensureNonResourceURLsIsMutable() { } /** *
-       * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+       * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
        * final step in the path.  "*" means all.
        * +optional
        * +listType=atomic
@@ -6270,7 +6272,7 @@ private void ensureNonResourceURLsIsMutable() {
       }
       /**
        * 
-       * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+       * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
        * final step in the path.  "*" means all.
        * +optional
        * +listType=atomic
@@ -6283,7 +6285,7 @@ public int getNonResourceURLsCount() {
       }
       /**
        * 
-       * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+       * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
        * final step in the path.  "*" means all.
        * +optional
        * +listType=atomic
@@ -6296,7 +6298,7 @@ public java.lang.String getNonResourceURLs(int index) {
       }
       /**
        * 
-       * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+       * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
        * final step in the path.  "*" means all.
        * +optional
        * +listType=atomic
@@ -6310,7 +6312,7 @@ public java.lang.String getNonResourceURLs(int index) {
       }
       /**
        * 
-       * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+       * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
        * final step in the path.  "*" means all.
        * +optional
        * +listType=atomic
@@ -6330,7 +6332,7 @@ public Builder setNonResourceURLs(
       }
       /**
        * 
-       * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+       * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
        * final step in the path.  "*" means all.
        * +optional
        * +listType=atomic
@@ -6350,7 +6352,7 @@ public Builder addNonResourceURLs(
       }
       /**
        * 
-       * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+       * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
        * final step in the path.  "*" means all.
        * +optional
        * +listType=atomic
@@ -6368,7 +6370,7 @@ public Builder addAllNonResourceURLs(
       }
       /**
        * 
-       * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+       * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
        * final step in the path.  "*" means all.
        * +optional
        * +listType=atomic
@@ -6384,7 +6386,7 @@ public Builder clearNonResourceURLs() {
       }
       /**
        * 
-       * NonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
+       * nonResourceURLs is a set of partial urls that a user should have access to.  *s are allowed, but only as the full,
        * final step in the path.  "*" means all.
        * +optional
        * +listType=atomic
@@ -6461,7 +6463,7 @@ public interface ResourceAttributesOrBuilder extends
 
     /**
      * 
-     * Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
+     * namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
      * "" (empty) is defaulted for LocalSubjectAccessReviews
      * "" (empty) is empty for cluster-scoped resources
      * "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
@@ -6473,7 +6475,7 @@ public interface ResourceAttributesOrBuilder extends
     boolean hasNamespace();
     /**
      * 
-     * Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
+     * namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
      * "" (empty) is defaulted for LocalSubjectAccessReviews
      * "" (empty) is empty for cluster-scoped resources
      * "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
@@ -6485,7 +6487,7 @@ public interface ResourceAttributesOrBuilder extends
     java.lang.String getNamespace();
     /**
      * 
-     * Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
+     * namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
      * "" (empty) is defaulted for LocalSubjectAccessReviews
      * "" (empty) is empty for cluster-scoped resources
      * "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
@@ -6499,7 +6501,7 @@ public interface ResourceAttributesOrBuilder extends
 
     /**
      * 
-     * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+     * verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
      * +optional
      * 
* @@ -6508,7 +6510,7 @@ public interface ResourceAttributesOrBuilder extends boolean hasVerb(); /** *
-     * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+     * verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
      * +optional
      * 
* @@ -6517,7 +6519,7 @@ public interface ResourceAttributesOrBuilder extends java.lang.String getVerb(); /** *
-     * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+     * verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
      * +optional
      * 
* @@ -6528,7 +6530,7 @@ public interface ResourceAttributesOrBuilder extends /** *
-     * Group is the API Group of the Resource.  "*" means all.
+     * group is the API Group of the Resource.  "*" means all.
      * +optional
      * 
* @@ -6537,7 +6539,7 @@ public interface ResourceAttributesOrBuilder extends boolean hasGroup(); /** *
-     * Group is the API Group of the Resource.  "*" means all.
+     * group is the API Group of the Resource.  "*" means all.
      * +optional
      * 
* @@ -6546,7 +6548,7 @@ public interface ResourceAttributesOrBuilder extends java.lang.String getGroup(); /** *
-     * Group is the API Group of the Resource.  "*" means all.
+     * group is the API Group of the Resource.  "*" means all.
      * +optional
      * 
* @@ -6557,7 +6559,7 @@ public interface ResourceAttributesOrBuilder extends /** *
-     * Version is the API Version of the Resource.  "*" means all.
+     * version is the API Version of the Resource.  "*" means all.
      * +optional
      * 
* @@ -6566,7 +6568,7 @@ public interface ResourceAttributesOrBuilder extends boolean hasVersion(); /** *
-     * Version is the API Version of the Resource.  "*" means all.
+     * version is the API Version of the Resource.  "*" means all.
      * +optional
      * 
* @@ -6575,7 +6577,7 @@ public interface ResourceAttributesOrBuilder extends java.lang.String getVersion(); /** *
-     * Version is the API Version of the Resource.  "*" means all.
+     * version is the API Version of the Resource.  "*" means all.
      * +optional
      * 
* @@ -6586,7 +6588,7 @@ public interface ResourceAttributesOrBuilder extends /** *
-     * Resource is one of the existing resource types.  "*" means all.
+     * resource is one of the existing resource types.  "*" means all.
      * +optional
      * 
* @@ -6595,7 +6597,7 @@ public interface ResourceAttributesOrBuilder extends boolean hasResource(); /** *
-     * Resource is one of the existing resource types.  "*" means all.
+     * resource is one of the existing resource types.  "*" means all.
      * +optional
      * 
* @@ -6604,7 +6606,7 @@ public interface ResourceAttributesOrBuilder extends java.lang.String getResource(); /** *
-     * Resource is one of the existing resource types.  "*" means all.
+     * resource is one of the existing resource types.  "*" means all.
      * +optional
      * 
* @@ -6615,7 +6617,7 @@ public interface ResourceAttributesOrBuilder extends /** *
-     * Subresource is one of the existing resource types.  "" means none.
+     * subresource is one of the existing resource types.  "" means none.
      * +optional
      * 
* @@ -6624,7 +6626,7 @@ public interface ResourceAttributesOrBuilder extends boolean hasSubresource(); /** *
-     * Subresource is one of the existing resource types.  "" means none.
+     * subresource is one of the existing resource types.  "" means none.
      * +optional
      * 
* @@ -6633,7 +6635,7 @@ public interface ResourceAttributesOrBuilder extends java.lang.String getSubresource(); /** *
-     * Subresource is one of the existing resource types.  "" means none.
+     * subresource is one of the existing resource types.  "" means none.
      * +optional
      * 
* @@ -6644,7 +6646,7 @@ public interface ResourceAttributesOrBuilder extends /** *
-     * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
+     * name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
      * +optional
      * 
* @@ -6653,7 +6655,7 @@ public interface ResourceAttributesOrBuilder extends boolean hasName(); /** *
-     * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
+     * name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
      * +optional
      * 
* @@ -6662,7 +6664,7 @@ public interface ResourceAttributesOrBuilder extends java.lang.String getName(); /** *
-     * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
+     * name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
      * +optional
      * 
* @@ -6882,7 +6884,7 @@ private ResourceAttributes( private volatile java.lang.Object namespace_; /** *
-     * Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
+     * namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
      * "" (empty) is defaulted for LocalSubjectAccessReviews
      * "" (empty) is empty for cluster-scoped resources
      * "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
@@ -6896,7 +6898,7 @@ public boolean hasNamespace() {
     }
     /**
      * 
-     * Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
+     * namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
      * "" (empty) is defaulted for LocalSubjectAccessReviews
      * "" (empty) is empty for cluster-scoped resources
      * "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
@@ -6921,7 +6923,7 @@ public java.lang.String getNamespace() {
     }
     /**
      * 
-     * Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
+     * namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
      * "" (empty) is defaulted for LocalSubjectAccessReviews
      * "" (empty) is empty for cluster-scoped resources
      * "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
@@ -6948,7 +6950,7 @@ public java.lang.String getNamespace() {
     private volatile java.lang.Object verb_;
     /**
      * 
-     * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+     * verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
      * +optional
      * 
* @@ -6959,7 +6961,7 @@ public boolean hasVerb() { } /** *
-     * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+     * verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
      * +optional
      * 
* @@ -6981,7 +6983,7 @@ public java.lang.String getVerb() { } /** *
-     * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+     * verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
      * +optional
      * 
* @@ -7005,7 +7007,7 @@ public java.lang.String getVerb() { private volatile java.lang.Object group_; /** *
-     * Group is the API Group of the Resource.  "*" means all.
+     * group is the API Group of the Resource.  "*" means all.
      * +optional
      * 
* @@ -7016,7 +7018,7 @@ public boolean hasGroup() { } /** *
-     * Group is the API Group of the Resource.  "*" means all.
+     * group is the API Group of the Resource.  "*" means all.
      * +optional
      * 
* @@ -7038,7 +7040,7 @@ public java.lang.String getGroup() { } /** *
-     * Group is the API Group of the Resource.  "*" means all.
+     * group is the API Group of the Resource.  "*" means all.
      * +optional
      * 
* @@ -7062,7 +7064,7 @@ public java.lang.String getGroup() { private volatile java.lang.Object version_; /** *
-     * Version is the API Version of the Resource.  "*" means all.
+     * version is the API Version of the Resource.  "*" means all.
      * +optional
      * 
* @@ -7073,7 +7075,7 @@ public boolean hasVersion() { } /** *
-     * Version is the API Version of the Resource.  "*" means all.
+     * version is the API Version of the Resource.  "*" means all.
      * +optional
      * 
* @@ -7095,7 +7097,7 @@ public java.lang.String getVersion() { } /** *
-     * Version is the API Version of the Resource.  "*" means all.
+     * version is the API Version of the Resource.  "*" means all.
      * +optional
      * 
* @@ -7119,7 +7121,7 @@ public java.lang.String getVersion() { private volatile java.lang.Object resource_; /** *
-     * Resource is one of the existing resource types.  "*" means all.
+     * resource is one of the existing resource types.  "*" means all.
      * +optional
      * 
* @@ -7130,7 +7132,7 @@ public boolean hasResource() { } /** *
-     * Resource is one of the existing resource types.  "*" means all.
+     * resource is one of the existing resource types.  "*" means all.
      * +optional
      * 
* @@ -7152,7 +7154,7 @@ public java.lang.String getResource() { } /** *
-     * Resource is one of the existing resource types.  "*" means all.
+     * resource is one of the existing resource types.  "*" means all.
      * +optional
      * 
* @@ -7176,7 +7178,7 @@ public java.lang.String getResource() { private volatile java.lang.Object subresource_; /** *
-     * Subresource is one of the existing resource types.  "" means none.
+     * subresource is one of the existing resource types.  "" means none.
      * +optional
      * 
* @@ -7187,7 +7189,7 @@ public boolean hasSubresource() { } /** *
-     * Subresource is one of the existing resource types.  "" means none.
+     * subresource is one of the existing resource types.  "" means none.
      * +optional
      * 
* @@ -7209,7 +7211,7 @@ public java.lang.String getSubresource() { } /** *
-     * Subresource is one of the existing resource types.  "" means none.
+     * subresource is one of the existing resource types.  "" means none.
      * +optional
      * 
* @@ -7233,7 +7235,7 @@ public java.lang.String getSubresource() { private volatile java.lang.Object name_; /** *
-     * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
+     * name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
      * +optional
      * 
* @@ -7244,7 +7246,7 @@ public boolean hasName() { } /** *
-     * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
+     * name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
      * +optional
      * 
* @@ -7266,7 +7268,7 @@ public java.lang.String getName() { } /** *
-     * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
+     * name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
      * +optional
      * 
* @@ -7905,7 +7907,7 @@ public Builder mergeFrom( private java.lang.Object namespace_ = ""; /** *
-       * Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
+       * namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
        * "" (empty) is defaulted for LocalSubjectAccessReviews
        * "" (empty) is empty for cluster-scoped resources
        * "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
@@ -7919,7 +7921,7 @@ public boolean hasNamespace() {
       }
       /**
        * 
-       * Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
+       * namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
        * "" (empty) is defaulted for LocalSubjectAccessReviews
        * "" (empty) is empty for cluster-scoped resources
        * "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
@@ -7944,7 +7946,7 @@ public java.lang.String getNamespace() {
       }
       /**
        * 
-       * Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
+       * namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
        * "" (empty) is defaulted for LocalSubjectAccessReviews
        * "" (empty) is empty for cluster-scoped resources
        * "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
@@ -7968,7 +7970,7 @@ public java.lang.String getNamespace() {
       }
       /**
        * 
-       * Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
+       * namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
        * "" (empty) is defaulted for LocalSubjectAccessReviews
        * "" (empty) is empty for cluster-scoped resources
        * "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
@@ -7989,7 +7991,7 @@ public Builder setNamespace(
       }
       /**
        * 
-       * Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
+       * namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
        * "" (empty) is defaulted for LocalSubjectAccessReviews
        * "" (empty) is empty for cluster-scoped resources
        * "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
@@ -8006,7 +8008,7 @@ public Builder clearNamespace() {
       }
       /**
        * 
-       * Namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
+       * namespace is the namespace of the action being requested.  Currently, there is no distinction between no namespace and all namespaces
        * "" (empty) is defaulted for LocalSubjectAccessReviews
        * "" (empty) is empty for cluster-scoped resources
        * "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview
@@ -8029,7 +8031,7 @@ public Builder setNamespaceBytes(
       private java.lang.Object verb_ = "";
       /**
        * 
-       * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+       * verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
        * +optional
        * 
* @@ -8040,7 +8042,7 @@ public boolean hasVerb() { } /** *
-       * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+       * verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
        * +optional
        * 
* @@ -8062,7 +8064,7 @@ public java.lang.String getVerb() { } /** *
-       * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+       * verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
        * +optional
        * 
* @@ -8083,7 +8085,7 @@ public java.lang.String getVerb() { } /** *
-       * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+       * verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
        * +optional
        * 
* @@ -8101,7 +8103,7 @@ public Builder setVerb( } /** *
-       * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+       * verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
        * +optional
        * 
* @@ -8115,7 +8117,7 @@ public Builder clearVerb() { } /** *
-       * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+       * verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy.  "*" means all.
        * +optional
        * 
* @@ -8135,7 +8137,7 @@ public Builder setVerbBytes( private java.lang.Object group_ = ""; /** *
-       * Group is the API Group of the Resource.  "*" means all.
+       * group is the API Group of the Resource.  "*" means all.
        * +optional
        * 
* @@ -8146,7 +8148,7 @@ public boolean hasGroup() { } /** *
-       * Group is the API Group of the Resource.  "*" means all.
+       * group is the API Group of the Resource.  "*" means all.
        * +optional
        * 
* @@ -8168,7 +8170,7 @@ public java.lang.String getGroup() { } /** *
-       * Group is the API Group of the Resource.  "*" means all.
+       * group is the API Group of the Resource.  "*" means all.
        * +optional
        * 
* @@ -8189,7 +8191,7 @@ public java.lang.String getGroup() { } /** *
-       * Group is the API Group of the Resource.  "*" means all.
+       * group is the API Group of the Resource.  "*" means all.
        * +optional
        * 
* @@ -8207,7 +8209,7 @@ public Builder setGroup( } /** *
-       * Group is the API Group of the Resource.  "*" means all.
+       * group is the API Group of the Resource.  "*" means all.
        * +optional
        * 
* @@ -8221,7 +8223,7 @@ public Builder clearGroup() { } /** *
-       * Group is the API Group of the Resource.  "*" means all.
+       * group is the API Group of the Resource.  "*" means all.
        * +optional
        * 
* @@ -8241,7 +8243,7 @@ public Builder setGroupBytes( private java.lang.Object version_ = ""; /** *
-       * Version is the API Version of the Resource.  "*" means all.
+       * version is the API Version of the Resource.  "*" means all.
        * +optional
        * 
* @@ -8252,7 +8254,7 @@ public boolean hasVersion() { } /** *
-       * Version is the API Version of the Resource.  "*" means all.
+       * version is the API Version of the Resource.  "*" means all.
        * +optional
        * 
* @@ -8274,7 +8276,7 @@ public java.lang.String getVersion() { } /** *
-       * Version is the API Version of the Resource.  "*" means all.
+       * version is the API Version of the Resource.  "*" means all.
        * +optional
        * 
* @@ -8295,7 +8297,7 @@ public java.lang.String getVersion() { } /** *
-       * Version is the API Version of the Resource.  "*" means all.
+       * version is the API Version of the Resource.  "*" means all.
        * +optional
        * 
* @@ -8313,7 +8315,7 @@ public Builder setVersion( } /** *
-       * Version is the API Version of the Resource.  "*" means all.
+       * version is the API Version of the Resource.  "*" means all.
        * +optional
        * 
* @@ -8327,7 +8329,7 @@ public Builder clearVersion() { } /** *
-       * Version is the API Version of the Resource.  "*" means all.
+       * version is the API Version of the Resource.  "*" means all.
        * +optional
        * 
* @@ -8347,7 +8349,7 @@ public Builder setVersionBytes( private java.lang.Object resource_ = ""; /** *
-       * Resource is one of the existing resource types.  "*" means all.
+       * resource is one of the existing resource types.  "*" means all.
        * +optional
        * 
* @@ -8358,7 +8360,7 @@ public boolean hasResource() { } /** *
-       * Resource is one of the existing resource types.  "*" means all.
+       * resource is one of the existing resource types.  "*" means all.
        * +optional
        * 
* @@ -8380,7 +8382,7 @@ public java.lang.String getResource() { } /** *
-       * Resource is one of the existing resource types.  "*" means all.
+       * resource is one of the existing resource types.  "*" means all.
        * +optional
        * 
* @@ -8401,7 +8403,7 @@ public java.lang.String getResource() { } /** *
-       * Resource is one of the existing resource types.  "*" means all.
+       * resource is one of the existing resource types.  "*" means all.
        * +optional
        * 
* @@ -8419,7 +8421,7 @@ public Builder setResource( } /** *
-       * Resource is one of the existing resource types.  "*" means all.
+       * resource is one of the existing resource types.  "*" means all.
        * +optional
        * 
* @@ -8433,7 +8435,7 @@ public Builder clearResource() { } /** *
-       * Resource is one of the existing resource types.  "*" means all.
+       * resource is one of the existing resource types.  "*" means all.
        * +optional
        * 
* @@ -8453,7 +8455,7 @@ public Builder setResourceBytes( private java.lang.Object subresource_ = ""; /** *
-       * Subresource is one of the existing resource types.  "" means none.
+       * subresource is one of the existing resource types.  "" means none.
        * +optional
        * 
* @@ -8464,7 +8466,7 @@ public boolean hasSubresource() { } /** *
-       * Subresource is one of the existing resource types.  "" means none.
+       * subresource is one of the existing resource types.  "" means none.
        * +optional
        * 
* @@ -8486,7 +8488,7 @@ public java.lang.String getSubresource() { } /** *
-       * Subresource is one of the existing resource types.  "" means none.
+       * subresource is one of the existing resource types.  "" means none.
        * +optional
        * 
* @@ -8507,7 +8509,7 @@ public java.lang.String getSubresource() { } /** *
-       * Subresource is one of the existing resource types.  "" means none.
+       * subresource is one of the existing resource types.  "" means none.
        * +optional
        * 
* @@ -8525,7 +8527,7 @@ public Builder setSubresource( } /** *
-       * Subresource is one of the existing resource types.  "" means none.
+       * subresource is one of the existing resource types.  "" means none.
        * +optional
        * 
* @@ -8539,7 +8541,7 @@ public Builder clearSubresource() { } /** *
-       * Subresource is one of the existing resource types.  "" means none.
+       * subresource is one of the existing resource types.  "" means none.
        * +optional
        * 
* @@ -8559,7 +8561,7 @@ public Builder setSubresourceBytes( private java.lang.Object name_ = ""; /** *
-       * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
+       * name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
        * +optional
        * 
* @@ -8570,7 +8572,7 @@ public boolean hasName() { } /** *
-       * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
+       * name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
        * +optional
        * 
* @@ -8592,7 +8594,7 @@ public java.lang.String getName() { } /** *
-       * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
+       * name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
        * +optional
        * 
* @@ -8613,7 +8615,7 @@ public java.lang.String getName() { } /** *
-       * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
+       * name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
        * +optional
        * 
* @@ -8631,7 +8633,7 @@ public Builder setName( } /** *
-       * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
+       * name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
        * +optional
        * 
* @@ -8645,7 +8647,7 @@ public Builder clearName() { } /** *
-       * Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
+       * name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.
        * +optional
        * 
* @@ -9046,7 +9048,7 @@ public interface ResourceRuleOrBuilder extends /** *
-     * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+     * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
      * +listType=atomic
      * 
* @@ -9056,7 +9058,7 @@ public interface ResourceRuleOrBuilder extends getVerbsList(); /** *
-     * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+     * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
      * +listType=atomic
      * 
* @@ -9065,7 +9067,7 @@ public interface ResourceRuleOrBuilder extends int getVerbsCount(); /** *
-     * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+     * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
      * +listType=atomic
      * 
* @@ -9074,7 +9076,7 @@ public interface ResourceRuleOrBuilder extends java.lang.String getVerbs(int index); /** *
-     * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+     * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
      * +listType=atomic
      * 
* @@ -9085,7 +9087,7 @@ public interface ResourceRuleOrBuilder extends /** *
-     * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+     * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
      * the enumerated resources in any API group will be allowed.  "*" means all.
      * +optional
      * +listType=atomic
@@ -9097,7 +9099,7 @@ public interface ResourceRuleOrBuilder extends
         getApiGroupsList();
     /**
      * 
-     * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+     * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
      * the enumerated resources in any API group will be allowed.  "*" means all.
      * +optional
      * +listType=atomic
@@ -9108,7 +9110,7 @@ public interface ResourceRuleOrBuilder extends
     int getApiGroupsCount();
     /**
      * 
-     * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+     * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
      * the enumerated resources in any API group will be allowed.  "*" means all.
      * +optional
      * +listType=atomic
@@ -9119,7 +9121,7 @@ public interface ResourceRuleOrBuilder extends
     java.lang.String getApiGroups(int index);
     /**
      * 
-     * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+     * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
      * the enumerated resources in any API group will be allowed.  "*" means all.
      * +optional
      * +listType=atomic
@@ -9132,7 +9134,7 @@ public interface ResourceRuleOrBuilder extends
 
     /**
      * 
-     * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+     * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
      *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
      * +optional
      * +listType=atomic
@@ -9144,7 +9146,7 @@ public interface ResourceRuleOrBuilder extends
         getResourcesList();
     /**
      * 
-     * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+     * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
      *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
      * +optional
      * +listType=atomic
@@ -9155,7 +9157,7 @@ public interface ResourceRuleOrBuilder extends
     int getResourcesCount();
     /**
      * 
-     * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+     * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
      *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
      * +optional
      * +listType=atomic
@@ -9166,7 +9168,7 @@ public interface ResourceRuleOrBuilder extends
     java.lang.String getResources(int index);
     /**
      * 
-     * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+     * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
      *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
      * +optional
      * +listType=atomic
@@ -9179,7 +9181,7 @@ public interface ResourceRuleOrBuilder extends
 
     /**
      * 
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
      * +optional
      * +listType=atomic
      * 
@@ -9190,7 +9192,7 @@ public interface ResourceRuleOrBuilder extends getResourceNamesList(); /** *
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
      * +optional
      * +listType=atomic
      * 
@@ -9200,7 +9202,7 @@ public interface ResourceRuleOrBuilder extends int getResourceNamesCount(); /** *
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
      * +optional
      * +listType=atomic
      * 
@@ -9210,7 +9212,7 @@ public interface ResourceRuleOrBuilder extends java.lang.String getResourceNames(int index); /** *
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
      * +optional
      * +listType=atomic
      * 
@@ -9352,7 +9354,7 @@ private ResourceRule( private com.google.protobuf.LazyStringList verbs_; /** *
-     * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+     * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
      * +listType=atomic
      * 
* @@ -9364,7 +9366,7 @@ private ResourceRule( } /** *
-     * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+     * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
      * +listType=atomic
      * 
* @@ -9375,7 +9377,7 @@ public int getVerbsCount() { } /** *
-     * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+     * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
      * +listType=atomic
      * 
* @@ -9386,7 +9388,7 @@ public java.lang.String getVerbs(int index) { } /** *
-     * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+     * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
      * +listType=atomic
      * 
* @@ -9401,7 +9403,7 @@ public java.lang.String getVerbs(int index) { private com.google.protobuf.LazyStringList apiGroups_; /** *
-     * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+     * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
      * the enumerated resources in any API group will be allowed.  "*" means all.
      * +optional
      * +listType=atomic
@@ -9415,7 +9417,7 @@ public java.lang.String getVerbs(int index) {
     }
     /**
      * 
-     * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+     * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
      * the enumerated resources in any API group will be allowed.  "*" means all.
      * +optional
      * +listType=atomic
@@ -9428,7 +9430,7 @@ public int getApiGroupsCount() {
     }
     /**
      * 
-     * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+     * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
      * the enumerated resources in any API group will be allowed.  "*" means all.
      * +optional
      * +listType=atomic
@@ -9441,7 +9443,7 @@ public java.lang.String getApiGroups(int index) {
     }
     /**
      * 
-     * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+     * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
      * the enumerated resources in any API group will be allowed.  "*" means all.
      * +optional
      * +listType=atomic
@@ -9458,7 +9460,7 @@ public java.lang.String getApiGroups(int index) {
     private com.google.protobuf.LazyStringList resources_;
     /**
      * 
-     * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+     * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
      *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
      * +optional
      * +listType=atomic
@@ -9472,7 +9474,7 @@ public java.lang.String getApiGroups(int index) {
     }
     /**
      * 
-     * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+     * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
      *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
      * +optional
      * +listType=atomic
@@ -9485,7 +9487,7 @@ public int getResourcesCount() {
     }
     /**
      * 
-     * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+     * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
      *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
      * +optional
      * +listType=atomic
@@ -9498,7 +9500,7 @@ public java.lang.String getResources(int index) {
     }
     /**
      * 
-     * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+     * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
      *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
      * +optional
      * +listType=atomic
@@ -9515,7 +9517,7 @@ public java.lang.String getResources(int index) {
     private com.google.protobuf.LazyStringList resourceNames_;
     /**
      * 
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
      * +optional
      * +listType=atomic
      * 
@@ -9528,7 +9530,7 @@ public java.lang.String getResources(int index) { } /** *
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
      * +optional
      * +listType=atomic
      * 
@@ -9540,7 +9542,7 @@ public int getResourceNamesCount() { } /** *
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
      * +optional
      * +listType=atomic
      * 
@@ -9552,7 +9554,7 @@ public java.lang.String getResourceNames(int index) { } /** *
-     * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+     * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
      * +optional
      * +listType=atomic
      * 
@@ -10002,7 +10004,7 @@ private void ensureVerbsIsMutable() { } /** *
-       * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+       * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
        * +listType=atomic
        * 
* @@ -10014,7 +10016,7 @@ private void ensureVerbsIsMutable() { } /** *
-       * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+       * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
        * +listType=atomic
        * 
* @@ -10025,7 +10027,7 @@ public int getVerbsCount() { } /** *
-       * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+       * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
        * +listType=atomic
        * 
* @@ -10036,7 +10038,7 @@ public java.lang.String getVerbs(int index) { } /** *
-       * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+       * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
        * +listType=atomic
        * 
* @@ -10048,7 +10050,7 @@ public java.lang.String getVerbs(int index) { } /** *
-       * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+       * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
        * +listType=atomic
        * 
* @@ -10066,7 +10068,7 @@ public Builder setVerbs( } /** *
-       * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+       * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
        * +listType=atomic
        * 
* @@ -10084,7 +10086,7 @@ public Builder addVerbs( } /** *
-       * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+       * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
        * +listType=atomic
        * 
* @@ -10100,7 +10102,7 @@ public Builder addAllVerbs( } /** *
-       * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+       * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
        * +listType=atomic
        * 
* @@ -10114,7 +10116,7 @@ public Builder clearVerbs() { } /** *
-       * Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
+       * verbs is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.  "*" means all.
        * +listType=atomic
        * 
* @@ -10140,7 +10142,7 @@ private void ensureApiGroupsIsMutable() { } /** *
-       * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+       * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
        * the enumerated resources in any API group will be allowed.  "*" means all.
        * +optional
        * +listType=atomic
@@ -10154,7 +10156,7 @@ private void ensureApiGroupsIsMutable() {
       }
       /**
        * 
-       * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+       * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
        * the enumerated resources in any API group will be allowed.  "*" means all.
        * +optional
        * +listType=atomic
@@ -10167,7 +10169,7 @@ public int getApiGroupsCount() {
       }
       /**
        * 
-       * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+       * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
        * the enumerated resources in any API group will be allowed.  "*" means all.
        * +optional
        * +listType=atomic
@@ -10180,7 +10182,7 @@ public java.lang.String getApiGroups(int index) {
       }
       /**
        * 
-       * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+       * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
        * the enumerated resources in any API group will be allowed.  "*" means all.
        * +optional
        * +listType=atomic
@@ -10194,7 +10196,7 @@ public java.lang.String getApiGroups(int index) {
       }
       /**
        * 
-       * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+       * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
        * the enumerated resources in any API group will be allowed.  "*" means all.
        * +optional
        * +listType=atomic
@@ -10214,7 +10216,7 @@ public Builder setApiGroups(
       }
       /**
        * 
-       * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+       * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
        * the enumerated resources in any API group will be allowed.  "*" means all.
        * +optional
        * +listType=atomic
@@ -10234,7 +10236,7 @@ public Builder addApiGroups(
       }
       /**
        * 
-       * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+       * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
        * the enumerated resources in any API group will be allowed.  "*" means all.
        * +optional
        * +listType=atomic
@@ -10252,7 +10254,7 @@ public Builder addAllApiGroups(
       }
       /**
        * 
-       * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+       * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
        * the enumerated resources in any API group will be allowed.  "*" means all.
        * +optional
        * +listType=atomic
@@ -10268,7 +10270,7 @@ public Builder clearApiGroups() {
       }
       /**
        * 
-       * APIGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
+       * apiGroups is the name of the APIGroup that contains the resources.  If multiple API groups are specified, any action requested against one of
        * the enumerated resources in any API group will be allowed.  "*" means all.
        * +optional
        * +listType=atomic
@@ -10296,7 +10298,7 @@ private void ensureResourcesIsMutable() {
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+       * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
        * +optional
        * +listType=atomic
@@ -10310,7 +10312,7 @@ private void ensureResourcesIsMutable() {
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+       * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
        * +optional
        * +listType=atomic
@@ -10323,7 +10325,7 @@ public int getResourcesCount() {
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+       * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
        * +optional
        * +listType=atomic
@@ -10336,7 +10338,7 @@ public java.lang.String getResources(int index) {
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+       * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
        * +optional
        * +listType=atomic
@@ -10350,7 +10352,7 @@ public java.lang.String getResources(int index) {
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+       * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
        * +optional
        * +listType=atomic
@@ -10370,7 +10372,7 @@ public Builder setResources(
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+       * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
        * +optional
        * +listType=atomic
@@ -10390,7 +10392,7 @@ public Builder addResources(
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+       * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
        * +optional
        * +listType=atomic
@@ -10408,7 +10410,7 @@ public Builder addAllResources(
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+       * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
        * +optional
        * +listType=atomic
@@ -10424,7 +10426,7 @@ public Builder clearResources() {
       }
       /**
        * 
-       * Resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
+       * resources is a list of resources this rule applies to.  "*" means all in the specified apiGroups.
        *  "*/foo" represents the subresource 'foo' for all resources in the specified apiGroups.
        * +optional
        * +listType=atomic
@@ -10452,7 +10454,7 @@ private void ensureResourceNamesIsMutable() {
       }
       /**
        * 
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
        * +optional
        * +listType=atomic
        * 
@@ -10465,7 +10467,7 @@ private void ensureResourceNamesIsMutable() { } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
        * +optional
        * +listType=atomic
        * 
@@ -10477,7 +10479,7 @@ public int getResourceNamesCount() { } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
        * +optional
        * +listType=atomic
        * 
@@ -10489,7 +10491,7 @@ public java.lang.String getResourceNames(int index) { } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
        * +optional
        * +listType=atomic
        * 
@@ -10502,7 +10504,7 @@ public java.lang.String getResourceNames(int index) { } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
        * +optional
        * +listType=atomic
        * 
@@ -10521,7 +10523,7 @@ public Builder setResourceNames( } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
        * +optional
        * +listType=atomic
        * 
@@ -10540,7 +10542,7 @@ public Builder addResourceNames( } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
        * +optional
        * +listType=atomic
        * 
@@ -10557,7 +10559,7 @@ public Builder addAllResourceNames( } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
        * +optional
        * +listType=atomic
        * 
@@ -10572,7 +10574,7 @@ public Builder clearResourceNames() { } /** *
-       * ResourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
+       * resourceNames is an optional white list of names that the rule applies to.  An empty set means that everything is allowed.  "*" means all.
        * +optional
        * +listType=atomic
        * 
@@ -10648,7 +10650,7 @@ public interface SelfSubjectAccessReviewOrBuilder extends /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -10658,7 +10660,7 @@ public interface SelfSubjectAccessReviewOrBuilder extends boolean hasMetadata(); /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -10668,7 +10670,7 @@ public interface SelfSubjectAccessReviewOrBuilder extends io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -10679,7 +10681,7 @@ public interface SelfSubjectAccessReviewOrBuilder extends /** *
-     * Spec holds information about the request being evaluated.  user and groups must be empty
+     * spec holds information about the request being evaluated.  user and groups must be empty
      * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec spec = 2; @@ -10687,7 +10689,7 @@ public interface SelfSubjectAccessReviewOrBuilder extends boolean hasSpec(); /** *
-     * Spec holds information about the request being evaluated.  user and groups must be empty
+     * spec holds information about the request being evaluated.  user and groups must be empty
      * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec spec = 2; @@ -10695,7 +10697,7 @@ public interface SelfSubjectAccessReviewOrBuilder extends io.kubernetes.client.proto.V1Authorization.SelfSubjectAccessReviewSpec getSpec(); /** *
-     * Spec holds information about the request being evaluated.  user and groups must be empty
+     * spec holds information about the request being evaluated.  user and groups must be empty
      * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec spec = 2; @@ -10704,7 +10706,7 @@ public interface SelfSubjectAccessReviewOrBuilder extends /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -10713,7 +10715,7 @@ public interface SelfSubjectAccessReviewOrBuilder extends boolean hasStatus(); /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -10722,7 +10724,7 @@ public interface SelfSubjectAccessReviewOrBuilder extends io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus getStatus(); /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -10735,6 +10737,7 @@ public interface SelfSubjectAccessReviewOrBuilder extends * SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a * spec.namespace means "in all namespaces". Self is a special case, because users should always be able * to check whether they can perform an action + * +k8s:supportsSubresource="/status" *
* * Protobuf type {@code k8s.io.api.authorization.v1.SelfSubjectAccessReview} @@ -10851,7 +10854,7 @@ private SelfSubjectAccessReview( private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -10863,7 +10866,7 @@ public boolean hasMetadata() { } /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -10875,7 +10878,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -10890,7 +10893,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( private io.kubernetes.client.proto.V1Authorization.SelfSubjectAccessReviewSpec spec_; /** *
-     * Spec holds information about the request being evaluated.  user and groups must be empty
+     * spec holds information about the request being evaluated.  user and groups must be empty
      * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec spec = 2; @@ -10900,7 +10903,7 @@ public boolean hasSpec() { } /** *
-     * Spec holds information about the request being evaluated.  user and groups must be empty
+     * spec holds information about the request being evaluated.  user and groups must be empty
      * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec spec = 2; @@ -10910,7 +10913,7 @@ public io.kubernetes.client.proto.V1Authorization.SelfSubjectAccessReviewSpec ge } /** *
-     * Spec holds information about the request being evaluated.  user and groups must be empty
+     * spec holds information about the request being evaluated.  user and groups must be empty
      * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec spec = 2; @@ -10923,7 +10926,7 @@ public io.kubernetes.client.proto.V1Authorization.SelfSubjectAccessReviewSpecOrB private io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus status_; /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -10934,7 +10937,7 @@ public boolean hasStatus() { } /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -10945,7 +10948,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus getS } /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -11153,6 +11156,7 @@ protected Builder newBuilderForType( * SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a * spec.namespace means "in all namespaces". Self is a special case, because users should always be able * to check whether they can perform an action + * +k8s:supportsSubresource="/status" *
* * Protobuf type {@code k8s.io.api.authorization.v1.SelfSubjectAccessReview} @@ -11358,7 +11362,7 @@ public Builder mergeFrom( io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -11370,7 +11374,7 @@ public boolean hasMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -11386,7 +11390,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -11408,7 +11412,7 @@ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -11428,7 +11432,7 @@ public Builder setMetadata( } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -11454,7 +11458,7 @@ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -11473,7 +11477,7 @@ public Builder clearMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -11487,7 +11491,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -11504,7 +11508,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -11530,7 +11534,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( io.kubernetes.client.proto.V1Authorization.SelfSubjectAccessReviewSpec, io.kubernetes.client.proto.V1Authorization.SelfSubjectAccessReviewSpec.Builder, io.kubernetes.client.proto.V1Authorization.SelfSubjectAccessReviewSpecOrBuilder> specBuilder_; /** *
-       * Spec holds information about the request being evaluated.  user and groups must be empty
+       * spec holds information about the request being evaluated.  user and groups must be empty
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec spec = 2; @@ -11540,7 +11544,7 @@ public boolean hasSpec() { } /** *
-       * Spec holds information about the request being evaluated.  user and groups must be empty
+       * spec holds information about the request being evaluated.  user and groups must be empty
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec spec = 2; @@ -11554,7 +11558,7 @@ public io.kubernetes.client.proto.V1Authorization.SelfSubjectAccessReviewSpec ge } /** *
-       * Spec holds information about the request being evaluated.  user and groups must be empty
+       * spec holds information about the request being evaluated.  user and groups must be empty
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec spec = 2; @@ -11574,7 +11578,7 @@ public Builder setSpec(io.kubernetes.client.proto.V1Authorization.SelfSubjectAcc } /** *
-       * Spec holds information about the request being evaluated.  user and groups must be empty
+       * spec holds information about the request being evaluated.  user and groups must be empty
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec spec = 2; @@ -11592,7 +11596,7 @@ public Builder setSpec( } /** *
-       * Spec holds information about the request being evaluated.  user and groups must be empty
+       * spec holds information about the request being evaluated.  user and groups must be empty
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec spec = 2; @@ -11616,7 +11620,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Authorization.SelfSubjectA } /** *
-       * Spec holds information about the request being evaluated.  user and groups must be empty
+       * spec holds information about the request being evaluated.  user and groups must be empty
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec spec = 2; @@ -11633,7 +11637,7 @@ public Builder clearSpec() { } /** *
-       * Spec holds information about the request being evaluated.  user and groups must be empty
+       * spec holds information about the request being evaluated.  user and groups must be empty
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec spec = 2; @@ -11645,7 +11649,7 @@ public io.kubernetes.client.proto.V1Authorization.SelfSubjectAccessReviewSpec.Bu } /** *
-       * Spec holds information about the request being evaluated.  user and groups must be empty
+       * spec holds information about the request being evaluated.  user and groups must be empty
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec spec = 2; @@ -11660,7 +11664,7 @@ public io.kubernetes.client.proto.V1Authorization.SelfSubjectAccessReviewSpecOrB } /** *
-       * Spec holds information about the request being evaluated.  user and groups must be empty
+       * spec holds information about the request being evaluated.  user and groups must be empty
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec spec = 2; @@ -11684,7 +11688,7 @@ public io.kubernetes.client.proto.V1Authorization.SelfSubjectAccessReviewSpecOrB io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus, io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus.Builder, io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatusOrBuilder> statusBuilder_; /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -11695,7 +11699,7 @@ public boolean hasStatus() { } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -11710,7 +11714,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus getS } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -11731,7 +11735,7 @@ public Builder setStatus(io.kubernetes.client.proto.V1Authorization.SubjectAcces } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -11750,7 +11754,7 @@ public Builder setStatus( } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -11775,7 +11779,7 @@ public Builder mergeStatus(io.kubernetes.client.proto.V1Authorization.SubjectAcc } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -11793,7 +11797,7 @@ public Builder clearStatus() { } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -11806,7 +11810,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus.Buil } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -11822,7 +11826,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatusOrBui } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -11900,8 +11904,10 @@ public interface SelfSubjectAccessReviewSpecOrBuilder extends /** *
-     * ResourceAuthorizationAttributes describes information for a resource access request
+     * resourceAttributes describes information for a resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -11909,8 +11915,10 @@ public interface SelfSubjectAccessReviewSpecOrBuilder extends boolean hasResourceAttributes(); /** *
-     * ResourceAuthorizationAttributes describes information for a resource access request
+     * resourceAttributes describes information for a resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -11918,8 +11926,10 @@ public interface SelfSubjectAccessReviewSpecOrBuilder extends io.kubernetes.client.proto.V1Authorization.ResourceAttributes getResourceAttributes(); /** *
-     * ResourceAuthorizationAttributes describes information for a resource access request
+     * resourceAttributes describes information for a resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -11928,8 +11938,10 @@ public interface SelfSubjectAccessReviewSpecOrBuilder extends /** *
-     * NonResourceAttributes describes information for a non-resource access request
+     * nonResourceAttributes describes information for a non-resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -11937,8 +11949,10 @@ public interface SelfSubjectAccessReviewSpecOrBuilder extends boolean hasNonResourceAttributes(); /** *
-     * NonResourceAttributes describes information for a non-resource access request
+     * nonResourceAttributes describes information for a non-resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -11946,8 +11960,10 @@ public interface SelfSubjectAccessReviewSpecOrBuilder extends io.kubernetes.client.proto.V1Authorization.NonResourceAttributes getNonResourceAttributes(); /** *
-     * NonResourceAttributes describes information for a non-resource access request
+     * nonResourceAttributes describes information for a non-resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -11956,8 +11972,8 @@ public interface SelfSubjectAccessReviewSpecOrBuilder extends } /** *
-   * SelfSubjectAccessReviewSpec is a description of the access request.  Exactly one of ResourceAuthorizationAttributes
-   * and NonResourceAuthorizationAttributes must be set
+   * SelfSubjectAccessReviewSpec is a description of the access request.  Exactly one of resourceAttributes
+   * and nonResourceAttributes must be set
    * 
* * Protobuf type {@code k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec} @@ -12061,8 +12077,10 @@ private SelfSubjectAccessReviewSpec( private io.kubernetes.client.proto.V1Authorization.ResourceAttributes resourceAttributes_; /** *
-     * ResourceAuthorizationAttributes describes information for a resource access request
+     * resourceAttributes describes information for a resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -12072,8 +12090,10 @@ public boolean hasResourceAttributes() { } /** *
-     * ResourceAuthorizationAttributes describes information for a resource access request
+     * resourceAttributes describes information for a resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -12083,8 +12103,10 @@ public io.kubernetes.client.proto.V1Authorization.ResourceAttributes getResource } /** *
-     * ResourceAuthorizationAttributes describes information for a resource access request
+     * resourceAttributes describes information for a resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -12097,8 +12119,10 @@ public io.kubernetes.client.proto.V1Authorization.ResourceAttributesOrBuilder ge private io.kubernetes.client.proto.V1Authorization.NonResourceAttributes nonResourceAttributes_; /** *
-     * NonResourceAttributes describes information for a non-resource access request
+     * nonResourceAttributes describes information for a non-resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -12108,8 +12132,10 @@ public boolean hasNonResourceAttributes() { } /** *
-     * NonResourceAttributes describes information for a non-resource access request
+     * nonResourceAttributes describes information for a non-resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -12119,8 +12145,10 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceAttributes getNonRe } /** *
-     * NonResourceAttributes describes information for a non-resource access request
+     * nonResourceAttributes describes information for a non-resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -12308,8 +12336,8 @@ protected Builder newBuilderForType( } /** *
-     * SelfSubjectAccessReviewSpec is a description of the access request.  Exactly one of ResourceAuthorizationAttributes
-     * and NonResourceAuthorizationAttributes must be set
+     * SelfSubjectAccessReviewSpec is a description of the access request.  Exactly one of resourceAttributes
+     * and nonResourceAttributes must be set
      * 
* * Protobuf type {@code k8s.io.api.authorization.v1.SelfSubjectAccessReviewSpec} @@ -12497,8 +12525,10 @@ public Builder mergeFrom( io.kubernetes.client.proto.V1Authorization.ResourceAttributes, io.kubernetes.client.proto.V1Authorization.ResourceAttributes.Builder, io.kubernetes.client.proto.V1Authorization.ResourceAttributesOrBuilder> resourceAttributesBuilder_; /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -12508,8 +12538,10 @@ public boolean hasResourceAttributes() { } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -12523,8 +12555,10 @@ public io.kubernetes.client.proto.V1Authorization.ResourceAttributes getResource } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -12544,8 +12578,10 @@ public Builder setResourceAttributes(io.kubernetes.client.proto.V1Authorization. } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -12563,8 +12599,10 @@ public Builder setResourceAttributes( } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -12588,8 +12626,10 @@ public Builder mergeResourceAttributes(io.kubernetes.client.proto.V1Authorizatio } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -12606,8 +12646,10 @@ public Builder clearResourceAttributes() { } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -12619,8 +12661,10 @@ public io.kubernetes.client.proto.V1Authorization.ResourceAttributes.Builder get } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -12635,8 +12679,10 @@ public io.kubernetes.client.proto.V1Authorization.ResourceAttributesOrBuilder ge } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -12660,8 +12706,10 @@ public io.kubernetes.client.proto.V1Authorization.ResourceAttributesOrBuilder ge io.kubernetes.client.proto.V1Authorization.NonResourceAttributes, io.kubernetes.client.proto.V1Authorization.NonResourceAttributes.Builder, io.kubernetes.client.proto.V1Authorization.NonResourceAttributesOrBuilder> nonResourceAttributesBuilder_; /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -12671,8 +12719,10 @@ public boolean hasNonResourceAttributes() { } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -12686,8 +12736,10 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceAttributes getNonRe } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -12707,8 +12759,10 @@ public Builder setNonResourceAttributes(io.kubernetes.client.proto.V1Authorizati } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -12726,8 +12780,10 @@ public Builder setNonResourceAttributes( } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -12751,8 +12807,10 @@ public Builder mergeNonResourceAttributes(io.kubernetes.client.proto.V1Authoriza } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -12769,8 +12827,10 @@ public Builder clearNonResourceAttributes() { } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -12782,8 +12842,10 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceAttributes.Builder } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -12798,8 +12860,10 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceAttributesOrBuilder } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -12876,7 +12940,7 @@ public interface SelfSubjectRulesReviewOrBuilder extends /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -12886,7 +12950,7 @@ public interface SelfSubjectRulesReviewOrBuilder extends boolean hasMetadata(); /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -12896,7 +12960,7 @@ public interface SelfSubjectRulesReviewOrBuilder extends io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -12907,7 +12971,7 @@ public interface SelfSubjectRulesReviewOrBuilder extends /** *
-     * Spec holds information about the request being evaluated.
+     * spec holds information about the request being evaluated.
      * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec spec = 2; @@ -12915,7 +12979,7 @@ public interface SelfSubjectRulesReviewOrBuilder extends boolean hasSpec(); /** *
-     * Spec holds information about the request being evaluated.
+     * spec holds information about the request being evaluated.
      * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec spec = 2; @@ -12923,7 +12987,7 @@ public interface SelfSubjectRulesReviewOrBuilder extends io.kubernetes.client.proto.V1Authorization.SelfSubjectRulesReviewSpec getSpec(); /** *
-     * Spec holds information about the request being evaluated.
+     * spec holds information about the request being evaluated.
      * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec spec = 2; @@ -12932,7 +12996,7 @@ public interface SelfSubjectRulesReviewOrBuilder extends /** *
-     * Status is filled in by the server and indicates the set of actions a user can perform.
+     * status is filled in by the server and indicates the set of actions a user can perform.
      * +optional
      * 
* @@ -12941,7 +13005,7 @@ public interface SelfSubjectRulesReviewOrBuilder extends boolean hasStatus(); /** *
-     * Status is filled in by the server and indicates the set of actions a user can perform.
+     * status is filled in by the server and indicates the set of actions a user can perform.
      * +optional
      * 
* @@ -12950,7 +13014,7 @@ public interface SelfSubjectRulesReviewOrBuilder extends io.kubernetes.client.proto.V1Authorization.SubjectRulesReviewStatus getStatus(); /** *
-     * Status is filled in by the server and indicates the set of actions a user can perform.
+     * status is filled in by the server and indicates the set of actions a user can perform.
      * +optional
      * 
* @@ -12966,6 +13030,7 @@ public interface SelfSubjectRulesReviewOrBuilder extends * or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to * drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. * SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + * +k8s:supportsSubresource="/status" *
* * Protobuf type {@code k8s.io.api.authorization.v1.SelfSubjectRulesReview} @@ -13082,7 +13147,7 @@ private SelfSubjectRulesReview( private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -13094,7 +13159,7 @@ public boolean hasMetadata() { } /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -13106,7 +13171,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -13121,7 +13186,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( private io.kubernetes.client.proto.V1Authorization.SelfSubjectRulesReviewSpec spec_; /** *
-     * Spec holds information about the request being evaluated.
+     * spec holds information about the request being evaluated.
      * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec spec = 2; @@ -13131,7 +13196,7 @@ public boolean hasSpec() { } /** *
-     * Spec holds information about the request being evaluated.
+     * spec holds information about the request being evaluated.
      * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec spec = 2; @@ -13141,7 +13206,7 @@ public io.kubernetes.client.proto.V1Authorization.SelfSubjectRulesReviewSpec get } /** *
-     * Spec holds information about the request being evaluated.
+     * spec holds information about the request being evaluated.
      * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec spec = 2; @@ -13154,7 +13219,7 @@ public io.kubernetes.client.proto.V1Authorization.SelfSubjectRulesReviewSpecOrBu private io.kubernetes.client.proto.V1Authorization.SubjectRulesReviewStatus status_; /** *
-     * Status is filled in by the server and indicates the set of actions a user can perform.
+     * status is filled in by the server and indicates the set of actions a user can perform.
      * +optional
      * 
* @@ -13165,7 +13230,7 @@ public boolean hasStatus() { } /** *
-     * Status is filled in by the server and indicates the set of actions a user can perform.
+     * status is filled in by the server and indicates the set of actions a user can perform.
      * +optional
      * 
* @@ -13176,7 +13241,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectRulesReviewStatus getSt } /** *
-     * Status is filled in by the server and indicates the set of actions a user can perform.
+     * status is filled in by the server and indicates the set of actions a user can perform.
      * +optional
      * 
* @@ -13387,6 +13452,7 @@ protected Builder newBuilderForType( * or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to * drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. * SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. + * +k8s:supportsSubresource="/status" *
* * Protobuf type {@code k8s.io.api.authorization.v1.SelfSubjectRulesReview} @@ -13592,7 +13658,7 @@ public Builder mergeFrom( io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -13604,7 +13670,7 @@ public boolean hasMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -13620,7 +13686,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -13642,7 +13708,7 @@ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -13662,7 +13728,7 @@ public Builder setMetadata( } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -13688,7 +13754,7 @@ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -13707,7 +13773,7 @@ public Builder clearMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -13721,7 +13787,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -13738,7 +13804,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -13764,7 +13830,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( io.kubernetes.client.proto.V1Authorization.SelfSubjectRulesReviewSpec, io.kubernetes.client.proto.V1Authorization.SelfSubjectRulesReviewSpec.Builder, io.kubernetes.client.proto.V1Authorization.SelfSubjectRulesReviewSpecOrBuilder> specBuilder_; /** *
-       * Spec holds information about the request being evaluated.
+       * spec holds information about the request being evaluated.
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec spec = 2; @@ -13774,7 +13840,7 @@ public boolean hasSpec() { } /** *
-       * Spec holds information about the request being evaluated.
+       * spec holds information about the request being evaluated.
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec spec = 2; @@ -13788,7 +13854,7 @@ public io.kubernetes.client.proto.V1Authorization.SelfSubjectRulesReviewSpec get } /** *
-       * Spec holds information about the request being evaluated.
+       * spec holds information about the request being evaluated.
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec spec = 2; @@ -13808,7 +13874,7 @@ public Builder setSpec(io.kubernetes.client.proto.V1Authorization.SelfSubjectRul } /** *
-       * Spec holds information about the request being evaluated.
+       * spec holds information about the request being evaluated.
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec spec = 2; @@ -13826,7 +13892,7 @@ public Builder setSpec( } /** *
-       * Spec holds information about the request being evaluated.
+       * spec holds information about the request being evaluated.
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec spec = 2; @@ -13850,7 +13916,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Authorization.SelfSubjectR } /** *
-       * Spec holds information about the request being evaluated.
+       * spec holds information about the request being evaluated.
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec spec = 2; @@ -13867,7 +13933,7 @@ public Builder clearSpec() { } /** *
-       * Spec holds information about the request being evaluated.
+       * spec holds information about the request being evaluated.
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec spec = 2; @@ -13879,7 +13945,7 @@ public io.kubernetes.client.proto.V1Authorization.SelfSubjectRulesReviewSpec.Bui } /** *
-       * Spec holds information about the request being evaluated.
+       * spec holds information about the request being evaluated.
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec spec = 2; @@ -13894,7 +13960,7 @@ public io.kubernetes.client.proto.V1Authorization.SelfSubjectRulesReviewSpecOrBu } /** *
-       * Spec holds information about the request being evaluated.
+       * spec holds information about the request being evaluated.
        * 
* * optional .k8s.io.api.authorization.v1.SelfSubjectRulesReviewSpec spec = 2; @@ -13918,7 +13984,7 @@ public io.kubernetes.client.proto.V1Authorization.SelfSubjectRulesReviewSpecOrBu io.kubernetes.client.proto.V1Authorization.SubjectRulesReviewStatus, io.kubernetes.client.proto.V1Authorization.SubjectRulesReviewStatus.Builder, io.kubernetes.client.proto.V1Authorization.SubjectRulesReviewStatusOrBuilder> statusBuilder_; /** *
-       * Status is filled in by the server and indicates the set of actions a user can perform.
+       * status is filled in by the server and indicates the set of actions a user can perform.
        * +optional
        * 
* @@ -13929,7 +13995,7 @@ public boolean hasStatus() { } /** *
-       * Status is filled in by the server and indicates the set of actions a user can perform.
+       * status is filled in by the server and indicates the set of actions a user can perform.
        * +optional
        * 
* @@ -13944,7 +14010,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectRulesReviewStatus getSt } /** *
-       * Status is filled in by the server and indicates the set of actions a user can perform.
+       * status is filled in by the server and indicates the set of actions a user can perform.
        * +optional
        * 
* @@ -13965,7 +14031,7 @@ public Builder setStatus(io.kubernetes.client.proto.V1Authorization.SubjectRules } /** *
-       * Status is filled in by the server and indicates the set of actions a user can perform.
+       * status is filled in by the server and indicates the set of actions a user can perform.
        * +optional
        * 
* @@ -13984,7 +14050,7 @@ public Builder setStatus( } /** *
-       * Status is filled in by the server and indicates the set of actions a user can perform.
+       * status is filled in by the server and indicates the set of actions a user can perform.
        * +optional
        * 
* @@ -14009,7 +14075,7 @@ public Builder mergeStatus(io.kubernetes.client.proto.V1Authorization.SubjectRul } /** *
-       * Status is filled in by the server and indicates the set of actions a user can perform.
+       * status is filled in by the server and indicates the set of actions a user can perform.
        * +optional
        * 
* @@ -14027,7 +14093,7 @@ public Builder clearStatus() { } /** *
-       * Status is filled in by the server and indicates the set of actions a user can perform.
+       * status is filled in by the server and indicates the set of actions a user can perform.
        * +optional
        * 
* @@ -14040,7 +14106,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectRulesReviewStatus.Build } /** *
-       * Status is filled in by the server and indicates the set of actions a user can perform.
+       * status is filled in by the server and indicates the set of actions a user can perform.
        * +optional
        * 
* @@ -14056,7 +14122,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectRulesReviewStatusOrBuil } /** *
-       * Status is filled in by the server and indicates the set of actions a user can perform.
+       * status is filled in by the server and indicates the set of actions a user can perform.
        * +optional
        * 
* @@ -14134,7 +14200,7 @@ public interface SelfSubjectRulesReviewSpecOrBuilder extends /** *
-     * Namespace to evaluate rules for. Required.
+     * namespace to evaluate rules for. Required.
      * 
* * optional string namespace = 1; @@ -14142,7 +14208,7 @@ public interface SelfSubjectRulesReviewSpecOrBuilder extends boolean hasNamespace(); /** *
-     * Namespace to evaluate rules for. Required.
+     * namespace to evaluate rules for. Required.
      * 
* * optional string namespace = 1; @@ -14150,7 +14216,7 @@ public interface SelfSubjectRulesReviewSpecOrBuilder extends java.lang.String getNamespace(); /** *
-     * Namespace to evaluate rules for. Required.
+     * namespace to evaluate rules for. Required.
      * 
* * optional string namespace = 1; @@ -14245,7 +14311,7 @@ private SelfSubjectRulesReviewSpec( private volatile java.lang.Object namespace_; /** *
-     * Namespace to evaluate rules for. Required.
+     * namespace to evaluate rules for. Required.
      * 
* * optional string namespace = 1; @@ -14255,7 +14321,7 @@ public boolean hasNamespace() { } /** *
-     * Namespace to evaluate rules for. Required.
+     * namespace to evaluate rules for. Required.
      * 
* * optional string namespace = 1; @@ -14276,7 +14342,7 @@ public java.lang.String getNamespace() { } /** *
-     * Namespace to evaluate rules for. Required.
+     * namespace to evaluate rules for. Required.
      * 
* * optional string namespace = 1; @@ -14618,7 +14684,7 @@ public Builder mergeFrom( private java.lang.Object namespace_ = ""; /** *
-       * Namespace to evaluate rules for. Required.
+       * namespace to evaluate rules for. Required.
        * 
* * optional string namespace = 1; @@ -14628,7 +14694,7 @@ public boolean hasNamespace() { } /** *
-       * Namespace to evaluate rules for. Required.
+       * namespace to evaluate rules for. Required.
        * 
* * optional string namespace = 1; @@ -14649,7 +14715,7 @@ public java.lang.String getNamespace() { } /** *
-       * Namespace to evaluate rules for. Required.
+       * namespace to evaluate rules for. Required.
        * 
* * optional string namespace = 1; @@ -14669,7 +14735,7 @@ public java.lang.String getNamespace() { } /** *
-       * Namespace to evaluate rules for. Required.
+       * namespace to evaluate rules for. Required.
        * 
* * optional string namespace = 1; @@ -14686,7 +14752,7 @@ public Builder setNamespace( } /** *
-       * Namespace to evaluate rules for. Required.
+       * namespace to evaluate rules for. Required.
        * 
* * optional string namespace = 1; @@ -14699,7 +14765,7 @@ public Builder clearNamespace() { } /** *
-       * Namespace to evaluate rules for. Required.
+       * namespace to evaluate rules for. Required.
        * 
* * optional string namespace = 1; @@ -14773,7 +14839,7 @@ public interface SubjectAccessReviewOrBuilder extends /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -14783,7 +14849,7 @@ public interface SubjectAccessReviewOrBuilder extends boolean hasMetadata(); /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -14793,7 +14859,7 @@ public interface SubjectAccessReviewOrBuilder extends io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -14804,7 +14870,7 @@ public interface SubjectAccessReviewOrBuilder extends /** *
-     * Spec holds information about the request being evaluated
+     * spec holds information about the request being evaluated
      * 
* * optional .k8s.io.api.authorization.v1.SubjectAccessReviewSpec spec = 2; @@ -14812,7 +14878,7 @@ public interface SubjectAccessReviewOrBuilder extends boolean hasSpec(); /** *
-     * Spec holds information about the request being evaluated
+     * spec holds information about the request being evaluated
      * 
* * optional .k8s.io.api.authorization.v1.SubjectAccessReviewSpec spec = 2; @@ -14820,7 +14886,7 @@ public interface SubjectAccessReviewOrBuilder extends io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec getSpec(); /** *
-     * Spec holds information about the request being evaluated
+     * spec holds information about the request being evaluated
      * 
* * optional .k8s.io.api.authorization.v1.SubjectAccessReviewSpec spec = 2; @@ -14829,7 +14895,7 @@ public interface SubjectAccessReviewOrBuilder extends /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -14838,7 +14904,7 @@ public interface SubjectAccessReviewOrBuilder extends boolean hasStatus(); /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -14847,7 +14913,7 @@ public interface SubjectAccessReviewOrBuilder extends io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus getStatus(); /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -14858,6 +14924,7 @@ public interface SubjectAccessReviewOrBuilder extends /** *
    * SubjectAccessReview checks whether or not a user or group can perform an action.
+   * +k8s:supportsSubresource="/status"
    * 
* * Protobuf type {@code k8s.io.api.authorization.v1.SubjectAccessReview} @@ -14974,7 +15041,7 @@ private SubjectAccessReview( private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -14986,7 +15053,7 @@ public boolean hasMetadata() { } /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -14998,7 +15065,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-     * Standard list metadata.
+     * metadata is the standard list metadata.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
@@ -15013,7 +15080,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( private io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec spec_; /** *
-     * Spec holds information about the request being evaluated
+     * spec holds information about the request being evaluated
      * 
* * optional .k8s.io.api.authorization.v1.SubjectAccessReviewSpec spec = 2; @@ -15023,7 +15090,7 @@ public boolean hasSpec() { } /** *
-     * Spec holds information about the request being evaluated
+     * spec holds information about the request being evaluated
      * 
* * optional .k8s.io.api.authorization.v1.SubjectAccessReviewSpec spec = 2; @@ -15033,7 +15100,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec getSpe } /** *
-     * Spec holds information about the request being evaluated
+     * spec holds information about the request being evaluated
      * 
* * optional .k8s.io.api.authorization.v1.SubjectAccessReviewSpec spec = 2; @@ -15046,7 +15113,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpecOrBuild private io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus status_; /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -15057,7 +15124,7 @@ public boolean hasStatus() { } /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -15068,7 +15135,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus getS } /** *
-     * Status is filled in by the server and indicates whether the request is allowed or not
+     * status is filled in by the server and indicates whether the request is allowed or not
      * +optional
      * 
* @@ -15274,6 +15341,7 @@ protected Builder newBuilderForType( /** *
      * SubjectAccessReview checks whether or not a user or group can perform an action.
+     * +k8s:supportsSubresource="/status"
      * 
* * Protobuf type {@code k8s.io.api.authorization.v1.SubjectAccessReview} @@ -15479,7 +15547,7 @@ public Builder mergeFrom( io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -15491,7 +15559,7 @@ public boolean hasMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -15507,7 +15575,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -15529,7 +15597,7 @@ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -15549,7 +15617,7 @@ public Builder setMetadata( } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -15575,7 +15643,7 @@ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -15594,7 +15662,7 @@ public Builder clearMetadata() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -15608,7 +15676,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -15625,7 +15693,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( } /** *
-       * Standard list metadata.
+       * metadata is the standard list metadata.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
@@ -15651,7 +15719,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec, io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec.Builder, io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpecOrBuilder> specBuilder_; /** *
-       * Spec holds information about the request being evaluated
+       * spec holds information about the request being evaluated
        * 
* * optional .k8s.io.api.authorization.v1.SubjectAccessReviewSpec spec = 2; @@ -15661,7 +15729,7 @@ public boolean hasSpec() { } /** *
-       * Spec holds information about the request being evaluated
+       * spec holds information about the request being evaluated
        * 
* * optional .k8s.io.api.authorization.v1.SubjectAccessReviewSpec spec = 2; @@ -15675,7 +15743,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec getSpe } /** *
-       * Spec holds information about the request being evaluated
+       * spec holds information about the request being evaluated
        * 
* * optional .k8s.io.api.authorization.v1.SubjectAccessReviewSpec spec = 2; @@ -15695,7 +15763,7 @@ public Builder setSpec(io.kubernetes.client.proto.V1Authorization.SubjectAccessR } /** *
-       * Spec holds information about the request being evaluated
+       * spec holds information about the request being evaluated
        * 
* * optional .k8s.io.api.authorization.v1.SubjectAccessReviewSpec spec = 2; @@ -15713,7 +15781,7 @@ public Builder setSpec( } /** *
-       * Spec holds information about the request being evaluated
+       * spec holds information about the request being evaluated
        * 
* * optional .k8s.io.api.authorization.v1.SubjectAccessReviewSpec spec = 2; @@ -15737,7 +15805,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Authorization.SubjectAcces } /** *
-       * Spec holds information about the request being evaluated
+       * spec holds information about the request being evaluated
        * 
* * optional .k8s.io.api.authorization.v1.SubjectAccessReviewSpec spec = 2; @@ -15754,7 +15822,7 @@ public Builder clearSpec() { } /** *
-       * Spec holds information about the request being evaluated
+       * spec holds information about the request being evaluated
        * 
* * optional .k8s.io.api.authorization.v1.SubjectAccessReviewSpec spec = 2; @@ -15766,7 +15834,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpec.Builde } /** *
-       * Spec holds information about the request being evaluated
+       * spec holds information about the request being evaluated
        * 
* * optional .k8s.io.api.authorization.v1.SubjectAccessReviewSpec spec = 2; @@ -15781,7 +15849,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpecOrBuild } /** *
-       * Spec holds information about the request being evaluated
+       * spec holds information about the request being evaluated
        * 
* * optional .k8s.io.api.authorization.v1.SubjectAccessReviewSpec spec = 2; @@ -15805,7 +15873,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewSpecOrBuild io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus, io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus.Builder, io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatusOrBuilder> statusBuilder_; /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -15816,7 +15884,7 @@ public boolean hasStatus() { } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -15831,7 +15899,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus getS } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -15852,7 +15920,7 @@ public Builder setStatus(io.kubernetes.client.proto.V1Authorization.SubjectAcces } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -15871,7 +15939,7 @@ public Builder setStatus( } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -15896,7 +15964,7 @@ public Builder mergeStatus(io.kubernetes.client.proto.V1Authorization.SubjectAcc } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -15914,7 +15982,7 @@ public Builder clearStatus() { } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -15927,7 +15995,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatus.Buil } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -15943,7 +16011,7 @@ public io.kubernetes.client.proto.V1Authorization.SubjectAccessReviewStatusOrBui } /** *
-       * Status is filled in by the server and indicates whether the request is allowed or not
+       * status is filled in by the server and indicates whether the request is allowed or not
        * +optional
        * 
* @@ -16021,8 +16089,10 @@ public interface SubjectAccessReviewSpecOrBuilder extends /** *
-     * ResourceAuthorizationAttributes describes information for a resource access request
+     * resourceAttributes describes information for a resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -16030,8 +16100,10 @@ public interface SubjectAccessReviewSpecOrBuilder extends boolean hasResourceAttributes(); /** *
-     * ResourceAuthorizationAttributes describes information for a resource access request
+     * resourceAttributes describes information for a resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -16039,8 +16111,10 @@ public interface SubjectAccessReviewSpecOrBuilder extends io.kubernetes.client.proto.V1Authorization.ResourceAttributes getResourceAttributes(); /** *
-     * ResourceAuthorizationAttributes describes information for a resource access request
+     * resourceAttributes describes information for a resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -16049,8 +16123,10 @@ public interface SubjectAccessReviewSpecOrBuilder extends /** *
-     * NonResourceAttributes describes information for a non-resource access request
+     * nonResourceAttributes describes information for a non-resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -16058,8 +16134,10 @@ public interface SubjectAccessReviewSpecOrBuilder extends boolean hasNonResourceAttributes(); /** *
-     * NonResourceAttributes describes information for a non-resource access request
+     * nonResourceAttributes describes information for a non-resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -16067,8 +16145,10 @@ public interface SubjectAccessReviewSpecOrBuilder extends io.kubernetes.client.proto.V1Authorization.NonResourceAttributes getNonResourceAttributes(); /** *
-     * NonResourceAttributes describes information for a non-resource access request
+     * nonResourceAttributes describes information for a non-resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -16077,7 +16157,7 @@ public interface SubjectAccessReviewSpecOrBuilder extends /** *
-     * User is the user you're testing for.
+     * user is the user you're testing for.
      * If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
      * +optional
      * 
@@ -16087,7 +16167,7 @@ public interface SubjectAccessReviewSpecOrBuilder extends boolean hasUser(); /** *
-     * User is the user you're testing for.
+     * user is the user you're testing for.
      * If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
      * +optional
      * 
@@ -16097,7 +16177,7 @@ public interface SubjectAccessReviewSpecOrBuilder extends java.lang.String getUser(); /** *
-     * User is the user you're testing for.
+     * user is the user you're testing for.
      * If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
      * +optional
      * 
@@ -16109,7 +16189,7 @@ public interface SubjectAccessReviewSpecOrBuilder extends /** *
-     * Groups is the groups you're testing for.
+     * groups is the groups you're testing for.
      * +optional
      * +listType=atomic
      * 
@@ -16120,7 +16200,7 @@ public interface SubjectAccessReviewSpecOrBuilder extends getGroupsList(); /** *
-     * Groups is the groups you're testing for.
+     * groups is the groups you're testing for.
      * +optional
      * +listType=atomic
      * 
@@ -16130,7 +16210,7 @@ public interface SubjectAccessReviewSpecOrBuilder extends int getGroupsCount(); /** *
-     * Groups is the groups you're testing for.
+     * groups is the groups you're testing for.
      * +optional
      * +listType=atomic
      * 
@@ -16140,7 +16220,7 @@ public interface SubjectAccessReviewSpecOrBuilder extends java.lang.String getGroups(int index); /** *
-     * Groups is the groups you're testing for.
+     * groups is the groups you're testing for.
      * +optional
      * +listType=atomic
      * 
@@ -16152,7 +16232,7 @@ public interface SubjectAccessReviewSpecOrBuilder extends /** *
-     * Extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
+     * extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
      * it needs a reflection here.
      * +optional
      * 
@@ -16162,7 +16242,7 @@ public interface SubjectAccessReviewSpecOrBuilder extends int getExtraCount(); /** *
-     * Extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
+     * extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
      * it needs a reflection here.
      * +optional
      * 
@@ -16179,7 +16259,7 @@ boolean containsExtra( getExtra(); /** *
-     * Extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
+     * extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
      * it needs a reflection here.
      * +optional
      * 
@@ -16190,7 +16270,7 @@ boolean containsExtra( getExtraMap(); /** *
-     * Extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
+     * extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
      * it needs a reflection here.
      * +optional
      * 
@@ -16203,7 +16283,7 @@ io.kubernetes.client.proto.V1Authorization.ExtraValue getExtraOrDefault( io.kubernetes.client.proto.V1Authorization.ExtraValue defaultValue); /** *
-     * Extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
+     * extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
      * it needs a reflection here.
      * +optional
      * 
@@ -16216,7 +16296,7 @@ io.kubernetes.client.proto.V1Authorization.ExtraValue getExtraOrThrow( /** *
-     * UID information about the requesting user.
+     * uid information about the requesting user.
      * +optional
      * 
* @@ -16225,7 +16305,7 @@ io.kubernetes.client.proto.V1Authorization.ExtraValue getExtraOrThrow( boolean hasUid(); /** *
-     * UID information about the requesting user.
+     * uid information about the requesting user.
      * +optional
      * 
* @@ -16234,7 +16314,7 @@ io.kubernetes.client.proto.V1Authorization.ExtraValue getExtraOrThrow( java.lang.String getUid(); /** *
-     * UID information about the requesting user.
+     * uid information about the requesting user.
      * +optional
      * 
* @@ -16245,8 +16325,8 @@ io.kubernetes.client.proto.V1Authorization.ExtraValue getExtraOrThrow( } /** *
-   * SubjectAccessReviewSpec is a description of the access request.  Exactly one of ResourceAuthorizationAttributes
-   * and NonResourceAuthorizationAttributes must be set
+   * SubjectAccessReviewSpec is a description of the access request.  Exactly one of resourceAttributes
+   * and nonResourceAttributes must be set
    * 
* * Protobuf type {@code k8s.io.api.authorization.v1.SubjectAccessReviewSpec} @@ -16402,8 +16482,10 @@ protected com.google.protobuf.MapField internalGetMapField( private io.kubernetes.client.proto.V1Authorization.ResourceAttributes resourceAttributes_; /** *
-     * ResourceAuthorizationAttributes describes information for a resource access request
+     * resourceAttributes describes information for a resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -16413,8 +16495,10 @@ public boolean hasResourceAttributes() { } /** *
-     * ResourceAuthorizationAttributes describes information for a resource access request
+     * resourceAttributes describes information for a resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -16424,8 +16508,10 @@ public io.kubernetes.client.proto.V1Authorization.ResourceAttributes getResource } /** *
-     * ResourceAuthorizationAttributes describes information for a resource access request
+     * resourceAttributes describes information for a resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -16438,8 +16524,10 @@ public io.kubernetes.client.proto.V1Authorization.ResourceAttributesOrBuilder ge private io.kubernetes.client.proto.V1Authorization.NonResourceAttributes nonResourceAttributes_; /** *
-     * NonResourceAttributes describes information for a non-resource access request
+     * nonResourceAttributes describes information for a non-resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -16449,8 +16537,10 @@ public boolean hasNonResourceAttributes() { } /** *
-     * NonResourceAttributes describes information for a non-resource access request
+     * nonResourceAttributes describes information for a non-resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -16460,8 +16550,10 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceAttributes getNonRe } /** *
-     * NonResourceAttributes describes information for a non-resource access request
+     * nonResourceAttributes describes information for a non-resource access request
      * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:unionMember
      * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -16474,7 +16566,7 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceAttributesOrBuilder private volatile java.lang.Object user_; /** *
-     * User is the user you're testing for.
+     * user is the user you're testing for.
      * If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
      * +optional
      * 
@@ -16486,7 +16578,7 @@ public boolean hasUser() { } /** *
-     * User is the user you're testing for.
+     * user is the user you're testing for.
      * If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
      * +optional
      * 
@@ -16509,7 +16601,7 @@ public java.lang.String getUser() { } /** *
-     * User is the user you're testing for.
+     * user is the user you're testing for.
      * If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
      * +optional
      * 
@@ -16534,7 +16626,7 @@ public java.lang.String getUser() { private com.google.protobuf.LazyStringList groups_; /** *
-     * Groups is the groups you're testing for.
+     * groups is the groups you're testing for.
      * +optional
      * +listType=atomic
      * 
@@ -16547,7 +16639,7 @@ public java.lang.String getUser() { } /** *
-     * Groups is the groups you're testing for.
+     * groups is the groups you're testing for.
      * +optional
      * +listType=atomic
      * 
@@ -16559,7 +16651,7 @@ public int getGroupsCount() { } /** *
-     * Groups is the groups you're testing for.
+     * groups is the groups you're testing for.
      * +optional
      * +listType=atomic
      * 
@@ -16571,7 +16663,7 @@ public java.lang.String getGroups(int index) { } /** *
-     * Groups is the groups you're testing for.
+     * groups is the groups you're testing for.
      * +optional
      * +listType=atomic
      * 
@@ -16611,7 +16703,7 @@ public int getExtraCount() { } /** *
-     * Extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
+     * extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
      * it needs a reflection here.
      * +optional
      * 
@@ -16633,7 +16725,7 @@ public java.util.Map - * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer + * extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer * it needs a reflection here. * +optional *
@@ -16646,7 +16738,7 @@ public java.util.Map - * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer + * extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer * it needs a reflection here. * +optional *
@@ -16664,7 +16756,7 @@ public io.kubernetes.client.proto.V1Authorization.ExtraValue getExtraOrDefault( } /** *
-     * Extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
+     * extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
      * it needs a reflection here.
      * +optional
      * 
@@ -16687,7 +16779,7 @@ public io.kubernetes.client.proto.V1Authorization.ExtraValue getExtraOrThrow( private volatile java.lang.Object uid_; /** *
-     * UID information about the requesting user.
+     * uid information about the requesting user.
      * +optional
      * 
* @@ -16698,7 +16790,7 @@ public boolean hasUid() { } /** *
-     * UID information about the requesting user.
+     * uid information about the requesting user.
      * +optional
      * 
* @@ -16720,7 +16812,7 @@ public java.lang.String getUid() { } /** *
-     * UID information about the requesting user.
+     * uid information about the requesting user.
      * +optional
      * 
* @@ -16988,8 +17080,8 @@ protected Builder newBuilderForType( } /** *
-     * SubjectAccessReviewSpec is a description of the access request.  Exactly one of ResourceAuthorizationAttributes
-     * and NonResourceAuthorizationAttributes must be set
+     * SubjectAccessReviewSpec is a description of the access request.  Exactly one of resourceAttributes
+     * and nonResourceAttributes must be set
      * 
* * Protobuf type {@code k8s.io.api.authorization.v1.SubjectAccessReviewSpec} @@ -17243,8 +17335,10 @@ public Builder mergeFrom( io.kubernetes.client.proto.V1Authorization.ResourceAttributes, io.kubernetes.client.proto.V1Authorization.ResourceAttributes.Builder, io.kubernetes.client.proto.V1Authorization.ResourceAttributesOrBuilder> resourceAttributesBuilder_; /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -17254,8 +17348,10 @@ public boolean hasResourceAttributes() { } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -17269,8 +17365,10 @@ public io.kubernetes.client.proto.V1Authorization.ResourceAttributes getResource } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -17290,8 +17388,10 @@ public Builder setResourceAttributes(io.kubernetes.client.proto.V1Authorization. } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -17309,8 +17409,10 @@ public Builder setResourceAttributes( } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -17334,8 +17436,10 @@ public Builder mergeResourceAttributes(io.kubernetes.client.proto.V1Authorizatio } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -17352,8 +17456,10 @@ public Builder clearResourceAttributes() { } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -17365,8 +17471,10 @@ public io.kubernetes.client.proto.V1Authorization.ResourceAttributes.Builder get } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -17381,8 +17489,10 @@ public io.kubernetes.client.proto.V1Authorization.ResourceAttributesOrBuilder ge } /** *
-       * ResourceAuthorizationAttributes describes information for a resource access request
+       * resourceAttributes describes information for a resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.ResourceAttributes resourceAttributes = 1; @@ -17406,8 +17516,10 @@ public io.kubernetes.client.proto.V1Authorization.ResourceAttributesOrBuilder ge io.kubernetes.client.proto.V1Authorization.NonResourceAttributes, io.kubernetes.client.proto.V1Authorization.NonResourceAttributes.Builder, io.kubernetes.client.proto.V1Authorization.NonResourceAttributesOrBuilder> nonResourceAttributesBuilder_; /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -17417,8 +17529,10 @@ public boolean hasNonResourceAttributes() { } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -17432,8 +17546,10 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceAttributes getNonRe } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -17453,8 +17569,10 @@ public Builder setNonResourceAttributes(io.kubernetes.client.proto.V1Authorizati } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -17472,8 +17590,10 @@ public Builder setNonResourceAttributes( } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -17497,8 +17617,10 @@ public Builder mergeNonResourceAttributes(io.kubernetes.client.proto.V1Authoriza } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -17515,8 +17637,10 @@ public Builder clearNonResourceAttributes() { } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -17528,8 +17652,10 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceAttributes.Builder } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -17544,8 +17670,10 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceAttributesOrBuilder } /** *
-       * NonResourceAttributes describes information for a non-resource access request
+       * nonResourceAttributes describes information for a non-resource access request
        * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:unionMember
        * 
* * optional .k8s.io.api.authorization.v1.NonResourceAttributes nonResourceAttributes = 2; @@ -17567,7 +17695,7 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceAttributesOrBuilder private java.lang.Object user_ = ""; /** *
-       * User is the user you're testing for.
+       * user is the user you're testing for.
        * If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
        * +optional
        * 
@@ -17579,7 +17707,7 @@ public boolean hasUser() { } /** *
-       * User is the user you're testing for.
+       * user is the user you're testing for.
        * If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
        * +optional
        * 
@@ -17602,7 +17730,7 @@ public java.lang.String getUser() { } /** *
-       * User is the user you're testing for.
+       * user is the user you're testing for.
        * If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
        * +optional
        * 
@@ -17624,7 +17752,7 @@ public java.lang.String getUser() { } /** *
-       * User is the user you're testing for.
+       * user is the user you're testing for.
        * If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
        * +optional
        * 
@@ -17643,7 +17771,7 @@ public Builder setUser( } /** *
-       * User is the user you're testing for.
+       * user is the user you're testing for.
        * If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
        * +optional
        * 
@@ -17658,7 +17786,7 @@ public Builder clearUser() { } /** *
-       * User is the user you're testing for.
+       * user is the user you're testing for.
        * If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups
        * +optional
        * 
@@ -17685,7 +17813,7 @@ private void ensureGroupsIsMutable() { } /** *
-       * Groups is the groups you're testing for.
+       * groups is the groups you're testing for.
        * +optional
        * +listType=atomic
        * 
@@ -17698,7 +17826,7 @@ private void ensureGroupsIsMutable() { } /** *
-       * Groups is the groups you're testing for.
+       * groups is the groups you're testing for.
        * +optional
        * +listType=atomic
        * 
@@ -17710,7 +17838,7 @@ public int getGroupsCount() { } /** *
-       * Groups is the groups you're testing for.
+       * groups is the groups you're testing for.
        * +optional
        * +listType=atomic
        * 
@@ -17722,7 +17850,7 @@ public java.lang.String getGroups(int index) { } /** *
-       * Groups is the groups you're testing for.
+       * groups is the groups you're testing for.
        * +optional
        * +listType=atomic
        * 
@@ -17735,7 +17863,7 @@ public java.lang.String getGroups(int index) { } /** *
-       * Groups is the groups you're testing for.
+       * groups is the groups you're testing for.
        * +optional
        * +listType=atomic
        * 
@@ -17754,7 +17882,7 @@ public Builder setGroups( } /** *
-       * Groups is the groups you're testing for.
+       * groups is the groups you're testing for.
        * +optional
        * +listType=atomic
        * 
@@ -17773,7 +17901,7 @@ public Builder addGroups( } /** *
-       * Groups is the groups you're testing for.
+       * groups is the groups you're testing for.
        * +optional
        * +listType=atomic
        * 
@@ -17790,7 +17918,7 @@ public Builder addAllGroups( } /** *
-       * Groups is the groups you're testing for.
+       * groups is the groups you're testing for.
        * +optional
        * +listType=atomic
        * 
@@ -17805,7 +17933,7 @@ public Builder clearGroups() { } /** *
-       * Groups is the groups you're testing for.
+       * groups is the groups you're testing for.
        * +optional
        * +listType=atomic
        * 
@@ -17851,7 +17979,7 @@ public int getExtraCount() { } /** *
-       * Extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
+       * extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
        * it needs a reflection here.
        * +optional
        * 
@@ -17873,7 +18001,7 @@ public java.util.Map - * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer + * extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer * it needs a reflection here. * +optional *
@@ -17886,7 +18014,7 @@ public java.util.Map - * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer + * extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer * it needs a reflection here. * +optional *
@@ -17904,7 +18032,7 @@ public io.kubernetes.client.proto.V1Authorization.ExtraValue getExtraOrDefault( } /** *
-       * Extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
+       * extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
        * it needs a reflection here.
        * +optional
        * 
@@ -17930,7 +18058,7 @@ public Builder clearExtra() { } /** *
-       * Extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
+       * extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
        * it needs a reflection here.
        * +optional
        * 
@@ -17955,7 +18083,7 @@ public Builder removeExtra( } /** *
-       * Extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
+       * extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
        * it needs a reflection here.
        * +optional
        * 
@@ -17973,7 +18101,7 @@ public Builder putExtra( } /** *
-       * Extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
+       * extra corresponds to the user.Info.GetExtra() method from the authenticator.  Since that is input to the authorizer
        * it needs a reflection here.
        * +optional
        * 
@@ -17991,7 +18119,7 @@ public Builder putAllExtra( private java.lang.Object uid_ = ""; /** *
-       * UID information about the requesting user.
+       * uid information about the requesting user.
        * +optional
        * 
* @@ -18002,7 +18130,7 @@ public boolean hasUid() { } /** *
-       * UID information about the requesting user.
+       * uid information about the requesting user.
        * +optional
        * 
* @@ -18024,7 +18152,7 @@ public java.lang.String getUid() { } /** *
-       * UID information about the requesting user.
+       * uid information about the requesting user.
        * +optional
        * 
* @@ -18045,7 +18173,7 @@ public java.lang.String getUid() { } /** *
-       * UID information about the requesting user.
+       * uid information about the requesting user.
        * +optional
        * 
* @@ -18063,7 +18191,7 @@ public Builder setUid( } /** *
-       * UID information about the requesting user.
+       * uid information about the requesting user.
        * +optional
        * 
* @@ -18077,7 +18205,7 @@ public Builder clearUid() { } /** *
-       * UID information about the requesting user.
+       * uid information about the requesting user.
        * +optional
        * 
* @@ -18152,7 +18280,7 @@ public interface SubjectAccessReviewStatusOrBuilder extends /** *
-     * Allowed is required. True if the action would be allowed, false otherwise.
+     * allowed is required. True if the action would be allowed, false otherwise.
      * 
* * optional bool allowed = 1; @@ -18160,7 +18288,7 @@ public interface SubjectAccessReviewStatusOrBuilder extends boolean hasAllowed(); /** *
-     * Allowed is required. True if the action would be allowed, false otherwise.
+     * allowed is required. True if the action would be allowed, false otherwise.
      * 
* * optional bool allowed = 1; @@ -18169,7 +18297,7 @@ public interface SubjectAccessReviewStatusOrBuilder extends /** *
-     * Denied is optional. True if the action would be denied, otherwise
+     * denied is optional. True if the action would be denied, otherwise
      * false. If both allowed is false and denied is false, then the
      * authorizer has no opinion on whether to authorize the action. Denied
      * may not be true if Allowed is true.
@@ -18181,7 +18309,7 @@ public interface SubjectAccessReviewStatusOrBuilder extends
     boolean hasDenied();
     /**
      * 
-     * Denied is optional. True if the action would be denied, otherwise
+     * denied is optional. True if the action would be denied, otherwise
      * false. If both allowed is false and denied is false, then the
      * authorizer has no opinion on whether to authorize the action. Denied
      * may not be true if Allowed is true.
@@ -18194,7 +18322,7 @@ public interface SubjectAccessReviewStatusOrBuilder extends
 
     /**
      * 
-     * Reason is optional.  It indicates why a request was allowed or denied.
+     * reason is optional.  It indicates why a request was allowed or denied.
      * +optional
      * 
* @@ -18203,7 +18331,7 @@ public interface SubjectAccessReviewStatusOrBuilder extends boolean hasReason(); /** *
-     * Reason is optional.  It indicates why a request was allowed or denied.
+     * reason is optional.  It indicates why a request was allowed or denied.
      * +optional
      * 
* @@ -18212,7 +18340,7 @@ public interface SubjectAccessReviewStatusOrBuilder extends java.lang.String getReason(); /** *
-     * Reason is optional.  It indicates why a request was allowed or denied.
+     * reason is optional.  It indicates why a request was allowed or denied.
      * +optional
      * 
* @@ -18223,7 +18351,7 @@ public interface SubjectAccessReviewStatusOrBuilder extends /** *
-     * EvaluationError is an indication that some error occurred during the authorization check.
+     * evaluationError is an indication that some error occurred during the authorization check.
      * It is entirely possible to get an error and be able to continue determine authorization status in spite of it.
      * For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.
      * +optional
@@ -18234,7 +18362,7 @@ public interface SubjectAccessReviewStatusOrBuilder extends
     boolean hasEvaluationError();
     /**
      * 
-     * EvaluationError is an indication that some error occurred during the authorization check.
+     * evaluationError is an indication that some error occurred during the authorization check.
      * It is entirely possible to get an error and be able to continue determine authorization status in spite of it.
      * For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.
      * +optional
@@ -18245,7 +18373,7 @@ public interface SubjectAccessReviewStatusOrBuilder extends
     java.lang.String getEvaluationError();
     /**
      * 
-     * EvaluationError is an indication that some error occurred during the authorization check.
+     * evaluationError is an indication that some error occurred during the authorization check.
      * It is entirely possible to get an error and be able to continue determine authorization status in spite of it.
      * For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.
      * +optional
@@ -18362,7 +18490,7 @@ private SubjectAccessReviewStatus(
     private boolean allowed_;
     /**
      * 
-     * Allowed is required. True if the action would be allowed, false otherwise.
+     * allowed is required. True if the action would be allowed, false otherwise.
      * 
* * optional bool allowed = 1; @@ -18372,7 +18500,7 @@ public boolean hasAllowed() { } /** *
-     * Allowed is required. True if the action would be allowed, false otherwise.
+     * allowed is required. True if the action would be allowed, false otherwise.
      * 
* * optional bool allowed = 1; @@ -18385,7 +18513,7 @@ public boolean getAllowed() { private boolean denied_; /** *
-     * Denied is optional. True if the action would be denied, otherwise
+     * denied is optional. True if the action would be denied, otherwise
      * false. If both allowed is false and denied is false, then the
      * authorizer has no opinion on whether to authorize the action. Denied
      * may not be true if Allowed is true.
@@ -18399,7 +18527,7 @@ public boolean hasDenied() {
     }
     /**
      * 
-     * Denied is optional. True if the action would be denied, otherwise
+     * denied is optional. True if the action would be denied, otherwise
      * false. If both allowed is false and denied is false, then the
      * authorizer has no opinion on whether to authorize the action. Denied
      * may not be true if Allowed is true.
@@ -18416,7 +18544,7 @@ public boolean getDenied() {
     private volatile java.lang.Object reason_;
     /**
      * 
-     * Reason is optional.  It indicates why a request was allowed or denied.
+     * reason is optional.  It indicates why a request was allowed or denied.
      * +optional
      * 
* @@ -18427,7 +18555,7 @@ public boolean hasReason() { } /** *
-     * Reason is optional.  It indicates why a request was allowed or denied.
+     * reason is optional.  It indicates why a request was allowed or denied.
      * +optional
      * 
* @@ -18449,7 +18577,7 @@ public java.lang.String getReason() { } /** *
-     * Reason is optional.  It indicates why a request was allowed or denied.
+     * reason is optional.  It indicates why a request was allowed or denied.
      * +optional
      * 
* @@ -18473,7 +18601,7 @@ public java.lang.String getReason() { private volatile java.lang.Object evaluationError_; /** *
-     * EvaluationError is an indication that some error occurred during the authorization check.
+     * evaluationError is an indication that some error occurred during the authorization check.
      * It is entirely possible to get an error and be able to continue determine authorization status in spite of it.
      * For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.
      * +optional
@@ -18486,7 +18614,7 @@ public boolean hasEvaluationError() {
     }
     /**
      * 
-     * EvaluationError is an indication that some error occurred during the authorization check.
+     * evaluationError is an indication that some error occurred during the authorization check.
      * It is entirely possible to get an error and be able to continue determine authorization status in spite of it.
      * For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.
      * +optional
@@ -18510,7 +18638,7 @@ public java.lang.String getEvaluationError() {
     }
     /**
      * 
-     * EvaluationError is an indication that some error occurred during the authorization check.
+     * evaluationError is an indication that some error occurred during the authorization check.
      * It is entirely possible to get an error and be able to continue determine authorization status in spite of it.
      * For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.
      * +optional
@@ -18933,7 +19061,7 @@ public Builder mergeFrom(
       private boolean allowed_ ;
       /**
        * 
-       * Allowed is required. True if the action would be allowed, false otherwise.
+       * allowed is required. True if the action would be allowed, false otherwise.
        * 
* * optional bool allowed = 1; @@ -18943,7 +19071,7 @@ public boolean hasAllowed() { } /** *
-       * Allowed is required. True if the action would be allowed, false otherwise.
+       * allowed is required. True if the action would be allowed, false otherwise.
        * 
* * optional bool allowed = 1; @@ -18953,7 +19081,7 @@ public boolean getAllowed() { } /** *
-       * Allowed is required. True if the action would be allowed, false otherwise.
+       * allowed is required. True if the action would be allowed, false otherwise.
        * 
* * optional bool allowed = 1; @@ -18966,7 +19094,7 @@ public Builder setAllowed(boolean value) { } /** *
-       * Allowed is required. True if the action would be allowed, false otherwise.
+       * allowed is required. True if the action would be allowed, false otherwise.
        * 
* * optional bool allowed = 1; @@ -18981,7 +19109,7 @@ public Builder clearAllowed() { private boolean denied_ ; /** *
-       * Denied is optional. True if the action would be denied, otherwise
+       * denied is optional. True if the action would be denied, otherwise
        * false. If both allowed is false and denied is false, then the
        * authorizer has no opinion on whether to authorize the action. Denied
        * may not be true if Allowed is true.
@@ -18995,7 +19123,7 @@ public boolean hasDenied() {
       }
       /**
        * 
-       * Denied is optional. True if the action would be denied, otherwise
+       * denied is optional. True if the action would be denied, otherwise
        * false. If both allowed is false and denied is false, then the
        * authorizer has no opinion on whether to authorize the action. Denied
        * may not be true if Allowed is true.
@@ -19009,7 +19137,7 @@ public boolean getDenied() {
       }
       /**
        * 
-       * Denied is optional. True if the action would be denied, otherwise
+       * denied is optional. True if the action would be denied, otherwise
        * false. If both allowed is false and denied is false, then the
        * authorizer has no opinion on whether to authorize the action. Denied
        * may not be true if Allowed is true.
@@ -19026,7 +19154,7 @@ public Builder setDenied(boolean value) {
       }
       /**
        * 
-       * Denied is optional. True if the action would be denied, otherwise
+       * denied is optional. True if the action would be denied, otherwise
        * false. If both allowed is false and denied is false, then the
        * authorizer has no opinion on whether to authorize the action. Denied
        * may not be true if Allowed is true.
@@ -19045,7 +19173,7 @@ public Builder clearDenied() {
       private java.lang.Object reason_ = "";
       /**
        * 
-       * Reason is optional.  It indicates why a request was allowed or denied.
+       * reason is optional.  It indicates why a request was allowed or denied.
        * +optional
        * 
* @@ -19056,7 +19184,7 @@ public boolean hasReason() { } /** *
-       * Reason is optional.  It indicates why a request was allowed or denied.
+       * reason is optional.  It indicates why a request was allowed or denied.
        * +optional
        * 
* @@ -19078,7 +19206,7 @@ public java.lang.String getReason() { } /** *
-       * Reason is optional.  It indicates why a request was allowed or denied.
+       * reason is optional.  It indicates why a request was allowed or denied.
        * +optional
        * 
* @@ -19099,7 +19227,7 @@ public java.lang.String getReason() { } /** *
-       * Reason is optional.  It indicates why a request was allowed or denied.
+       * reason is optional.  It indicates why a request was allowed or denied.
        * +optional
        * 
* @@ -19117,7 +19245,7 @@ public Builder setReason( } /** *
-       * Reason is optional.  It indicates why a request was allowed or denied.
+       * reason is optional.  It indicates why a request was allowed or denied.
        * +optional
        * 
* @@ -19131,7 +19259,7 @@ public Builder clearReason() { } /** *
-       * Reason is optional.  It indicates why a request was allowed or denied.
+       * reason is optional.  It indicates why a request was allowed or denied.
        * +optional
        * 
* @@ -19151,7 +19279,7 @@ public Builder setReasonBytes( private java.lang.Object evaluationError_ = ""; /** *
-       * EvaluationError is an indication that some error occurred during the authorization check.
+       * evaluationError is an indication that some error occurred during the authorization check.
        * It is entirely possible to get an error and be able to continue determine authorization status in spite of it.
        * For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.
        * +optional
@@ -19164,7 +19292,7 @@ public boolean hasEvaluationError() {
       }
       /**
        * 
-       * EvaluationError is an indication that some error occurred during the authorization check.
+       * evaluationError is an indication that some error occurred during the authorization check.
        * It is entirely possible to get an error and be able to continue determine authorization status in spite of it.
        * For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.
        * +optional
@@ -19188,7 +19316,7 @@ public java.lang.String getEvaluationError() {
       }
       /**
        * 
-       * EvaluationError is an indication that some error occurred during the authorization check.
+       * evaluationError is an indication that some error occurred during the authorization check.
        * It is entirely possible to get an error and be able to continue determine authorization status in spite of it.
        * For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.
        * +optional
@@ -19211,7 +19339,7 @@ public java.lang.String getEvaluationError() {
       }
       /**
        * 
-       * EvaluationError is an indication that some error occurred during the authorization check.
+       * evaluationError is an indication that some error occurred during the authorization check.
        * It is entirely possible to get an error and be able to continue determine authorization status in spite of it.
        * For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.
        * +optional
@@ -19231,7 +19359,7 @@ public Builder setEvaluationError(
       }
       /**
        * 
-       * EvaluationError is an indication that some error occurred during the authorization check.
+       * evaluationError is an indication that some error occurred during the authorization check.
        * It is entirely possible to get an error and be able to continue determine authorization status in spite of it.
        * For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.
        * +optional
@@ -19247,7 +19375,7 @@ public Builder clearEvaluationError() {
       }
       /**
        * 
-       * EvaluationError is an indication that some error occurred during the authorization check.
+       * evaluationError is an indication that some error occurred during the authorization check.
        * It is entirely possible to get an error and be able to continue determine authorization status in spite of it.
        * For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.
        * +optional
@@ -19324,7 +19452,7 @@ public interface SubjectRulesReviewStatusOrBuilder extends
 
     /**
      * 
-     * ResourceRules is the list of actions the subject is allowed to perform on resources.
+     * resourceRules is the list of actions the subject is allowed to perform on resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19335,7 +19463,7 @@ public interface SubjectRulesReviewStatusOrBuilder extends getResourceRulesList(); /** *
-     * ResourceRules is the list of actions the subject is allowed to perform on resources.
+     * resourceRules is the list of actions the subject is allowed to perform on resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19345,7 +19473,7 @@ public interface SubjectRulesReviewStatusOrBuilder extends io.kubernetes.client.proto.V1Authorization.ResourceRule getResourceRules(int index); /** *
-     * ResourceRules is the list of actions the subject is allowed to perform on resources.
+     * resourceRules is the list of actions the subject is allowed to perform on resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19355,7 +19483,7 @@ public interface SubjectRulesReviewStatusOrBuilder extends int getResourceRulesCount(); /** *
-     * ResourceRules is the list of actions the subject is allowed to perform on resources.
+     * resourceRules is the list of actions the subject is allowed to perform on resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19366,7 +19494,7 @@ public interface SubjectRulesReviewStatusOrBuilder extends getResourceRulesOrBuilderList(); /** *
-     * ResourceRules is the list of actions the subject is allowed to perform on resources.
+     * resourceRules is the list of actions the subject is allowed to perform on resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19378,7 +19506,7 @@ io.kubernetes.client.proto.V1Authorization.ResourceRuleOrBuilder getResourceRule /** *
-     * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+     * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19389,7 +19517,7 @@ io.kubernetes.client.proto.V1Authorization.ResourceRuleOrBuilder getResourceRule getNonResourceRulesList(); /** *
-     * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+     * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19399,7 +19527,7 @@ io.kubernetes.client.proto.V1Authorization.ResourceRuleOrBuilder getResourceRule io.kubernetes.client.proto.V1Authorization.NonResourceRule getNonResourceRules(int index); /** *
-     * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+     * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19409,7 +19537,7 @@ io.kubernetes.client.proto.V1Authorization.ResourceRuleOrBuilder getResourceRule int getNonResourceRulesCount(); /** *
-     * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+     * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19420,7 +19548,7 @@ io.kubernetes.client.proto.V1Authorization.ResourceRuleOrBuilder getResourceRule getNonResourceRulesOrBuilderList(); /** *
-     * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+     * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19432,7 +19560,7 @@ io.kubernetes.client.proto.V1Authorization.NonResourceRuleOrBuilder getNonResour /** *
-     * Incomplete is true when the rules returned by this call are incomplete. This is most commonly
+     * incomplete is true when the rules returned by this call are incomplete. This is most commonly
      * encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.
      * 
* @@ -19441,7 +19569,7 @@ io.kubernetes.client.proto.V1Authorization.NonResourceRuleOrBuilder getNonResour boolean hasIncomplete(); /** *
-     * Incomplete is true when the rules returned by this call are incomplete. This is most commonly
+     * incomplete is true when the rules returned by this call are incomplete. This is most commonly
      * encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.
      * 
* @@ -19451,7 +19579,7 @@ io.kubernetes.client.proto.V1Authorization.NonResourceRuleOrBuilder getNonResour /** *
-     * EvaluationError can appear in combination with Rules. It indicates an error occurred during
+     * evaluationError can appear in combination with Rules. It indicates an error occurred during
      * rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
      * ResourceRules and/or NonResourceRules may be incomplete.
      * +optional
@@ -19462,7 +19590,7 @@ io.kubernetes.client.proto.V1Authorization.NonResourceRuleOrBuilder getNonResour
     boolean hasEvaluationError();
     /**
      * 
-     * EvaluationError can appear in combination with Rules. It indicates an error occurred during
+     * evaluationError can appear in combination with Rules. It indicates an error occurred during
      * rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
      * ResourceRules and/or NonResourceRules may be incomplete.
      * +optional
@@ -19473,7 +19601,7 @@ io.kubernetes.client.proto.V1Authorization.NonResourceRuleOrBuilder getNonResour
     java.lang.String getEvaluationError();
     /**
      * 
-     * EvaluationError can appear in combination with Rules. It indicates an error occurred during
+     * evaluationError can appear in combination with Rules. It indicates an error occurred during
      * rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
      * ResourceRules and/or NonResourceRules may be incomplete.
      * +optional
@@ -19606,7 +19734,7 @@ private SubjectRulesReviewStatus(
     private java.util.List resourceRules_;
     /**
      * 
-     * ResourceRules is the list of actions the subject is allowed to perform on resources.
+     * resourceRules is the list of actions the subject is allowed to perform on resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19618,7 +19746,7 @@ public java.util.List g } /** *
-     * ResourceRules is the list of actions the subject is allowed to perform on resources.
+     * resourceRules is the list of actions the subject is allowed to perform on resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19631,7 +19759,7 @@ public java.util.List g } /** *
-     * ResourceRules is the list of actions the subject is allowed to perform on resources.
+     * resourceRules is the list of actions the subject is allowed to perform on resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19643,7 +19771,7 @@ public int getResourceRulesCount() { } /** *
-     * ResourceRules is the list of actions the subject is allowed to perform on resources.
+     * resourceRules is the list of actions the subject is allowed to perform on resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19655,7 +19783,7 @@ public io.kubernetes.client.proto.V1Authorization.ResourceRule getResourceRules( } /** *
-     * ResourceRules is the list of actions the subject is allowed to perform on resources.
+     * resourceRules is the list of actions the subject is allowed to perform on resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19671,7 +19799,7 @@ public io.kubernetes.client.proto.V1Authorization.ResourceRuleOrBuilder getResou private java.util.List nonResourceRules_; /** *
-     * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+     * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19683,7 +19811,7 @@ public java.util.List - * NonResourceRules is the list of actions the subject is allowed to perform on non-resources. + * nonResourceRules is the list of actions the subject is allowed to perform on non-resources. * The list ordering isn't significant, may contain duplicates, and possibly be incomplete. * +listType=atomic *
@@ -19696,7 +19824,7 @@ public java.util.List - * NonResourceRules is the list of actions the subject is allowed to perform on non-resources. + * nonResourceRules is the list of actions the subject is allowed to perform on non-resources. * The list ordering isn't significant, may contain duplicates, and possibly be incomplete. * +listType=atomic *
@@ -19708,7 +19836,7 @@ public int getNonResourceRulesCount() { } /** *
-     * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+     * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19720,7 +19848,7 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceRule getNonResource } /** *
-     * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+     * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
      * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
      * +listType=atomic
      * 
@@ -19736,7 +19864,7 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceRuleOrBuilder getNo private boolean incomplete_; /** *
-     * Incomplete is true when the rules returned by this call are incomplete. This is most commonly
+     * incomplete is true when the rules returned by this call are incomplete. This is most commonly
      * encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.
      * 
* @@ -19747,7 +19875,7 @@ public boolean hasIncomplete() { } /** *
-     * Incomplete is true when the rules returned by this call are incomplete. This is most commonly
+     * incomplete is true when the rules returned by this call are incomplete. This is most commonly
      * encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.
      * 
* @@ -19761,7 +19889,7 @@ public boolean getIncomplete() { private volatile java.lang.Object evaluationError_; /** *
-     * EvaluationError can appear in combination with Rules. It indicates an error occurred during
+     * evaluationError can appear in combination with Rules. It indicates an error occurred during
      * rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
      * ResourceRules and/or NonResourceRules may be incomplete.
      * +optional
@@ -19774,7 +19902,7 @@ public boolean hasEvaluationError() {
     }
     /**
      * 
-     * EvaluationError can appear in combination with Rules. It indicates an error occurred during
+     * evaluationError can appear in combination with Rules. It indicates an error occurred during
      * rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
      * ResourceRules and/or NonResourceRules may be incomplete.
      * +optional
@@ -19798,7 +19926,7 @@ public java.lang.String getEvaluationError() {
     }
     /**
      * 
-     * EvaluationError can appear in combination with Rules. It indicates an error occurred during
+     * evaluationError can appear in combination with Rules. It indicates an error occurred during
      * rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
      * ResourceRules and/or NonResourceRules may be incomplete.
      * +optional
@@ -20293,7 +20421,7 @@ private void ensureResourceRulesIsMutable() {
 
       /**
        * 
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20309,7 +20437,7 @@ public java.util.List g } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20325,7 +20453,7 @@ public int getResourceRulesCount() { } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20341,7 +20469,7 @@ public io.kubernetes.client.proto.V1Authorization.ResourceRule getResourceRules( } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20364,7 +20492,7 @@ public Builder setResourceRules( } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20384,7 +20512,7 @@ public Builder setResourceRules( } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20406,7 +20534,7 @@ public Builder addResourceRules(io.kubernetes.client.proto.V1Authorization.Resou } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20429,7 +20557,7 @@ public Builder addResourceRules( } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20449,7 +20577,7 @@ public Builder addResourceRules( } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20469,7 +20597,7 @@ public Builder addResourceRules( } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20490,7 +20618,7 @@ public Builder addAllResourceRules( } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20509,7 +20637,7 @@ public Builder clearResourceRules() { } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20528,7 +20656,7 @@ public Builder removeResourceRules(int index) { } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20541,7 +20669,7 @@ public io.kubernetes.client.proto.V1Authorization.ResourceRule.Builder getResour } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20557,7 +20685,7 @@ public io.kubernetes.client.proto.V1Authorization.ResourceRuleOrBuilder getResou } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20574,7 +20702,7 @@ public io.kubernetes.client.proto.V1Authorization.ResourceRuleOrBuilder getResou } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20587,7 +20715,7 @@ public io.kubernetes.client.proto.V1Authorization.ResourceRule.Builder addResour } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20601,7 +20729,7 @@ public io.kubernetes.client.proto.V1Authorization.ResourceRule.Builder addResour } /** *
-       * ResourceRules is the list of actions the subject is allowed to perform on resources.
+       * resourceRules is the list of actions the subject is allowed to perform on resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20641,7 +20769,7 @@ private void ensureNonResourceRulesIsMutable() { /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20657,7 +20785,7 @@ public java.util.List - * NonResourceRules is the list of actions the subject is allowed to perform on non-resources. + * nonResourceRules is the list of actions the subject is allowed to perform on non-resources. * The list ordering isn't significant, may contain duplicates, and possibly be incomplete. * +listType=atomic *
@@ -20673,7 +20801,7 @@ public int getNonResourceRulesCount() { } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20689,7 +20817,7 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceRule getNonResource } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20712,7 +20840,7 @@ public Builder setNonResourceRules( } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20732,7 +20860,7 @@ public Builder setNonResourceRules( } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20754,7 +20882,7 @@ public Builder addNonResourceRules(io.kubernetes.client.proto.V1Authorization.No } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20777,7 +20905,7 @@ public Builder addNonResourceRules( } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20797,7 +20925,7 @@ public Builder addNonResourceRules( } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20817,7 +20945,7 @@ public Builder addNonResourceRules( } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20838,7 +20966,7 @@ public Builder addAllNonResourceRules( } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20857,7 +20985,7 @@ public Builder clearNonResourceRules() { } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20876,7 +21004,7 @@ public Builder removeNonResourceRules(int index) { } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20889,7 +21017,7 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceRule.Builder getNon } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20905,7 +21033,7 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceRuleOrBuilder getNo } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20922,7 +21050,7 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceRuleOrBuilder getNo } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20935,7 +21063,7 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceRule.Builder addNon } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20949,7 +21077,7 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceRule.Builder addNon } /** *
-       * NonResourceRules is the list of actions the subject is allowed to perform on non-resources.
+       * nonResourceRules is the list of actions the subject is allowed to perform on non-resources.
        * The list ordering isn't significant, may contain duplicates, and possibly be incomplete.
        * +listType=atomic
        * 
@@ -20978,7 +21106,7 @@ public io.kubernetes.client.proto.V1Authorization.NonResourceRule.Builder addNon private boolean incomplete_ ; /** *
-       * Incomplete is true when the rules returned by this call are incomplete. This is most commonly
+       * incomplete is true when the rules returned by this call are incomplete. This is most commonly
        * encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.
        * 
* @@ -20989,7 +21117,7 @@ public boolean hasIncomplete() { } /** *
-       * Incomplete is true when the rules returned by this call are incomplete. This is most commonly
+       * incomplete is true when the rules returned by this call are incomplete. This is most commonly
        * encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.
        * 
* @@ -21000,7 +21128,7 @@ public boolean getIncomplete() { } /** *
-       * Incomplete is true when the rules returned by this call are incomplete. This is most commonly
+       * incomplete is true when the rules returned by this call are incomplete. This is most commonly
        * encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.
        * 
* @@ -21014,7 +21142,7 @@ public Builder setIncomplete(boolean value) { } /** *
-       * Incomplete is true when the rules returned by this call are incomplete. This is most commonly
+       * incomplete is true when the rules returned by this call are incomplete. This is most commonly
        * encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.
        * 
* @@ -21030,7 +21158,7 @@ public Builder clearIncomplete() { private java.lang.Object evaluationError_ = ""; /** *
-       * EvaluationError can appear in combination with Rules. It indicates an error occurred during
+       * evaluationError can appear in combination with Rules. It indicates an error occurred during
        * rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
        * ResourceRules and/or NonResourceRules may be incomplete.
        * +optional
@@ -21043,7 +21171,7 @@ public boolean hasEvaluationError() {
       }
       /**
        * 
-       * EvaluationError can appear in combination with Rules. It indicates an error occurred during
+       * evaluationError can appear in combination with Rules. It indicates an error occurred during
        * rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
        * ResourceRules and/or NonResourceRules may be incomplete.
        * +optional
@@ -21067,7 +21195,7 @@ public java.lang.String getEvaluationError() {
       }
       /**
        * 
-       * EvaluationError can appear in combination with Rules. It indicates an error occurred during
+       * evaluationError can appear in combination with Rules. It indicates an error occurred during
        * rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
        * ResourceRules and/or NonResourceRules may be incomplete.
        * +optional
@@ -21090,7 +21218,7 @@ public java.lang.String getEvaluationError() {
       }
       /**
        * 
-       * EvaluationError can appear in combination with Rules. It indicates an error occurred during
+       * evaluationError can appear in combination with Rules. It indicates an error occurred during
        * rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
        * ResourceRules and/or NonResourceRules may be incomplete.
        * +optional
@@ -21110,7 +21238,7 @@ public Builder setEvaluationError(
       }
       /**
        * 
-       * EvaluationError can appear in combination with Rules. It indicates an error occurred during
+       * evaluationError can appear in combination with Rules. It indicates an error occurred during
        * rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
        * ResourceRules and/or NonResourceRules may be incomplete.
        * +optional
@@ -21126,7 +21254,7 @@ public Builder clearEvaluationError() {
       }
       /**
        * 
-       * EvaluationError can appear in combination with Rules. It indicates an error occurred during
+       * evaluationError can appear in combination with Rules. It indicates an error occurred during
        * rule evaluation, such as an authorizer that doesn't support rule evaluation, and that
        * ResourceRules and/or NonResourceRules may be incomplete.
        * +optional
diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Autoscaling.java b/proto/src/main/java/io/kubernetes/client/proto/V1Autoscaling.java
index eb4622c1c4..11345351c7 100644
--- a/proto/src/main/java/io/kubernetes/client/proto/V1Autoscaling.java
+++ b/proto/src/main/java/io/kubernetes/client/proto/V1Autoscaling.java
@@ -6718,7 +6718,7 @@ public interface HorizontalPodAutoscalerOrBuilder extends
 
     /**
      * 
-     * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
* @@ -6727,7 +6727,7 @@ public interface HorizontalPodAutoscalerOrBuilder extends boolean hasMetadata(); /** *
-     * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
* @@ -6736,7 +6736,7 @@ public interface HorizontalPodAutoscalerOrBuilder extends io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** *
-     * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
* @@ -6747,7 +6747,7 @@ public interface HorizontalPodAutoscalerOrBuilder extends /** *
      * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec spec = 2; @@ -6756,7 +6756,7 @@ public interface HorizontalPodAutoscalerOrBuilder extends /** *
      * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec spec = 2; @@ -6765,7 +6765,7 @@ public interface HorizontalPodAutoscalerOrBuilder extends /** *
      * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec spec = 2; @@ -6803,6 +6803,7 @@ public interface HorizontalPodAutoscalerOrBuilder extends /** *
    * configuration of a horizontal pod autoscaler.
+   * +k8s:supportsSubresource="/status"
    * 
* * Protobuf type {@code k8s.io.api.autoscaling.v1.HorizontalPodAutoscaler} @@ -6919,7 +6920,7 @@ private HorizontalPodAutoscaler( private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** *
-     * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
* @@ -6930,7 +6931,7 @@ public boolean hasMetadata() { } /** *
-     * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
* @@ -6941,7 +6942,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-     * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
      * +optional
      * 
* @@ -6956,7 +6957,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
      * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec spec = 2; @@ -6967,7 +6968,7 @@ public boolean hasSpec() { /** *
      * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec spec = 2; @@ -6978,7 +6979,7 @@ public io.kubernetes.client.proto.V1Autoscaling.HorizontalPodAutoscalerSpec getS /** *
      * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec spec = 2; @@ -7219,6 +7220,7 @@ protected Builder newBuilderForType( /** *
      * configuration of a horizontal pod autoscaler.
+     * +k8s:supportsSubresource="/status"
      * 
* * Protobuf type {@code k8s.io.api.autoscaling.v1.HorizontalPodAutoscaler} @@ -7424,7 +7426,7 @@ public Builder mergeFrom( io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** *
-       * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
* @@ -7435,7 +7437,7 @@ public boolean hasMetadata() { } /** *
-       * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
* @@ -7450,7 +7452,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-       * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
* @@ -7471,7 +7473,7 @@ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
* @@ -7490,7 +7492,7 @@ public Builder setMetadata( } /** *
-       * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
* @@ -7515,7 +7517,7 @@ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
* @@ -7533,7 +7535,7 @@ public Builder clearMetadata() { } /** *
-       * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
* @@ -7546,7 +7548,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { } /** *
-       * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
* @@ -7562,7 +7564,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( } /** *
-       * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
        * +optional
        * 
* @@ -7588,7 +7590,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
        * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec spec = 2; @@ -7599,7 +7601,7 @@ public boolean hasSpec() { /** *
        * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec spec = 2; @@ -7614,7 +7616,7 @@ public io.kubernetes.client.proto.V1Autoscaling.HorizontalPodAutoscalerSpec getS /** *
        * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec spec = 2; @@ -7635,7 +7637,7 @@ public Builder setSpec(io.kubernetes.client.proto.V1Autoscaling.HorizontalPodAut /** *
        * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec spec = 2; @@ -7654,7 +7656,7 @@ public Builder setSpec( /** *
        * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec spec = 2; @@ -7679,7 +7681,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Autoscaling.HorizontalPodA /** *
        * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec spec = 2; @@ -7697,7 +7699,7 @@ public Builder clearSpec() { /** *
        * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec spec = 2; @@ -7710,7 +7712,7 @@ public io.kubernetes.client.proto.V1Autoscaling.HorizontalPodAutoscalerSpec.Buil /** *
        * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec spec = 2; @@ -7726,7 +7728,7 @@ public io.kubernetes.client.proto.V1Autoscaling.HorizontalPodAutoscalerSpecOrBui /** *
        * spec defines the behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v1.HorizontalPodAutoscalerSpec spec = 2; @@ -8107,6 +8109,29 @@ public interface HorizontalPodAutoscalerConditionOrBuilder extends */ com.google.protobuf.ByteString getMessageBytes(); + + /** + *
+     * observedGeneration represents the .metadata.generation that the condition was set based upon.
+     * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+     * with respect to the current state of the instance.
+     * +optional
+     * 
+ * + * optional int64 observedGeneration = 6; + */ + boolean hasObservedGeneration(); + /** + *
+     * observedGeneration represents the .metadata.generation that the condition was set based upon.
+     * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+     * with respect to the current state of the instance.
+     * +optional
+     * 
+ * + * optional int64 observedGeneration = 6; + */ + long getObservedGeneration(); } /** *
@@ -8130,6 +8155,7 @@ private HorizontalPodAutoscalerCondition() {
       status_ = "";
       reason_ = "";
       message_ = "";
+      observedGeneration_ = 0L;
     }
 
     @java.lang.Override
@@ -8193,6 +8219,11 @@ private HorizontalPodAutoscalerCondition(
               message_ = bs;
               break;
             }
+            case 48: {
+              bitField0_ |= 0x00000020;
+              observedGeneration_ = input.readInt64();
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -8490,6 +8521,35 @@ public java.lang.String getMessage() {
       }
     }
 
+    public static final int OBSERVEDGENERATION_FIELD_NUMBER = 6;
+    private long observedGeneration_;
+    /**
+     * 
+     * observedGeneration represents the .metadata.generation that the condition was set based upon.
+     * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+     * with respect to the current state of the instance.
+     * +optional
+     * 
+ * + * optional int64 observedGeneration = 6; + */ + public boolean hasObservedGeneration() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+     * observedGeneration represents the .metadata.generation that the condition was set based upon.
+     * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+     * with respect to the current state of the instance.
+     * +optional
+     * 
+ * + * optional int64 observedGeneration = 6; + */ + public long getObservedGeneration() { + return observedGeneration_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -8519,6 +8579,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeInt64(6, observedGeneration_); + } unknownFields.writeTo(output); } @@ -8544,6 +8607,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, observedGeneration_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -8585,6 +8652,11 @@ public boolean equals(final java.lang.Object obj) { result = result && getMessage() .equals(other.getMessage()); } + result = result && (hasObservedGeneration() == other.hasObservedGeneration()); + if (hasObservedGeneration()) { + result = result && (getObservedGeneration() + == other.getObservedGeneration()); + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -8616,6 +8688,11 @@ public int hashCode() { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } + if (hasObservedGeneration()) { + hash = (37 * hash) + OBSERVEDGENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getObservedGeneration()); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -8769,6 +8846,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000008); message_ = ""; bitField0_ = (bitField0_ & ~0x00000010); + observedGeneration_ = 0L; + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -8821,6 +8900,10 @@ public io.kubernetes.client.proto.V1Autoscaling.HorizontalPodAutoscalerCondition to_bitField0_ |= 0x00000010; } result.message_ = message_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.observedGeneration_ = observedGeneration_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -8893,6 +8976,9 @@ public Builder mergeFrom(io.kubernetes.client.proto.V1Autoscaling.HorizontalPodA message_ = other.message_; onChanged(); } + if (other.hasObservedGeneration()) { + setObservedGeneration(other.getObservedGeneration()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -9512,6 +9598,66 @@ public Builder setMessageBytes( onChanged(); return this; } + + private long observedGeneration_ ; + /** + *
+       * observedGeneration represents the .metadata.generation that the condition was set based upon.
+       * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+       * with respect to the current state of the instance.
+       * +optional
+       * 
+ * + * optional int64 observedGeneration = 6; + */ + public boolean hasObservedGeneration() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+       * observedGeneration represents the .metadata.generation that the condition was set based upon.
+       * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+       * with respect to the current state of the instance.
+       * +optional
+       * 
+ * + * optional int64 observedGeneration = 6; + */ + public long getObservedGeneration() { + return observedGeneration_; + } + /** + *
+       * observedGeneration represents the .metadata.generation that the condition was set based upon.
+       * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+       * with respect to the current state of the instance.
+       * +optional
+       * 
+ * + * optional int64 observedGeneration = 6; + */ + public Builder setObservedGeneration(long value) { + bitField0_ |= 0x00000020; + observedGeneration_ = value; + onChanged(); + return this; + } + /** + *
+       * observedGeneration represents the .metadata.generation that the condition was set based upon.
+       * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+       * with respect to the current state of the instance.
+       * +optional
+       * 
+ * + * optional int64 observedGeneration = 6; + */ + public Builder clearObservedGeneration() { + bitField0_ = (bitField0_ & ~0x00000020); + observedGeneration_ = 0L; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -10750,7 +10896,7 @@ public interface HorizontalPodAutoscalerSpecOrBuilder extends /** *
-     * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
+     * scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
      * and will set the desired number of pods by using its Scale subresource.
      * 
* @@ -10759,7 +10905,7 @@ public interface HorizontalPodAutoscalerSpecOrBuilder extends boolean hasScaleTargetRef(); /** *
-     * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
+     * scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
      * and will set the desired number of pods by using its Scale subresource.
      * 
* @@ -10768,7 +10914,7 @@ public interface HorizontalPodAutoscalerSpecOrBuilder extends io.kubernetes.client.proto.V1Autoscaling.CrossVersionObjectReference getScaleTargetRef(); /** *
-     * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
+     * scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
      * and will set the desired number of pods by using its Scale subresource.
      * 
* @@ -10784,7 +10930,9 @@ public interface HorizontalPodAutoscalerSpecOrBuilder extends * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 *
* * optional int32 minReplicas = 2; @@ -10798,7 +10946,9 @@ public interface HorizontalPodAutoscalerSpecOrBuilder extends * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 *
* * optional int32 minReplicas = 2; @@ -10809,8 +10959,8 @@ public interface HorizontalPodAutoscalerSpecOrBuilder extends *
      * maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
      * +required
-     * +k8s:required
-     * +k8s:minimum=1
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:minimum=1
      * 
* * optional int32 maxReplicas = 3; @@ -10820,8 +10970,8 @@ public interface HorizontalPodAutoscalerSpecOrBuilder extends *
      * maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
      * +required
-     * +k8s:required
-     * +k8s:minimum=1
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:minimum=1
      * 
* * optional int32 maxReplicas = 3; @@ -10960,7 +11110,7 @@ private HorizontalPodAutoscalerSpec( private io.kubernetes.client.proto.V1Autoscaling.CrossVersionObjectReference scaleTargetRef_; /** *
-     * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
+     * scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
      * and will set the desired number of pods by using its Scale subresource.
      * 
* @@ -10971,7 +11121,7 @@ public boolean hasScaleTargetRef() { } /** *
-     * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
+     * scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
      * and will set the desired number of pods by using its Scale subresource.
      * 
* @@ -10982,7 +11132,7 @@ public io.kubernetes.client.proto.V1Autoscaling.CrossVersionObjectReference getS } /** *
-     * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
+     * scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
      * and will set the desired number of pods by using its Scale subresource.
      * 
* @@ -11002,7 +11152,9 @@ public io.kubernetes.client.proto.V1Autoscaling.CrossVersionObjectReferenceOrBui * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 *
* * optional int32 minReplicas = 2; @@ -11018,7 +11170,9 @@ public boolean hasMinReplicas() { * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 *
* * optional int32 minReplicas = 2; @@ -11033,8 +11187,8 @@ public int getMinReplicas() { *
      * maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
      * +required
-     * +k8s:required
-     * +k8s:minimum=1
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:minimum=1
      * 
* * optional int32 maxReplicas = 3; @@ -11046,8 +11200,8 @@ public boolean hasMaxReplicas() { *
      * maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
      * +required
-     * +k8s:required
-     * +k8s:minimum=1
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:minimum=1
      * 
* * optional int32 maxReplicas = 3; @@ -11491,7 +11645,7 @@ public Builder mergeFrom( io.kubernetes.client.proto.V1Autoscaling.CrossVersionObjectReference, io.kubernetes.client.proto.V1Autoscaling.CrossVersionObjectReference.Builder, io.kubernetes.client.proto.V1Autoscaling.CrossVersionObjectReferenceOrBuilder> scaleTargetRefBuilder_; /** *
-       * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
+       * scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
        * and will set the desired number of pods by using its Scale subresource.
        * 
* @@ -11502,7 +11656,7 @@ public boolean hasScaleTargetRef() { } /** *
-       * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
+       * scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
        * and will set the desired number of pods by using its Scale subresource.
        * 
* @@ -11517,7 +11671,7 @@ public io.kubernetes.client.proto.V1Autoscaling.CrossVersionObjectReference getS } /** *
-       * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
+       * scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
        * and will set the desired number of pods by using its Scale subresource.
        * 
* @@ -11538,7 +11692,7 @@ public Builder setScaleTargetRef(io.kubernetes.client.proto.V1Autoscaling.CrossV } /** *
-       * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
+       * scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
        * and will set the desired number of pods by using its Scale subresource.
        * 
* @@ -11557,7 +11711,7 @@ public Builder setScaleTargetRef( } /** *
-       * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
+       * scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
        * and will set the desired number of pods by using its Scale subresource.
        * 
* @@ -11582,7 +11736,7 @@ public Builder mergeScaleTargetRef(io.kubernetes.client.proto.V1Autoscaling.Cros } /** *
-       * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
+       * scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
        * and will set the desired number of pods by using its Scale subresource.
        * 
* @@ -11600,7 +11754,7 @@ public Builder clearScaleTargetRef() { } /** *
-       * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
+       * scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
        * and will set the desired number of pods by using its Scale subresource.
        * 
* @@ -11613,7 +11767,7 @@ public io.kubernetes.client.proto.V1Autoscaling.CrossVersionObjectReference.Buil } /** *
-       * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
+       * scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
        * and will set the desired number of pods by using its Scale subresource.
        * 
* @@ -11629,7 +11783,7 @@ public io.kubernetes.client.proto.V1Autoscaling.CrossVersionObjectReferenceOrBui } /** *
-       * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
+       * scaleTargetRef is the reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption
        * and will set the desired number of pods by using its Scale subresource.
        * 
* @@ -11658,7 +11812,9 @@ public io.kubernetes.client.proto.V1Autoscaling.CrossVersionObjectReferenceOrBui * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 *
* * optional int32 minReplicas = 2; @@ -11674,7 +11830,9 @@ public boolean hasMinReplicas() { * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 *
* * optional int32 minReplicas = 2; @@ -11690,7 +11848,9 @@ public int getMinReplicas() { * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 *
* * optional int32 minReplicas = 2; @@ -11709,7 +11869,9 @@ public Builder setMinReplicas(int value) { * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 *
* * optional int32 minReplicas = 2; @@ -11726,8 +11888,8 @@ public Builder clearMinReplicas() { *
        * maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
        * +required
-       * +k8s:required
-       * +k8s:minimum=1
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:minimum=1
        * 
* * optional int32 maxReplicas = 3; @@ -11739,8 +11901,8 @@ public boolean hasMaxReplicas() { *
        * maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
        * +required
-       * +k8s:required
-       * +k8s:minimum=1
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:minimum=1
        * 
* * optional int32 maxReplicas = 3; @@ -11752,8 +11914,8 @@ public int getMaxReplicas() { *
        * maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
        * +required
-       * +k8s:required
-       * +k8s:minimum=1
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:minimum=1
        * 
* * optional int32 maxReplicas = 3; @@ -11768,8 +11930,8 @@ public Builder setMaxReplicas(int value) { *
        * maxReplicas is the upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.
        * +required
-       * +k8s:required
-       * +k8s:minimum=1
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:minimum=1
        * 
* * optional int32 maxReplicas = 3; @@ -25759,7 +25921,7 @@ public interface ScaleOrBuilder extends /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -25768,7 +25930,7 @@ public interface ScaleOrBuilder extends boolean hasMetadata(); /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -25777,7 +25939,7 @@ public interface ScaleOrBuilder extends io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -25960,7 +26122,7 @@ private Scale( private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -25971,7 +26133,7 @@ public boolean hasMetadata() { } /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -25982,7 +26144,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-     * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+     * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
      * +optional
      * 
* @@ -26465,7 +26627,7 @@ public Builder mergeFrom( io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -26476,7 +26638,7 @@ public boolean hasMetadata() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -26491,7 +26653,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -26512,7 +26674,7 @@ public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -26531,7 +26693,7 @@ public Builder setMetadata( } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -26556,7 +26718,7 @@ public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -26574,7 +26736,7 @@ public Builder clearMetadata() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -26587,7 +26749,7 @@ public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -26603,7 +26765,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( } /** *
-       * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
+       * metadata is the standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
        * +optional
        * 
* @@ -27009,9 +27171,9 @@ public interface ScaleSpecOrBuilder extends *
      * replicas is the desired number of instances for the scaled object.
      * +optional
-     * +k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
      * +default=0
-     * +k8s:minimum=0
+     * +k8s:alpha(since: "1.36")=+k8s:minimum=0
      * 
* * optional int32 replicas = 1; @@ -27021,9 +27183,9 @@ public interface ScaleSpecOrBuilder extends *
      * replicas is the desired number of instances for the scaled object.
      * +optional
-     * +k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
      * +default=0
-     * +k8s:minimum=0
+     * +k8s:alpha(since: "1.36")=+k8s:minimum=0
      * 
* * optional int32 replicas = 1; @@ -27118,9 +27280,9 @@ private ScaleSpec( *
      * replicas is the desired number of instances for the scaled object.
      * +optional
-     * +k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
      * +default=0
-     * +k8s:minimum=0
+     * +k8s:alpha(since: "1.36")=+k8s:minimum=0
      * 
* * optional int32 replicas = 1; @@ -27132,9 +27294,9 @@ public boolean hasReplicas() { *
      * replicas is the desired number of instances for the scaled object.
      * +optional
-     * +k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
      * +default=0
-     * +k8s:minimum=0
+     * +k8s:alpha(since: "1.36")=+k8s:minimum=0
      * 
* * optional int32 replicas = 1; @@ -27467,9 +27629,9 @@ public Builder mergeFrom( *
        * replicas is the desired number of instances for the scaled object.
        * +optional
-       * +k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
        * +default=0
-       * +k8s:minimum=0
+       * +k8s:alpha(since: "1.36")=+k8s:minimum=0
        * 
* * optional int32 replicas = 1; @@ -27481,9 +27643,9 @@ public boolean hasReplicas() { *
        * replicas is the desired number of instances for the scaled object.
        * +optional
-       * +k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
        * +default=0
-       * +k8s:minimum=0
+       * +k8s:alpha(since: "1.36")=+k8s:minimum=0
        * 
* * optional int32 replicas = 1; @@ -27495,9 +27657,9 @@ public int getReplicas() { *
        * replicas is the desired number of instances for the scaled object.
        * +optional
-       * +k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
        * +default=0
-       * +k8s:minimum=0
+       * +k8s:alpha(since: "1.36")=+k8s:minimum=0
        * 
* * optional int32 replicas = 1; @@ -27512,9 +27674,9 @@ public Builder setReplicas(int value) { *
        * replicas is the desired number of instances for the scaled object.
        * +optional
-       * +k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
        * +default=0
-       * +k8s:minimum=0
+       * +k8s:alpha(since: "1.36")=+k8s:minimum=0
        * 
* * optional int32 replicas = 1; @@ -28536,86 +28698,86 @@ public io.kubernetes.client.proto.V1Autoscaling.ScaleStatus getDefaultInstanceFo "26.k8s.io.api.autoscaling.v1.HorizontalP" + "odAutoscalerSpec\022H\n\006status\030\003 \001(\01328.k8s.i" + "o.api.autoscaling.v1.HorizontalPodAutosc" + - "alerStatus\"\251\001\n HorizontalPodAutoscalerCo" + + "alerStatus\"\305\001\n HorizontalPodAutoscalerCo" + "ndition\022\014\n\004type\030\001 \001(\t\022\016\n\006status\030\002 \001(\t\022F\n" + "\022lastTransitionTime\030\003 \001(\0132*.k8s.io.apima" + "chinery.pkg.apis.meta.v1.Time\022\016\n\006reason\030" + - "\004 \001(\t\022\017\n\007message\030\005 \001(\t\"\242\001\n\033HorizontalPod" + - "AutoscalerList\022@\n\010metadata\030\001 \001(\0132..k8s.i" + - "o.apimachinery.pkg.apis.meta.v1.ListMeta" + - "\022A\n\005items\030\002 \003(\01322.k8s.io.api.autoscaling" + - ".v1.HorizontalPodAutoscaler\"\277\001\n\033Horizont" + - "alPodAutoscalerSpec\022N\n\016scaleTargetRef\030\001 " + - "\001(\01326.k8s.io.api.autoscaling.v1.CrossVer" + - "sionObjectReference\022\023\n\013minReplicas\030\002 \001(\005" + - "\022\023\n\013maxReplicas\030\003 \001(\005\022&\n\036targetCPUUtiliz" + - "ationPercentage\030\004 \001(\005\"\331\001\n\035HorizontalPodA" + - "utoscalerStatus\022\032\n\022observedGeneration\030\001 " + - "\001(\003\022A\n\rlastScaleTime\030\002 \001(\0132*.k8s.io.apim" + - "achinery.pkg.apis.meta.v1.Time\022\027\n\017curren" + - "tReplicas\030\003 \001(\005\022\027\n\017desiredReplicas\030\004 \001(\005" + - "\022\'\n\037currentCPUUtilizationPercentage\030\005 \001(" + - "\005\"\357\002\n\nMetricSpec\022\014\n\004type\030\001 \001(\t\022=\n\006object" + + "\004 \001(\t\022\017\n\007message\030\005 \001(\t\022\032\n\022observedGenera" + + "tion\030\006 \001(\003\"\242\001\n\033HorizontalPodAutoscalerLi" + + "st\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimachine" + + "ry.pkg.apis.meta.v1.ListMeta\022A\n\005items\030\002 " + + "\003(\01322.k8s.io.api.autoscaling.v1.Horizont" + + "alPodAutoscaler\"\277\001\n\033HorizontalPodAutosca" + + "lerSpec\022N\n\016scaleTargetRef\030\001 \001(\01326.k8s.io" + + ".api.autoscaling.v1.CrossVersionObjectRe" + + "ference\022\023\n\013minReplicas\030\002 \001(\005\022\023\n\013maxRepli" + + "cas\030\003 \001(\005\022&\n\036targetCPUUtilizationPercent" + + "age\030\004 \001(\005\"\331\001\n\035HorizontalPodAutoscalerSta" + + "tus\022\032\n\022observedGeneration\030\001 \001(\003\022A\n\rlastS" + + "caleTime\030\002 \001(\0132*.k8s.io.apimachinery.pkg" + + ".apis.meta.v1.Time\022\027\n\017currentReplicas\030\003 " + + "\001(\005\022\027\n\017desiredReplicas\030\004 \001(\005\022\'\n\037currentC" + + "PUUtilizationPercentage\030\005 \001(\005\"\357\002\n\nMetric" + + "Spec\022\014\n\004type\030\001 \001(\t\022=\n\006object\030\002 \001(\0132-.k8s" + + ".io.api.autoscaling.v1.ObjectMetricSourc" + + "e\0229\n\004pods\030\003 \001(\0132+.k8s.io.api.autoscaling" + + ".v1.PodsMetricSource\022A\n\010resource\030\004 \001(\0132/" + + ".k8s.io.api.autoscaling.v1.ResourceMetri" + + "cSource\022S\n\021containerResource\030\007 \001(\01328.k8s" + + ".io.api.autoscaling.v1.ContainerResource" + + "MetricSource\022A\n\010external\030\005 \001(\0132/.k8s.io." + + "api.autoscaling.v1.ExternalMetricSource\"" + + "\361\002\n\014MetricStatus\022\014\n\004type\030\001 \001(\t\022=\n\006object" + "\030\002 \001(\0132-.k8s.io.api.autoscaling.v1.Objec" + - "tMetricSource\0229\n\004pods\030\003 \001(\0132+.k8s.io.api" + - ".autoscaling.v1.PodsMetricSource\022A\n\010reso" + + "tMetricStatus\0229\n\004pods\030\003 \001(\0132+.k8s.io.api" + + ".autoscaling.v1.PodsMetricStatus\022A\n\010reso" + "urce\030\004 \001(\0132/.k8s.io.api.autoscaling.v1.R" + - "esourceMetricSource\022S\n\021containerResource" + + "esourceMetricStatus\022S\n\021containerResource" + "\030\007 \001(\01328.k8s.io.api.autoscaling.v1.Conta" + - "inerResourceMetricSource\022A\n\010external\030\005 \001" + + "inerResourceMetricStatus\022A\n\010external\030\005 \001" + "(\0132/.k8s.io.api.autoscaling.v1.ExternalM" + - "etricSource\"\361\002\n\014MetricStatus\022\014\n\004type\030\001 \001" + - "(\t\022=\n\006object\030\002 \001(\0132-.k8s.io.api.autoscal" + - "ing.v1.ObjectMetricStatus\0229\n\004pods\030\003 \001(\0132" + - "+.k8s.io.api.autoscaling.v1.PodsMetricSt" + - "atus\022A\n\010resource\030\004 \001(\0132/.k8s.io.api.auto" + - "scaling.v1.ResourceMetricStatus\022S\n\021conta" + - "inerResource\030\007 \001(\01328.k8s.io.api.autoscal" + - "ing.v1.ContainerResourceMetricStatus\022A\n\010" + - "external\030\005 \001(\0132/.k8s.io.api.autoscaling." + - "v1.ExternalMetricStatus\"\302\002\n\022ObjectMetric" + - "Source\022F\n\006target\030\001 \001(\01326.k8s.io.api.auto" + - "scaling.v1.CrossVersionObjectReference\022\022" + - "\n\nmetricName\030\002 \001(\t\022C\n\013targetValue\030\003 \001(\0132" + - "..k8s.io.apimachinery.pkg.api.resource.Q" + - "uantity\022E\n\010selector\030\004 \001(\01323.k8s.io.apima" + - "chinery.pkg.apis.meta.v1.LabelSelector\022D" + - "\n\014averageValue\030\005 \001(\0132..k8s.io.apimachine" + - "ry.pkg.api.resource.Quantity\"\303\002\n\022ObjectM" + - "etricStatus\022F\n\006target\030\001 \001(\01326.k8s.io.api" + - ".autoscaling.v1.CrossVersionObjectRefere" + - "nce\022\022\n\nmetricName\030\002 \001(\t\022D\n\014currentValue\030" + - "\003 \001(\0132..k8s.io.apimachinery.pkg.api.reso" + - "urce.Quantity\022E\n\010selector\030\004 \001(\01323.k8s.io" + - ".apimachinery.pkg.apis.meta.v1.LabelSele" + - "ctor\022D\n\014averageValue\030\005 \001(\0132..k8s.io.apim" + - "achinery.pkg.api.resource.Quantity\"\271\001\n\020P" + - "odsMetricSource\022\022\n\nmetricName\030\001 \001(\t\022J\n\022t" + - "argetAverageValue\030\002 \001(\0132..k8s.io.apimach" + - "inery.pkg.api.resource.Quantity\022E\n\010selec" + - "tor\030\003 \001(\01323.k8s.io.apimachinery.pkg.apis" + - ".meta.v1.LabelSelector\"\272\001\n\020PodsMetricSta" + - "tus\022\022\n\nmetricName\030\001 \001(\t\022K\n\023currentAverag" + - "eValue\030\002 \001(\0132..k8s.io.apimachinery.pkg.a" + - "pi.resource.Quantity\022E\n\010selector\030\003 \001(\01323" + - ".k8s.io.apimachinery.pkg.apis.meta.v1.La" + - "belSelector\"\222\001\n\024ResourceMetricSource\022\014\n\004" + - "name\030\001 \001(\t\022 \n\030targetAverageUtilization\030\002" + - " \001(\005\022J\n\022targetAverageValue\030\003 \001(\0132..k8s.i" + - "o.apimachinery.pkg.api.resource.Quantity" + - "\"\224\001\n\024ResourceMetricStatus\022\014\n\004name\030\001 \001(\t\022" + - "!\n\031currentAverageUtilization\030\002 \001(\005\022K\n\023cu" + - "rrentAverageValue\030\003 \001(\0132..k8s.io.apimach" + - "inery.pkg.api.resource.Quantity\"\267\001\n\005Scal" + - "e\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachiner" + - "y.pkg.apis.meta.v1.ObjectMeta\0222\n\004spec\030\002 " + - "\001(\0132$.k8s.io.api.autoscaling.v1.ScaleSpe" + - "c\0226\n\006status\030\003 \001(\0132&.k8s.io.api.autoscali" + - "ng.v1.ScaleStatus\"\035\n\tScaleSpec\022\020\n\010replic" + - "as\030\001 \001(\005\"1\n\013ScaleStatus\022\020\n\010replicas\030\001 \001(" + - "\005\022\020\n\010selector\030\002 \001(\tBF\n\032io.kubernetes.cli" + - "ent.protoB\rV1AutoscalingZ\031k8s.io/api/aut" + - "oscaling/v1" + "etricStatus\"\302\002\n\022ObjectMetricSource\022F\n\006ta" + + "rget\030\001 \001(\01326.k8s.io.api.autoscaling.v1.C" + + "rossVersionObjectReference\022\022\n\nmetricName" + + "\030\002 \001(\t\022C\n\013targetValue\030\003 \001(\0132..k8s.io.api" + + "machinery.pkg.api.resource.Quantity\022E\n\010s" + + "elector\030\004 \001(\01323.k8s.io.apimachinery.pkg." + + "apis.meta.v1.LabelSelector\022D\n\014averageVal" + + "ue\030\005 \001(\0132..k8s.io.apimachinery.pkg.api.r" + + "esource.Quantity\"\303\002\n\022ObjectMetricStatus\022" + + "F\n\006target\030\001 \001(\01326.k8s.io.api.autoscaling" + + ".v1.CrossVersionObjectReference\022\022\n\nmetri" + + "cName\030\002 \001(\t\022D\n\014currentValue\030\003 \001(\0132..k8s." + + "io.apimachinery.pkg.api.resource.Quantit" + + "y\022E\n\010selector\030\004 \001(\01323.k8s.io.apimachiner" + + "y.pkg.apis.meta.v1.LabelSelector\022D\n\014aver" + + "ageValue\030\005 \001(\0132..k8s.io.apimachinery.pkg" + + ".api.resource.Quantity\"\271\001\n\020PodsMetricSou" + + "rce\022\022\n\nmetricName\030\001 \001(\t\022J\n\022targetAverage" + + "Value\030\002 \001(\0132..k8s.io.apimachinery.pkg.ap" + + "i.resource.Quantity\022E\n\010selector\030\003 \001(\01323." + + "k8s.io.apimachinery.pkg.apis.meta.v1.Lab" + + "elSelector\"\272\001\n\020PodsMetricStatus\022\022\n\nmetri" + + "cName\030\001 \001(\t\022K\n\023currentAverageValue\030\002 \001(\013" + + "2..k8s.io.apimachinery.pkg.api.resource." + + "Quantity\022E\n\010selector\030\003 \001(\01323.k8s.io.apim" + + "achinery.pkg.apis.meta.v1.LabelSelector\"" + + "\222\001\n\024ResourceMetricSource\022\014\n\004name\030\001 \001(\t\022 " + + "\n\030targetAverageUtilization\030\002 \001(\005\022J\n\022targ" + + "etAverageValue\030\003 \001(\0132..k8s.io.apimachine" + + "ry.pkg.api.resource.Quantity\"\224\001\n\024Resourc" + + "eMetricStatus\022\014\n\004name\030\001 \001(\t\022!\n\031currentAv" + + "erageUtilization\030\002 \001(\005\022K\n\023currentAverage" + + "Value\030\003 \001(\0132..k8s.io.apimachinery.pkg.ap" + + "i.resource.Quantity\"\267\001\n\005Scale\022B\n\010metadat" + + "a\030\001 \001(\01320.k8s.io.apimachinery.pkg.apis.m" + + "eta.v1.ObjectMeta\0222\n\004spec\030\002 \001(\0132$.k8s.io" + + ".api.autoscaling.v1.ScaleSpec\0226\n\006status\030" + + "\003 \001(\0132&.k8s.io.api.autoscaling.v1.ScaleS" + + "tatus\"\035\n\tScaleSpec\022\020\n\010replicas\030\001 \001(\005\"1\n\013" + + "ScaleStatus\022\020\n\010replicas\030\001 \001(\005\022\020\n\010selecto" + + "r\030\002 \001(\tBF\n\032io.kubernetes.client.protoB\rV" + + "1AutoscalingZ\031k8s.io/api/autoscaling/v1" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -28675,7 +28837,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_autoscaling_v1_HorizontalPodAutoscalerCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_autoscaling_v1_HorizontalPodAutoscalerCondition_descriptor, - new java.lang.String[] { "Type", "Status", "LastTransitionTime", "Reason", "Message", }); + new java.lang.String[] { "Type", "Status", "LastTransitionTime", "Reason", "Message", "ObservedGeneration", }); internal_static_k8s_io_api_autoscaling_v1_HorizontalPodAutoscalerList_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_k8s_io_api_autoscaling_v1_HorizontalPodAutoscalerList_fieldAccessorTable = new diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Batch.java b/proto/src/main/java/io/kubernetes/client/proto/V1Batch.java index 26b7192868..70059301cc 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V1Batch.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Batch.java @@ -53,7 +53,7 @@ public interface CronJobOrBuilder extends *
      * Specification of the desired behavior of a cron job, including the schedule.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.batch.v1.CronJobSpec spec = 2; @@ -63,7 +63,7 @@ public interface CronJobOrBuilder extends *
      * Specification of the desired behavior of a cron job, including the schedule.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.batch.v1.CronJobSpec spec = 2; @@ -73,7 +73,7 @@ public interface CronJobOrBuilder extends *
      * Specification of the desired behavior of a cron job, including the schedule.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.batch.v1.CronJobSpec spec = 2; @@ -114,6 +114,7 @@ public interface CronJobOrBuilder extends /** *
    * CronJob represents the configuration of a single cron job.
+   * +k8s:supportsSubresource="/status"
    * 
* * Protobuf type {@code k8s.io.api.batch.v1.CronJob} @@ -271,7 +272,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( *
      * Specification of the desired behavior of a cron job, including the schedule.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.batch.v1.CronJobSpec spec = 2; @@ -283,7 +284,7 @@ public boolean hasSpec() { *
      * Specification of the desired behavior of a cron job, including the schedule.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.batch.v1.CronJobSpec spec = 2; @@ -295,7 +296,7 @@ public io.kubernetes.client.proto.V1Batch.CronJobSpec getSpec() { *
      * Specification of the desired behavior of a cron job, including the schedule.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.batch.v1.CronJobSpec spec = 2; @@ -539,6 +540,7 @@ protected Builder newBuilderForType( /** *
      * CronJob represents the configuration of a single cron job.
+     * +k8s:supportsSubresource="/status"
      * 
* * Protobuf type {@code k8s.io.api.batch.v1.CronJob} @@ -918,7 +920,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( *
        * Specification of the desired behavior of a cron job, including the schedule.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.batch.v1.CronJobSpec spec = 2; @@ -930,7 +932,7 @@ public boolean hasSpec() { *
        * Specification of the desired behavior of a cron job, including the schedule.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.batch.v1.CronJobSpec spec = 2; @@ -946,7 +948,7 @@ public io.kubernetes.client.proto.V1Batch.CronJobSpec getSpec() { *
        * Specification of the desired behavior of a cron job, including the schedule.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.batch.v1.CronJobSpec spec = 2; @@ -968,7 +970,7 @@ public Builder setSpec(io.kubernetes.client.proto.V1Batch.CronJobSpec value) { *
        * Specification of the desired behavior of a cron job, including the schedule.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.batch.v1.CronJobSpec spec = 2; @@ -988,7 +990,7 @@ public Builder setSpec( *
        * Specification of the desired behavior of a cron job, including the schedule.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.batch.v1.CronJobSpec spec = 2; @@ -1014,7 +1016,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Batch.CronJobSpec value) { *
        * Specification of the desired behavior of a cron job, including the schedule.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.batch.v1.CronJobSpec spec = 2; @@ -1033,7 +1035,7 @@ public Builder clearSpec() { *
        * Specification of the desired behavior of a cron job, including the schedule.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.batch.v1.CronJobSpec spec = 2; @@ -1047,7 +1049,7 @@ public io.kubernetes.client.proto.V1Batch.CronJobSpec.Builder getSpecBuilder() { *
        * Specification of the desired behavior of a cron job, including the schedule.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.batch.v1.CronJobSpec spec = 2; @@ -1064,7 +1066,7 @@ public io.kubernetes.client.proto.V1Batch.CronJobSpecOrBuilder getSpecOrBuilder( *
        * Specification of the desired behavior of a cron job, including the schedule.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.batch.v1.CronJobSpec spec = 2; @@ -2509,7 +2511,7 @@ public interface CronJobSpecOrBuilder extends *
      * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string schedule = 1; @@ -2519,7 +2521,7 @@ public interface CronJobSpecOrBuilder extends *
      * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string schedule = 1; @@ -2529,7 +2531,7 @@ public interface CronJobSpecOrBuilder extends *
      * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string schedule = 1; @@ -2880,7 +2882,7 @@ private CronJobSpec( *
      * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string schedule = 1; @@ -2892,7 +2894,7 @@ public boolean hasSchedule() { *
      * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string schedule = 1; @@ -2915,7 +2917,7 @@ public java.lang.String getSchedule() { *
      * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string schedule = 1; @@ -3738,7 +3740,7 @@ public Builder mergeFrom( *
        * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string schedule = 1; @@ -3750,7 +3752,7 @@ public boolean hasSchedule() { *
        * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string schedule = 1; @@ -3773,7 +3775,7 @@ public java.lang.String getSchedule() { *
        * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string schedule = 1; @@ -3795,7 +3797,7 @@ public java.lang.String getSchedule() { *
        * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string schedule = 1; @@ -3814,7 +3816,7 @@ public Builder setSchedule( *
        * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string schedule = 1; @@ -3829,7 +3831,7 @@ public Builder clearSchedule() { *
        * The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string schedule = 1; @@ -6168,6 +6170,7 @@ public interface JobOrBuilder extends /** *
    * Job represents the configuration of a single job.
+   * +k8s:supportsSubresource="/status"
    * 
* * Protobuf type {@code k8s.io.api.batch.v1.Job} @@ -6593,6 +6596,7 @@ protected Builder newBuilderForType( /** *
      * Job represents the configuration of a single job.
+     * +k8s:supportsSubresource="/status"
      * 
* * Protobuf type {@code k8s.io.api.batch.v1.Job} @@ -10641,6 +10645,8 @@ public interface JobSpecOrBuilder extends * It can be null or up to completions. It is required and must be * less than or equal to 10^4 when is completions greater than 10^5. * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:dependentRequired("backoffLimitPerIndex") *
* * optional int32 maxFailedIndexes = 13; @@ -10657,6 +10663,8 @@ public interface JobSpecOrBuilder extends * It can be null or up to completions. It is required and must be * less than or equal to 10^4 when is completions greater than 10^5. * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:dependentRequired("backoffLimitPerIndex") *
* * optional int32 maxFailedIndexes = 13; @@ -11496,6 +11504,8 @@ public int getBackoffLimitPerIndex() { * It can be null or up to completions. It is required and must be * less than or equal to 10^4 when is completions greater than 10^5. * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:dependentRequired("backoffLimitPerIndex") *
* * optional int32 maxFailedIndexes = 13; @@ -11514,6 +11524,8 @@ public boolean hasMaxFailedIndexes() { * It can be null or up to completions. It is required and must be * less than or equal to 10^4 when is completions greater than 10^5. * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:dependentRequired("backoffLimitPerIndex") *
* * optional int32 maxFailedIndexes = 13; @@ -13494,6 +13506,8 @@ public Builder clearBackoffLimitPerIndex() { * It can be null or up to completions. It is required and must be * less than or equal to 10^4 when is completions greater than 10^5. * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:dependentRequired("backoffLimitPerIndex") *
* * optional int32 maxFailedIndexes = 13; @@ -13512,6 +13526,8 @@ public boolean hasMaxFailedIndexes() { * It can be null or up to completions. It is required and must be * less than or equal to 10^4 when is completions greater than 10^5. * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:dependentRequired("backoffLimitPerIndex") *
* * optional int32 maxFailedIndexes = 13; @@ -13530,6 +13546,8 @@ public int getMaxFailedIndexes() { * It can be null or up to completions. It is required and must be * less than or equal to 10^4 when is completions greater than 10^5. * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:dependentRequired("backoffLimitPerIndex") *
* * optional int32 maxFailedIndexes = 13; @@ -13551,6 +13569,8 @@ public Builder setMaxFailedIndexes(int value) { * It can be null or up to completions. It is required and must be * less than or equal to 10^4 when is completions greater than 10^5. * +optional + * +k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:dependentRequired("backoffLimitPerIndex") *
* * optional int32 maxFailedIndexes = 13; @@ -14998,8 +15018,6 @@ io.kubernetes.client.proto.V1Batch.JobConditionOrBuilder getConditionsOrBuilder( *
      * The number of pods which are terminating (in phase Pending or Running
      * and have a deletionTimestamp).
-     * This field is beta-level. The job controller populates the field when
-     * the feature gate JobPodReplacementPolicy is enabled (enabled by default).
      * +optional
      * 
* @@ -15010,8 +15028,6 @@ io.kubernetes.client.proto.V1Batch.JobConditionOrBuilder getConditionsOrBuilder( *
      * The number of pods which are terminating (in phase Pending or Running
      * and have a deletionTimestamp).
-     * This field is beta-level. The job controller populates the field when
-     * the feature gate JobPodReplacementPolicy is enabled (enabled by default).
      * +optional
      * 
* @@ -15689,8 +15705,6 @@ public int getFailed() { *
      * The number of pods which are terminating (in phase Pending or Running
      * and have a deletionTimestamp).
-     * This field is beta-level. The job controller populates the field when
-     * the feature gate JobPodReplacementPolicy is enabled (enabled by default).
      * +optional
      * 
* @@ -15703,8 +15717,6 @@ public boolean hasTerminating() { *
      * The number of pods which are terminating (in phase Pending or Running
      * and have a deletionTimestamp).
-     * This field is beta-level. The job controller populates the field when
-     * the feature gate JobPodReplacementPolicy is enabled (enabled by default).
      * +optional
      * 
* @@ -17753,8 +17765,6 @@ public Builder clearFailed() { *
        * The number of pods which are terminating (in phase Pending or Running
        * and have a deletionTimestamp).
-       * This field is beta-level. The job controller populates the field when
-       * the feature gate JobPodReplacementPolicy is enabled (enabled by default).
        * +optional
        * 
* @@ -17767,8 +17777,6 @@ public boolean hasTerminating() { *
        * The number of pods which are terminating (in phase Pending or Running
        * and have a deletionTimestamp).
-       * This field is beta-level. The job controller populates the field when
-       * the feature gate JobPodReplacementPolicy is enabled (enabled by default).
        * +optional
        * 
* @@ -17781,8 +17789,6 @@ public int getTerminating() { *
        * The number of pods which are terminating (in phase Pending or Running
        * and have a deletionTimestamp).
-       * This field is beta-level. The job controller populates the field when
-       * the feature gate JobPodReplacementPolicy is enabled (enabled by default).
        * +optional
        * 
* @@ -17798,8 +17804,6 @@ public Builder setTerminating(int value) { *
        * The number of pods which are terminating (in phase Pending or Running
        * and have a deletionTimestamp).
-       * This field is beta-level. The job controller populates the field when
-       * the feature gate JobPodReplacementPolicy is enabled (enabled by default).
        * +optional
        * 
* diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Certificates.java b/proto/src/main/java/io/kubernetes/client/proto/V1Certificates.java index 5b26e7b7c2..0a3b388175 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V1Certificates.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Certificates.java @@ -115,8 +115,8 @@ public interface CertificateSigningRequestOrBuilder extends * This API can be used to request client certificates to authenticate to kube-apiserver * (with the "kubernetes.io/kube-apiserver-client" signerName), * or to obtain certificates from custom non-Kubernetes signers. - * +k8s:supportsSubresource=/status - * +k8s:supportsSubresource=/approval + * +k8s:supportsSubresource="/status" + * +k8s:supportsSubresource="/approval" *
* * Protobuf type {@code k8s.io.api.certificates.v1.CertificateSigningRequest} @@ -543,8 +543,8 @@ protected Builder newBuilderForType( * This API can be used to request client certificates to authenticate to kube-apiserver * (with the "kubernetes.io/kube-apiserver-client" signerName), * or to obtain certificates from custom non-Kubernetes signers. - * +k8s:supportsSubresource=/status - * +k8s:supportsSubresource=/approval + * +k8s:supportsSubresource="/status" + * +k8s:supportsSubresource="/approval" *
* * Protobuf type {@code k8s.io.api.certificates.v1.CertificateSigningRequest} @@ -7288,12 +7288,12 @@ public interface CertificateSigningRequestStatusOrBuilder extends * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -7306,12 +7306,12 @@ public interface CertificateSigningRequestStatusOrBuilder extends * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -7323,12 +7323,12 @@ public interface CertificateSigningRequestStatusOrBuilder extends * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -7340,12 +7340,12 @@ public interface CertificateSigningRequestStatusOrBuilder extends * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -7358,12 +7358,12 @@ public interface CertificateSigningRequestStatusOrBuilder extends * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -7532,12 +7532,12 @@ private CertificateSigningRequestStatus( * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -7551,12 +7551,12 @@ public java.util.List * * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -7571,12 +7571,12 @@ public java.util.List * * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -7590,12 +7590,12 @@ public int getConditionsCount() { * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -7609,12 +7609,12 @@ public io.kubernetes.client.proto.V1Certificates.CertificateSigningRequestCondit * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8080,12 +8080,12 @@ private void ensureConditionsIsMutable() { * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8103,12 +8103,12 @@ public java.util.List * * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8126,12 +8126,12 @@ public int getConditionsCount() { * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8149,12 +8149,12 @@ public io.kubernetes.client.proto.V1Certificates.CertificateSigningRequestCondit * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8179,12 +8179,12 @@ public Builder setConditions( * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8206,12 +8206,12 @@ public Builder setConditions( * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8235,12 +8235,12 @@ public Builder addConditions(io.kubernetes.client.proto.V1Certificates.Certifica * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8265,12 +8265,12 @@ public Builder addConditions( * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8292,12 +8292,12 @@ public Builder addConditions( * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8319,12 +8319,12 @@ public Builder addConditions( * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8347,12 +8347,12 @@ public Builder addAllConditions( * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8373,12 +8373,12 @@ public Builder clearConditions() { * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8399,12 +8399,12 @@ public Builder removeConditions(int index) { * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8419,12 +8419,12 @@ public io.kubernetes.client.proto.V1Certificates.CertificateSigningRequestCondit * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8442,12 +8442,12 @@ public io.kubernetes.client.proto.V1Certificates.CertificateSigningRequestCondit * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8466,12 +8466,12 @@ public io.kubernetes.client.proto.V1Certificates.CertificateSigningRequestCondit * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8486,12 +8486,12 @@ public io.kubernetes.client.proto.V1Certificates.CertificateSigningRequestCondit * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; @@ -8507,12 +8507,12 @@ public io.kubernetes.client.proto.V1Certificates.CertificateSigningRequestCondit * +listType=map * +listMapKey=type * +optional - * +k8s:listType=map - * +k8s:listMapKey=type - * +k8s:customUnique - * +k8s:optional - * +k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember - * +k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:listType=map + * +k8s:alpha(since: "1.36")=+k8s:listMapKey=type + * +k8s:alpha(since: "1.36")=+k8s:customUnique + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Approved")=+k8s:zeroOrOneOfMember + * +k8s:alpha(since: "1.36")=+k8s:item(type: "Denied")=+k8s:zeroOrOneOfMember *
* * repeated .k8s.io.api.certificates.v1.CertificateSigningRequestCondition conditions = 1; diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Coordination.java b/proto/src/main/java/io/kubernetes/client/proto/V1Coordination.java new file mode 100644 index 0000000000..8689a98bf4 --- /dev/null +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Coordination.java @@ -0,0 +1,4323 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: k8s.io/api/coordination/v1/generated.proto + +package io.kubernetes.client.proto; + +public final class V1Coordination { + private V1Coordination() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface LeaseOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.coordination.v1.Lease) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * spec contains the specification of the Lease.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+     * +optional
+     * 
+ * + * optional .k8s.io.api.coordination.v1.LeaseSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * spec contains the specification of the Lease.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+     * +optional
+     * 
+ * + * optional .k8s.io.api.coordination.v1.LeaseSpec spec = 2; + */ + io.kubernetes.client.proto.V1Coordination.LeaseSpec getSpec(); + /** + *
+     * spec contains the specification of the Lease.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+     * +optional
+     * 
+ * + * optional .k8s.io.api.coordination.v1.LeaseSpec spec = 2; + */ + io.kubernetes.client.proto.V1Coordination.LeaseSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * Lease defines a lease concept.
+   * 
+ * + * Protobuf type {@code k8s.io.api.coordination.v1.Lease} + */ + public static final class Lease extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.coordination.v1.Lease) + LeaseOrBuilder { + private static final long serialVersionUID = 0L; + // Use Lease.newBuilder() to construct. + private Lease(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Lease() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Lease( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.V1Coordination.LeaseSpec.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(io.kubernetes.client.proto.V1Coordination.LeaseSpec.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Coordination.internal_static_k8s_io_api_coordination_v1_Lease_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Coordination.internal_static_k8s_io_api_coordination_v1_Lease_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Coordination.Lease.class, io.kubernetes.client.proto.V1Coordination.Lease.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int SPEC_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Coordination.LeaseSpec spec_; + /** + *
+     * spec contains the specification of the Lease.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+     * +optional
+     * 
+ * + * optional .k8s.io.api.coordination.v1.LeaseSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * spec contains the specification of the Lease.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+     * +optional
+     * 
+ * + * optional .k8s.io.api.coordination.v1.LeaseSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Coordination.LeaseSpec getSpec() { + return spec_ == null ? io.kubernetes.client.proto.V1Coordination.LeaseSpec.getDefaultInstance() : spec_; + } + /** + *
+     * spec contains the specification of the Lease.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+     * +optional
+     * 
+ * + * optional .k8s.io.api.coordination.v1.LeaseSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Coordination.LeaseSpecOrBuilder getSpecOrBuilder() { + return spec_ == null ? io.kubernetes.client.proto.V1Coordination.LeaseSpec.getDefaultInstance() : spec_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getSpec()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Coordination.Lease)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Coordination.Lease other = (io.kubernetes.client.proto.V1Coordination.Lease) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Coordination.Lease parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Coordination.Lease parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Coordination.Lease parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Coordination.Lease parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Coordination.Lease parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Coordination.Lease parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Coordination.Lease parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Coordination.Lease parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Coordination.Lease parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Coordination.Lease parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Coordination.Lease parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Coordination.Lease parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Coordination.Lease prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Lease defines a lease concept.
+     * 
+ * + * Protobuf type {@code k8s.io.api.coordination.v1.Lease} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.coordination.v1.Lease) + io.kubernetes.client.proto.V1Coordination.LeaseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Coordination.internal_static_k8s_io_api_coordination_v1_Lease_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Coordination.internal_static_k8s_io_api_coordination_v1_Lease_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Coordination.Lease.class, io.kubernetes.client.proto.V1Coordination.Lease.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Coordination.Lease.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getSpecFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (specBuilder_ == null) { + spec_ = null; + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Coordination.internal_static_k8s_io_api_coordination_v1_Lease_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Coordination.Lease getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Coordination.Lease.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Coordination.Lease build() { + io.kubernetes.client.proto.V1Coordination.Lease result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Coordination.Lease buildPartial() { + io.kubernetes.client.proto.V1Coordination.Lease result = new io.kubernetes.client.proto.V1Coordination.Lease(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Coordination.Lease) { + return mergeFrom((io.kubernetes.client.proto.V1Coordination.Lease)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Coordination.Lease other) { + if (other == io.kubernetes.client.proto.V1Coordination.Lease.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Coordination.Lease parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Coordination.Lease) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.kubernetes.client.proto.V1Coordination.LeaseSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Coordination.LeaseSpec, io.kubernetes.client.proto.V1Coordination.LeaseSpec.Builder, io.kubernetes.client.proto.V1Coordination.LeaseSpecOrBuilder> specBuilder_; + /** + *
+       * spec contains the specification of the Lease.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * +optional
+       * 
+ * + * optional .k8s.io.api.coordination.v1.LeaseSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * spec contains the specification of the Lease.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * +optional
+       * 
+ * + * optional .k8s.io.api.coordination.v1.LeaseSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Coordination.LeaseSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? io.kubernetes.client.proto.V1Coordination.LeaseSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * spec contains the specification of the Lease.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * +optional
+       * 
+ * + * optional .k8s.io.api.coordination.v1.LeaseSpec spec = 2; + */ + public Builder setSpec(io.kubernetes.client.proto.V1Coordination.LeaseSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * spec contains the specification of the Lease.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * +optional
+       * 
+ * + * optional .k8s.io.api.coordination.v1.LeaseSpec spec = 2; + */ + public Builder setSpec( + io.kubernetes.client.proto.V1Coordination.LeaseSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * spec contains the specification of the Lease.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * +optional
+       * 
+ * + * optional .k8s.io.api.coordination.v1.LeaseSpec spec = 2; + */ + public Builder mergeSpec(io.kubernetes.client.proto.V1Coordination.LeaseSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + spec_ != null && + spec_ != io.kubernetes.client.proto.V1Coordination.LeaseSpec.getDefaultInstance()) { + spec_ = + io.kubernetes.client.proto.V1Coordination.LeaseSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * spec contains the specification of the Lease.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * +optional
+       * 
+ * + * optional .k8s.io.api.coordination.v1.LeaseSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * spec contains the specification of the Lease.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * +optional
+       * 
+ * + * optional .k8s.io.api.coordination.v1.LeaseSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Coordination.LeaseSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * spec contains the specification of the Lease.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * +optional
+       * 
+ * + * optional .k8s.io.api.coordination.v1.LeaseSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Coordination.LeaseSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + io.kubernetes.client.proto.V1Coordination.LeaseSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * spec contains the specification of the Lease.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
+       * +optional
+       * 
+ * + * optional .k8s.io.api.coordination.v1.LeaseSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Coordination.LeaseSpec, io.kubernetes.client.proto.V1Coordination.LeaseSpec.Builder, io.kubernetes.client.proto.V1Coordination.LeaseSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Coordination.LeaseSpec, io.kubernetes.client.proto.V1Coordination.LeaseSpec.Builder, io.kubernetes.client.proto.V1Coordination.LeaseSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.coordination.v1.Lease) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.coordination.v1.Lease) + private static final io.kubernetes.client.proto.V1Coordination.Lease DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Coordination.Lease(); + } + + public static io.kubernetes.client.proto.V1Coordination.Lease getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Lease parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Lease(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Coordination.Lease getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LeaseListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.coordination.v1.LeaseList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + io.kubernetes.client.proto.V1Coordination.Lease getItems(int index); + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + int getItemsCount(); + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + io.kubernetes.client.proto.V1Coordination.LeaseOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * LeaseList is a list of Lease objects.
+   * 
+ * + * Protobuf type {@code k8s.io.api.coordination.v1.LeaseList} + */ + public static final class LeaseList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.coordination.v1.LeaseList) + LeaseListOrBuilder { + private static final long serialVersionUID = 0L; + // Use LeaseList.newBuilder() to construct. + private LeaseList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LeaseList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LeaseList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V1Coordination.Lease.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Coordination.internal_static_k8s_io_api_coordination_v1_LeaseList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Coordination.internal_static_k8s_io_api_coordination_v1_LeaseList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Coordination.LeaseList.class, io.kubernetes.client.proto.V1Coordination.LeaseList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public io.kubernetes.client.proto.V1Coordination.Lease getItems(int index) { + return items_.get(index); + } + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public io.kubernetes.client.proto.V1Coordination.LeaseOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Coordination.LeaseList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Coordination.LeaseList other = (io.kubernetes.client.proto.V1Coordination.LeaseList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Coordination.LeaseList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Coordination.LeaseList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * LeaseList is a list of Lease objects.
+     * 
+ * + * Protobuf type {@code k8s.io.api.coordination.v1.LeaseList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.coordination.v1.LeaseList) + io.kubernetes.client.proto.V1Coordination.LeaseListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Coordination.internal_static_k8s_io_api_coordination_v1_LeaseList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Coordination.internal_static_k8s_io_api_coordination_v1_LeaseList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Coordination.LeaseList.class, io.kubernetes.client.proto.V1Coordination.LeaseList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Coordination.LeaseList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Coordination.internal_static_k8s_io_api_coordination_v1_LeaseList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Coordination.LeaseList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Coordination.LeaseList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Coordination.LeaseList build() { + io.kubernetes.client.proto.V1Coordination.LeaseList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Coordination.LeaseList buildPartial() { + io.kubernetes.client.proto.V1Coordination.LeaseList result = new io.kubernetes.client.proto.V1Coordination.LeaseList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Coordination.LeaseList) { + return mergeFrom((io.kubernetes.client.proto.V1Coordination.LeaseList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Coordination.LeaseList other) { + if (other == io.kubernetes.client.proto.V1Coordination.LeaseList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Coordination.LeaseList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Coordination.LeaseList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Coordination.Lease, io.kubernetes.client.proto.V1Coordination.Lease.Builder, io.kubernetes.client.proto.V1Coordination.LeaseOrBuilder> itemsBuilder_; + + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public io.kubernetes.client.proto.V1Coordination.Lease getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Coordination.Lease value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Coordination.Lease.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V1Coordination.Lease value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Coordination.Lease value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V1Coordination.Lease.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Coordination.Lease.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public io.kubernetes.client.proto.V1Coordination.Lease.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public io.kubernetes.client.proto.V1Coordination.LeaseOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public io.kubernetes.client.proto.V1Coordination.Lease.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Coordination.Lease.getDefaultInstance()); + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public io.kubernetes.client.proto.V1Coordination.Lease.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Coordination.Lease.getDefaultInstance()); + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.coordination.v1.Lease items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Coordination.Lease, io.kubernetes.client.proto.V1Coordination.Lease.Builder, io.kubernetes.client.proto.V1Coordination.LeaseOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Coordination.Lease, io.kubernetes.client.proto.V1Coordination.Lease.Builder, io.kubernetes.client.proto.V1Coordination.LeaseOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.coordination.v1.LeaseList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.coordination.v1.LeaseList) + private static final io.kubernetes.client.proto.V1Coordination.LeaseList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Coordination.LeaseList(); + } + + public static io.kubernetes.client.proto.V1Coordination.LeaseList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LeaseList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LeaseList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Coordination.LeaseList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LeaseSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.coordination.v1.LeaseSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * holderIdentity contains the identity of the holder of a current lease.
+     * If Coordinated Leader Election is used, the holder identity must be
+     * equal to the elected LeaseCandidate.metadata.name field.
+     * +optional
+     * 
+ * + * optional string holderIdentity = 1; + */ + boolean hasHolderIdentity(); + /** + *
+     * holderIdentity contains the identity of the holder of a current lease.
+     * If Coordinated Leader Election is used, the holder identity must be
+     * equal to the elected LeaseCandidate.metadata.name field.
+     * +optional
+     * 
+ * + * optional string holderIdentity = 1; + */ + java.lang.String getHolderIdentity(); + /** + *
+     * holderIdentity contains the identity of the holder of a current lease.
+     * If Coordinated Leader Election is used, the holder identity must be
+     * equal to the elected LeaseCandidate.metadata.name field.
+     * +optional
+     * 
+ * + * optional string holderIdentity = 1; + */ + com.google.protobuf.ByteString + getHolderIdentityBytes(); + + /** + *
+     * leaseDurationSeconds is a duration that candidates for a lease need
+     * to wait to force acquire it. This is measured against the time of last
+     * observed renewTime.
+     * +optional
+     * 
+ * + * optional int32 leaseDurationSeconds = 2; + */ + boolean hasLeaseDurationSeconds(); + /** + *
+     * leaseDurationSeconds is a duration that candidates for a lease need
+     * to wait to force acquire it. This is measured against the time of last
+     * observed renewTime.
+     * +optional
+     * 
+ * + * optional int32 leaseDurationSeconds = 2; + */ + int getLeaseDurationSeconds(); + + /** + *
+     * acquireTime is a time when the current lease was acquired.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; + */ + boolean hasAcquireTime(); + /** + *
+     * acquireTime is a time when the current lease was acquired.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; + */ + io.kubernetes.client.proto.Meta.MicroTime getAcquireTime(); + /** + *
+     * acquireTime is a time when the current lease was acquired.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; + */ + io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getAcquireTimeOrBuilder(); + + /** + *
+     * renewTime is a time when the current holder of a lease has last
+     * updated the lease.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; + */ + boolean hasRenewTime(); + /** + *
+     * renewTime is a time when the current holder of a lease has last
+     * updated the lease.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; + */ + io.kubernetes.client.proto.Meta.MicroTime getRenewTime(); + /** + *
+     * renewTime is a time when the current holder of a lease has last
+     * updated the lease.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; + */ + io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getRenewTimeOrBuilder(); + + /** + *
+     * leaseTransitions is the number of transitions of a lease between
+     * holders.
+     * +optional
+     * 
+ * + * optional int32 leaseTransitions = 5; + */ + boolean hasLeaseTransitions(); + /** + *
+     * leaseTransitions is the number of transitions of a lease between
+     * holders.
+     * +optional
+     * 
+ * + * optional int32 leaseTransitions = 5; + */ + int getLeaseTransitions(); + + /** + *
+     * Strategy indicates the strategy for picking the leader for coordinated leader election.
+     * If the field is not specified, there is no active coordination for this lease.
+     * (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
+     * +featureGate=CoordinatedLeaderElection
+     * +optional
+     * 
+ * + * optional string strategy = 6; + */ + boolean hasStrategy(); + /** + *
+     * Strategy indicates the strategy for picking the leader for coordinated leader election.
+     * If the field is not specified, there is no active coordination for this lease.
+     * (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
+     * +featureGate=CoordinatedLeaderElection
+     * +optional
+     * 
+ * + * optional string strategy = 6; + */ + java.lang.String getStrategy(); + /** + *
+     * Strategy indicates the strategy for picking the leader for coordinated leader election.
+     * If the field is not specified, there is no active coordination for this lease.
+     * (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
+     * +featureGate=CoordinatedLeaderElection
+     * +optional
+     * 
+ * + * optional string strategy = 6; + */ + com.google.protobuf.ByteString + getStrategyBytes(); + + /** + *
+     * PreferredHolder signals to a lease holder that the lease has a
+     * more optimal holder and should be given up.
+     * This field can only be set if Strategy is also set.
+     * +featureGate=CoordinatedLeaderElection
+     * +optional
+     * 
+ * + * optional string preferredHolder = 7; + */ + boolean hasPreferredHolder(); + /** + *
+     * PreferredHolder signals to a lease holder that the lease has a
+     * more optimal holder and should be given up.
+     * This field can only be set if Strategy is also set.
+     * +featureGate=CoordinatedLeaderElection
+     * +optional
+     * 
+ * + * optional string preferredHolder = 7; + */ + java.lang.String getPreferredHolder(); + /** + *
+     * PreferredHolder signals to a lease holder that the lease has a
+     * more optimal holder and should be given up.
+     * This field can only be set if Strategy is also set.
+     * +featureGate=CoordinatedLeaderElection
+     * +optional
+     * 
+ * + * optional string preferredHolder = 7; + */ + com.google.protobuf.ByteString + getPreferredHolderBytes(); + } + /** + *
+   * LeaseSpec is a specification of a Lease.
+   * 
+ * + * Protobuf type {@code k8s.io.api.coordination.v1.LeaseSpec} + */ + public static final class LeaseSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.coordination.v1.LeaseSpec) + LeaseSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use LeaseSpec.newBuilder() to construct. + private LeaseSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LeaseSpec() { + holderIdentity_ = ""; + leaseDurationSeconds_ = 0; + leaseTransitions_ = 0; + strategy_ = ""; + preferredHolder_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LeaseSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + holderIdentity_ = bs; + break; + } + case 16: { + bitField0_ |= 0x00000002; + leaseDurationSeconds_ = input.readInt32(); + break; + } + case 26: { + io.kubernetes.client.proto.Meta.MicroTime.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = acquireTime_.toBuilder(); + } + acquireTime_ = input.readMessage(io.kubernetes.client.proto.Meta.MicroTime.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(acquireTime_); + acquireTime_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + io.kubernetes.client.proto.Meta.MicroTime.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = renewTime_.toBuilder(); + } + renewTime_ = input.readMessage(io.kubernetes.client.proto.Meta.MicroTime.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(renewTime_); + renewTime_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 40: { + bitField0_ |= 0x00000010; + leaseTransitions_ = input.readInt32(); + break; + } + case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000020; + strategy_ = bs; + break; + } + case 58: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000040; + preferredHolder_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Coordination.internal_static_k8s_io_api_coordination_v1_LeaseSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Coordination.internal_static_k8s_io_api_coordination_v1_LeaseSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Coordination.LeaseSpec.class, io.kubernetes.client.proto.V1Coordination.LeaseSpec.Builder.class); + } + + private int bitField0_; + public static final int HOLDERIDENTITY_FIELD_NUMBER = 1; + private volatile java.lang.Object holderIdentity_; + /** + *
+     * holderIdentity contains the identity of the holder of a current lease.
+     * If Coordinated Leader Election is used, the holder identity must be
+     * equal to the elected LeaseCandidate.metadata.name field.
+     * +optional
+     * 
+ * + * optional string holderIdentity = 1; + */ + public boolean hasHolderIdentity() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * holderIdentity contains the identity of the holder of a current lease.
+     * If Coordinated Leader Election is used, the holder identity must be
+     * equal to the elected LeaseCandidate.metadata.name field.
+     * +optional
+     * 
+ * + * optional string holderIdentity = 1; + */ + public java.lang.String getHolderIdentity() { + java.lang.Object ref = holderIdentity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + holderIdentity_ = s; + } + return s; + } + } + /** + *
+     * holderIdentity contains the identity of the holder of a current lease.
+     * If Coordinated Leader Election is used, the holder identity must be
+     * equal to the elected LeaseCandidate.metadata.name field.
+     * +optional
+     * 
+ * + * optional string holderIdentity = 1; + */ + public com.google.protobuf.ByteString + getHolderIdentityBytes() { + java.lang.Object ref = holderIdentity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + holderIdentity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LEASEDURATIONSECONDS_FIELD_NUMBER = 2; + private int leaseDurationSeconds_; + /** + *
+     * leaseDurationSeconds is a duration that candidates for a lease need
+     * to wait to force acquire it. This is measured against the time of last
+     * observed renewTime.
+     * +optional
+     * 
+ * + * optional int32 leaseDurationSeconds = 2; + */ + public boolean hasLeaseDurationSeconds() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * leaseDurationSeconds is a duration that candidates for a lease need
+     * to wait to force acquire it. This is measured against the time of last
+     * observed renewTime.
+     * +optional
+     * 
+ * + * optional int32 leaseDurationSeconds = 2; + */ + public int getLeaseDurationSeconds() { + return leaseDurationSeconds_; + } + + public static final int ACQUIRETIME_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.Meta.MicroTime acquireTime_; + /** + *
+     * acquireTime is a time when the current lease was acquired.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; + */ + public boolean hasAcquireTime() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * acquireTime is a time when the current lease was acquired.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; + */ + public io.kubernetes.client.proto.Meta.MicroTime getAcquireTime() { + return acquireTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : acquireTime_; + } + /** + *
+     * acquireTime is a time when the current lease was acquired.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; + */ + public io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getAcquireTimeOrBuilder() { + return acquireTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : acquireTime_; + } + + public static final int RENEWTIME_FIELD_NUMBER = 4; + private io.kubernetes.client.proto.Meta.MicroTime renewTime_; + /** + *
+     * renewTime is a time when the current holder of a lease has last
+     * updated the lease.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; + */ + public boolean hasRenewTime() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * renewTime is a time when the current holder of a lease has last
+     * updated the lease.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; + */ + public io.kubernetes.client.proto.Meta.MicroTime getRenewTime() { + return renewTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : renewTime_; + } + /** + *
+     * renewTime is a time when the current holder of a lease has last
+     * updated the lease.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; + */ + public io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getRenewTimeOrBuilder() { + return renewTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : renewTime_; + } + + public static final int LEASETRANSITIONS_FIELD_NUMBER = 5; + private int leaseTransitions_; + /** + *
+     * leaseTransitions is the number of transitions of a lease between
+     * holders.
+     * +optional
+     * 
+ * + * optional int32 leaseTransitions = 5; + */ + public boolean hasLeaseTransitions() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+     * leaseTransitions is the number of transitions of a lease between
+     * holders.
+     * +optional
+     * 
+ * + * optional int32 leaseTransitions = 5; + */ + public int getLeaseTransitions() { + return leaseTransitions_; + } + + public static final int STRATEGY_FIELD_NUMBER = 6; + private volatile java.lang.Object strategy_; + /** + *
+     * Strategy indicates the strategy for picking the leader for coordinated leader election.
+     * If the field is not specified, there is no active coordination for this lease.
+     * (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
+     * +featureGate=CoordinatedLeaderElection
+     * +optional
+     * 
+ * + * optional string strategy = 6; + */ + public boolean hasStrategy() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+     * Strategy indicates the strategy for picking the leader for coordinated leader election.
+     * If the field is not specified, there is no active coordination for this lease.
+     * (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
+     * +featureGate=CoordinatedLeaderElection
+     * +optional
+     * 
+ * + * optional string strategy = 6; + */ + public java.lang.String getStrategy() { + java.lang.Object ref = strategy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + strategy_ = s; + } + return s; + } + } + /** + *
+     * Strategy indicates the strategy for picking the leader for coordinated leader election.
+     * If the field is not specified, there is no active coordination for this lease.
+     * (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
+     * +featureGate=CoordinatedLeaderElection
+     * +optional
+     * 
+ * + * optional string strategy = 6; + */ + public com.google.protobuf.ByteString + getStrategyBytes() { + java.lang.Object ref = strategy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + strategy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREFERREDHOLDER_FIELD_NUMBER = 7; + private volatile java.lang.Object preferredHolder_; + /** + *
+     * PreferredHolder signals to a lease holder that the lease has a
+     * more optimal holder and should be given up.
+     * This field can only be set if Strategy is also set.
+     * +featureGate=CoordinatedLeaderElection
+     * +optional
+     * 
+ * + * optional string preferredHolder = 7; + */ + public boolean hasPreferredHolder() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + *
+     * PreferredHolder signals to a lease holder that the lease has a
+     * more optimal holder and should be given up.
+     * This field can only be set if Strategy is also set.
+     * +featureGate=CoordinatedLeaderElection
+     * +optional
+     * 
+ * + * optional string preferredHolder = 7; + */ + public java.lang.String getPreferredHolder() { + java.lang.Object ref = preferredHolder_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + preferredHolder_ = s; + } + return s; + } + } + /** + *
+     * PreferredHolder signals to a lease holder that the lease has a
+     * more optimal holder and should be given up.
+     * This field can only be set if Strategy is also set.
+     * +featureGate=CoordinatedLeaderElection
+     * +optional
+     * 
+ * + * optional string preferredHolder = 7; + */ + public com.google.protobuf.ByteString + getPreferredHolderBytes() { + java.lang.Object ref = preferredHolder_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + preferredHolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, holderIdentity_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, leaseDurationSeconds_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getAcquireTime()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, getRenewTime()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt32(5, leaseTransitions_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, strategy_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, preferredHolder_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, holderIdentity_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, leaseDurationSeconds_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAcquireTime()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getRenewTime()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(5, leaseTransitions_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, strategy_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, preferredHolder_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Coordination.LeaseSpec)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Coordination.LeaseSpec other = (io.kubernetes.client.proto.V1Coordination.LeaseSpec) obj; + + boolean result = true; + result = result && (hasHolderIdentity() == other.hasHolderIdentity()); + if (hasHolderIdentity()) { + result = result && getHolderIdentity() + .equals(other.getHolderIdentity()); + } + result = result && (hasLeaseDurationSeconds() == other.hasLeaseDurationSeconds()); + if (hasLeaseDurationSeconds()) { + result = result && (getLeaseDurationSeconds() + == other.getLeaseDurationSeconds()); + } + result = result && (hasAcquireTime() == other.hasAcquireTime()); + if (hasAcquireTime()) { + result = result && getAcquireTime() + .equals(other.getAcquireTime()); + } + result = result && (hasRenewTime() == other.hasRenewTime()); + if (hasRenewTime()) { + result = result && getRenewTime() + .equals(other.getRenewTime()); + } + result = result && (hasLeaseTransitions() == other.hasLeaseTransitions()); + if (hasLeaseTransitions()) { + result = result && (getLeaseTransitions() + == other.getLeaseTransitions()); + } + result = result && (hasStrategy() == other.hasStrategy()); + if (hasStrategy()) { + result = result && getStrategy() + .equals(other.getStrategy()); + } + result = result && (hasPreferredHolder() == other.hasPreferredHolder()); + if (hasPreferredHolder()) { + result = result && getPreferredHolder() + .equals(other.getPreferredHolder()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasHolderIdentity()) { + hash = (37 * hash) + HOLDERIDENTITY_FIELD_NUMBER; + hash = (53 * hash) + getHolderIdentity().hashCode(); + } + if (hasLeaseDurationSeconds()) { + hash = (37 * hash) + LEASEDURATIONSECONDS_FIELD_NUMBER; + hash = (53 * hash) + getLeaseDurationSeconds(); + } + if (hasAcquireTime()) { + hash = (37 * hash) + ACQUIRETIME_FIELD_NUMBER; + hash = (53 * hash) + getAcquireTime().hashCode(); + } + if (hasRenewTime()) { + hash = (37 * hash) + RENEWTIME_FIELD_NUMBER; + hash = (53 * hash) + getRenewTime().hashCode(); + } + if (hasLeaseTransitions()) { + hash = (37 * hash) + LEASETRANSITIONS_FIELD_NUMBER; + hash = (53 * hash) + getLeaseTransitions(); + } + if (hasStrategy()) { + hash = (37 * hash) + STRATEGY_FIELD_NUMBER; + hash = (53 * hash) + getStrategy().hashCode(); + } + if (hasPreferredHolder()) { + hash = (37 * hash) + PREFERREDHOLDER_FIELD_NUMBER; + hash = (53 * hash) + getPreferredHolder().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Coordination.LeaseSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Coordination.LeaseSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Coordination.LeaseSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * LeaseSpec is a specification of a Lease.
+     * 
+ * + * Protobuf type {@code k8s.io.api.coordination.v1.LeaseSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.coordination.v1.LeaseSpec) + io.kubernetes.client.proto.V1Coordination.LeaseSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Coordination.internal_static_k8s_io_api_coordination_v1_LeaseSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Coordination.internal_static_k8s_io_api_coordination_v1_LeaseSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Coordination.LeaseSpec.class, io.kubernetes.client.proto.V1Coordination.LeaseSpec.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Coordination.LeaseSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAcquireTimeFieldBuilder(); + getRenewTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + holderIdentity_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + leaseDurationSeconds_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + if (acquireTimeBuilder_ == null) { + acquireTime_ = null; + } else { + acquireTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (renewTimeBuilder_ == null) { + renewTime_ = null; + } else { + renewTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + leaseTransitions_ = 0; + bitField0_ = (bitField0_ & ~0x00000010); + strategy_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + preferredHolder_ = ""; + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Coordination.internal_static_k8s_io_api_coordination_v1_LeaseSpec_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Coordination.LeaseSpec getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Coordination.LeaseSpec.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Coordination.LeaseSpec build() { + io.kubernetes.client.proto.V1Coordination.LeaseSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Coordination.LeaseSpec buildPartial() { + io.kubernetes.client.proto.V1Coordination.LeaseSpec result = new io.kubernetes.client.proto.V1Coordination.LeaseSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.holderIdentity_ = holderIdentity_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.leaseDurationSeconds_ = leaseDurationSeconds_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (acquireTimeBuilder_ == null) { + result.acquireTime_ = acquireTime_; + } else { + result.acquireTime_ = acquireTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (renewTimeBuilder_ == null) { + result.renewTime_ = renewTime_; + } else { + result.renewTime_ = renewTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.leaseTransitions_ = leaseTransitions_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.strategy_ = strategy_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.preferredHolder_ = preferredHolder_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Coordination.LeaseSpec) { + return mergeFrom((io.kubernetes.client.proto.V1Coordination.LeaseSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Coordination.LeaseSpec other) { + if (other == io.kubernetes.client.proto.V1Coordination.LeaseSpec.getDefaultInstance()) return this; + if (other.hasHolderIdentity()) { + bitField0_ |= 0x00000001; + holderIdentity_ = other.holderIdentity_; + onChanged(); + } + if (other.hasLeaseDurationSeconds()) { + setLeaseDurationSeconds(other.getLeaseDurationSeconds()); + } + if (other.hasAcquireTime()) { + mergeAcquireTime(other.getAcquireTime()); + } + if (other.hasRenewTime()) { + mergeRenewTime(other.getRenewTime()); + } + if (other.hasLeaseTransitions()) { + setLeaseTransitions(other.getLeaseTransitions()); + } + if (other.hasStrategy()) { + bitField0_ |= 0x00000020; + strategy_ = other.strategy_; + onChanged(); + } + if (other.hasPreferredHolder()) { + bitField0_ |= 0x00000040; + preferredHolder_ = other.preferredHolder_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Coordination.LeaseSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Coordination.LeaseSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object holderIdentity_ = ""; + /** + *
+       * holderIdentity contains the identity of the holder of a current lease.
+       * If Coordinated Leader Election is used, the holder identity must be
+       * equal to the elected LeaseCandidate.metadata.name field.
+       * +optional
+       * 
+ * + * optional string holderIdentity = 1; + */ + public boolean hasHolderIdentity() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * holderIdentity contains the identity of the holder of a current lease.
+       * If Coordinated Leader Election is used, the holder identity must be
+       * equal to the elected LeaseCandidate.metadata.name field.
+       * +optional
+       * 
+ * + * optional string holderIdentity = 1; + */ + public java.lang.String getHolderIdentity() { + java.lang.Object ref = holderIdentity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + holderIdentity_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * holderIdentity contains the identity of the holder of a current lease.
+       * If Coordinated Leader Election is used, the holder identity must be
+       * equal to the elected LeaseCandidate.metadata.name field.
+       * +optional
+       * 
+ * + * optional string holderIdentity = 1; + */ + public com.google.protobuf.ByteString + getHolderIdentityBytes() { + java.lang.Object ref = holderIdentity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + holderIdentity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * holderIdentity contains the identity of the holder of a current lease.
+       * If Coordinated Leader Election is used, the holder identity must be
+       * equal to the elected LeaseCandidate.metadata.name field.
+       * +optional
+       * 
+ * + * optional string holderIdentity = 1; + */ + public Builder setHolderIdentity( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + holderIdentity_ = value; + onChanged(); + return this; + } + /** + *
+       * holderIdentity contains the identity of the holder of a current lease.
+       * If Coordinated Leader Election is used, the holder identity must be
+       * equal to the elected LeaseCandidate.metadata.name field.
+       * +optional
+       * 
+ * + * optional string holderIdentity = 1; + */ + public Builder clearHolderIdentity() { + bitField0_ = (bitField0_ & ~0x00000001); + holderIdentity_ = getDefaultInstance().getHolderIdentity(); + onChanged(); + return this; + } + /** + *
+       * holderIdentity contains the identity of the holder of a current lease.
+       * If Coordinated Leader Election is used, the holder identity must be
+       * equal to the elected LeaseCandidate.metadata.name field.
+       * +optional
+       * 
+ * + * optional string holderIdentity = 1; + */ + public Builder setHolderIdentityBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + holderIdentity_ = value; + onChanged(); + return this; + } + + private int leaseDurationSeconds_ ; + /** + *
+       * leaseDurationSeconds is a duration that candidates for a lease need
+       * to wait to force acquire it. This is measured against the time of last
+       * observed renewTime.
+       * +optional
+       * 
+ * + * optional int32 leaseDurationSeconds = 2; + */ + public boolean hasLeaseDurationSeconds() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * leaseDurationSeconds is a duration that candidates for a lease need
+       * to wait to force acquire it. This is measured against the time of last
+       * observed renewTime.
+       * +optional
+       * 
+ * + * optional int32 leaseDurationSeconds = 2; + */ + public int getLeaseDurationSeconds() { + return leaseDurationSeconds_; + } + /** + *
+       * leaseDurationSeconds is a duration that candidates for a lease need
+       * to wait to force acquire it. This is measured against the time of last
+       * observed renewTime.
+       * +optional
+       * 
+ * + * optional int32 leaseDurationSeconds = 2; + */ + public Builder setLeaseDurationSeconds(int value) { + bitField0_ |= 0x00000002; + leaseDurationSeconds_ = value; + onChanged(); + return this; + } + /** + *
+       * leaseDurationSeconds is a duration that candidates for a lease need
+       * to wait to force acquire it. This is measured against the time of last
+       * observed renewTime.
+       * +optional
+       * 
+ * + * optional int32 leaseDurationSeconds = 2; + */ + public Builder clearLeaseDurationSeconds() { + bitField0_ = (bitField0_ & ~0x00000002); + leaseDurationSeconds_ = 0; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.Meta.MicroTime acquireTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder> acquireTimeBuilder_; + /** + *
+       * acquireTime is a time when the current lease was acquired.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; + */ + public boolean hasAcquireTime() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * acquireTime is a time when the current lease was acquired.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; + */ + public io.kubernetes.client.proto.Meta.MicroTime getAcquireTime() { + if (acquireTimeBuilder_ == null) { + return acquireTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : acquireTime_; + } else { + return acquireTimeBuilder_.getMessage(); + } + } + /** + *
+       * acquireTime is a time when the current lease was acquired.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; + */ + public Builder setAcquireTime(io.kubernetes.client.proto.Meta.MicroTime value) { + if (acquireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + acquireTime_ = value; + onChanged(); + } else { + acquireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * acquireTime is a time when the current lease was acquired.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; + */ + public Builder setAcquireTime( + io.kubernetes.client.proto.Meta.MicroTime.Builder builderForValue) { + if (acquireTimeBuilder_ == null) { + acquireTime_ = builderForValue.build(); + onChanged(); + } else { + acquireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * acquireTime is a time when the current lease was acquired.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; + */ + public Builder mergeAcquireTime(io.kubernetes.client.proto.Meta.MicroTime value) { + if (acquireTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + acquireTime_ != null && + acquireTime_ != io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance()) { + acquireTime_ = + io.kubernetes.client.proto.Meta.MicroTime.newBuilder(acquireTime_).mergeFrom(value).buildPartial(); + } else { + acquireTime_ = value; + } + onChanged(); + } else { + acquireTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * acquireTime is a time when the current lease was acquired.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; + */ + public Builder clearAcquireTime() { + if (acquireTimeBuilder_ == null) { + acquireTime_ = null; + onChanged(); + } else { + acquireTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * acquireTime is a time when the current lease was acquired.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; + */ + public io.kubernetes.client.proto.Meta.MicroTime.Builder getAcquireTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAcquireTimeFieldBuilder().getBuilder(); + } + /** + *
+       * acquireTime is a time when the current lease was acquired.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; + */ + public io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getAcquireTimeOrBuilder() { + if (acquireTimeBuilder_ != null) { + return acquireTimeBuilder_.getMessageOrBuilder(); + } else { + return acquireTime_ == null ? + io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : acquireTime_; + } + } + /** + *
+       * acquireTime is a time when the current lease was acquired.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime acquireTime = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder> + getAcquireTimeFieldBuilder() { + if (acquireTimeBuilder_ == null) { + acquireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder>( + getAcquireTime(), + getParentForChildren(), + isClean()); + acquireTime_ = null; + } + return acquireTimeBuilder_; + } + + private io.kubernetes.client.proto.Meta.MicroTime renewTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder> renewTimeBuilder_; + /** + *
+       * renewTime is a time when the current holder of a lease has last
+       * updated the lease.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; + */ + public boolean hasRenewTime() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * renewTime is a time when the current holder of a lease has last
+       * updated the lease.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; + */ + public io.kubernetes.client.proto.Meta.MicroTime getRenewTime() { + if (renewTimeBuilder_ == null) { + return renewTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : renewTime_; + } else { + return renewTimeBuilder_.getMessage(); + } + } + /** + *
+       * renewTime is a time when the current holder of a lease has last
+       * updated the lease.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; + */ + public Builder setRenewTime(io.kubernetes.client.proto.Meta.MicroTime value) { + if (renewTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + renewTime_ = value; + onChanged(); + } else { + renewTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * renewTime is a time when the current holder of a lease has last
+       * updated the lease.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; + */ + public Builder setRenewTime( + io.kubernetes.client.proto.Meta.MicroTime.Builder builderForValue) { + if (renewTimeBuilder_ == null) { + renewTime_ = builderForValue.build(); + onChanged(); + } else { + renewTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * renewTime is a time when the current holder of a lease has last
+       * updated the lease.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; + */ + public Builder mergeRenewTime(io.kubernetes.client.proto.Meta.MicroTime value) { + if (renewTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + renewTime_ != null && + renewTime_ != io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance()) { + renewTime_ = + io.kubernetes.client.proto.Meta.MicroTime.newBuilder(renewTime_).mergeFrom(value).buildPartial(); + } else { + renewTime_ = value; + } + onChanged(); + } else { + renewTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * renewTime is a time when the current holder of a lease has last
+       * updated the lease.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; + */ + public Builder clearRenewTime() { + if (renewTimeBuilder_ == null) { + renewTime_ = null; + onChanged(); + } else { + renewTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + *
+       * renewTime is a time when the current holder of a lease has last
+       * updated the lease.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; + */ + public io.kubernetes.client.proto.Meta.MicroTime.Builder getRenewTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRenewTimeFieldBuilder().getBuilder(); + } + /** + *
+       * renewTime is a time when the current holder of a lease has last
+       * updated the lease.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; + */ + public io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getRenewTimeOrBuilder() { + if (renewTimeBuilder_ != null) { + return renewTimeBuilder_.getMessageOrBuilder(); + } else { + return renewTime_ == null ? + io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : renewTime_; + } + } + /** + *
+       * renewTime is a time when the current holder of a lease has last
+       * updated the lease.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime renewTime = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder> + getRenewTimeFieldBuilder() { + if (renewTimeBuilder_ == null) { + renewTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder>( + getRenewTime(), + getParentForChildren(), + isClean()); + renewTime_ = null; + } + return renewTimeBuilder_; + } + + private int leaseTransitions_ ; + /** + *
+       * leaseTransitions is the number of transitions of a lease between
+       * holders.
+       * +optional
+       * 
+ * + * optional int32 leaseTransitions = 5; + */ + public boolean hasLeaseTransitions() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+       * leaseTransitions is the number of transitions of a lease between
+       * holders.
+       * +optional
+       * 
+ * + * optional int32 leaseTransitions = 5; + */ + public int getLeaseTransitions() { + return leaseTransitions_; + } + /** + *
+       * leaseTransitions is the number of transitions of a lease between
+       * holders.
+       * +optional
+       * 
+ * + * optional int32 leaseTransitions = 5; + */ + public Builder setLeaseTransitions(int value) { + bitField0_ |= 0x00000010; + leaseTransitions_ = value; + onChanged(); + return this; + } + /** + *
+       * leaseTransitions is the number of transitions of a lease between
+       * holders.
+       * +optional
+       * 
+ * + * optional int32 leaseTransitions = 5; + */ + public Builder clearLeaseTransitions() { + bitField0_ = (bitField0_ & ~0x00000010); + leaseTransitions_ = 0; + onChanged(); + return this; + } + + private java.lang.Object strategy_ = ""; + /** + *
+       * Strategy indicates the strategy for picking the leader for coordinated leader election.
+       * If the field is not specified, there is no active coordination for this lease.
+       * (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
+       * +featureGate=CoordinatedLeaderElection
+       * +optional
+       * 
+ * + * optional string strategy = 6; + */ + public boolean hasStrategy() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+       * Strategy indicates the strategy for picking the leader for coordinated leader election.
+       * If the field is not specified, there is no active coordination for this lease.
+       * (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
+       * +featureGate=CoordinatedLeaderElection
+       * +optional
+       * 
+ * + * optional string strategy = 6; + */ + public java.lang.String getStrategy() { + java.lang.Object ref = strategy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + strategy_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Strategy indicates the strategy for picking the leader for coordinated leader election.
+       * If the field is not specified, there is no active coordination for this lease.
+       * (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
+       * +featureGate=CoordinatedLeaderElection
+       * +optional
+       * 
+ * + * optional string strategy = 6; + */ + public com.google.protobuf.ByteString + getStrategyBytes() { + java.lang.Object ref = strategy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + strategy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Strategy indicates the strategy for picking the leader for coordinated leader election.
+       * If the field is not specified, there is no active coordination for this lease.
+       * (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
+       * +featureGate=CoordinatedLeaderElection
+       * +optional
+       * 
+ * + * optional string strategy = 6; + */ + public Builder setStrategy( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + strategy_ = value; + onChanged(); + return this; + } + /** + *
+       * Strategy indicates the strategy for picking the leader for coordinated leader election.
+       * If the field is not specified, there is no active coordination for this lease.
+       * (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
+       * +featureGate=CoordinatedLeaderElection
+       * +optional
+       * 
+ * + * optional string strategy = 6; + */ + public Builder clearStrategy() { + bitField0_ = (bitField0_ & ~0x00000020); + strategy_ = getDefaultInstance().getStrategy(); + onChanged(); + return this; + } + /** + *
+       * Strategy indicates the strategy for picking the leader for coordinated leader election.
+       * If the field is not specified, there is no active coordination for this lease.
+       * (Alpha) Using this field requires the CoordinatedLeaderElection feature gate to be enabled.
+       * +featureGate=CoordinatedLeaderElection
+       * +optional
+       * 
+ * + * optional string strategy = 6; + */ + public Builder setStrategyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + strategy_ = value; + onChanged(); + return this; + } + + private java.lang.Object preferredHolder_ = ""; + /** + *
+       * PreferredHolder signals to a lease holder that the lease has a
+       * more optimal holder and should be given up.
+       * This field can only be set if Strategy is also set.
+       * +featureGate=CoordinatedLeaderElection
+       * +optional
+       * 
+ * + * optional string preferredHolder = 7; + */ + public boolean hasPreferredHolder() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + *
+       * PreferredHolder signals to a lease holder that the lease has a
+       * more optimal holder and should be given up.
+       * This field can only be set if Strategy is also set.
+       * +featureGate=CoordinatedLeaderElection
+       * +optional
+       * 
+ * + * optional string preferredHolder = 7; + */ + public java.lang.String getPreferredHolder() { + java.lang.Object ref = preferredHolder_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + preferredHolder_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * PreferredHolder signals to a lease holder that the lease has a
+       * more optimal holder and should be given up.
+       * This field can only be set if Strategy is also set.
+       * +featureGate=CoordinatedLeaderElection
+       * +optional
+       * 
+ * + * optional string preferredHolder = 7; + */ + public com.google.protobuf.ByteString + getPreferredHolderBytes() { + java.lang.Object ref = preferredHolder_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + preferredHolder_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * PreferredHolder signals to a lease holder that the lease has a
+       * more optimal holder and should be given up.
+       * This field can only be set if Strategy is also set.
+       * +featureGate=CoordinatedLeaderElection
+       * +optional
+       * 
+ * + * optional string preferredHolder = 7; + */ + public Builder setPreferredHolder( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + preferredHolder_ = value; + onChanged(); + return this; + } + /** + *
+       * PreferredHolder signals to a lease holder that the lease has a
+       * more optimal holder and should be given up.
+       * This field can only be set if Strategy is also set.
+       * +featureGate=CoordinatedLeaderElection
+       * +optional
+       * 
+ * + * optional string preferredHolder = 7; + */ + public Builder clearPreferredHolder() { + bitField0_ = (bitField0_ & ~0x00000040); + preferredHolder_ = getDefaultInstance().getPreferredHolder(); + onChanged(); + return this; + } + /** + *
+       * PreferredHolder signals to a lease holder that the lease has a
+       * more optimal holder and should be given up.
+       * This field can only be set if Strategy is also set.
+       * +featureGate=CoordinatedLeaderElection
+       * +optional
+       * 
+ * + * optional string preferredHolder = 7; + */ + public Builder setPreferredHolderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + preferredHolder_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.coordination.v1.LeaseSpec) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.coordination.v1.LeaseSpec) + private static final io.kubernetes.client.proto.V1Coordination.LeaseSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Coordination.LeaseSpec(); + } + + public static io.kubernetes.client.proto.V1Coordination.LeaseSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LeaseSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LeaseSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Coordination.LeaseSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_coordination_v1_Lease_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_coordination_v1_Lease_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_coordination_v1_LeaseList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_coordination_v1_LeaseList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_coordination_v1_LeaseSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_coordination_v1_LeaseSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*k8s.io/api/coordination/v1/generated.p" + + "roto\022\032k8s.io.api.coordination.v1\0324k8s.io" + + "/apimachinery/pkg/apis/meta/v1/generated" + + ".proto\032/k8s.io/apimachinery/pkg/runtime/" + + "generated.proto\0326k8s.io/apimachinery/pkg" + + "/runtime/schema/generated.proto\"\200\001\n\005Leas" + + "e\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachiner" + + "y.pkg.apis.meta.v1.ObjectMeta\0223\n\004spec\030\002 " + + "\001(\0132%.k8s.io.api.coordination.v1.LeaseSp" + + "ec\"\177\n\tLeaseList\022@\n\010metadata\030\001 \001(\0132..k8s." + + "io.apimachinery.pkg.apis.meta.v1.ListMet" + + "a\0220\n\005items\030\002 \003(\0132!.k8s.io.api.coordinati" + + "on.v1.Lease\"\220\002\n\tLeaseSpec\022\026\n\016holderIdent" + + "ity\030\001 \001(\t\022\034\n\024leaseDurationSeconds\030\002 \001(\005\022" + + "D\n\013acquireTime\030\003 \001(\0132/.k8s.io.apimachine" + + "ry.pkg.apis.meta.v1.MicroTime\022B\n\trenewTi" + + "me\030\004 \001(\0132/.k8s.io.apimachinery.pkg.apis." + + "meta.v1.MicroTime\022\030\n\020leaseTransitions\030\005 " + + "\001(\005\022\020\n\010strategy\030\006 \001(\t\022\027\n\017preferredHolder" + + "\030\007 \001(\tBH\n\032io.kubernetes.client.protoB\016V1" + + "CoordinationZ\032k8s.io/api/coordination/v1" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.kubernetes.client.proto.Meta.getDescriptor(), + io.kubernetes.client.proto.Runtime.getDescriptor(), + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), + }, assigner); + internal_static_k8s_io_api_coordination_v1_Lease_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_k8s_io_api_coordination_v1_Lease_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_coordination_v1_Lease_descriptor, + new java.lang.String[] { "Metadata", "Spec", }); + internal_static_k8s_io_api_coordination_v1_LeaseList_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_k8s_io_api_coordination_v1_LeaseList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_coordination_v1_LeaseList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_coordination_v1_LeaseSpec_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_k8s_io_api_coordination_v1_LeaseSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_coordination_v1_LeaseSpec_descriptor, + new java.lang.String[] { "HolderIdentity", "LeaseDurationSeconds", "AcquireTime", "RenewTime", "LeaseTransitions", "Strategy", "PreferredHolder", }); + io.kubernetes.client.proto.Meta.getDescriptor(); + io.kubernetes.client.proto.Runtime.getDescriptor(); + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Discovery.java b/proto/src/main/java/io/kubernetes/client/proto/V1Discovery.java new file mode 100644 index 0000000000..291b1689fe --- /dev/null +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Discovery.java @@ -0,0 +1,11682 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: k8s.io/api/discovery/v1/generated.proto + +package io.kubernetes.client.proto; + +public final class V1Discovery { + private V1Discovery() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface EndpointOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.discovery.v1.Endpoint) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+     * the values are IP addresses in canonical form. The syntax and semantics of
+     * other addressType values are not defined. This must contain at least one
+     * address but no more than 100. EndpointSlices generated by the EndpointSlice
+     * controller will always have exactly 1 address. No semantics are defined for
+     * additional addresses beyond the first, and kube-proxy does not look at them.
+     * +listType=set
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+     * 
+ * + * repeated string addresses = 1; + */ + java.util.List + getAddressesList(); + /** + *
+     * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+     * the values are IP addresses in canonical form. The syntax and semantics of
+     * other addressType values are not defined. This must contain at least one
+     * address but no more than 100. EndpointSlices generated by the EndpointSlice
+     * controller will always have exactly 1 address. No semantics are defined for
+     * additional addresses beyond the first, and kube-proxy does not look at them.
+     * +listType=set
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+     * 
+ * + * repeated string addresses = 1; + */ + int getAddressesCount(); + /** + *
+     * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+     * the values are IP addresses in canonical form. The syntax and semantics of
+     * other addressType values are not defined. This must contain at least one
+     * address but no more than 100. EndpointSlices generated by the EndpointSlice
+     * controller will always have exactly 1 address. No semantics are defined for
+     * additional addresses beyond the first, and kube-proxy does not look at them.
+     * +listType=set
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+     * 
+ * + * repeated string addresses = 1; + */ + java.lang.String getAddresses(int index); + /** + *
+     * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+     * the values are IP addresses in canonical form. The syntax and semantics of
+     * other addressType values are not defined. This must contain at least one
+     * address but no more than 100. EndpointSlices generated by the EndpointSlice
+     * controller will always have exactly 1 address. No semantics are defined for
+     * additional addresses beyond the first, and kube-proxy does not look at them.
+     * +listType=set
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+     * 
+ * + * repeated string addresses = 1; + */ + com.google.protobuf.ByteString + getAddressesBytes(int index); + + /** + *
+     * conditions contains information about the current status of the endpoint.
+     * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointConditions conditions = 2; + */ + boolean hasConditions(); + /** + *
+     * conditions contains information about the current status of the endpoint.
+     * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointConditions conditions = 2; + */ + io.kubernetes.client.proto.V1Discovery.EndpointConditions getConditions(); + /** + *
+     * conditions contains information about the current status of the endpoint.
+     * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointConditions conditions = 2; + */ + io.kubernetes.client.proto.V1Discovery.EndpointConditionsOrBuilder getConditionsOrBuilder(); + + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * optional string hostname = 3; + */ + boolean hasHostname(); + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * optional string hostname = 3; + */ + java.lang.String getHostname(); + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * optional string hostname = 3; + */ + com.google.protobuf.ByteString + getHostnameBytes(); + + /** + *
+     * targetRef is a reference to a Kubernetes object that represents this
+     * endpoint.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference targetRef = 4; + */ + boolean hasTargetRef(); + /** + *
+     * targetRef is a reference to a Kubernetes object that represents this
+     * endpoint.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference targetRef = 4; + */ + io.kubernetes.client.proto.V1.ObjectReference getTargetRef(); + /** + *
+     * targetRef is a reference to a Kubernetes object that represents this
+     * endpoint.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference targetRef = 4; + */ + io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getTargetRefOrBuilder(); + + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + int getDeprecatedTopologyCount(); + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + boolean containsDeprecatedTopology( + java.lang.String key); + /** + * Use {@link #getDeprecatedTopologyMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getDeprecatedTopology(); + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + java.util.Map + getDeprecatedTopologyMap(); + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + + java.lang.String getDeprecatedTopologyOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + + java.lang.String getDeprecatedTopologyOrThrow( + java.lang.String key); + + /** + *
+     * nodeName represents the name of the Node hosting this endpoint. This can
+     * be used to determine endpoints local to a Node.
+     * +optional
+     * 
+ * + * optional string nodeName = 6; + */ + boolean hasNodeName(); + /** + *
+     * nodeName represents the name of the Node hosting this endpoint. This can
+     * be used to determine endpoints local to a Node.
+     * +optional
+     * 
+ * + * optional string nodeName = 6; + */ + java.lang.String getNodeName(); + /** + *
+     * nodeName represents the name of the Node hosting this endpoint. This can
+     * be used to determine endpoints local to a Node.
+     * +optional
+     * 
+ * + * optional string nodeName = 6; + */ + com.google.protobuf.ByteString + getNodeNameBytes(); + + /** + *
+     * zone is the name of the Zone this endpoint exists in.
+     * +optional
+     * 
+ * + * optional string zone = 7; + */ + boolean hasZone(); + /** + *
+     * zone is the name of the Zone this endpoint exists in.
+     * +optional
+     * 
+ * + * optional string zone = 7; + */ + java.lang.String getZone(); + /** + *
+     * zone is the name of the Zone this endpoint exists in.
+     * +optional
+     * 
+ * + * optional string zone = 7; + */ + com.google.protobuf.ByteString + getZoneBytes(); + + /** + *
+     * hints contains information associated with how an endpoint should be
+     * consumed.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointHints hints = 8; + */ + boolean hasHints(); + /** + *
+     * hints contains information associated with how an endpoint should be
+     * consumed.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointHints hints = 8; + */ + io.kubernetes.client.proto.V1Discovery.EndpointHints getHints(); + /** + *
+     * hints contains information associated with how an endpoint should be
+     * consumed.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointHints hints = 8; + */ + io.kubernetes.client.proto.V1Discovery.EndpointHintsOrBuilder getHintsOrBuilder(); + } + /** + *
+   * Endpoint represents a single logical "backend" implementing a service.
+   * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.Endpoint} + */ + public static final class Endpoint extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.discovery.v1.Endpoint) + EndpointOrBuilder { + private static final long serialVersionUID = 0L; + // Use Endpoint.newBuilder() to construct. + private Endpoint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Endpoint() { + addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + hostname_ = ""; + nodeName_ = ""; + zone_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Endpoint( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + addresses_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + addresses_.add(bs); + break; + } + case 18: { + io.kubernetes.client.proto.V1Discovery.EndpointConditions.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = conditions_.toBuilder(); + } + conditions_ = input.readMessage(io.kubernetes.client.proto.V1Discovery.EndpointConditions.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(conditions_); + conditions_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + hostname_ = bs; + break; + } + case 34: { + io.kubernetes.client.proto.V1.ObjectReference.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = targetRef_.toBuilder(); + } + targetRef_ = input.readMessage(io.kubernetes.client.proto.V1.ObjectReference.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(targetRef_); + targetRef_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + deprecatedTopology_ = com.google.protobuf.MapField.newMapField( + DeprecatedTopologyDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000010; + } + com.google.protobuf.MapEntry + deprecatedTopology__ = input.readMessage( + DeprecatedTopologyDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + deprecatedTopology_.getMutableMap().put( + deprecatedTopology__.getKey(), deprecatedTopology__.getValue()); + break; + } + case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + nodeName_ = bs; + break; + } + case 58: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000010; + zone_ = bs; + break; + } + case 66: { + io.kubernetes.client.proto.V1Discovery.EndpointHints.Builder subBuilder = null; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + subBuilder = hints_.toBuilder(); + } + hints_ = input.readMessage(io.kubernetes.client.proto.V1Discovery.EndpointHints.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(hints_); + hints_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000020; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + addresses_ = addresses_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_Endpoint_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetDeprecatedTopology(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_Endpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.Endpoint.class, io.kubernetes.client.proto.V1Discovery.Endpoint.Builder.class); + } + + private int bitField0_; + public static final int ADDRESSES_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList addresses_; + /** + *
+     * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+     * the values are IP addresses in canonical form. The syntax and semantics of
+     * other addressType values are not defined. This must contain at least one
+     * address but no more than 100. EndpointSlices generated by the EndpointSlice
+     * controller will always have exactly 1 address. No semantics are defined for
+     * additional addresses beyond the first, and kube-proxy does not look at them.
+     * +listType=set
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+     * 
+ * + * repeated string addresses = 1; + */ + public com.google.protobuf.ProtocolStringList + getAddressesList() { + return addresses_; + } + /** + *
+     * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+     * the values are IP addresses in canonical form. The syntax and semantics of
+     * other addressType values are not defined. This must contain at least one
+     * address but no more than 100. EndpointSlices generated by the EndpointSlice
+     * controller will always have exactly 1 address. No semantics are defined for
+     * additional addresses beyond the first, and kube-proxy does not look at them.
+     * +listType=set
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+     * 
+ * + * repeated string addresses = 1; + */ + public int getAddressesCount() { + return addresses_.size(); + } + /** + *
+     * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+     * the values are IP addresses in canonical form. The syntax and semantics of
+     * other addressType values are not defined. This must contain at least one
+     * address but no more than 100. EndpointSlices generated by the EndpointSlice
+     * controller will always have exactly 1 address. No semantics are defined for
+     * additional addresses beyond the first, and kube-proxy does not look at them.
+     * +listType=set
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+     * 
+ * + * repeated string addresses = 1; + */ + public java.lang.String getAddresses(int index) { + return addresses_.get(index); + } + /** + *
+     * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+     * the values are IP addresses in canonical form. The syntax and semantics of
+     * other addressType values are not defined. This must contain at least one
+     * address but no more than 100. EndpointSlices generated by the EndpointSlice
+     * controller will always have exactly 1 address. No semantics are defined for
+     * additional addresses beyond the first, and kube-proxy does not look at them.
+     * +listType=set
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+     * 
+ * + * repeated string addresses = 1; + */ + public com.google.protobuf.ByteString + getAddressesBytes(int index) { + return addresses_.getByteString(index); + } + + public static final int CONDITIONS_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Discovery.EndpointConditions conditions_; + /** + *
+     * conditions contains information about the current status of the endpoint.
+     * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointConditions conditions = 2; + */ + public boolean hasConditions() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * conditions contains information about the current status of the endpoint.
+     * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointConditions conditions = 2; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointConditions getConditions() { + return conditions_ == null ? io.kubernetes.client.proto.V1Discovery.EndpointConditions.getDefaultInstance() : conditions_; + } + /** + *
+     * conditions contains information about the current status of the endpoint.
+     * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointConditions conditions = 2; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointConditionsOrBuilder getConditionsOrBuilder() { + return conditions_ == null ? io.kubernetes.client.proto.V1Discovery.EndpointConditions.getDefaultInstance() : conditions_; + } + + public static final int HOSTNAME_FIELD_NUMBER = 3; + private volatile java.lang.Object 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.
+     * +optional
+     * 
+ * + * optional string hostname = 3; + */ + public boolean hasHostname() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * optional string hostname = 3; + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + hostname_ = s; + } + return s; + } + } + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * optional string hostname = 3; + */ + public com.google.protobuf.ByteString + getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGETREF_FIELD_NUMBER = 4; + private io.kubernetes.client.proto.V1.ObjectReference targetRef_; + /** + *
+     * targetRef is a reference to a Kubernetes object that represents this
+     * endpoint.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference targetRef = 4; + */ + public boolean hasTargetRef() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * targetRef is a reference to a Kubernetes object that represents this
+     * endpoint.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference targetRef = 4; + */ + public io.kubernetes.client.proto.V1.ObjectReference getTargetRef() { + return targetRef_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : targetRef_; + } + /** + *
+     * targetRef is a reference to a Kubernetes object that represents this
+     * endpoint.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference targetRef = 4; + */ + public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getTargetRefOrBuilder() { + return targetRef_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : targetRef_; + } + + public static final int DEPRECATEDTOPOLOGY_FIELD_NUMBER = 5; + private static final class DeprecatedTopologyDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_Endpoint_DeprecatedTopologyEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> deprecatedTopology_; + private com.google.protobuf.MapField + internalGetDeprecatedTopology() { + if (deprecatedTopology_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DeprecatedTopologyDefaultEntryHolder.defaultEntry); + } + return deprecatedTopology_; + } + + public int getDeprecatedTopologyCount() { + return internalGetDeprecatedTopology().getMap().size(); + } + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + + public boolean containsDeprecatedTopology( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetDeprecatedTopology().getMap().containsKey(key); + } + /** + * Use {@link #getDeprecatedTopologyMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getDeprecatedTopology() { + return getDeprecatedTopologyMap(); + } + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + + public java.util.Map getDeprecatedTopologyMap() { + return internalGetDeprecatedTopology().getMap(); + } + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + + public java.lang.String getDeprecatedTopologyOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDeprecatedTopology().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + + public java.lang.String getDeprecatedTopologyOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDeprecatedTopology().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int NODENAME_FIELD_NUMBER = 6; + private volatile java.lang.Object nodeName_; + /** + *
+     * nodeName represents the name of the Node hosting this endpoint. This can
+     * be used to determine endpoints local to a Node.
+     * +optional
+     * 
+ * + * optional string nodeName = 6; + */ + public boolean hasNodeName() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * nodeName represents the name of the Node hosting this endpoint. This can
+     * be used to determine endpoints local to a Node.
+     * +optional
+     * 
+ * + * optional string nodeName = 6; + */ + public java.lang.String getNodeName() { + java.lang.Object ref = nodeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + nodeName_ = s; + } + return s; + } + } + /** + *
+     * nodeName represents the name of the Node hosting this endpoint. This can
+     * be used to determine endpoints local to a Node.
+     * +optional
+     * 
+ * + * optional string nodeName = 6; + */ + public com.google.protobuf.ByteString + getNodeNameBytes() { + java.lang.Object ref = nodeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ZONE_FIELD_NUMBER = 7; + private volatile java.lang.Object zone_; + /** + *
+     * zone is the name of the Zone this endpoint exists in.
+     * +optional
+     * 
+ * + * optional string zone = 7; + */ + public boolean hasZone() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+     * zone is the name of the Zone this endpoint exists in.
+     * +optional
+     * 
+ * + * optional string zone = 7; + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + zone_ = s; + } + return s; + } + } + /** + *
+     * zone is the name of the Zone this endpoint exists in.
+     * +optional
+     * 
+ * + * optional string zone = 7; + */ + public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HINTS_FIELD_NUMBER = 8; + private io.kubernetes.client.proto.V1Discovery.EndpointHints hints_; + /** + *
+     * hints contains information associated with how an endpoint should be
+     * consumed.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointHints hints = 8; + */ + public boolean hasHints() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+     * hints contains information associated with how an endpoint should be
+     * consumed.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointHints hints = 8; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointHints getHints() { + return hints_ == null ? io.kubernetes.client.proto.V1Discovery.EndpointHints.getDefaultInstance() : hints_; + } + /** + *
+     * hints contains information associated with how an endpoint should be
+     * consumed.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointHints hints = 8; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointHintsOrBuilder getHintsOrBuilder() { + return hints_ == null ? io.kubernetes.client.proto.V1Discovery.EndpointHints.getDefaultInstance() : hints_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < addresses_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addresses_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(2, getConditions()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hostname_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(4, getTargetRef()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetDeprecatedTopology(), + DeprecatedTopologyDefaultEntryHolder.defaultEntry, + 5); + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, nodeName_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, zone_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeMessage(8, getHints()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < addresses_.size(); i++) { + dataSize += computeStringSizeNoTag(addresses_.getRaw(i)); + } + size += dataSize; + size += 1 * getAddressesList().size(); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getConditions()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hostname_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTargetRef()); + } + for (java.util.Map.Entry entry + : internalGetDeprecatedTopology().getMap().entrySet()) { + com.google.protobuf.MapEntry + deprecatedTopology__ = DeprecatedTopologyDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, deprecatedTopology__); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, nodeName_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, zone_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getHints()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Discovery.Endpoint)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Discovery.Endpoint other = (io.kubernetes.client.proto.V1Discovery.Endpoint) obj; + + boolean result = true; + result = result && getAddressesList() + .equals(other.getAddressesList()); + result = result && (hasConditions() == other.hasConditions()); + if (hasConditions()) { + result = result && getConditions() + .equals(other.getConditions()); + } + result = result && (hasHostname() == other.hasHostname()); + if (hasHostname()) { + result = result && getHostname() + .equals(other.getHostname()); + } + result = result && (hasTargetRef() == other.hasTargetRef()); + if (hasTargetRef()) { + result = result && getTargetRef() + .equals(other.getTargetRef()); + } + result = result && internalGetDeprecatedTopology().equals( + other.internalGetDeprecatedTopology()); + result = result && (hasNodeName() == other.hasNodeName()); + if (hasNodeName()) { + result = result && getNodeName() + .equals(other.getNodeName()); + } + result = result && (hasZone() == other.hasZone()); + if (hasZone()) { + result = result && getZone() + .equals(other.getZone()); + } + result = result && (hasHints() == other.hasHints()); + if (hasHints()) { + result = result && getHints() + .equals(other.getHints()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAddressesCount() > 0) { + hash = (37 * hash) + ADDRESSES_FIELD_NUMBER; + hash = (53 * hash) + getAddressesList().hashCode(); + } + if (hasConditions()) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditions().hashCode(); + } + if (hasHostname()) { + hash = (37 * hash) + HOSTNAME_FIELD_NUMBER; + hash = (53 * hash) + getHostname().hashCode(); + } + if (hasTargetRef()) { + hash = (37 * hash) + TARGETREF_FIELD_NUMBER; + hash = (53 * hash) + getTargetRef().hashCode(); + } + if (!internalGetDeprecatedTopology().getMap().isEmpty()) { + hash = (37 * hash) + DEPRECATEDTOPOLOGY_FIELD_NUMBER; + hash = (53 * hash) + internalGetDeprecatedTopology().hashCode(); + } + if (hasNodeName()) { + hash = (37 * hash) + NODENAME_FIELD_NUMBER; + hash = (53 * hash) + getNodeName().hashCode(); + } + if (hasZone()) { + hash = (37 * hash) + ZONE_FIELD_NUMBER; + hash = (53 * hash) + getZone().hashCode(); + } + if (hasHints()) { + hash = (37 * hash) + HINTS_FIELD_NUMBER; + hash = (53 * hash) + getHints().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Discovery.Endpoint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.Endpoint parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.Endpoint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.Endpoint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.Endpoint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.Endpoint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.Endpoint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.Endpoint parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.Endpoint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.Endpoint parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.Endpoint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.Endpoint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Discovery.Endpoint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Endpoint represents a single logical "backend" implementing a service.
+     * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.Endpoint} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.discovery.v1.Endpoint) + io.kubernetes.client.proto.V1Discovery.EndpointOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_Endpoint_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 5: + return internalGetDeprecatedTopology(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 5: + return internalGetMutableDeprecatedTopology(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_Endpoint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.Endpoint.class, io.kubernetes.client.proto.V1Discovery.Endpoint.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Discovery.Endpoint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConditionsFieldBuilder(); + getTargetRefFieldBuilder(); + getHintsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (conditionsBuilder_ == null) { + conditions_ = null; + } else { + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + hostname_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + if (targetRefBuilder_ == null) { + targetRef_ = null; + } else { + targetRefBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableDeprecatedTopology().clear(); + nodeName_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + zone_ = ""; + bitField0_ = (bitField0_ & ~0x00000040); + if (hintsBuilder_ == null) { + hints_ = null; + } else { + hintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_Endpoint_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.Endpoint getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Discovery.Endpoint.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.Endpoint build() { + io.kubernetes.client.proto.V1Discovery.Endpoint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.Endpoint buildPartial() { + io.kubernetes.client.proto.V1Discovery.Endpoint result = new io.kubernetes.client.proto.V1Discovery.Endpoint(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + addresses_ = addresses_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.addresses_ = addresses_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000001; + } + if (conditionsBuilder_ == null) { + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + result.hostname_ = hostname_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000004; + } + if (targetRefBuilder_ == null) { + result.targetRef_ = targetRef_; + } else { + result.targetRef_ = targetRefBuilder_.build(); + } + result.deprecatedTopology_ = internalGetDeprecatedTopology(); + result.deprecatedTopology_.makeImmutable(); + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000008; + } + result.nodeName_ = nodeName_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000010; + } + result.zone_ = zone_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000020; + } + if (hintsBuilder_ == null) { + result.hints_ = hints_; + } else { + result.hints_ = hintsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Discovery.Endpoint) { + return mergeFrom((io.kubernetes.client.proto.V1Discovery.Endpoint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Discovery.Endpoint other) { + if (other == io.kubernetes.client.proto.V1Discovery.Endpoint.getDefaultInstance()) return this; + if (!other.addresses_.isEmpty()) { + if (addresses_.isEmpty()) { + addresses_ = other.addresses_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAddressesIsMutable(); + addresses_.addAll(other.addresses_); + } + onChanged(); + } + if (other.hasConditions()) { + mergeConditions(other.getConditions()); + } + if (other.hasHostname()) { + bitField0_ |= 0x00000004; + hostname_ = other.hostname_; + onChanged(); + } + if (other.hasTargetRef()) { + mergeTargetRef(other.getTargetRef()); + } + internalGetMutableDeprecatedTopology().mergeFrom( + other.internalGetDeprecatedTopology()); + if (other.hasNodeName()) { + bitField0_ |= 0x00000020; + nodeName_ = other.nodeName_; + onChanged(); + } + if (other.hasZone()) { + bitField0_ |= 0x00000040; + zone_ = other.zone_; + onChanged(); + } + if (other.hasHints()) { + mergeHints(other.getHints()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Discovery.Endpoint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Discovery.Endpoint) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureAddressesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + addresses_ = new com.google.protobuf.LazyStringArrayList(addresses_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+       * the values are IP addresses in canonical form. The syntax and semantics of
+       * other addressType values are not defined. This must contain at least one
+       * address but no more than 100. EndpointSlices generated by the EndpointSlice
+       * controller will always have exactly 1 address. No semantics are defined for
+       * additional addresses beyond the first, and kube-proxy does not look at them.
+       * +listType=set
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+       * 
+ * + * repeated string addresses = 1; + */ + public com.google.protobuf.ProtocolStringList + getAddressesList() { + return addresses_.getUnmodifiableView(); + } + /** + *
+       * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+       * the values are IP addresses in canonical form. The syntax and semantics of
+       * other addressType values are not defined. This must contain at least one
+       * address but no more than 100. EndpointSlices generated by the EndpointSlice
+       * controller will always have exactly 1 address. No semantics are defined for
+       * additional addresses beyond the first, and kube-proxy does not look at them.
+       * +listType=set
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+       * 
+ * + * repeated string addresses = 1; + */ + public int getAddressesCount() { + return addresses_.size(); + } + /** + *
+       * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+       * the values are IP addresses in canonical form. The syntax and semantics of
+       * other addressType values are not defined. This must contain at least one
+       * address but no more than 100. EndpointSlices generated by the EndpointSlice
+       * controller will always have exactly 1 address. No semantics are defined for
+       * additional addresses beyond the first, and kube-proxy does not look at them.
+       * +listType=set
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+       * 
+ * + * repeated string addresses = 1; + */ + public java.lang.String getAddresses(int index) { + return addresses_.get(index); + } + /** + *
+       * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+       * the values are IP addresses in canonical form. The syntax and semantics of
+       * other addressType values are not defined. This must contain at least one
+       * address but no more than 100. EndpointSlices generated by the EndpointSlice
+       * controller will always have exactly 1 address. No semantics are defined for
+       * additional addresses beyond the first, and kube-proxy does not look at them.
+       * +listType=set
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+       * 
+ * + * repeated string addresses = 1; + */ + public com.google.protobuf.ByteString + getAddressesBytes(int index) { + return addresses_.getByteString(index); + } + /** + *
+       * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+       * the values are IP addresses in canonical form. The syntax and semantics of
+       * other addressType values are not defined. This must contain at least one
+       * address but no more than 100. EndpointSlices generated by the EndpointSlice
+       * controller will always have exactly 1 address. No semantics are defined for
+       * additional addresses beyond the first, and kube-proxy does not look at them.
+       * +listType=set
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+       * 
+ * + * repeated string addresses = 1; + */ + public Builder setAddresses( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+       * the values are IP addresses in canonical form. The syntax and semantics of
+       * other addressType values are not defined. This must contain at least one
+       * address but no more than 100. EndpointSlices generated by the EndpointSlice
+       * controller will always have exactly 1 address. No semantics are defined for
+       * additional addresses beyond the first, and kube-proxy does not look at them.
+       * +listType=set
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+       * 
+ * + * repeated string addresses = 1; + */ + public Builder addAddresses( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + return this; + } + /** + *
+       * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+       * the values are IP addresses in canonical form. The syntax and semantics of
+       * other addressType values are not defined. This must contain at least one
+       * address but no more than 100. EndpointSlices generated by the EndpointSlice
+       * controller will always have exactly 1 address. No semantics are defined for
+       * additional addresses beyond the first, and kube-proxy does not look at them.
+       * +listType=set
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+       * 
+ * + * repeated string addresses = 1; + */ + public Builder addAllAddresses( + java.lang.Iterable values) { + ensureAddressesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, addresses_); + onChanged(); + return this; + } + /** + *
+       * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+       * the values are IP addresses in canonical form. The syntax and semantics of
+       * other addressType values are not defined. This must contain at least one
+       * address but no more than 100. EndpointSlices generated by the EndpointSlice
+       * controller will always have exactly 1 address. No semantics are defined for
+       * additional addresses beyond the first, and kube-proxy does not look at them.
+       * +listType=set
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+       * 
+ * + * repeated string addresses = 1; + */ + public Builder clearAddresses() { + addresses_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * addresses of this endpoint. For EndpointSlices of addressType "IPv4" or "IPv6",
+       * the values are IP addresses in canonical form. The syntax and semantics of
+       * other addressType values are not defined. This must contain at least one
+       * address but no more than 100. EndpointSlices generated by the EndpointSlice
+       * controller will always have exactly 1 address. No semantics are defined for
+       * additional addresses beyond the first, and kube-proxy does not look at them.
+       * +listType=set
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=100
+       * 
+ * + * repeated string addresses = 1; + */ + public Builder addAddressesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddressesIsMutable(); + addresses_.add(value); + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1Discovery.EndpointConditions conditions_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.EndpointConditions, io.kubernetes.client.proto.V1Discovery.EndpointConditions.Builder, io.kubernetes.client.proto.V1Discovery.EndpointConditionsOrBuilder> conditionsBuilder_; + /** + *
+       * conditions contains information about the current status of the endpoint.
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointConditions conditions = 2; + */ + public boolean hasConditions() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * conditions contains information about the current status of the endpoint.
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointConditions conditions = 2; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointConditions getConditions() { + if (conditionsBuilder_ == null) { + return conditions_ == null ? io.kubernetes.client.proto.V1Discovery.EndpointConditions.getDefaultInstance() : conditions_; + } else { + return conditionsBuilder_.getMessage(); + } + } + /** + *
+       * conditions contains information about the current status of the endpoint.
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointConditions conditions = 2; + */ + public Builder setConditions(io.kubernetes.client.proto.V1Discovery.EndpointConditions value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conditions_ = value; + onChanged(); + } else { + conditionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * conditions contains information about the current status of the endpoint.
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointConditions conditions = 2; + */ + public Builder setConditions( + io.kubernetes.client.proto.V1Discovery.EndpointConditions.Builder builderForValue) { + if (conditionsBuilder_ == null) { + conditions_ = builderForValue.build(); + onChanged(); + } else { + conditionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * conditions contains information about the current status of the endpoint.
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointConditions conditions = 2; + */ + public Builder mergeConditions(io.kubernetes.client.proto.V1Discovery.EndpointConditions value) { + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + conditions_ != null && + conditions_ != io.kubernetes.client.proto.V1Discovery.EndpointConditions.getDefaultInstance()) { + conditions_ = + io.kubernetes.client.proto.V1Discovery.EndpointConditions.newBuilder(conditions_).mergeFrom(value).buildPartial(); + } else { + conditions_ = value; + } + onChanged(); + } else { + conditionsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * conditions contains information about the current status of the endpoint.
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointConditions conditions = 2; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = null; + onChanged(); + } else { + conditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * conditions contains information about the current status of the endpoint.
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointConditions conditions = 2; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointConditions.Builder getConditionsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getConditionsFieldBuilder().getBuilder(); + } + /** + *
+       * conditions contains information about the current status of the endpoint.
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointConditions conditions = 2; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointConditionsOrBuilder getConditionsOrBuilder() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilder(); + } else { + return conditions_ == null ? + io.kubernetes.client.proto.V1Discovery.EndpointConditions.getDefaultInstance() : conditions_; + } + } + /** + *
+       * conditions contains information about the current status of the endpoint.
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointConditions conditions = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.EndpointConditions, io.kubernetes.client.proto.V1Discovery.EndpointConditions.Builder, io.kubernetes.client.proto.V1Discovery.EndpointConditionsOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.EndpointConditions, io.kubernetes.client.proto.V1Discovery.EndpointConditions.Builder, io.kubernetes.client.proto.V1Discovery.EndpointConditionsOrBuilder>( + getConditions(), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private java.lang.Object 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.
+       * +optional
+       * 
+ * + * optional string hostname = 3; + */ + public boolean hasHostname() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * optional string hostname = 3; + */ + public java.lang.String getHostname() { + java.lang.Object ref = hostname_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + hostname_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * optional string hostname = 3; + */ + public com.google.protobuf.ByteString + getHostnameBytes() { + java.lang.Object ref = hostname_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hostname_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * optional string hostname = 3; + */ + public Builder setHostname( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + hostname_ = value; + onChanged(); + return this; + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * optional string hostname = 3; + */ + public Builder clearHostname() { + bitField0_ = (bitField0_ & ~0x00000004); + hostname_ = getDefaultInstance().getHostname(); + onChanged(); + return this; + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * optional string hostname = 3; + */ + public Builder setHostnameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + hostname_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1.ObjectReference targetRef_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> targetRefBuilder_; + /** + *
+       * targetRef is a reference to a Kubernetes object that represents this
+       * endpoint.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference targetRef = 4; + */ + public boolean hasTargetRef() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * targetRef is a reference to a Kubernetes object that represents this
+       * endpoint.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference targetRef = 4; + */ + public io.kubernetes.client.proto.V1.ObjectReference getTargetRef() { + if (targetRefBuilder_ == null) { + return targetRef_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : targetRef_; + } else { + return targetRefBuilder_.getMessage(); + } + } + /** + *
+       * targetRef is a reference to a Kubernetes object that represents this
+       * endpoint.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference targetRef = 4; + */ + public Builder setTargetRef(io.kubernetes.client.proto.V1.ObjectReference value) { + if (targetRefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetRef_ = value; + onChanged(); + } else { + targetRefBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * targetRef is a reference to a Kubernetes object that represents this
+       * endpoint.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference targetRef = 4; + */ + public Builder setTargetRef( + io.kubernetes.client.proto.V1.ObjectReference.Builder builderForValue) { + if (targetRefBuilder_ == null) { + targetRef_ = builderForValue.build(); + onChanged(); + } else { + targetRefBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * targetRef is a reference to a Kubernetes object that represents this
+       * endpoint.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference targetRef = 4; + */ + public Builder mergeTargetRef(io.kubernetes.client.proto.V1.ObjectReference value) { + if (targetRefBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + targetRef_ != null && + targetRef_ != io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance()) { + targetRef_ = + io.kubernetes.client.proto.V1.ObjectReference.newBuilder(targetRef_).mergeFrom(value).buildPartial(); + } else { + targetRef_ = value; + } + onChanged(); + } else { + targetRefBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * targetRef is a reference to a Kubernetes object that represents this
+       * endpoint.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference targetRef = 4; + */ + public Builder clearTargetRef() { + if (targetRefBuilder_ == null) { + targetRef_ = null; + onChanged(); + } else { + targetRefBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + *
+       * targetRef is a reference to a Kubernetes object that represents this
+       * endpoint.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference targetRef = 4; + */ + public io.kubernetes.client.proto.V1.ObjectReference.Builder getTargetRefBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getTargetRefFieldBuilder().getBuilder(); + } + /** + *
+       * targetRef is a reference to a Kubernetes object that represents this
+       * endpoint.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference targetRef = 4; + */ + public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getTargetRefOrBuilder() { + if (targetRefBuilder_ != null) { + return targetRefBuilder_.getMessageOrBuilder(); + } else { + return targetRef_ == null ? + io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : targetRef_; + } + } + /** + *
+       * targetRef is a reference to a Kubernetes object that represents this
+       * endpoint.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference targetRef = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> + getTargetRefFieldBuilder() { + if (targetRefBuilder_ == null) { + targetRefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder>( + getTargetRef(), + getParentForChildren(), + isClean()); + targetRef_ = null; + } + return targetRefBuilder_; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> deprecatedTopology_; + private com.google.protobuf.MapField + internalGetDeprecatedTopology() { + if (deprecatedTopology_ == null) { + return com.google.protobuf.MapField.emptyMapField( + DeprecatedTopologyDefaultEntryHolder.defaultEntry); + } + return deprecatedTopology_; + } + private com.google.protobuf.MapField + internalGetMutableDeprecatedTopology() { + onChanged();; + if (deprecatedTopology_ == null) { + deprecatedTopology_ = com.google.protobuf.MapField.newMapField( + DeprecatedTopologyDefaultEntryHolder.defaultEntry); + } + if (!deprecatedTopology_.isMutable()) { + deprecatedTopology_ = deprecatedTopology_.copy(); + } + return deprecatedTopology_; + } + + public int getDeprecatedTopologyCount() { + return internalGetDeprecatedTopology().getMap().size(); + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + + public boolean containsDeprecatedTopology( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetDeprecatedTopology().getMap().containsKey(key); + } + /** + * Use {@link #getDeprecatedTopologyMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getDeprecatedTopology() { + return getDeprecatedTopologyMap(); + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + + public java.util.Map getDeprecatedTopologyMap() { + return internalGetDeprecatedTopology().getMap(); + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + + public java.lang.String getDeprecatedTopologyOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDeprecatedTopology().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + + public java.lang.String getDeprecatedTopologyOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetDeprecatedTopology().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearDeprecatedTopology() { + internalGetMutableDeprecatedTopology().getMutableMap() + .clear(); + return this; + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + + public Builder removeDeprecatedTopology( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableDeprecatedTopology().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableDeprecatedTopology() { + return internalGetMutableDeprecatedTopology().getMutableMap(); + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + public Builder putDeprecatedTopology( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableDeprecatedTopology().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * map<string, string> deprecatedTopology = 5; + */ + + public Builder putAllDeprecatedTopology( + java.util.Map values) { + internalGetMutableDeprecatedTopology().getMutableMap() + .putAll(values); + return this; + } + + private java.lang.Object nodeName_ = ""; + /** + *
+       * nodeName represents the name of the Node hosting this endpoint. This can
+       * be used to determine endpoints local to a Node.
+       * +optional
+       * 
+ * + * optional string nodeName = 6; + */ + public boolean hasNodeName() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+       * nodeName represents the name of the Node hosting this endpoint. This can
+       * be used to determine endpoints local to a Node.
+       * +optional
+       * 
+ * + * optional string nodeName = 6; + */ + public java.lang.String getNodeName() { + java.lang.Object ref = nodeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + nodeName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * nodeName represents the name of the Node hosting this endpoint. This can
+       * be used to determine endpoints local to a Node.
+       * +optional
+       * 
+ * + * optional string nodeName = 6; + */ + public com.google.protobuf.ByteString + getNodeNameBytes() { + java.lang.Object ref = nodeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * nodeName represents the name of the Node hosting this endpoint. This can
+       * be used to determine endpoints local to a Node.
+       * +optional
+       * 
+ * + * optional string nodeName = 6; + */ + public Builder setNodeName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + nodeName_ = value; + onChanged(); + return this; + } + /** + *
+       * nodeName represents the name of the Node hosting this endpoint. This can
+       * be used to determine endpoints local to a Node.
+       * +optional
+       * 
+ * + * optional string nodeName = 6; + */ + public Builder clearNodeName() { + bitField0_ = (bitField0_ & ~0x00000020); + nodeName_ = getDefaultInstance().getNodeName(); + onChanged(); + return this; + } + /** + *
+       * nodeName represents the name of the Node hosting this endpoint. This can
+       * be used to determine endpoints local to a Node.
+       * +optional
+       * 
+ * + * optional string nodeName = 6; + */ + public Builder setNodeNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + nodeName_ = value; + onChanged(); + return this; + } + + private java.lang.Object zone_ = ""; + /** + *
+       * zone is the name of the Zone this endpoint exists in.
+       * +optional
+       * 
+ * + * optional string zone = 7; + */ + public boolean hasZone() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + *
+       * zone is the name of the Zone this endpoint exists in.
+       * +optional
+       * 
+ * + * optional string zone = 7; + */ + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + zone_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * zone is the name of the Zone this endpoint exists in.
+       * +optional
+       * 
+ * + * optional string zone = 7; + */ + public com.google.protobuf.ByteString + getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * zone is the name of the Zone this endpoint exists in.
+       * +optional
+       * 
+ * + * optional string zone = 7; + */ + public Builder setZone( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + zone_ = value; + onChanged(); + return this; + } + /** + *
+       * zone is the name of the Zone this endpoint exists in.
+       * +optional
+       * 
+ * + * optional string zone = 7; + */ + public Builder clearZone() { + bitField0_ = (bitField0_ & ~0x00000040); + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + *
+       * zone is the name of the Zone this endpoint exists in.
+       * +optional
+       * 
+ * + * optional string zone = 7; + */ + public Builder setZoneBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + zone_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1Discovery.EndpointHints hints_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.EndpointHints, io.kubernetes.client.proto.V1Discovery.EndpointHints.Builder, io.kubernetes.client.proto.V1Discovery.EndpointHintsOrBuilder> hintsBuilder_; + /** + *
+       * hints contains information associated with how an endpoint should be
+       * consumed.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointHints hints = 8; + */ + public boolean hasHints() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + *
+       * hints contains information associated with how an endpoint should be
+       * consumed.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointHints hints = 8; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointHints getHints() { + if (hintsBuilder_ == null) { + return hints_ == null ? io.kubernetes.client.proto.V1Discovery.EndpointHints.getDefaultInstance() : hints_; + } else { + return hintsBuilder_.getMessage(); + } + } + /** + *
+       * hints contains information associated with how an endpoint should be
+       * consumed.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointHints hints = 8; + */ + public Builder setHints(io.kubernetes.client.proto.V1Discovery.EndpointHints value) { + if (hintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hints_ = value; + onChanged(); + } else { + hintsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + return this; + } + /** + *
+       * hints contains information associated with how an endpoint should be
+       * consumed.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointHints hints = 8; + */ + public Builder setHints( + io.kubernetes.client.proto.V1Discovery.EndpointHints.Builder builderForValue) { + if (hintsBuilder_ == null) { + hints_ = builderForValue.build(); + onChanged(); + } else { + hintsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + return this; + } + /** + *
+       * hints contains information associated with how an endpoint should be
+       * consumed.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointHints hints = 8; + */ + public Builder mergeHints(io.kubernetes.client.proto.V1Discovery.EndpointHints value) { + if (hintsBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080) && + hints_ != null && + hints_ != io.kubernetes.client.proto.V1Discovery.EndpointHints.getDefaultInstance()) { + hints_ = + io.kubernetes.client.proto.V1Discovery.EndpointHints.newBuilder(hints_).mergeFrom(value).buildPartial(); + } else { + hints_ = value; + } + onChanged(); + } else { + hintsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + return this; + } + /** + *
+       * hints contains information associated with how an endpoint should be
+       * consumed.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointHints hints = 8; + */ + public Builder clearHints() { + if (hintsBuilder_ == null) { + hints_ = null; + onChanged(); + } else { + hintsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + /** + *
+       * hints contains information associated with how an endpoint should be
+       * consumed.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointHints hints = 8; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointHints.Builder getHintsBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getHintsFieldBuilder().getBuilder(); + } + /** + *
+       * hints contains information associated with how an endpoint should be
+       * consumed.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointHints hints = 8; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointHintsOrBuilder getHintsOrBuilder() { + if (hintsBuilder_ != null) { + return hintsBuilder_.getMessageOrBuilder(); + } else { + return hints_ == null ? + io.kubernetes.client.proto.V1Discovery.EndpointHints.getDefaultInstance() : hints_; + } + } + /** + *
+       * hints contains information associated with how an endpoint should be
+       * consumed.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.discovery.v1.EndpointHints hints = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.EndpointHints, io.kubernetes.client.proto.V1Discovery.EndpointHints.Builder, io.kubernetes.client.proto.V1Discovery.EndpointHintsOrBuilder> + getHintsFieldBuilder() { + if (hintsBuilder_ == null) { + hintsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.EndpointHints, io.kubernetes.client.proto.V1Discovery.EndpointHints.Builder, io.kubernetes.client.proto.V1Discovery.EndpointHintsOrBuilder>( + getHints(), + getParentForChildren(), + isClean()); + hints_ = null; + } + return hintsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.discovery.v1.Endpoint) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.discovery.v1.Endpoint) + private static final io.kubernetes.client.proto.V1Discovery.Endpoint DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Discovery.Endpoint(); + } + + public static io.kubernetes.client.proto.V1Discovery.Endpoint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Endpoint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Endpoint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.Endpoint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EndpointConditionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.discovery.v1.EndpointConditions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ready indicates that this endpoint is ready to receive traffic,
+     * according to whatever system is managing the endpoint. A nil value
+     * should be interpreted as "true". In general, an endpoint should be
+     * marked ready if it is serving and not terminating, though this can
+     * be overridden in some cases, such as when the associated Service has
+     * set the publishNotReadyAddresses flag.
+     * +optional
+     * 
+ * + * optional bool ready = 1; + */ + boolean hasReady(); + /** + *
+     * ready indicates that this endpoint is ready to receive traffic,
+     * according to whatever system is managing the endpoint. A nil value
+     * should be interpreted as "true". In general, an endpoint should be
+     * marked ready if it is serving and not terminating, though this can
+     * be overridden in some cases, such as when the associated Service has
+     * set the publishNotReadyAddresses flag.
+     * +optional
+     * 
+ * + * optional bool ready = 1; + */ + boolean getReady(); + + /** + *
+     * serving indicates that this endpoint is able to receive traffic,
+     * according to whatever system is managing the endpoint. For endpoints
+     * backed by pods, the EndpointSlice controller will mark the endpoint
+     * as serving if the pod's Ready condition is True. A nil value should be
+     * interpreted as "true".
+     * +optional
+     * 
+ * + * optional bool serving = 2; + */ + boolean hasServing(); + /** + *
+     * serving indicates that this endpoint is able to receive traffic,
+     * according to whatever system is managing the endpoint. For endpoints
+     * backed by pods, the EndpointSlice controller will mark the endpoint
+     * as serving if the pod's Ready condition is True. A nil value should be
+     * interpreted as "true".
+     * +optional
+     * 
+ * + * optional bool serving = 2; + */ + boolean getServing(); + + /** + *
+     * terminating indicates that this endpoint is terminating. A nil value
+     * should be interpreted as "false".
+     * +optional
+     * 
+ * + * optional bool terminating = 3; + */ + boolean hasTerminating(); + /** + *
+     * terminating indicates that this endpoint is terminating. A nil value
+     * should be interpreted as "false".
+     * +optional
+     * 
+ * + * optional bool terminating = 3; + */ + boolean getTerminating(); + } + /** + *
+   * EndpointConditions represents the current condition of an endpoint.
+   * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.EndpointConditions} + */ + public static final class EndpointConditions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.discovery.v1.EndpointConditions) + EndpointConditionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use EndpointConditions.newBuilder() to construct. + private EndpointConditions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EndpointConditions() { + ready_ = false; + serving_ = false; + terminating_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EndpointConditions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + bitField0_ |= 0x00000001; + ready_ = input.readBool(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + serving_ = input.readBool(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + terminating_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointConditions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointConditions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.EndpointConditions.class, io.kubernetes.client.proto.V1Discovery.EndpointConditions.Builder.class); + } + + private int bitField0_; + public static final int READY_FIELD_NUMBER = 1; + private boolean ready_; + /** + *
+     * ready indicates that this endpoint is ready to receive traffic,
+     * according to whatever system is managing the endpoint. A nil value
+     * should be interpreted as "true". In general, an endpoint should be
+     * marked ready if it is serving and not terminating, though this can
+     * be overridden in some cases, such as when the associated Service has
+     * set the publishNotReadyAddresses flag.
+     * +optional
+     * 
+ * + * optional bool ready = 1; + */ + public boolean hasReady() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * ready indicates that this endpoint is ready to receive traffic,
+     * according to whatever system is managing the endpoint. A nil value
+     * should be interpreted as "true". In general, an endpoint should be
+     * marked ready if it is serving and not terminating, though this can
+     * be overridden in some cases, such as when the associated Service has
+     * set the publishNotReadyAddresses flag.
+     * +optional
+     * 
+ * + * optional bool ready = 1; + */ + public boolean getReady() { + return ready_; + } + + public static final int SERVING_FIELD_NUMBER = 2; + private boolean serving_; + /** + *
+     * serving indicates that this endpoint is able to receive traffic,
+     * according to whatever system is managing the endpoint. For endpoints
+     * backed by pods, the EndpointSlice controller will mark the endpoint
+     * as serving if the pod's Ready condition is True. A nil value should be
+     * interpreted as "true".
+     * +optional
+     * 
+ * + * optional bool serving = 2; + */ + public boolean hasServing() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * serving indicates that this endpoint is able to receive traffic,
+     * according to whatever system is managing the endpoint. For endpoints
+     * backed by pods, the EndpointSlice controller will mark the endpoint
+     * as serving if the pod's Ready condition is True. A nil value should be
+     * interpreted as "true".
+     * +optional
+     * 
+ * + * optional bool serving = 2; + */ + public boolean getServing() { + return serving_; + } + + public static final int TERMINATING_FIELD_NUMBER = 3; + private boolean terminating_; + /** + *
+     * terminating indicates that this endpoint is terminating. A nil value
+     * should be interpreted as "false".
+     * +optional
+     * 
+ * + * optional bool terminating = 3; + */ + public boolean hasTerminating() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * terminating indicates that this endpoint is terminating. A nil value
+     * should be interpreted as "false".
+     * +optional
+     * 
+ * + * optional bool terminating = 3; + */ + public boolean getTerminating() { + return terminating_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBool(1, ready_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBool(2, serving_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBool(3, terminating_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, ready_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, serving_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, terminating_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Discovery.EndpointConditions)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Discovery.EndpointConditions other = (io.kubernetes.client.proto.V1Discovery.EndpointConditions) obj; + + boolean result = true; + result = result && (hasReady() == other.hasReady()); + if (hasReady()) { + result = result && (getReady() + == other.getReady()); + } + result = result && (hasServing() == other.hasServing()); + if (hasServing()) { + result = result && (getServing() + == other.getServing()); + } + result = result && (hasTerminating() == other.hasTerminating()); + if (hasTerminating()) { + result = result && (getTerminating() + == other.getTerminating()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasReady()) { + hash = (37 * hash) + READY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getReady()); + } + if (hasServing()) { + hash = (37 * hash) + SERVING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getServing()); + } + if (hasTerminating()) { + hash = (37 * hash) + TERMINATING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getTerminating()); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Discovery.EndpointConditions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointConditions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointConditions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointConditions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointConditions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointConditions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointConditions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointConditions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointConditions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointConditions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointConditions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointConditions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Discovery.EndpointConditions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * EndpointConditions represents the current condition of an endpoint.
+     * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.EndpointConditions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.discovery.v1.EndpointConditions) + io.kubernetes.client.proto.V1Discovery.EndpointConditionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointConditions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointConditions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.EndpointConditions.class, io.kubernetes.client.proto.V1Discovery.EndpointConditions.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Discovery.EndpointConditions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + ready_ = false; + bitField0_ = (bitField0_ & ~0x00000001); + serving_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + terminating_ = false; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointConditions_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointConditions getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Discovery.EndpointConditions.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointConditions build() { + io.kubernetes.client.proto.V1Discovery.EndpointConditions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointConditions buildPartial() { + io.kubernetes.client.proto.V1Discovery.EndpointConditions result = new io.kubernetes.client.proto.V1Discovery.EndpointConditions(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.ready_ = ready_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.serving_ = serving_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.terminating_ = terminating_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Discovery.EndpointConditions) { + return mergeFrom((io.kubernetes.client.proto.V1Discovery.EndpointConditions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Discovery.EndpointConditions other) { + if (other == io.kubernetes.client.proto.V1Discovery.EndpointConditions.getDefaultInstance()) return this; + if (other.hasReady()) { + setReady(other.getReady()); + } + if (other.hasServing()) { + setServing(other.getServing()); + } + if (other.hasTerminating()) { + setTerminating(other.getTerminating()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Discovery.EndpointConditions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Discovery.EndpointConditions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private boolean ready_ ; + /** + *
+       * ready indicates that this endpoint is ready to receive traffic,
+       * according to whatever system is managing the endpoint. A nil value
+       * should be interpreted as "true". In general, an endpoint should be
+       * marked ready if it is serving and not terminating, though this can
+       * be overridden in some cases, such as when the associated Service has
+       * set the publishNotReadyAddresses flag.
+       * +optional
+       * 
+ * + * optional bool ready = 1; + */ + public boolean hasReady() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * ready indicates that this endpoint is ready to receive traffic,
+       * according to whatever system is managing the endpoint. A nil value
+       * should be interpreted as "true". In general, an endpoint should be
+       * marked ready if it is serving and not terminating, though this can
+       * be overridden in some cases, such as when the associated Service has
+       * set the publishNotReadyAddresses flag.
+       * +optional
+       * 
+ * + * optional bool ready = 1; + */ + public boolean getReady() { + return ready_; + } + /** + *
+       * ready indicates that this endpoint is ready to receive traffic,
+       * according to whatever system is managing the endpoint. A nil value
+       * should be interpreted as "true". In general, an endpoint should be
+       * marked ready if it is serving and not terminating, though this can
+       * be overridden in some cases, such as when the associated Service has
+       * set the publishNotReadyAddresses flag.
+       * +optional
+       * 
+ * + * optional bool ready = 1; + */ + public Builder setReady(boolean value) { + bitField0_ |= 0x00000001; + ready_ = value; + onChanged(); + return this; + } + /** + *
+       * ready indicates that this endpoint is ready to receive traffic,
+       * according to whatever system is managing the endpoint. A nil value
+       * should be interpreted as "true". In general, an endpoint should be
+       * marked ready if it is serving and not terminating, though this can
+       * be overridden in some cases, such as when the associated Service has
+       * set the publishNotReadyAddresses flag.
+       * +optional
+       * 
+ * + * optional bool ready = 1; + */ + public Builder clearReady() { + bitField0_ = (bitField0_ & ~0x00000001); + ready_ = false; + onChanged(); + return this; + } + + private boolean serving_ ; + /** + *
+       * serving indicates that this endpoint is able to receive traffic,
+       * according to whatever system is managing the endpoint. For endpoints
+       * backed by pods, the EndpointSlice controller will mark the endpoint
+       * as serving if the pod's Ready condition is True. A nil value should be
+       * interpreted as "true".
+       * +optional
+       * 
+ * + * optional bool serving = 2; + */ + public boolean hasServing() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * serving indicates that this endpoint is able to receive traffic,
+       * according to whatever system is managing the endpoint. For endpoints
+       * backed by pods, the EndpointSlice controller will mark the endpoint
+       * as serving if the pod's Ready condition is True. A nil value should be
+       * interpreted as "true".
+       * +optional
+       * 
+ * + * optional bool serving = 2; + */ + public boolean getServing() { + return serving_; + } + /** + *
+       * serving indicates that this endpoint is able to receive traffic,
+       * according to whatever system is managing the endpoint. For endpoints
+       * backed by pods, the EndpointSlice controller will mark the endpoint
+       * as serving if the pod's Ready condition is True. A nil value should be
+       * interpreted as "true".
+       * +optional
+       * 
+ * + * optional bool serving = 2; + */ + public Builder setServing(boolean value) { + bitField0_ |= 0x00000002; + serving_ = value; + onChanged(); + return this; + } + /** + *
+       * serving indicates that this endpoint is able to receive traffic,
+       * according to whatever system is managing the endpoint. For endpoints
+       * backed by pods, the EndpointSlice controller will mark the endpoint
+       * as serving if the pod's Ready condition is True. A nil value should be
+       * interpreted as "true".
+       * +optional
+       * 
+ * + * optional bool serving = 2; + */ + public Builder clearServing() { + bitField0_ = (bitField0_ & ~0x00000002); + serving_ = false; + onChanged(); + return this; + } + + private boolean terminating_ ; + /** + *
+       * terminating indicates that this endpoint is terminating. A nil value
+       * should be interpreted as "false".
+       * +optional
+       * 
+ * + * optional bool terminating = 3; + */ + public boolean hasTerminating() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * terminating indicates that this endpoint is terminating. A nil value
+       * should be interpreted as "false".
+       * +optional
+       * 
+ * + * optional bool terminating = 3; + */ + public boolean getTerminating() { + return terminating_; + } + /** + *
+       * terminating indicates that this endpoint is terminating. A nil value
+       * should be interpreted as "false".
+       * +optional
+       * 
+ * + * optional bool terminating = 3; + */ + public Builder setTerminating(boolean value) { + bitField0_ |= 0x00000004; + terminating_ = value; + onChanged(); + return this; + } + /** + *
+       * terminating indicates that this endpoint is terminating. A nil value
+       * should be interpreted as "false".
+       * +optional
+       * 
+ * + * optional bool terminating = 3; + */ + public Builder clearTerminating() { + bitField0_ = (bitField0_ & ~0x00000004); + terminating_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.discovery.v1.EndpointConditions) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.discovery.v1.EndpointConditions) + private static final io.kubernetes.client.proto.V1Discovery.EndpointConditions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Discovery.EndpointConditions(); + } + + public static io.kubernetes.client.proto.V1Discovery.EndpointConditions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndpointConditions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EndpointConditions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointConditions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EndpointHintsOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.discovery.v1.EndpointHints) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * forZones indicates the zone(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + java.util.List + getForZonesList(); + /** + *
+     * forZones indicates the zone(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + io.kubernetes.client.proto.V1Discovery.ForZone getForZones(int index); + /** + *
+     * forZones indicates the zone(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + int getForZonesCount(); + /** + *
+     * forZones indicates the zone(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + java.util.List + getForZonesOrBuilderList(); + /** + *
+     * forZones indicates the zone(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + io.kubernetes.client.proto.V1Discovery.ForZoneOrBuilder getForZonesOrBuilder( + int index); + + /** + *
+     * forNodes indicates the node(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + java.util.List + getForNodesList(); + /** + *
+     * forNodes indicates the node(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + io.kubernetes.client.proto.V1Discovery.ForNode getForNodes(int index); + /** + *
+     * forNodes indicates the node(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + int getForNodesCount(); + /** + *
+     * forNodes indicates the node(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + java.util.List + getForNodesOrBuilderList(); + /** + *
+     * forNodes indicates the node(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + io.kubernetes.client.proto.V1Discovery.ForNodeOrBuilder getForNodesOrBuilder( + int index); + } + /** + *
+   * EndpointHints provides hints describing how an endpoint should be consumed.
+   * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.EndpointHints} + */ + public static final class EndpointHints extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.discovery.v1.EndpointHints) + EndpointHintsOrBuilder { + private static final long serialVersionUID = 0L; + // Use EndpointHints.newBuilder() to construct. + private EndpointHints(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EndpointHints() { + forZones_ = java.util.Collections.emptyList(); + forNodes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EndpointHints( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + forZones_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + forZones_.add( + input.readMessage(io.kubernetes.client.proto.V1Discovery.ForZone.PARSER, extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + forNodes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + forNodes_.add( + input.readMessage(io.kubernetes.client.proto.V1Discovery.ForNode.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + forZones_ = java.util.Collections.unmodifiableList(forZones_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + forNodes_ = java.util.Collections.unmodifiableList(forNodes_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointHints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointHints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.EndpointHints.class, io.kubernetes.client.proto.V1Discovery.EndpointHints.Builder.class); + } + + public static final int FORZONES_FIELD_NUMBER = 1; + private java.util.List forZones_; + /** + *
+     * forZones indicates the zone(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public java.util.List getForZonesList() { + return forZones_; + } + /** + *
+     * forZones indicates the zone(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public java.util.List + getForZonesOrBuilderList() { + return forZones_; + } + /** + *
+     * forZones indicates the zone(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public int getForZonesCount() { + return forZones_.size(); + } + /** + *
+     * forZones indicates the zone(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public io.kubernetes.client.proto.V1Discovery.ForZone getForZones(int index) { + return forZones_.get(index); + } + /** + *
+     * forZones indicates the zone(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public io.kubernetes.client.proto.V1Discovery.ForZoneOrBuilder getForZonesOrBuilder( + int index) { + return forZones_.get(index); + } + + public static final int FORNODES_FIELD_NUMBER = 2; + private java.util.List forNodes_; + /** + *
+     * forNodes indicates the node(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public java.util.List getForNodesList() { + return forNodes_; + } + /** + *
+     * forNodes indicates the node(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public java.util.List + getForNodesOrBuilderList() { + return forNodes_; + } + /** + *
+     * forNodes indicates the node(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public int getForNodesCount() { + return forNodes_.size(); + } + /** + *
+     * forNodes indicates the node(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public io.kubernetes.client.proto.V1Discovery.ForNode getForNodes(int index) { + return forNodes_.get(index); + } + /** + *
+     * forNodes indicates the node(s) this endpoint should be consumed by when
+     * using topology aware routing. May contain a maximum of 8 entries.
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public io.kubernetes.client.proto.V1Discovery.ForNodeOrBuilder getForNodesOrBuilder( + int index) { + return forNodes_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < forZones_.size(); i++) { + output.writeMessage(1, forZones_.get(i)); + } + for (int i = 0; i < forNodes_.size(); i++) { + output.writeMessage(2, forNodes_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < forZones_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, forZones_.get(i)); + } + for (int i = 0; i < forNodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, forNodes_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Discovery.EndpointHints)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Discovery.EndpointHints other = (io.kubernetes.client.proto.V1Discovery.EndpointHints) obj; + + boolean result = true; + result = result && getForZonesList() + .equals(other.getForZonesList()); + result = result && getForNodesList() + .equals(other.getForNodesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getForZonesCount() > 0) { + hash = (37 * hash) + FORZONES_FIELD_NUMBER; + hash = (53 * hash) + getForZonesList().hashCode(); + } + if (getForNodesCount() > 0) { + hash = (37 * hash) + FORNODES_FIELD_NUMBER; + hash = (53 * hash) + getForNodesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Discovery.EndpointHints parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointHints parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointHints parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointHints parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointHints parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointHints parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointHints parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointHints parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointHints parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointHints parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointHints parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointHints parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Discovery.EndpointHints prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * EndpointHints provides hints describing how an endpoint should be consumed.
+     * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.EndpointHints} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.discovery.v1.EndpointHints) + io.kubernetes.client.proto.V1Discovery.EndpointHintsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointHints_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointHints_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.EndpointHints.class, io.kubernetes.client.proto.V1Discovery.EndpointHints.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Discovery.EndpointHints.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getForZonesFieldBuilder(); + getForNodesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (forZonesBuilder_ == null) { + forZones_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + forZonesBuilder_.clear(); + } + if (forNodesBuilder_ == null) { + forNodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + forNodesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointHints_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointHints getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Discovery.EndpointHints.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointHints build() { + io.kubernetes.client.proto.V1Discovery.EndpointHints result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointHints buildPartial() { + io.kubernetes.client.proto.V1Discovery.EndpointHints result = new io.kubernetes.client.proto.V1Discovery.EndpointHints(this); + int from_bitField0_ = bitField0_; + if (forZonesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + forZones_ = java.util.Collections.unmodifiableList(forZones_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.forZones_ = forZones_; + } else { + result.forZones_ = forZonesBuilder_.build(); + } + if (forNodesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + forNodes_ = java.util.Collections.unmodifiableList(forNodes_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.forNodes_ = forNodes_; + } else { + result.forNodes_ = forNodesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Discovery.EndpointHints) { + return mergeFrom((io.kubernetes.client.proto.V1Discovery.EndpointHints)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Discovery.EndpointHints other) { + if (other == io.kubernetes.client.proto.V1Discovery.EndpointHints.getDefaultInstance()) return this; + if (forZonesBuilder_ == null) { + if (!other.forZones_.isEmpty()) { + if (forZones_.isEmpty()) { + forZones_ = other.forZones_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureForZonesIsMutable(); + forZones_.addAll(other.forZones_); + } + onChanged(); + } + } else { + if (!other.forZones_.isEmpty()) { + if (forZonesBuilder_.isEmpty()) { + forZonesBuilder_.dispose(); + forZonesBuilder_ = null; + forZones_ = other.forZones_; + bitField0_ = (bitField0_ & ~0x00000001); + forZonesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getForZonesFieldBuilder() : null; + } else { + forZonesBuilder_.addAllMessages(other.forZones_); + } + } + } + if (forNodesBuilder_ == null) { + if (!other.forNodes_.isEmpty()) { + if (forNodes_.isEmpty()) { + forNodes_ = other.forNodes_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureForNodesIsMutable(); + forNodes_.addAll(other.forNodes_); + } + onChanged(); + } + } else { + if (!other.forNodes_.isEmpty()) { + if (forNodesBuilder_.isEmpty()) { + forNodesBuilder_.dispose(); + forNodesBuilder_ = null; + forNodes_ = other.forNodes_; + bitField0_ = (bitField0_ & ~0x00000002); + forNodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getForNodesFieldBuilder() : null; + } else { + forNodesBuilder_.addAllMessages(other.forNodes_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Discovery.EndpointHints parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Discovery.EndpointHints) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List forZones_ = + java.util.Collections.emptyList(); + private void ensureForZonesIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + forZones_ = new java.util.ArrayList(forZones_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.ForZone, io.kubernetes.client.proto.V1Discovery.ForZone.Builder, io.kubernetes.client.proto.V1Discovery.ForZoneOrBuilder> forZonesBuilder_; + + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public java.util.List getForZonesList() { + if (forZonesBuilder_ == null) { + return java.util.Collections.unmodifiableList(forZones_); + } else { + return forZonesBuilder_.getMessageList(); + } + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public int getForZonesCount() { + if (forZonesBuilder_ == null) { + return forZones_.size(); + } else { + return forZonesBuilder_.getCount(); + } + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public io.kubernetes.client.proto.V1Discovery.ForZone getForZones(int index) { + if (forZonesBuilder_ == null) { + return forZones_.get(index); + } else { + return forZonesBuilder_.getMessage(index); + } + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public Builder setForZones( + int index, io.kubernetes.client.proto.V1Discovery.ForZone value) { + if (forZonesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureForZonesIsMutable(); + forZones_.set(index, value); + onChanged(); + } else { + forZonesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public Builder setForZones( + int index, io.kubernetes.client.proto.V1Discovery.ForZone.Builder builderForValue) { + if (forZonesBuilder_ == null) { + ensureForZonesIsMutable(); + forZones_.set(index, builderForValue.build()); + onChanged(); + } else { + forZonesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public Builder addForZones(io.kubernetes.client.proto.V1Discovery.ForZone value) { + if (forZonesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureForZonesIsMutable(); + forZones_.add(value); + onChanged(); + } else { + forZonesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public Builder addForZones( + int index, io.kubernetes.client.proto.V1Discovery.ForZone value) { + if (forZonesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureForZonesIsMutable(); + forZones_.add(index, value); + onChanged(); + } else { + forZonesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public Builder addForZones( + io.kubernetes.client.proto.V1Discovery.ForZone.Builder builderForValue) { + if (forZonesBuilder_ == null) { + ensureForZonesIsMutable(); + forZones_.add(builderForValue.build()); + onChanged(); + } else { + forZonesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public Builder addForZones( + int index, io.kubernetes.client.proto.V1Discovery.ForZone.Builder builderForValue) { + if (forZonesBuilder_ == null) { + ensureForZonesIsMutable(); + forZones_.add(index, builderForValue.build()); + onChanged(); + } else { + forZonesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public Builder addAllForZones( + java.lang.Iterable values) { + if (forZonesBuilder_ == null) { + ensureForZonesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, forZones_); + onChanged(); + } else { + forZonesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public Builder clearForZones() { + if (forZonesBuilder_ == null) { + forZones_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + forZonesBuilder_.clear(); + } + return this; + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public Builder removeForZones(int index) { + if (forZonesBuilder_ == null) { + ensureForZonesIsMutable(); + forZones_.remove(index); + onChanged(); + } else { + forZonesBuilder_.remove(index); + } + return this; + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public io.kubernetes.client.proto.V1Discovery.ForZone.Builder getForZonesBuilder( + int index) { + return getForZonesFieldBuilder().getBuilder(index); + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public io.kubernetes.client.proto.V1Discovery.ForZoneOrBuilder getForZonesOrBuilder( + int index) { + if (forZonesBuilder_ == null) { + return forZones_.get(index); } else { + return forZonesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public java.util.List + getForZonesOrBuilderList() { + if (forZonesBuilder_ != null) { + return forZonesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(forZones_); + } + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public io.kubernetes.client.proto.V1Discovery.ForZone.Builder addForZonesBuilder() { + return getForZonesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Discovery.ForZone.getDefaultInstance()); + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public io.kubernetes.client.proto.V1Discovery.ForZone.Builder addForZonesBuilder( + int index) { + return getForZonesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Discovery.ForZone.getDefaultInstance()); + } + /** + *
+       * forZones indicates the zone(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForZone forZones = 1; + */ + public java.util.List + getForZonesBuilderList() { + return getForZonesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.ForZone, io.kubernetes.client.proto.V1Discovery.ForZone.Builder, io.kubernetes.client.proto.V1Discovery.ForZoneOrBuilder> + getForZonesFieldBuilder() { + if (forZonesBuilder_ == null) { + forZonesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.ForZone, io.kubernetes.client.proto.V1Discovery.ForZone.Builder, io.kubernetes.client.proto.V1Discovery.ForZoneOrBuilder>( + forZones_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + forZones_ = null; + } + return forZonesBuilder_; + } + + private java.util.List forNodes_ = + java.util.Collections.emptyList(); + private void ensureForNodesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + forNodes_ = new java.util.ArrayList(forNodes_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.ForNode, io.kubernetes.client.proto.V1Discovery.ForNode.Builder, io.kubernetes.client.proto.V1Discovery.ForNodeOrBuilder> forNodesBuilder_; + + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public java.util.List getForNodesList() { + if (forNodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(forNodes_); + } else { + return forNodesBuilder_.getMessageList(); + } + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public int getForNodesCount() { + if (forNodesBuilder_ == null) { + return forNodes_.size(); + } else { + return forNodesBuilder_.getCount(); + } + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public io.kubernetes.client.proto.V1Discovery.ForNode getForNodes(int index) { + if (forNodesBuilder_ == null) { + return forNodes_.get(index); + } else { + return forNodesBuilder_.getMessage(index); + } + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public Builder setForNodes( + int index, io.kubernetes.client.proto.V1Discovery.ForNode value) { + if (forNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureForNodesIsMutable(); + forNodes_.set(index, value); + onChanged(); + } else { + forNodesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public Builder setForNodes( + int index, io.kubernetes.client.proto.V1Discovery.ForNode.Builder builderForValue) { + if (forNodesBuilder_ == null) { + ensureForNodesIsMutable(); + forNodes_.set(index, builderForValue.build()); + onChanged(); + } else { + forNodesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public Builder addForNodes(io.kubernetes.client.proto.V1Discovery.ForNode value) { + if (forNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureForNodesIsMutable(); + forNodes_.add(value); + onChanged(); + } else { + forNodesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public Builder addForNodes( + int index, io.kubernetes.client.proto.V1Discovery.ForNode value) { + if (forNodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureForNodesIsMutable(); + forNodes_.add(index, value); + onChanged(); + } else { + forNodesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public Builder addForNodes( + io.kubernetes.client.proto.V1Discovery.ForNode.Builder builderForValue) { + if (forNodesBuilder_ == null) { + ensureForNodesIsMutable(); + forNodes_.add(builderForValue.build()); + onChanged(); + } else { + forNodesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public Builder addForNodes( + int index, io.kubernetes.client.proto.V1Discovery.ForNode.Builder builderForValue) { + if (forNodesBuilder_ == null) { + ensureForNodesIsMutable(); + forNodes_.add(index, builderForValue.build()); + onChanged(); + } else { + forNodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public Builder addAllForNodes( + java.lang.Iterable values) { + if (forNodesBuilder_ == null) { + ensureForNodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, forNodes_); + onChanged(); + } else { + forNodesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public Builder clearForNodes() { + if (forNodesBuilder_ == null) { + forNodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + forNodesBuilder_.clear(); + } + return this; + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public Builder removeForNodes(int index) { + if (forNodesBuilder_ == null) { + ensureForNodesIsMutable(); + forNodes_.remove(index); + onChanged(); + } else { + forNodesBuilder_.remove(index); + } + return this; + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public io.kubernetes.client.proto.V1Discovery.ForNode.Builder getForNodesBuilder( + int index) { + return getForNodesFieldBuilder().getBuilder(index); + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public io.kubernetes.client.proto.V1Discovery.ForNodeOrBuilder getForNodesOrBuilder( + int index) { + if (forNodesBuilder_ == null) { + return forNodes_.get(index); } else { + return forNodesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public java.util.List + getForNodesOrBuilderList() { + if (forNodesBuilder_ != null) { + return forNodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(forNodes_); + } + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public io.kubernetes.client.proto.V1Discovery.ForNode.Builder addForNodesBuilder() { + return getForNodesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Discovery.ForNode.getDefaultInstance()); + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public io.kubernetes.client.proto.V1Discovery.ForNode.Builder addForNodesBuilder( + int index) { + return getForNodesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Discovery.ForNode.getDefaultInstance()); + } + /** + *
+       * forNodes indicates the node(s) this endpoint should be consumed by when
+       * using topology aware routing. May contain a maximum of 8 entries.
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.ForNode forNodes = 2; + */ + public java.util.List + getForNodesBuilderList() { + return getForNodesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.ForNode, io.kubernetes.client.proto.V1Discovery.ForNode.Builder, io.kubernetes.client.proto.V1Discovery.ForNodeOrBuilder> + getForNodesFieldBuilder() { + if (forNodesBuilder_ == null) { + forNodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.ForNode, io.kubernetes.client.proto.V1Discovery.ForNode.Builder, io.kubernetes.client.proto.V1Discovery.ForNodeOrBuilder>( + forNodes_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + forNodes_ = null; + } + return forNodesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.discovery.v1.EndpointHints) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.discovery.v1.EndpointHints) + private static final io.kubernetes.client.proto.V1Discovery.EndpointHints DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Discovery.EndpointHints(); + } + + public static io.kubernetes.client.proto.V1Discovery.EndpointHints getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndpointHints parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EndpointHints(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointHints getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EndpointPortOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.discovery.v1.EndpointPort) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * name represents the name of this port. All ports in an EndpointSlice must have a unique name.
+     * If the EndpointSlice is derived 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.
+     * 
+ * + * optional string name = 1; + */ + boolean hasName(); + /** + *
+     * name represents the name of this port. All ports in an EndpointSlice must have a unique name.
+     * If the EndpointSlice is derived 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.
+     * 
+ * + * optional string name = 1; + */ + java.lang.String getName(); + /** + *
+     * name represents the name of this port. All ports in an EndpointSlice must have a unique name.
+     * If the EndpointSlice is derived 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.
+     * 
+ * + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * protocol represents the IP protocol for this port.
+     * Must be UDP, TCP, or SCTP.
+     * Default is TCP.
+     * 
+ * + * optional string protocol = 2; + */ + boolean hasProtocol(); + /** + *
+     * protocol represents the IP protocol for this port.
+     * Must be UDP, TCP, or SCTP.
+     * Default is TCP.
+     * 
+ * + * optional string protocol = 2; + */ + java.lang.String getProtocol(); + /** + *
+     * protocol represents the IP protocol for this port.
+     * Must be UDP, TCP, or SCTP.
+     * Default is TCP.
+     * 
+ * + * optional string protocol = 2; + */ + com.google.protobuf.ByteString + getProtocolBytes(); + + /** + *
+     * port represents the port number of the endpoint.
+     * If the EndpointSlice is derived from a Kubernetes service, this must be set
+     * to the service's target port. EndpointSlices used for other purposes may have
+     * a nil port.
+     * 
+ * + * optional int32 port = 3; + */ + boolean hasPort(); + /** + *
+     * port represents the port number of the endpoint.
+     * If the EndpointSlice is derived from a Kubernetes service, this must be set
+     * to the service's target port. EndpointSlices used for other purposes may have
+     * a nil port.
+     * 
+ * + * optional int32 port = 3; + */ + int getPort(); + + /** + *
+     * The application protocol for this port.
+     * This is used as a hint for implementations to offer richer behavior for protocols that they understand.
+     * This field follows standard Kubernetes label syntax.
+     * Valid values are either:
+     * * Un-prefixed protocol names - reserved for IANA standard service names (as per
+     * RFC-6335 and https://www.iana.org/assignments/service-names).
+     * * Kubernetes-defined prefixed names:
+     *   * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
+     *   * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
+     *   * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
+     * * Other protocols should use implementation-defined prefixed names such as
+     * mycompany.com/my-custom-protocol.
+     * +optional
+     * 
+ * + * optional string appProtocol = 4; + */ + boolean hasAppProtocol(); + /** + *
+     * The application protocol for this port.
+     * This is used as a hint for implementations to offer richer behavior for protocols that they understand.
+     * This field follows standard Kubernetes label syntax.
+     * Valid values are either:
+     * * Un-prefixed protocol names - reserved for IANA standard service names (as per
+     * RFC-6335 and https://www.iana.org/assignments/service-names).
+     * * Kubernetes-defined prefixed names:
+     *   * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
+     *   * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
+     *   * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
+     * * Other protocols should use implementation-defined prefixed names such as
+     * mycompany.com/my-custom-protocol.
+     * +optional
+     * 
+ * + * optional string appProtocol = 4; + */ + java.lang.String getAppProtocol(); + /** + *
+     * The application protocol for this port.
+     * This is used as a hint for implementations to offer richer behavior for protocols that they understand.
+     * This field follows standard Kubernetes label syntax.
+     * Valid values are either:
+     * * Un-prefixed protocol names - reserved for IANA standard service names (as per
+     * RFC-6335 and https://www.iana.org/assignments/service-names).
+     * * Kubernetes-defined prefixed names:
+     *   * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
+     *   * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
+     *   * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
+     * * Other protocols should use implementation-defined prefixed names such as
+     * mycompany.com/my-custom-protocol.
+     * +optional
+     * 
+ * + * optional string appProtocol = 4; + */ + com.google.protobuf.ByteString + getAppProtocolBytes(); + } + /** + *
+   * EndpointPort represents a Port used by an EndpointSlice
+   * +structType=atomic
+   * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.EndpointPort} + */ + public static final class EndpointPort extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.discovery.v1.EndpointPort) + EndpointPortOrBuilder { + private static final long serialVersionUID = 0L; + // Use EndpointPort.newBuilder() to construct. + private EndpointPort(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EndpointPort() { + name_ = ""; + protocol_ = ""; + port_ = 0; + appProtocol_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EndpointPort( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + protocol_ = bs; + break; + } + case 24: { + bitField0_ |= 0x00000004; + port_ = input.readInt32(); + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + appProtocol_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointPort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointPort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.EndpointPort.class, io.kubernetes.client.proto.V1Discovery.EndpointPort.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * name represents the name of this port. All ports in an EndpointSlice must have a unique name.
+     * If the EndpointSlice is derived 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.
+     * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * name represents the name of this port. All ports in an EndpointSlice must have a unique name.
+     * If the EndpointSlice is derived 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.
+     * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + *
+     * name represents the name of this port. All ports in an EndpointSlice must have a unique name.
+     * If the EndpointSlice is derived 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.
+     * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROTOCOL_FIELD_NUMBER = 2; + private volatile java.lang.Object protocol_; + /** + *
+     * protocol represents the IP protocol for this port.
+     * Must be UDP, TCP, or SCTP.
+     * Default is TCP.
+     * 
+ * + * optional string protocol = 2; + */ + public boolean hasProtocol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * protocol represents the IP protocol for this port.
+     * Must be UDP, TCP, or SCTP.
+     * Default is TCP.
+     * 
+ * + * optional string protocol = 2; + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + protocol_ = s; + } + return s; + } + } + /** + *
+     * protocol represents the IP protocol for this port.
+     * Must be UDP, TCP, or SCTP.
+     * Default is TCP.
+     * 
+ * + * optional string protocol = 2; + */ + public com.google.protobuf.ByteString + getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PORT_FIELD_NUMBER = 3; + private int port_; + /** + *
+     * port represents the port number of the endpoint.
+     * If the EndpointSlice is derived from a Kubernetes service, this must be set
+     * to the service's target port. EndpointSlices used for other purposes may have
+     * a nil port.
+     * 
+ * + * optional int32 port = 3; + */ + public boolean hasPort() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * port represents the port number of the endpoint.
+     * If the EndpointSlice is derived from a Kubernetes service, this must be set
+     * to the service's target port. EndpointSlices used for other purposes may have
+     * a nil port.
+     * 
+ * + * optional int32 port = 3; + */ + public int getPort() { + return port_; + } + + public static final int APPPROTOCOL_FIELD_NUMBER = 4; + private volatile java.lang.Object appProtocol_; + /** + *
+     * The application protocol for this port.
+     * This is used as a hint for implementations to offer richer behavior for protocols that they understand.
+     * This field follows standard Kubernetes label syntax.
+     * Valid values are either:
+     * * Un-prefixed protocol names - reserved for IANA standard service names (as per
+     * RFC-6335 and https://www.iana.org/assignments/service-names).
+     * * Kubernetes-defined prefixed names:
+     *   * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
+     *   * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
+     *   * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
+     * * Other protocols should use implementation-defined prefixed names such as
+     * mycompany.com/my-custom-protocol.
+     * +optional
+     * 
+ * + * optional string appProtocol = 4; + */ + public boolean hasAppProtocol() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * The application protocol for this port.
+     * This is used as a hint for implementations to offer richer behavior for protocols that they understand.
+     * This field follows standard Kubernetes label syntax.
+     * Valid values are either:
+     * * Un-prefixed protocol names - reserved for IANA standard service names (as per
+     * RFC-6335 and https://www.iana.org/assignments/service-names).
+     * * Kubernetes-defined prefixed names:
+     *   * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
+     *   * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
+     *   * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
+     * * Other protocols should use implementation-defined prefixed names such as
+     * mycompany.com/my-custom-protocol.
+     * +optional
+     * 
+ * + * optional string appProtocol = 4; + */ + public java.lang.String getAppProtocol() { + java.lang.Object ref = appProtocol_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + appProtocol_ = s; + } + return s; + } + } + /** + *
+     * The application protocol for this port.
+     * This is used as a hint for implementations to offer richer behavior for protocols that they understand.
+     * This field follows standard Kubernetes label syntax.
+     * Valid values are either:
+     * * Un-prefixed protocol names - reserved for IANA standard service names (as per
+     * RFC-6335 and https://www.iana.org/assignments/service-names).
+     * * Kubernetes-defined prefixed names:
+     *   * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
+     *   * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
+     *   * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
+     * * Other protocols should use implementation-defined prefixed names such as
+     * mycompany.com/my-custom-protocol.
+     * +optional
+     * 
+ * + * optional string appProtocol = 4; + */ + public com.google.protobuf.ByteString + getAppProtocolBytes() { + java.lang.Object ref = appProtocol_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appProtocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, protocol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, port_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, appProtocol_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, protocol_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, port_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, appProtocol_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Discovery.EndpointPort)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Discovery.EndpointPort other = (io.kubernetes.client.proto.V1Discovery.EndpointPort) obj; + + boolean result = true; + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && (hasProtocol() == other.hasProtocol()); + if (hasProtocol()) { + result = result && getProtocol() + .equals(other.getProtocol()); + } + result = result && (hasPort() == other.hasPort()); + if (hasPort()) { + result = result && (getPort() + == other.getPort()); + } + result = result && (hasAppProtocol() == other.hasAppProtocol()); + if (hasAppProtocol()) { + result = result && getAppProtocol() + .equals(other.getAppProtocol()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasProtocol()) { + hash = (37 * hash) + PROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getProtocol().hashCode(); + } + if (hasPort()) { + hash = (37 * hash) + PORT_FIELD_NUMBER; + hash = (53 * hash) + getPort(); + } + if (hasAppProtocol()) { + hash = (37 * hash) + APPPROTOCOL_FIELD_NUMBER; + hash = (53 * hash) + getAppProtocol().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Discovery.EndpointPort parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointPort parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointPort parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointPort parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointPort parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointPort parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointPort parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointPort parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointPort parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointPort parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointPort parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointPort parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Discovery.EndpointPort prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * EndpointPort represents a Port used by an EndpointSlice
+     * +structType=atomic
+     * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.EndpointPort} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.discovery.v1.EndpointPort) + io.kubernetes.client.proto.V1Discovery.EndpointPortOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointPort_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointPort_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.EndpointPort.class, io.kubernetes.client.proto.V1Discovery.EndpointPort.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Discovery.EndpointPort.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + protocol_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + port_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + appProtocol_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointPort_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointPort getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Discovery.EndpointPort.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointPort build() { + io.kubernetes.client.proto.V1Discovery.EndpointPort result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointPort buildPartial() { + io.kubernetes.client.proto.V1Discovery.EndpointPort result = new io.kubernetes.client.proto.V1Discovery.EndpointPort(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.protocol_ = protocol_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.port_ = port_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.appProtocol_ = appProtocol_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Discovery.EndpointPort) { + return mergeFrom((io.kubernetes.client.proto.V1Discovery.EndpointPort)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Discovery.EndpointPort other) { + if (other == io.kubernetes.client.proto.V1Discovery.EndpointPort.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + if (other.hasProtocol()) { + bitField0_ |= 0x00000002; + protocol_ = other.protocol_; + onChanged(); + } + if (other.hasPort()) { + setPort(other.getPort()); + } + if (other.hasAppProtocol()) { + bitField0_ |= 0x00000008; + appProtocol_ = other.appProtocol_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Discovery.EndpointPort parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Discovery.EndpointPort) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * name represents the name of this port. All ports in an EndpointSlice must have a unique name.
+       * If the EndpointSlice is derived 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.
+       * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * name represents the name of this port. All ports in an EndpointSlice must have a unique name.
+       * If the EndpointSlice is derived 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.
+       * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * name represents the name of this port. All ports in an EndpointSlice must have a unique name.
+       * If the EndpointSlice is derived 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.
+       * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * name represents the name of this port. All ports in an EndpointSlice must have a unique name.
+       * If the EndpointSlice is derived 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.
+       * 
+ * + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + *
+       * name represents the name of this port. All ports in an EndpointSlice must have a unique name.
+       * If the EndpointSlice is derived 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.
+       * 
+ * + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * name represents the name of this port. All ports in an EndpointSlice must have a unique name.
+       * If the EndpointSlice is derived 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.
+       * 
+ * + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object protocol_ = ""; + /** + *
+       * protocol represents the IP protocol for this port.
+       * Must be UDP, TCP, or SCTP.
+       * Default is TCP.
+       * 
+ * + * optional string protocol = 2; + */ + public boolean hasProtocol() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * protocol represents the IP protocol for this port.
+       * Must be UDP, TCP, or SCTP.
+       * Default is TCP.
+       * 
+ * + * optional string protocol = 2; + */ + public java.lang.String getProtocol() { + java.lang.Object ref = protocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + protocol_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * protocol represents the IP protocol for this port.
+       * Must be UDP, TCP, or SCTP.
+       * Default is TCP.
+       * 
+ * + * optional string protocol = 2; + */ + public com.google.protobuf.ByteString + getProtocolBytes() { + java.lang.Object ref = protocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + protocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * protocol represents the IP protocol for this port.
+       * Must be UDP, TCP, or SCTP.
+       * Default is TCP.
+       * 
+ * + * optional string protocol = 2; + */ + public Builder setProtocol( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + protocol_ = value; + onChanged(); + return this; + } + /** + *
+       * protocol represents the IP protocol for this port.
+       * Must be UDP, TCP, or SCTP.
+       * Default is TCP.
+       * 
+ * + * optional string protocol = 2; + */ + public Builder clearProtocol() { + bitField0_ = (bitField0_ & ~0x00000002); + protocol_ = getDefaultInstance().getProtocol(); + onChanged(); + return this; + } + /** + *
+       * protocol represents the IP protocol for this port.
+       * Must be UDP, TCP, or SCTP.
+       * Default is TCP.
+       * 
+ * + * optional string protocol = 2; + */ + public Builder setProtocolBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + protocol_ = value; + onChanged(); + return this; + } + + private int port_ ; + /** + *
+       * port represents the port number of the endpoint.
+       * If the EndpointSlice is derived from a Kubernetes service, this must be set
+       * to the service's target port. EndpointSlices used for other purposes may have
+       * a nil port.
+       * 
+ * + * optional int32 port = 3; + */ + public boolean hasPort() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * port represents the port number of the endpoint.
+       * If the EndpointSlice is derived from a Kubernetes service, this must be set
+       * to the service's target port. EndpointSlices used for other purposes may have
+       * a nil port.
+       * 
+ * + * optional int32 port = 3; + */ + public int getPort() { + return port_; + } + /** + *
+       * port represents the port number of the endpoint.
+       * If the EndpointSlice is derived from a Kubernetes service, this must be set
+       * to the service's target port. EndpointSlices used for other purposes may have
+       * a nil port.
+       * 
+ * + * optional int32 port = 3; + */ + public Builder setPort(int value) { + bitField0_ |= 0x00000004; + port_ = value; + onChanged(); + return this; + } + /** + *
+       * port represents the port number of the endpoint.
+       * If the EndpointSlice is derived from a Kubernetes service, this must be set
+       * to the service's target port. EndpointSlices used for other purposes may have
+       * a nil port.
+       * 
+ * + * optional int32 port = 3; + */ + public Builder clearPort() { + bitField0_ = (bitField0_ & ~0x00000004); + port_ = 0; + onChanged(); + return this; + } + + private java.lang.Object appProtocol_ = ""; + /** + *
+       * The application protocol for this port.
+       * This is used as a hint for implementations to offer richer behavior for protocols that they understand.
+       * This field follows standard Kubernetes label syntax.
+       * Valid values are either:
+       * * Un-prefixed protocol names - reserved for IANA standard service names (as per
+       * RFC-6335 and https://www.iana.org/assignments/service-names).
+       * * Kubernetes-defined prefixed names:
+       *   * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
+       *   * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
+       *   * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
+       * * Other protocols should use implementation-defined prefixed names such as
+       * mycompany.com/my-custom-protocol.
+       * +optional
+       * 
+ * + * optional string appProtocol = 4; + */ + public boolean hasAppProtocol() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * The application protocol for this port.
+       * This is used as a hint for implementations to offer richer behavior for protocols that they understand.
+       * This field follows standard Kubernetes label syntax.
+       * Valid values are either:
+       * * Un-prefixed protocol names - reserved for IANA standard service names (as per
+       * RFC-6335 and https://www.iana.org/assignments/service-names).
+       * * Kubernetes-defined prefixed names:
+       *   * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
+       *   * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
+       *   * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
+       * * Other protocols should use implementation-defined prefixed names such as
+       * mycompany.com/my-custom-protocol.
+       * +optional
+       * 
+ * + * optional string appProtocol = 4; + */ + public java.lang.String getAppProtocol() { + java.lang.Object ref = appProtocol_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + appProtocol_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The application protocol for this port.
+       * This is used as a hint for implementations to offer richer behavior for protocols that they understand.
+       * This field follows standard Kubernetes label syntax.
+       * Valid values are either:
+       * * Un-prefixed protocol names - reserved for IANA standard service names (as per
+       * RFC-6335 and https://www.iana.org/assignments/service-names).
+       * * Kubernetes-defined prefixed names:
+       *   * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
+       *   * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
+       *   * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
+       * * Other protocols should use implementation-defined prefixed names such as
+       * mycompany.com/my-custom-protocol.
+       * +optional
+       * 
+ * + * optional string appProtocol = 4; + */ + public com.google.protobuf.ByteString + getAppProtocolBytes() { + java.lang.Object ref = appProtocol_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + appProtocol_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The application protocol for this port.
+       * This is used as a hint for implementations to offer richer behavior for protocols that they understand.
+       * This field follows standard Kubernetes label syntax.
+       * Valid values are either:
+       * * Un-prefixed protocol names - reserved for IANA standard service names (as per
+       * RFC-6335 and https://www.iana.org/assignments/service-names).
+       * * Kubernetes-defined prefixed names:
+       *   * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
+       *   * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
+       *   * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
+       * * Other protocols should use implementation-defined prefixed names such as
+       * mycompany.com/my-custom-protocol.
+       * +optional
+       * 
+ * + * optional string appProtocol = 4; + */ + public Builder setAppProtocol( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + appProtocol_ = value; + onChanged(); + return this; + } + /** + *
+       * The application protocol for this port.
+       * This is used as a hint for implementations to offer richer behavior for protocols that they understand.
+       * This field follows standard Kubernetes label syntax.
+       * Valid values are either:
+       * * Un-prefixed protocol names - reserved for IANA standard service names (as per
+       * RFC-6335 and https://www.iana.org/assignments/service-names).
+       * * Kubernetes-defined prefixed names:
+       *   * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
+       *   * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
+       *   * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
+       * * Other protocols should use implementation-defined prefixed names such as
+       * mycompany.com/my-custom-protocol.
+       * +optional
+       * 
+ * + * optional string appProtocol = 4; + */ + public Builder clearAppProtocol() { + bitField0_ = (bitField0_ & ~0x00000008); + appProtocol_ = getDefaultInstance().getAppProtocol(); + onChanged(); + return this; + } + /** + *
+       * The application protocol for this port.
+       * This is used as a hint for implementations to offer richer behavior for protocols that they understand.
+       * This field follows standard Kubernetes label syntax.
+       * Valid values are either:
+       * * Un-prefixed protocol names - reserved for IANA standard service names (as per
+       * RFC-6335 and https://www.iana.org/assignments/service-names).
+       * * Kubernetes-defined prefixed names:
+       *   * 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
+       *   * 'kubernetes.io/ws'  - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
+       *   * 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
+       * * Other protocols should use implementation-defined prefixed names such as
+       * mycompany.com/my-custom-protocol.
+       * +optional
+       * 
+ * + * optional string appProtocol = 4; + */ + public Builder setAppProtocolBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + appProtocol_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.discovery.v1.EndpointPort) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.discovery.v1.EndpointPort) + private static final io.kubernetes.client.proto.V1Discovery.EndpointPort DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Discovery.EndpointPort(); + } + + public static io.kubernetes.client.proto.V1Discovery.EndpointPort getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndpointPort parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EndpointPort(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointPort getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EndpointSliceOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.discovery.v1.EndpointSlice) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard object's metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard object's metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * Standard object's metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * 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. (Deprecated)
+     * The EndpointSlice controller only generates, and kube-proxy only processes,
+     * slices of addressType "IPv4" and "IPv6". No semantics are defined for
+     * the "FQDN" type.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * 
+ * + * optional string addressType = 4; + */ + boolean hasAddressType(); + /** + *
+     * 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. (Deprecated)
+     * The EndpointSlice controller only generates, and kube-proxy only processes,
+     * slices of addressType "IPv4" and "IPv6". No semantics are defined for
+     * the "FQDN" type.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * 
+ * + * optional string addressType = 4; + */ + java.lang.String getAddressType(); + /** + *
+     * 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. (Deprecated)
+     * The EndpointSlice controller only generates, and kube-proxy only processes,
+     * slices of addressType "IPv4" and "IPv6". No semantics are defined for
+     * the "FQDN" type.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * 
+ * + * optional string addressType = 4; + */ + com.google.protobuf.ByteString + getAddressTypeBytes(); + + /** + *
+     * endpoints is a list of unique endpoints in this slice. Each slice may
+     * include a maximum of 1000 endpoints.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + java.util.List + getEndpointsList(); + /** + *
+     * endpoints is a list of unique endpoints in this slice. Each slice may
+     * include a maximum of 1000 endpoints.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + io.kubernetes.client.proto.V1Discovery.Endpoint getEndpoints(int index); + /** + *
+     * endpoints is a list of unique endpoints in this slice. Each slice may
+     * include a maximum of 1000 endpoints.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + int getEndpointsCount(); + /** + *
+     * endpoints is a list of unique endpoints in this slice. Each slice may
+     * include a maximum of 1000 endpoints.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + java.util.List + getEndpointsOrBuilderList(); + /** + *
+     * endpoints is a list of unique endpoints in this slice. Each slice may
+     * include a maximum of 1000 endpoints.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + io.kubernetes.client.proto.V1Discovery.EndpointOrBuilder getEndpointsOrBuilder( + int index); + + /** + *
+     * ports specifies the list of network ports exposed by each endpoint in
+     * this slice. Each port must have a unique name. Each slice may include a
+     * maximum of 100 ports.
+     * Services always have at least 1 port, so EndpointSlices generated by the
+     * EndpointSlice controller will likewise always have at least 1 port.
+     * EndpointSlices used for other purposes may have an empty ports list.
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + java.util.List + getPortsList(); + /** + *
+     * ports specifies the list of network ports exposed by each endpoint in
+     * this slice. Each port must have a unique name. Each slice may include a
+     * maximum of 100 ports.
+     * Services always have at least 1 port, so EndpointSlices generated by the
+     * EndpointSlice controller will likewise always have at least 1 port.
+     * EndpointSlices used for other purposes may have an empty ports list.
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + io.kubernetes.client.proto.V1Discovery.EndpointPort getPorts(int index); + /** + *
+     * ports specifies the list of network ports exposed by each endpoint in
+     * this slice. Each port must have a unique name. Each slice may include a
+     * maximum of 100 ports.
+     * Services always have at least 1 port, so EndpointSlices generated by the
+     * EndpointSlice controller will likewise always have at least 1 port.
+     * EndpointSlices used for other purposes may have an empty ports list.
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + int getPortsCount(); + /** + *
+     * ports specifies the list of network ports exposed by each endpoint in
+     * this slice. Each port must have a unique name. Each slice may include a
+     * maximum of 100 ports.
+     * Services always have at least 1 port, so EndpointSlices generated by the
+     * EndpointSlice controller will likewise always have at least 1 port.
+     * EndpointSlices used for other purposes may have an empty ports list.
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + java.util.List + getPortsOrBuilderList(); + /** + *
+     * ports specifies the list of network ports exposed by each endpoint in
+     * this slice. Each port must have a unique name. Each slice may include a
+     * maximum of 100 ports.
+     * Services always have at least 1 port, so EndpointSlices generated by the
+     * EndpointSlice controller will likewise always have at least 1 port.
+     * EndpointSlices used for other purposes may have an empty ports list.
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + io.kubernetes.client.proto.V1Discovery.EndpointPortOrBuilder getPortsOrBuilder( + int index); + } + /** + *
+   * EndpointSlice represents a set of service endpoints. Most EndpointSlices are created by
+   * the EndpointSlice controller to represent the Pods selected by Service objects. For a
+   * given service there may be multiple EndpointSlice objects which must be joined to
+   * produce the full set of endpoints; you can find all of the slices for a given service
+   * by listing EndpointSlices in the service's namespace whose `kubernetes.io/service-name`
+   * label contains the service's name.
+   * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.EndpointSlice} + */ + public static final class EndpointSlice extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.discovery.v1.EndpointSlice) + EndpointSliceOrBuilder { + private static final long serialVersionUID = 0L; + // Use EndpointSlice.newBuilder() to construct. + private EndpointSlice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EndpointSlice() { + addressType_ = ""; + endpoints_ = java.util.Collections.emptyList(); + ports_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EndpointSlice( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + endpoints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + endpoints_.add( + input.readMessage(io.kubernetes.client.proto.V1Discovery.Endpoint.PARSER, extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + ports_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + ports_.add( + input.readMessage(io.kubernetes.client.proto.V1Discovery.EndpointPort.PARSER, extensionRegistry)); + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + addressType_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + endpoints_ = java.util.Collections.unmodifiableList(endpoints_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + ports_ = java.util.Collections.unmodifiableList(ports_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointSlice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointSlice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.EndpointSlice.class, io.kubernetes.client.proto.V1Discovery.EndpointSlice.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * Standard object's metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard object's metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard object's metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int ADDRESSTYPE_FIELD_NUMBER = 4; + private volatile java.lang.Object 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. (Deprecated)
+     * The EndpointSlice controller only generates, and kube-proxy only processes,
+     * slices of addressType "IPv4" and "IPv6". No semantics are defined for
+     * the "FQDN" type.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * 
+ * + * optional string addressType = 4; + */ + public boolean hasAddressType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * 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. (Deprecated)
+     * The EndpointSlice controller only generates, and kube-proxy only processes,
+     * slices of addressType "IPv4" and "IPv6". No semantics are defined for
+     * the "FQDN" type.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * 
+ * + * optional string addressType = 4; + */ + public java.lang.String getAddressType() { + java.lang.Object ref = addressType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + addressType_ = s; + } + return s; + } + } + /** + *
+     * 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. (Deprecated)
+     * The EndpointSlice controller only generates, and kube-proxy only processes,
+     * slices of addressType "IPv4" and "IPv6". No semantics are defined for
+     * the "FQDN" type.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * 
+ * + * optional string addressType = 4; + */ + public com.google.protobuf.ByteString + getAddressTypeBytes() { + java.lang.Object ref = addressType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + addressType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENDPOINTS_FIELD_NUMBER = 2; + private java.util.List endpoints_; + /** + *
+     * endpoints is a list of unique endpoints in this slice. Each slice may
+     * include a maximum of 1000 endpoints.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public java.util.List getEndpointsList() { + return endpoints_; + } + /** + *
+     * endpoints is a list of unique endpoints in this slice. Each slice may
+     * include a maximum of 1000 endpoints.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public java.util.List + getEndpointsOrBuilderList() { + return endpoints_; + } + /** + *
+     * endpoints is a list of unique endpoints in this slice. Each slice may
+     * include a maximum of 1000 endpoints.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public int getEndpointsCount() { + return endpoints_.size(); + } + /** + *
+     * endpoints is a list of unique endpoints in this slice. Each slice may
+     * include a maximum of 1000 endpoints.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public io.kubernetes.client.proto.V1Discovery.Endpoint getEndpoints(int index) { + return endpoints_.get(index); + } + /** + *
+     * endpoints is a list of unique endpoints in this slice. Each slice may
+     * include a maximum of 1000 endpoints.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointOrBuilder getEndpointsOrBuilder( + int index) { + return endpoints_.get(index); + } + + public static final int PORTS_FIELD_NUMBER = 3; + private java.util.List ports_; + /** + *
+     * ports specifies the list of network ports exposed by each endpoint in
+     * this slice. Each port must have a unique name. Each slice may include a
+     * maximum of 100 ports.
+     * Services always have at least 1 port, so EndpointSlices generated by the
+     * EndpointSlice controller will likewise always have at least 1 port.
+     * EndpointSlices used for other purposes may have an empty ports list.
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public java.util.List getPortsList() { + return ports_; + } + /** + *
+     * ports specifies the list of network ports exposed by each endpoint in
+     * this slice. Each port must have a unique name. Each slice may include a
+     * maximum of 100 ports.
+     * Services always have at least 1 port, so EndpointSlices generated by the
+     * EndpointSlice controller will likewise always have at least 1 port.
+     * EndpointSlices used for other purposes may have an empty ports list.
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public java.util.List + getPortsOrBuilderList() { + return ports_; + } + /** + *
+     * ports specifies the list of network ports exposed by each endpoint in
+     * this slice. Each port must have a unique name. Each slice may include a
+     * maximum of 100 ports.
+     * Services always have at least 1 port, so EndpointSlices generated by the
+     * EndpointSlice controller will likewise always have at least 1 port.
+     * EndpointSlices used for other purposes may have an empty ports list.
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public int getPortsCount() { + return ports_.size(); + } + /** + *
+     * ports specifies the list of network ports exposed by each endpoint in
+     * this slice. Each port must have a unique name. Each slice may include a
+     * maximum of 100 ports.
+     * Services always have at least 1 port, so EndpointSlices generated by the
+     * EndpointSlice controller will likewise always have at least 1 port.
+     * EndpointSlices used for other purposes may have an empty ports list.
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointPort getPorts(int index) { + return ports_.get(index); + } + /** + *
+     * ports specifies the list of network ports exposed by each endpoint in
+     * this slice. Each port must have a unique name. Each slice may include a
+     * maximum of 100 ports.
+     * Services always have at least 1 port, so EndpointSlices generated by the
+     * EndpointSlice controller will likewise always have at least 1 port.
+     * EndpointSlices used for other purposes may have an empty ports list.
+     * +optional
+     * +listType=atomic
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointPortOrBuilder getPortsOrBuilder( + int index) { + return ports_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < endpoints_.size(); i++) { + output.writeMessage(2, endpoints_.get(i)); + } + for (int i = 0; i < ports_.size(); i++) { + output.writeMessage(3, ports_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, addressType_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < endpoints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, endpoints_.get(i)); + } + for (int i = 0; i < ports_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, ports_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, addressType_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Discovery.EndpointSlice)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Discovery.EndpointSlice other = (io.kubernetes.client.proto.V1Discovery.EndpointSlice) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasAddressType() == other.hasAddressType()); + if (hasAddressType()) { + result = result && getAddressType() + .equals(other.getAddressType()); + } + result = result && getEndpointsList() + .equals(other.getEndpointsList()); + result = result && getPortsList() + .equals(other.getPortsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasAddressType()) { + hash = (37 * hash) + ADDRESSTYPE_FIELD_NUMBER; + hash = (53 * hash) + getAddressType().hashCode(); + } + if (getEndpointsCount() > 0) { + hash = (37 * hash) + ENDPOINTS_FIELD_NUMBER; + hash = (53 * hash) + getEndpointsList().hashCode(); + } + if (getPortsCount() > 0) { + hash = (37 * hash) + PORTS_FIELD_NUMBER; + hash = (53 * hash) + getPortsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Discovery.EndpointSlice parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSlice parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSlice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSlice parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSlice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSlice parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSlice parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSlice parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSlice parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSlice parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSlice parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSlice parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Discovery.EndpointSlice prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * EndpointSlice represents a set of service endpoints. Most EndpointSlices are created by
+     * the EndpointSlice controller to represent the Pods selected by Service objects. For a
+     * given service there may be multiple EndpointSlice objects which must be joined to
+     * produce the full set of endpoints; you can find all of the slices for a given service
+     * by listing EndpointSlices in the service's namespace whose `kubernetes.io/service-name`
+     * label contains the service's name.
+     * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.EndpointSlice} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.discovery.v1.EndpointSlice) + io.kubernetes.client.proto.V1Discovery.EndpointSliceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointSlice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointSlice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.EndpointSlice.class, io.kubernetes.client.proto.V1Discovery.EndpointSlice.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Discovery.EndpointSlice.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getEndpointsFieldBuilder(); + getPortsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + addressType_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + if (endpointsBuilder_ == null) { + endpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + endpointsBuilder_.clear(); + } + if (portsBuilder_ == null) { + ports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + portsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointSlice_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointSlice getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Discovery.EndpointSlice.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointSlice build() { + io.kubernetes.client.proto.V1Discovery.EndpointSlice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointSlice buildPartial() { + io.kubernetes.client.proto.V1Discovery.EndpointSlice result = new io.kubernetes.client.proto.V1Discovery.EndpointSlice(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.addressType_ = addressType_; + if (endpointsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + endpoints_ = java.util.Collections.unmodifiableList(endpoints_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.endpoints_ = endpoints_; + } else { + result.endpoints_ = endpointsBuilder_.build(); + } + if (portsBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + ports_ = java.util.Collections.unmodifiableList(ports_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.ports_ = ports_; + } else { + result.ports_ = portsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Discovery.EndpointSlice) { + return mergeFrom((io.kubernetes.client.proto.V1Discovery.EndpointSlice)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Discovery.EndpointSlice other) { + if (other == io.kubernetes.client.proto.V1Discovery.EndpointSlice.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasAddressType()) { + bitField0_ |= 0x00000002; + addressType_ = other.addressType_; + onChanged(); + } + if (endpointsBuilder_ == null) { + if (!other.endpoints_.isEmpty()) { + if (endpoints_.isEmpty()) { + endpoints_ = other.endpoints_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureEndpointsIsMutable(); + endpoints_.addAll(other.endpoints_); + } + onChanged(); + } + } else { + if (!other.endpoints_.isEmpty()) { + if (endpointsBuilder_.isEmpty()) { + endpointsBuilder_.dispose(); + endpointsBuilder_ = null; + endpoints_ = other.endpoints_; + bitField0_ = (bitField0_ & ~0x00000004); + endpointsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEndpointsFieldBuilder() : null; + } else { + endpointsBuilder_.addAllMessages(other.endpoints_); + } + } + } + if (portsBuilder_ == null) { + if (!other.ports_.isEmpty()) { + if (ports_.isEmpty()) { + ports_ = other.ports_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePortsIsMutable(); + ports_.addAll(other.ports_); + } + onChanged(); + } + } else { + if (!other.ports_.isEmpty()) { + if (portsBuilder_.isEmpty()) { + portsBuilder_.dispose(); + portsBuilder_ = null; + ports_ = other.ports_; + bitField0_ = (bitField0_ & ~0x00000008); + portsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getPortsFieldBuilder() : null; + } else { + portsBuilder_.addAllMessages(other.ports_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Discovery.EndpointSlice parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Discovery.EndpointSlice) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard object's metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard object's metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard object's metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object's metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object's metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object's metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard object's metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard object's metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard object's metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.lang.Object 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. (Deprecated)
+       * The EndpointSlice controller only generates, and kube-proxy only processes,
+       * slices of addressType "IPv4" and "IPv6". No semantics are defined for
+       * the "FQDN" type.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * 
+ * + * optional string addressType = 4; + */ + public boolean hasAddressType() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * 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. (Deprecated)
+       * The EndpointSlice controller only generates, and kube-proxy only processes,
+       * slices of addressType "IPv4" and "IPv6". No semantics are defined for
+       * the "FQDN" type.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * 
+ * + * optional string addressType = 4; + */ + public java.lang.String getAddressType() { + java.lang.Object ref = addressType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + addressType_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * 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. (Deprecated)
+       * The EndpointSlice controller only generates, and kube-proxy only processes,
+       * slices of addressType "IPv4" and "IPv6". No semantics are defined for
+       * the "FQDN" type.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * 
+ * + * optional string addressType = 4; + */ + public com.google.protobuf.ByteString + getAddressTypeBytes() { + java.lang.Object ref = addressType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + addressType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * 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. (Deprecated)
+       * The EndpointSlice controller only generates, and kube-proxy only processes,
+       * slices of addressType "IPv4" and "IPv6". No semantics are defined for
+       * the "FQDN" type.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * 
+ * + * optional string addressType = 4; + */ + public Builder setAddressType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + addressType_ = value; + onChanged(); + return this; + } + /** + *
+       * 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. (Deprecated)
+       * The EndpointSlice controller only generates, and kube-proxy only processes,
+       * slices of addressType "IPv4" and "IPv6". No semantics are defined for
+       * the "FQDN" type.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * 
+ * + * optional string addressType = 4; + */ + public Builder clearAddressType() { + bitField0_ = (bitField0_ & ~0x00000002); + addressType_ = getDefaultInstance().getAddressType(); + onChanged(); + return this; + } + /** + *
+       * 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. (Deprecated)
+       * The EndpointSlice controller only generates, and kube-proxy only processes,
+       * slices of addressType "IPv4" and "IPv6". No semantics are defined for
+       * the "FQDN" type.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * 
+ * + * optional string addressType = 4; + */ + public Builder setAddressTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + addressType_ = value; + onChanged(); + return this; + } + + private java.util.List endpoints_ = + java.util.Collections.emptyList(); + private void ensureEndpointsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + endpoints_ = new java.util.ArrayList(endpoints_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.Endpoint, io.kubernetes.client.proto.V1Discovery.Endpoint.Builder, io.kubernetes.client.proto.V1Discovery.EndpointOrBuilder> endpointsBuilder_; + + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public java.util.List getEndpointsList() { + if (endpointsBuilder_ == null) { + return java.util.Collections.unmodifiableList(endpoints_); + } else { + return endpointsBuilder_.getMessageList(); + } + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public int getEndpointsCount() { + if (endpointsBuilder_ == null) { + return endpoints_.size(); + } else { + return endpointsBuilder_.getCount(); + } + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public io.kubernetes.client.proto.V1Discovery.Endpoint getEndpoints(int index) { + if (endpointsBuilder_ == null) { + return endpoints_.get(index); + } else { + return endpointsBuilder_.getMessage(index); + } + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public Builder setEndpoints( + int index, io.kubernetes.client.proto.V1Discovery.Endpoint value) { + if (endpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointsIsMutable(); + endpoints_.set(index, value); + onChanged(); + } else { + endpointsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public Builder setEndpoints( + int index, io.kubernetes.client.proto.V1Discovery.Endpoint.Builder builderForValue) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.set(index, builderForValue.build()); + onChanged(); + } else { + endpointsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public Builder addEndpoints(io.kubernetes.client.proto.V1Discovery.Endpoint value) { + if (endpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointsIsMutable(); + endpoints_.add(value); + onChanged(); + } else { + endpointsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public Builder addEndpoints( + int index, io.kubernetes.client.proto.V1Discovery.Endpoint value) { + if (endpointsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEndpointsIsMutable(); + endpoints_.add(index, value); + onChanged(); + } else { + endpointsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public Builder addEndpoints( + io.kubernetes.client.proto.V1Discovery.Endpoint.Builder builderForValue) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.add(builderForValue.build()); + onChanged(); + } else { + endpointsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public Builder addEndpoints( + int index, io.kubernetes.client.proto.V1Discovery.Endpoint.Builder builderForValue) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.add(index, builderForValue.build()); + onChanged(); + } else { + endpointsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public Builder addAllEndpoints( + java.lang.Iterable values) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, endpoints_); + onChanged(); + } else { + endpointsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public Builder clearEndpoints() { + if (endpointsBuilder_ == null) { + endpoints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + endpointsBuilder_.clear(); + } + return this; + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public Builder removeEndpoints(int index) { + if (endpointsBuilder_ == null) { + ensureEndpointsIsMutable(); + endpoints_.remove(index); + onChanged(); + } else { + endpointsBuilder_.remove(index); + } + return this; + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public io.kubernetes.client.proto.V1Discovery.Endpoint.Builder getEndpointsBuilder( + int index) { + return getEndpointsFieldBuilder().getBuilder(index); + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointOrBuilder getEndpointsOrBuilder( + int index) { + if (endpointsBuilder_ == null) { + return endpoints_.get(index); } else { + return endpointsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public java.util.List + getEndpointsOrBuilderList() { + if (endpointsBuilder_ != null) { + return endpointsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(endpoints_); + } + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public io.kubernetes.client.proto.V1Discovery.Endpoint.Builder addEndpointsBuilder() { + return getEndpointsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Discovery.Endpoint.getDefaultInstance()); + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public io.kubernetes.client.proto.V1Discovery.Endpoint.Builder addEndpointsBuilder( + int index) { + return getEndpointsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Discovery.Endpoint.getDefaultInstance()); + } + /** + *
+       * endpoints is a list of unique endpoints in this slice. Each slice may
+       * include a maximum of 1000 endpoints.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.Endpoint endpoints = 2; + */ + public java.util.List + getEndpointsBuilderList() { + return getEndpointsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.Endpoint, io.kubernetes.client.proto.V1Discovery.Endpoint.Builder, io.kubernetes.client.proto.V1Discovery.EndpointOrBuilder> + getEndpointsFieldBuilder() { + if (endpointsBuilder_ == null) { + endpointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.Endpoint, io.kubernetes.client.proto.V1Discovery.Endpoint.Builder, io.kubernetes.client.proto.V1Discovery.EndpointOrBuilder>( + endpoints_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + endpoints_ = null; + } + return endpointsBuilder_; + } + + private java.util.List ports_ = + java.util.Collections.emptyList(); + private void ensurePortsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + ports_ = new java.util.ArrayList(ports_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.EndpointPort, io.kubernetes.client.proto.V1Discovery.EndpointPort.Builder, io.kubernetes.client.proto.V1Discovery.EndpointPortOrBuilder> portsBuilder_; + + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public java.util.List getPortsList() { + if (portsBuilder_ == null) { + return java.util.Collections.unmodifiableList(ports_); + } else { + return portsBuilder_.getMessageList(); + } + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public int getPortsCount() { + if (portsBuilder_ == null) { + return ports_.size(); + } else { + return portsBuilder_.getCount(); + } + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointPort getPorts(int index) { + if (portsBuilder_ == null) { + return ports_.get(index); + } else { + return portsBuilder_.getMessage(index); + } + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public Builder setPorts( + int index, io.kubernetes.client.proto.V1Discovery.EndpointPort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.set(index, value); + onChanged(); + } else { + portsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public Builder setPorts( + int index, io.kubernetes.client.proto.V1Discovery.EndpointPort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.set(index, builderForValue.build()); + onChanged(); + } else { + portsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public Builder addPorts(io.kubernetes.client.proto.V1Discovery.EndpointPort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.add(value); + onChanged(); + } else { + portsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public Builder addPorts( + int index, io.kubernetes.client.proto.V1Discovery.EndpointPort value) { + if (portsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePortsIsMutable(); + ports_.add(index, value); + onChanged(); + } else { + portsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public Builder addPorts( + io.kubernetes.client.proto.V1Discovery.EndpointPort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(builderForValue.build()); + onChanged(); + } else { + portsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public Builder addPorts( + int index, io.kubernetes.client.proto.V1Discovery.EndpointPort.Builder builderForValue) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.add(index, builderForValue.build()); + onChanged(); + } else { + portsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public Builder addAllPorts( + java.lang.Iterable values) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ports_); + onChanged(); + } else { + portsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public Builder clearPorts() { + if (portsBuilder_ == null) { + ports_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + portsBuilder_.clear(); + } + return this; + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public Builder removePorts(int index) { + if (portsBuilder_ == null) { + ensurePortsIsMutable(); + ports_.remove(index); + onChanged(); + } else { + portsBuilder_.remove(index); + } + return this; + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointPort.Builder getPortsBuilder( + int index) { + return getPortsFieldBuilder().getBuilder(index); + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointPortOrBuilder getPortsOrBuilder( + int index) { + if (portsBuilder_ == null) { + return ports_.get(index); } else { + return portsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public java.util.List + getPortsOrBuilderList() { + if (portsBuilder_ != null) { + return portsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ports_); + } + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointPort.Builder addPortsBuilder() { + return getPortsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Discovery.EndpointPort.getDefaultInstance()); + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointPort.Builder addPortsBuilder( + int index) { + return getPortsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Discovery.EndpointPort.getDefaultInstance()); + } + /** + *
+       * ports specifies the list of network ports exposed by each endpoint in
+       * this slice. Each port must have a unique name. Each slice may include a
+       * maximum of 100 ports.
+       * Services always have at least 1 port, so EndpointSlices generated by the
+       * EndpointSlice controller will likewise always have at least 1 port.
+       * EndpointSlices used for other purposes may have an empty ports list.
+       * +optional
+       * +listType=atomic
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointPort ports = 3; + */ + public java.util.List + getPortsBuilderList() { + return getPortsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.EndpointPort, io.kubernetes.client.proto.V1Discovery.EndpointPort.Builder, io.kubernetes.client.proto.V1Discovery.EndpointPortOrBuilder> + getPortsFieldBuilder() { + if (portsBuilder_ == null) { + portsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.EndpointPort, io.kubernetes.client.proto.V1Discovery.EndpointPort.Builder, io.kubernetes.client.proto.V1Discovery.EndpointPortOrBuilder>( + ports_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + ports_ = null; + } + return portsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.discovery.v1.EndpointSlice) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.discovery.v1.EndpointSlice) + private static final io.kubernetes.client.proto.V1Discovery.EndpointSlice DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Discovery.EndpointSlice(); + } + + public static io.kubernetes.client.proto.V1Discovery.EndpointSlice getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndpointSlice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EndpointSlice(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointSlice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EndpointSliceListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.discovery.v1.EndpointSliceList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard list metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard list metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * Standard list metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * items is the list of endpoint slices
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * items is the list of endpoint slices
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + io.kubernetes.client.proto.V1Discovery.EndpointSlice getItems(int index); + /** + *
+     * items is the list of endpoint slices
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + int getItemsCount(); + /** + *
+     * items is the list of endpoint slices
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * items is the list of endpoint slices
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + io.kubernetes.client.proto.V1Discovery.EndpointSliceOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * EndpointSliceList represents a list of endpoint slices
+   * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.EndpointSliceList} + */ + public static final class EndpointSliceList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.discovery.v1.EndpointSliceList) + EndpointSliceListOrBuilder { + private static final long serialVersionUID = 0L; + // Use EndpointSliceList.newBuilder() to construct. + private EndpointSliceList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EndpointSliceList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EndpointSliceList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V1Discovery.EndpointSlice.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointSliceList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointSliceList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.EndpointSliceList.class, io.kubernetes.client.proto.V1Discovery.EndpointSliceList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * Standard list metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard list metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard list metadata.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * items is the list of endpoint slices
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * items is the list of endpoint slices
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * items is the list of endpoint slices
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * items is the list of endpoint slices
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointSlice getItems(int index) { + return items_.get(index); + } + /** + *
+     * items is the list of endpoint slices
+     * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointSliceOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Discovery.EndpointSliceList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Discovery.EndpointSliceList other = (io.kubernetes.client.proto.V1Discovery.EndpointSliceList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Discovery.EndpointSliceList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSliceList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSliceList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSliceList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSliceList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSliceList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSliceList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSliceList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSliceList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSliceList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSliceList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.EndpointSliceList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Discovery.EndpointSliceList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * EndpointSliceList represents a list of endpoint slices
+     * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.EndpointSliceList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.discovery.v1.EndpointSliceList) + io.kubernetes.client.proto.V1Discovery.EndpointSliceListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointSliceList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointSliceList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.EndpointSliceList.class, io.kubernetes.client.proto.V1Discovery.EndpointSliceList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Discovery.EndpointSliceList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_EndpointSliceList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointSliceList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Discovery.EndpointSliceList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointSliceList build() { + io.kubernetes.client.proto.V1Discovery.EndpointSliceList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointSliceList buildPartial() { + io.kubernetes.client.proto.V1Discovery.EndpointSliceList result = new io.kubernetes.client.proto.V1Discovery.EndpointSliceList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Discovery.EndpointSliceList) { + return mergeFrom((io.kubernetes.client.proto.V1Discovery.EndpointSliceList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Discovery.EndpointSliceList other) { + if (other == io.kubernetes.client.proto.V1Discovery.EndpointSliceList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Discovery.EndpointSliceList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Discovery.EndpointSliceList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard list metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard list metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard list metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard list metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard list metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard list metadata.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.EndpointSlice, io.kubernetes.client.proto.V1Discovery.EndpointSlice.Builder, io.kubernetes.client.proto.V1Discovery.EndpointSliceOrBuilder> itemsBuilder_; + + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointSlice getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Discovery.EndpointSlice value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Discovery.EndpointSlice.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V1Discovery.EndpointSlice value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Discovery.EndpointSlice value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V1Discovery.EndpointSlice.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Discovery.EndpointSlice.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointSlice.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointSliceOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointSlice.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Discovery.EndpointSlice.getDefaultInstance()); + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public io.kubernetes.client.proto.V1Discovery.EndpointSlice.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Discovery.EndpointSlice.getDefaultInstance()); + } + /** + *
+       * items is the list of endpoint slices
+       * 
+ * + * repeated .k8s.io.api.discovery.v1.EndpointSlice items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.EndpointSlice, io.kubernetes.client.proto.V1Discovery.EndpointSlice.Builder, io.kubernetes.client.proto.V1Discovery.EndpointSliceOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Discovery.EndpointSlice, io.kubernetes.client.proto.V1Discovery.EndpointSlice.Builder, io.kubernetes.client.proto.V1Discovery.EndpointSliceOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.discovery.v1.EndpointSliceList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.discovery.v1.EndpointSliceList) + private static final io.kubernetes.client.proto.V1Discovery.EndpointSliceList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Discovery.EndpointSliceList(); + } + + public static io.kubernetes.client.proto.V1Discovery.EndpointSliceList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndpointSliceList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EndpointSliceList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.EndpointSliceList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ForNodeOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.discovery.v1.ForNode) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * name represents the name of the node.
+     * 
+ * + * optional string name = 1; + */ + boolean hasName(); + /** + *
+     * name represents the name of the node.
+     * 
+ * + * optional string name = 1; + */ + java.lang.String getName(); + /** + *
+     * name represents the name of the node.
+     * 
+ * + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * ForNode provides information about which nodes should consume this endpoint.
+   * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.ForNode} + */ + public static final class ForNode extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.discovery.v1.ForNode) + ForNodeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ForNode.newBuilder() to construct. + private ForNode(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ForNode() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ForNode( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_ForNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_ForNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.ForNode.class, io.kubernetes.client.proto.V1Discovery.ForNode.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * name represents the name of the node.
+     * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * name represents the name of the node.
+     * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + *
+     * name represents the name of the node.
+     * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Discovery.ForNode)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Discovery.ForNode other = (io.kubernetes.client.proto.V1Discovery.ForNode) obj; + + boolean result = true; + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Discovery.ForNode parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.ForNode parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.ForNode parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.ForNode parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.ForNode parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.ForNode parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.ForNode parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.ForNode parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.ForNode parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.ForNode parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.ForNode parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.ForNode parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Discovery.ForNode prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ForNode provides information about which nodes should consume this endpoint.
+     * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.ForNode} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.discovery.v1.ForNode) + io.kubernetes.client.proto.V1Discovery.ForNodeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_ForNode_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_ForNode_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.ForNode.class, io.kubernetes.client.proto.V1Discovery.ForNode.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Discovery.ForNode.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_ForNode_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.ForNode getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Discovery.ForNode.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.ForNode build() { + io.kubernetes.client.proto.V1Discovery.ForNode result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.ForNode buildPartial() { + io.kubernetes.client.proto.V1Discovery.ForNode result = new io.kubernetes.client.proto.V1Discovery.ForNode(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Discovery.ForNode) { + return mergeFrom((io.kubernetes.client.proto.V1Discovery.ForNode)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Discovery.ForNode other) { + if (other == io.kubernetes.client.proto.V1Discovery.ForNode.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Discovery.ForNode parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Discovery.ForNode) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * name represents the name of the node.
+       * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * name represents the name of the node.
+       * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * name represents the name of the node.
+       * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * name represents the name of the node.
+       * 
+ * + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + *
+       * name represents the name of the node.
+       * 
+ * + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * name represents the name of the node.
+       * 
+ * + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.discovery.v1.ForNode) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.discovery.v1.ForNode) + private static final io.kubernetes.client.proto.V1Discovery.ForNode DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Discovery.ForNode(); + } + + public static io.kubernetes.client.proto.V1Discovery.ForNode getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForNode parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ForNode(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.ForNode getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ForZoneOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.discovery.v1.ForZone) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * name represents the name of the zone.
+     * 
+ * + * optional string name = 1; + */ + boolean hasName(); + /** + *
+     * name represents the name of the zone.
+     * 
+ * + * optional string name = 1; + */ + java.lang.String getName(); + /** + *
+     * name represents the name of the zone.
+     * 
+ * + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * ForZone provides information about which zones should consume this endpoint.
+   * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.ForZone} + */ + public static final class ForZone extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.discovery.v1.ForZone) + ForZoneOrBuilder { + private static final long serialVersionUID = 0L; + // Use ForZone.newBuilder() to construct. + private ForZone(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ForZone() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ForZone( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_ForZone_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_ForZone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.ForZone.class, io.kubernetes.client.proto.V1Discovery.ForZone.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * name represents the name of the zone.
+     * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * name represents the name of the zone.
+     * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + *
+     * name represents the name of the zone.
+     * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Discovery.ForZone)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Discovery.ForZone other = (io.kubernetes.client.proto.V1Discovery.ForZone) obj; + + boolean result = true; + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Discovery.ForZone parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.ForZone parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.ForZone parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.ForZone parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.ForZone parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Discovery.ForZone parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.ForZone parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.ForZone parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.ForZone parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.ForZone parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Discovery.ForZone parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Discovery.ForZone parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Discovery.ForZone prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ForZone provides information about which zones should consume this endpoint.
+     * 
+ * + * Protobuf type {@code k8s.io.api.discovery.v1.ForZone} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.discovery.v1.ForZone) + io.kubernetes.client.proto.V1Discovery.ForZoneOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_ForZone_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_ForZone_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Discovery.ForZone.class, io.kubernetes.client.proto.V1Discovery.ForZone.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Discovery.ForZone.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Discovery.internal_static_k8s_io_api_discovery_v1_ForZone_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.ForZone getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Discovery.ForZone.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.ForZone build() { + io.kubernetes.client.proto.V1Discovery.ForZone result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.ForZone buildPartial() { + io.kubernetes.client.proto.V1Discovery.ForZone result = new io.kubernetes.client.proto.V1Discovery.ForZone(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Discovery.ForZone) { + return mergeFrom((io.kubernetes.client.proto.V1Discovery.ForZone)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Discovery.ForZone other) { + if (other == io.kubernetes.client.proto.V1Discovery.ForZone.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Discovery.ForZone parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Discovery.ForZone) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * name represents the name of the zone.
+       * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * name represents the name of the zone.
+       * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * name represents the name of the zone.
+       * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * name represents the name of the zone.
+       * 
+ * + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + *
+       * name represents the name of the zone.
+       * 
+ * + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * name represents the name of the zone.
+       * 
+ * + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.discovery.v1.ForZone) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.discovery.v1.ForZone) + private static final io.kubernetes.client.proto.V1Discovery.ForZone DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Discovery.ForZone(); + } + + public static io.kubernetes.client.proto.V1Discovery.ForZone getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ForZone parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ForZone(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Discovery.ForZone getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_discovery_v1_Endpoint_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_discovery_v1_Endpoint_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_discovery_v1_Endpoint_DeprecatedTopologyEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_discovery_v1_Endpoint_DeprecatedTopologyEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_discovery_v1_EndpointConditions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_discovery_v1_EndpointConditions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_discovery_v1_EndpointHints_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_discovery_v1_EndpointHints_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_discovery_v1_EndpointPort_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_discovery_v1_EndpointPort_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_discovery_v1_EndpointSlice_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_discovery_v1_EndpointSlice_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_discovery_v1_EndpointSliceList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_discovery_v1_EndpointSliceList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_discovery_v1_ForNode_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_discovery_v1_ForNode_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_discovery_v1_ForZone_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_discovery_v1_ForZone_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\'k8s.io/api/discovery/v1/generated.prot" + + "o\022\027k8s.io.api.discovery.v1\032\"k8s.io/api/c" + + "ore/v1/generated.proto\0324k8s.io/apimachin" + + "ery/pkg/apis/meta/v1/generated.proto\032/k8" + + "s.io/apimachinery/pkg/runtime/generated." + + "proto\0326k8s.io/apimachinery/pkg/runtime/s" + + "chema/generated.proto\"\221\003\n\010Endpoint\022\021\n\tad" + + "dresses\030\001 \003(\t\022?\n\nconditions\030\002 \001(\0132+.k8s." + + "io.api.discovery.v1.EndpointConditions\022\020" + + "\n\010hostname\030\003 \001(\t\0226\n\ttargetRef\030\004 \001(\0132#.k8" + + "s.io.api.core.v1.ObjectReference\022U\n\022depr" + + "ecatedTopology\030\005 \003(\01329.k8s.io.api.discov" + + "ery.v1.Endpoint.DeprecatedTopologyEntry\022" + + "\020\n\010nodeName\030\006 \001(\t\022\014\n\004zone\030\007 \001(\t\0225\n\005hints" + + "\030\010 \001(\0132&.k8s.io.api.discovery.v1.Endpoin" + + "tHints\0329\n\027DeprecatedTopologyEntry\022\013\n\003key" + + "\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"I\n\022EndpointCon" + + "ditions\022\r\n\005ready\030\001 \001(\010\022\017\n\007serving\030\002 \001(\010\022" + + "\023\n\013terminating\030\003 \001(\010\"w\n\rEndpointHints\0222\n" + + "\010forZones\030\001 \003(\0132 .k8s.io.api.discovery.v" + + "1.ForZone\0222\n\010forNodes\030\002 \003(\0132 .k8s.io.api" + + ".discovery.v1.ForNode\"Q\n\014EndpointPort\022\014\n" + + "\004name\030\001 \001(\t\022\020\n\010protocol\030\002 \001(\t\022\014\n\004port\030\003 " + + "\001(\005\022\023\n\013appProtocol\030\004 \001(\t\"\324\001\n\rEndpointSli" + + "ce\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachine" + + "ry.pkg.apis.meta.v1.ObjectMeta\022\023\n\013addres" + + "sType\030\004 \001(\t\0224\n\tendpoints\030\002 \003(\0132!.k8s.io." + + "api.discovery.v1.Endpoint\0224\n\005ports\030\003 \003(\013" + + "2%.k8s.io.api.discovery.v1.EndpointPort\"" + + "\214\001\n\021EndpointSliceList\022@\n\010metadata\030\001 \001(\0132" + + "..k8s.io.apimachinery.pkg.apis.meta.v1.L" + + "istMeta\0225\n\005items\030\002 \003(\0132&.k8s.io.api.disc" + + "overy.v1.EndpointSlice\"\027\n\007ForNode\022\014\n\004nam" + + "e\030\001 \001(\t\"\027\n\007ForZone\022\014\n\004name\030\001 \001(\tBB\n\032io.k" + + "ubernetes.client.protoB\013V1DiscoveryZ\027k8s" + + ".io/api/discovery/v1" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.kubernetes.client.proto.V1.getDescriptor(), + io.kubernetes.client.proto.Meta.getDescriptor(), + io.kubernetes.client.proto.Runtime.getDescriptor(), + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), + }, assigner); + internal_static_k8s_io_api_discovery_v1_Endpoint_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_k8s_io_api_discovery_v1_Endpoint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_discovery_v1_Endpoint_descriptor, + new java.lang.String[] { "Addresses", "Conditions", "Hostname", "TargetRef", "DeprecatedTopology", "NodeName", "Zone", "Hints", }); + internal_static_k8s_io_api_discovery_v1_Endpoint_DeprecatedTopologyEntry_descriptor = + internal_static_k8s_io_api_discovery_v1_Endpoint_descriptor.getNestedTypes().get(0); + internal_static_k8s_io_api_discovery_v1_Endpoint_DeprecatedTopologyEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_discovery_v1_Endpoint_DeprecatedTopologyEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_k8s_io_api_discovery_v1_EndpointConditions_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_k8s_io_api_discovery_v1_EndpointConditions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_discovery_v1_EndpointConditions_descriptor, + new java.lang.String[] { "Ready", "Serving", "Terminating", }); + internal_static_k8s_io_api_discovery_v1_EndpointHints_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_k8s_io_api_discovery_v1_EndpointHints_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_discovery_v1_EndpointHints_descriptor, + new java.lang.String[] { "ForZones", "ForNodes", }); + internal_static_k8s_io_api_discovery_v1_EndpointPort_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_k8s_io_api_discovery_v1_EndpointPort_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_discovery_v1_EndpointPort_descriptor, + new java.lang.String[] { "Name", "Protocol", "Port", "AppProtocol", }); + internal_static_k8s_io_api_discovery_v1_EndpointSlice_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_k8s_io_api_discovery_v1_EndpointSlice_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_discovery_v1_EndpointSlice_descriptor, + new java.lang.String[] { "Metadata", "AddressType", "Endpoints", "Ports", }); + internal_static_k8s_io_api_discovery_v1_EndpointSliceList_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_k8s_io_api_discovery_v1_EndpointSliceList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_discovery_v1_EndpointSliceList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_discovery_v1_ForNode_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_k8s_io_api_discovery_v1_ForNode_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_discovery_v1_ForNode_descriptor, + new java.lang.String[] { "Name", }); + internal_static_k8s_io_api_discovery_v1_ForZone_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_k8s_io_api_discovery_v1_ForZone_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_discovery_v1_ForZone_descriptor, + new java.lang.String[] { "Name", }); + io.kubernetes.client.proto.V1.getDescriptor(); + io.kubernetes.client.proto.Meta.getDescriptor(); + io.kubernetes.client.proto.Runtime.getDescriptor(); + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Events.java b/proto/src/main/java/io/kubernetes/client/proto/V1Events.java new file mode 100644 index 0000000000..31f2d2a471 --- /dev/null +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Events.java @@ -0,0 +1,6304 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: k8s.io/api/events/v1/generated.proto + +package io.kubernetes.client.proto; + +public final class V1Events { + private V1Events() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface EventOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.events.v1.Event) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * Standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * eventTime is the time when this Event was first observed. It is required.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; + */ + boolean hasEventTime(); + /** + *
+     * eventTime is the time when this Event was first observed. It is required.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; + */ + io.kubernetes.client.proto.Meta.MicroTime getEventTime(); + /** + *
+     * eventTime is the time when this Event was first observed. It is required.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; + */ + io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getEventTimeOrBuilder(); + + /** + *
+     * series is data about the Event series this event represents or nil if it's a singleton Event.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.events.v1.EventSeries series = 3; + */ + boolean hasSeries(); + /** + *
+     * series is data about the Event series this event represents or nil if it's a singleton Event.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.events.v1.EventSeries series = 3; + */ + io.kubernetes.client.proto.V1Events.EventSeries getSeries(); + /** + *
+     * series is data about the Event series this event represents or nil if it's a singleton Event.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.events.v1.EventSeries series = 3; + */ + io.kubernetes.client.proto.V1Events.EventSeriesOrBuilder getSeriesOrBuilder(); + + /** + *
+     * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
+     * This field cannot be empty for new Events.
+     * 
+ * + * optional string reportingController = 4; + */ + boolean hasReportingController(); + /** + *
+     * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
+     * This field cannot be empty for new Events.
+     * 
+ * + * optional string reportingController = 4; + */ + java.lang.String getReportingController(); + /** + *
+     * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
+     * This field cannot be empty for new Events.
+     * 
+ * + * optional string reportingController = 4; + */ + com.google.protobuf.ByteString + getReportingControllerBytes(); + + /** + *
+     * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string reportingInstance = 5; + */ + boolean hasReportingInstance(); + /** + *
+     * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string reportingInstance = 5; + */ + java.lang.String getReportingInstance(); + /** + *
+     * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string reportingInstance = 5; + */ + com.google.protobuf.ByteString + getReportingInstanceBytes(); + + /** + *
+     * action is what action was taken/failed regarding to the regarding object. It is machine-readable.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string action = 6; + */ + boolean hasAction(); + /** + *
+     * action is what action was taken/failed regarding to the regarding object. It is machine-readable.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string action = 6; + */ + java.lang.String getAction(); + /** + *
+     * action is what action was taken/failed regarding to the regarding object. It is machine-readable.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string action = 6; + */ + com.google.protobuf.ByteString + getActionBytes(); + + /** + *
+     * reason is why the action was taken. It is human-readable.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string reason = 7; + */ + boolean hasReason(); + /** + *
+     * reason is why the action was taken. It is human-readable.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string reason = 7; + */ + java.lang.String getReason(); + /** + *
+     * reason is why the action was taken. It is human-readable.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string reason = 7; + */ + com.google.protobuf.ByteString + getReasonBytes(); + + /** + *
+     * regarding contains the object this Event is about. In most cases it's an Object reporting controller
+     * implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because
+     * it acts on some changes in a ReplicaSet object.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference regarding = 8; + */ + boolean hasRegarding(); + /** + *
+     * regarding contains the object this Event is about. In most cases it's an Object reporting controller
+     * implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because
+     * it acts on some changes in a ReplicaSet object.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference regarding = 8; + */ + io.kubernetes.client.proto.V1.ObjectReference getRegarding(); + /** + *
+     * regarding contains the object this Event is about. In most cases it's an Object reporting controller
+     * implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because
+     * it acts on some changes in a ReplicaSet object.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference regarding = 8; + */ + io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getRegardingOrBuilder(); + + /** + *
+     * related is the optional secondary object for more complex actions. E.g. when regarding object triggers
+     * a creation or deletion of related object.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference related = 9; + */ + boolean hasRelated(); + /** + *
+     * related is the optional secondary object for more complex actions. E.g. when regarding object triggers
+     * a creation or deletion of related object.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference related = 9; + */ + io.kubernetes.client.proto.V1.ObjectReference getRelated(); + /** + *
+     * related is the optional secondary object for more complex actions. E.g. when regarding object triggers
+     * a creation or deletion of related object.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference related = 9; + */ + io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getRelatedOrBuilder(); + + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * optional string note = 10; + */ + boolean hasNote(); + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * optional string note = 10; + */ + java.lang.String getNote(); + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * optional string note = 10; + */ + com.google.protobuf.ByteString + getNoteBytes(); + + /** + *
+     * type is the type of this event (Normal, Warning), new types could be added in the future.
+     * It is machine-readable.
+     * This field cannot be empty for new Events.
+     * 
+ * + * optional string type = 11; + */ + boolean hasType(); + /** + *
+     * type is the type of this event (Normal, Warning), new types could be added in the future.
+     * It is machine-readable.
+     * This field cannot be empty for new Events.
+     * 
+ * + * optional string type = 11; + */ + java.lang.String getType(); + /** + *
+     * type is the type of this event (Normal, Warning), new types could be added in the future.
+     * It is machine-readable.
+     * This field cannot be empty for new Events.
+     * 
+ * + * optional string type = 11; + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+     * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.EventSource deprecatedSource = 12; + */ + boolean hasDeprecatedSource(); + /** + *
+     * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.EventSource deprecatedSource = 12; + */ + io.kubernetes.client.proto.V1.EventSource getDeprecatedSource(); + /** + *
+     * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.EventSource deprecatedSource = 12; + */ + io.kubernetes.client.proto.V1.EventSourceOrBuilder getDeprecatedSourceOrBuilder(); + + /** + *
+     * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; + */ + boolean hasDeprecatedFirstTimestamp(); + /** + *
+     * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; + */ + io.kubernetes.client.proto.Meta.Time getDeprecatedFirstTimestamp(); + /** + *
+     * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; + */ + io.kubernetes.client.proto.Meta.TimeOrBuilder getDeprecatedFirstTimestampOrBuilder(); + + /** + *
+     * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; + */ + boolean hasDeprecatedLastTimestamp(); + /** + *
+     * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; + */ + io.kubernetes.client.proto.Meta.Time getDeprecatedLastTimestamp(); + /** + *
+     * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; + */ + io.kubernetes.client.proto.Meta.TimeOrBuilder getDeprecatedLastTimestampOrBuilder(); + + /** + *
+     * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional int32 deprecatedCount = 15; + */ + boolean hasDeprecatedCount(); + /** + *
+     * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional int32 deprecatedCount = 15; + */ + int getDeprecatedCount(); + } + /** + *
+   * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
+   * Events have a limited retention time and triggers and messages may evolve
+   * with time.  Event consumers should not rely on the timing of an event
+   * with a given Reason reflecting a consistent underlying trigger, or the
+   * continued existence of events with that Reason.  Events should be
+   * treated as informative, best-effort, supplemental data.
+   * 
+ * + * Protobuf type {@code k8s.io.api.events.v1.Event} + */ + public static final class Event extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.events.v1.Event) + EventOrBuilder { + private static final long serialVersionUID = 0L; + // Use Event.newBuilder() to construct. + private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Event() { + reportingController_ = ""; + reportingInstance_ = ""; + action_ = ""; + reason_ = ""; + note_ = ""; + type_ = ""; + deprecatedCount_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Event( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.Meta.MicroTime.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = eventTime_.toBuilder(); + } + eventTime_ = input.readMessage(io.kubernetes.client.proto.Meta.MicroTime.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(eventTime_); + eventTime_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + io.kubernetes.client.proto.V1Events.EventSeries.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = series_.toBuilder(); + } + series_ = input.readMessage(io.kubernetes.client.proto.V1Events.EventSeries.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(series_); + series_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + reportingController_ = bs; + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000010; + reportingInstance_ = bs; + break; + } + case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000020; + action_ = bs; + break; + } + case 58: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000040; + reason_ = bs; + break; + } + case 66: { + io.kubernetes.client.proto.V1.ObjectReference.Builder subBuilder = null; + if (((bitField0_ & 0x00000080) == 0x00000080)) { + subBuilder = regarding_.toBuilder(); + } + regarding_ = input.readMessage(io.kubernetes.client.proto.V1.ObjectReference.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(regarding_); + regarding_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000080; + break; + } + case 74: { + io.kubernetes.client.proto.V1.ObjectReference.Builder subBuilder = null; + if (((bitField0_ & 0x00000100) == 0x00000100)) { + subBuilder = related_.toBuilder(); + } + related_ = input.readMessage(io.kubernetes.client.proto.V1.ObjectReference.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(related_); + related_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000100; + break; + } + case 82: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000200; + note_ = bs; + break; + } + case 90: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000400; + type_ = bs; + break; + } + case 98: { + io.kubernetes.client.proto.V1.EventSource.Builder subBuilder = null; + if (((bitField0_ & 0x00000800) == 0x00000800)) { + subBuilder = deprecatedSource_.toBuilder(); + } + deprecatedSource_ = input.readMessage(io.kubernetes.client.proto.V1.EventSource.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deprecatedSource_); + deprecatedSource_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000800; + break; + } + case 106: { + io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; + if (((bitField0_ & 0x00001000) == 0x00001000)) { + subBuilder = deprecatedFirstTimestamp_.toBuilder(); + } + deprecatedFirstTimestamp_ = input.readMessage(io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deprecatedFirstTimestamp_); + deprecatedFirstTimestamp_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00001000; + break; + } + case 114: { + io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; + if (((bitField0_ & 0x00002000) == 0x00002000)) { + subBuilder = deprecatedLastTimestamp_.toBuilder(); + } + deprecatedLastTimestamp_ = input.readMessage(io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deprecatedLastTimestamp_); + deprecatedLastTimestamp_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00002000; + break; + } + case 120: { + bitField0_ |= 0x00004000; + deprecatedCount_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Events.internal_static_k8s_io_api_events_v1_Event_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Events.internal_static_k8s_io_api_events_v1_Event_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Events.Event.class, io.kubernetes.client.proto.V1Events.Event.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * Standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int EVENTTIME_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.Meta.MicroTime eventTime_; + /** + *
+     * eventTime is the time when this Event was first observed. It is required.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; + */ + public boolean hasEventTime() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * eventTime is the time when this Event was first observed. It is required.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; + */ + public io.kubernetes.client.proto.Meta.MicroTime getEventTime() { + return eventTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : eventTime_; + } + /** + *
+     * eventTime is the time when this Event was first observed. It is required.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; + */ + public io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getEventTimeOrBuilder() { + return eventTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : eventTime_; + } + + public static final int SERIES_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.V1Events.EventSeries series_; + /** + *
+     * series is data about the Event series this event represents or nil if it's a singleton Event.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.events.v1.EventSeries series = 3; + */ + public boolean hasSeries() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * series is data about the Event series this event represents or nil if it's a singleton Event.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.events.v1.EventSeries series = 3; + */ + public io.kubernetes.client.proto.V1Events.EventSeries getSeries() { + return series_ == null ? io.kubernetes.client.proto.V1Events.EventSeries.getDefaultInstance() : series_; + } + /** + *
+     * series is data about the Event series this event represents or nil if it's a singleton Event.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.events.v1.EventSeries series = 3; + */ + public io.kubernetes.client.proto.V1Events.EventSeriesOrBuilder getSeriesOrBuilder() { + return series_ == null ? io.kubernetes.client.proto.V1Events.EventSeries.getDefaultInstance() : series_; + } + + public static final int REPORTINGCONTROLLER_FIELD_NUMBER = 4; + private volatile java.lang.Object reportingController_; + /** + *
+     * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
+     * This field cannot be empty for new Events.
+     * 
+ * + * optional string reportingController = 4; + */ + public boolean hasReportingController() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
+     * This field cannot be empty for new Events.
+     * 
+ * + * optional string reportingController = 4; + */ + public java.lang.String getReportingController() { + java.lang.Object ref = reportingController_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + reportingController_ = s; + } + return s; + } + } + /** + *
+     * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
+     * This field cannot be empty for new Events.
+     * 
+ * + * optional string reportingController = 4; + */ + public com.google.protobuf.ByteString + getReportingControllerBytes() { + java.lang.Object ref = reportingController_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reportingController_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REPORTINGINSTANCE_FIELD_NUMBER = 5; + private volatile java.lang.Object reportingInstance_; + /** + *
+     * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string reportingInstance = 5; + */ + public boolean hasReportingInstance() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+     * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string reportingInstance = 5; + */ + public java.lang.String getReportingInstance() { + java.lang.Object ref = reportingInstance_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + reportingInstance_ = s; + } + return s; + } + } + /** + *
+     * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string reportingInstance = 5; + */ + public com.google.protobuf.ByteString + getReportingInstanceBytes() { + java.lang.Object ref = reportingInstance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reportingInstance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 6; + private volatile java.lang.Object action_; + /** + *
+     * action is what action was taken/failed regarding to the regarding object. It is machine-readable.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string action = 6; + */ + public boolean hasAction() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+     * action is what action was taken/failed regarding to the regarding object. It is machine-readable.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string action = 6; + */ + public java.lang.String getAction() { + java.lang.Object ref = action_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + action_ = s; + } + return s; + } + } + /** + *
+     * action is what action was taken/failed regarding to the regarding object. It is machine-readable.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string action = 6; + */ + public com.google.protobuf.ByteString + getActionBytes() { + java.lang.Object ref = action_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + action_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REASON_FIELD_NUMBER = 7; + private volatile java.lang.Object reason_; + /** + *
+     * reason is why the action was taken. It is human-readable.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string reason = 7; + */ + public boolean hasReason() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + *
+     * reason is why the action was taken. It is human-readable.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string reason = 7; + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + reason_ = s; + } + return s; + } + } + /** + *
+     * reason is why the action was taken. It is human-readable.
+     * This field cannot be empty for new Events and it can have at most 128 characters.
+     * 
+ * + * optional string reason = 7; + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGARDING_FIELD_NUMBER = 8; + private io.kubernetes.client.proto.V1.ObjectReference regarding_; + /** + *
+     * regarding contains the object this Event is about. In most cases it's an Object reporting controller
+     * implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because
+     * it acts on some changes in a ReplicaSet object.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference regarding = 8; + */ + public boolean hasRegarding() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + *
+     * regarding contains the object this Event is about. In most cases it's an Object reporting controller
+     * implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because
+     * it acts on some changes in a ReplicaSet object.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference regarding = 8; + */ + public io.kubernetes.client.proto.V1.ObjectReference getRegarding() { + return regarding_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : regarding_; + } + /** + *
+     * regarding contains the object this Event is about. In most cases it's an Object reporting controller
+     * implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because
+     * it acts on some changes in a ReplicaSet object.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference regarding = 8; + */ + public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getRegardingOrBuilder() { + return regarding_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : regarding_; + } + + public static final int RELATED_FIELD_NUMBER = 9; + private io.kubernetes.client.proto.V1.ObjectReference related_; + /** + *
+     * related is the optional secondary object for more complex actions. E.g. when regarding object triggers
+     * a creation or deletion of related object.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference related = 9; + */ + public boolean hasRelated() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + *
+     * related is the optional secondary object for more complex actions. E.g. when regarding object triggers
+     * a creation or deletion of related object.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference related = 9; + */ + public io.kubernetes.client.proto.V1.ObjectReference getRelated() { + return related_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : related_; + } + /** + *
+     * related is the optional secondary object for more complex actions. E.g. when regarding object triggers
+     * a creation or deletion of related object.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference related = 9; + */ + public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getRelatedOrBuilder() { + return related_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : related_; + } + + public static final int NOTE_FIELD_NUMBER = 10; + private volatile java.lang.Object 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.
+     * +optional
+     * 
+ * + * optional string note = 10; + */ + public boolean hasNote() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * optional string note = 10; + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + note_ = s; + } + return s; + } + } + /** + *
+     * 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.
+     * +optional
+     * 
+ * + * optional string note = 10; + */ + public com.google.protobuf.ByteString + getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 11; + private volatile java.lang.Object type_; + /** + *
+     * type is the type of this event (Normal, Warning), new types could be added in the future.
+     * It is machine-readable.
+     * This field cannot be empty for new Events.
+     * 
+ * + * optional string type = 11; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + *
+     * type is the type of this event (Normal, Warning), new types could be added in the future.
+     * It is machine-readable.
+     * This field cannot be empty for new Events.
+     * 
+ * + * optional string type = 11; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } + } + /** + *
+     * type is the type of this event (Normal, Warning), new types could be added in the future.
+     * It is machine-readable.
+     * This field cannot be empty for new Events.
+     * 
+ * + * optional string type = 11; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEPRECATEDSOURCE_FIELD_NUMBER = 12; + private io.kubernetes.client.proto.V1.EventSource deprecatedSource_; + /** + *
+     * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.EventSource deprecatedSource = 12; + */ + public boolean hasDeprecatedSource() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + /** + *
+     * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.EventSource deprecatedSource = 12; + */ + public io.kubernetes.client.proto.V1.EventSource getDeprecatedSource() { + return deprecatedSource_ == null ? io.kubernetes.client.proto.V1.EventSource.getDefaultInstance() : deprecatedSource_; + } + /** + *
+     * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.EventSource deprecatedSource = 12; + */ + public io.kubernetes.client.proto.V1.EventSourceOrBuilder getDeprecatedSourceOrBuilder() { + return deprecatedSource_ == null ? io.kubernetes.client.proto.V1.EventSource.getDefaultInstance() : deprecatedSource_; + } + + public static final int DEPRECATEDFIRSTTIMESTAMP_FIELD_NUMBER = 13; + private io.kubernetes.client.proto.Meta.Time deprecatedFirstTimestamp_; + /** + *
+     * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; + */ + public boolean hasDeprecatedFirstTimestamp() { + return ((bitField0_ & 0x00001000) == 0x00001000); + } + /** + *
+     * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; + */ + public io.kubernetes.client.proto.Meta.Time getDeprecatedFirstTimestamp() { + return deprecatedFirstTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : deprecatedFirstTimestamp_; + } + /** + *
+     * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getDeprecatedFirstTimestampOrBuilder() { + return deprecatedFirstTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : deprecatedFirstTimestamp_; + } + + public static final int DEPRECATEDLASTTIMESTAMP_FIELD_NUMBER = 14; + private io.kubernetes.client.proto.Meta.Time deprecatedLastTimestamp_; + /** + *
+     * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; + */ + public boolean hasDeprecatedLastTimestamp() { + return ((bitField0_ & 0x00002000) == 0x00002000); + } + /** + *
+     * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; + */ + public io.kubernetes.client.proto.Meta.Time getDeprecatedLastTimestamp() { + return deprecatedLastTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : deprecatedLastTimestamp_; + } + /** + *
+     * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getDeprecatedLastTimestampOrBuilder() { + return deprecatedLastTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : deprecatedLastTimestamp_; + } + + public static final int DEPRECATEDCOUNT_FIELD_NUMBER = 15; + private int deprecatedCount_; + /** + *
+     * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional int32 deprecatedCount = 15; + */ + public boolean hasDeprecatedCount() { + return ((bitField0_ & 0x00004000) == 0x00004000); + } + /** + *
+     * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
+     * +optional
+     * 
+ * + * optional int32 deprecatedCount = 15; + */ + public int getDeprecatedCount() { + return deprecatedCount_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getEventTime()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getSeries()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reportingController_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reportingInstance_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, action_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, reason_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + output.writeMessage(8, getRegarding()); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeMessage(9, getRelated()); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, note_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, type_); + } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + output.writeMessage(12, getDeprecatedSource()); + } + if (((bitField0_ & 0x00001000) == 0x00001000)) { + output.writeMessage(13, getDeprecatedFirstTimestamp()); + } + if (((bitField0_ & 0x00002000) == 0x00002000)) { + output.writeMessage(14, getDeprecatedLastTimestamp()); + } + if (((bitField0_ & 0x00004000) == 0x00004000)) { + output.writeInt32(15, deprecatedCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEventTime()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getSeries()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reportingController_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, reportingInstance_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, action_); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, reason_); + } + if (((bitField0_ & 0x00000080) == 0x00000080)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getRegarding()); + } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, getRelated()); + } + if (((bitField0_ & 0x00000200) == 0x00000200)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, note_); + } + if (((bitField0_ & 0x00000400) == 0x00000400)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, type_); + } + if (((bitField0_ & 0x00000800) == 0x00000800)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(12, getDeprecatedSource()); + } + if (((bitField0_ & 0x00001000) == 0x00001000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, getDeprecatedFirstTimestamp()); + } + if (((bitField0_ & 0x00002000) == 0x00002000)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, getDeprecatedLastTimestamp()); + } + if (((bitField0_ & 0x00004000) == 0x00004000)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(15, deprecatedCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Events.Event)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Events.Event other = (io.kubernetes.client.proto.V1Events.Event) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasEventTime() == other.hasEventTime()); + if (hasEventTime()) { + result = result && getEventTime() + .equals(other.getEventTime()); + } + result = result && (hasSeries() == other.hasSeries()); + if (hasSeries()) { + result = result && getSeries() + .equals(other.getSeries()); + } + result = result && (hasReportingController() == other.hasReportingController()); + if (hasReportingController()) { + result = result && getReportingController() + .equals(other.getReportingController()); + } + result = result && (hasReportingInstance() == other.hasReportingInstance()); + if (hasReportingInstance()) { + result = result && getReportingInstance() + .equals(other.getReportingInstance()); + } + result = result && (hasAction() == other.hasAction()); + if (hasAction()) { + result = result && getAction() + .equals(other.getAction()); + } + result = result && (hasReason() == other.hasReason()); + if (hasReason()) { + result = result && getReason() + .equals(other.getReason()); + } + result = result && (hasRegarding() == other.hasRegarding()); + if (hasRegarding()) { + result = result && getRegarding() + .equals(other.getRegarding()); + } + result = result && (hasRelated() == other.hasRelated()); + if (hasRelated()) { + result = result && getRelated() + .equals(other.getRelated()); + } + result = result && (hasNote() == other.hasNote()); + if (hasNote()) { + result = result && getNote() + .equals(other.getNote()); + } + result = result && (hasType() == other.hasType()); + if (hasType()) { + result = result && getType() + .equals(other.getType()); + } + result = result && (hasDeprecatedSource() == other.hasDeprecatedSource()); + if (hasDeprecatedSource()) { + result = result && getDeprecatedSource() + .equals(other.getDeprecatedSource()); + } + result = result && (hasDeprecatedFirstTimestamp() == other.hasDeprecatedFirstTimestamp()); + if (hasDeprecatedFirstTimestamp()) { + result = result && getDeprecatedFirstTimestamp() + .equals(other.getDeprecatedFirstTimestamp()); + } + result = result && (hasDeprecatedLastTimestamp() == other.hasDeprecatedLastTimestamp()); + if (hasDeprecatedLastTimestamp()) { + result = result && getDeprecatedLastTimestamp() + .equals(other.getDeprecatedLastTimestamp()); + } + result = result && (hasDeprecatedCount() == other.hasDeprecatedCount()); + if (hasDeprecatedCount()) { + result = result && (getDeprecatedCount() + == other.getDeprecatedCount()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasEventTime()) { + hash = (37 * hash) + EVENTTIME_FIELD_NUMBER; + hash = (53 * hash) + getEventTime().hashCode(); + } + if (hasSeries()) { + hash = (37 * hash) + SERIES_FIELD_NUMBER; + hash = (53 * hash) + getSeries().hashCode(); + } + if (hasReportingController()) { + hash = (37 * hash) + REPORTINGCONTROLLER_FIELD_NUMBER; + hash = (53 * hash) + getReportingController().hashCode(); + } + if (hasReportingInstance()) { + hash = (37 * hash) + REPORTINGINSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getReportingInstance().hashCode(); + } + if (hasAction()) { + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + getAction().hashCode(); + } + if (hasReason()) { + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + } + if (hasRegarding()) { + hash = (37 * hash) + REGARDING_FIELD_NUMBER; + hash = (53 * hash) + getRegarding().hashCode(); + } + if (hasRelated()) { + hash = (37 * hash) + RELATED_FIELD_NUMBER; + hash = (53 * hash) + getRelated().hashCode(); + } + if (hasNote()) { + hash = (37 * hash) + NOTE_FIELD_NUMBER; + hash = (53 * hash) + getNote().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasDeprecatedSource()) { + hash = (37 * hash) + DEPRECATEDSOURCE_FIELD_NUMBER; + hash = (53 * hash) + getDeprecatedSource().hashCode(); + } + if (hasDeprecatedFirstTimestamp()) { + hash = (37 * hash) + DEPRECATEDFIRSTTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getDeprecatedFirstTimestamp().hashCode(); + } + if (hasDeprecatedLastTimestamp()) { + hash = (37 * hash) + DEPRECATEDLASTTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getDeprecatedLastTimestamp().hashCode(); + } + if (hasDeprecatedCount()) { + hash = (37 * hash) + DEPRECATEDCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getDeprecatedCount(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Events.Event parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Events.Event parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Events.Event parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Events.Event parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Events.Event parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Events.Event parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Events.Event parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Events.Event parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Events.Event parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Events.Event parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Events.Event parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Events.Event parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Events.Event prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.
+     * Events have a limited retention time and triggers and messages may evolve
+     * with time.  Event consumers should not rely on the timing of an event
+     * with a given Reason reflecting a consistent underlying trigger, or the
+     * continued existence of events with that Reason.  Events should be
+     * treated as informative, best-effort, supplemental data.
+     * 
+ * + * Protobuf type {@code k8s.io.api.events.v1.Event} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.events.v1.Event) + io.kubernetes.client.proto.V1Events.EventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Events.internal_static_k8s_io_api_events_v1_Event_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Events.internal_static_k8s_io_api_events_v1_Event_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Events.Event.class, io.kubernetes.client.proto.V1Events.Event.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Events.Event.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getEventTimeFieldBuilder(); + getSeriesFieldBuilder(); + getRegardingFieldBuilder(); + getRelatedFieldBuilder(); + getDeprecatedSourceFieldBuilder(); + getDeprecatedFirstTimestampFieldBuilder(); + getDeprecatedLastTimestampFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (eventTimeBuilder_ == null) { + eventTime_ = null; + } else { + eventTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (seriesBuilder_ == null) { + series_ = null; + } else { + seriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + reportingController_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + reportingInstance_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + action_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + reason_ = ""; + bitField0_ = (bitField0_ & ~0x00000040); + if (regardingBuilder_ == null) { + regarding_ = null; + } else { + regardingBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + if (relatedBuilder_ == null) { + related_ = null; + } else { + relatedBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + note_ = ""; + bitField0_ = (bitField0_ & ~0x00000200); + type_ = ""; + bitField0_ = (bitField0_ & ~0x00000400); + if (deprecatedSourceBuilder_ == null) { + deprecatedSource_ = null; + } else { + deprecatedSourceBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + if (deprecatedFirstTimestampBuilder_ == null) { + deprecatedFirstTimestamp_ = null; + } else { + deprecatedFirstTimestampBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + if (deprecatedLastTimestampBuilder_ == null) { + deprecatedLastTimestamp_ = null; + } else { + deprecatedLastTimestampBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + deprecatedCount_ = 0; + bitField0_ = (bitField0_ & ~0x00004000); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Events.internal_static_k8s_io_api_events_v1_Event_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Events.Event getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Events.Event.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Events.Event build() { + io.kubernetes.client.proto.V1Events.Event result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Events.Event buildPartial() { + io.kubernetes.client.proto.V1Events.Event result = new io.kubernetes.client.proto.V1Events.Event(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (eventTimeBuilder_ == null) { + result.eventTime_ = eventTime_; + } else { + result.eventTime_ = eventTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (seriesBuilder_ == null) { + result.series_ = series_; + } else { + result.series_ = seriesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.reportingController_ = reportingController_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.reportingInstance_ = reportingInstance_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.action_ = action_; + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000040; + } + result.reason_ = reason_; + if (((from_bitField0_ & 0x00000080) == 0x00000080)) { + to_bitField0_ |= 0x00000080; + } + if (regardingBuilder_ == null) { + result.regarding_ = regarding_; + } else { + result.regarding_ = regardingBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000100; + } + if (relatedBuilder_ == null) { + result.related_ = related_; + } else { + result.related_ = relatedBuilder_.build(); + } + if (((from_bitField0_ & 0x00000200) == 0x00000200)) { + to_bitField0_ |= 0x00000200; + } + result.note_ = note_; + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000400; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + to_bitField0_ |= 0x00000800; + } + if (deprecatedSourceBuilder_ == null) { + result.deprecatedSource_ = deprecatedSource_; + } else { + result.deprecatedSource_ = deprecatedSourceBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) == 0x00001000)) { + to_bitField0_ |= 0x00001000; + } + if (deprecatedFirstTimestampBuilder_ == null) { + result.deprecatedFirstTimestamp_ = deprecatedFirstTimestamp_; + } else { + result.deprecatedFirstTimestamp_ = deprecatedFirstTimestampBuilder_.build(); + } + if (((from_bitField0_ & 0x00002000) == 0x00002000)) { + to_bitField0_ |= 0x00002000; + } + if (deprecatedLastTimestampBuilder_ == null) { + result.deprecatedLastTimestamp_ = deprecatedLastTimestamp_; + } else { + result.deprecatedLastTimestamp_ = deprecatedLastTimestampBuilder_.build(); + } + if (((from_bitField0_ & 0x00004000) == 0x00004000)) { + to_bitField0_ |= 0x00004000; + } + result.deprecatedCount_ = deprecatedCount_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Events.Event) { + return mergeFrom((io.kubernetes.client.proto.V1Events.Event)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Events.Event other) { + if (other == io.kubernetes.client.proto.V1Events.Event.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasEventTime()) { + mergeEventTime(other.getEventTime()); + } + if (other.hasSeries()) { + mergeSeries(other.getSeries()); + } + if (other.hasReportingController()) { + bitField0_ |= 0x00000008; + reportingController_ = other.reportingController_; + onChanged(); + } + if (other.hasReportingInstance()) { + bitField0_ |= 0x00000010; + reportingInstance_ = other.reportingInstance_; + onChanged(); + } + if (other.hasAction()) { + bitField0_ |= 0x00000020; + action_ = other.action_; + onChanged(); + } + if (other.hasReason()) { + bitField0_ |= 0x00000040; + reason_ = other.reason_; + onChanged(); + } + if (other.hasRegarding()) { + mergeRegarding(other.getRegarding()); + } + if (other.hasRelated()) { + mergeRelated(other.getRelated()); + } + if (other.hasNote()) { + bitField0_ |= 0x00000200; + note_ = other.note_; + onChanged(); + } + if (other.hasType()) { + bitField0_ |= 0x00000400; + type_ = other.type_; + onChanged(); + } + if (other.hasDeprecatedSource()) { + mergeDeprecatedSource(other.getDeprecatedSource()); + } + if (other.hasDeprecatedFirstTimestamp()) { + mergeDeprecatedFirstTimestamp(other.getDeprecatedFirstTimestamp()); + } + if (other.hasDeprecatedLastTimestamp()) { + mergeDeprecatedLastTimestamp(other.getDeprecatedLastTimestamp()); + } + if (other.hasDeprecatedCount()) { + setDeprecatedCount(other.getDeprecatedCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Events.Event parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Events.Event) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.kubernetes.client.proto.Meta.MicroTime eventTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder> eventTimeBuilder_; + /** + *
+       * eventTime is the time when this Event was first observed. It is required.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; + */ + public boolean hasEventTime() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * eventTime is the time when this Event was first observed. It is required.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; + */ + public io.kubernetes.client.proto.Meta.MicroTime getEventTime() { + if (eventTimeBuilder_ == null) { + return eventTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : eventTime_; + } else { + return eventTimeBuilder_.getMessage(); + } + } + /** + *
+       * eventTime is the time when this Event was first observed. It is required.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; + */ + public Builder setEventTime(io.kubernetes.client.proto.Meta.MicroTime value) { + if (eventTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTime_ = value; + onChanged(); + } else { + eventTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * eventTime is the time when this Event was first observed. It is required.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; + */ + public Builder setEventTime( + io.kubernetes.client.proto.Meta.MicroTime.Builder builderForValue) { + if (eventTimeBuilder_ == null) { + eventTime_ = builderForValue.build(); + onChanged(); + } else { + eventTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * eventTime is the time when this Event was first observed. It is required.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; + */ + public Builder mergeEventTime(io.kubernetes.client.proto.Meta.MicroTime value) { + if (eventTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + eventTime_ != null && + eventTime_ != io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance()) { + eventTime_ = + io.kubernetes.client.proto.Meta.MicroTime.newBuilder(eventTime_).mergeFrom(value).buildPartial(); + } else { + eventTime_ = value; + } + onChanged(); + } else { + eventTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * eventTime is the time when this Event was first observed. It is required.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; + */ + public Builder clearEventTime() { + if (eventTimeBuilder_ == null) { + eventTime_ = null; + onChanged(); + } else { + eventTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * eventTime is the time when this Event was first observed. It is required.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; + */ + public io.kubernetes.client.proto.Meta.MicroTime.Builder getEventTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEventTimeFieldBuilder().getBuilder(); + } + /** + *
+       * eventTime is the time when this Event was first observed. It is required.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; + */ + public io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getEventTimeOrBuilder() { + if (eventTimeBuilder_ != null) { + return eventTimeBuilder_.getMessageOrBuilder(); + } else { + return eventTime_ == null ? + io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : eventTime_; + } + } + /** + *
+       * eventTime is the time when this Event was first observed. It is required.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime eventTime = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder> + getEventTimeFieldBuilder() { + if (eventTimeBuilder_ == null) { + eventTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder>( + getEventTime(), + getParentForChildren(), + isClean()); + eventTime_ = null; + } + return eventTimeBuilder_; + } + + private io.kubernetes.client.proto.V1Events.EventSeries series_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Events.EventSeries, io.kubernetes.client.proto.V1Events.EventSeries.Builder, io.kubernetes.client.proto.V1Events.EventSeriesOrBuilder> seriesBuilder_; + /** + *
+       * series is data about the Event series this event represents or nil if it's a singleton Event.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.events.v1.EventSeries series = 3; + */ + public boolean hasSeries() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * series is data about the Event series this event represents or nil if it's a singleton Event.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.events.v1.EventSeries series = 3; + */ + public io.kubernetes.client.proto.V1Events.EventSeries getSeries() { + if (seriesBuilder_ == null) { + return series_ == null ? io.kubernetes.client.proto.V1Events.EventSeries.getDefaultInstance() : series_; + } else { + return seriesBuilder_.getMessage(); + } + } + /** + *
+       * series is data about the Event series this event represents or nil if it's a singleton Event.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.events.v1.EventSeries series = 3; + */ + public Builder setSeries(io.kubernetes.client.proto.V1Events.EventSeries value) { + if (seriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + series_ = value; + onChanged(); + } else { + seriesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * series is data about the Event series this event represents or nil if it's a singleton Event.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.events.v1.EventSeries series = 3; + */ + public Builder setSeries( + io.kubernetes.client.proto.V1Events.EventSeries.Builder builderForValue) { + if (seriesBuilder_ == null) { + series_ = builderForValue.build(); + onChanged(); + } else { + seriesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * series is data about the Event series this event represents or nil if it's a singleton Event.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.events.v1.EventSeries series = 3; + */ + public Builder mergeSeries(io.kubernetes.client.proto.V1Events.EventSeries value) { + if (seriesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + series_ != null && + series_ != io.kubernetes.client.proto.V1Events.EventSeries.getDefaultInstance()) { + series_ = + io.kubernetes.client.proto.V1Events.EventSeries.newBuilder(series_).mergeFrom(value).buildPartial(); + } else { + series_ = value; + } + onChanged(); + } else { + seriesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * series is data about the Event series this event represents or nil if it's a singleton Event.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.events.v1.EventSeries series = 3; + */ + public Builder clearSeries() { + if (seriesBuilder_ == null) { + series_ = null; + onChanged(); + } else { + seriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * series is data about the Event series this event represents or nil if it's a singleton Event.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.events.v1.EventSeries series = 3; + */ + public io.kubernetes.client.proto.V1Events.EventSeries.Builder getSeriesBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSeriesFieldBuilder().getBuilder(); + } + /** + *
+       * series is data about the Event series this event represents or nil if it's a singleton Event.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.events.v1.EventSeries series = 3; + */ + public io.kubernetes.client.proto.V1Events.EventSeriesOrBuilder getSeriesOrBuilder() { + if (seriesBuilder_ != null) { + return seriesBuilder_.getMessageOrBuilder(); + } else { + return series_ == null ? + io.kubernetes.client.proto.V1Events.EventSeries.getDefaultInstance() : series_; + } + } + /** + *
+       * series is data about the Event series this event represents or nil if it's a singleton Event.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.events.v1.EventSeries series = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Events.EventSeries, io.kubernetes.client.proto.V1Events.EventSeries.Builder, io.kubernetes.client.proto.V1Events.EventSeriesOrBuilder> + getSeriesFieldBuilder() { + if (seriesBuilder_ == null) { + seriesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Events.EventSeries, io.kubernetes.client.proto.V1Events.EventSeries.Builder, io.kubernetes.client.proto.V1Events.EventSeriesOrBuilder>( + getSeries(), + getParentForChildren(), + isClean()); + series_ = null; + } + return seriesBuilder_; + } + + private java.lang.Object reportingController_ = ""; + /** + *
+       * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
+       * This field cannot be empty for new Events.
+       * 
+ * + * optional string reportingController = 4; + */ + public boolean hasReportingController() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
+       * This field cannot be empty for new Events.
+       * 
+ * + * optional string reportingController = 4; + */ + public java.lang.String getReportingController() { + java.lang.Object ref = reportingController_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + reportingController_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
+       * This field cannot be empty for new Events.
+       * 
+ * + * optional string reportingController = 4; + */ + public com.google.protobuf.ByteString + getReportingControllerBytes() { + java.lang.Object ref = reportingController_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reportingController_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
+       * This field cannot be empty for new Events.
+       * 
+ * + * optional string reportingController = 4; + */ + public Builder setReportingController( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + reportingController_ = value; + onChanged(); + return this; + } + /** + *
+       * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
+       * This field cannot be empty for new Events.
+       * 
+ * + * optional string reportingController = 4; + */ + public Builder clearReportingController() { + bitField0_ = (bitField0_ & ~0x00000008); + reportingController_ = getDefaultInstance().getReportingController(); + onChanged(); + return this; + } + /** + *
+       * reportingController is the name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.
+       * This field cannot be empty for new Events.
+       * 
+ * + * optional string reportingController = 4; + */ + public Builder setReportingControllerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + reportingController_ = value; + onChanged(); + return this; + } + + private java.lang.Object reportingInstance_ = ""; + /** + *
+       * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string reportingInstance = 5; + */ + public boolean hasReportingInstance() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+       * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string reportingInstance = 5; + */ + public java.lang.String getReportingInstance() { + java.lang.Object ref = reportingInstance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + reportingInstance_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string reportingInstance = 5; + */ + public com.google.protobuf.ByteString + getReportingInstanceBytes() { + java.lang.Object ref = reportingInstance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reportingInstance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string reportingInstance = 5; + */ + public Builder setReportingInstance( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + reportingInstance_ = value; + onChanged(); + return this; + } + /** + *
+       * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string reportingInstance = 5; + */ + public Builder clearReportingInstance() { + bitField0_ = (bitField0_ & ~0x00000010); + reportingInstance_ = getDefaultInstance().getReportingInstance(); + onChanged(); + return this; + } + /** + *
+       * reportingInstance is the ID of the controller instance, e.g. `kubelet-xyzf`.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string reportingInstance = 5; + */ + public Builder setReportingInstanceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + reportingInstance_ = value; + onChanged(); + return this; + } + + private java.lang.Object action_ = ""; + /** + *
+       * action is what action was taken/failed regarding to the regarding object. It is machine-readable.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string action = 6; + */ + public boolean hasAction() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+       * action is what action was taken/failed regarding to the regarding object. It is machine-readable.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string action = 6; + */ + public java.lang.String getAction() { + java.lang.Object ref = action_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + action_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * action is what action was taken/failed regarding to the regarding object. It is machine-readable.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string action = 6; + */ + public com.google.protobuf.ByteString + getActionBytes() { + java.lang.Object ref = action_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + action_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * action is what action was taken/failed regarding to the regarding object. It is machine-readable.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string action = 6; + */ + public Builder setAction( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + action_ = value; + onChanged(); + return this; + } + /** + *
+       * action is what action was taken/failed regarding to the regarding object. It is machine-readable.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string action = 6; + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000020); + action_ = getDefaultInstance().getAction(); + onChanged(); + return this; + } + /** + *
+       * action is what action was taken/failed regarding to the regarding object. It is machine-readable.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string action = 6; + */ + public Builder setActionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + action_ = value; + onChanged(); + return this; + } + + private java.lang.Object reason_ = ""; + /** + *
+       * reason is why the action was taken. It is human-readable.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string reason = 7; + */ + public boolean hasReason() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + *
+       * reason is why the action was taken. It is human-readable.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string reason = 7; + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + reason_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * reason is why the action was taken. It is human-readable.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string reason = 7; + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * reason is why the action was taken. It is human-readable.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string reason = 7; + */ + public Builder setReason( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + reason_ = value; + onChanged(); + return this; + } + /** + *
+       * reason is why the action was taken. It is human-readable.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string reason = 7; + */ + public Builder clearReason() { + bitField0_ = (bitField0_ & ~0x00000040); + reason_ = getDefaultInstance().getReason(); + onChanged(); + return this; + } + /** + *
+       * reason is why the action was taken. It is human-readable.
+       * This field cannot be empty for new Events and it can have at most 128 characters.
+       * 
+ * + * optional string reason = 7; + */ + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + reason_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1.ObjectReference regarding_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> regardingBuilder_; + /** + *
+       * regarding contains the object this Event is about. In most cases it's an Object reporting controller
+       * implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because
+       * it acts on some changes in a ReplicaSet object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference regarding = 8; + */ + public boolean hasRegarding() { + return ((bitField0_ & 0x00000080) == 0x00000080); + } + /** + *
+       * regarding contains the object this Event is about. In most cases it's an Object reporting controller
+       * implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because
+       * it acts on some changes in a ReplicaSet object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference regarding = 8; + */ + public io.kubernetes.client.proto.V1.ObjectReference getRegarding() { + if (regardingBuilder_ == null) { + return regarding_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : regarding_; + } else { + return regardingBuilder_.getMessage(); + } + } + /** + *
+       * regarding contains the object this Event is about. In most cases it's an Object reporting controller
+       * implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because
+       * it acts on some changes in a ReplicaSet object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference regarding = 8; + */ + public Builder setRegarding(io.kubernetes.client.proto.V1.ObjectReference value) { + if (regardingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + regarding_ = value; + onChanged(); + } else { + regardingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + return this; + } + /** + *
+       * regarding contains the object this Event is about. In most cases it's an Object reporting controller
+       * implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because
+       * it acts on some changes in a ReplicaSet object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference regarding = 8; + */ + public Builder setRegarding( + io.kubernetes.client.proto.V1.ObjectReference.Builder builderForValue) { + if (regardingBuilder_ == null) { + regarding_ = builderForValue.build(); + onChanged(); + } else { + regardingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + return this; + } + /** + *
+       * regarding contains the object this Event is about. In most cases it's an Object reporting controller
+       * implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because
+       * it acts on some changes in a ReplicaSet object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference regarding = 8; + */ + public Builder mergeRegarding(io.kubernetes.client.proto.V1.ObjectReference value) { + if (regardingBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080) && + regarding_ != null && + regarding_ != io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance()) { + regarding_ = + io.kubernetes.client.proto.V1.ObjectReference.newBuilder(regarding_).mergeFrom(value).buildPartial(); + } else { + regarding_ = value; + } + onChanged(); + } else { + regardingBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + return this; + } + /** + *
+       * regarding contains the object this Event is about. In most cases it's an Object reporting controller
+       * implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because
+       * it acts on some changes in a ReplicaSet object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference regarding = 8; + */ + public Builder clearRegarding() { + if (regardingBuilder_ == null) { + regarding_ = null; + onChanged(); + } else { + regardingBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + /** + *
+       * regarding contains the object this Event is about. In most cases it's an Object reporting controller
+       * implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because
+       * it acts on some changes in a ReplicaSet object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference regarding = 8; + */ + public io.kubernetes.client.proto.V1.ObjectReference.Builder getRegardingBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getRegardingFieldBuilder().getBuilder(); + } + /** + *
+       * regarding contains the object this Event is about. In most cases it's an Object reporting controller
+       * implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because
+       * it acts on some changes in a ReplicaSet object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference regarding = 8; + */ + public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getRegardingOrBuilder() { + if (regardingBuilder_ != null) { + return regardingBuilder_.getMessageOrBuilder(); + } else { + return regarding_ == null ? + io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : regarding_; + } + } + /** + *
+       * regarding contains the object this Event is about. In most cases it's an Object reporting controller
+       * implements, e.g. ReplicaSetController implements ReplicaSets and this event is emitted because
+       * it acts on some changes in a ReplicaSet object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference regarding = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> + getRegardingFieldBuilder() { + if (regardingBuilder_ == null) { + regardingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder>( + getRegarding(), + getParentForChildren(), + isClean()); + regarding_ = null; + } + return regardingBuilder_; + } + + private io.kubernetes.client.proto.V1.ObjectReference related_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> relatedBuilder_; + /** + *
+       * related is the optional secondary object for more complex actions. E.g. when regarding object triggers
+       * a creation or deletion of related object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference related = 9; + */ + public boolean hasRelated() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + *
+       * related is the optional secondary object for more complex actions. E.g. when regarding object triggers
+       * a creation or deletion of related object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference related = 9; + */ + public io.kubernetes.client.proto.V1.ObjectReference getRelated() { + if (relatedBuilder_ == null) { + return related_ == null ? io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : related_; + } else { + return relatedBuilder_.getMessage(); + } + } + /** + *
+       * related is the optional secondary object for more complex actions. E.g. when regarding object triggers
+       * a creation or deletion of related object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference related = 9; + */ + public Builder setRelated(io.kubernetes.client.proto.V1.ObjectReference value) { + if (relatedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + related_ = value; + onChanged(); + } else { + relatedBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + return this; + } + /** + *
+       * related is the optional secondary object for more complex actions. E.g. when regarding object triggers
+       * a creation or deletion of related object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference related = 9; + */ + public Builder setRelated( + io.kubernetes.client.proto.V1.ObjectReference.Builder builderForValue) { + if (relatedBuilder_ == null) { + related_ = builderForValue.build(); + onChanged(); + } else { + relatedBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + return this; + } + /** + *
+       * related is the optional secondary object for more complex actions. E.g. when regarding object triggers
+       * a creation or deletion of related object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference related = 9; + */ + public Builder mergeRelated(io.kubernetes.client.proto.V1.ObjectReference value) { + if (relatedBuilder_ == null) { + if (((bitField0_ & 0x00000100) == 0x00000100) && + related_ != null && + related_ != io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance()) { + related_ = + io.kubernetes.client.proto.V1.ObjectReference.newBuilder(related_).mergeFrom(value).buildPartial(); + } else { + related_ = value; + } + onChanged(); + } else { + relatedBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000100; + return this; + } + /** + *
+       * related is the optional secondary object for more complex actions. E.g. when regarding object triggers
+       * a creation or deletion of related object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference related = 9; + */ + public Builder clearRelated() { + if (relatedBuilder_ == null) { + related_ = null; + onChanged(); + } else { + relatedBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + return this; + } + /** + *
+       * related is the optional secondary object for more complex actions. E.g. when regarding object triggers
+       * a creation or deletion of related object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference related = 9; + */ + public io.kubernetes.client.proto.V1.ObjectReference.Builder getRelatedBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return getRelatedFieldBuilder().getBuilder(); + } + /** + *
+       * related is the optional secondary object for more complex actions. E.g. when regarding object triggers
+       * a creation or deletion of related object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference related = 9; + */ + public io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder getRelatedOrBuilder() { + if (relatedBuilder_ != null) { + return relatedBuilder_.getMessageOrBuilder(); + } else { + return related_ == null ? + io.kubernetes.client.proto.V1.ObjectReference.getDefaultInstance() : related_; + } + } + /** + *
+       * related is the optional secondary object for more complex actions. E.g. when regarding object triggers
+       * a creation or deletion of related object.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.ObjectReference related = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder> + getRelatedFieldBuilder() { + if (relatedBuilder_ == null) { + relatedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.ObjectReference, io.kubernetes.client.proto.V1.ObjectReference.Builder, io.kubernetes.client.proto.V1.ObjectReferenceOrBuilder>( + getRelated(), + getParentForChildren(), + isClean()); + related_ = null; + } + return relatedBuilder_; + } + + private java.lang.Object 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.
+       * +optional
+       * 
+ * + * optional string note = 10; + */ + public boolean hasNote() { + return ((bitField0_ & 0x00000200) == 0x00000200); + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * optional string note = 10; + */ + public java.lang.String getNote() { + java.lang.Object ref = note_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + note_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * optional string note = 10; + */ + public com.google.protobuf.ByteString + getNoteBytes() { + java.lang.Object ref = note_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + note_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * optional string note = 10; + */ + public Builder setNote( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + note_ = value; + onChanged(); + return this; + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * optional string note = 10; + */ + public Builder clearNote() { + bitField0_ = (bitField0_ & ~0x00000200); + note_ = getDefaultInstance().getNote(); + onChanged(); + return this; + } + /** + *
+       * 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.
+       * +optional
+       * 
+ * + * optional string note = 10; + */ + public Builder setNoteBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + note_ = value; + onChanged(); + return this; + } + + private java.lang.Object type_ = ""; + /** + *
+       * type is the type of this event (Normal, Warning), new types could be added in the future.
+       * It is machine-readable.
+       * This field cannot be empty for new Events.
+       * 
+ * + * optional string type = 11; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + *
+       * type is the type of this event (Normal, Warning), new types could be added in the future.
+       * It is machine-readable.
+       * This field cannot be empty for new Events.
+       * 
+ * + * optional string type = 11; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * type is the type of this event (Normal, Warning), new types could be added in the future.
+       * It is machine-readable.
+       * This field cannot be empty for new Events.
+       * 
+ * + * optional string type = 11; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * type is the type of this event (Normal, Warning), new types could be added in the future.
+       * It is machine-readable.
+       * This field cannot be empty for new Events.
+       * 
+ * + * optional string type = 11; + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + type_ = value; + onChanged(); + return this; + } + /** + *
+       * type is the type of this event (Normal, Warning), new types could be added in the future.
+       * It is machine-readable.
+       * This field cannot be empty for new Events.
+       * 
+ * + * optional string type = 11; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000400); + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
+       * type is the type of this event (Normal, Warning), new types could be added in the future.
+       * It is machine-readable.
+       * This field cannot be empty for new Events.
+       * 
+ * + * optional string type = 11; + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + type_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1.EventSource deprecatedSource_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.EventSource, io.kubernetes.client.proto.V1.EventSource.Builder, io.kubernetes.client.proto.V1.EventSourceOrBuilder> deprecatedSourceBuilder_; + /** + *
+       * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.EventSource deprecatedSource = 12; + */ + public boolean hasDeprecatedSource() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + /** + *
+       * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.EventSource deprecatedSource = 12; + */ + public io.kubernetes.client.proto.V1.EventSource getDeprecatedSource() { + if (deprecatedSourceBuilder_ == null) { + return deprecatedSource_ == null ? io.kubernetes.client.proto.V1.EventSource.getDefaultInstance() : deprecatedSource_; + } else { + return deprecatedSourceBuilder_.getMessage(); + } + } + /** + *
+       * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.EventSource deprecatedSource = 12; + */ + public Builder setDeprecatedSource(io.kubernetes.client.proto.V1.EventSource value) { + if (deprecatedSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deprecatedSource_ = value; + onChanged(); + } else { + deprecatedSourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + return this; + } + /** + *
+       * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.EventSource deprecatedSource = 12; + */ + public Builder setDeprecatedSource( + io.kubernetes.client.proto.V1.EventSource.Builder builderForValue) { + if (deprecatedSourceBuilder_ == null) { + deprecatedSource_ = builderForValue.build(); + onChanged(); + } else { + deprecatedSourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + return this; + } + /** + *
+       * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.EventSource deprecatedSource = 12; + */ + public Builder mergeDeprecatedSource(io.kubernetes.client.proto.V1.EventSource value) { + if (deprecatedSourceBuilder_ == null) { + if (((bitField0_ & 0x00000800) == 0x00000800) && + deprecatedSource_ != null && + deprecatedSource_ != io.kubernetes.client.proto.V1.EventSource.getDefaultInstance()) { + deprecatedSource_ = + io.kubernetes.client.proto.V1.EventSource.newBuilder(deprecatedSource_).mergeFrom(value).buildPartial(); + } else { + deprecatedSource_ = value; + } + onChanged(); + } else { + deprecatedSourceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000800; + return this; + } + /** + *
+       * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.EventSource deprecatedSource = 12; + */ + public Builder clearDeprecatedSource() { + if (deprecatedSourceBuilder_ == null) { + deprecatedSource_ = null; + onChanged(); + } else { + deprecatedSourceBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000800); + return this; + } + /** + *
+       * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.EventSource deprecatedSource = 12; + */ + public io.kubernetes.client.proto.V1.EventSource.Builder getDeprecatedSourceBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getDeprecatedSourceFieldBuilder().getBuilder(); + } + /** + *
+       * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.EventSource deprecatedSource = 12; + */ + public io.kubernetes.client.proto.V1.EventSourceOrBuilder getDeprecatedSourceOrBuilder() { + if (deprecatedSourceBuilder_ != null) { + return deprecatedSourceBuilder_.getMessageOrBuilder(); + } else { + return deprecatedSource_ == null ? + io.kubernetes.client.proto.V1.EventSource.getDefaultInstance() : deprecatedSource_; + } + } + /** + *
+       * deprecatedSource is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.EventSource deprecatedSource = 12; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.EventSource, io.kubernetes.client.proto.V1.EventSource.Builder, io.kubernetes.client.proto.V1.EventSourceOrBuilder> + getDeprecatedSourceFieldBuilder() { + if (deprecatedSourceBuilder_ == null) { + deprecatedSourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.EventSource, io.kubernetes.client.proto.V1.EventSource.Builder, io.kubernetes.client.proto.V1.EventSourceOrBuilder>( + getDeprecatedSource(), + getParentForChildren(), + isClean()); + deprecatedSource_ = null; + } + return deprecatedSourceBuilder_; + } + + private io.kubernetes.client.proto.Meta.Time deprecatedFirstTimestamp_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> deprecatedFirstTimestampBuilder_; + /** + *
+       * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; + */ + public boolean hasDeprecatedFirstTimestamp() { + return ((bitField0_ & 0x00001000) == 0x00001000); + } + /** + *
+       * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; + */ + public io.kubernetes.client.proto.Meta.Time getDeprecatedFirstTimestamp() { + if (deprecatedFirstTimestampBuilder_ == null) { + return deprecatedFirstTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : deprecatedFirstTimestamp_; + } else { + return deprecatedFirstTimestampBuilder_.getMessage(); + } + } + /** + *
+       * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; + */ + public Builder setDeprecatedFirstTimestamp(io.kubernetes.client.proto.Meta.Time value) { + if (deprecatedFirstTimestampBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deprecatedFirstTimestamp_ = value; + onChanged(); + } else { + deprecatedFirstTimestampBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + return this; + } + /** + *
+       * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; + */ + public Builder setDeprecatedFirstTimestamp( + io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { + if (deprecatedFirstTimestampBuilder_ == null) { + deprecatedFirstTimestamp_ = builderForValue.build(); + onChanged(); + } else { + deprecatedFirstTimestampBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + return this; + } + /** + *
+       * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; + */ + public Builder mergeDeprecatedFirstTimestamp(io.kubernetes.client.proto.Meta.Time value) { + if (deprecatedFirstTimestampBuilder_ == null) { + if (((bitField0_ & 0x00001000) == 0x00001000) && + deprecatedFirstTimestamp_ != null && + deprecatedFirstTimestamp_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { + deprecatedFirstTimestamp_ = + io.kubernetes.client.proto.Meta.Time.newBuilder(deprecatedFirstTimestamp_).mergeFrom(value).buildPartial(); + } else { + deprecatedFirstTimestamp_ = value; + } + onChanged(); + } else { + deprecatedFirstTimestampBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00001000; + return this; + } + /** + *
+       * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; + */ + public Builder clearDeprecatedFirstTimestamp() { + if (deprecatedFirstTimestampBuilder_ == null) { + deprecatedFirstTimestamp_ = null; + onChanged(); + } else { + deprecatedFirstTimestampBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00001000); + return this; + } + /** + *
+       * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; + */ + public io.kubernetes.client.proto.Meta.Time.Builder getDeprecatedFirstTimestampBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return getDeprecatedFirstTimestampFieldBuilder().getBuilder(); + } + /** + *
+       * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getDeprecatedFirstTimestampOrBuilder() { + if (deprecatedFirstTimestampBuilder_ != null) { + return deprecatedFirstTimestampBuilder_.getMessageOrBuilder(); + } else { + return deprecatedFirstTimestamp_ == null ? + io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : deprecatedFirstTimestamp_; + } + } + /** + *
+       * deprecatedFirstTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedFirstTimestamp = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> + getDeprecatedFirstTimestampFieldBuilder() { + if (deprecatedFirstTimestampBuilder_ == null) { + deprecatedFirstTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( + getDeprecatedFirstTimestamp(), + getParentForChildren(), + isClean()); + deprecatedFirstTimestamp_ = null; + } + return deprecatedFirstTimestampBuilder_; + } + + private io.kubernetes.client.proto.Meta.Time deprecatedLastTimestamp_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> deprecatedLastTimestampBuilder_; + /** + *
+       * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; + */ + public boolean hasDeprecatedLastTimestamp() { + return ((bitField0_ & 0x00002000) == 0x00002000); + } + /** + *
+       * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; + */ + public io.kubernetes.client.proto.Meta.Time getDeprecatedLastTimestamp() { + if (deprecatedLastTimestampBuilder_ == null) { + return deprecatedLastTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : deprecatedLastTimestamp_; + } else { + return deprecatedLastTimestampBuilder_.getMessage(); + } + } + /** + *
+       * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; + */ + public Builder setDeprecatedLastTimestamp(io.kubernetes.client.proto.Meta.Time value) { + if (deprecatedLastTimestampBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deprecatedLastTimestamp_ = value; + onChanged(); + } else { + deprecatedLastTimestampBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + return this; + } + /** + *
+       * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; + */ + public Builder setDeprecatedLastTimestamp( + io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { + if (deprecatedLastTimestampBuilder_ == null) { + deprecatedLastTimestamp_ = builderForValue.build(); + onChanged(); + } else { + deprecatedLastTimestampBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + return this; + } + /** + *
+       * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; + */ + public Builder mergeDeprecatedLastTimestamp(io.kubernetes.client.proto.Meta.Time value) { + if (deprecatedLastTimestampBuilder_ == null) { + if (((bitField0_ & 0x00002000) == 0x00002000) && + deprecatedLastTimestamp_ != null && + deprecatedLastTimestamp_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { + deprecatedLastTimestamp_ = + io.kubernetes.client.proto.Meta.Time.newBuilder(deprecatedLastTimestamp_).mergeFrom(value).buildPartial(); + } else { + deprecatedLastTimestamp_ = value; + } + onChanged(); + } else { + deprecatedLastTimestampBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00002000; + return this; + } + /** + *
+       * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; + */ + public Builder clearDeprecatedLastTimestamp() { + if (deprecatedLastTimestampBuilder_ == null) { + deprecatedLastTimestamp_ = null; + onChanged(); + } else { + deprecatedLastTimestampBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00002000); + return this; + } + /** + *
+       * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; + */ + public io.kubernetes.client.proto.Meta.Time.Builder getDeprecatedLastTimestampBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getDeprecatedLastTimestampFieldBuilder().getBuilder(); + } + /** + *
+       * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getDeprecatedLastTimestampOrBuilder() { + if (deprecatedLastTimestampBuilder_ != null) { + return deprecatedLastTimestampBuilder_.getMessageOrBuilder(); + } else { + return deprecatedLastTimestamp_ == null ? + io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : deprecatedLastTimestamp_; + } + } + /** + *
+       * deprecatedLastTimestamp is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time deprecatedLastTimestamp = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> + getDeprecatedLastTimestampFieldBuilder() { + if (deprecatedLastTimestampBuilder_ == null) { + deprecatedLastTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( + getDeprecatedLastTimestamp(), + getParentForChildren(), + isClean()); + deprecatedLastTimestamp_ = null; + } + return deprecatedLastTimestampBuilder_; + } + + private int deprecatedCount_ ; + /** + *
+       * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional int32 deprecatedCount = 15; + */ + public boolean hasDeprecatedCount() { + return ((bitField0_ & 0x00004000) == 0x00004000); + } + /** + *
+       * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional int32 deprecatedCount = 15; + */ + public int getDeprecatedCount() { + return deprecatedCount_; + } + /** + *
+       * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional int32 deprecatedCount = 15; + */ + public Builder setDeprecatedCount(int value) { + bitField0_ |= 0x00004000; + deprecatedCount_ = value; + onChanged(); + return this; + } + /** + *
+       * deprecatedCount is the deprecated field assuring backward compatibility with core.v1 Event type.
+       * +optional
+       * 
+ * + * optional int32 deprecatedCount = 15; + */ + public Builder clearDeprecatedCount() { + bitField0_ = (bitField0_ & ~0x00004000); + deprecatedCount_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.events.v1.Event) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.events.v1.Event) + private static final io.kubernetes.client.proto.V1Events.Event DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Events.Event(); + } + + public static io.kubernetes.client.proto.V1Events.Event getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Event parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Event(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Events.Event getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EventListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.events.v1.EventList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + io.kubernetes.client.proto.V1Events.Event getItems(int index); + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + int getItemsCount(); + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + io.kubernetes.client.proto.V1Events.EventOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * EventList is a list of Event objects.
+   * 
+ * + * Protobuf type {@code k8s.io.api.events.v1.EventList} + */ + public static final class EventList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.events.v1.EventList) + EventListOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventList.newBuilder() to construct. + private EventList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EventList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V1Events.Event.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Events.internal_static_k8s_io_api_events_v1_EventList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Events.internal_static_k8s_io_api_events_v1_EventList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Events.EventList.class, io.kubernetes.client.proto.V1Events.EventList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public io.kubernetes.client.proto.V1Events.Event getItems(int index) { + return items_.get(index); + } + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public io.kubernetes.client.proto.V1Events.EventOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Events.EventList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Events.EventList other = (io.kubernetes.client.proto.V1Events.EventList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Events.EventList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Events.EventList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Events.EventList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Events.EventList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Events.EventList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Events.EventList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Events.EventList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Events.EventList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Events.EventList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Events.EventList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Events.EventList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Events.EventList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Events.EventList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * EventList is a list of Event objects.
+     * 
+ * + * Protobuf type {@code k8s.io.api.events.v1.EventList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.events.v1.EventList) + io.kubernetes.client.proto.V1Events.EventListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Events.internal_static_k8s_io_api_events_v1_EventList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Events.internal_static_k8s_io_api_events_v1_EventList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Events.EventList.class, io.kubernetes.client.proto.V1Events.EventList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Events.EventList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Events.internal_static_k8s_io_api_events_v1_EventList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Events.EventList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Events.EventList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Events.EventList build() { + io.kubernetes.client.proto.V1Events.EventList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Events.EventList buildPartial() { + io.kubernetes.client.proto.V1Events.EventList result = new io.kubernetes.client.proto.V1Events.EventList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Events.EventList) { + return mergeFrom((io.kubernetes.client.proto.V1Events.EventList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Events.EventList other) { + if (other == io.kubernetes.client.proto.V1Events.EventList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Events.EventList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Events.EventList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Events.Event, io.kubernetes.client.proto.V1Events.Event.Builder, io.kubernetes.client.proto.V1Events.EventOrBuilder> itemsBuilder_; + + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public io.kubernetes.client.proto.V1Events.Event getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Events.Event value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Events.Event.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V1Events.Event value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Events.Event value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V1Events.Event.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Events.Event.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public io.kubernetes.client.proto.V1Events.Event.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public io.kubernetes.client.proto.V1Events.EventOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public io.kubernetes.client.proto.V1Events.Event.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Events.Event.getDefaultInstance()); + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public io.kubernetes.client.proto.V1Events.Event.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Events.Event.getDefaultInstance()); + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.events.v1.Event items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Events.Event, io.kubernetes.client.proto.V1Events.Event.Builder, io.kubernetes.client.proto.V1Events.EventOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Events.Event, io.kubernetes.client.proto.V1Events.Event.Builder, io.kubernetes.client.proto.V1Events.EventOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.events.v1.EventList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.events.v1.EventList) + private static final io.kubernetes.client.proto.V1Events.EventList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Events.EventList(); + } + + public static io.kubernetes.client.proto.V1Events.EventList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Events.EventList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface EventSeriesOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.events.v1.EventSeries) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * count is the number of occurrences in this series up to the last heartbeat time.
+     * 
+ * + * optional int32 count = 1; + */ + boolean hasCount(); + /** + *
+     * count is the number of occurrences in this series up to the last heartbeat time.
+     * 
+ * + * optional int32 count = 1; + */ + int getCount(); + + /** + *
+     * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; + */ + boolean hasLastObservedTime(); + /** + *
+     * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; + */ + io.kubernetes.client.proto.Meta.MicroTime getLastObservedTime(); + /** + *
+     * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; + */ + io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getLastObservedTimeOrBuilder(); + } + /** + *
+   * EventSeries contain information on series of events, i.e. thing that was/is happening
+   * continuously for some time. How often to update the EventSeries is up to the event reporters.
+   * The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows
+   * how this struct is updated on heartbeats and can guide customized reporter implementations.
+   * 
+ * + * Protobuf type {@code k8s.io.api.events.v1.EventSeries} + */ + public static final class EventSeries extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.events.v1.EventSeries) + EventSeriesOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventSeries.newBuilder() to construct. + private EventSeries(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EventSeries() { + count_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private EventSeries( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + bitField0_ |= 0x00000001; + count_ = input.readInt32(); + break; + } + case 18: { + io.kubernetes.client.proto.Meta.MicroTime.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = lastObservedTime_.toBuilder(); + } + lastObservedTime_ = input.readMessage(io.kubernetes.client.proto.Meta.MicroTime.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastObservedTime_); + lastObservedTime_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Events.internal_static_k8s_io_api_events_v1_EventSeries_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Events.internal_static_k8s_io_api_events_v1_EventSeries_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Events.EventSeries.class, io.kubernetes.client.proto.V1Events.EventSeries.Builder.class); + } + + private int bitField0_; + public static final int COUNT_FIELD_NUMBER = 1; + private int count_; + /** + *
+     * count is the number of occurrences in this series up to the last heartbeat time.
+     * 
+ * + * optional int32 count = 1; + */ + public boolean hasCount() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * count is the number of occurrences in this series up to the last heartbeat time.
+     * 
+ * + * optional int32 count = 1; + */ + public int getCount() { + return count_; + } + + public static final int LASTOBSERVEDTIME_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.Meta.MicroTime lastObservedTime_; + /** + *
+     * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; + */ + public boolean hasLastObservedTime() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; + */ + public io.kubernetes.client.proto.Meta.MicroTime getLastObservedTime() { + return lastObservedTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : lastObservedTime_; + } + /** + *
+     * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; + */ + public io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getLastObservedTimeOrBuilder() { + return lastObservedTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : lastObservedTime_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, count_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getLastObservedTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, count_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLastObservedTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Events.EventSeries)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Events.EventSeries other = (io.kubernetes.client.proto.V1Events.EventSeries) obj; + + boolean result = true; + result = result && (hasCount() == other.hasCount()); + if (hasCount()) { + result = result && (getCount() + == other.getCount()); + } + result = result && (hasLastObservedTime() == other.hasLastObservedTime()); + if (hasLastObservedTime()) { + result = result && getLastObservedTime() + .equals(other.getLastObservedTime()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCount()) { + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCount(); + } + if (hasLastObservedTime()) { + hash = (37 * hash) + LASTOBSERVEDTIME_FIELD_NUMBER; + hash = (53 * hash) + getLastObservedTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Events.EventSeries parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Events.EventSeries parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Events.EventSeries parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Events.EventSeries parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Events.EventSeries parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Events.EventSeries parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Events.EventSeries parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Events.EventSeries parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Events.EventSeries parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Events.EventSeries parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Events.EventSeries parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Events.EventSeries parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Events.EventSeries prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * EventSeries contain information on series of events, i.e. thing that was/is happening
+     * continuously for some time. How often to update the EventSeries is up to the event reporters.
+     * The default event reporter in "k8s.io/client-go/tools/events/event_broadcaster.go" shows
+     * how this struct is updated on heartbeats and can guide customized reporter implementations.
+     * 
+ * + * Protobuf type {@code k8s.io.api.events.v1.EventSeries} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.events.v1.EventSeries) + io.kubernetes.client.proto.V1Events.EventSeriesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Events.internal_static_k8s_io_api_events_v1_EventSeries_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Events.internal_static_k8s_io_api_events_v1_EventSeries_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Events.EventSeries.class, io.kubernetes.client.proto.V1Events.EventSeries.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Events.EventSeries.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLastObservedTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + count_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + if (lastObservedTimeBuilder_ == null) { + lastObservedTime_ = null; + } else { + lastObservedTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Events.internal_static_k8s_io_api_events_v1_EventSeries_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Events.EventSeries getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Events.EventSeries.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Events.EventSeries build() { + io.kubernetes.client.proto.V1Events.EventSeries result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Events.EventSeries buildPartial() { + io.kubernetes.client.proto.V1Events.EventSeries result = new io.kubernetes.client.proto.V1Events.EventSeries(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.count_ = count_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (lastObservedTimeBuilder_ == null) { + result.lastObservedTime_ = lastObservedTime_; + } else { + result.lastObservedTime_ = lastObservedTimeBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Events.EventSeries) { + return mergeFrom((io.kubernetes.client.proto.V1Events.EventSeries)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Events.EventSeries other) { + if (other == io.kubernetes.client.proto.V1Events.EventSeries.getDefaultInstance()) return this; + if (other.hasCount()) { + setCount(other.getCount()); + } + if (other.hasLastObservedTime()) { + mergeLastObservedTime(other.getLastObservedTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Events.EventSeries parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Events.EventSeries) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int count_ ; + /** + *
+       * count is the number of occurrences in this series up to the last heartbeat time.
+       * 
+ * + * optional int32 count = 1; + */ + public boolean hasCount() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * count is the number of occurrences in this series up to the last heartbeat time.
+       * 
+ * + * optional int32 count = 1; + */ + public int getCount() { + return count_; + } + /** + *
+       * count is the number of occurrences in this series up to the last heartbeat time.
+       * 
+ * + * optional int32 count = 1; + */ + public Builder setCount(int value) { + bitField0_ |= 0x00000001; + count_ = value; + onChanged(); + return this; + } + /** + *
+       * count is the number of occurrences in this series up to the last heartbeat time.
+       * 
+ * + * optional int32 count = 1; + */ + public Builder clearCount() { + bitField0_ = (bitField0_ & ~0x00000001); + count_ = 0; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.Meta.MicroTime lastObservedTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder> lastObservedTimeBuilder_; + /** + *
+       * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; + */ + public boolean hasLastObservedTime() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; + */ + public io.kubernetes.client.proto.Meta.MicroTime getLastObservedTime() { + if (lastObservedTimeBuilder_ == null) { + return lastObservedTime_ == null ? io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : lastObservedTime_; + } else { + return lastObservedTimeBuilder_.getMessage(); + } + } + /** + *
+       * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; + */ + public Builder setLastObservedTime(io.kubernetes.client.proto.Meta.MicroTime value) { + if (lastObservedTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastObservedTime_ = value; + onChanged(); + } else { + lastObservedTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; + */ + public Builder setLastObservedTime( + io.kubernetes.client.proto.Meta.MicroTime.Builder builderForValue) { + if (lastObservedTimeBuilder_ == null) { + lastObservedTime_ = builderForValue.build(); + onChanged(); + } else { + lastObservedTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; + */ + public Builder mergeLastObservedTime(io.kubernetes.client.proto.Meta.MicroTime value) { + if (lastObservedTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + lastObservedTime_ != null && + lastObservedTime_ != io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance()) { + lastObservedTime_ = + io.kubernetes.client.proto.Meta.MicroTime.newBuilder(lastObservedTime_).mergeFrom(value).buildPartial(); + } else { + lastObservedTime_ = value; + } + onChanged(); + } else { + lastObservedTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; + */ + public Builder clearLastObservedTime() { + if (lastObservedTimeBuilder_ == null) { + lastObservedTime_ = null; + onChanged(); + } else { + lastObservedTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; + */ + public io.kubernetes.client.proto.Meta.MicroTime.Builder getLastObservedTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLastObservedTimeFieldBuilder().getBuilder(); + } + /** + *
+       * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; + */ + public io.kubernetes.client.proto.Meta.MicroTimeOrBuilder getLastObservedTimeOrBuilder() { + if (lastObservedTimeBuilder_ != null) { + return lastObservedTimeBuilder_.getMessageOrBuilder(); + } else { + return lastObservedTime_ == null ? + io.kubernetes.client.proto.Meta.MicroTime.getDefaultInstance() : lastObservedTime_; + } + } + /** + *
+       * lastObservedTime is the time when last Event from the series was seen before last heartbeat.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.MicroTime lastObservedTime = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder> + getLastObservedTimeFieldBuilder() { + if (lastObservedTimeBuilder_ == null) { + lastObservedTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.MicroTime, io.kubernetes.client.proto.Meta.MicroTime.Builder, io.kubernetes.client.proto.Meta.MicroTimeOrBuilder>( + getLastObservedTime(), + getParentForChildren(), + isClean()); + lastObservedTime_ = null; + } + return lastObservedTimeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.events.v1.EventSeries) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.events.v1.EventSeries) + private static final io.kubernetes.client.proto.V1Events.EventSeries DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Events.EventSeries(); + } + + public static io.kubernetes.client.proto.V1Events.EventSeries getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventSeries parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventSeries(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Events.EventSeries getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_events_v1_Event_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_events_v1_Event_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_events_v1_EventList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_events_v1_EventList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_events_v1_EventSeries_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_events_v1_EventSeries_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n$k8s.io/api/events/v1/generated.proto\022\024" + + "k8s.io.api.events.v1\032\"k8s.io/api/core/v1" + + "/generated.proto\0324k8s.io/apimachinery/pk" + + "g/apis/meta/v1/generated.proto\032/k8s.io/a" + + "pimachinery/pkg/runtime/generated.proto\032" + + "6k8s.io/apimachinery/pkg/runtime/schema/" + + "generated.proto\"\223\005\n\005Event\022B\n\010metadata\030\001 " + + "\001(\01320.k8s.io.apimachinery.pkg.apis.meta." + + "v1.ObjectMeta\022B\n\teventTime\030\002 \001(\0132/.k8s.i" + + "o.apimachinery.pkg.apis.meta.v1.MicroTim" + + "e\0221\n\006series\030\003 \001(\0132!.k8s.io.api.events.v1" + + ".EventSeries\022\033\n\023reportingController\030\004 \001(" + + "\t\022\031\n\021reportingInstance\030\005 \001(\t\022\016\n\006action\030\006" + + " \001(\t\022\016\n\006reason\030\007 \001(\t\0226\n\tregarding\030\010 \001(\0132" + + "#.k8s.io.api.core.v1.ObjectReference\0224\n\007" + + "related\030\t \001(\0132#.k8s.io.api.core.v1.Objec" + + "tReference\022\014\n\004note\030\n \001(\t\022\014\n\004type\030\013 \001(\t\0229" + + "\n\020deprecatedSource\030\014 \001(\0132\037.k8s.io.api.co" + + "re.v1.EventSource\022L\n\030deprecatedFirstTime" + + "stamp\030\r \001(\0132*.k8s.io.apimachinery.pkg.ap" + + "is.meta.v1.Time\022K\n\027deprecatedLastTimesta" + + "mp\030\016 \001(\0132*.k8s.io.apimachinery.pkg.apis." + + "meta.v1.Time\022\027\n\017deprecatedCount\030\017 \001(\005\"y\n" + + "\tEventList\022@\n\010metadata\030\001 \001(\0132..k8s.io.ap" + + "imachinery.pkg.apis.meta.v1.ListMeta\022*\n\005" + + "items\030\002 \003(\0132\033.k8s.io.api.events.v1.Event" + + "\"g\n\013EventSeries\022\r\n\005count\030\001 \001(\005\022I\n\020lastOb" + + "servedTime\030\002 \001(\0132/.k8s.io.apimachinery.p" + + "kg.apis.meta.v1.MicroTimeB<\n\032io.kubernet" + + "es.client.protoB\010V1EventsZ\024k8s.io/api/ev" + + "ents/v1" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.kubernetes.client.proto.V1.getDescriptor(), + io.kubernetes.client.proto.Meta.getDescriptor(), + io.kubernetes.client.proto.Runtime.getDescriptor(), + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), + }, assigner); + internal_static_k8s_io_api_events_v1_Event_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_k8s_io_api_events_v1_Event_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_events_v1_Event_descriptor, + new java.lang.String[] { "Metadata", "EventTime", "Series", "ReportingController", "ReportingInstance", "Action", "Reason", "Regarding", "Related", "Note", "Type", "DeprecatedSource", "DeprecatedFirstTimestamp", "DeprecatedLastTimestamp", "DeprecatedCount", }); + internal_static_k8s_io_api_events_v1_EventList_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_k8s_io_api_events_v1_EventList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_events_v1_EventList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_events_v1_EventSeries_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_k8s_io_api_events_v1_EventSeries_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_events_v1_EventSeries_descriptor, + new java.lang.String[] { "Count", "LastObservedTime", }); + io.kubernetes.client.proto.V1.getDescriptor(); + io.kubernetes.client.proto.Meta.getDescriptor(); + io.kubernetes.client.proto.Runtime.getDescriptor(); + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Flowcontrol.java b/proto/src/main/java/io/kubernetes/client/proto/V1Flowcontrol.java new file mode 100644 index 0000000000..d540ae07bd --- /dev/null +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Flowcontrol.java @@ -0,0 +1,28240 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: k8s.io/api/flowcontrol/v1/generated.proto + +package io.kubernetes.client.proto; + +public final class V1Flowcontrol { + private V1Flowcontrol() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ExemptPriorityLevelConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+     * NominalConcurrencyLimit (NominalCL) of this level.
+     * This is the number of execution seats nominally reserved for this priority level.
+     * This DOES NOT limit the dispatching from this priority level
+     * but affects the other priority levels through the borrowing mechanism.
+     * The server's concurrency limit (ServerCL) is divided among all the
+     * priority levels in proportion to their NCS values:
+     * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+     * sum_ncs = sum[priority level k] NCS(k)
+     * Bigger numbers mean a larger nominal concurrency limit,
+     * at the expense of every other priority level.
+     * This field has a default value of zero.
+     * +optional
+     * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + boolean hasNominalConcurrencyShares(); + /** + *
+     * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+     * NominalConcurrencyLimit (NominalCL) of this level.
+     * This is the number of execution seats nominally reserved for this priority level.
+     * This DOES NOT limit the dispatching from this priority level
+     * but affects the other priority levels through the borrowing mechanism.
+     * The server's concurrency limit (ServerCL) is divided among all the
+     * priority levels in proportion to their NCS values:
+     * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+     * sum_ncs = sum[priority level k] NCS(k)
+     * Bigger numbers mean a larger nominal concurrency limit,
+     * at the expense of every other priority level.
+     * This field has a default value of zero.
+     * +optional
+     * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + int getNominalConcurrencyShares(); + + /** + *
+     * `lendablePercent` prescribes the fraction of the level's NominalCL that
+     * can be borrowed by other priority levels.  This value of this
+     * field must be between 0 and 100, inclusive, and it defaults to 0.
+     * The number of seats that other levels can borrow from this level, known
+     * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+     * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+     * +optional
+     * 
+ * + * optional int32 lendablePercent = 2; + */ + boolean hasLendablePercent(); + /** + *
+     * `lendablePercent` prescribes the fraction of the level's NominalCL that
+     * can be borrowed by other priority levels.  This value of this
+     * field must be between 0 and 100, inclusive, and it defaults to 0.
+     * The number of seats that other levels can borrow from this level, known
+     * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+     * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+     * +optional
+     * 
+ * + * optional int32 lendablePercent = 2; + */ + int getLendablePercent(); + } + /** + *
+   * ExemptPriorityLevelConfiguration describes the configurable aspects
+   * of the handling of exempt requests.
+   * In the mandatory exempt configuration object the values in the fields
+   * here can be modified by authorized users, unlike the rest of the `spec`.
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration} + */ + public static final class ExemptPriorityLevelConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration) + ExemptPriorityLevelConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExemptPriorityLevelConfiguration.newBuilder() to construct. + private ExemptPriorityLevelConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExemptPriorityLevelConfiguration() { + nominalConcurrencyShares_ = 0; + lendablePercent_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExemptPriorityLevelConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + bitField0_ |= 0x00000001; + nominalConcurrencyShares_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + lendablePercent_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_ExemptPriorityLevelConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_ExemptPriorityLevelConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.class, io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.Builder.class); + } + + private int bitField0_; + public static final int NOMINALCONCURRENCYSHARES_FIELD_NUMBER = 1; + private int nominalConcurrencyShares_; + /** + *
+     * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+     * NominalConcurrencyLimit (NominalCL) of this level.
+     * This is the number of execution seats nominally reserved for this priority level.
+     * This DOES NOT limit the dispatching from this priority level
+     * but affects the other priority levels through the borrowing mechanism.
+     * The server's concurrency limit (ServerCL) is divided among all the
+     * priority levels in proportion to their NCS values:
+     * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+     * sum_ncs = sum[priority level k] NCS(k)
+     * Bigger numbers mean a larger nominal concurrency limit,
+     * at the expense of every other priority level.
+     * This field has a default value of zero.
+     * +optional
+     * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + public boolean hasNominalConcurrencyShares() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+     * NominalConcurrencyLimit (NominalCL) of this level.
+     * This is the number of execution seats nominally reserved for this priority level.
+     * This DOES NOT limit the dispatching from this priority level
+     * but affects the other priority levels through the borrowing mechanism.
+     * The server's concurrency limit (ServerCL) is divided among all the
+     * priority levels in proportion to their NCS values:
+     * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+     * sum_ncs = sum[priority level k] NCS(k)
+     * Bigger numbers mean a larger nominal concurrency limit,
+     * at the expense of every other priority level.
+     * This field has a default value of zero.
+     * +optional
+     * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + public int getNominalConcurrencyShares() { + return nominalConcurrencyShares_; + } + + public static final int LENDABLEPERCENT_FIELD_NUMBER = 2; + private int lendablePercent_; + /** + *
+     * `lendablePercent` prescribes the fraction of the level's NominalCL that
+     * can be borrowed by other priority levels.  This value of this
+     * field must be between 0 and 100, inclusive, and it defaults to 0.
+     * The number of seats that other levels can borrow from this level, known
+     * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+     * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+     * +optional
+     * 
+ * + * optional int32 lendablePercent = 2; + */ + public boolean hasLendablePercent() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * `lendablePercent` prescribes the fraction of the level's NominalCL that
+     * can be borrowed by other priority levels.  This value of this
+     * field must be between 0 and 100, inclusive, and it defaults to 0.
+     * The number of seats that other levels can borrow from this level, known
+     * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+     * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+     * +optional
+     * 
+ * + * optional int32 lendablePercent = 2; + */ + public int getLendablePercent() { + return lendablePercent_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, nominalConcurrencyShares_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, lendablePercent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, nominalConcurrencyShares_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, lendablePercent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration other = (io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration) obj; + + boolean result = true; + result = result && (hasNominalConcurrencyShares() == other.hasNominalConcurrencyShares()); + if (hasNominalConcurrencyShares()) { + result = result && (getNominalConcurrencyShares() + == other.getNominalConcurrencyShares()); + } + result = result && (hasLendablePercent() == other.hasLendablePercent()); + if (hasLendablePercent()) { + result = result && (getLendablePercent() + == other.getLendablePercent()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNominalConcurrencyShares()) { + hash = (37 * hash) + NOMINALCONCURRENCYSHARES_FIELD_NUMBER; + hash = (53 * hash) + getNominalConcurrencyShares(); + } + if (hasLendablePercent()) { + hash = (37 * hash) + LENDABLEPERCENT_FIELD_NUMBER; + hash = (53 * hash) + getLendablePercent(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ExemptPriorityLevelConfiguration describes the configurable aspects
+     * of the handling of exempt requests.
+     * In the mandatory exempt configuration object the values in the fields
+     * here can be modified by authorized users, unlike the rest of the `spec`.
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration) + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_ExemptPriorityLevelConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_ExemptPriorityLevelConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.class, io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + nominalConcurrencyShares_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + lendablePercent_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_ExemptPriorityLevelConfiguration_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration build() { + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration result = new io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.nominalConcurrencyShares_ = nominalConcurrencyShares_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.lendablePercent_ = lendablePercent_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.getDefaultInstance()) return this; + if (other.hasNominalConcurrencyShares()) { + setNominalConcurrencyShares(other.getNominalConcurrencyShares()); + } + if (other.hasLendablePercent()) { + setLendablePercent(other.getLendablePercent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int nominalConcurrencyShares_ ; + /** + *
+       * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+       * NominalConcurrencyLimit (NominalCL) of this level.
+       * This is the number of execution seats nominally reserved for this priority level.
+       * This DOES NOT limit the dispatching from this priority level
+       * but affects the other priority levels through the borrowing mechanism.
+       * The server's concurrency limit (ServerCL) is divided among all the
+       * priority levels in proportion to their NCS values:
+       * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+       * sum_ncs = sum[priority level k] NCS(k)
+       * Bigger numbers mean a larger nominal concurrency limit,
+       * at the expense of every other priority level.
+       * This field has a default value of zero.
+       * +optional
+       * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + public boolean hasNominalConcurrencyShares() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+       * NominalConcurrencyLimit (NominalCL) of this level.
+       * This is the number of execution seats nominally reserved for this priority level.
+       * This DOES NOT limit the dispatching from this priority level
+       * but affects the other priority levels through the borrowing mechanism.
+       * The server's concurrency limit (ServerCL) is divided among all the
+       * priority levels in proportion to their NCS values:
+       * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+       * sum_ncs = sum[priority level k] NCS(k)
+       * Bigger numbers mean a larger nominal concurrency limit,
+       * at the expense of every other priority level.
+       * This field has a default value of zero.
+       * +optional
+       * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + public int getNominalConcurrencyShares() { + return nominalConcurrencyShares_; + } + /** + *
+       * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+       * NominalConcurrencyLimit (NominalCL) of this level.
+       * This is the number of execution seats nominally reserved for this priority level.
+       * This DOES NOT limit the dispatching from this priority level
+       * but affects the other priority levels through the borrowing mechanism.
+       * The server's concurrency limit (ServerCL) is divided among all the
+       * priority levels in proportion to their NCS values:
+       * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+       * sum_ncs = sum[priority level k] NCS(k)
+       * Bigger numbers mean a larger nominal concurrency limit,
+       * at the expense of every other priority level.
+       * This field has a default value of zero.
+       * +optional
+       * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + public Builder setNominalConcurrencyShares(int value) { + bitField0_ |= 0x00000001; + nominalConcurrencyShares_ = value; + onChanged(); + return this; + } + /** + *
+       * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+       * NominalConcurrencyLimit (NominalCL) of this level.
+       * This is the number of execution seats nominally reserved for this priority level.
+       * This DOES NOT limit the dispatching from this priority level
+       * but affects the other priority levels through the borrowing mechanism.
+       * The server's concurrency limit (ServerCL) is divided among all the
+       * priority levels in proportion to their NCS values:
+       * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+       * sum_ncs = sum[priority level k] NCS(k)
+       * Bigger numbers mean a larger nominal concurrency limit,
+       * at the expense of every other priority level.
+       * This field has a default value of zero.
+       * +optional
+       * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + public Builder clearNominalConcurrencyShares() { + bitField0_ = (bitField0_ & ~0x00000001); + nominalConcurrencyShares_ = 0; + onChanged(); + return this; + } + + private int lendablePercent_ ; + /** + *
+       * `lendablePercent` prescribes the fraction of the level's NominalCL that
+       * can be borrowed by other priority levels.  This value of this
+       * field must be between 0 and 100, inclusive, and it defaults to 0.
+       * The number of seats that other levels can borrow from this level, known
+       * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+       * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+       * +optional
+       * 
+ * + * optional int32 lendablePercent = 2; + */ + public boolean hasLendablePercent() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * `lendablePercent` prescribes the fraction of the level's NominalCL that
+       * can be borrowed by other priority levels.  This value of this
+       * field must be between 0 and 100, inclusive, and it defaults to 0.
+       * The number of seats that other levels can borrow from this level, known
+       * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+       * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+       * +optional
+       * 
+ * + * optional int32 lendablePercent = 2; + */ + public int getLendablePercent() { + return lendablePercent_; + } + /** + *
+       * `lendablePercent` prescribes the fraction of the level's NominalCL that
+       * can be borrowed by other priority levels.  This value of this
+       * field must be between 0 and 100, inclusive, and it defaults to 0.
+       * The number of seats that other levels can borrow from this level, known
+       * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+       * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+       * +optional
+       * 
+ * + * optional int32 lendablePercent = 2; + */ + public Builder setLendablePercent(int value) { + bitField0_ |= 0x00000002; + lendablePercent_ = value; + onChanged(); + return this; + } + /** + *
+       * `lendablePercent` prescribes the fraction of the level's NominalCL that
+       * can be borrowed by other priority levels.  This value of this
+       * field must be between 0 and 100, inclusive, and it defaults to 0.
+       * The number of seats that other levels can borrow from this level, known
+       * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+       * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+       * +optional
+       * 
+ * + * optional int32 lendablePercent = 2; + */ + public Builder clearLendablePercent() { + bitField0_ = (bitField0_ & ~0x00000002); + lendablePercent_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration) + private static final io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExemptPriorityLevelConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExemptPriorityLevelConfiguration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FlowDistinguisherMethodOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `type` is the type of flow distinguisher method
+     * The supported types are "ByUser" and "ByNamespace".
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + boolean hasType(); + /** + *
+     * `type` is the type of flow distinguisher method
+     * The supported types are "ByUser" and "ByNamespace".
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + java.lang.String getType(); + /** + *
+     * `type` is the type of flow distinguisher method
+     * The supported types are "ByUser" and "ByNamespace".
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + com.google.protobuf.ByteString + getTypeBytes(); + } + /** + *
+   * FlowDistinguisherMethod specifies the method of a flow distinguisher.
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod} + */ + public static final class FlowDistinguisherMethod extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod) + FlowDistinguisherMethodOrBuilder { + private static final long serialVersionUID = 0L; + // Use FlowDistinguisherMethod.newBuilder() to construct. + private FlowDistinguisherMethod(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FlowDistinguisherMethod() { + type_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FlowDistinguisherMethod( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + type_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowDistinguisherMethod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowDistinguisherMethod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.class, io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.Builder.class); + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object type_; + /** + *
+     * `type` is the type of flow distinguisher method
+     * The supported types are "ByUser" and "ByNamespace".
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `type` is the type of flow distinguisher method
+     * The supported types are "ByUser" and "ByNamespace".
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } + } + /** + *
+     * `type` is the type of flow distinguisher method
+     * The supported types are "ByUser" and "ByNamespace".
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod other = (io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod) obj; + + boolean result = true; + result = result && (hasType() == other.hasType()); + if (hasType()) { + result = result && getType() + .equals(other.getType()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * FlowDistinguisherMethod specifies the method of a flow distinguisher.
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod) + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethodOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowDistinguisherMethod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowDistinguisherMethod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.class, io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowDistinguisherMethod_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod build() { + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod result = new io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.type_ = type_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.getDefaultInstance()) return this; + if (other.hasType()) { + bitField0_ |= 0x00000001; + type_ = other.type_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object type_ = ""; + /** + *
+       * `type` is the type of flow distinguisher method
+       * The supported types are "ByUser" and "ByNamespace".
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `type` is the type of flow distinguisher method
+       * The supported types are "ByUser" and "ByNamespace".
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `type` is the type of flow distinguisher method
+       * The supported types are "ByUser" and "ByNamespace".
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `type` is the type of flow distinguisher method
+       * The supported types are "ByUser" and "ByNamespace".
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + /** + *
+       * `type` is the type of flow distinguisher method
+       * The supported types are "ByUser" and "ByNamespace".
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
+       * `type` is the type of flow distinguisher method
+       * The supported types are "ByUser" and "ByNamespace".
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod) + private static final io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlowDistinguisherMethod parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FlowDistinguisherMethod(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FlowSchemaOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.FlowSchema) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaSpec spec = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec getSpec(); + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaSpec spec = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaStatus status = 3; + */ + boolean hasStatus(); + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaStatus status = 3; + */ + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus getStatus(); + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaStatus status = 3; + */ + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatusOrBuilder getStatusOrBuilder(); + } + /** + *
+   * 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".
+   * +k8s:supportsSubresource="/status"
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.FlowSchema} + */ + public static final class FlowSchema extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.FlowSchema) + FlowSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use FlowSchema.newBuilder() to construct. + private FlowSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FlowSchema() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FlowSchema( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.class, io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int SPEC_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec 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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec getSpec() { + return spec_ == null ? io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.getDefaultInstance() : 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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpecOrBuilder getSpecOrBuilder() { + return spec_ == null ? io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.getDefaultInstance() : spec_; + } + + public static final int STATUS_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus 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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaStatus status = 3; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaStatus status = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus getStatus() { + return status_ == null ? io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.getDefaultInstance() : 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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaStatus status = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatusOrBuilder getStatusOrBuilder() { + return status_ == null ? io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.getDefaultInstance() : status_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getSpec()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getStatus()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStatus()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.FlowSchema)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.FlowSchema other = (io.kubernetes.client.proto.V1Flowcontrol.FlowSchema) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && (hasStatus() == other.hasStatus()); + if (hasStatus()) { + result = result && getStatus() + .equals(other.getStatus()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchema parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchema parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchema parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchema parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchema parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchema parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchema parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchema parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchema parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchema parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchema parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.FlowSchema prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * 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".
+     * +k8s:supportsSubresource="/status"
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.FlowSchema} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.FlowSchema) + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.class, io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getSpecFieldBuilder(); + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (specBuilder_ == null) { + spec_ = null; + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (statusBuilder_ == null) { + status_ = null; + } else { + statusBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchema_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchema getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchema build() { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchema buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchema result = new io.kubernetes.client.proto.V1Flowcontrol.FlowSchema(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.FlowSchema) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.FlowSchema)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.FlowSchema other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchema parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.FlowSchema) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.Builder, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpecOrBuilder> specBuilder_; + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaSpec spec = 2; + */ + public Builder setSpec(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaSpec spec = 2; + */ + public Builder setSpec( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaSpec spec = 2; + */ + public Builder mergeSpec(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + spec_ != null && + spec_ != io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.getDefaultInstance()) { + spec_ = + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.getDefaultInstance() : 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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.Builder, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.Builder, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus status_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.Builder, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatusOrBuilder> statusBuilder_; + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaStatus status = 3; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaStatus status = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaStatus status = 3; + */ + public Builder setStatus(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaStatus status = 3; + */ + public Builder setStatus( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaStatus status = 3; + */ + public Builder mergeStatus(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + status_ != null && + status_ != io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.getDefaultInstance()) { + status_ = + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaStatus status = 3; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + statusBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaStatus status = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.Builder getStatusBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaStatus status = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.getDefaultInstance() : 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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowSchemaStatus status = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.Builder, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.Builder, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.FlowSchema) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.FlowSchema) + private static final io.kubernetes.client.proto.V1Flowcontrol.FlowSchema DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.FlowSchema(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchema getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlowSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FlowSchema(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchema getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FlowSchemaConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.FlowSchemaCondition) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `type` is the type of the condition.
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + boolean hasType(); + /** + *
+     * `type` is the type of the condition.
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + java.lang.String getType(); + /** + *
+     * `type` is the type of the condition.
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+     * `status` is the status of the condition.
+     * Can be True, False, Unknown.
+     * Required.
+     * 
+ * + * optional string status = 2; + */ + boolean hasStatus(); + /** + *
+     * `status` is the status of the condition.
+     * Can be True, False, Unknown.
+     * Required.
+     * 
+ * + * optional string status = 2; + */ + java.lang.String getStatus(); + /** + *
+     * `status` is the status of the condition.
+     * Can be True, False, Unknown.
+     * Required.
+     * 
+ * + * optional string status = 2; + */ + com.google.protobuf.ByteString + getStatusBytes(); + + /** + *
+     * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + boolean hasLastTransitionTime(); + /** + *
+     * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + io.kubernetes.client.proto.Meta.Time getLastTransitionTime(); + /** + *
+     * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder(); + + /** + *
+     * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+     * 
+ * + * optional string reason = 4; + */ + boolean hasReason(); + /** + *
+     * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+     * 
+ * + * optional string reason = 4; + */ + java.lang.String getReason(); + /** + *
+     * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+     * 
+ * + * optional string reason = 4; + */ + com.google.protobuf.ByteString + getReasonBytes(); + + /** + *
+     * `message` is a human-readable message indicating details about last transition.
+     * 
+ * + * optional string message = 5; + */ + boolean hasMessage(); + /** + *
+     * `message` is a human-readable message indicating details about last transition.
+     * 
+ * + * optional string message = 5; + */ + java.lang.String getMessage(); + /** + *
+     * `message` is a human-readable message indicating details about last transition.
+     * 
+ * + * optional string message = 5; + */ + com.google.protobuf.ByteString + getMessageBytes(); + } + /** + *
+   * FlowSchemaCondition describes conditions for a FlowSchema.
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.FlowSchemaCondition} + */ + public static final class FlowSchemaCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.FlowSchemaCondition) + FlowSchemaConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use FlowSchemaCondition.newBuilder() to construct. + private FlowSchemaCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FlowSchemaCondition() { + type_ = ""; + status_ = ""; + reason_ = ""; + message_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FlowSchemaCondition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + type_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + status_ = bs; + break; + } + case 26: { + io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = lastTransitionTime_.toBuilder(); + } + lastTransitionTime_ = input.readMessage(io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastTransitionTime_); + lastTransitionTime_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + reason_ = bs; + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000010; + message_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.class, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.Builder.class); + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object type_; + /** + *
+     * `type` is the type of the condition.
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `type` is the type of the condition.
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } + } + /** + *
+     * `type` is the type of the condition.
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private volatile java.lang.Object status_; + /** + *
+     * `status` is the status of the condition.
+     * Can be True, False, Unknown.
+     * Required.
+     * 
+ * + * optional string status = 2; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * `status` is the status of the condition.
+     * Can be True, False, Unknown.
+     * Required.
+     * 
+ * + * optional string status = 2; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + status_ = s; + } + return s; + } + } + /** + *
+     * `status` is the status of the condition.
+     * Can be True, False, Unknown.
+     * Required.
+     * 
+ * + * optional string status = 2; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LASTTRANSITIONTIME_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.Meta.Time lastTransitionTime_; + /** + *
+     * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public boolean hasLastTransitionTime() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { + return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + } + /** + *
+     * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { + return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + } + + public static final int REASON_FIELD_NUMBER = 4; + private volatile java.lang.Object reason_; + /** + *
+     * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+     * 
+ * + * optional string reason = 4; + */ + public boolean hasReason() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+     * 
+ * + * optional string reason = 4; + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + reason_ = s; + } + return s; + } + } + /** + *
+     * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+     * 
+ * + * optional string reason = 4; + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 5; + private volatile java.lang.Object message_; + /** + *
+     * `message` is a human-readable message indicating details about last transition.
+     * 
+ * + * optional string message = 5; + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+     * `message` is a human-readable message indicating details about last transition.
+     * 
+ * + * optional string message = 5; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + message_ = s; + } + return s; + } + } + /** + *
+     * `message` is a human-readable message indicating details about last transition.
+     * 
+ * + * optional string message = 5; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getLastTransitionTime()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reason_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLastTransitionTime()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reason_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition other = (io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition) obj; + + boolean result = true; + result = result && (hasType() == other.hasType()); + if (hasType()) { + result = result && getType() + .equals(other.getType()); + } + result = result && (hasStatus() == other.hasStatus()); + if (hasStatus()) { + result = result && getStatus() + .equals(other.getStatus()); + } + result = result && (hasLastTransitionTime() == other.hasLastTransitionTime()); + if (hasLastTransitionTime()) { + result = result && getLastTransitionTime() + .equals(other.getLastTransitionTime()); + } + result = result && (hasReason() == other.hasReason()); + if (hasReason()) { + result = result && getReason() + .equals(other.getReason()); + } + result = result && (hasMessage() == other.hasMessage()); + if (hasMessage()) { + result = result && getMessage() + .equals(other.getMessage()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasLastTransitionTime()) { + hash = (37 * hash) + LASTTRANSITIONTIME_FIELD_NUMBER; + hash = (53 * hash) + getLastTransitionTime().hashCode(); + } + if (hasReason()) { + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + } + if (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * FlowSchemaCondition describes conditions for a FlowSchema.
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.FlowSchemaCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.FlowSchemaCondition) + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.class, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLastTransitionTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + status_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTime_ = null; + } else { + lastTransitionTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + reason_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + message_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaCondition_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition build() { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition result = new io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.status_ = status_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (lastTransitionTimeBuilder_ == null) { + result.lastTransitionTime_ = lastTransitionTime_; + } else { + result.lastTransitionTime_ = lastTransitionTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.reason_ = reason_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.message_ = message_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.getDefaultInstance()) return this; + if (other.hasType()) { + bitField0_ |= 0x00000001; + type_ = other.type_; + onChanged(); + } + if (other.hasStatus()) { + bitField0_ |= 0x00000002; + status_ = other.status_; + onChanged(); + } + if (other.hasLastTransitionTime()) { + mergeLastTransitionTime(other.getLastTransitionTime()); + } + if (other.hasReason()) { + bitField0_ |= 0x00000008; + reason_ = other.reason_; + onChanged(); + } + if (other.hasMessage()) { + bitField0_ |= 0x00000010; + message_ = other.message_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object type_ = ""; + /** + *
+       * `type` is the type of the condition.
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `type` is the type of the condition.
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `type` is the type of the condition.
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `type` is the type of the condition.
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + /** + *
+       * `type` is the type of the condition.
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
+       * `type` is the type of the condition.
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + /** + *
+       * `status` is the status of the condition.
+       * Can be True, False, Unknown.
+       * Required.
+       * 
+ * + * optional string status = 2; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * `status` is the status of the condition.
+       * Can be True, False, Unknown.
+       * Required.
+       * 
+ * + * optional string status = 2; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + status_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `status` is the status of the condition.
+       * Can be True, False, Unknown.
+       * Required.
+       * 
+ * + * optional string status = 2; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `status` is the status of the condition.
+       * Can be True, False, Unknown.
+       * Required.
+       * 
+ * + * optional string status = 2; + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + status_ = value; + onChanged(); + return this; + } + /** + *
+       * `status` is the status of the condition.
+       * Can be True, False, Unknown.
+       * Required.
+       * 
+ * + * optional string status = 2; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + status_ = getDefaultInstance().getStatus(); + onChanged(); + return this; + } + /** + *
+       * `status` is the status of the condition.
+       * Can be True, False, Unknown.
+       * Required.
+       * 
+ * + * optional string status = 2; + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + status_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.Meta.Time lastTransitionTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> lastTransitionTimeBuilder_; + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public boolean hasLastTransitionTime() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { + if (lastTransitionTimeBuilder_ == null) { + return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + } else { + return lastTransitionTimeBuilder_.getMessage(); + } + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public Builder setLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { + if (lastTransitionTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastTransitionTime_ = value; + onChanged(); + } else { + lastTransitionTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public Builder setLastTransitionTime( + io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTime_ = builderForValue.build(); + onChanged(); + } else { + lastTransitionTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public Builder mergeLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { + if (lastTransitionTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + lastTransitionTime_ != null && + lastTransitionTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { + lastTransitionTime_ = + io.kubernetes.client.proto.Meta.Time.newBuilder(lastTransitionTime_).mergeFrom(value).buildPartial(); + } else { + lastTransitionTime_ = value; + } + onChanged(); + } else { + lastTransitionTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public Builder clearLastTransitionTime() { + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTime_ = null; + onChanged(); + } else { + lastTransitionTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public io.kubernetes.client.proto.Meta.Time.Builder getLastTransitionTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getLastTransitionTimeFieldBuilder().getBuilder(); + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { + if (lastTransitionTimeBuilder_ != null) { + return lastTransitionTimeBuilder_.getMessageOrBuilder(); + } else { + return lastTransitionTime_ == null ? + io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + } + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> + getLastTransitionTimeFieldBuilder() { + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( + getLastTransitionTime(), + getParentForChildren(), + isClean()); + lastTransitionTime_ = null; + } + return lastTransitionTimeBuilder_; + } + + private java.lang.Object reason_ = ""; + /** + *
+       * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+       * 
+ * + * optional string reason = 4; + */ + public boolean hasReason() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+       * 
+ * + * optional string reason = 4; + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + reason_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+       * 
+ * + * optional string reason = 4; + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+       * 
+ * + * optional string reason = 4; + */ + public Builder setReason( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + reason_ = value; + onChanged(); + return this; + } + /** + *
+       * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+       * 
+ * + * optional string reason = 4; + */ + public Builder clearReason() { + bitField0_ = (bitField0_ & ~0x00000008); + reason_ = getDefaultInstance().getReason(); + onChanged(); + return this; + } + /** + *
+       * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+       * 
+ * + * optional string reason = 4; + */ + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + reason_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+       * `message` is a human-readable message indicating details about last transition.
+       * 
+ * + * optional string message = 5; + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+       * `message` is a human-readable message indicating details about last transition.
+       * 
+ * + * optional string message = 5; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + message_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `message` is a human-readable message indicating details about last transition.
+       * 
+ * + * optional string message = 5; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `message` is a human-readable message indicating details about last transition.
+       * 
+ * + * optional string message = 5; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + message_ = value; + onChanged(); + return this; + } + /** + *
+       * `message` is a human-readable message indicating details about last transition.
+       * 
+ * + * optional string message = 5; + */ + public Builder clearMessage() { + bitField0_ = (bitField0_ & ~0x00000010); + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * `message` is a human-readable message indicating details about last transition.
+       * 
+ * + * optional string message = 5; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + message_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.FlowSchemaCondition) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.FlowSchemaCondition) + private static final io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlowSchemaCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FlowSchemaCondition(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FlowSchemaListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.FlowSchemaList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `metadata` is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * `metadata` is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * `metadata` is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * `items` is a list of FlowSchemas.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * `items` is a list of FlowSchemas.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.FlowSchema getItems(int index); + /** + *
+     * `items` is a list of FlowSchemas.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + int getItemsCount(); + /** + *
+     * `items` is a list of FlowSchemas.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * `items` is a list of FlowSchemas.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * FlowSchemaList is a list of FlowSchema objects.
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.FlowSchemaList} + */ + public static final class FlowSchemaList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.FlowSchemaList) + FlowSchemaListOrBuilder { + private static final long serialVersionUID = 0L; + // Use FlowSchemaList.newBuilder() to construct. + private FlowSchemaList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FlowSchemaList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FlowSchemaList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList.class, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * `metadata` is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `metadata` is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * `metadata` is the standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * `items` is a list of FlowSchemas.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * `items` is a list of FlowSchemas.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * `items` is a list of FlowSchemas.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * `items` is a list of FlowSchemas.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchema getItems(int index) { + return items_.get(index); + } + /** + *
+     * `items` is a list of FlowSchemas.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList other = (io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * FlowSchemaList is a list of FlowSchema objects.
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.FlowSchemaList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.FlowSchemaList) + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList.class, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList build() { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList result = new io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * `metadata` is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `metadata` is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * `metadata` is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * `metadata` is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * `metadata` is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * `metadata` is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * `metadata` is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * `metadata` is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * `metadata` is the standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.FlowSchema, io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.Builder, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaOrBuilder> itemsBuilder_; + + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchema getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Flowcontrol.FlowSchema value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V1Flowcontrol.FlowSchema value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Flowcontrol.FlowSchema value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.getDefaultInstance()); + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.getDefaultInstance()); + } + /** + *
+       * `items` is a list of FlowSchemas.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchema items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.FlowSchema, io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.Builder, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.FlowSchema, io.kubernetes.client.proto.V1Flowcontrol.FlowSchema.Builder, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.FlowSchemaList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.FlowSchemaList) + private static final io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlowSchemaList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FlowSchemaList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FlowSchemaSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.FlowSchemaSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `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.
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference priorityLevelConfiguration = 1; + */ + boolean hasPriorityLevelConfiguration(); + /** + *
+     * `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.
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference priorityLevelConfiguration = 1; + */ + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference getPriorityLevelConfiguration(); + /** + *
+     * `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.
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference priorityLevelConfiguration = 1; + */ + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReferenceOrBuilder getPriorityLevelConfigurationOrBuilder(); + + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional int32 matchingPrecedence = 2; + */ + boolean hasMatchingPrecedence(); + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional int32 matchingPrecedence = 2; + */ + int getMatchingPrecedence(); + + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod distinguisherMethod = 3; + */ + boolean hasDistinguisherMethod(); + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod distinguisherMethod = 3; + */ + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod getDistinguisherMethod(); + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod distinguisherMethod = 3; + */ + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethodOrBuilder getDistinguisherMethodOrBuilder(); + + /** + *
+     * `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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + java.util.List + getRulesList(); + /** + *
+     * `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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects getRules(int index); + /** + *
+     * `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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + int getRulesCount(); + /** + *
+     * `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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + java.util.List + getRulesOrBuilderList(); + /** + *
+     * `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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjectsOrBuilder getRulesOrBuilder( + int index); + } + /** + *
+   * FlowSchemaSpec describes how the FlowSchema's specification looks like.
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.FlowSchemaSpec} + */ + public static final class FlowSchemaSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.FlowSchemaSpec) + FlowSchemaSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use FlowSchemaSpec.newBuilder() to construct. + private FlowSchemaSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FlowSchemaSpec() { + matchingPrecedence_ = 0; + rules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FlowSchemaSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = priorityLevelConfiguration_.toBuilder(); + } + priorityLevelConfiguration_ = input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(priorityLevelConfiguration_); + priorityLevelConfiguration_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 16: { + bitField0_ |= 0x00000002; + matchingPrecedence_ = input.readInt32(); + break; + } + case 26: { + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = distinguisherMethod_.toBuilder(); + } + distinguisherMethod_ = input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(distinguisherMethod_); + distinguisherMethod_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + rules_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + rules_.add( + input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.class, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.Builder.class); + } + + private int bitField0_; + public static final int PRIORITYLEVELCONFIGURATION_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference 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.
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference priorityLevelConfiguration = 1; + */ + public boolean hasPriorityLevelConfiguration() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `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.
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference priorityLevelConfiguration = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference getPriorityLevelConfiguration() { + return priorityLevelConfiguration_ == null ? io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.getDefaultInstance() : 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.
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference priorityLevelConfiguration = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReferenceOrBuilder getPriorityLevelConfigurationOrBuilder() { + return priorityLevelConfiguration_ == null ? io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.getDefaultInstance() : priorityLevelConfiguration_; + } + + public static final int MATCHINGPRECEDENCE_FIELD_NUMBER = 2; + private int 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.
+     * +optional
+     * 
+ * + * optional int32 matchingPrecedence = 2; + */ + public boolean hasMatchingPrecedence() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional int32 matchingPrecedence = 2; + */ + public int getMatchingPrecedence() { + return matchingPrecedence_; + } + + public static final int DISTINGUISHERMETHOD_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod 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.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod distinguisherMethod = 3; + */ + public boolean hasDistinguisherMethod() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod distinguisherMethod = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod getDistinguisherMethod() { + return distinguisherMethod_ == null ? io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.getDefaultInstance() : 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.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod distinguisherMethod = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethodOrBuilder getDistinguisherMethodOrBuilder() { + return distinguisherMethod_ == null ? io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.getDefaultInstance() : distinguisherMethod_; + } + + public static final int RULES_FIELD_NUMBER = 4; + private java.util.List 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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public java.util.List getRulesList() { + return 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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public java.util.List + getRulesOrBuilderList() { + return 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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public int getRulesCount() { + return rules_.size(); + } + /** + *
+     * `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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects getRules(int index) { + return rules_.get(index); + } + /** + *
+     * `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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjectsOrBuilder getRulesOrBuilder( + int index) { + return rules_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getPriorityLevelConfiguration()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, matchingPrecedence_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getDistinguisherMethod()); + } + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(4, rules_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getPriorityLevelConfiguration()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, matchingPrecedence_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDistinguisherMethod()); + } + for (int i = 0; i < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, rules_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec other = (io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec) obj; + + boolean result = true; + result = result && (hasPriorityLevelConfiguration() == other.hasPriorityLevelConfiguration()); + if (hasPriorityLevelConfiguration()) { + result = result && getPriorityLevelConfiguration() + .equals(other.getPriorityLevelConfiguration()); + } + result = result && (hasMatchingPrecedence() == other.hasMatchingPrecedence()); + if (hasMatchingPrecedence()) { + result = result && (getMatchingPrecedence() + == other.getMatchingPrecedence()); + } + result = result && (hasDistinguisherMethod() == other.hasDistinguisherMethod()); + if (hasDistinguisherMethod()) { + result = result && getDistinguisherMethod() + .equals(other.getDistinguisherMethod()); + } + result = result && getRulesList() + .equals(other.getRulesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasPriorityLevelConfiguration()) { + hash = (37 * hash) + PRIORITYLEVELCONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getPriorityLevelConfiguration().hashCode(); + } + if (hasMatchingPrecedence()) { + hash = (37 * hash) + MATCHINGPRECEDENCE_FIELD_NUMBER; + hash = (53 * hash) + getMatchingPrecedence(); + } + if (hasDistinguisherMethod()) { + hash = (37 * hash) + DISTINGUISHERMETHOD_FIELD_NUMBER; + hash = (53 * hash) + getDistinguisherMethod().hashCode(); + } + if (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * FlowSchemaSpec describes how the FlowSchema's specification looks like.
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.FlowSchemaSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.FlowSchemaSpec) + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.class, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPriorityLevelConfigurationFieldBuilder(); + getDistinguisherMethodFieldBuilder(); + getRulesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (priorityLevelConfigurationBuilder_ == null) { + priorityLevelConfiguration_ = null; + } else { + priorityLevelConfigurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + matchingPrecedence_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + if (distinguisherMethodBuilder_ == null) { + distinguisherMethod_ = null; + } else { + distinguisherMethodBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + rulesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaSpec_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec build() { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec result = new io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (priorityLevelConfigurationBuilder_ == null) { + result.priorityLevelConfiguration_ = priorityLevelConfiguration_; + } else { + result.priorityLevelConfiguration_ = priorityLevelConfigurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.matchingPrecedence_ = matchingPrecedence_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (distinguisherMethodBuilder_ == null) { + result.distinguisherMethod_ = distinguisherMethod_; + } else { + result.distinguisherMethod_ = distinguisherMethodBuilder_.build(); + } + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec.getDefaultInstance()) return this; + if (other.hasPriorityLevelConfiguration()) { + mergePriorityLevelConfiguration(other.getPriorityLevelConfiguration()); + } + if (other.hasMatchingPrecedence()) { + setMatchingPrecedence(other.getMatchingPrecedence()); + } + if (other.hasDistinguisherMethod()) { + mergeDistinguisherMethod(other.getDistinguisherMethod()); + } + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000008); + rulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRulesFieldBuilder() : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference priorityLevelConfiguration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.Builder, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReferenceOrBuilder> priorityLevelConfigurationBuilder_; + /** + *
+       * `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.
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference priorityLevelConfiguration = 1; + */ + public boolean hasPriorityLevelConfiguration() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `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.
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference priorityLevelConfiguration = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference getPriorityLevelConfiguration() { + if (priorityLevelConfigurationBuilder_ == null) { + return priorityLevelConfiguration_ == null ? io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.getDefaultInstance() : priorityLevelConfiguration_; + } else { + return priorityLevelConfigurationBuilder_.getMessage(); + } + } + /** + *
+       * `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.
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference priorityLevelConfiguration = 1; + */ + public Builder setPriorityLevelConfiguration(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference value) { + if (priorityLevelConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + priorityLevelConfiguration_ = value; + onChanged(); + } else { + priorityLevelConfigurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * `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.
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference priorityLevelConfiguration = 1; + */ + public Builder setPriorityLevelConfiguration( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.Builder builderForValue) { + if (priorityLevelConfigurationBuilder_ == null) { + priorityLevelConfiguration_ = builderForValue.build(); + onChanged(); + } else { + priorityLevelConfigurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * `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.
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference priorityLevelConfiguration = 1; + */ + public Builder mergePriorityLevelConfiguration(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference value) { + if (priorityLevelConfigurationBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + priorityLevelConfiguration_ != null && + priorityLevelConfiguration_ != io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.getDefaultInstance()) { + priorityLevelConfiguration_ = + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.newBuilder(priorityLevelConfiguration_).mergeFrom(value).buildPartial(); + } else { + priorityLevelConfiguration_ = value; + } + onChanged(); + } else { + priorityLevelConfigurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * `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.
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference priorityLevelConfiguration = 1; + */ + public Builder clearPriorityLevelConfiguration() { + if (priorityLevelConfigurationBuilder_ == null) { + priorityLevelConfiguration_ = null; + onChanged(); + } else { + priorityLevelConfigurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * `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.
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference priorityLevelConfiguration = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.Builder getPriorityLevelConfigurationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPriorityLevelConfigurationFieldBuilder().getBuilder(); + } + /** + *
+       * `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.
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference priorityLevelConfiguration = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReferenceOrBuilder getPriorityLevelConfigurationOrBuilder() { + if (priorityLevelConfigurationBuilder_ != null) { + return priorityLevelConfigurationBuilder_.getMessageOrBuilder(); + } else { + return priorityLevelConfiguration_ == null ? + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.getDefaultInstance() : 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.
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference priorityLevelConfiguration = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.Builder, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReferenceOrBuilder> + getPriorityLevelConfigurationFieldBuilder() { + if (priorityLevelConfigurationBuilder_ == null) { + priorityLevelConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.Builder, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReferenceOrBuilder>( + getPriorityLevelConfiguration(), + getParentForChildren(), + isClean()); + priorityLevelConfiguration_ = null; + } + return priorityLevelConfigurationBuilder_; + } + + private int 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.
+       * +optional
+       * 
+ * + * optional int32 matchingPrecedence = 2; + */ + public boolean hasMatchingPrecedence() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional int32 matchingPrecedence = 2; + */ + public int getMatchingPrecedence() { + return 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.
+       * +optional
+       * 
+ * + * optional int32 matchingPrecedence = 2; + */ + public Builder setMatchingPrecedence(int value) { + bitField0_ |= 0x00000002; + matchingPrecedence_ = value; + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional int32 matchingPrecedence = 2; + */ + public Builder clearMatchingPrecedence() { + bitField0_ = (bitField0_ & ~0x00000002); + matchingPrecedence_ = 0; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod distinguisherMethod_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod, io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.Builder, io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethodOrBuilder> distinguisherMethodBuilder_; + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod distinguisherMethod = 3; + */ + public boolean hasDistinguisherMethod() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod distinguisherMethod = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod getDistinguisherMethod() { + if (distinguisherMethodBuilder_ == null) { + return distinguisherMethod_ == null ? io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.getDefaultInstance() : distinguisherMethod_; + } else { + return distinguisherMethodBuilder_.getMessage(); + } + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod distinguisherMethod = 3; + */ + public Builder setDistinguisherMethod(io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod value) { + if (distinguisherMethodBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + distinguisherMethod_ = value; + onChanged(); + } else { + distinguisherMethodBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod distinguisherMethod = 3; + */ + public Builder setDistinguisherMethod( + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.Builder builderForValue) { + if (distinguisherMethodBuilder_ == null) { + distinguisherMethod_ = builderForValue.build(); + onChanged(); + } else { + distinguisherMethodBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod distinguisherMethod = 3; + */ + public Builder mergeDistinguisherMethod(io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod value) { + if (distinguisherMethodBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + distinguisherMethod_ != null && + distinguisherMethod_ != io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.getDefaultInstance()) { + distinguisherMethod_ = + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.newBuilder(distinguisherMethod_).mergeFrom(value).buildPartial(); + } else { + distinguisherMethod_ = value; + } + onChanged(); + } else { + distinguisherMethodBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod distinguisherMethod = 3; + */ + public Builder clearDistinguisherMethod() { + if (distinguisherMethodBuilder_ == null) { + distinguisherMethod_ = null; + onChanged(); + } else { + distinguisherMethodBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod distinguisherMethod = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.Builder getDistinguisherMethodBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDistinguisherMethodFieldBuilder().getBuilder(); + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod distinguisherMethod = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethodOrBuilder getDistinguisherMethodOrBuilder() { + if (distinguisherMethodBuilder_ != null) { + return distinguisherMethodBuilder_.getMessageOrBuilder(); + } else { + return distinguisherMethod_ == null ? + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.getDefaultInstance() : 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.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.FlowDistinguisherMethod distinguisherMethod = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod, io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.Builder, io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethodOrBuilder> + getDistinguisherMethodFieldBuilder() { + if (distinguisherMethodBuilder_ == null) { + distinguisherMethodBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod, io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethod.Builder, io.kubernetes.client.proto.V1Flowcontrol.FlowDistinguisherMethodOrBuilder>( + getDistinguisherMethod(), + getParentForChildren(), + isClean()); + distinguisherMethod_ = null; + } + return distinguisherMethodBuilder_; + } + + private java.util.List rules_ = + java.util.Collections.emptyList(); + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects, io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.Builder, io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjectsOrBuilder> rulesBuilder_; + + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public Builder setRules( + int index, io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public Builder setRules( + int index, io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public Builder addRules(io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public Builder addRules( + int index, io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public Builder addRules( + io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public Builder addRules( + int index, io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.Builder getRulesBuilder( + int index) { + return getRulesFieldBuilder().getBuilder(index); + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjectsOrBuilder getRulesOrBuilder( + int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.Builder addRulesBuilder() { + return getRulesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.getDefaultInstance()); + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.Builder addRulesBuilder( + int index) { + return getRulesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.getDefaultInstance()); + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects rules = 4; + */ + public java.util.List + getRulesBuilderList() { + return getRulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects, io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.Builder, io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjectsOrBuilder> + getRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects, io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.Builder, io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjectsOrBuilder>( + rules_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + rules_ = null; + } + return rulesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.FlowSchemaSpec) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.FlowSchemaSpec) + private static final io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlowSchemaSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FlowSchemaSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FlowSchemaStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.FlowSchemaStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `conditions` is a list of the current states of FlowSchema.
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + java.util.List + getConditionsList(); + /** + *
+     * `conditions` is a list of the current states of FlowSchema.
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition getConditions(int index); + /** + *
+     * `conditions` is a list of the current states of FlowSchema.
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + int getConditionsCount(); + /** + *
+     * `conditions` is a list of the current states of FlowSchema.
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+     * `conditions` is a list of the current states of FlowSchema.
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaConditionOrBuilder getConditionsOrBuilder( + int index); + } + /** + *
+   * FlowSchemaStatus represents the current state of a FlowSchema.
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.FlowSchemaStatus} + */ + public static final class FlowSchemaStatus extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.FlowSchemaStatus) + FlowSchemaStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use FlowSchemaStatus.newBuilder() to construct. + private FlowSchemaStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FlowSchemaStatus() { + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FlowSchemaStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + conditions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + conditions_.add( + input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.class, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.Builder.class); + } + + public static final int CONDITIONS_FIELD_NUMBER = 1; + private java.util.List conditions_; + /** + *
+     * `conditions` is a list of the current states of FlowSchema.
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+     * `conditions` is a list of the current states of FlowSchema.
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+     * `conditions` is a list of the current states of FlowSchema.
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+     * `conditions` is a list of the current states of FlowSchema.
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition getConditions(int index) { + return conditions_.get(index); + } + /** + *
+     * `conditions` is a list of the current states of FlowSchema.
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaConditionOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(1, conditions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, conditions_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus other = (io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus) obj; + + boolean result = true; + result = result && getConditionsList() + .equals(other.getConditionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * FlowSchemaStatus represents the current state of a FlowSchema.
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.FlowSchemaStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.FlowSchemaStatus) + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.class, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConditionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + conditionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaStatus_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus build() { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus result = new io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus(this); + int from_bitField0_ = bitField0_; + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus.getDefaultInstance()) return this; + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000001); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.Builder, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaConditionOrBuilder> conditionsBuilder_; + + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public Builder setConditions( + int index, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public Builder setConditions( + int index, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public Builder addConditions(io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public Builder addConditions( + int index, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public Builder addConditions( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public Builder addConditions( + int index, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaConditionOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.getDefaultInstance()); + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.getDefaultInstance()); + } + /** + *
+       * `conditions` is a list of the current states of FlowSchema.
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.FlowSchemaCondition conditions = 1; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.Builder, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaCondition.Builder, io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaConditionOrBuilder>( + conditions_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.FlowSchemaStatus) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.FlowSchemaStatus) + private static final io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FlowSchemaStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FlowSchemaStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.FlowSchemaStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GroupSubjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.GroupSubject) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * 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.
+     * 
+ * + * optional string name = 1; + */ + boolean hasName(); + /** + *
+     * 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.
+     * 
+ * + * optional string name = 1; + */ + java.lang.String getName(); + /** + *
+     * 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.
+     * 
+ * + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * GroupSubject holds detailed information for group-kind subject.
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.GroupSubject} + */ + public static final class GroupSubject extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.GroupSubject) + GroupSubjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupSubject.newBuilder() to construct. + private GroupSubject(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GroupSubject() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GroupSubject( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_GroupSubject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_GroupSubject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.class, io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object 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.
+     * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * 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.
+     * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + *
+     * 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.
+     * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.GroupSubject)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.GroupSubject other = (io.kubernetes.client.proto.V1Flowcontrol.GroupSubject) obj; + + boolean result = true; + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.GroupSubject parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.GroupSubject parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.GroupSubject parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.GroupSubject parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.GroupSubject parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.GroupSubject parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.GroupSubject parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.GroupSubject parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.GroupSubject parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.GroupSubject parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.GroupSubject parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.GroupSubject parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.GroupSubject prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * GroupSubject holds detailed information for group-kind subject.
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.GroupSubject} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.GroupSubject) + io.kubernetes.client.proto.V1Flowcontrol.GroupSubjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_GroupSubject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_GroupSubject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.class, io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_GroupSubject_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.GroupSubject getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.GroupSubject build() { + io.kubernetes.client.proto.V1Flowcontrol.GroupSubject result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.GroupSubject buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.GroupSubject result = new io.kubernetes.client.proto.V1Flowcontrol.GroupSubject(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.GroupSubject) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.GroupSubject)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.GroupSubject other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.GroupSubject parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.GroupSubject) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object 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.
+       * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * 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.
+       * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * 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.
+       * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * 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.
+       * 
+ * + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + *
+       * 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.
+       * 
+ * + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * 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.
+       * 
+ * + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.GroupSubject) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.GroupSubject) + private static final io.kubernetes.client.proto.V1Flowcontrol.GroupSubject DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.GroupSubject(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.GroupSubject getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupSubject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GroupSubject(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.GroupSubject getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LimitResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.LimitResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `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.
+     * +unionDiscriminator
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+     * 
+ * + * optional string type = 1; + */ + boolean hasType(); + /** + *
+     * `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.
+     * +unionDiscriminator
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+     * 
+ * + * optional string type = 1; + */ + java.lang.String getType(); + /** + *
+     * `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.
+     * +unionDiscriminator
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+     * 
+ * + * optional string type = 1; + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+     * `queuing` holds the configuration parameters for queuing.
+     * This field may be non-empty only if `type` is `"Queue"`.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Queue")=+k8s:required
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.QueuingConfiguration queuing = 2; + */ + boolean hasQueuing(); + /** + *
+     * `queuing` holds the configuration parameters for queuing.
+     * This field may be non-empty only if `type` is `"Queue"`.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Queue")=+k8s:required
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.QueuingConfiguration queuing = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration getQueuing(); + /** + *
+     * `queuing` holds the configuration parameters for queuing.
+     * This field may be non-empty only if `type` is `"Queue"`.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Queue")=+k8s:required
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.QueuingConfiguration queuing = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfigurationOrBuilder getQueuingOrBuilder(); + } + /** + *
+   * LimitResponse defines how to handle requests that can not be executed right now.
+   * +union
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.LimitResponse} + */ + public static final class LimitResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.LimitResponse) + LimitResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use LimitResponse.newBuilder() to construct. + private LimitResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LimitResponse() { + type_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LimitResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + type_ = bs; + break; + } + case 18: { + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = queuing_.toBuilder(); + } + queuing_ = input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(queuing_); + queuing_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_LimitResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_LimitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.class, io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.Builder.class); + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object 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.
+     * +unionDiscriminator
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+     * 
+ * + * optional string type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `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.
+     * +unionDiscriminator
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+     * 
+ * + * optional string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } + } + /** + *
+     * `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.
+     * +unionDiscriminator
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+     * 
+ * + * optional string type = 1; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUEUING_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration queuing_; + /** + *
+     * `queuing` holds the configuration parameters for queuing.
+     * This field may be non-empty only if `type` is `"Queue"`.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Queue")=+k8s:required
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.QueuingConfiguration queuing = 2; + */ + public boolean hasQueuing() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * `queuing` holds the configuration parameters for queuing.
+     * This field may be non-empty only if `type` is `"Queue"`.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Queue")=+k8s:required
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.QueuingConfiguration queuing = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration getQueuing() { + return queuing_ == null ? io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.getDefaultInstance() : queuing_; + } + /** + *
+     * `queuing` holds the configuration parameters for queuing.
+     * This field may be non-empty only if `type` is `"Queue"`.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Queue")=+k8s:required
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.QueuingConfiguration queuing = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.QueuingConfigurationOrBuilder getQueuingOrBuilder() { + return queuing_ == null ? io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.getDefaultInstance() : queuing_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getQueuing()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getQueuing()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.LimitResponse)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.LimitResponse other = (io.kubernetes.client.proto.V1Flowcontrol.LimitResponse) obj; + + boolean result = true; + result = result && (hasType() == other.hasType()); + if (hasType()) { + result = result && getType() + .equals(other.getType()); + } + result = result && (hasQueuing() == other.hasQueuing()); + if (hasQueuing()) { + result = result && getQueuing() + .equals(other.getQueuing()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasQueuing()) { + hash = (37 * hash) + QUEUING_FIELD_NUMBER; + hash = (53 * hash) + getQueuing().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.LimitResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.LimitResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * LimitResponse defines how to handle requests that can not be executed right now.
+     * +union
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.LimitResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.LimitResponse) + io.kubernetes.client.proto.V1Flowcontrol.LimitResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_LimitResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_LimitResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.class, io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getQueuingFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (queuingBuilder_ == null) { + queuing_ = null; + } else { + queuingBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_LimitResponse_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.LimitResponse getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.LimitResponse build() { + io.kubernetes.client.proto.V1Flowcontrol.LimitResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.LimitResponse buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.LimitResponse result = new io.kubernetes.client.proto.V1Flowcontrol.LimitResponse(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (queuingBuilder_ == null) { + result.queuing_ = queuing_; + } else { + result.queuing_ = queuingBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.LimitResponse) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.LimitResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.LimitResponse other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.getDefaultInstance()) return this; + if (other.hasType()) { + bitField0_ |= 0x00000001; + type_ = other.type_; + onChanged(); + } + if (other.hasQueuing()) { + mergeQueuing(other.getQueuing()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.LimitResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.LimitResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object 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.
+       * +unionDiscriminator
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+       * 
+ * + * optional string type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `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.
+       * +unionDiscriminator
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+       * 
+ * + * optional string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `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.
+       * +unionDiscriminator
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+       * 
+ * + * optional string type = 1; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `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.
+       * +unionDiscriminator
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+       * 
+ * + * optional string type = 1; + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +unionDiscriminator
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+       * 
+ * + * optional string type = 1; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +unionDiscriminator
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+       * 
+ * + * optional string type = 1; + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration queuing_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration, io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.Builder, io.kubernetes.client.proto.V1Flowcontrol.QueuingConfigurationOrBuilder> queuingBuilder_; + /** + *
+       * `queuing` holds the configuration parameters for queuing.
+       * This field may be non-empty only if `type` is `"Queue"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Queue")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.QueuingConfiguration queuing = 2; + */ + public boolean hasQueuing() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * `queuing` holds the configuration parameters for queuing.
+       * This field may be non-empty only if `type` is `"Queue"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Queue")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.QueuingConfiguration queuing = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration getQueuing() { + if (queuingBuilder_ == null) { + return queuing_ == null ? io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.getDefaultInstance() : queuing_; + } else { + return queuingBuilder_.getMessage(); + } + } + /** + *
+       * `queuing` holds the configuration parameters for queuing.
+       * This field may be non-empty only if `type` is `"Queue"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Queue")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.QueuingConfiguration queuing = 2; + */ + public Builder setQueuing(io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration value) { + if (queuingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + queuing_ = value; + onChanged(); + } else { + queuingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `queuing` holds the configuration parameters for queuing.
+       * This field may be non-empty only if `type` is `"Queue"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Queue")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.QueuingConfiguration queuing = 2; + */ + public Builder setQueuing( + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.Builder builderForValue) { + if (queuingBuilder_ == null) { + queuing_ = builderForValue.build(); + onChanged(); + } else { + queuingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `queuing` holds the configuration parameters for queuing.
+       * This field may be non-empty only if `type` is `"Queue"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Queue")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.QueuingConfiguration queuing = 2; + */ + public Builder mergeQueuing(io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration value) { + if (queuingBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + queuing_ != null && + queuing_ != io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.getDefaultInstance()) { + queuing_ = + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.newBuilder(queuing_).mergeFrom(value).buildPartial(); + } else { + queuing_ = value; + } + onChanged(); + } else { + queuingBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `queuing` holds the configuration parameters for queuing.
+       * This field may be non-empty only if `type` is `"Queue"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Queue")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.QueuingConfiguration queuing = 2; + */ + public Builder clearQueuing() { + if (queuingBuilder_ == null) { + queuing_ = null; + onChanged(); + } else { + queuingBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * `queuing` holds the configuration parameters for queuing.
+       * This field may be non-empty only if `type` is `"Queue"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Queue")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.QueuingConfiguration queuing = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.Builder getQueuingBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getQueuingFieldBuilder().getBuilder(); + } + /** + *
+       * `queuing` holds the configuration parameters for queuing.
+       * This field may be non-empty only if `type` is `"Queue"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Queue")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.QueuingConfiguration queuing = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.QueuingConfigurationOrBuilder getQueuingOrBuilder() { + if (queuingBuilder_ != null) { + return queuingBuilder_.getMessageOrBuilder(); + } else { + return queuing_ == null ? + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.getDefaultInstance() : queuing_; + } + } + /** + *
+       * `queuing` holds the configuration parameters for queuing.
+       * This field may be non-empty only if `type` is `"Queue"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Queue")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.QueuingConfiguration queuing = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration, io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.Builder, io.kubernetes.client.proto.V1Flowcontrol.QueuingConfigurationOrBuilder> + getQueuingFieldBuilder() { + if (queuingBuilder_ == null) { + queuingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration, io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.Builder, io.kubernetes.client.proto.V1Flowcontrol.QueuingConfigurationOrBuilder>( + getQueuing(), + getParentForChildren(), + isClean()); + queuing_ = null; + } + return queuingBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.LimitResponse) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.LimitResponse) + private static final io.kubernetes.client.proto.V1Flowcontrol.LimitResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.LimitResponse(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.LimitResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LimitResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LimitResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.LimitResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface LimitedPriorityLevelConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+     * NominalConcurrencyLimit (NominalCL) of this level.
+     * This is the number of execution seats available at this priority level.
+     * This is used both for requests dispatched from this priority level
+     * as well as requests dispatched from other priority levels
+     * borrowing seats from this level.
+     * The server's concurrency limit (ServerCL) is divided among the
+     * Limited priority levels in proportion to their NCS values:
+     * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+     * sum_ncs = sum[priority level k] NCS(k)
+     * Bigger numbers mean a larger nominal concurrency limit,
+     * at the expense of every other priority level.
+     * If not specified, this field defaults to a value of 30.
+     * Setting this field to zero supports the construction of a
+     * "jail" for this priority level that is used to hold some request(s)
+     * +optional
+     * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + boolean hasNominalConcurrencyShares(); + /** + *
+     * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+     * NominalConcurrencyLimit (NominalCL) of this level.
+     * This is the number of execution seats available at this priority level.
+     * This is used both for requests dispatched from this priority level
+     * as well as requests dispatched from other priority levels
+     * borrowing seats from this level.
+     * The server's concurrency limit (ServerCL) is divided among the
+     * Limited priority levels in proportion to their NCS values:
+     * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+     * sum_ncs = sum[priority level k] NCS(k)
+     * Bigger numbers mean a larger nominal concurrency limit,
+     * at the expense of every other priority level.
+     * If not specified, this field defaults to a value of 30.
+     * Setting this field to zero supports the construction of a
+     * "jail" for this priority level that is used to hold some request(s)
+     * +optional
+     * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + int getNominalConcurrencyShares(); + + /** + *
+     * `limitResponse` indicates what to do with requests that can not be executed right now
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitResponse limitResponse = 2; + */ + boolean hasLimitResponse(); + /** + *
+     * `limitResponse` indicates what to do with requests that can not be executed right now
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitResponse limitResponse = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.LimitResponse getLimitResponse(); + /** + *
+     * `limitResponse` indicates what to do with requests that can not be executed right now
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitResponse limitResponse = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.LimitResponseOrBuilder getLimitResponseOrBuilder(); + + /** + *
+     * `lendablePercent` prescribes the fraction of the level's NominalCL that
+     * can be borrowed by other priority levels. The value of this
+     * field must be between 0 and 100, inclusive, and it defaults to 0.
+     * The number of seats that other levels can borrow from this level, known
+     * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+     * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+     * +optional
+     * 
+ * + * optional int32 lendablePercent = 3; + */ + boolean hasLendablePercent(); + /** + *
+     * `lendablePercent` prescribes the fraction of the level's NominalCL that
+     * can be borrowed by other priority levels. The value of this
+     * field must be between 0 and 100, inclusive, and it defaults to 0.
+     * The number of seats that other levels can borrow from this level, known
+     * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+     * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+     * +optional
+     * 
+ * + * optional int32 lendablePercent = 3; + */ + int getLendablePercent(); + + /** + *
+     * `borrowingLimitPercent`, if present, configures a limit on how many
+     * seats this priority level can borrow from other priority levels.
+     * The limit is known as this level's BorrowingConcurrencyLimit
+     * (BorrowingCL) and is a limit on the total number of seats that this
+     * level may borrow at any one time.
+     * This field holds the ratio of that limit to the level's nominal
+     * concurrency limit. When this field is non-nil, it must hold a
+     * non-negative integer and the limit is calculated as follows.
+     * BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )
+     * The value of this field can be more than 100, implying that this
+     * priority level can borrow a number of seats that is greater than
+     * its own nominal concurrency limit (NominalCL).
+     * When this field is left `nil`, the limit is effectively infinite.
+     * +optional
+     * 
+ * + * optional int32 borrowingLimitPercent = 4; + */ + boolean hasBorrowingLimitPercent(); + /** + *
+     * `borrowingLimitPercent`, if present, configures a limit on how many
+     * seats this priority level can borrow from other priority levels.
+     * The limit is known as this level's BorrowingConcurrencyLimit
+     * (BorrowingCL) and is a limit on the total number of seats that this
+     * level may borrow at any one time.
+     * This field holds the ratio of that limit to the level's nominal
+     * concurrency limit. When this field is non-nil, it must hold a
+     * non-negative integer and the limit is calculated as follows.
+     * BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )
+     * The value of this field can be more than 100, implying that this
+     * priority level can borrow a number of seats that is greater than
+     * its own nominal concurrency limit (NominalCL).
+     * When this field is left `nil`, the limit is effectively infinite.
+     * +optional
+     * 
+ * + * optional int32 borrowingLimitPercent = 4; + */ + int getBorrowingLimitPercent(); + } + /** + *
+   * 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?
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration} + */ + public static final class LimitedPriorityLevelConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration) + LimitedPriorityLevelConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use LimitedPriorityLevelConfiguration.newBuilder() to construct. + private LimitedPriorityLevelConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private LimitedPriorityLevelConfiguration() { + nominalConcurrencyShares_ = 0; + lendablePercent_ = 0; + borrowingLimitPercent_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LimitedPriorityLevelConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + bitField0_ |= 0x00000001; + nominalConcurrencyShares_ = input.readInt32(); + break; + } + case 18: { + io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = limitResponse_.toBuilder(); + } + limitResponse_ = input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(limitResponse_); + limitResponse_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 24: { + bitField0_ |= 0x00000004; + lendablePercent_ = input.readInt32(); + break; + } + case 32: { + bitField0_ |= 0x00000008; + borrowingLimitPercent_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_LimitedPriorityLevelConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_LimitedPriorityLevelConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.class, io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.Builder.class); + } + + private int bitField0_; + public static final int NOMINALCONCURRENCYSHARES_FIELD_NUMBER = 1; + private int nominalConcurrencyShares_; + /** + *
+     * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+     * NominalConcurrencyLimit (NominalCL) of this level.
+     * This is the number of execution seats available at this priority level.
+     * This is used both for requests dispatched from this priority level
+     * as well as requests dispatched from other priority levels
+     * borrowing seats from this level.
+     * The server's concurrency limit (ServerCL) is divided among the
+     * Limited priority levels in proportion to their NCS values:
+     * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+     * sum_ncs = sum[priority level k] NCS(k)
+     * Bigger numbers mean a larger nominal concurrency limit,
+     * at the expense of every other priority level.
+     * If not specified, this field defaults to a value of 30.
+     * Setting this field to zero supports the construction of a
+     * "jail" for this priority level that is used to hold some request(s)
+     * +optional
+     * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + public boolean hasNominalConcurrencyShares() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+     * NominalConcurrencyLimit (NominalCL) of this level.
+     * This is the number of execution seats available at this priority level.
+     * This is used both for requests dispatched from this priority level
+     * as well as requests dispatched from other priority levels
+     * borrowing seats from this level.
+     * The server's concurrency limit (ServerCL) is divided among the
+     * Limited priority levels in proportion to their NCS values:
+     * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+     * sum_ncs = sum[priority level k] NCS(k)
+     * Bigger numbers mean a larger nominal concurrency limit,
+     * at the expense of every other priority level.
+     * If not specified, this field defaults to a value of 30.
+     * Setting this field to zero supports the construction of a
+     * "jail" for this priority level that is used to hold some request(s)
+     * +optional
+     * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + public int getNominalConcurrencyShares() { + return nominalConcurrencyShares_; + } + + public static final int LIMITRESPONSE_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Flowcontrol.LimitResponse limitResponse_; + /** + *
+     * `limitResponse` indicates what to do with requests that can not be executed right now
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitResponse limitResponse = 2; + */ + public boolean hasLimitResponse() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * `limitResponse` indicates what to do with requests that can not be executed right now
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitResponse limitResponse = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.LimitResponse getLimitResponse() { + return limitResponse_ == null ? io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.getDefaultInstance() : limitResponse_; + } + /** + *
+     * `limitResponse` indicates what to do with requests that can not be executed right now
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitResponse limitResponse = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.LimitResponseOrBuilder getLimitResponseOrBuilder() { + return limitResponse_ == null ? io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.getDefaultInstance() : limitResponse_; + } + + public static final int LENDABLEPERCENT_FIELD_NUMBER = 3; + private int lendablePercent_; + /** + *
+     * `lendablePercent` prescribes the fraction of the level's NominalCL that
+     * can be borrowed by other priority levels. The value of this
+     * field must be between 0 and 100, inclusive, and it defaults to 0.
+     * The number of seats that other levels can borrow from this level, known
+     * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+     * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+     * +optional
+     * 
+ * + * optional int32 lendablePercent = 3; + */ + public boolean hasLendablePercent() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * `lendablePercent` prescribes the fraction of the level's NominalCL that
+     * can be borrowed by other priority levels. The value of this
+     * field must be between 0 and 100, inclusive, and it defaults to 0.
+     * The number of seats that other levels can borrow from this level, known
+     * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+     * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+     * +optional
+     * 
+ * + * optional int32 lendablePercent = 3; + */ + public int getLendablePercent() { + return lendablePercent_; + } + + public static final int BORROWINGLIMITPERCENT_FIELD_NUMBER = 4; + private int borrowingLimitPercent_; + /** + *
+     * `borrowingLimitPercent`, if present, configures a limit on how many
+     * seats this priority level can borrow from other priority levels.
+     * The limit is known as this level's BorrowingConcurrencyLimit
+     * (BorrowingCL) and is a limit on the total number of seats that this
+     * level may borrow at any one time.
+     * This field holds the ratio of that limit to the level's nominal
+     * concurrency limit. When this field is non-nil, it must hold a
+     * non-negative integer and the limit is calculated as follows.
+     * BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )
+     * The value of this field can be more than 100, implying that this
+     * priority level can borrow a number of seats that is greater than
+     * its own nominal concurrency limit (NominalCL).
+     * When this field is left `nil`, the limit is effectively infinite.
+     * +optional
+     * 
+ * + * optional int32 borrowingLimitPercent = 4; + */ + public boolean hasBorrowingLimitPercent() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * `borrowingLimitPercent`, if present, configures a limit on how many
+     * seats this priority level can borrow from other priority levels.
+     * The limit is known as this level's BorrowingConcurrencyLimit
+     * (BorrowingCL) and is a limit on the total number of seats that this
+     * level may borrow at any one time.
+     * This field holds the ratio of that limit to the level's nominal
+     * concurrency limit. When this field is non-nil, it must hold a
+     * non-negative integer and the limit is calculated as follows.
+     * BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )
+     * The value of this field can be more than 100, implying that this
+     * priority level can borrow a number of seats that is greater than
+     * its own nominal concurrency limit (NominalCL).
+     * When this field is left `nil`, the limit is effectively infinite.
+     * +optional
+     * 
+ * + * optional int32 borrowingLimitPercent = 4; + */ + public int getBorrowingLimitPercent() { + return borrowingLimitPercent_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, nominalConcurrencyShares_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getLimitResponse()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, lendablePercent_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt32(4, borrowingLimitPercent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, nominalConcurrencyShares_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLimitResponse()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, lendablePercent_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, borrowingLimitPercent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration other = (io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration) obj; + + boolean result = true; + result = result && (hasNominalConcurrencyShares() == other.hasNominalConcurrencyShares()); + if (hasNominalConcurrencyShares()) { + result = result && (getNominalConcurrencyShares() + == other.getNominalConcurrencyShares()); + } + result = result && (hasLimitResponse() == other.hasLimitResponse()); + if (hasLimitResponse()) { + result = result && getLimitResponse() + .equals(other.getLimitResponse()); + } + result = result && (hasLendablePercent() == other.hasLendablePercent()); + if (hasLendablePercent()) { + result = result && (getLendablePercent() + == other.getLendablePercent()); + } + result = result && (hasBorrowingLimitPercent() == other.hasBorrowingLimitPercent()); + if (hasBorrowingLimitPercent()) { + result = result && (getBorrowingLimitPercent() + == other.getBorrowingLimitPercent()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNominalConcurrencyShares()) { + hash = (37 * hash) + NOMINALCONCURRENCYSHARES_FIELD_NUMBER; + hash = (53 * hash) + getNominalConcurrencyShares(); + } + if (hasLimitResponse()) { + hash = (37 * hash) + LIMITRESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getLimitResponse().hashCode(); + } + if (hasLendablePercent()) { + hash = (37 * hash) + LENDABLEPERCENT_FIELD_NUMBER; + hash = (53 * hash) + getLendablePercent(); + } + if (hasBorrowingLimitPercent()) { + hash = (37 * hash) + BORROWINGLIMITPERCENT_FIELD_NUMBER; + hash = (53 * hash) + getBorrowingLimitPercent(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * 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?
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration) + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_LimitedPriorityLevelConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_LimitedPriorityLevelConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.class, io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLimitResponseFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + nominalConcurrencyShares_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + if (limitResponseBuilder_ == null) { + limitResponse_ = null; + } else { + limitResponseBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + lendablePercent_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + borrowingLimitPercent_ = 0; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_LimitedPriorityLevelConfiguration_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration build() { + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration result = new io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.nominalConcurrencyShares_ = nominalConcurrencyShares_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (limitResponseBuilder_ == null) { + result.limitResponse_ = limitResponse_; + } else { + result.limitResponse_ = limitResponseBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.lendablePercent_ = lendablePercent_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.borrowingLimitPercent_ = borrowingLimitPercent_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.getDefaultInstance()) return this; + if (other.hasNominalConcurrencyShares()) { + setNominalConcurrencyShares(other.getNominalConcurrencyShares()); + } + if (other.hasLimitResponse()) { + mergeLimitResponse(other.getLimitResponse()); + } + if (other.hasLendablePercent()) { + setLendablePercent(other.getLendablePercent()); + } + if (other.hasBorrowingLimitPercent()) { + setBorrowingLimitPercent(other.getBorrowingLimitPercent()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int nominalConcurrencyShares_ ; + /** + *
+       * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+       * NominalConcurrencyLimit (NominalCL) of this level.
+       * This is the number of execution seats available at this priority level.
+       * This is used both for requests dispatched from this priority level
+       * as well as requests dispatched from other priority levels
+       * borrowing seats from this level.
+       * The server's concurrency limit (ServerCL) is divided among the
+       * Limited priority levels in proportion to their NCS values:
+       * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+       * sum_ncs = sum[priority level k] NCS(k)
+       * Bigger numbers mean a larger nominal concurrency limit,
+       * at the expense of every other priority level.
+       * If not specified, this field defaults to a value of 30.
+       * Setting this field to zero supports the construction of a
+       * "jail" for this priority level that is used to hold some request(s)
+       * +optional
+       * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + public boolean hasNominalConcurrencyShares() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+       * NominalConcurrencyLimit (NominalCL) of this level.
+       * This is the number of execution seats available at this priority level.
+       * This is used both for requests dispatched from this priority level
+       * as well as requests dispatched from other priority levels
+       * borrowing seats from this level.
+       * The server's concurrency limit (ServerCL) is divided among the
+       * Limited priority levels in proportion to their NCS values:
+       * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+       * sum_ncs = sum[priority level k] NCS(k)
+       * Bigger numbers mean a larger nominal concurrency limit,
+       * at the expense of every other priority level.
+       * If not specified, this field defaults to a value of 30.
+       * Setting this field to zero supports the construction of a
+       * "jail" for this priority level that is used to hold some request(s)
+       * +optional
+       * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + public int getNominalConcurrencyShares() { + return nominalConcurrencyShares_; + } + /** + *
+       * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+       * NominalConcurrencyLimit (NominalCL) of this level.
+       * This is the number of execution seats available at this priority level.
+       * This is used both for requests dispatched from this priority level
+       * as well as requests dispatched from other priority levels
+       * borrowing seats from this level.
+       * The server's concurrency limit (ServerCL) is divided among the
+       * Limited priority levels in proportion to their NCS values:
+       * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+       * sum_ncs = sum[priority level k] NCS(k)
+       * Bigger numbers mean a larger nominal concurrency limit,
+       * at the expense of every other priority level.
+       * If not specified, this field defaults to a value of 30.
+       * Setting this field to zero supports the construction of a
+       * "jail" for this priority level that is used to hold some request(s)
+       * +optional
+       * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + public Builder setNominalConcurrencyShares(int value) { + bitField0_ |= 0x00000001; + nominalConcurrencyShares_ = value; + onChanged(); + return this; + } + /** + *
+       * `nominalConcurrencyShares` (NCS) contributes to the computation of the
+       * NominalConcurrencyLimit (NominalCL) of this level.
+       * This is the number of execution seats available at this priority level.
+       * This is used both for requests dispatched from this priority level
+       * as well as requests dispatched from other priority levels
+       * borrowing seats from this level.
+       * The server's concurrency limit (ServerCL) is divided among the
+       * Limited priority levels in proportion to their NCS values:
+       * NominalCL(i)  = ceil( ServerCL * NCS(i) / sum_ncs )
+       * sum_ncs = sum[priority level k] NCS(k)
+       * Bigger numbers mean a larger nominal concurrency limit,
+       * at the expense of every other priority level.
+       * If not specified, this field defaults to a value of 30.
+       * Setting this field to zero supports the construction of a
+       * "jail" for this priority level that is used to hold some request(s)
+       * +optional
+       * 
+ * + * optional int32 nominalConcurrencyShares = 1; + */ + public Builder clearNominalConcurrencyShares() { + bitField0_ = (bitField0_ & ~0x00000001); + nominalConcurrencyShares_ = 0; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1Flowcontrol.LimitResponse limitResponse_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.LimitResponse, io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.Builder, io.kubernetes.client.proto.V1Flowcontrol.LimitResponseOrBuilder> limitResponseBuilder_; + /** + *
+       * `limitResponse` indicates what to do with requests that can not be executed right now
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitResponse limitResponse = 2; + */ + public boolean hasLimitResponse() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * `limitResponse` indicates what to do with requests that can not be executed right now
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitResponse limitResponse = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.LimitResponse getLimitResponse() { + if (limitResponseBuilder_ == null) { + return limitResponse_ == null ? io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.getDefaultInstance() : limitResponse_; + } else { + return limitResponseBuilder_.getMessage(); + } + } + /** + *
+       * `limitResponse` indicates what to do with requests that can not be executed right now
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitResponse limitResponse = 2; + */ + public Builder setLimitResponse(io.kubernetes.client.proto.V1Flowcontrol.LimitResponse value) { + if (limitResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + limitResponse_ = value; + onChanged(); + } else { + limitResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `limitResponse` indicates what to do with requests that can not be executed right now
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitResponse limitResponse = 2; + */ + public Builder setLimitResponse( + io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.Builder builderForValue) { + if (limitResponseBuilder_ == null) { + limitResponse_ = builderForValue.build(); + onChanged(); + } else { + limitResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `limitResponse` indicates what to do with requests that can not be executed right now
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitResponse limitResponse = 2; + */ + public Builder mergeLimitResponse(io.kubernetes.client.proto.V1Flowcontrol.LimitResponse value) { + if (limitResponseBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + limitResponse_ != null && + limitResponse_ != io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.getDefaultInstance()) { + limitResponse_ = + io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.newBuilder(limitResponse_).mergeFrom(value).buildPartial(); + } else { + limitResponse_ = value; + } + onChanged(); + } else { + limitResponseBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `limitResponse` indicates what to do with requests that can not be executed right now
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitResponse limitResponse = 2; + */ + public Builder clearLimitResponse() { + if (limitResponseBuilder_ == null) { + limitResponse_ = null; + onChanged(); + } else { + limitResponseBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * `limitResponse` indicates what to do with requests that can not be executed right now
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitResponse limitResponse = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.Builder getLimitResponseBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLimitResponseFieldBuilder().getBuilder(); + } + /** + *
+       * `limitResponse` indicates what to do with requests that can not be executed right now
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitResponse limitResponse = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.LimitResponseOrBuilder getLimitResponseOrBuilder() { + if (limitResponseBuilder_ != null) { + return limitResponseBuilder_.getMessageOrBuilder(); + } else { + return limitResponse_ == null ? + io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.getDefaultInstance() : limitResponse_; + } + } + /** + *
+       * `limitResponse` indicates what to do with requests that can not be executed right now
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitResponse limitResponse = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.LimitResponse, io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.Builder, io.kubernetes.client.proto.V1Flowcontrol.LimitResponseOrBuilder> + getLimitResponseFieldBuilder() { + if (limitResponseBuilder_ == null) { + limitResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.LimitResponse, io.kubernetes.client.proto.V1Flowcontrol.LimitResponse.Builder, io.kubernetes.client.proto.V1Flowcontrol.LimitResponseOrBuilder>( + getLimitResponse(), + getParentForChildren(), + isClean()); + limitResponse_ = null; + } + return limitResponseBuilder_; + } + + private int lendablePercent_ ; + /** + *
+       * `lendablePercent` prescribes the fraction of the level's NominalCL that
+       * can be borrowed by other priority levels. The value of this
+       * field must be between 0 and 100, inclusive, and it defaults to 0.
+       * The number of seats that other levels can borrow from this level, known
+       * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+       * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+       * +optional
+       * 
+ * + * optional int32 lendablePercent = 3; + */ + public boolean hasLendablePercent() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * `lendablePercent` prescribes the fraction of the level's NominalCL that
+       * can be borrowed by other priority levels. The value of this
+       * field must be between 0 and 100, inclusive, and it defaults to 0.
+       * The number of seats that other levels can borrow from this level, known
+       * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+       * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+       * +optional
+       * 
+ * + * optional int32 lendablePercent = 3; + */ + public int getLendablePercent() { + return lendablePercent_; + } + /** + *
+       * `lendablePercent` prescribes the fraction of the level's NominalCL that
+       * can be borrowed by other priority levels. The value of this
+       * field must be between 0 and 100, inclusive, and it defaults to 0.
+       * The number of seats that other levels can borrow from this level, known
+       * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+       * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+       * +optional
+       * 
+ * + * optional int32 lendablePercent = 3; + */ + public Builder setLendablePercent(int value) { + bitField0_ |= 0x00000004; + lendablePercent_ = value; + onChanged(); + return this; + } + /** + *
+       * `lendablePercent` prescribes the fraction of the level's NominalCL that
+       * can be borrowed by other priority levels. The value of this
+       * field must be between 0 and 100, inclusive, and it defaults to 0.
+       * The number of seats that other levels can borrow from this level, known
+       * as this level's LendableConcurrencyLimit (LendableCL), is defined as follows.
+       * LendableCL(i) = round( NominalCL(i) * lendablePercent(i)/100.0 )
+       * +optional
+       * 
+ * + * optional int32 lendablePercent = 3; + */ + public Builder clearLendablePercent() { + bitField0_ = (bitField0_ & ~0x00000004); + lendablePercent_ = 0; + onChanged(); + return this; + } + + private int borrowingLimitPercent_ ; + /** + *
+       * `borrowingLimitPercent`, if present, configures a limit on how many
+       * seats this priority level can borrow from other priority levels.
+       * The limit is known as this level's BorrowingConcurrencyLimit
+       * (BorrowingCL) and is a limit on the total number of seats that this
+       * level may borrow at any one time.
+       * This field holds the ratio of that limit to the level's nominal
+       * concurrency limit. When this field is non-nil, it must hold a
+       * non-negative integer and the limit is calculated as follows.
+       * BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )
+       * The value of this field can be more than 100, implying that this
+       * priority level can borrow a number of seats that is greater than
+       * its own nominal concurrency limit (NominalCL).
+       * When this field is left `nil`, the limit is effectively infinite.
+       * +optional
+       * 
+ * + * optional int32 borrowingLimitPercent = 4; + */ + public boolean hasBorrowingLimitPercent() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * `borrowingLimitPercent`, if present, configures a limit on how many
+       * seats this priority level can borrow from other priority levels.
+       * The limit is known as this level's BorrowingConcurrencyLimit
+       * (BorrowingCL) and is a limit on the total number of seats that this
+       * level may borrow at any one time.
+       * This field holds the ratio of that limit to the level's nominal
+       * concurrency limit. When this field is non-nil, it must hold a
+       * non-negative integer and the limit is calculated as follows.
+       * BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )
+       * The value of this field can be more than 100, implying that this
+       * priority level can borrow a number of seats that is greater than
+       * its own nominal concurrency limit (NominalCL).
+       * When this field is left `nil`, the limit is effectively infinite.
+       * +optional
+       * 
+ * + * optional int32 borrowingLimitPercent = 4; + */ + public int getBorrowingLimitPercent() { + return borrowingLimitPercent_; + } + /** + *
+       * `borrowingLimitPercent`, if present, configures a limit on how many
+       * seats this priority level can borrow from other priority levels.
+       * The limit is known as this level's BorrowingConcurrencyLimit
+       * (BorrowingCL) and is a limit on the total number of seats that this
+       * level may borrow at any one time.
+       * This field holds the ratio of that limit to the level's nominal
+       * concurrency limit. When this field is non-nil, it must hold a
+       * non-negative integer and the limit is calculated as follows.
+       * BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )
+       * The value of this field can be more than 100, implying that this
+       * priority level can borrow a number of seats that is greater than
+       * its own nominal concurrency limit (NominalCL).
+       * When this field is left `nil`, the limit is effectively infinite.
+       * +optional
+       * 
+ * + * optional int32 borrowingLimitPercent = 4; + */ + public Builder setBorrowingLimitPercent(int value) { + bitField0_ |= 0x00000008; + borrowingLimitPercent_ = value; + onChanged(); + return this; + } + /** + *
+       * `borrowingLimitPercent`, if present, configures a limit on how many
+       * seats this priority level can borrow from other priority levels.
+       * The limit is known as this level's BorrowingConcurrencyLimit
+       * (BorrowingCL) and is a limit on the total number of seats that this
+       * level may borrow at any one time.
+       * This field holds the ratio of that limit to the level's nominal
+       * concurrency limit. When this field is non-nil, it must hold a
+       * non-negative integer and the limit is calculated as follows.
+       * BorrowingCL(i) = round( NominalCL(i) * borrowingLimitPercent(i)/100.0 )
+       * The value of this field can be more than 100, implying that this
+       * priority level can borrow a number of seats that is greater than
+       * its own nominal concurrency limit (NominalCL).
+       * When this field is left `nil`, the limit is effectively infinite.
+       * +optional
+       * 
+ * + * optional int32 borrowingLimitPercent = 4; + */ + public Builder clearBorrowingLimitPercent() { + bitField0_ = (bitField0_ & ~0x00000008); + borrowingLimitPercent_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration) + private static final io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LimitedPriorityLevelConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LimitedPriorityLevelConfiguration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NonResourcePolicyRuleOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.NonResourcePolicyRule) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + java.util.List + getVerbsList(); + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + int getVerbsCount(); + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + java.lang.String getVerbs(int index); + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + com.google.protobuf.ByteString + getVerbsBytes(int index); + + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string nonResourceURLs = 6; + */ + java.util.List + getNonResourceURLsList(); + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string nonResourceURLs = 6; + */ + int getNonResourceURLsCount(); + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string nonResourceURLs = 6; + */ + java.lang.String getNonResourceURLs(int index); + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string nonResourceURLs = 6; + */ + com.google.protobuf.ByteString + getNonResourceURLsBytes(int index); + } + /** + *
+   * 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.
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.NonResourcePolicyRule} + */ + public static final class NonResourcePolicyRule extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.NonResourcePolicyRule) + NonResourcePolicyRuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use NonResourcePolicyRule.newBuilder() to construct. + private NonResourcePolicyRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NonResourcePolicyRule() { + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + nonResourceURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NonResourcePolicyRule( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + verbs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + verbs_.add(bs); + break; + } + case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + nonResourceURLs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + nonResourceURLs_.add(bs); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + verbs_ = verbs_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + nonResourceURLs_ = nonResourceURLs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_NonResourcePolicyRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_NonResourcePolicyRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.class, io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.Builder.class); + } + + public static final int VERBS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList 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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + public com.google.protobuf.ProtocolStringList + getVerbsList() { + return 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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + public int getVerbsCount() { + return verbs_.size(); + } + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + public java.lang.String getVerbs(int index) { + return verbs_.get(index); + } + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + public com.google.protobuf.ByteString + getVerbsBytes(int index) { + return verbs_.getByteString(index); + } + + public static final int NONRESOURCEURLS_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList 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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string nonResourceURLs = 6; + */ + public com.google.protobuf.ProtocolStringList + getNonResourceURLsList() { + return 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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string nonResourceURLs = 6; + */ + public int getNonResourceURLsCount() { + return nonResourceURLs_.size(); + } + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string nonResourceURLs = 6; + */ + public java.lang.String getNonResourceURLs(int index) { + return nonResourceURLs_.get(index); + } + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string nonResourceURLs = 6; + */ + public com.google.protobuf.ByteString + getNonResourceURLsBytes(int index) { + return nonResourceURLs_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < verbs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, verbs_.getRaw(i)); + } + for (int i = 0; i < nonResourceURLs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, nonResourceURLs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < verbs_.size(); i++) { + dataSize += computeStringSizeNoTag(verbs_.getRaw(i)); + } + size += dataSize; + size += 1 * getVerbsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < nonResourceURLs_.size(); i++) { + dataSize += computeStringSizeNoTag(nonResourceURLs_.getRaw(i)); + } + size += dataSize; + size += 1 * getNonResourceURLsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule other = (io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule) obj; + + boolean result = true; + result = result && getVerbsList() + .equals(other.getVerbsList()); + result = result && getNonResourceURLsList() + .equals(other.getNonResourceURLsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getVerbsCount() > 0) { + hash = (37 * hash) + VERBS_FIELD_NUMBER; + hash = (53 * hash) + getVerbsList().hashCode(); + } + if (getNonResourceURLsCount() > 0) { + hash = (37 * hash) + NONRESOURCEURLS_FIELD_NUMBER; + hash = (53 * hash) + getNonResourceURLsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * 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.
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.NonResourcePolicyRule} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.NonResourcePolicyRule) + io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_NonResourcePolicyRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_NonResourcePolicyRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.class, io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + nonResourceURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_NonResourcePolicyRule_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule build() { + io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule result = new io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + verbs_ = verbs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.verbs_ = verbs_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + nonResourceURLs_ = nonResourceURLs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.nonResourceURLs_ = nonResourceURLs_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.getDefaultInstance()) return this; + if (!other.verbs_.isEmpty()) { + if (verbs_.isEmpty()) { + verbs_ = other.verbs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVerbsIsMutable(); + verbs_.addAll(other.verbs_); + } + onChanged(); + } + if (!other.nonResourceURLs_.isEmpty()) { + if (nonResourceURLs_.isEmpty()) { + nonResourceURLs_ = other.nonResourceURLs_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureNonResourceURLsIsMutable(); + nonResourceURLs_.addAll(other.nonResourceURLs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureVerbsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + verbs_ = new com.google.protobuf.LazyStringArrayList(verbs_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public com.google.protobuf.ProtocolStringList + getVerbsList() { + return verbs_.getUnmodifiableView(); + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public int getVerbsCount() { + return verbs_.size(); + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public java.lang.String getVerbs(int index) { + return verbs_.get(index); + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public com.google.protobuf.ByteString + getVerbsBytes(int index) { + return verbs_.getByteString(index); + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public Builder setVerbs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public Builder addVerbs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.add(value); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public Builder addAllVerbs( + java.lang.Iterable values) { + ensureVerbsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, verbs_); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public Builder clearVerbs() { + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public Builder addVerbsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList nonResourceURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureNonResourceURLsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + nonResourceURLs_ = new com.google.protobuf.LazyStringArrayList(nonResourceURLs_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string nonResourceURLs = 6; + */ + public com.google.protobuf.ProtocolStringList + getNonResourceURLsList() { + return nonResourceURLs_.getUnmodifiableView(); + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string nonResourceURLs = 6; + */ + public int getNonResourceURLsCount() { + return nonResourceURLs_.size(); + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string nonResourceURLs = 6; + */ + public java.lang.String getNonResourceURLs(int index) { + return nonResourceURLs_.get(index); + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string nonResourceURLs = 6; + */ + public com.google.protobuf.ByteString + getNonResourceURLsBytes(int index) { + return nonResourceURLs_.getByteString(index); + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string nonResourceURLs = 6; + */ + public Builder setNonResourceURLs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNonResourceURLsIsMutable(); + nonResourceURLs_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string nonResourceURLs = 6; + */ + public Builder addNonResourceURLs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNonResourceURLsIsMutable(); + nonResourceURLs_.add(value); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string nonResourceURLs = 6; + */ + public Builder addAllNonResourceURLs( + java.lang.Iterable values) { + ensureNonResourceURLsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nonResourceURLs_); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string nonResourceURLs = 6; + */ + public Builder clearNonResourceURLs() { + nonResourceURLs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string nonResourceURLs = 6; + */ + public Builder addNonResourceURLsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNonResourceURLsIsMutable(); + nonResourceURLs_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.NonResourcePolicyRule) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.NonResourcePolicyRule) + private static final io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NonResourcePolicyRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NonResourcePolicyRule(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PolicyRulesWithSubjectsOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * 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.
+     * +listType=atomic
+     * Required.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + java.util.List + getSubjectsList(); + /** + *
+     * 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.
+     * +listType=atomic
+     * Required.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + io.kubernetes.client.proto.V1Flowcontrol.Subject getSubjects(int index); + /** + *
+     * 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.
+     * +listType=atomic
+     * Required.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + int getSubjectsCount(); + /** + *
+     * 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.
+     * +listType=atomic
+     * Required.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + java.util.List + getSubjectsOrBuilderList(); + /** + *
+     * 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.
+     * +listType=atomic
+     * Required.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + io.kubernetes.client.proto.V1Flowcontrol.SubjectOrBuilder getSubjectsOrBuilder( + int index); + + /** + *
+     * `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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + java.util.List + getResourceRulesList(); + /** + *
+     * `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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule getResourceRules(int index); + /** + *
+     * `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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + int getResourceRulesCount(); + /** + *
+     * `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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + java.util.List + getResourceRulesOrBuilderList(); + /** + *
+     * `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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRuleOrBuilder getResourceRulesOrBuilder( + int index); + + /** + *
+     * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+     * and the target non-resource URL.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + java.util.List + getNonResourceRulesList(); + /** + *
+     * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+     * and the target non-resource URL.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule getNonResourceRules(int index); + /** + *
+     * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+     * and the target non-resource URL.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + int getNonResourceRulesCount(); + /** + *
+     * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+     * and the target non-resource URL.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + java.util.List + getNonResourceRulesOrBuilderList(); + /** + *
+     * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+     * and the target non-resource URL.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRuleOrBuilder getNonResourceRulesOrBuilder( + int index); + } + /** + *
+   * 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.
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects} + */ + public static final class PolicyRulesWithSubjects extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects) + PolicyRulesWithSubjectsOrBuilder { + private static final long serialVersionUID = 0L; + // Use PolicyRulesWithSubjects.newBuilder() to construct. + private PolicyRulesWithSubjects(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PolicyRulesWithSubjects() { + subjects_ = java.util.Collections.emptyList(); + resourceRules_ = java.util.Collections.emptyList(); + nonResourceRules_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PolicyRulesWithSubjects( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + subjects_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + subjects_.add( + input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.Subject.PARSER, extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + resourceRules_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + resourceRules_.add( + input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.PARSER, extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + nonResourceRules_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + nonResourceRules_.add( + input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + subjects_ = java.util.Collections.unmodifiableList(subjects_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + resourceRules_ = java.util.Collections.unmodifiableList(resourceRules_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + nonResourceRules_ = java.util.Collections.unmodifiableList(nonResourceRules_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PolicyRulesWithSubjects_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PolicyRulesWithSubjects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.class, io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.Builder.class); + } + + public static final int SUBJECTS_FIELD_NUMBER = 1; + private java.util.List 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.
+     * +listType=atomic
+     * Required.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public java.util.List getSubjectsList() { + return 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.
+     * +listType=atomic
+     * Required.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public java.util.List + getSubjectsOrBuilderList() { + return 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.
+     * +listType=atomic
+     * Required.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public int getSubjectsCount() { + return subjects_.size(); + } + /** + *
+     * 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.
+     * +listType=atomic
+     * Required.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.Subject getSubjects(int index) { + return subjects_.get(index); + } + /** + *
+     * 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.
+     * +listType=atomic
+     * Required.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.SubjectOrBuilder getSubjectsOrBuilder( + int index) { + return subjects_.get(index); + } + + public static final int RESOURCERULES_FIELD_NUMBER = 2; + private java.util.List 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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public java.util.List getResourceRulesList() { + return 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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public java.util.List + getResourceRulesOrBuilderList() { + return 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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public int getResourceRulesCount() { + return resourceRules_.size(); + } + /** + *
+     * `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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule getResourceRules(int index) { + return resourceRules_.get(index); + } + /** + *
+     * `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.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRuleOrBuilder getResourceRulesOrBuilder( + int index) { + return resourceRules_.get(index); + } + + public static final int NONRESOURCERULES_FIELD_NUMBER = 3; + private java.util.List nonResourceRules_; + /** + *
+     * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+     * and the target non-resource URL.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public java.util.List getNonResourceRulesList() { + return nonResourceRules_; + } + /** + *
+     * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+     * and the target non-resource URL.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public java.util.List + getNonResourceRulesOrBuilderList() { + return nonResourceRules_; + } + /** + *
+     * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+     * and the target non-resource URL.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public int getNonResourceRulesCount() { + return nonResourceRules_.size(); + } + /** + *
+     * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+     * and the target non-resource URL.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule getNonResourceRules(int index) { + return nonResourceRules_.get(index); + } + /** + *
+     * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+     * and the target non-resource URL.
+     * +listType=atomic
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRuleOrBuilder getNonResourceRulesOrBuilder( + int index) { + return nonResourceRules_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < subjects_.size(); i++) { + output.writeMessage(1, subjects_.get(i)); + } + for (int i = 0; i < resourceRules_.size(); i++) { + output.writeMessage(2, resourceRules_.get(i)); + } + for (int i = 0; i < nonResourceRules_.size(); i++) { + output.writeMessage(3, nonResourceRules_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < subjects_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, subjects_.get(i)); + } + for (int i = 0; i < resourceRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, resourceRules_.get(i)); + } + for (int i = 0; i < nonResourceRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, nonResourceRules_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects other = (io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects) obj; + + boolean result = true; + result = result && getSubjectsList() + .equals(other.getSubjectsList()); + result = result && getResourceRulesList() + .equals(other.getResourceRulesList()); + result = result && getNonResourceRulesList() + .equals(other.getNonResourceRulesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSubjectsCount() > 0) { + hash = (37 * hash) + SUBJECTS_FIELD_NUMBER; + hash = (53 * hash) + getSubjectsList().hashCode(); + } + if (getResourceRulesCount() > 0) { + hash = (37 * hash) + RESOURCERULES_FIELD_NUMBER; + hash = (53 * hash) + getResourceRulesList().hashCode(); + } + if (getNonResourceRulesCount() > 0) { + hash = (37 * hash) + NONRESOURCERULES_FIELD_NUMBER; + hash = (53 * hash) + getNonResourceRulesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * 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.
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects) + io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjectsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PolicyRulesWithSubjects_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PolicyRulesWithSubjects_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.class, io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSubjectsFieldBuilder(); + getResourceRulesFieldBuilder(); + getNonResourceRulesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (subjectsBuilder_ == null) { + subjects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + subjectsBuilder_.clear(); + } + if (resourceRulesBuilder_ == null) { + resourceRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + resourceRulesBuilder_.clear(); + } + if (nonResourceRulesBuilder_ == null) { + nonResourceRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + nonResourceRulesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PolicyRulesWithSubjects_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects build() { + io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects result = new io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects(this); + int from_bitField0_ = bitField0_; + if (subjectsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subjects_ = java.util.Collections.unmodifiableList(subjects_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.subjects_ = subjects_; + } else { + result.subjects_ = subjectsBuilder_.build(); + } + if (resourceRulesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + resourceRules_ = java.util.Collections.unmodifiableList(resourceRules_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.resourceRules_ = resourceRules_; + } else { + result.resourceRules_ = resourceRulesBuilder_.build(); + } + if (nonResourceRulesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + nonResourceRules_ = java.util.Collections.unmodifiableList(nonResourceRules_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.nonResourceRules_ = nonResourceRules_; + } else { + result.nonResourceRules_ = nonResourceRulesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects.getDefaultInstance()) return this; + if (subjectsBuilder_ == null) { + if (!other.subjects_.isEmpty()) { + if (subjects_.isEmpty()) { + subjects_ = other.subjects_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSubjectsIsMutable(); + subjects_.addAll(other.subjects_); + } + onChanged(); + } + } else { + if (!other.subjects_.isEmpty()) { + if (subjectsBuilder_.isEmpty()) { + subjectsBuilder_.dispose(); + subjectsBuilder_ = null; + subjects_ = other.subjects_; + bitField0_ = (bitField0_ & ~0x00000001); + subjectsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubjectsFieldBuilder() : null; + } else { + subjectsBuilder_.addAllMessages(other.subjects_); + } + } + } + if (resourceRulesBuilder_ == null) { + if (!other.resourceRules_.isEmpty()) { + if (resourceRules_.isEmpty()) { + resourceRules_ = other.resourceRules_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureResourceRulesIsMutable(); + resourceRules_.addAll(other.resourceRules_); + } + onChanged(); + } + } else { + if (!other.resourceRules_.isEmpty()) { + if (resourceRulesBuilder_.isEmpty()) { + resourceRulesBuilder_.dispose(); + resourceRulesBuilder_ = null; + resourceRules_ = other.resourceRules_; + bitField0_ = (bitField0_ & ~0x00000002); + resourceRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourceRulesFieldBuilder() : null; + } else { + resourceRulesBuilder_.addAllMessages(other.resourceRules_); + } + } + } + if (nonResourceRulesBuilder_ == null) { + if (!other.nonResourceRules_.isEmpty()) { + if (nonResourceRules_.isEmpty()) { + nonResourceRules_ = other.nonResourceRules_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureNonResourceRulesIsMutable(); + nonResourceRules_.addAll(other.nonResourceRules_); + } + onChanged(); + } + } else { + if (!other.nonResourceRules_.isEmpty()) { + if (nonResourceRulesBuilder_.isEmpty()) { + nonResourceRulesBuilder_.dispose(); + nonResourceRulesBuilder_ = null; + nonResourceRules_ = other.nonResourceRules_; + bitField0_ = (bitField0_ & ~0x00000004); + nonResourceRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNonResourceRulesFieldBuilder() : null; + } else { + nonResourceRulesBuilder_.addAllMessages(other.nonResourceRules_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List subjects_ = + java.util.Collections.emptyList(); + private void ensureSubjectsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + subjects_ = new java.util.ArrayList(subjects_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.Subject, io.kubernetes.client.proto.V1Flowcontrol.Subject.Builder, io.kubernetes.client.proto.V1Flowcontrol.SubjectOrBuilder> subjectsBuilder_; + + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public java.util.List getSubjectsList() { + if (subjectsBuilder_ == null) { + return java.util.Collections.unmodifiableList(subjects_); + } else { + return subjectsBuilder_.getMessageList(); + } + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public int getSubjectsCount() { + if (subjectsBuilder_ == null) { + return subjects_.size(); + } else { + return subjectsBuilder_.getCount(); + } + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.Subject getSubjects(int index) { + if (subjectsBuilder_ == null) { + return subjects_.get(index); + } else { + return subjectsBuilder_.getMessage(index); + } + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public Builder setSubjects( + int index, io.kubernetes.client.proto.V1Flowcontrol.Subject value) { + if (subjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubjectsIsMutable(); + subjects_.set(index, value); + onChanged(); + } else { + subjectsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public Builder setSubjects( + int index, io.kubernetes.client.proto.V1Flowcontrol.Subject.Builder builderForValue) { + if (subjectsBuilder_ == null) { + ensureSubjectsIsMutable(); + subjects_.set(index, builderForValue.build()); + onChanged(); + } else { + subjectsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public Builder addSubjects(io.kubernetes.client.proto.V1Flowcontrol.Subject value) { + if (subjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubjectsIsMutable(); + subjects_.add(value); + onChanged(); + } else { + subjectsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public Builder addSubjects( + int index, io.kubernetes.client.proto.V1Flowcontrol.Subject value) { + if (subjectsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubjectsIsMutable(); + subjects_.add(index, value); + onChanged(); + } else { + subjectsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public Builder addSubjects( + io.kubernetes.client.proto.V1Flowcontrol.Subject.Builder builderForValue) { + if (subjectsBuilder_ == null) { + ensureSubjectsIsMutable(); + subjects_.add(builderForValue.build()); + onChanged(); + } else { + subjectsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public Builder addSubjects( + int index, io.kubernetes.client.proto.V1Flowcontrol.Subject.Builder builderForValue) { + if (subjectsBuilder_ == null) { + ensureSubjectsIsMutable(); + subjects_.add(index, builderForValue.build()); + onChanged(); + } else { + subjectsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public Builder addAllSubjects( + java.lang.Iterable values) { + if (subjectsBuilder_ == null) { + ensureSubjectsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subjects_); + onChanged(); + } else { + subjectsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public Builder clearSubjects() { + if (subjectsBuilder_ == null) { + subjects_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + subjectsBuilder_.clear(); + } + return this; + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public Builder removeSubjects(int index) { + if (subjectsBuilder_ == null) { + ensureSubjectsIsMutable(); + subjects_.remove(index); + onChanged(); + } else { + subjectsBuilder_.remove(index); + } + return this; + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.Subject.Builder getSubjectsBuilder( + int index) { + return getSubjectsFieldBuilder().getBuilder(index); + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.SubjectOrBuilder getSubjectsOrBuilder( + int index) { + if (subjectsBuilder_ == null) { + return subjects_.get(index); } else { + return subjectsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public java.util.List + getSubjectsOrBuilderList() { + if (subjectsBuilder_ != null) { + return subjectsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.Subject.Builder addSubjectsBuilder() { + return getSubjectsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Flowcontrol.Subject.getDefaultInstance()); + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.Subject.Builder addSubjectsBuilder( + int index) { + return getSubjectsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Flowcontrol.Subject.getDefaultInstance()); + } + /** + *
+       * 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.
+       * +listType=atomic
+       * Required.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.Subject subjects = 1; + */ + public java.util.List + getSubjectsBuilderList() { + return getSubjectsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.Subject, io.kubernetes.client.proto.V1Flowcontrol.Subject.Builder, io.kubernetes.client.proto.V1Flowcontrol.SubjectOrBuilder> + getSubjectsFieldBuilder() { + if (subjectsBuilder_ == null) { + subjectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.Subject, io.kubernetes.client.proto.V1Flowcontrol.Subject.Builder, io.kubernetes.client.proto.V1Flowcontrol.SubjectOrBuilder>( + subjects_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + subjects_ = null; + } + return subjectsBuilder_; + } + + private java.util.List resourceRules_ = + java.util.Collections.emptyList(); + private void ensureResourceRulesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + resourceRules_ = new java.util.ArrayList(resourceRules_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule, io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.Builder, io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRuleOrBuilder> resourceRulesBuilder_; + + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public java.util.List getResourceRulesList() { + if (resourceRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(resourceRules_); + } else { + return resourceRulesBuilder_.getMessageList(); + } + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public int getResourceRulesCount() { + if (resourceRulesBuilder_ == null) { + return resourceRules_.size(); + } else { + return resourceRulesBuilder_.getCount(); + } + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule getResourceRules(int index) { + if (resourceRulesBuilder_ == null) { + return resourceRules_.get(index); + } else { + return resourceRulesBuilder_.getMessage(index); + } + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public Builder setResourceRules( + int index, io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule value) { + if (resourceRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceRulesIsMutable(); + resourceRules_.set(index, value); + onChanged(); + } else { + resourceRulesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public Builder setResourceRules( + int index, io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.Builder builderForValue) { + if (resourceRulesBuilder_ == null) { + ensureResourceRulesIsMutable(); + resourceRules_.set(index, builderForValue.build()); + onChanged(); + } else { + resourceRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public Builder addResourceRules(io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule value) { + if (resourceRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceRulesIsMutable(); + resourceRules_.add(value); + onChanged(); + } else { + resourceRulesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public Builder addResourceRules( + int index, io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule value) { + if (resourceRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceRulesIsMutable(); + resourceRules_.add(index, value); + onChanged(); + } else { + resourceRulesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public Builder addResourceRules( + io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.Builder builderForValue) { + if (resourceRulesBuilder_ == null) { + ensureResourceRulesIsMutable(); + resourceRules_.add(builderForValue.build()); + onChanged(); + } else { + resourceRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public Builder addResourceRules( + int index, io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.Builder builderForValue) { + if (resourceRulesBuilder_ == null) { + ensureResourceRulesIsMutable(); + resourceRules_.add(index, builderForValue.build()); + onChanged(); + } else { + resourceRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public Builder addAllResourceRules( + java.lang.Iterable values) { + if (resourceRulesBuilder_ == null) { + ensureResourceRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resourceRules_); + onChanged(); + } else { + resourceRulesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public Builder clearResourceRules() { + if (resourceRulesBuilder_ == null) { + resourceRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + resourceRulesBuilder_.clear(); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public Builder removeResourceRules(int index) { + if (resourceRulesBuilder_ == null) { + ensureResourceRulesIsMutable(); + resourceRules_.remove(index); + onChanged(); + } else { + resourceRulesBuilder_.remove(index); + } + return this; + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.Builder getResourceRulesBuilder( + int index) { + return getResourceRulesFieldBuilder().getBuilder(index); + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRuleOrBuilder getResourceRulesOrBuilder( + int index) { + if (resourceRulesBuilder_ == null) { + return resourceRules_.get(index); } else { + return resourceRulesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public java.util.List + getResourceRulesOrBuilderList() { + if (resourceRulesBuilder_ != null) { + return resourceRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.Builder addResourceRulesBuilder() { + return getResourceRulesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.getDefaultInstance()); + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.Builder addResourceRulesBuilder( + int index) { + return getResourceRulesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.getDefaultInstance()); + } + /** + *
+       * `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.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.ResourcePolicyRule resourceRules = 2; + */ + public java.util.List + getResourceRulesBuilderList() { + return getResourceRulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule, io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.Builder, io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRuleOrBuilder> + getResourceRulesFieldBuilder() { + if (resourceRulesBuilder_ == null) { + resourceRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule, io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.Builder, io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRuleOrBuilder>( + resourceRules_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + resourceRules_ = null; + } + return resourceRulesBuilder_; + } + + private java.util.List nonResourceRules_ = + java.util.Collections.emptyList(); + private void ensureNonResourceRulesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + nonResourceRules_ = new java.util.ArrayList(nonResourceRules_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule, io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.Builder, io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRuleOrBuilder> nonResourceRulesBuilder_; + + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public java.util.List getNonResourceRulesList() { + if (nonResourceRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(nonResourceRules_); + } else { + return nonResourceRulesBuilder_.getMessageList(); + } + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public int getNonResourceRulesCount() { + if (nonResourceRulesBuilder_ == null) { + return nonResourceRules_.size(); + } else { + return nonResourceRulesBuilder_.getCount(); + } + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule getNonResourceRules(int index) { + if (nonResourceRulesBuilder_ == null) { + return nonResourceRules_.get(index); + } else { + return nonResourceRulesBuilder_.getMessage(index); + } + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public Builder setNonResourceRules( + int index, io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule value) { + if (nonResourceRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNonResourceRulesIsMutable(); + nonResourceRules_.set(index, value); + onChanged(); + } else { + nonResourceRulesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public Builder setNonResourceRules( + int index, io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.Builder builderForValue) { + if (nonResourceRulesBuilder_ == null) { + ensureNonResourceRulesIsMutable(); + nonResourceRules_.set(index, builderForValue.build()); + onChanged(); + } else { + nonResourceRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public Builder addNonResourceRules(io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule value) { + if (nonResourceRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNonResourceRulesIsMutable(); + nonResourceRules_.add(value); + onChanged(); + } else { + nonResourceRulesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public Builder addNonResourceRules( + int index, io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule value) { + if (nonResourceRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureNonResourceRulesIsMutable(); + nonResourceRules_.add(index, value); + onChanged(); + } else { + nonResourceRulesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public Builder addNonResourceRules( + io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.Builder builderForValue) { + if (nonResourceRulesBuilder_ == null) { + ensureNonResourceRulesIsMutable(); + nonResourceRules_.add(builderForValue.build()); + onChanged(); + } else { + nonResourceRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public Builder addNonResourceRules( + int index, io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.Builder builderForValue) { + if (nonResourceRulesBuilder_ == null) { + ensureNonResourceRulesIsMutable(); + nonResourceRules_.add(index, builderForValue.build()); + onChanged(); + } else { + nonResourceRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public Builder addAllNonResourceRules( + java.lang.Iterable values) { + if (nonResourceRulesBuilder_ == null) { + ensureNonResourceRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, nonResourceRules_); + onChanged(); + } else { + nonResourceRulesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public Builder clearNonResourceRules() { + if (nonResourceRulesBuilder_ == null) { + nonResourceRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + nonResourceRulesBuilder_.clear(); + } + return this; + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public Builder removeNonResourceRules(int index) { + if (nonResourceRulesBuilder_ == null) { + ensureNonResourceRulesIsMutable(); + nonResourceRules_.remove(index); + onChanged(); + } else { + nonResourceRulesBuilder_.remove(index); + } + return this; + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.Builder getNonResourceRulesBuilder( + int index) { + return getNonResourceRulesFieldBuilder().getBuilder(index); + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRuleOrBuilder getNonResourceRulesOrBuilder( + int index) { + if (nonResourceRulesBuilder_ == null) { + return nonResourceRules_.get(index); } else { + return nonResourceRulesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public java.util.List + getNonResourceRulesOrBuilderList() { + if (nonResourceRulesBuilder_ != null) { + return nonResourceRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(nonResourceRules_); + } + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.Builder addNonResourceRulesBuilder() { + return getNonResourceRulesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.getDefaultInstance()); + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.Builder addNonResourceRulesBuilder( + int index) { + return getNonResourceRulesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.getDefaultInstance()); + } + /** + *
+       * `nonResourceRules` is a list of NonResourcePolicyRules that identify matching requests according to their verb
+       * and the target non-resource URL.
+       * +listType=atomic
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.NonResourcePolicyRule nonResourceRules = 3; + */ + public java.util.List + getNonResourceRulesBuilderList() { + return getNonResourceRulesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule, io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.Builder, io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRuleOrBuilder> + getNonResourceRulesFieldBuilder() { + if (nonResourceRulesBuilder_ == null) { + nonResourceRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule, io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRule.Builder, io.kubernetes.client.proto.V1Flowcontrol.NonResourcePolicyRuleOrBuilder>( + nonResourceRules_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + nonResourceRules_ = null; + } + return nonResourceRulesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.PolicyRulesWithSubjects) + private static final io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PolicyRulesWithSubjects parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PolicyRulesWithSubjects(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PolicyRulesWithSubjects getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PriorityLevelConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec spec = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec getSpec(); + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec spec = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus status = 3; + */ + boolean hasStatus(); + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus status = 3; + */ + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus getStatus(); + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus status = 3; + */ + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatusOrBuilder getStatusOrBuilder(); + } + /** + *
+   * PriorityLevelConfiguration represents the configuration of a priority level.
+   * +k8s:supportsSubresource="/status"
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration} + */ + public static final class PriorityLevelConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration) + PriorityLevelConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use PriorityLevelConfiguration.newBuilder() to construct. + private PriorityLevelConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PriorityLevelConfiguration() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PriorityLevelConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.class, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int SPEC_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec 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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec getSpec() { + return spec_ == null ? io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.getDefaultInstance() : 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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpecOrBuilder getSpecOrBuilder() { + return spec_ == null ? io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.getDefaultInstance() : spec_; + } + + public static final int STATUS_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus 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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus status = 3; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * `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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus status = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus getStatus() { + return status_ == null ? io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.getDefaultInstance() : 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
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus status = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatusOrBuilder getStatusOrBuilder() { + return status_ == null ? io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.getDefaultInstance() : status_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getSpec()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getStatus()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStatus()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration other = (io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && (hasStatus() == other.hasStatus()); + if (hasStatus()) { + result = result && getStatus() + .equals(other.getStatus()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * PriorityLevelConfiguration represents the configuration of a priority level.
+     * +k8s:supportsSubresource="/status"
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration) + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.class, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getSpecFieldBuilder(); + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (specBuilder_ == null) { + spec_ = null; + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (statusBuilder_ == null) { + status_ = null; + } else { + statusBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfiguration_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration build() { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration result = new io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.Builder, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpecOrBuilder> specBuilder_; + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec spec = 2; + */ + public Builder setSpec(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec spec = 2; + */ + public Builder setSpec( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec spec = 2; + */ + public Builder mergeSpec(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + spec_ != null && + spec_ != io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.getDefaultInstance()) { + spec_ = + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.getDefaultInstance() : 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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.Builder, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.Builder, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus status_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.Builder, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatusOrBuilder> statusBuilder_; + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus status = 3; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus status = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus status = 3; + */ + public Builder setStatus(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus status = 3; + */ + public Builder setStatus( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus status = 3; + */ + public Builder mergeStatus(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + status_ != null && + status_ != io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.getDefaultInstance()) { + status_ = + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus status = 3; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + statusBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus status = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.Builder getStatusBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+       * `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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus status = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.getDefaultInstance() : 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
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus status = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.Builder, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.Builder, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration) + private static final io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PriorityLevelConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PriorityLevelConfiguration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PriorityLevelConfigurationConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `type` is the type of the condition.
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + boolean hasType(); + /** + *
+     * `type` is the type of the condition.
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + java.lang.String getType(); + /** + *
+     * `type` is the type of the condition.
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+     * `status` is the status of the condition.
+     * Can be True, False, Unknown.
+     * Required.
+     * 
+ * + * optional string status = 2; + */ + boolean hasStatus(); + /** + *
+     * `status` is the status of the condition.
+     * Can be True, False, Unknown.
+     * Required.
+     * 
+ * + * optional string status = 2; + */ + java.lang.String getStatus(); + /** + *
+     * `status` is the status of the condition.
+     * Can be True, False, Unknown.
+     * Required.
+     * 
+ * + * optional string status = 2; + */ + com.google.protobuf.ByteString + getStatusBytes(); + + /** + *
+     * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + boolean hasLastTransitionTime(); + /** + *
+     * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + io.kubernetes.client.proto.Meta.Time getLastTransitionTime(); + /** + *
+     * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder(); + + /** + *
+     * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+     * 
+ * + * optional string reason = 4; + */ + boolean hasReason(); + /** + *
+     * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+     * 
+ * + * optional string reason = 4; + */ + java.lang.String getReason(); + /** + *
+     * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+     * 
+ * + * optional string reason = 4; + */ + com.google.protobuf.ByteString + getReasonBytes(); + + /** + *
+     * `message` is a human-readable message indicating details about last transition.
+     * 
+ * + * optional string message = 5; + */ + boolean hasMessage(); + /** + *
+     * `message` is a human-readable message indicating details about last transition.
+     * 
+ * + * optional string message = 5; + */ + java.lang.String getMessage(); + /** + *
+     * `message` is a human-readable message indicating details about last transition.
+     * 
+ * + * optional string message = 5; + */ + com.google.protobuf.ByteString + getMessageBytes(); + } + /** + *
+   * PriorityLevelConfigurationCondition defines the condition of priority level.
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition} + */ + public static final class PriorityLevelConfigurationCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition) + PriorityLevelConfigurationConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use PriorityLevelConfigurationCondition.newBuilder() to construct. + private PriorityLevelConfigurationCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PriorityLevelConfigurationCondition() { + type_ = ""; + status_ = ""; + reason_ = ""; + message_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PriorityLevelConfigurationCondition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + type_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + status_ = bs; + break; + } + case 26: { + io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = lastTransitionTime_.toBuilder(); + } + lastTransitionTime_ = input.readMessage(io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastTransitionTime_); + lastTransitionTime_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + reason_ = bs; + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000010; + message_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.class, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.Builder.class); + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object type_; + /** + *
+     * `type` is the type of the condition.
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `type` is the type of the condition.
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } + } + /** + *
+     * `type` is the type of the condition.
+     * Required.
+     * 
+ * + * optional string type = 1; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private volatile java.lang.Object status_; + /** + *
+     * `status` is the status of the condition.
+     * Can be True, False, Unknown.
+     * Required.
+     * 
+ * + * optional string status = 2; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * `status` is the status of the condition.
+     * Can be True, False, Unknown.
+     * Required.
+     * 
+ * + * optional string status = 2; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + status_ = s; + } + return s; + } + } + /** + *
+     * `status` is the status of the condition.
+     * Can be True, False, Unknown.
+     * Required.
+     * 
+ * + * optional string status = 2; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LASTTRANSITIONTIME_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.Meta.Time lastTransitionTime_; + /** + *
+     * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public boolean hasLastTransitionTime() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { + return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + } + /** + *
+     * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { + return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + } + + public static final int REASON_FIELD_NUMBER = 4; + private volatile java.lang.Object reason_; + /** + *
+     * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+     * 
+ * + * optional string reason = 4; + */ + public boolean hasReason() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+     * 
+ * + * optional string reason = 4; + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + reason_ = s; + } + return s; + } + } + /** + *
+     * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+     * 
+ * + * optional string reason = 4; + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 5; + private volatile java.lang.Object message_; + /** + *
+     * `message` is a human-readable message indicating details about last transition.
+     * 
+ * + * optional string message = 5; + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+     * `message` is a human-readable message indicating details about last transition.
+     * 
+ * + * optional string message = 5; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + message_ = s; + } + return s; + } + } + /** + *
+     * `message` is a human-readable message indicating details about last transition.
+     * 
+ * + * optional string message = 5; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getLastTransitionTime()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reason_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLastTransitionTime()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reason_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition other = (io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition) obj; + + boolean result = true; + result = result && (hasType() == other.hasType()); + if (hasType()) { + result = result && getType() + .equals(other.getType()); + } + result = result && (hasStatus() == other.hasStatus()); + if (hasStatus()) { + result = result && getStatus() + .equals(other.getStatus()); + } + result = result && (hasLastTransitionTime() == other.hasLastTransitionTime()); + if (hasLastTransitionTime()) { + result = result && getLastTransitionTime() + .equals(other.getLastTransitionTime()); + } + result = result && (hasReason() == other.hasReason()); + if (hasReason()) { + result = result && getReason() + .equals(other.getReason()); + } + result = result && (hasMessage() == other.hasMessage()); + if (hasMessage()) { + result = result && getMessage() + .equals(other.getMessage()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasLastTransitionTime()) { + hash = (37 * hash) + LASTTRANSITIONTIME_FIELD_NUMBER; + hash = (53 * hash) + getLastTransitionTime().hashCode(); + } + if (hasReason()) { + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + } + if (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * PriorityLevelConfigurationCondition defines the condition of priority level.
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition) + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.class, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLastTransitionTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + status_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTime_ = null; + } else { + lastTransitionTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + reason_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + message_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationCondition_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition build() { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition result = new io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.status_ = status_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (lastTransitionTimeBuilder_ == null) { + result.lastTransitionTime_ = lastTransitionTime_; + } else { + result.lastTransitionTime_ = lastTransitionTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.reason_ = reason_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.message_ = message_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.getDefaultInstance()) return this; + if (other.hasType()) { + bitField0_ |= 0x00000001; + type_ = other.type_; + onChanged(); + } + if (other.hasStatus()) { + bitField0_ |= 0x00000002; + status_ = other.status_; + onChanged(); + } + if (other.hasLastTransitionTime()) { + mergeLastTransitionTime(other.getLastTransitionTime()); + } + if (other.hasReason()) { + bitField0_ |= 0x00000008; + reason_ = other.reason_; + onChanged(); + } + if (other.hasMessage()) { + bitField0_ |= 0x00000010; + message_ = other.message_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object type_ = ""; + /** + *
+       * `type` is the type of the condition.
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `type` is the type of the condition.
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `type` is the type of the condition.
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `type` is the type of the condition.
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + /** + *
+       * `type` is the type of the condition.
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
+       * `type` is the type of the condition.
+       * Required.
+       * 
+ * + * optional string type = 1; + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + /** + *
+       * `status` is the status of the condition.
+       * Can be True, False, Unknown.
+       * Required.
+       * 
+ * + * optional string status = 2; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * `status` is the status of the condition.
+       * Can be True, False, Unknown.
+       * Required.
+       * 
+ * + * optional string status = 2; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + status_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `status` is the status of the condition.
+       * Can be True, False, Unknown.
+       * Required.
+       * 
+ * + * optional string status = 2; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `status` is the status of the condition.
+       * Can be True, False, Unknown.
+       * Required.
+       * 
+ * + * optional string status = 2; + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + status_ = value; + onChanged(); + return this; + } + /** + *
+       * `status` is the status of the condition.
+       * Can be True, False, Unknown.
+       * Required.
+       * 
+ * + * optional string status = 2; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + status_ = getDefaultInstance().getStatus(); + onChanged(); + return this; + } + /** + *
+       * `status` is the status of the condition.
+       * Can be True, False, Unknown.
+       * Required.
+       * 
+ * + * optional string status = 2; + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + status_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.Meta.Time lastTransitionTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> lastTransitionTimeBuilder_; + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public boolean hasLastTransitionTime() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { + if (lastTransitionTimeBuilder_ == null) { + return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + } else { + return lastTransitionTimeBuilder_.getMessage(); + } + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public Builder setLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { + if (lastTransitionTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastTransitionTime_ = value; + onChanged(); + } else { + lastTransitionTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public Builder setLastTransitionTime( + io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTime_ = builderForValue.build(); + onChanged(); + } else { + lastTransitionTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public Builder mergeLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { + if (lastTransitionTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + lastTransitionTime_ != null && + lastTransitionTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { + lastTransitionTime_ = + io.kubernetes.client.proto.Meta.Time.newBuilder(lastTransitionTime_).mergeFrom(value).buildPartial(); + } else { + lastTransitionTime_ = value; + } + onChanged(); + } else { + lastTransitionTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public Builder clearLastTransitionTime() { + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTime_ = null; + onChanged(); + } else { + lastTransitionTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public io.kubernetes.client.proto.Meta.Time.Builder getLastTransitionTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getLastTransitionTimeFieldBuilder().getBuilder(); + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { + if (lastTransitionTimeBuilder_ != null) { + return lastTransitionTimeBuilder_.getMessageOrBuilder(); + } else { + return lastTransitionTime_ == null ? + io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + } + } + /** + *
+       * `lastTransitionTime` is the last time the condition transitioned from one status to another.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> + getLastTransitionTimeFieldBuilder() { + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( + getLastTransitionTime(), + getParentForChildren(), + isClean()); + lastTransitionTime_ = null; + } + return lastTransitionTimeBuilder_; + } + + private java.lang.Object reason_ = ""; + /** + *
+       * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+       * 
+ * + * optional string reason = 4; + */ + public boolean hasReason() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+       * 
+ * + * optional string reason = 4; + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + reason_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+       * 
+ * + * optional string reason = 4; + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+       * 
+ * + * optional string reason = 4; + */ + public Builder setReason( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + reason_ = value; + onChanged(); + return this; + } + /** + *
+       * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+       * 
+ * + * optional string reason = 4; + */ + public Builder clearReason() { + bitField0_ = (bitField0_ & ~0x00000008); + reason_ = getDefaultInstance().getReason(); + onChanged(); + return this; + } + /** + *
+       * `reason` is a unique, one-word, CamelCase reason for the condition's last transition.
+       * 
+ * + * optional string reason = 4; + */ + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + reason_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+       * `message` is a human-readable message indicating details about last transition.
+       * 
+ * + * optional string message = 5; + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+       * `message` is a human-readable message indicating details about last transition.
+       * 
+ * + * optional string message = 5; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + message_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `message` is a human-readable message indicating details about last transition.
+       * 
+ * + * optional string message = 5; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `message` is a human-readable message indicating details about last transition.
+       * 
+ * + * optional string message = 5; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + message_ = value; + onChanged(); + return this; + } + /** + *
+       * `message` is a human-readable message indicating details about last transition.
+       * 
+ * + * optional string message = 5; + */ + public Builder clearMessage() { + bitField0_ = (bitField0_ & ~0x00000010); + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * `message` is a human-readable message indicating details about last transition.
+       * 
+ * + * optional string message = 5; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + message_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition) + private static final io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PriorityLevelConfigurationCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PriorityLevelConfigurationCondition(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PriorityLevelConfigurationListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * `items` is a list of request-priorities.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * `items` is a list of request-priorities.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration getItems(int index); + /** + *
+     * `items` is a list of request-priorities.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + int getItemsCount(); + /** + *
+     * `items` is a list of request-priorities.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * `items` is a list of request-priorities.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationList} + */ + public static final class PriorityLevelConfigurationList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationList) + PriorityLevelConfigurationListOrBuilder { + private static final long serialVersionUID = 0L; + // Use PriorityLevelConfigurationList.newBuilder() to construct. + private PriorityLevelConfigurationList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PriorityLevelConfigurationList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PriorityLevelConfigurationList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList.class, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * `metadata` is the standard object's metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * `items` is a list of request-priorities.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * `items` is a list of request-priorities.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * `items` is a list of request-priorities.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * `items` is a list of request-priorities.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration getItems(int index) { + return items_.get(index); + } + /** + *
+     * `items` is a list of request-priorities.
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList other = (io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * PriorityLevelConfigurationList is a list of PriorityLevelConfiguration objects.
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationList) + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList.class, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList build() { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList result = new io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * `metadata` is the standard object's metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.Builder, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationOrBuilder> itemsBuilder_; + + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.getDefaultInstance()); + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.getDefaultInstance()); + } + /** + *
+       * `items` is a list of request-priorities.
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfiguration items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.Builder, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfiguration.Builder, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationList) + private static final io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PriorityLevelConfigurationList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PriorityLevelConfigurationList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PriorityLevelConfigurationReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `name` is the name of the priority level configuration being referenced
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + boolean hasName(); + /** + *
+     * `name` is the name of the priority level configuration being referenced
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + java.lang.String getName(); + /** + *
+     * `name` is the name of the priority level configuration being referenced
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * PriorityLevelConfigurationReference contains information that points to the "request-priority" being used.
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference} + */ + public static final class PriorityLevelConfigurationReference extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference) + PriorityLevelConfigurationReferenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use PriorityLevelConfigurationReference.newBuilder() to construct. + private PriorityLevelConfigurationReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PriorityLevelConfigurationReference() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PriorityLevelConfigurationReference( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.class, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * `name` is the name of the priority level configuration being referenced
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `name` is the name of the priority level configuration being referenced
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + *
+     * `name` is the name of the priority level configuration being referenced
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference other = (io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference) obj; + + boolean result = true; + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * PriorityLevelConfigurationReference contains information that points to the "request-priority" being used.
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference) + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.class, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationReference_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference build() { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference result = new io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * `name` is the name of the priority level configuration being referenced
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `name` is the name of the priority level configuration being referenced
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `name` is the name of the priority level configuration being referenced
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `name` is the name of the priority level configuration being referenced
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + *
+       * `name` is the name of the priority level configuration being referenced
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * `name` is the name of the priority level configuration being referenced
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationReference) + private static final io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PriorityLevelConfigurationReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PriorityLevelConfigurationReference(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PriorityLevelConfigurationSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `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.
+     * +unionDiscriminator
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+     * 
+ * + * optional string type = 1; + */ + boolean hasType(); + /** + *
+     * `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.
+     * +unionDiscriminator
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+     * 
+ * + * optional string type = 1; + */ + java.lang.String getType(); + /** + *
+     * `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.
+     * +unionDiscriminator
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+     * 
+ * + * optional string type = 1; + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+     * `limited` specifies how requests are handled for a Limited priority level.
+     * This field must be non-empty if and only if `type` is `"Limited"`.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Limited")=+k8s:required
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration limited = 2; + */ + boolean hasLimited(); + /** + *
+     * `limited` specifies how requests are handled for a Limited priority level.
+     * This field must be non-empty if and only if `type` is `"Limited"`.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Limited")=+k8s:required
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration limited = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration getLimited(); + /** + *
+     * `limited` specifies how requests are handled for a Limited priority level.
+     * This field must be non-empty if and only if `type` is `"Limited"`.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Limited")=+k8s:required
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration limited = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfigurationOrBuilder getLimitedOrBuilder(); + + /** + *
+     * `exempt` specifies how requests are handled for an exempt priority level.
+     * This field MUST be empty if `type` is `"Limited"`.
+     * This field MAY be non-empty if `type` is `"Exempt"`.
+     * If empty and `type` is `"Exempt"` then the default values
+     * for `ExemptPriorityLevelConfiguration` apply.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Exempt")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration exempt = 3; + */ + boolean hasExempt(); + /** + *
+     * `exempt` specifies how requests are handled for an exempt priority level.
+     * This field MUST be empty if `type` is `"Limited"`.
+     * This field MAY be non-empty if `type` is `"Exempt"`.
+     * If empty and `type` is `"Exempt"` then the default values
+     * for `ExemptPriorityLevelConfiguration` apply.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Exempt")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration exempt = 3; + */ + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration getExempt(); + /** + *
+     * `exempt` specifies how requests are handled for an exempt priority level.
+     * This field MUST be empty if `type` is `"Limited"`.
+     * This field MAY be non-empty if `type` is `"Exempt"`.
+     * If empty and `type` is `"Exempt"` then the default values
+     * for `ExemptPriorityLevelConfiguration` apply.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Exempt")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration exempt = 3; + */ + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfigurationOrBuilder getExemptOrBuilder(); + } + /** + *
+   * PriorityLevelConfigurationSpec specifies the configuration of a priority level.
+   * +union
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec} + */ + public static final class PriorityLevelConfigurationSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec) + PriorityLevelConfigurationSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use PriorityLevelConfigurationSpec.newBuilder() to construct. + private PriorityLevelConfigurationSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PriorityLevelConfigurationSpec() { + type_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PriorityLevelConfigurationSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + type_ = bs; + break; + } + case 18: { + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = limited_.toBuilder(); + } + limited_ = input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(limited_); + limited_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = exempt_.toBuilder(); + } + exempt_ = input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(exempt_); + exempt_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.class, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.Builder.class); + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object 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.
+     * +unionDiscriminator
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+     * 
+ * + * optional string type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `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.
+     * +unionDiscriminator
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+     * 
+ * + * optional string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } + } + /** + *
+     * `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.
+     * +unionDiscriminator
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+     * 
+ * + * optional string type = 1; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LIMITED_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration 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"`.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Limited")=+k8s:required
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration limited = 2; + */ + public boolean hasLimited() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * `limited` specifies how requests are handled for a Limited priority level.
+     * This field must be non-empty if and only if `type` is `"Limited"`.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Limited")=+k8s:required
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration limited = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration getLimited() { + return limited_ == null ? io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.getDefaultInstance() : 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"`.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Limited")=+k8s:required
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration limited = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfigurationOrBuilder getLimitedOrBuilder() { + return limited_ == null ? io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.getDefaultInstance() : limited_; + } + + public static final int EXEMPT_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration exempt_; + /** + *
+     * `exempt` specifies how requests are handled for an exempt priority level.
+     * This field MUST be empty if `type` is `"Limited"`.
+     * This field MAY be non-empty if `type` is `"Exempt"`.
+     * If empty and `type` is `"Exempt"` then the default values
+     * for `ExemptPriorityLevelConfiguration` apply.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Exempt")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration exempt = 3; + */ + public boolean hasExempt() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * `exempt` specifies how requests are handled for an exempt priority level.
+     * This field MUST be empty if `type` is `"Limited"`.
+     * This field MAY be non-empty if `type` is `"Exempt"`.
+     * If empty and `type` is `"Exempt"` then the default values
+     * for `ExemptPriorityLevelConfiguration` apply.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Exempt")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration exempt = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration getExempt() { + return exempt_ == null ? io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.getDefaultInstance() : exempt_; + } + /** + *
+     * `exempt` specifies how requests are handled for an exempt priority level.
+     * This field MUST be empty if `type` is `"Limited"`.
+     * This field MAY be non-empty if `type` is `"Exempt"`.
+     * If empty and `type` is `"Exempt"` then the default values
+     * for `ExemptPriorityLevelConfiguration` apply.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:ifMode("Exempt")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration exempt = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfigurationOrBuilder getExemptOrBuilder() { + return exempt_ == null ? io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.getDefaultInstance() : exempt_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getLimited()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getExempt()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getLimited()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getExempt()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec other = (io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec) obj; + + boolean result = true; + result = result && (hasType() == other.hasType()); + if (hasType()) { + result = result && getType() + .equals(other.getType()); + } + result = result && (hasLimited() == other.hasLimited()); + if (hasLimited()) { + result = result && getLimited() + .equals(other.getLimited()); + } + result = result && (hasExempt() == other.hasExempt()); + if (hasExempt()) { + result = result && getExempt() + .equals(other.getExempt()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasLimited()) { + hash = (37 * hash) + LIMITED_FIELD_NUMBER; + hash = (53 * hash) + getLimited().hashCode(); + } + if (hasExempt()) { + hash = (37 * hash) + EXEMPT_FIELD_NUMBER; + hash = (53 * hash) + getExempt().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * PriorityLevelConfigurationSpec specifies the configuration of a priority level.
+     * +union
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec) + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.class, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLimitedFieldBuilder(); + getExemptFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (limitedBuilder_ == null) { + limited_ = null; + } else { + limitedBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (exemptBuilder_ == null) { + exempt_ = null; + } else { + exemptBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationSpec_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec build() { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec result = new io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (limitedBuilder_ == null) { + result.limited_ = limited_; + } else { + result.limited_ = limitedBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (exemptBuilder_ == null) { + result.exempt_ = exempt_; + } else { + result.exempt_ = exemptBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec.getDefaultInstance()) return this; + if (other.hasType()) { + bitField0_ |= 0x00000001; + type_ = other.type_; + onChanged(); + } + if (other.hasLimited()) { + mergeLimited(other.getLimited()); + } + if (other.hasExempt()) { + mergeExempt(other.getExempt()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object 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.
+       * +unionDiscriminator
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+       * 
+ * + * optional string type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `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.
+       * +unionDiscriminator
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+       * 
+ * + * optional string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `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.
+       * +unionDiscriminator
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+       * 
+ * + * optional string type = 1; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `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.
+       * +unionDiscriminator
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+       * 
+ * + * optional string type = 1; + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +unionDiscriminator
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+       * 
+ * + * optional string type = 1; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +unionDiscriminator
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:modeDiscriminator
+       * 
+ * + * optional string type = 1; + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration limited_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration, io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.Builder, io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfigurationOrBuilder> limitedBuilder_; + /** + *
+       * `limited` specifies how requests are handled for a Limited priority level.
+       * This field must be non-empty if and only if `type` is `"Limited"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Limited")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration limited = 2; + */ + public boolean hasLimited() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * `limited` specifies how requests are handled for a Limited priority level.
+       * This field must be non-empty if and only if `type` is `"Limited"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Limited")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration limited = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration getLimited() { + if (limitedBuilder_ == null) { + return limited_ == null ? io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.getDefaultInstance() : limited_; + } else { + return limitedBuilder_.getMessage(); + } + } + /** + *
+       * `limited` specifies how requests are handled for a Limited priority level.
+       * This field must be non-empty if and only if `type` is `"Limited"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Limited")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration limited = 2; + */ + public Builder setLimited(io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration value) { + if (limitedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + limited_ = value; + onChanged(); + } else { + limitedBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `limited` specifies how requests are handled for a Limited priority level.
+       * This field must be non-empty if and only if `type` is `"Limited"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Limited")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration limited = 2; + */ + public Builder setLimited( + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.Builder builderForValue) { + if (limitedBuilder_ == null) { + limited_ = builderForValue.build(); + onChanged(); + } else { + limitedBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `limited` specifies how requests are handled for a Limited priority level.
+       * This field must be non-empty if and only if `type` is `"Limited"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Limited")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration limited = 2; + */ + public Builder mergeLimited(io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration value) { + if (limitedBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + limited_ != null && + limited_ != io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.getDefaultInstance()) { + limited_ = + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.newBuilder(limited_).mergeFrom(value).buildPartial(); + } else { + limited_ = value; + } + onChanged(); + } else { + limitedBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `limited` specifies how requests are handled for a Limited priority level.
+       * This field must be non-empty if and only if `type` is `"Limited"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Limited")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration limited = 2; + */ + public Builder clearLimited() { + if (limitedBuilder_ == null) { + limited_ = null; + onChanged(); + } else { + limitedBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * `limited` specifies how requests are handled for a Limited priority level.
+       * This field must be non-empty if and only if `type` is `"Limited"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Limited")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration limited = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.Builder getLimitedBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getLimitedFieldBuilder().getBuilder(); + } + /** + *
+       * `limited` specifies how requests are handled for a Limited priority level.
+       * This field must be non-empty if and only if `type` is `"Limited"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Limited")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration limited = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfigurationOrBuilder getLimitedOrBuilder() { + if (limitedBuilder_ != null) { + return limitedBuilder_.getMessageOrBuilder(); + } else { + return limited_ == null ? + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.getDefaultInstance() : 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"`.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Limited")=+k8s:required
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.LimitedPriorityLevelConfiguration limited = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration, io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.Builder, io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfigurationOrBuilder> + getLimitedFieldBuilder() { + if (limitedBuilder_ == null) { + limitedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration, io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfiguration.Builder, io.kubernetes.client.proto.V1Flowcontrol.LimitedPriorityLevelConfigurationOrBuilder>( + getLimited(), + getParentForChildren(), + isClean()); + limited_ = null; + } + return limitedBuilder_; + } + + private io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration exempt_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration, io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.Builder, io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfigurationOrBuilder> exemptBuilder_; + /** + *
+       * `exempt` specifies how requests are handled for an exempt priority level.
+       * This field MUST be empty if `type` is `"Limited"`.
+       * This field MAY be non-empty if `type` is `"Exempt"`.
+       * If empty and `type` is `"Exempt"` then the default values
+       * for `ExemptPriorityLevelConfiguration` apply.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Exempt")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration exempt = 3; + */ + public boolean hasExempt() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * `exempt` specifies how requests are handled for an exempt priority level.
+       * This field MUST be empty if `type` is `"Limited"`.
+       * This field MAY be non-empty if `type` is `"Exempt"`.
+       * If empty and `type` is `"Exempt"` then the default values
+       * for `ExemptPriorityLevelConfiguration` apply.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Exempt")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration exempt = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration getExempt() { + if (exemptBuilder_ == null) { + return exempt_ == null ? io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.getDefaultInstance() : exempt_; + } else { + return exemptBuilder_.getMessage(); + } + } + /** + *
+       * `exempt` specifies how requests are handled for an exempt priority level.
+       * This field MUST be empty if `type` is `"Limited"`.
+       * This field MAY be non-empty if `type` is `"Exempt"`.
+       * If empty and `type` is `"Exempt"` then the default values
+       * for `ExemptPriorityLevelConfiguration` apply.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Exempt")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration exempt = 3; + */ + public Builder setExempt(io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration value) { + if (exemptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exempt_ = value; + onChanged(); + } else { + exemptBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `exempt` specifies how requests are handled for an exempt priority level.
+       * This field MUST be empty if `type` is `"Limited"`.
+       * This field MAY be non-empty if `type` is `"Exempt"`.
+       * If empty and `type` is `"Exempt"` then the default values
+       * for `ExemptPriorityLevelConfiguration` apply.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Exempt")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration exempt = 3; + */ + public Builder setExempt( + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.Builder builderForValue) { + if (exemptBuilder_ == null) { + exempt_ = builderForValue.build(); + onChanged(); + } else { + exemptBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `exempt` specifies how requests are handled for an exempt priority level.
+       * This field MUST be empty if `type` is `"Limited"`.
+       * This field MAY be non-empty if `type` is `"Exempt"`.
+       * If empty and `type` is `"Exempt"` then the default values
+       * for `ExemptPriorityLevelConfiguration` apply.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Exempt")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration exempt = 3; + */ + public Builder mergeExempt(io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration value) { + if (exemptBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + exempt_ != null && + exempt_ != io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.getDefaultInstance()) { + exempt_ = + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.newBuilder(exempt_).mergeFrom(value).buildPartial(); + } else { + exempt_ = value; + } + onChanged(); + } else { + exemptBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `exempt` specifies how requests are handled for an exempt priority level.
+       * This field MUST be empty if `type` is `"Limited"`.
+       * This field MAY be non-empty if `type` is `"Exempt"`.
+       * If empty and `type` is `"Exempt"` then the default values
+       * for `ExemptPriorityLevelConfiguration` apply.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Exempt")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration exempt = 3; + */ + public Builder clearExempt() { + if (exemptBuilder_ == null) { + exempt_ = null; + onChanged(); + } else { + exemptBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * `exempt` specifies how requests are handled for an exempt priority level.
+       * This field MUST be empty if `type` is `"Limited"`.
+       * This field MAY be non-empty if `type` is `"Exempt"`.
+       * If empty and `type` is `"Exempt"` then the default values
+       * for `ExemptPriorityLevelConfiguration` apply.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Exempt")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration exempt = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.Builder getExemptBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getExemptFieldBuilder().getBuilder(); + } + /** + *
+       * `exempt` specifies how requests are handled for an exempt priority level.
+       * This field MUST be empty if `type` is `"Limited"`.
+       * This field MAY be non-empty if `type` is `"Exempt"`.
+       * If empty and `type` is `"Exempt"` then the default values
+       * for `ExemptPriorityLevelConfiguration` apply.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Exempt")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration exempt = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfigurationOrBuilder getExemptOrBuilder() { + if (exemptBuilder_ != null) { + return exemptBuilder_.getMessageOrBuilder(); + } else { + return exempt_ == null ? + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.getDefaultInstance() : exempt_; + } + } + /** + *
+       * `exempt` specifies how requests are handled for an exempt priority level.
+       * This field MUST be empty if `type` is `"Limited"`.
+       * This field MAY be non-empty if `type` is `"Exempt"`.
+       * If empty and `type` is `"Exempt"` then the default values
+       * for `ExemptPriorityLevelConfiguration` apply.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:ifMode("Exempt")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ExemptPriorityLevelConfiguration exempt = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration, io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.Builder, io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfigurationOrBuilder> + getExemptFieldBuilder() { + if (exemptBuilder_ == null) { + exemptBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration, io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfiguration.Builder, io.kubernetes.client.proto.V1Flowcontrol.ExemptPriorityLevelConfigurationOrBuilder>( + getExempt(), + getParentForChildren(), + isClean()); + exempt_ = null; + } + return exemptBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationSpec) + private static final io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PriorityLevelConfigurationSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PriorityLevelConfigurationSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PriorityLevelConfigurationStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `conditions` is the current state of "request-priority".
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + java.util.List + getConditionsList(); + /** + *
+     * `conditions` is the current state of "request-priority".
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition getConditions(int index); + /** + *
+     * `conditions` is the current state of "request-priority".
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + int getConditionsCount(); + /** + *
+     * `conditions` is the current state of "request-priority".
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+     * `conditions` is the current state of "request-priority".
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationConditionOrBuilder getConditionsOrBuilder( + int index); + } + /** + *
+   * PriorityLevelConfigurationStatus represents the current state of a "request-priority".
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus} + */ + public static final class PriorityLevelConfigurationStatus extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus) + PriorityLevelConfigurationStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use PriorityLevelConfigurationStatus.newBuilder() to construct. + private PriorityLevelConfigurationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PriorityLevelConfigurationStatus() { + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PriorityLevelConfigurationStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + conditions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + conditions_.add( + input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.class, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.Builder.class); + } + + public static final int CONDITIONS_FIELD_NUMBER = 1; + private java.util.List conditions_; + /** + *
+     * `conditions` is the current state of "request-priority".
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+     * `conditions` is the current state of "request-priority".
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+     * `conditions` is the current state of "request-priority".
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+     * `conditions` is the current state of "request-priority".
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition getConditions(int index) { + return conditions_.get(index); + } + /** + *
+     * `conditions` is the current state of "request-priority".
+     * +listType=map
+     * +listMapKey=type
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +optional
+     * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationConditionOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(1, conditions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, conditions_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus other = (io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus) obj; + + boolean result = true; + result = result && getConditionsList() + .equals(other.getConditionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * PriorityLevelConfigurationStatus represents the current state of a "request-priority".
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus) + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.class, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConditionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + conditionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationStatus_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus build() { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus result = new io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus(this); + int from_bitField0_ = bitField0_; + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus.getDefaultInstance()) return this; + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000001); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.Builder, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationConditionOrBuilder> conditionsBuilder_; + + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public Builder setConditions( + int index, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public Builder setConditions( + int index, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public Builder addConditions(io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public Builder addConditions( + int index, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public Builder addConditions( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public Builder addConditions( + int index, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationConditionOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.getDefaultInstance()); + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.getDefaultInstance()); + } + /** + *
+       * `conditions` is the current state of "request-priority".
+       * +listType=map
+       * +listMapKey=type
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +optional
+       * 
+ * + * repeated .k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationCondition conditions = 1; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.Builder, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationCondition.Builder, io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationConditionOrBuilder>( + conditions_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.PriorityLevelConfigurationStatus) + private static final io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PriorityLevelConfigurationStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PriorityLevelConfigurationStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.PriorityLevelConfigurationStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface QueuingConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.QueuingConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional int32 queues = 1; + */ + boolean hasQueues(); + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional int32 queues = 1; + */ + int getQueues(); + + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional int32 handSize = 2; + */ + boolean hasHandSize(); + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional int32 handSize = 2; + */ + int getHandSize(); + + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional int32 queueLengthLimit = 3; + */ + boolean hasQueueLengthLimit(); + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional int32 queueLengthLimit = 3; + */ + int getQueueLengthLimit(); + } + /** + *
+   * QueuingConfiguration holds the configuration parameters for queuing
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.QueuingConfiguration} + */ + public static final class QueuingConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.QueuingConfiguration) + QueuingConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use QueuingConfiguration.newBuilder() to construct. + private QueuingConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private QueuingConfiguration() { + queues_ = 0; + handSize_ = 0; + queueLengthLimit_ = 0; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private QueuingConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + bitField0_ |= 0x00000001; + queues_ = input.readInt32(); + break; + } + case 16: { + bitField0_ |= 0x00000002; + handSize_ = input.readInt32(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + queueLengthLimit_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_QueuingConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_QueuingConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.class, io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.Builder.class); + } + + private int bitField0_; + public static final int QUEUES_FIELD_NUMBER = 1; + private int 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.
+     * +optional
+     * 
+ * + * optional int32 queues = 1; + */ + public boolean hasQueues() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional int32 queues = 1; + */ + public int getQueues() { + return queues_; + } + + public static final int HANDSIZE_FIELD_NUMBER = 2; + private int 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.
+     * +optional
+     * 
+ * + * optional int32 handSize = 2; + */ + public boolean hasHandSize() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional int32 handSize = 2; + */ + public int getHandSize() { + return handSize_; + } + + public static final int QUEUELENGTHLIMIT_FIELD_NUMBER = 3; + private int 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.
+     * +optional
+     * 
+ * + * optional int32 queueLengthLimit = 3; + */ + public boolean hasQueueLengthLimit() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional int32 queueLengthLimit = 3; + */ + public int getQueueLengthLimit() { + return queueLengthLimit_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt32(1, queues_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt32(2, handSize_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt32(3, queueLengthLimit_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, queues_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, handSize_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, queueLengthLimit_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration other = (io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration) obj; + + boolean result = true; + result = result && (hasQueues() == other.hasQueues()); + if (hasQueues()) { + result = result && (getQueues() + == other.getQueues()); + } + result = result && (hasHandSize() == other.hasHandSize()); + if (hasHandSize()) { + result = result && (getHandSize() + == other.getHandSize()); + } + result = result && (hasQueueLengthLimit() == other.hasQueueLengthLimit()); + if (hasQueueLengthLimit()) { + result = result && (getQueueLengthLimit() + == other.getQueueLengthLimit()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasQueues()) { + hash = (37 * hash) + QUEUES_FIELD_NUMBER; + hash = (53 * hash) + getQueues(); + } + if (hasHandSize()) { + hash = (37 * hash) + HANDSIZE_FIELD_NUMBER; + hash = (53 * hash) + getHandSize(); + } + if (hasQueueLengthLimit()) { + hash = (37 * hash) + QUEUELENGTHLIMIT_FIELD_NUMBER; + hash = (53 * hash) + getQueueLengthLimit(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * QueuingConfiguration holds the configuration parameters for queuing
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.QueuingConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.QueuingConfiguration) + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_QueuingConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_QueuingConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.class, io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + queues_ = 0; + bitField0_ = (bitField0_ & ~0x00000001); + handSize_ = 0; + bitField0_ = (bitField0_ & ~0x00000002); + queueLengthLimit_ = 0; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_QueuingConfiguration_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration build() { + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration result = new io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.queues_ = queues_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.handSize_ = handSize_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.queueLengthLimit_ = queueLengthLimit_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration.getDefaultInstance()) return this; + if (other.hasQueues()) { + setQueues(other.getQueues()); + } + if (other.hasHandSize()) { + setHandSize(other.getHandSize()); + } + if (other.hasQueueLengthLimit()) { + setQueueLengthLimit(other.getQueueLengthLimit()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int 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.
+       * +optional
+       * 
+ * + * optional int32 queues = 1; + */ + public boolean hasQueues() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional int32 queues = 1; + */ + public int getQueues() { + return 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.
+       * +optional
+       * 
+ * + * optional int32 queues = 1; + */ + public Builder setQueues(int value) { + bitField0_ |= 0x00000001; + queues_ = value; + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional int32 queues = 1; + */ + public Builder clearQueues() { + bitField0_ = (bitField0_ & ~0x00000001); + queues_ = 0; + onChanged(); + return this; + } + + private int 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.
+       * +optional
+       * 
+ * + * optional int32 handSize = 2; + */ + public boolean hasHandSize() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional int32 handSize = 2; + */ + public int getHandSize() { + return 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.
+       * +optional
+       * 
+ * + * optional int32 handSize = 2; + */ + public Builder setHandSize(int value) { + bitField0_ |= 0x00000002; + handSize_ = value; + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional int32 handSize = 2; + */ + public Builder clearHandSize() { + bitField0_ = (bitField0_ & ~0x00000002); + handSize_ = 0; + onChanged(); + return this; + } + + private int 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.
+       * +optional
+       * 
+ * + * optional int32 queueLengthLimit = 3; + */ + public boolean hasQueueLengthLimit() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional int32 queueLengthLimit = 3; + */ + public int getQueueLengthLimit() { + return 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.
+       * +optional
+       * 
+ * + * optional int32 queueLengthLimit = 3; + */ + public Builder setQueueLengthLimit(int value) { + bitField0_ |= 0x00000004; + queueLengthLimit_ = value; + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional int32 queueLengthLimit = 3; + */ + public Builder clearQueueLengthLimit() { + bitField0_ = (bitField0_ & ~0x00000004); + queueLengthLimit_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.QueuingConfiguration) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.QueuingConfiguration) + private static final io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueuingConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new QueuingConfiguration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.QueuingConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourcePolicyRuleOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.ResourcePolicyRule) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `verbs` is a list of matching verbs and may not be empty.
+     * "*" matches all verbs and, if present, must be the only entry.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + java.util.List + getVerbsList(); + /** + *
+     * `verbs` is a list of matching verbs and may not be empty.
+     * "*" matches all verbs and, if present, must be the only entry.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + int getVerbsCount(); + /** + *
+     * `verbs` is a list of matching verbs and may not be empty.
+     * "*" matches all verbs and, if present, must be the only entry.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + java.lang.String getVerbs(int index); + /** + *
+     * `verbs` is a list of matching verbs and may not be empty.
+     * "*" matches all verbs and, if present, must be the only entry.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + com.google.protobuf.ByteString + getVerbsBytes(int index); + + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string apiGroups = 2; + */ + java.util.List + getApiGroupsList(); + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string apiGroups = 2; + */ + int getApiGroupsCount(); + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string apiGroups = 2; + */ + java.lang.String getApiGroups(int index); + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string apiGroups = 2; + */ + com.google.protobuf.ByteString + getApiGroupsBytes(int index); + + /** + *
+     * `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.
+     * +listType=set
+     * 
+ * + * repeated string resources = 3; + */ + java.util.List + getResourcesList(); + /** + *
+     * `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.
+     * +listType=set
+     * 
+ * + * repeated string resources = 3; + */ + int getResourcesCount(); + /** + *
+     * `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.
+     * +listType=set
+     * 
+ * + * repeated string resources = 3; + */ + java.lang.String getResources(int index); + /** + *
+     * `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.
+     * +listType=set
+     * 
+ * + * repeated string resources = 3; + */ + com.google.protobuf.ByteString + getResourcesBytes(int index); + + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional bool clusterScope = 4; + */ + boolean hasClusterScope(); + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional bool clusterScope = 4; + */ + boolean getClusterScope(); + + /** + *
+     * `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.
+     * +optional
+     * +listType=set
+     * 
+ * + * repeated string namespaces = 5; + */ + java.util.List + getNamespacesList(); + /** + *
+     * `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.
+     * +optional
+     * +listType=set
+     * 
+ * + * repeated string namespaces = 5; + */ + int getNamespacesCount(); + /** + *
+     * `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.
+     * +optional
+     * +listType=set
+     * 
+ * + * repeated string namespaces = 5; + */ + java.lang.String getNamespaces(int index); + /** + *
+     * `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.
+     * +optional
+     * +listType=set
+     * 
+ * + * repeated string namespaces = 5; + */ + com.google.protobuf.ByteString + getNamespacesBytes(int index); + } + /** + *
+   * 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) either (d1) the request does
+   * not specify a namespace (i.e., `Namespace==""`) and clusterScope is
+   * true or (d2) the request specifies a namespace and least one member
+   * of namespaces matches the request's namespace.
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.ResourcePolicyRule} + */ + public static final class ResourcePolicyRule extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.ResourcePolicyRule) + ResourcePolicyRuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourcePolicyRule.newBuilder() to construct. + private ResourcePolicyRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourcePolicyRule() { + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + apiGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; + resources_ = com.google.protobuf.LazyStringArrayList.EMPTY; + clusterScope_ = false; + namespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourcePolicyRule( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + verbs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + verbs_.add(bs); + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + apiGroups_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + apiGroups_.add(bs); + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + resources_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + resources_.add(bs); + break; + } + case 32: { + bitField0_ |= 0x00000001; + clusterScope_ = input.readBool(); + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + namespaces_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + namespaces_.add(bs); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + verbs_ = verbs_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + apiGroups_ = apiGroups_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + resources_ = resources_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + namespaces_ = namespaces_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_ResourcePolicyRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_ResourcePolicyRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.class, io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.Builder.class); + } + + private int bitField0_; + public static final int VERBS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList verbs_; + /** + *
+     * `verbs` is a list of matching verbs and may not be empty.
+     * "*" matches all verbs and, if present, must be the only entry.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + public com.google.protobuf.ProtocolStringList + getVerbsList() { + return verbs_; + } + /** + *
+     * `verbs` is a list of matching verbs and may not be empty.
+     * "*" matches all verbs and, if present, must be the only entry.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + public int getVerbsCount() { + return verbs_.size(); + } + /** + *
+     * `verbs` is a list of matching verbs and may not be empty.
+     * "*" matches all verbs and, if present, must be the only entry.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + public java.lang.String getVerbs(int index) { + return verbs_.get(index); + } + /** + *
+     * `verbs` is a list of matching verbs and may not be empty.
+     * "*" matches all verbs and, if present, must be the only entry.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string verbs = 1; + */ + public com.google.protobuf.ByteString + getVerbsBytes(int index) { + return verbs_.getByteString(index); + } + + public static final int APIGROUPS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList 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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string apiGroups = 2; + */ + public com.google.protobuf.ProtocolStringList + getApiGroupsList() { + return 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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string apiGroups = 2; + */ + public int getApiGroupsCount() { + return apiGroups_.size(); + } + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string apiGroups = 2; + */ + public java.lang.String getApiGroups(int index) { + return apiGroups_.get(index); + } + /** + *
+     * `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.
+     * +listType=set
+     * Required.
+     * 
+ * + * repeated string apiGroups = 2; + */ + public com.google.protobuf.ByteString + getApiGroupsBytes(int index) { + return apiGroups_.getByteString(index); + } + + public static final int RESOURCES_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList 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.
+     * +listType=set
+     * 
+ * + * repeated string resources = 3; + */ + public com.google.protobuf.ProtocolStringList + getResourcesList() { + return 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.
+     * +listType=set
+     * 
+ * + * repeated string resources = 3; + */ + public int getResourcesCount() { + return resources_.size(); + } + /** + *
+     * `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.
+     * +listType=set
+     * 
+ * + * repeated string resources = 3; + */ + public java.lang.String getResources(int index) { + return resources_.get(index); + } + /** + *
+     * `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.
+     * +listType=set
+     * 
+ * + * repeated string resources = 3; + */ + public com.google.protobuf.ByteString + getResourcesBytes(int index) { + return resources_.getByteString(index); + } + + public static final int CLUSTERSCOPE_FIELD_NUMBER = 4; + private boolean 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.
+     * +optional
+     * 
+ * + * optional bool clusterScope = 4; + */ + public boolean hasClusterScope() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `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.
+     * +optional
+     * 
+ * + * optional bool clusterScope = 4; + */ + public boolean getClusterScope() { + return clusterScope_; + } + + public static final int NAMESPACES_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList 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.
+     * +optional
+     * +listType=set
+     * 
+ * + * repeated string namespaces = 5; + */ + public com.google.protobuf.ProtocolStringList + getNamespacesList() { + return 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.
+     * +optional
+     * +listType=set
+     * 
+ * + * repeated string namespaces = 5; + */ + public int getNamespacesCount() { + return namespaces_.size(); + } + /** + *
+     * `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.
+     * +optional
+     * +listType=set
+     * 
+ * + * repeated string namespaces = 5; + */ + public java.lang.String getNamespaces(int index) { + return namespaces_.get(index); + } + /** + *
+     * `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.
+     * +optional
+     * +listType=set
+     * 
+ * + * repeated string namespaces = 5; + */ + public com.google.protobuf.ByteString + getNamespacesBytes(int index) { + return namespaces_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < verbs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, verbs_.getRaw(i)); + } + for (int i = 0; i < apiGroups_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, apiGroups_.getRaw(i)); + } + for (int i = 0; i < resources_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resources_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBool(4, clusterScope_); + } + for (int i = 0; i < namespaces_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, namespaces_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < verbs_.size(); i++) { + dataSize += computeStringSizeNoTag(verbs_.getRaw(i)); + } + size += dataSize; + size += 1 * getVerbsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < apiGroups_.size(); i++) { + dataSize += computeStringSizeNoTag(apiGroups_.getRaw(i)); + } + size += dataSize; + size += 1 * getApiGroupsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < resources_.size(); i++) { + dataSize += computeStringSizeNoTag(resources_.getRaw(i)); + } + size += dataSize; + size += 1 * getResourcesList().size(); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(4, clusterScope_); + } + { + int dataSize = 0; + for (int i = 0; i < namespaces_.size(); i++) { + dataSize += computeStringSizeNoTag(namespaces_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamespacesList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule other = (io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule) obj; + + boolean result = true; + result = result && getVerbsList() + .equals(other.getVerbsList()); + result = result && getApiGroupsList() + .equals(other.getApiGroupsList()); + result = result && getResourcesList() + .equals(other.getResourcesList()); + result = result && (hasClusterScope() == other.hasClusterScope()); + if (hasClusterScope()) { + result = result && (getClusterScope() + == other.getClusterScope()); + } + result = result && getNamespacesList() + .equals(other.getNamespacesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getVerbsCount() > 0) { + hash = (37 * hash) + VERBS_FIELD_NUMBER; + hash = (53 * hash) + getVerbsList().hashCode(); + } + if (getApiGroupsCount() > 0) { + hash = (37 * hash) + APIGROUPS_FIELD_NUMBER; + hash = (53 * hash) + getApiGroupsList().hashCode(); + } + if (getResourcesCount() > 0) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResourcesList().hashCode(); + } + if (hasClusterScope()) { + hash = (37 * hash) + CLUSTERSCOPE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getClusterScope()); + } + if (getNamespacesCount() > 0) { + hash = (37 * hash) + NAMESPACES_FIELD_NUMBER; + hash = (53 * hash) + getNamespacesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * 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) either (d1) the request does
+     * not specify a namespace (i.e., `Namespace==""`) and clusterScope is
+     * true or (d2) the request specifies a namespace and least one member
+     * of namespaces matches the request's namespace.
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.ResourcePolicyRule} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.ResourcePolicyRule) + io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_ResourcePolicyRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_ResourcePolicyRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.class, io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + apiGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + resources_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + clusterScope_ = false; + bitField0_ = (bitField0_ & ~0x00000008); + namespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_ResourcePolicyRule_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule build() { + io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule result = new io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + verbs_ = verbs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.verbs_ = verbs_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + apiGroups_ = apiGroups_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.apiGroups_ = apiGroups_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + resources_ = resources_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.resources_ = resources_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000001; + } + result.clusterScope_ = clusterScope_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + namespaces_ = namespaces_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.namespaces_ = namespaces_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule.getDefaultInstance()) return this; + if (!other.verbs_.isEmpty()) { + if (verbs_.isEmpty()) { + verbs_ = other.verbs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureVerbsIsMutable(); + verbs_.addAll(other.verbs_); + } + onChanged(); + } + if (!other.apiGroups_.isEmpty()) { + if (apiGroups_.isEmpty()) { + apiGroups_ = other.apiGroups_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureApiGroupsIsMutable(); + apiGroups_.addAll(other.apiGroups_); + } + onChanged(); + } + if (!other.resources_.isEmpty()) { + if (resources_.isEmpty()) { + resources_ = other.resources_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureResourcesIsMutable(); + resources_.addAll(other.resources_); + } + onChanged(); + } + if (other.hasClusterScope()) { + setClusterScope(other.getClusterScope()); + } + if (!other.namespaces_.isEmpty()) { + if (namespaces_.isEmpty()) { + namespaces_ = other.namespaces_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureNamespacesIsMutable(); + namespaces_.addAll(other.namespaces_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureVerbsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + verbs_ = new com.google.protobuf.LazyStringArrayList(verbs_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * `verbs` is a list of matching verbs and may not be empty.
+       * "*" matches all verbs and, if present, must be the only entry.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public com.google.protobuf.ProtocolStringList + getVerbsList() { + return verbs_.getUnmodifiableView(); + } + /** + *
+       * `verbs` is a list of matching verbs and may not be empty.
+       * "*" matches all verbs and, if present, must be the only entry.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public int getVerbsCount() { + return verbs_.size(); + } + /** + *
+       * `verbs` is a list of matching verbs and may not be empty.
+       * "*" matches all verbs and, if present, must be the only entry.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public java.lang.String getVerbs(int index) { + return verbs_.get(index); + } + /** + *
+       * `verbs` is a list of matching verbs and may not be empty.
+       * "*" matches all verbs and, if present, must be the only entry.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public com.google.protobuf.ByteString + getVerbsBytes(int index) { + return verbs_.getByteString(index); + } + /** + *
+       * `verbs` is a list of matching verbs and may not be empty.
+       * "*" matches all verbs and, if present, must be the only entry.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public Builder setVerbs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * `verbs` is a list of matching verbs and may not be empty.
+       * "*" matches all verbs and, if present, must be the only entry.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public Builder addVerbs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.add(value); + onChanged(); + return this; + } + /** + *
+       * `verbs` is a list of matching verbs and may not be empty.
+       * "*" matches all verbs and, if present, must be the only entry.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public Builder addAllVerbs( + java.lang.Iterable values) { + ensureVerbsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, verbs_); + onChanged(); + return this; + } + /** + *
+       * `verbs` is a list of matching verbs and may not be empty.
+       * "*" matches all verbs and, if present, must be the only entry.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public Builder clearVerbs() { + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * `verbs` is a list of matching verbs and may not be empty.
+       * "*" matches all verbs and, if present, must be the only entry.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string verbs = 1; + */ + public Builder addVerbsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList apiGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureApiGroupsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + apiGroups_ = new com.google.protobuf.LazyStringArrayList(apiGroups_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string apiGroups = 2; + */ + public com.google.protobuf.ProtocolStringList + getApiGroupsList() { + return apiGroups_.getUnmodifiableView(); + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string apiGroups = 2; + */ + public int getApiGroupsCount() { + return apiGroups_.size(); + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string apiGroups = 2; + */ + public java.lang.String getApiGroups(int index) { + return apiGroups_.get(index); + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string apiGroups = 2; + */ + public com.google.protobuf.ByteString + getApiGroupsBytes(int index) { + return apiGroups_.getByteString(index); + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string apiGroups = 2; + */ + public Builder setApiGroups( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApiGroupsIsMutable(); + apiGroups_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string apiGroups = 2; + */ + public Builder addApiGroups( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApiGroupsIsMutable(); + apiGroups_.add(value); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string apiGroups = 2; + */ + public Builder addAllApiGroups( + java.lang.Iterable values) { + ensureApiGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, apiGroups_); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string apiGroups = 2; + */ + public Builder clearApiGroups() { + apiGroups_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * Required.
+       * 
+ * + * repeated string apiGroups = 2; + */ + public Builder addApiGroupsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApiGroupsIsMutable(); + apiGroups_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList resources_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureResourcesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + resources_ = new com.google.protobuf.LazyStringArrayList(resources_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * `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.
+       * +listType=set
+       * 
+ * + * repeated string resources = 3; + */ + public com.google.protobuf.ProtocolStringList + getResourcesList() { + return resources_.getUnmodifiableView(); + } + /** + *
+       * `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.
+       * +listType=set
+       * 
+ * + * repeated string resources = 3; + */ + public int getResourcesCount() { + return resources_.size(); + } + /** + *
+       * `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.
+       * +listType=set
+       * 
+ * + * repeated string resources = 3; + */ + public java.lang.String getResources(int index) { + return resources_.get(index); + } + /** + *
+       * `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.
+       * +listType=set
+       * 
+ * + * repeated string resources = 3; + */ + public com.google.protobuf.ByteString + getResourcesBytes(int index) { + return resources_.getByteString(index); + } + /** + *
+       * `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.
+       * +listType=set
+       * 
+ * + * repeated string resources = 3; + */ + public Builder setResources( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * 
+ * + * repeated string resources = 3; + */ + public Builder addResources( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(value); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * 
+ * + * repeated string resources = 3; + */ + public Builder addAllResources( + java.lang.Iterable values) { + ensureResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resources_); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * 
+ * + * repeated string resources = 3; + */ + public Builder clearResources() { + resources_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +listType=set
+       * 
+ * + * repeated string resources = 3; + */ + public Builder addResourcesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(value); + onChanged(); + return this; + } + + private boolean 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.
+       * +optional
+       * 
+ * + * optional bool clusterScope = 4; + */ + public boolean hasClusterScope() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional bool clusterScope = 4; + */ + public boolean getClusterScope() { + return 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.
+       * +optional
+       * 
+ * + * optional bool clusterScope = 4; + */ + public Builder setClusterScope(boolean value) { + bitField0_ |= 0x00000008; + clusterScope_ = value; + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +optional
+       * 
+ * + * optional bool clusterScope = 4; + */ + public Builder clearClusterScope() { + bitField0_ = (bitField0_ & ~0x00000008); + clusterScope_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList namespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureNamespacesIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + namespaces_ = new com.google.protobuf.LazyStringArrayList(namespaces_); + bitField0_ |= 0x00000010; + } + } + /** + *
+       * `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.
+       * +optional
+       * +listType=set
+       * 
+ * + * repeated string namespaces = 5; + */ + public com.google.protobuf.ProtocolStringList + getNamespacesList() { + return namespaces_.getUnmodifiableView(); + } + /** + *
+       * `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.
+       * +optional
+       * +listType=set
+       * 
+ * + * repeated string namespaces = 5; + */ + public int getNamespacesCount() { + return namespaces_.size(); + } + /** + *
+       * `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.
+       * +optional
+       * +listType=set
+       * 
+ * + * repeated string namespaces = 5; + */ + public java.lang.String getNamespaces(int index) { + return namespaces_.get(index); + } + /** + *
+       * `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.
+       * +optional
+       * +listType=set
+       * 
+ * + * repeated string namespaces = 5; + */ + public com.google.protobuf.ByteString + getNamespacesBytes(int index) { + return namespaces_.getByteString(index); + } + /** + *
+       * `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.
+       * +optional
+       * +listType=set
+       * 
+ * + * repeated string namespaces = 5; + */ + public Builder setNamespaces( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespacesIsMutable(); + namespaces_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +optional
+       * +listType=set
+       * 
+ * + * repeated string namespaces = 5; + */ + public Builder addNamespaces( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespacesIsMutable(); + namespaces_.add(value); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +optional
+       * +listType=set
+       * 
+ * + * repeated string namespaces = 5; + */ + public Builder addAllNamespaces( + java.lang.Iterable values) { + ensureNamespacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, namespaces_); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +optional
+       * +listType=set
+       * 
+ * + * repeated string namespaces = 5; + */ + public Builder clearNamespaces() { + namespaces_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * `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.
+       * +optional
+       * +listType=set
+       * 
+ * + * repeated string namespaces = 5; + */ + public Builder addNamespacesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamespacesIsMutable(); + namespaces_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.ResourcePolicyRule) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.ResourcePolicyRule) + private static final io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourcePolicyRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourcePolicyRule(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.ResourcePolicyRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ServiceAccountSubjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.ServiceAccountSubject) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `namespace` is the namespace of matching ServiceAccount objects.
+     * Required.
+     * 
+ * + * optional string namespace = 1; + */ + boolean hasNamespace(); + /** + *
+     * `namespace` is the namespace of matching ServiceAccount objects.
+     * Required.
+     * 
+ * + * optional string namespace = 1; + */ + java.lang.String getNamespace(); + /** + *
+     * `namespace` is the namespace of matching ServiceAccount objects.
+     * Required.
+     * 
+ * + * optional string namespace = 1; + */ + com.google.protobuf.ByteString + getNamespaceBytes(); + + /** + *
+     * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name.
+     * Required.
+     * 
+ * + * optional string name = 2; + */ + boolean hasName(); + /** + *
+     * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name.
+     * Required.
+     * 
+ * + * optional string name = 2; + */ + java.lang.String getName(); + /** + *
+     * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name.
+     * Required.
+     * 
+ * + * optional string name = 2; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * ServiceAccountSubject holds detailed information for service-account-kind subject.
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.ServiceAccountSubject} + */ + public static final class ServiceAccountSubject extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.ServiceAccountSubject) + ServiceAccountSubjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServiceAccountSubject.newBuilder() to construct. + private ServiceAccountSubject(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ServiceAccountSubject() { + namespace_ = ""; + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ServiceAccountSubject( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + namespace_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + name_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_ServiceAccountSubject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_ServiceAccountSubject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.class, io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.Builder.class); + } + + private int bitField0_; + public static final int NAMESPACE_FIELD_NUMBER = 1; + private volatile java.lang.Object namespace_; + /** + *
+     * `namespace` is the namespace of matching ServiceAccount objects.
+     * Required.
+     * 
+ * + * optional string namespace = 1; + */ + public boolean hasNamespace() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `namespace` is the namespace of matching ServiceAccount objects.
+     * Required.
+     * 
+ * + * optional string namespace = 1; + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + namespace_ = s; + } + return s; + } + } + /** + *
+     * `namespace` is the namespace of matching ServiceAccount objects.
+     * Required.
+     * 
+ * + * optional string namespace = 1; + */ + public com.google.protobuf.ByteString + getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object name_; + /** + *
+     * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name.
+     * Required.
+     * 
+ * + * optional string name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name.
+     * Required.
+     * 
+ * + * optional string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + *
+     * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name.
+     * Required.
+     * 
+ * + * optional string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject other = (io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject) obj; + + boolean result = true; + result = result && (hasNamespace() == other.hasNamespace()); + if (hasNamespace()) { + result = result && getNamespace() + .equals(other.getNamespace()); + } + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasNamespace()) { + hash = (37 * hash) + NAMESPACE_FIELD_NUMBER; + hash = (53 * hash) + getNamespace().hashCode(); + } + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ServiceAccountSubject holds detailed information for service-account-kind subject.
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.ServiceAccountSubject} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.ServiceAccountSubject) + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_ServiceAccountSubject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_ServiceAccountSubject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.class, io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + namespace_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_ServiceAccountSubject_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject build() { + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject result = new io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.namespace_ = namespace_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.name_ = name_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.getDefaultInstance()) return this; + if (other.hasNamespace()) { + bitField0_ |= 0x00000001; + namespace_ = other.namespace_; + onChanged(); + } + if (other.hasName()) { + bitField0_ |= 0x00000002; + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object namespace_ = ""; + /** + *
+       * `namespace` is the namespace of matching ServiceAccount objects.
+       * Required.
+       * 
+ * + * optional string namespace = 1; + */ + public boolean hasNamespace() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `namespace` is the namespace of matching ServiceAccount objects.
+       * Required.
+       * 
+ * + * optional string namespace = 1; + */ + public java.lang.String getNamespace() { + java.lang.Object ref = namespace_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + namespace_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `namespace` is the namespace of matching ServiceAccount objects.
+       * Required.
+       * 
+ * + * optional string namespace = 1; + */ + public com.google.protobuf.ByteString + getNamespaceBytes() { + java.lang.Object ref = namespace_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + namespace_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `namespace` is the namespace of matching ServiceAccount objects.
+       * Required.
+       * 
+ * + * optional string namespace = 1; + */ + public Builder setNamespace( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + namespace_ = value; + onChanged(); + return this; + } + /** + *
+       * `namespace` is the namespace of matching ServiceAccount objects.
+       * Required.
+       * 
+ * + * optional string namespace = 1; + */ + public Builder clearNamespace() { + bitField0_ = (bitField0_ & ~0x00000001); + namespace_ = getDefaultInstance().getNamespace(); + onChanged(); + return this; + } + /** + *
+       * `namespace` is the namespace of matching ServiceAccount objects.
+       * Required.
+       * 
+ * + * optional string namespace = 1; + */ + public Builder setNamespaceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + namespace_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name.
+       * Required.
+       * 
+ * + * optional string name = 2; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name.
+       * Required.
+       * 
+ * + * optional string name = 2; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name.
+       * Required.
+       * 
+ * + * optional string name = 2; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name.
+       * Required.
+       * 
+ * + * optional string name = 2; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + return this; + } + /** + *
+       * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name.
+       * Required.
+       * 
+ * + * optional string name = 2; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000002); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name.
+       * Required.
+       * 
+ * + * optional string name = 2; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.ServiceAccountSubject) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.ServiceAccountSubject) + private static final io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServiceAccountSubject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServiceAccountSubject(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SubjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.Subject) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `kind` indicates which one of the other fields is non-empty.
+     * Required
+     * +unionDiscriminator
+     * 
+ * + * optional string kind = 1; + */ + boolean hasKind(); + /** + *
+     * `kind` indicates which one of the other fields is non-empty.
+     * Required
+     * +unionDiscriminator
+     * 
+ * + * optional string kind = 1; + */ + java.lang.String getKind(); + /** + *
+     * `kind` indicates which one of the other fields is non-empty.
+     * Required
+     * +unionDiscriminator
+     * 
+ * + * optional string kind = 1; + */ + com.google.protobuf.ByteString + getKindBytes(); + + /** + *
+     * `user` matches based on username.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.UserSubject user = 2; + */ + boolean hasUser(); + /** + *
+     * `user` matches based on username.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.UserSubject user = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.UserSubject getUser(); + /** + *
+     * `user` matches based on username.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.UserSubject user = 2; + */ + io.kubernetes.client.proto.V1Flowcontrol.UserSubjectOrBuilder getUserOrBuilder(); + + /** + *
+     * `group` matches based on user group name.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.GroupSubject group = 3; + */ + boolean hasGroup(); + /** + *
+     * `group` matches based on user group name.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.GroupSubject group = 3; + */ + io.kubernetes.client.proto.V1Flowcontrol.GroupSubject getGroup(); + /** + *
+     * `group` matches based on user group name.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.GroupSubject group = 3; + */ + io.kubernetes.client.proto.V1Flowcontrol.GroupSubjectOrBuilder getGroupOrBuilder(); + + /** + *
+     * `serviceAccount` matches ServiceAccounts.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ServiceAccountSubject serviceAccount = 4; + */ + boolean hasServiceAccount(); + /** + *
+     * `serviceAccount` matches ServiceAccounts.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ServiceAccountSubject serviceAccount = 4; + */ + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject getServiceAccount(); + /** + *
+     * `serviceAccount` matches ServiceAccounts.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ServiceAccountSubject serviceAccount = 4; + */ + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubjectOrBuilder getServiceAccountOrBuilder(); + } + /** + *
+   * 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.
+   * +union
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.Subject} + */ + public static final class Subject extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.Subject) + SubjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use Subject.newBuilder() to construct. + private Subject(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Subject() { + kind_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Subject( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + kind_ = bs; + break; + } + case 18: { + io.kubernetes.client.proto.V1Flowcontrol.UserSubject.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = user_.toBuilder(); + } + user_ = input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.UserSubject.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(user_); + user_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = group_.toBuilder(); + } + group_ = input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(group_); + group_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = serviceAccount_.toBuilder(); + } + serviceAccount_ = input.readMessage(io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(serviceAccount_); + serviceAccount_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_Subject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_Subject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.Subject.class, io.kubernetes.client.proto.V1Flowcontrol.Subject.Builder.class); + } + + private int bitField0_; + public static final int KIND_FIELD_NUMBER = 1; + private volatile java.lang.Object kind_; + /** + *
+     * `kind` indicates which one of the other fields is non-empty.
+     * Required
+     * +unionDiscriminator
+     * 
+ * + * optional string kind = 1; + */ + public boolean hasKind() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `kind` indicates which one of the other fields is non-empty.
+     * Required
+     * +unionDiscriminator
+     * 
+ * + * optional string kind = 1; + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + kind_ = s; + } + return s; + } + } + /** + *
+     * `kind` indicates which one of the other fields is non-empty.
+     * Required
+     * +unionDiscriminator
+     * 
+ * + * optional string kind = 1; + */ + public com.google.protobuf.ByteString + getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Flowcontrol.UserSubject user_; + /** + *
+     * `user` matches based on username.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.UserSubject user = 2; + */ + public boolean hasUser() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * `user` matches based on username.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.UserSubject user = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.UserSubject getUser() { + return user_ == null ? io.kubernetes.client.proto.V1Flowcontrol.UserSubject.getDefaultInstance() : user_; + } + /** + *
+     * `user` matches based on username.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.UserSubject user = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.UserSubjectOrBuilder getUserOrBuilder() { + return user_ == null ? io.kubernetes.client.proto.V1Flowcontrol.UserSubject.getDefaultInstance() : user_; + } + + public static final int GROUP_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.V1Flowcontrol.GroupSubject group_; + /** + *
+     * `group` matches based on user group name.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.GroupSubject group = 3; + */ + public boolean hasGroup() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * `group` matches based on user group name.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.GroupSubject group = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.GroupSubject getGroup() { + return group_ == null ? io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.getDefaultInstance() : group_; + } + /** + *
+     * `group` matches based on user group name.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.GroupSubject group = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.GroupSubjectOrBuilder getGroupOrBuilder() { + return group_ == null ? io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.getDefaultInstance() : group_; + } + + public static final int SERVICEACCOUNT_FIELD_NUMBER = 4; + private io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject serviceAccount_; + /** + *
+     * `serviceAccount` matches ServiceAccounts.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ServiceAccountSubject serviceAccount = 4; + */ + public boolean hasServiceAccount() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * `serviceAccount` matches ServiceAccounts.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ServiceAccountSubject serviceAccount = 4; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject getServiceAccount() { + return serviceAccount_ == null ? io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.getDefaultInstance() : serviceAccount_; + } + /** + *
+     * `serviceAccount` matches ServiceAccounts.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ServiceAccountSubject serviceAccount = 4; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubjectOrBuilder getServiceAccountOrBuilder() { + return serviceAccount_ == null ? io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.getDefaultInstance() : serviceAccount_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, kind_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getUser()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getGroup()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, getServiceAccount()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, kind_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getUser()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getGroup()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getServiceAccount()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.Subject)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.Subject other = (io.kubernetes.client.proto.V1Flowcontrol.Subject) obj; + + boolean result = true; + result = result && (hasKind() == other.hasKind()); + if (hasKind()) { + result = result && getKind() + .equals(other.getKind()); + } + result = result && (hasUser() == other.hasUser()); + if (hasUser()) { + result = result && getUser() + .equals(other.getUser()); + } + result = result && (hasGroup() == other.hasGroup()); + if (hasGroup()) { + result = result && getGroup() + .equals(other.getGroup()); + } + result = result && (hasServiceAccount() == other.hasServiceAccount()); + if (hasServiceAccount()) { + result = result && getServiceAccount() + .equals(other.getServiceAccount()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasKind()) { + hash = (37 * hash) + KIND_FIELD_NUMBER; + hash = (53 * hash) + getKind().hashCode(); + } + if (hasUser()) { + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + } + if (hasGroup()) { + hash = (37 * hash) + GROUP_FIELD_NUMBER; + hash = (53 * hash) + getGroup().hashCode(); + } + if (hasServiceAccount()) { + hash = (37 * hash) + SERVICEACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.Subject parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.Subject parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.Subject parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.Subject parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.Subject parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.Subject parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.Subject parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.Subject parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.Subject parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.Subject parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.Subject parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.Subject parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.Subject prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * 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.
+     * +union
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.Subject} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.Subject) + io.kubernetes.client.proto.V1Flowcontrol.SubjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_Subject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_Subject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.Subject.class, io.kubernetes.client.proto.V1Flowcontrol.Subject.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.Subject.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getUserFieldBuilder(); + getGroupFieldBuilder(); + getServiceAccountFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + kind_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (userBuilder_ == null) { + user_ = null; + } else { + userBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (groupBuilder_ == null) { + group_ = null; + } else { + groupBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (serviceAccountBuilder_ == null) { + serviceAccount_ = null; + } else { + serviceAccountBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_Subject_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.Subject getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.Subject.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.Subject build() { + io.kubernetes.client.proto.V1Flowcontrol.Subject result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.Subject buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.Subject result = new io.kubernetes.client.proto.V1Flowcontrol.Subject(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.kind_ = kind_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (userBuilder_ == null) { + result.user_ = user_; + } else { + result.user_ = userBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (groupBuilder_ == null) { + result.group_ = group_; + } else { + result.group_ = groupBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (serviceAccountBuilder_ == null) { + result.serviceAccount_ = serviceAccount_; + } else { + result.serviceAccount_ = serviceAccountBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.Subject) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.Subject)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.Subject other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.Subject.getDefaultInstance()) return this; + if (other.hasKind()) { + bitField0_ |= 0x00000001; + kind_ = other.kind_; + onChanged(); + } + if (other.hasUser()) { + mergeUser(other.getUser()); + } + if (other.hasGroup()) { + mergeGroup(other.getGroup()); + } + if (other.hasServiceAccount()) { + mergeServiceAccount(other.getServiceAccount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.Subject parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.Subject) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object kind_ = ""; + /** + *
+       * `kind` indicates which one of the other fields is non-empty.
+       * Required
+       * +unionDiscriminator
+       * 
+ * + * optional string kind = 1; + */ + public boolean hasKind() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `kind` indicates which one of the other fields is non-empty.
+       * Required
+       * +unionDiscriminator
+       * 
+ * + * optional string kind = 1; + */ + public java.lang.String getKind() { + java.lang.Object ref = kind_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + kind_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `kind` indicates which one of the other fields is non-empty.
+       * Required
+       * +unionDiscriminator
+       * 
+ * + * optional string kind = 1; + */ + public com.google.protobuf.ByteString + getKindBytes() { + java.lang.Object ref = kind_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + kind_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `kind` indicates which one of the other fields is non-empty.
+       * Required
+       * +unionDiscriminator
+       * 
+ * + * optional string kind = 1; + */ + public Builder setKind( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + kind_ = value; + onChanged(); + return this; + } + /** + *
+       * `kind` indicates which one of the other fields is non-empty.
+       * Required
+       * +unionDiscriminator
+       * 
+ * + * optional string kind = 1; + */ + public Builder clearKind() { + bitField0_ = (bitField0_ & ~0x00000001); + kind_ = getDefaultInstance().getKind(); + onChanged(); + return this; + } + /** + *
+       * `kind` indicates which one of the other fields is non-empty.
+       * Required
+       * +unionDiscriminator
+       * 
+ * + * optional string kind = 1; + */ + public Builder setKindBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + kind_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1Flowcontrol.UserSubject user_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.UserSubject, io.kubernetes.client.proto.V1Flowcontrol.UserSubject.Builder, io.kubernetes.client.proto.V1Flowcontrol.UserSubjectOrBuilder> userBuilder_; + /** + *
+       * `user` matches based on username.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.UserSubject user = 2; + */ + public boolean hasUser() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * `user` matches based on username.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.UserSubject user = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.UserSubject getUser() { + if (userBuilder_ == null) { + return user_ == null ? io.kubernetes.client.proto.V1Flowcontrol.UserSubject.getDefaultInstance() : user_; + } else { + return userBuilder_.getMessage(); + } + } + /** + *
+       * `user` matches based on username.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.UserSubject user = 2; + */ + public Builder setUser(io.kubernetes.client.proto.V1Flowcontrol.UserSubject value) { + if (userBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + user_ = value; + onChanged(); + } else { + userBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `user` matches based on username.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.UserSubject user = 2; + */ + public Builder setUser( + io.kubernetes.client.proto.V1Flowcontrol.UserSubject.Builder builderForValue) { + if (userBuilder_ == null) { + user_ = builderForValue.build(); + onChanged(); + } else { + userBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `user` matches based on username.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.UserSubject user = 2; + */ + public Builder mergeUser(io.kubernetes.client.proto.V1Flowcontrol.UserSubject value) { + if (userBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + user_ != null && + user_ != io.kubernetes.client.proto.V1Flowcontrol.UserSubject.getDefaultInstance()) { + user_ = + io.kubernetes.client.proto.V1Flowcontrol.UserSubject.newBuilder(user_).mergeFrom(value).buildPartial(); + } else { + user_ = value; + } + onChanged(); + } else { + userBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * `user` matches based on username.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.UserSubject user = 2; + */ + public Builder clearUser() { + if (userBuilder_ == null) { + user_ = null; + onChanged(); + } else { + userBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * `user` matches based on username.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.UserSubject user = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.UserSubject.Builder getUserBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUserFieldBuilder().getBuilder(); + } + /** + *
+       * `user` matches based on username.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.UserSubject user = 2; + */ + public io.kubernetes.client.proto.V1Flowcontrol.UserSubjectOrBuilder getUserOrBuilder() { + if (userBuilder_ != null) { + return userBuilder_.getMessageOrBuilder(); + } else { + return user_ == null ? + io.kubernetes.client.proto.V1Flowcontrol.UserSubject.getDefaultInstance() : user_; + } + } + /** + *
+       * `user` matches based on username.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.UserSubject user = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.UserSubject, io.kubernetes.client.proto.V1Flowcontrol.UserSubject.Builder, io.kubernetes.client.proto.V1Flowcontrol.UserSubjectOrBuilder> + getUserFieldBuilder() { + if (userBuilder_ == null) { + userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.UserSubject, io.kubernetes.client.proto.V1Flowcontrol.UserSubject.Builder, io.kubernetes.client.proto.V1Flowcontrol.UserSubjectOrBuilder>( + getUser(), + getParentForChildren(), + isClean()); + user_ = null; + } + return userBuilder_; + } + + private io.kubernetes.client.proto.V1Flowcontrol.GroupSubject group_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.GroupSubject, io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.Builder, io.kubernetes.client.proto.V1Flowcontrol.GroupSubjectOrBuilder> groupBuilder_; + /** + *
+       * `group` matches based on user group name.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.GroupSubject group = 3; + */ + public boolean hasGroup() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * `group` matches based on user group name.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.GroupSubject group = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.GroupSubject getGroup() { + if (groupBuilder_ == null) { + return group_ == null ? io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.getDefaultInstance() : group_; + } else { + return groupBuilder_.getMessage(); + } + } + /** + *
+       * `group` matches based on user group name.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.GroupSubject group = 3; + */ + public Builder setGroup(io.kubernetes.client.proto.V1Flowcontrol.GroupSubject value) { + if (groupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + group_ = value; + onChanged(); + } else { + groupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `group` matches based on user group name.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.GroupSubject group = 3; + */ + public Builder setGroup( + io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.Builder builderForValue) { + if (groupBuilder_ == null) { + group_ = builderForValue.build(); + onChanged(); + } else { + groupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `group` matches based on user group name.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.GroupSubject group = 3; + */ + public Builder mergeGroup(io.kubernetes.client.proto.V1Flowcontrol.GroupSubject value) { + if (groupBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + group_ != null && + group_ != io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.getDefaultInstance()) { + group_ = + io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.newBuilder(group_).mergeFrom(value).buildPartial(); + } else { + group_ = value; + } + onChanged(); + } else { + groupBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * `group` matches based on user group name.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.GroupSubject group = 3; + */ + public Builder clearGroup() { + if (groupBuilder_ == null) { + group_ = null; + onChanged(); + } else { + groupBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * `group` matches based on user group name.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.GroupSubject group = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.Builder getGroupBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getGroupFieldBuilder().getBuilder(); + } + /** + *
+       * `group` matches based on user group name.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.GroupSubject group = 3; + */ + public io.kubernetes.client.proto.V1Flowcontrol.GroupSubjectOrBuilder getGroupOrBuilder() { + if (groupBuilder_ != null) { + return groupBuilder_.getMessageOrBuilder(); + } else { + return group_ == null ? + io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.getDefaultInstance() : group_; + } + } + /** + *
+       * `group` matches based on user group name.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.GroupSubject group = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.GroupSubject, io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.Builder, io.kubernetes.client.proto.V1Flowcontrol.GroupSubjectOrBuilder> + getGroupFieldBuilder() { + if (groupBuilder_ == null) { + groupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.GroupSubject, io.kubernetes.client.proto.V1Flowcontrol.GroupSubject.Builder, io.kubernetes.client.proto.V1Flowcontrol.GroupSubjectOrBuilder>( + getGroup(), + getParentForChildren(), + isClean()); + group_ = null; + } + return groupBuilder_; + } + + private io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject serviceAccount_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject, io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.Builder, io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubjectOrBuilder> serviceAccountBuilder_; + /** + *
+       * `serviceAccount` matches ServiceAccounts.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ServiceAccountSubject serviceAccount = 4; + */ + public boolean hasServiceAccount() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * `serviceAccount` matches ServiceAccounts.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ServiceAccountSubject serviceAccount = 4; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject getServiceAccount() { + if (serviceAccountBuilder_ == null) { + return serviceAccount_ == null ? io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.getDefaultInstance() : serviceAccount_; + } else { + return serviceAccountBuilder_.getMessage(); + } + } + /** + *
+       * `serviceAccount` matches ServiceAccounts.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ServiceAccountSubject serviceAccount = 4; + */ + public Builder setServiceAccount(io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject value) { + if (serviceAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccount_ = value; + onChanged(); + } else { + serviceAccountBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * `serviceAccount` matches ServiceAccounts.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ServiceAccountSubject serviceAccount = 4; + */ + public Builder setServiceAccount( + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.Builder builderForValue) { + if (serviceAccountBuilder_ == null) { + serviceAccount_ = builderForValue.build(); + onChanged(); + } else { + serviceAccountBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * `serviceAccount` matches ServiceAccounts.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ServiceAccountSubject serviceAccount = 4; + */ + public Builder mergeServiceAccount(io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject value) { + if (serviceAccountBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + serviceAccount_ != null && + serviceAccount_ != io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.getDefaultInstance()) { + serviceAccount_ = + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.newBuilder(serviceAccount_).mergeFrom(value).buildPartial(); + } else { + serviceAccount_ = value; + } + onChanged(); + } else { + serviceAccountBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * `serviceAccount` matches ServiceAccounts.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ServiceAccountSubject serviceAccount = 4; + */ + public Builder clearServiceAccount() { + if (serviceAccountBuilder_ == null) { + serviceAccount_ = null; + onChanged(); + } else { + serviceAccountBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + *
+       * `serviceAccount` matches ServiceAccounts.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ServiceAccountSubject serviceAccount = 4; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.Builder getServiceAccountBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getServiceAccountFieldBuilder().getBuilder(); + } + /** + *
+       * `serviceAccount` matches ServiceAccounts.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ServiceAccountSubject serviceAccount = 4; + */ + public io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubjectOrBuilder getServiceAccountOrBuilder() { + if (serviceAccountBuilder_ != null) { + return serviceAccountBuilder_.getMessageOrBuilder(); + } else { + return serviceAccount_ == null ? + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.getDefaultInstance() : serviceAccount_; + } + } + /** + *
+       * `serviceAccount` matches ServiceAccounts.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.flowcontrol.v1.ServiceAccountSubject serviceAccount = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject, io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.Builder, io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubjectOrBuilder> + getServiceAccountFieldBuilder() { + if (serviceAccountBuilder_ == null) { + serviceAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject, io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubject.Builder, io.kubernetes.client.proto.V1Flowcontrol.ServiceAccountSubjectOrBuilder>( + getServiceAccount(), + getParentForChildren(), + isClean()); + serviceAccount_ = null; + } + return serviceAccountBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.Subject) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.Subject) + private static final io.kubernetes.client.proto.V1Flowcontrol.Subject DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.Subject(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.Subject getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Subject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Subject(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.Subject getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface UserSubjectOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.flowcontrol.v1.UserSubject) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * `name` is the username that matches, or "*" to match all usernames.
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + boolean hasName(); + /** + *
+     * `name` is the username that matches, or "*" to match all usernames.
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + java.lang.String getName(); + /** + *
+     * `name` is the username that matches, or "*" to match all usernames.
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + *
+   * UserSubject holds detailed information for user-kind subject.
+   * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.UserSubject} + */ + public static final class UserSubject extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.flowcontrol.v1.UserSubject) + UserSubjectOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserSubject.newBuilder() to construct. + private UserSubject(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UserSubject() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UserSubject( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_UserSubject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_UserSubject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.UserSubject.class, io.kubernetes.client.proto.V1Flowcontrol.UserSubject.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * `name` is the username that matches, or "*" to match all usernames.
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * `name` is the username that matches, or "*" to match all usernames.
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + *
+     * `name` is the username that matches, or "*" to match all usernames.
+     * Required.
+     * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Flowcontrol.UserSubject)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Flowcontrol.UserSubject other = (io.kubernetes.client.proto.V1Flowcontrol.UserSubject) obj; + + boolean result = true; + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Flowcontrol.UserSubject parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.UserSubject parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.UserSubject parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.UserSubject parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.UserSubject parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Flowcontrol.UserSubject parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.UserSubject parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.UserSubject parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.UserSubject parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.UserSubject parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Flowcontrol.UserSubject parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Flowcontrol.UserSubject parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Flowcontrol.UserSubject prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * UserSubject holds detailed information for user-kind subject.
+     * 
+ * + * Protobuf type {@code k8s.io.api.flowcontrol.v1.UserSubject} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.flowcontrol.v1.UserSubject) + io.kubernetes.client.proto.V1Flowcontrol.UserSubjectOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_UserSubject_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_UserSubject_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Flowcontrol.UserSubject.class, io.kubernetes.client.proto.V1Flowcontrol.UserSubject.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Flowcontrol.UserSubject.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Flowcontrol.internal_static_k8s_io_api_flowcontrol_v1_UserSubject_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.UserSubject getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Flowcontrol.UserSubject.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.UserSubject build() { + io.kubernetes.client.proto.V1Flowcontrol.UserSubject result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.UserSubject buildPartial() { + io.kubernetes.client.proto.V1Flowcontrol.UserSubject result = new io.kubernetes.client.proto.V1Flowcontrol.UserSubject(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Flowcontrol.UserSubject) { + return mergeFrom((io.kubernetes.client.proto.V1Flowcontrol.UserSubject)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Flowcontrol.UserSubject other) { + if (other == io.kubernetes.client.proto.V1Flowcontrol.UserSubject.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Flowcontrol.UserSubject parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Flowcontrol.UserSubject) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * `name` is the username that matches, or "*" to match all usernames.
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * `name` is the username that matches, or "*" to match all usernames.
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * `name` is the username that matches, or "*" to match all usernames.
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * `name` is the username that matches, or "*" to match all usernames.
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + *
+       * `name` is the username that matches, or "*" to match all usernames.
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * `name` is the username that matches, or "*" to match all usernames.
+       * Required.
+       * 
+ * + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.flowcontrol.v1.UserSubject) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.flowcontrol.v1.UserSubject) + private static final io.kubernetes.client.proto.V1Flowcontrol.UserSubject DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Flowcontrol.UserSubject(); + } + + public static io.kubernetes.client.proto.V1Flowcontrol.UserSubject getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSubject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserSubject(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Flowcontrol.UserSubject getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_ExemptPriorityLevelConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_ExemptPriorityLevelConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_FlowDistinguisherMethod_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_FlowDistinguisherMethod_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_FlowSchema_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_FlowSchema_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaCondition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaCondition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_GroupSubject_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_GroupSubject_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_LimitResponse_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_LimitResponse_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_LimitedPriorityLevelConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_LimitedPriorityLevelConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_NonResourcePolicyRule_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_NonResourcePolicyRule_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_PolicyRulesWithSubjects_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_PolicyRulesWithSubjects_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationCondition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationCondition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationReference_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationReference_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_QueuingConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_QueuingConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_ResourcePolicyRule_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_ResourcePolicyRule_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_ServiceAccountSubject_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_ServiceAccountSubject_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_Subject_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_Subject_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_flowcontrol_v1_UserSubject_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_flowcontrol_v1_UserSubject_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n)k8s.io/api/flowcontrol/v1/generated.pr" + + "oto\022\031k8s.io.api.flowcontrol.v1\0324k8s.io/a" + + "pimachinery/pkg/apis/meta/v1/generated.p" + + "roto\032/k8s.io/apimachinery/pkg/runtime/ge" + + "nerated.proto\0326k8s.io/apimachinery/pkg/r" + + "untime/schema/generated.proto\"]\n ExemptP" + + "riorityLevelConfiguration\022 \n\030nominalConc" + + "urrencyShares\030\001 \001(\005\022\027\n\017lendablePercent\030\002" + + " \001(\005\"\'\n\027FlowDistinguisherMethod\022\014\n\004type\030" + + "\001 \001(\t\"\306\001\n\nFlowSchema\022B\n\010metadata\030\001 \001(\01320" + + ".k8s.io.apimachinery.pkg.apis.meta.v1.Ob" + + "jectMeta\0227\n\004spec\030\002 \001(\0132).k8s.io.api.flow" + + "control.v1.FlowSchemaSpec\022;\n\006status\030\003 \001(" + + "\0132+.k8s.io.api.flowcontrol.v1.FlowSchema" + + "Status\"\234\001\n\023FlowSchemaCondition\022\014\n\004type\030\001" + + " \001(\t\022\016\n\006status\030\002 \001(\t\022F\n\022lastTransitionTi" + + "me\030\003 \001(\0132*.k8s.io.apimachinery.pkg.apis." + + "meta.v1.Time\022\016\n\006reason\030\004 \001(\t\022\017\n\007message\030" + + "\005 \001(\t\"\210\001\n\016FlowSchemaList\022@\n\010metadata\030\001 \001" + + "(\0132..k8s.io.apimachinery.pkg.apis.meta.v" + + "1.ListMeta\0224\n\005items\030\002 \003(\0132%.k8s.io.api.f" + + "lowcontrol.v1.FlowSchema\"\244\002\n\016FlowSchemaS" + + "pec\022b\n\032priorityLevelConfiguration\030\001 \001(\0132" + + ">.k8s.io.api.flowcontrol.v1.PriorityLeve" + + "lConfigurationReference\022\032\n\022matchingPrece" + + "dence\030\002 \001(\005\022O\n\023distinguisherMethod\030\003 \001(\013" + + "22.k8s.io.api.flowcontrol.v1.FlowDisting" + + "uisherMethod\022A\n\005rules\030\004 \003(\01322.k8s.io.api" + + ".flowcontrol.v1.PolicyRulesWithSubjects\"" + + "V\n\020FlowSchemaStatus\022B\n\nconditions\030\001 \003(\0132" + + "..k8s.io.api.flowcontrol.v1.FlowSchemaCo" + + "ndition\"\034\n\014GroupSubject\022\014\n\004name\030\001 \001(\t\"_\n" + + "\rLimitResponse\022\014\n\004type\030\001 \001(\t\022@\n\007queuing\030" + + "\002 \001(\0132/.k8s.io.api.flowcontrol.v1.Queuin" + + "gConfiguration\"\276\001\n!LimitedPriorityLevelC" + + "onfiguration\022 \n\030nominalConcurrencyShares" + + "\030\001 \001(\005\022?\n\rlimitResponse\030\002 \001(\0132(.k8s.io.a" + + "pi.flowcontrol.v1.LimitResponse\022\027\n\017lenda" + + "blePercent\030\003 \001(\005\022\035\n\025borrowingLimitPercen" + + "t\030\004 \001(\005\"?\n\025NonResourcePolicyRule\022\r\n\005verb" + + "s\030\001 \003(\t\022\027\n\017nonResourceURLs\030\006 \003(\t\"\341\001\n\027Pol" + + "icyRulesWithSubjects\0224\n\010subjects\030\001 \003(\0132\"" + + ".k8s.io.api.flowcontrol.v1.Subject\022D\n\rre" + + "sourceRules\030\002 \003(\0132-.k8s.io.api.flowcontr" + + "ol.v1.ResourcePolicyRule\022J\n\020nonResourceR" + + "ules\030\003 \003(\01320.k8s.io.api.flowcontrol.v1.N" + + "onResourcePolicyRule\"\366\001\n\032PriorityLevelCo" + + "nfiguration\022B\n\010metadata\030\001 \001(\01320.k8s.io.a" + + "pimachinery.pkg.apis.meta.v1.ObjectMeta\022" + + "G\n\004spec\030\002 \001(\01329.k8s.io.api.flowcontrol.v" + + "1.PriorityLevelConfigurationSpec\022K\n\006stat" + + "us\030\003 \001(\0132;.k8s.io.api.flowcontrol.v1.Pri" + + "orityLevelConfigurationStatus\"\254\001\n#Priori" + + "tyLevelConfigurationCondition\022\014\n\004type\030\001 " + + "\001(\t\022\016\n\006status\030\002 \001(\t\022F\n\022lastTransitionTim" + + "e\030\003 \001(\0132*.k8s.io.apimachinery.pkg.apis.m" + + "eta.v1.Time\022\016\n\006reason\030\004 \001(\t\022\017\n\007message\030\005" + + " \001(\t\"\250\001\n\036PriorityLevelConfigurationList\022" + + "@\n\010metadata\030\001 \001(\0132..k8s.io.apimachinery." + + "pkg.apis.meta.v1.ListMeta\022D\n\005items\030\002 \003(\013" + + "25.k8s.io.api.flowcontrol.v1.PriorityLev" + + "elConfiguration\"3\n#PriorityLevelConfigur" + + "ationReference\022\014\n\004name\030\001 \001(\t\"\312\001\n\036Priorit" + + "yLevelConfigurationSpec\022\014\n\004type\030\001 \001(\t\022M\n" + + "\007limited\030\002 \001(\0132<.k8s.io.api.flowcontrol." + + "v1.LimitedPriorityLevelConfiguration\022K\n\006" + + "exempt\030\003 \001(\0132;.k8s.io.api.flowcontrol.v1" + + ".ExemptPriorityLevelConfiguration\"v\n Pri" + + "orityLevelConfigurationStatus\022R\n\nconditi" + + "ons\030\001 \003(\0132>.k8s.io.api.flowcontrol.v1.Pr" + + "iorityLevelConfigurationCondition\"R\n\024Que" + + "uingConfiguration\022\016\n\006queues\030\001 \001(\005\022\020\n\010han" + + "dSize\030\002 \001(\005\022\030\n\020queueLengthLimit\030\003 \001(\005\"s\n" + + "\022ResourcePolicyRule\022\r\n\005verbs\030\001 \003(\t\022\021\n\tap" + + "iGroups\030\002 \003(\t\022\021\n\tresources\030\003 \003(\t\022\024\n\014clus" + + "terScope\030\004 \001(\010\022\022\n\nnamespaces\030\005 \003(\t\"8\n\025Se" + + "rviceAccountSubject\022\021\n\tnamespace\030\001 \001(\t\022\014" + + "\n\004name\030\002 \001(\t\"\317\001\n\007Subject\022\014\n\004kind\030\001 \001(\t\0224" + + "\n\004user\030\002 \001(\0132&.k8s.io.api.flowcontrol.v1" + + ".UserSubject\0226\n\005group\030\003 \001(\0132\'.k8s.io.api" + + ".flowcontrol.v1.GroupSubject\022H\n\016serviceA" + + "ccount\030\004 \001(\01320.k8s.io.api.flowcontrol.v1" + + ".ServiceAccountSubject\"\033\n\013UserSubject\022\014\n" + + "\004name\030\001 \001(\tBF\n\032io.kubernetes.client.prot" + + "oB\rV1FlowcontrolZ\031k8s.io/api/flowcontrol" + + "/v1" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.kubernetes.client.proto.Meta.getDescriptor(), + io.kubernetes.client.proto.Runtime.getDescriptor(), + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), + }, assigner); + internal_static_k8s_io_api_flowcontrol_v1_ExemptPriorityLevelConfiguration_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_k8s_io_api_flowcontrol_v1_ExemptPriorityLevelConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_ExemptPriorityLevelConfiguration_descriptor, + new java.lang.String[] { "NominalConcurrencyShares", "LendablePercent", }); + internal_static_k8s_io_api_flowcontrol_v1_FlowDistinguisherMethod_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_k8s_io_api_flowcontrol_v1_FlowDistinguisherMethod_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_FlowDistinguisherMethod_descriptor, + new java.lang.String[] { "Type", }); + internal_static_k8s_io_api_flowcontrol_v1_FlowSchema_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_k8s_io_api_flowcontrol_v1_FlowSchema_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_FlowSchema_descriptor, + new java.lang.String[] { "Metadata", "Spec", "Status", }); + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaCondition_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaCondition_descriptor, + new java.lang.String[] { "Type", "Status", "LastTransitionTime", "Reason", "Message", }); + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaList_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaSpec_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaSpec_descriptor, + new java.lang.String[] { "PriorityLevelConfiguration", "MatchingPrecedence", "DistinguisherMethod", "Rules", }); + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaStatus_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_FlowSchemaStatus_descriptor, + new java.lang.String[] { "Conditions", }); + internal_static_k8s_io_api_flowcontrol_v1_GroupSubject_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_k8s_io_api_flowcontrol_v1_GroupSubject_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_GroupSubject_descriptor, + new java.lang.String[] { "Name", }); + internal_static_k8s_io_api_flowcontrol_v1_LimitResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_k8s_io_api_flowcontrol_v1_LimitResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_LimitResponse_descriptor, + new java.lang.String[] { "Type", "Queuing", }); + internal_static_k8s_io_api_flowcontrol_v1_LimitedPriorityLevelConfiguration_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_k8s_io_api_flowcontrol_v1_LimitedPriorityLevelConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_LimitedPriorityLevelConfiguration_descriptor, + new java.lang.String[] { "NominalConcurrencyShares", "LimitResponse", "LendablePercent", "BorrowingLimitPercent", }); + internal_static_k8s_io_api_flowcontrol_v1_NonResourcePolicyRule_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_k8s_io_api_flowcontrol_v1_NonResourcePolicyRule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_NonResourcePolicyRule_descriptor, + new java.lang.String[] { "Verbs", "NonResourceURLs", }); + internal_static_k8s_io_api_flowcontrol_v1_PolicyRulesWithSubjects_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_k8s_io_api_flowcontrol_v1_PolicyRulesWithSubjects_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_PolicyRulesWithSubjects_descriptor, + new java.lang.String[] { "Subjects", "ResourceRules", "NonResourceRules", }); + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfiguration_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfiguration_descriptor, + new java.lang.String[] { "Metadata", "Spec", "Status", }); + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationCondition_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationCondition_descriptor, + new java.lang.String[] { "Type", "Status", "LastTransitionTime", "Reason", "Message", }); + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationList_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationReference_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationReference_descriptor, + new java.lang.String[] { "Name", }); + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationSpec_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationSpec_descriptor, + new java.lang.String[] { "Type", "Limited", "Exempt", }); + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationStatus_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_PriorityLevelConfigurationStatus_descriptor, + new java.lang.String[] { "Conditions", }); + internal_static_k8s_io_api_flowcontrol_v1_QueuingConfiguration_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_k8s_io_api_flowcontrol_v1_QueuingConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_QueuingConfiguration_descriptor, + new java.lang.String[] { "Queues", "HandSize", "QueueLengthLimit", }); + internal_static_k8s_io_api_flowcontrol_v1_ResourcePolicyRule_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_k8s_io_api_flowcontrol_v1_ResourcePolicyRule_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_ResourcePolicyRule_descriptor, + new java.lang.String[] { "Verbs", "ApiGroups", "Resources", "ClusterScope", "Namespaces", }); + internal_static_k8s_io_api_flowcontrol_v1_ServiceAccountSubject_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_k8s_io_api_flowcontrol_v1_ServiceAccountSubject_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_ServiceAccountSubject_descriptor, + new java.lang.String[] { "Namespace", "Name", }); + internal_static_k8s_io_api_flowcontrol_v1_Subject_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_k8s_io_api_flowcontrol_v1_Subject_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_Subject_descriptor, + new java.lang.String[] { "Kind", "User", "Group", "ServiceAccount", }); + internal_static_k8s_io_api_flowcontrol_v1_UserSubject_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_k8s_io_api_flowcontrol_v1_UserSubject_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_flowcontrol_v1_UserSubject_descriptor, + new java.lang.String[] { "Name", }); + io.kubernetes.client.proto.Meta.getDescriptor(); + io.kubernetes.client.proto.Runtime.getDescriptor(); + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Networking.java b/proto/src/main/java/io/kubernetes/client/proto/V1Networking.java index 7aea1dc714..059fa23557 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V1Networking.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Networking.java @@ -2323,7 +2323,7 @@ public interface IPAddressOrBuilder extends *
      * spec is the desired state of the IPAddress.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.networking.v1.IPAddressSpec spec = 2; @@ -2333,7 +2333,7 @@ public interface IPAddressOrBuilder extends *
      * spec is the desired state of the IPAddress.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.networking.v1.IPAddressSpec spec = 2; @@ -2343,7 +2343,7 @@ public interface IPAddressOrBuilder extends *
      * spec is the desired state of the IPAddress.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.networking.v1.IPAddressSpec spec = 2; @@ -2503,7 +2503,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( *
      * spec is the desired state of the IPAddress.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.networking.v1.IPAddressSpec spec = 2; @@ -2515,7 +2515,7 @@ public boolean hasSpec() { *
      * spec is the desired state of the IPAddress.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.networking.v1.IPAddressSpec spec = 2; @@ -2527,7 +2527,7 @@ public io.kubernetes.client.proto.V1Networking.IPAddressSpec getSpec() { *
      * spec is the desired state of the IPAddress.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.networking.v1.IPAddressSpec spec = 2; @@ -3083,7 +3083,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( *
        * spec is the desired state of the IPAddress.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.networking.v1.IPAddressSpec spec = 2; @@ -3095,7 +3095,7 @@ public boolean hasSpec() { *
        * spec is the desired state of the IPAddress.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.networking.v1.IPAddressSpec spec = 2; @@ -3111,7 +3111,7 @@ public io.kubernetes.client.proto.V1Networking.IPAddressSpec getSpec() { *
        * spec is the desired state of the IPAddress.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.networking.v1.IPAddressSpec spec = 2; @@ -3133,7 +3133,7 @@ public Builder setSpec(io.kubernetes.client.proto.V1Networking.IPAddressSpec val *
        * spec is the desired state of the IPAddress.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.networking.v1.IPAddressSpec spec = 2; @@ -3153,7 +3153,7 @@ public Builder setSpec( *
        * spec is the desired state of the IPAddress.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.networking.v1.IPAddressSpec spec = 2; @@ -3179,7 +3179,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Networking.IPAddressSpec v *
        * spec is the desired state of the IPAddress.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.networking.v1.IPAddressSpec spec = 2; @@ -3198,7 +3198,7 @@ public Builder clearSpec() { *
        * spec is the desired state of the IPAddress.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.networking.v1.IPAddressSpec spec = 2; @@ -3212,7 +3212,7 @@ public io.kubernetes.client.proto.V1Networking.IPAddressSpec.Builder getSpecBuil *
        * spec is the desired state of the IPAddress.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.networking.v1.IPAddressSpec spec = 2; @@ -3229,7 +3229,7 @@ public io.kubernetes.client.proto.V1Networking.IPAddressSpecOrBuilder getSpecOrB *
        * spec is the desired state of the IPAddress.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.networking.v1.IPAddressSpec spec = 2; @@ -4503,6 +4503,8 @@ public interface IPAddressSpecOrBuilder extends * ParentRef references the resource that an IPAddress is attached to. * An IPAddress must reference a parent object. * +required + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:immutable *
* * optional .k8s.io.api.networking.v1.ParentReference parentRef = 1; @@ -4513,6 +4515,8 @@ public interface IPAddressSpecOrBuilder extends * ParentRef references the resource that an IPAddress is attached to. * An IPAddress must reference a parent object. * +required + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:immutable *
* * optional .k8s.io.api.networking.v1.ParentReference parentRef = 1; @@ -4523,6 +4527,8 @@ public interface IPAddressSpecOrBuilder extends * ParentRef references the resource that an IPAddress is attached to. * An IPAddress must reference a parent object. * +required + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:immutable *
* * optional .k8s.io.api.networking.v1.ParentReference parentRef = 1; @@ -4625,6 +4631,8 @@ private IPAddressSpec( * ParentRef references the resource that an IPAddress is attached to. * An IPAddress must reference a parent object. * +required + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:immutable *
* * optional .k8s.io.api.networking.v1.ParentReference parentRef = 1; @@ -4637,6 +4645,8 @@ public boolean hasParentRef() { * ParentRef references the resource that an IPAddress is attached to. * An IPAddress must reference a parent object. * +required + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:immutable *
* * optional .k8s.io.api.networking.v1.ParentReference parentRef = 1; @@ -4649,6 +4659,8 @@ public io.kubernetes.client.proto.V1Networking.ParentReference getParentRef() { * ParentRef references the resource that an IPAddress is attached to. * An IPAddress must reference a parent object. * +required + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:immutable *
* * optional .k8s.io.api.networking.v1.ParentReference parentRef = 1; @@ -4993,6 +5005,8 @@ public Builder mergeFrom( * ParentRef references the resource that an IPAddress is attached to. * An IPAddress must reference a parent object. * +required + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:immutable *
* * optional .k8s.io.api.networking.v1.ParentReference parentRef = 1; @@ -5005,6 +5019,8 @@ public boolean hasParentRef() { * ParentRef references the resource that an IPAddress is attached to. * An IPAddress must reference a parent object. * +required + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:immutable *
* * optional .k8s.io.api.networking.v1.ParentReference parentRef = 1; @@ -5021,6 +5037,8 @@ public io.kubernetes.client.proto.V1Networking.ParentReference getParentRef() { * ParentRef references the resource that an IPAddress is attached to. * An IPAddress must reference a parent object. * +required + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:immutable *
* * optional .k8s.io.api.networking.v1.ParentReference parentRef = 1; @@ -5043,6 +5061,8 @@ public Builder setParentRef(io.kubernetes.client.proto.V1Networking.ParentRefere * ParentRef references the resource that an IPAddress is attached to. * An IPAddress must reference a parent object. * +required + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:immutable *
* * optional .k8s.io.api.networking.v1.ParentReference parentRef = 1; @@ -5063,6 +5083,8 @@ public Builder setParentRef( * ParentRef references the resource that an IPAddress is attached to. * An IPAddress must reference a parent object. * +required + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:immutable *
* * optional .k8s.io.api.networking.v1.ParentReference parentRef = 1; @@ -5089,6 +5111,8 @@ public Builder mergeParentRef(io.kubernetes.client.proto.V1Networking.ParentRefe * ParentRef references the resource that an IPAddress is attached to. * An IPAddress must reference a parent object. * +required + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:immutable *
* * optional .k8s.io.api.networking.v1.ParentReference parentRef = 1; @@ -5108,6 +5132,8 @@ public Builder clearParentRef() { * ParentRef references the resource that an IPAddress is attached to. * An IPAddress must reference a parent object. * +required + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:immutable *
* * optional .k8s.io.api.networking.v1.ParentReference parentRef = 1; @@ -5122,6 +5148,8 @@ public io.kubernetes.client.proto.V1Networking.ParentReference.Builder getParent * ParentRef references the resource that an IPAddress is attached to. * An IPAddress must reference a parent object. * +required + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:immutable *
* * optional .k8s.io.api.networking.v1.ParentReference parentRef = 1; @@ -5139,6 +5167,8 @@ public io.kubernetes.client.proto.V1Networking.ParentReferenceOrBuilder getParen * ParentRef references the resource that an IPAddress is attached to. * An IPAddress must reference a parent object. * +required + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:immutable *
* * optional .k8s.io.api.networking.v1.ParentReference parentRef = 1; @@ -5217,6 +5247,8 @@ public interface IPBlockOrBuilder extends *
      * cidr is a string representing the IPBlock
      * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string cidr = 1; @@ -5226,6 +5258,8 @@ public interface IPBlockOrBuilder extends *
      * cidr is a string representing the IPBlock
      * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string cidr = 1; @@ -5235,6 +5269,8 @@ public interface IPBlockOrBuilder extends *
      * cidr is a string representing the IPBlock
      * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string cidr = 1; @@ -5397,6 +5433,8 @@ private IPBlock( *
      * cidr is a string representing the IPBlock
      * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string cidr = 1; @@ -5408,6 +5446,8 @@ public boolean hasCidr() { *
      * cidr is a string representing the IPBlock
      * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string cidr = 1; @@ -5430,6 +5470,8 @@ public java.lang.String getCidr() { *
      * cidr is a string representing the IPBlock
      * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string cidr = 1; @@ -5870,6 +5912,8 @@ public Builder mergeFrom( *
        * cidr is a string representing the IPBlock
        * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string cidr = 1; @@ -5881,6 +5925,8 @@ public boolean hasCidr() { *
        * cidr is a string representing the IPBlock
        * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string cidr = 1; @@ -5903,6 +5949,8 @@ public java.lang.String getCidr() { *
        * cidr is a string representing the IPBlock
        * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string cidr = 1; @@ -5924,6 +5972,8 @@ public java.lang.String getCidr() { *
        * cidr is a string representing the IPBlock
        * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string cidr = 1; @@ -5942,6 +5992,8 @@ public Builder setCidr( *
        * cidr is a string representing the IPBlock
        * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string cidr = 1; @@ -5956,6 +6008,8 @@ public Builder clearCidr() { *
        * cidr is a string representing the IPBlock
        * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string cidr = 1; @@ -6291,6 +6345,7 @@ public interface IngressOrBuilder extends * endpoints defined by a backend. An Ingress can be configured to give services * externally-reachable urls, load balance traffic, terminate SSL, offer name * based virtual hosting etc. + * +k8s:supportsSubresource="/status" *
* * Protobuf type {@code k8s.io.api.networking.v1.Ingress} @@ -6719,6 +6774,7 @@ protected Builder newBuilderForType( * endpoints defined by a backend. An Ingress can be configured to give services * externally-reachable urls, load balance traffic, terminate SSL, offer name * based virtual hosting etc. + * +k8s:supportsSubresource="/status" *
* * Protobuf type {@code k8s.io.api.networking.v1.Ingress} @@ -10755,7 +10811,7 @@ public interface IngressClassParametersReferenceOrBuilder extends *
      * kind is the type of resource being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string kind = 2; @@ -10765,7 +10821,7 @@ public interface IngressClassParametersReferenceOrBuilder extends *
      * kind is the type of resource being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string kind = 2; @@ -10775,7 +10831,7 @@ public interface IngressClassParametersReferenceOrBuilder extends *
      * kind is the type of resource being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string kind = 2; @@ -10787,7 +10843,7 @@ public interface IngressClassParametersReferenceOrBuilder extends *
      * name is the name of resource being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -10797,7 +10853,7 @@ public interface IngressClassParametersReferenceOrBuilder extends *
      * name is the name of resource being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -10807,7 +10863,7 @@ public interface IngressClassParametersReferenceOrBuilder extends *
      * name is the name of resource being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -11063,7 +11119,7 @@ public java.lang.String getAPIGroup() { *
      * kind is the type of resource being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string kind = 2; @@ -11075,7 +11131,7 @@ public boolean hasKind() { *
      * kind is the type of resource being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string kind = 2; @@ -11098,7 +11154,7 @@ public java.lang.String getKind() { *
      * kind is the type of resource being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string kind = 2; @@ -11123,7 +11179,7 @@ public java.lang.String getKind() { *
      * name is the name of resource being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -11135,7 +11191,7 @@ public boolean hasName() { *
      * name is the name of resource being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -11158,7 +11214,7 @@ public java.lang.String getName() { *
      * name is the name of resource being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -11848,7 +11904,7 @@ public Builder setAPIGroupBytes( *
        * kind is the type of resource being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string kind = 2; @@ -11860,7 +11916,7 @@ public boolean hasKind() { *
        * kind is the type of resource being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string kind = 2; @@ -11883,7 +11939,7 @@ public java.lang.String getKind() { *
        * kind is the type of resource being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string kind = 2; @@ -11905,7 +11961,7 @@ public java.lang.String getKind() { *
        * kind is the type of resource being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string kind = 2; @@ -11924,7 +11980,7 @@ public Builder setKind( *
        * kind is the type of resource being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string kind = 2; @@ -11939,7 +11995,7 @@ public Builder clearKind() { *
        * kind is the type of resource being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string kind = 2; @@ -11960,7 +12016,7 @@ public Builder setKindBytes( *
        * name is the name of resource being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -11972,7 +12028,7 @@ public boolean hasName() { *
        * name is the name of resource being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -11995,7 +12051,7 @@ public java.lang.String getName() { *
        * name is the name of resource being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -12017,7 +12073,7 @@ public java.lang.String getName() { *
        * name is the name of resource being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -12036,7 +12092,7 @@ public Builder setName( *
        * name is the name of resource being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -12051,7 +12107,7 @@ public Builder clearName() { *
        * name is the name of resource being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -12400,7 +12456,7 @@ public interface IngressClassSpecOrBuilder extends * configuration for the controller. This is optional if the controller does * not require extra parameters. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2; @@ -12412,7 +12468,7 @@ public interface IngressClassSpecOrBuilder extends * configuration for the controller. This is optional if the controller does * not require extra parameters. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2; @@ -12424,7 +12480,7 @@ public interface IngressClassSpecOrBuilder extends * configuration for the controller. This is optional if the controller does * not require extra parameters. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2; @@ -12604,7 +12660,7 @@ public java.lang.String getController() { * configuration for the controller. This is optional if the controller does * not require extra parameters. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2; @@ -12618,7 +12674,7 @@ public boolean hasParameters() { * configuration for the controller. This is optional if the controller does * not require extra parameters. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2; @@ -12632,7 +12688,7 @@ public io.kubernetes.client.proto.V1Networking.IngressClassParametersReference g * configuration for the controller. This is optional if the controller does * not require extra parameters. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2; @@ -13134,7 +13190,7 @@ public Builder setControllerBytes( * configuration for the controller. This is optional if the controller does * not require extra parameters. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2; @@ -13148,7 +13204,7 @@ public boolean hasParameters() { * configuration for the controller. This is optional if the controller does * not require extra parameters. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2; @@ -13166,7 +13222,7 @@ public io.kubernetes.client.proto.V1Networking.IngressClassParametersReference g * configuration for the controller. This is optional if the controller does * not require extra parameters. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2; @@ -13190,7 +13246,7 @@ public Builder setParameters(io.kubernetes.client.proto.V1Networking.IngressClas * configuration for the controller. This is optional if the controller does * not require extra parameters. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2; @@ -13212,7 +13268,7 @@ public Builder setParameters( * configuration for the controller. This is optional if the controller does * not require extra parameters. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2; @@ -13240,7 +13296,7 @@ public Builder mergeParameters(io.kubernetes.client.proto.V1Networking.IngressCl * configuration for the controller. This is optional if the controller does * not require extra parameters. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2; @@ -13261,7 +13317,7 @@ public Builder clearParameters() { * configuration for the controller. This is optional if the controller does * not require extra parameters. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2; @@ -13277,7 +13333,7 @@ public io.kubernetes.client.proto.V1Networking.IngressClassParametersReference.B * configuration for the controller. This is optional if the controller does * not require extra parameters. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2; @@ -13296,7 +13352,7 @@ public io.kubernetes.client.proto.V1Networking.IngressClassParametersReferenceOr * configuration for the controller. This is optional if the controller does * not require extra parameters. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IngressClassParametersReference parameters = 2; @@ -25994,6 +26050,7 @@ io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBui * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -26009,6 +26066,7 @@ io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBui * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -26023,6 +26081,7 @@ io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBui * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -26037,6 +26096,7 @@ io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBui * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -26052,6 +26112,7 @@ io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBui * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -26258,6 +26319,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPor * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -26274,6 +26336,7 @@ public java.util.List * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -26291,6 +26354,7 @@ public java.util.List * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -26307,6 +26371,7 @@ public int getToCount() { * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -26323,6 +26388,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer getTo(int index * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27177,6 +27243,7 @@ private void ensureToIsMutable() { * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27197,6 +27264,7 @@ public java.util.List * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27217,6 +27285,7 @@ public int getToCount() { * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27237,6 +27306,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer getTo(int index * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27264,6 +27334,7 @@ public Builder setTo( * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27288,6 +27359,7 @@ public Builder setTo( * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27314,6 +27386,7 @@ public Builder addTo(io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer v * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27341,6 +27414,7 @@ public Builder addTo( * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27365,6 +27439,7 @@ public Builder addTo( * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27389,6 +27464,7 @@ public Builder addTo( * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27414,6 +27490,7 @@ public Builder addAllTo( * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27437,6 +27514,7 @@ public Builder clearTo() { * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27460,6 +27538,7 @@ public Builder removeTo(int index) { * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27477,6 +27556,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder getToBu * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27497,6 +27577,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder getToO * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27518,6 +27599,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder getToO * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27535,6 +27617,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder addToBu * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27553,6 +27636,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder addToBu * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer to = 2; @@ -27715,6 +27799,7 @@ io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBui * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -27730,6 +27815,7 @@ io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBui * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -27744,6 +27830,7 @@ io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBui * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -27758,6 +27845,7 @@ io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBui * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -27773,6 +27861,7 @@ io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPortsOrBui * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -27978,6 +28067,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPortOrBuilder getPor * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -27994,6 +28084,7 @@ public java.util.List * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -28011,6 +28102,7 @@ public java.util.List * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -28027,6 +28119,7 @@ public int getFromCount() { * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -28043,6 +28136,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer getFrom(int ind * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -28896,6 +28990,7 @@ private void ensureFromIsMutable() { * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -28916,6 +29011,7 @@ public java.util.List * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -28936,6 +29032,7 @@ public int getFromCount() { * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -28956,6 +29053,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer getFrom(int ind * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -28983,6 +29081,7 @@ public Builder setFrom( * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -29007,6 +29106,7 @@ public Builder setFrom( * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -29033,6 +29133,7 @@ public Builder addFrom(io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -29060,6 +29161,7 @@ public Builder addFrom( * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -29084,6 +29186,7 @@ public Builder addFrom( * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -29108,6 +29211,7 @@ public Builder addFrom( * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -29133,6 +29237,7 @@ public Builder addAllFrom( * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -29156,6 +29261,7 @@ public Builder clearFrom() { * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -29179,6 +29285,7 @@ public Builder removeFrom(int index) { * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -29196,6 +29303,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder getFrom * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -29216,6 +29324,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder getFro * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -29237,6 +29346,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeerOrBuilder getFro * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -29254,6 +29364,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder addFrom * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -29272,6 +29383,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyPeer.Builder addFrom * allows traffic only if the traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyPeer from = 2; @@ -30630,6 +30742,7 @@ public interface NetworkPolicyPeerOrBuilder extends * ipBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3; @@ -30640,6 +30753,7 @@ public interface NetworkPolicyPeerOrBuilder extends * ipBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3; @@ -30650,6 +30764,7 @@ public interface NetworkPolicyPeerOrBuilder extends * ipBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3; @@ -30875,6 +30990,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelect * ipBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3; @@ -30887,6 +31003,7 @@ public boolean hasIpBlock() { * ipBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3; @@ -30899,6 +31016,7 @@ public io.kubernetes.client.proto.V1Networking.IPBlock getIpBlock() { * ipBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3; @@ -31710,6 +31828,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelect * ipBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3; @@ -31722,6 +31841,7 @@ public boolean hasIpBlock() { * ipBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3; @@ -31738,6 +31858,7 @@ public io.kubernetes.client.proto.V1Networking.IPBlock getIpBlock() { * ipBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3; @@ -31760,6 +31881,7 @@ public Builder setIpBlock(io.kubernetes.client.proto.V1Networking.IPBlock value) * ipBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3; @@ -31780,6 +31902,7 @@ public Builder setIpBlock( * ipBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3; @@ -31806,6 +31929,7 @@ public Builder mergeIpBlock(io.kubernetes.client.proto.V1Networking.IPBlock valu * ipBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3; @@ -31825,6 +31949,7 @@ public Builder clearIpBlock() { * ipBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3; @@ -31839,6 +31964,7 @@ public io.kubernetes.client.proto.V1Networking.IPBlock.Builder getIpBlockBuilder * ipBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3; @@ -31856,6 +31982,7 @@ public io.kubernetes.client.proto.V1Networking.IPBlockOrBuilder getIpBlockOrBuil * ipBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * optional .k8s.io.api.networking.v1.IPBlock ipBlock = 3; @@ -33117,6 +33244,7 @@ public interface NetworkPolicySpecOrBuilder extends * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -33134,6 +33262,7 @@ public interface NetworkPolicySpecOrBuilder extends * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -33150,6 +33279,7 @@ public interface NetworkPolicySpecOrBuilder extends * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -33166,6 +33296,7 @@ public interface NetworkPolicySpecOrBuilder extends * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -33183,6 +33314,7 @@ public interface NetworkPolicySpecOrBuilder extends * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -33201,6 +33333,7 @@ io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder getIng * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -33218,6 +33351,7 @@ io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder getIng * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -33234,6 +33368,7 @@ io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder getIng * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -33250,6 +33385,7 @@ io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder getIng * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -33267,6 +33403,7 @@ io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder getIng * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -33545,6 +33682,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getPodSelectorOrBu * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -33563,6 +33701,7 @@ public java.util.List * * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -33582,6 +33721,7 @@ public java.util.List * * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -33600,6 +33740,7 @@ public int getIngressCount() { * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -33618,6 +33759,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule getIngre * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -33640,6 +33782,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -33658,6 +33801,7 @@ public java.util.List * * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -33677,6 +33821,7 @@ public java.util.List * * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -33695,6 +33840,7 @@ public int getEgressCount() { * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -33713,6 +33859,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule getEgress * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -34514,6 +34661,7 @@ private void ensureIngressIsMutable() { * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34536,6 +34684,7 @@ public java.util.List * * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34558,6 +34707,7 @@ public int getIngressCount() { * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34580,6 +34730,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule getIngre * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34609,6 +34760,7 @@ public Builder setIngress( * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34635,6 +34787,7 @@ public Builder setIngress( * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34663,6 +34816,7 @@ public Builder addIngress(io.kubernetes.client.proto.V1Networking.NetworkPolicyI * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34692,6 +34846,7 @@ public Builder addIngress( * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34718,6 +34873,7 @@ public Builder addIngress( * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34744,6 +34900,7 @@ public Builder addIngress( * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34771,6 +34928,7 @@ public Builder addAllIngress( * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34796,6 +34954,7 @@ public Builder clearIngress() { * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34821,6 +34980,7 @@ public Builder removeIngress(int index) { * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34840,6 +35000,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34862,6 +35023,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34885,6 +35047,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRuleOrBuilder * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34904,6 +35067,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34924,6 +35088,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyIngressRule.Builder * solely to ensure that the pods it selects are isolated by default) * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyIngressRule ingress = 2; @@ -34970,6 +35135,7 @@ private void ensureEgressIsMutable() { * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -34992,6 +35158,7 @@ public java.util.List * * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35014,6 +35181,7 @@ public int getEgressCount() { * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35036,6 +35204,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule getEgress * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35065,6 +35234,7 @@ public Builder setEgress( * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35091,6 +35261,7 @@ public Builder setEgress( * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35119,6 +35290,7 @@ public Builder addEgress(io.kubernetes.client.proto.V1Networking.NetworkPolicyEg * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35148,6 +35320,7 @@ public Builder addEgress( * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35174,6 +35347,7 @@ public Builder addEgress( * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35200,6 +35374,7 @@ public Builder addEgress( * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35227,6 +35402,7 @@ public Builder addAllEgress( * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35252,6 +35428,7 @@ public Builder clearEgress() { * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35277,6 +35454,7 @@ public Builder removeEgress(int index) { * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35296,6 +35474,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder g * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35318,6 +35497,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRuleOrBuilder * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35341,6 +35521,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRuleOrBuilder * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35360,6 +35541,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder a * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35380,6 +35562,7 @@ public io.kubernetes.client.proto.V1Networking.NetworkPolicyEgressRule.Builder a * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.networking.v1.NetworkPolicyEgressRule egress = 3; @@ -35720,6 +35903,7 @@ public interface ParentReferenceOrBuilder extends *
      * Resource is the resource of the object being referenced.
      * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string resource = 2; @@ -35729,6 +35913,7 @@ public interface ParentReferenceOrBuilder extends *
      * Resource is the resource of the object being referenced.
      * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string resource = 2; @@ -35738,6 +35923,7 @@ public interface ParentReferenceOrBuilder extends *
      * Resource is the resource of the object being referenced.
      * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string resource = 2; @@ -35778,6 +35964,7 @@ public interface ParentReferenceOrBuilder extends *
      * Name is the name of the object being referenced.
      * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 4; @@ -35787,6 +35974,7 @@ public interface ParentReferenceOrBuilder extends *
      * Name is the name of the object being referenced.
      * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 4; @@ -35796,6 +35984,7 @@ public interface ParentReferenceOrBuilder extends *
      * Name is the name of the object being referenced.
      * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 4; @@ -35970,6 +36159,7 @@ public java.lang.String getGroup() { *
      * Resource is the resource of the object being referenced.
      * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string resource = 2; @@ -35981,6 +36171,7 @@ public boolean hasResource() { *
      * Resource is the resource of the object being referenced.
      * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string resource = 2; @@ -36003,6 +36194,7 @@ public java.lang.String getResource() { *
      * Resource is the resource of the object being referenced.
      * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string resource = 2; @@ -36084,6 +36276,7 @@ public java.lang.String getNamespace() { *
      * Name is the name of the object being referenced.
      * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 4; @@ -36095,6 +36288,7 @@ public boolean hasName() { *
      * Name is the name of the object being referenced.
      * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 4; @@ -36117,6 +36311,7 @@ public java.lang.String getName() { *
      * Name is the name of the object being referenced.
      * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 4; @@ -36644,6 +36839,7 @@ public Builder setGroupBytes( *
        * Resource is the resource of the object being referenced.
        * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string resource = 2; @@ -36655,6 +36851,7 @@ public boolean hasResource() { *
        * Resource is the resource of the object being referenced.
        * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string resource = 2; @@ -36677,6 +36874,7 @@ public java.lang.String getResource() { *
        * Resource is the resource of the object being referenced.
        * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string resource = 2; @@ -36698,6 +36896,7 @@ public java.lang.String getResource() { *
        * Resource is the resource of the object being referenced.
        * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string resource = 2; @@ -36716,6 +36915,7 @@ public Builder setResource( *
        * Resource is the resource of the object being referenced.
        * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string resource = 2; @@ -36730,6 +36930,7 @@ public Builder clearResource() { *
        * Resource is the resource of the object being referenced.
        * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string resource = 2; @@ -36856,6 +37057,7 @@ public Builder setNamespaceBytes( *
        * Name is the name of the object being referenced.
        * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 4; @@ -36867,6 +37069,7 @@ public boolean hasName() { *
        * Name is the name of the object being referenced.
        * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 4; @@ -36889,6 +37092,7 @@ public java.lang.String getName() { *
        * Name is the name of the object being referenced.
        * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 4; @@ -36910,6 +37114,7 @@ public java.lang.String getName() { *
        * Name is the name of the object being referenced.
        * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 4; @@ -36928,6 +37133,7 @@ public Builder setName( *
        * Name is the name of the object being referenced.
        * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 4; @@ -36942,6 +37148,7 @@ public Builder clearName() { *
        * Name is the name of the object being referenced.
        * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 4; @@ -37910,6 +38117,7 @@ public interface ServiceCIDROrBuilder extends *
    * ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64).
    * This range is used to allocate ClusterIPs to Service objects.
+   * +k8s:supportsSubresource="/status"
    * 
* * Protobuf type {@code k8s.io.api.networking.v1.ServiceCIDR} @@ -38336,6 +38544,7 @@ protected Builder newBuilderForType( *
      * ServiceCIDR defines a range of IP addresses using CIDR format (e.g. 192.168.0.0/24 or 2001:db2::/64).
      * This range is used to allocate ClusterIPs to Service objects.
+     * +k8s:supportsSubresource="/status"
      * 
* * Protobuf type {@code k8s.io.api.networking.v1.ServiceCIDR} @@ -41058,6 +41267,7 @@ public interface ServiceCIDRStatusOrBuilder extends * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41073,6 +41283,7 @@ public interface ServiceCIDRStatusOrBuilder extends * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41087,6 +41298,7 @@ public interface ServiceCIDRStatusOrBuilder extends * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41101,6 +41313,7 @@ public interface ServiceCIDRStatusOrBuilder extends * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41116,6 +41329,7 @@ public interface ServiceCIDRStatusOrBuilder extends * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41222,6 +41436,7 @@ private ServiceCIDRStatus( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41238,6 +41453,7 @@ public java.util.List getConditionsLi * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41255,6 +41471,7 @@ public java.util.List getConditionsLi * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41271,6 +41488,7 @@ public int getConditionsCount() { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41287,6 +41505,7 @@ public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41664,6 +41883,7 @@ private void ensureConditionsIsMutable() { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41684,6 +41904,7 @@ public java.util.List getConditionsLi * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41704,6 +41925,7 @@ public int getConditionsCount() { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41724,6 +41946,7 @@ public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41751,6 +41974,7 @@ public Builder setConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41775,6 +41999,7 @@ public Builder setConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41801,6 +42026,7 @@ public Builder addConditions(io.kubernetes.client.proto.Meta.Condition value) { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41828,6 +42054,7 @@ public Builder addConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41852,6 +42079,7 @@ public Builder addConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41876,6 +42104,7 @@ public Builder addConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41901,6 +42130,7 @@ public Builder addAllConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41924,6 +42154,7 @@ public Builder clearConditions() { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41947,6 +42178,7 @@ public Builder removeConditions(int index) { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41964,6 +42196,7 @@ public io.kubernetes.client.proto.Meta.Condition.Builder getConditionsBuilder( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -41984,6 +42217,7 @@ public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -42005,6 +42239,7 @@ public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -42022,6 +42257,7 @@ public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder() * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; @@ -42040,6 +42276,7 @@ public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:opaqueType *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Node.java b/proto/src/main/java/io/kubernetes/client/proto/V1Node.java new file mode 100644 index 0000000000..90b31fb984 --- /dev/null +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Node.java @@ -0,0 +1,5379 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: k8s.io/api/node/v1/generated.proto + +package io.kubernetes.client.proto; + +public final class V1Node { + private V1Node() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface OverheadOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.node.v1.Overhead) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * podFixed represents the fixed resource overhead associated with running a pod.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + int getPodFixedCount(); + /** + *
+     * podFixed represents the fixed resource overhead associated with running a pod.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + boolean containsPodFixed( + java.lang.String key); + /** + * Use {@link #getPodFixedMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getPodFixed(); + /** + *
+     * podFixed represents the fixed resource overhead associated with running a pod.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + java.util.Map + getPodFixedMap(); + /** + *
+     * podFixed represents the fixed resource overhead associated with running a pod.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + + io.kubernetes.client.proto.Resource.Quantity getPodFixedOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue); + /** + *
+     * podFixed represents the fixed resource overhead associated with running a pod.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + + io.kubernetes.client.proto.Resource.Quantity getPodFixedOrThrow( + java.lang.String key); + } + /** + *
+   * Overhead structure represents the resource overhead associated with running a pod.
+   * 
+ * + * Protobuf type {@code k8s.io.api.node.v1.Overhead} + */ + public static final class Overhead extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.node.v1.Overhead) + OverheadOrBuilder { + private static final long serialVersionUID = 0L; + // Use Overhead.newBuilder() to construct. + private Overhead(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Overhead() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Overhead( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + podFixed_ = com.google.protobuf.MapField.newMapField( + PodFixedDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + podFixed__ = input.readMessage( + PodFixedDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + podFixed_.getMutableMap().put( + podFixed__.getKey(), podFixed__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_Overhead_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetPodFixed(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_Overhead_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Node.Overhead.class, io.kubernetes.client.proto.V1Node.Overhead.Builder.class); + } + + public static final int PODFIXED_FIELD_NUMBER = 1; + private static final class PodFixedDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_Overhead_PodFixedEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.Resource.Quantity> podFixed_; + private com.google.protobuf.MapField + internalGetPodFixed() { + if (podFixed_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PodFixedDefaultEntryHolder.defaultEntry); + } + return podFixed_; + } + + public int getPodFixedCount() { + return internalGetPodFixed().getMap().size(); + } + /** + *
+     * podFixed represents the fixed resource overhead associated with running a pod.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + + public boolean containsPodFixed( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetPodFixed().getMap().containsKey(key); + } + /** + * Use {@link #getPodFixedMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getPodFixed() { + return getPodFixedMap(); + } + /** + *
+     * podFixed represents the fixed resource overhead associated with running a pod.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + + public java.util.Map getPodFixedMap() { + return internalGetPodFixed().getMap(); + } + /** + *
+     * podFixed represents the fixed resource overhead associated with running a pod.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + + public io.kubernetes.client.proto.Resource.Quantity getPodFixedOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetPodFixed().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * podFixed represents the fixed resource overhead associated with running a pod.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + + public io.kubernetes.client.proto.Resource.Quantity getPodFixedOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetPodFixed().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetPodFixed(), + PodFixedDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetPodFixed().getMap().entrySet()) { + com.google.protobuf.MapEntry + podFixed__ = PodFixedDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, podFixed__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Node.Overhead)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Node.Overhead other = (io.kubernetes.client.proto.V1Node.Overhead) obj; + + boolean result = true; + result = result && internalGetPodFixed().equals( + other.internalGetPodFixed()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetPodFixed().getMap().isEmpty()) { + hash = (37 * hash) + PODFIXED_FIELD_NUMBER; + hash = (53 * hash) + internalGetPodFixed().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Node.Overhead parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Node.Overhead parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.Overhead parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Node.Overhead parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.Overhead parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Node.Overhead parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.Overhead parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Node.Overhead parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.Overhead parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Node.Overhead parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.Overhead parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Node.Overhead parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Node.Overhead prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Overhead structure represents the resource overhead associated with running a pod.
+     * 
+ * + * Protobuf type {@code k8s.io.api.node.v1.Overhead} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.node.v1.Overhead) + io.kubernetes.client.proto.V1Node.OverheadOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_Overhead_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetPodFixed(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutablePodFixed(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_Overhead_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Node.Overhead.class, io.kubernetes.client.proto.V1Node.Overhead.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Node.Overhead.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutablePodFixed().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_Overhead_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.Overhead getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Node.Overhead.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.Overhead build() { + io.kubernetes.client.proto.V1Node.Overhead result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.Overhead buildPartial() { + io.kubernetes.client.proto.V1Node.Overhead result = new io.kubernetes.client.proto.V1Node.Overhead(this); + int from_bitField0_ = bitField0_; + result.podFixed_ = internalGetPodFixed(); + result.podFixed_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Node.Overhead) { + return mergeFrom((io.kubernetes.client.proto.V1Node.Overhead)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Node.Overhead other) { + if (other == io.kubernetes.client.proto.V1Node.Overhead.getDefaultInstance()) return this; + internalGetMutablePodFixed().mergeFrom( + other.internalGetPodFixed()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Node.Overhead parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Node.Overhead) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.Resource.Quantity> podFixed_; + private com.google.protobuf.MapField + internalGetPodFixed() { + if (podFixed_ == null) { + return com.google.protobuf.MapField.emptyMapField( + PodFixedDefaultEntryHolder.defaultEntry); + } + return podFixed_; + } + private com.google.protobuf.MapField + internalGetMutablePodFixed() { + onChanged();; + if (podFixed_ == null) { + podFixed_ = com.google.protobuf.MapField.newMapField( + PodFixedDefaultEntryHolder.defaultEntry); + } + if (!podFixed_.isMutable()) { + podFixed_ = podFixed_.copy(); + } + return podFixed_; + } + + public int getPodFixedCount() { + return internalGetPodFixed().getMap().size(); + } + /** + *
+       * podFixed represents the fixed resource overhead associated with running a pod.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + + public boolean containsPodFixed( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetPodFixed().getMap().containsKey(key); + } + /** + * Use {@link #getPodFixedMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getPodFixed() { + return getPodFixedMap(); + } + /** + *
+       * podFixed represents the fixed resource overhead associated with running a pod.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + + public java.util.Map getPodFixedMap() { + return internalGetPodFixed().getMap(); + } + /** + *
+       * podFixed represents the fixed resource overhead associated with running a pod.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + + public io.kubernetes.client.proto.Resource.Quantity getPodFixedOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetPodFixed().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * podFixed represents the fixed resource overhead associated with running a pod.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + + public io.kubernetes.client.proto.Resource.Quantity getPodFixedOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetPodFixed().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearPodFixed() { + internalGetMutablePodFixed().getMutableMap() + .clear(); + return this; + } + /** + *
+       * podFixed represents the fixed resource overhead associated with running a pod.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + + public Builder removePodFixed( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutablePodFixed().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutablePodFixed() { + return internalGetMutablePodFixed().getMutableMap(); + } + /** + *
+       * podFixed represents the fixed resource overhead associated with running a pod.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + public Builder putPodFixed( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutablePodFixed().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * podFixed represents the fixed resource overhead associated with running a pod.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1; + */ + + public Builder putAllPodFixed( + java.util.Map values) { + internalGetMutablePodFixed().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.node.v1.Overhead) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.node.v1.Overhead) + private static final io.kubernetes.client.proto.V1Node.Overhead DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Node.Overhead(); + } + + public static io.kubernetes.client.proto.V1Node.Overhead getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Overhead parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Overhead(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.Overhead getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RuntimeClassOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.node.v1.RuntimeClass) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * handler specifies the underlying runtime and configuration that the CRI
+     * implementation will use to handle pods of this class. The possible values
+     * are specific to the node & CRI configuration.  It is assumed that all
+     * handlers are available on every node, and handlers of the same name are
+     * equivalent on every node.
+     * For example, a handler called "runc" might specify that the runc OCI
+     * runtime (using native Linux containers) will be used to run the containers
+     * in a pod.
+     * The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements,
+     * and is immutable.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:format="k8s-short-name"
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string handler = 2; + */ + boolean hasHandler(); + /** + *
+     * handler specifies the underlying runtime and configuration that the CRI
+     * implementation will use to handle pods of this class. The possible values
+     * are specific to the node & CRI configuration.  It is assumed that all
+     * handlers are available on every node, and handlers of the same name are
+     * equivalent on every node.
+     * For example, a handler called "runc" might specify that the runc OCI
+     * runtime (using native Linux containers) will be used to run the containers
+     * in a pod.
+     * The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements,
+     * and is immutable.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:format="k8s-short-name"
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string handler = 2; + */ + java.lang.String getHandler(); + /** + *
+     * handler specifies the underlying runtime and configuration that the CRI
+     * implementation will use to handle pods of this class. The possible values
+     * are specific to the node & CRI configuration.  It is assumed that all
+     * handlers are available on every node, and handlers of the same name are
+     * equivalent on every node.
+     * For example, a handler called "runc" might specify that the runc OCI
+     * runtime (using native Linux containers) will be used to run the containers
+     * in a pod.
+     * The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements,
+     * and is immutable.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:format="k8s-short-name"
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string handler = 2; + */ + com.google.protobuf.ByteString + getHandlerBytes(); + + /** + *
+     * overhead represents the resource overhead associated with running a pod for a
+     * given RuntimeClass. For more details, see
+     *  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+     * +optional
+     * 
+ * + * optional .k8s.io.api.node.v1.Overhead overhead = 3; + */ + boolean hasOverhead(); + /** + *
+     * overhead represents the resource overhead associated with running a pod for a
+     * given RuntimeClass. For more details, see
+     *  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+     * +optional
+     * 
+ * + * optional .k8s.io.api.node.v1.Overhead overhead = 3; + */ + io.kubernetes.client.proto.V1Node.Overhead getOverhead(); + /** + *
+     * overhead represents the resource overhead associated with running a pod for a
+     * given RuntimeClass. For more details, see
+     *  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+     * +optional
+     * 
+ * + * optional .k8s.io.api.node.v1.Overhead overhead = 3; + */ + io.kubernetes.client.proto.V1Node.OverheadOrBuilder getOverheadOrBuilder(); + + /** + *
+     * scheduling holds the scheduling constraints to ensure that pods running
+     * with this RuntimeClass are scheduled to nodes that support it.
+     * If scheduling is nil, this RuntimeClass is assumed to be supported by all
+     * nodes.
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.node.v1.Scheduling scheduling = 4; + */ + boolean hasScheduling(); + /** + *
+     * scheduling holds the scheduling constraints to ensure that pods running
+     * with this RuntimeClass are scheduled to nodes that support it.
+     * If scheduling is nil, this RuntimeClass is assumed to be supported by all
+     * nodes.
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.node.v1.Scheduling scheduling = 4; + */ + io.kubernetes.client.proto.V1Node.Scheduling getScheduling(); + /** + *
+     * scheduling holds the scheduling constraints to ensure that pods running
+     * with this RuntimeClass are scheduled to nodes that support it.
+     * If scheduling is nil, this RuntimeClass is assumed to be supported by all
+     * nodes.
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.node.v1.Scheduling scheduling = 4; + */ + io.kubernetes.client.proto.V1Node.SchedulingOrBuilder getSchedulingOrBuilder(); + } + /** + *
+   * RuntimeClass defines a class of container runtime supported in the cluster.
+   * The RuntimeClass is used to determine which container runtime is used to run
+   * all containers in a pod. RuntimeClasses are manually defined by a
+   * user or cluster provisioner, and referenced in the PodSpec. The Kubelet is
+   * responsible for resolving the RuntimeClassName reference before running the
+   * pod.  For more details, see
+   * https://kubernetes.io/docs/concepts/containers/runtime-class/
+   * 
+ * + * Protobuf type {@code k8s.io.api.node.v1.RuntimeClass} + */ + public static final class RuntimeClass extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.node.v1.RuntimeClass) + RuntimeClassOrBuilder { + private static final long serialVersionUID = 0L; + // Use RuntimeClass.newBuilder() to construct. + private RuntimeClass(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RuntimeClass() { + handler_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RuntimeClass( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + handler_ = bs; + break; + } + case 26: { + io.kubernetes.client.proto.V1Node.Overhead.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = overhead_.toBuilder(); + } + overhead_ = input.readMessage(io.kubernetes.client.proto.V1Node.Overhead.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(overhead_); + overhead_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 34: { + io.kubernetes.client.proto.V1Node.Scheduling.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = scheduling_.toBuilder(); + } + scheduling_ = input.readMessage(io.kubernetes.client.proto.V1Node.Scheduling.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(scheduling_); + scheduling_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_RuntimeClass_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_RuntimeClass_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Node.RuntimeClass.class, io.kubernetes.client.proto.V1Node.RuntimeClass.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int HANDLER_FIELD_NUMBER = 2; + private volatile java.lang.Object handler_; + /** + *
+     * handler specifies the underlying runtime and configuration that the CRI
+     * implementation will use to handle pods of this class. The possible values
+     * are specific to the node & CRI configuration.  It is assumed that all
+     * handlers are available on every node, and handlers of the same name are
+     * equivalent on every node.
+     * For example, a handler called "runc" might specify that the runc OCI
+     * runtime (using native Linux containers) will be used to run the containers
+     * in a pod.
+     * The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements,
+     * and is immutable.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:format="k8s-short-name"
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string handler = 2; + */ + public boolean hasHandler() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * handler specifies the underlying runtime and configuration that the CRI
+     * implementation will use to handle pods of this class. The possible values
+     * are specific to the node & CRI configuration.  It is assumed that all
+     * handlers are available on every node, and handlers of the same name are
+     * equivalent on every node.
+     * For example, a handler called "runc" might specify that the runc OCI
+     * runtime (using native Linux containers) will be used to run the containers
+     * in a pod.
+     * The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements,
+     * and is immutable.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:format="k8s-short-name"
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string handler = 2; + */ + public java.lang.String getHandler() { + java.lang.Object ref = handler_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + handler_ = s; + } + return s; + } + } + /** + *
+     * handler specifies the underlying runtime and configuration that the CRI
+     * implementation will use to handle pods of this class. The possible values
+     * are specific to the node & CRI configuration.  It is assumed that all
+     * handlers are available on every node, and handlers of the same name are
+     * equivalent on every node.
+     * For example, a handler called "runc" might specify that the runc OCI
+     * runtime (using native Linux containers) will be used to run the containers
+     * in a pod.
+     * The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements,
+     * and is immutable.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:format="k8s-short-name"
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string handler = 2; + */ + public com.google.protobuf.ByteString + getHandlerBytes() { + java.lang.Object ref = handler_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + handler_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OVERHEAD_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.V1Node.Overhead overhead_; + /** + *
+     * overhead represents the resource overhead associated with running a pod for a
+     * given RuntimeClass. For more details, see
+     *  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+     * +optional
+     * 
+ * + * optional .k8s.io.api.node.v1.Overhead overhead = 3; + */ + public boolean hasOverhead() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * overhead represents the resource overhead associated with running a pod for a
+     * given RuntimeClass. For more details, see
+     *  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+     * +optional
+     * 
+ * + * optional .k8s.io.api.node.v1.Overhead overhead = 3; + */ + public io.kubernetes.client.proto.V1Node.Overhead getOverhead() { + return overhead_ == null ? io.kubernetes.client.proto.V1Node.Overhead.getDefaultInstance() : overhead_; + } + /** + *
+     * overhead represents the resource overhead associated with running a pod for a
+     * given RuntimeClass. For more details, see
+     *  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+     * +optional
+     * 
+ * + * optional .k8s.io.api.node.v1.Overhead overhead = 3; + */ + public io.kubernetes.client.proto.V1Node.OverheadOrBuilder getOverheadOrBuilder() { + return overhead_ == null ? io.kubernetes.client.proto.V1Node.Overhead.getDefaultInstance() : overhead_; + } + + public static final int SCHEDULING_FIELD_NUMBER = 4; + private io.kubernetes.client.proto.V1Node.Scheduling scheduling_; + /** + *
+     * scheduling holds the scheduling constraints to ensure that pods running
+     * with this RuntimeClass are scheduled to nodes that support it.
+     * If scheduling is nil, this RuntimeClass is assumed to be supported by all
+     * nodes.
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.node.v1.Scheduling scheduling = 4; + */ + public boolean hasScheduling() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * scheduling holds the scheduling constraints to ensure that pods running
+     * with this RuntimeClass are scheduled to nodes that support it.
+     * If scheduling is nil, this RuntimeClass is assumed to be supported by all
+     * nodes.
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.node.v1.Scheduling scheduling = 4; + */ + public io.kubernetes.client.proto.V1Node.Scheduling getScheduling() { + return scheduling_ == null ? io.kubernetes.client.proto.V1Node.Scheduling.getDefaultInstance() : scheduling_; + } + /** + *
+     * scheduling holds the scheduling constraints to ensure that pods running
+     * with this RuntimeClass are scheduled to nodes that support it.
+     * If scheduling is nil, this RuntimeClass is assumed to be supported by all
+     * nodes.
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.node.v1.Scheduling scheduling = 4; + */ + public io.kubernetes.client.proto.V1Node.SchedulingOrBuilder getSchedulingOrBuilder() { + return scheduling_ == null ? io.kubernetes.client.proto.V1Node.Scheduling.getDefaultInstance() : scheduling_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, handler_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getOverhead()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, getScheduling()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, handler_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOverhead()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getScheduling()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Node.RuntimeClass)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Node.RuntimeClass other = (io.kubernetes.client.proto.V1Node.RuntimeClass) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasHandler() == other.hasHandler()); + if (hasHandler()) { + result = result && getHandler() + .equals(other.getHandler()); + } + result = result && (hasOverhead() == other.hasOverhead()); + if (hasOverhead()) { + result = result && getOverhead() + .equals(other.getOverhead()); + } + result = result && (hasScheduling() == other.hasScheduling()); + if (hasScheduling()) { + result = result && getScheduling() + .equals(other.getScheduling()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasHandler()) { + hash = (37 * hash) + HANDLER_FIELD_NUMBER; + hash = (53 * hash) + getHandler().hashCode(); + } + if (hasOverhead()) { + hash = (37 * hash) + OVERHEAD_FIELD_NUMBER; + hash = (53 * hash) + getOverhead().hashCode(); + } + if (hasScheduling()) { + hash = (37 * hash) + SCHEDULING_FIELD_NUMBER; + hash = (53 * hash) + getScheduling().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Node.RuntimeClass parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClass parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClass parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClass parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClass parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClass parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClass parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClass parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClass parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClass parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClass parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClass parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Node.RuntimeClass prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * RuntimeClass defines a class of container runtime supported in the cluster.
+     * The RuntimeClass is used to determine which container runtime is used to run
+     * all containers in a pod. RuntimeClasses are manually defined by a
+     * user or cluster provisioner, and referenced in the PodSpec. The Kubelet is
+     * responsible for resolving the RuntimeClassName reference before running the
+     * pod.  For more details, see
+     * https://kubernetes.io/docs/concepts/containers/runtime-class/
+     * 
+ * + * Protobuf type {@code k8s.io.api.node.v1.RuntimeClass} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.node.v1.RuntimeClass) + io.kubernetes.client.proto.V1Node.RuntimeClassOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_RuntimeClass_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_RuntimeClass_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Node.RuntimeClass.class, io.kubernetes.client.proto.V1Node.RuntimeClass.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Node.RuntimeClass.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getOverheadFieldBuilder(); + getSchedulingFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + handler_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + if (overheadBuilder_ == null) { + overhead_ = null; + } else { + overheadBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (schedulingBuilder_ == null) { + scheduling_ = null; + } else { + schedulingBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_RuntimeClass_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.RuntimeClass getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Node.RuntimeClass.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.RuntimeClass build() { + io.kubernetes.client.proto.V1Node.RuntimeClass result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.RuntimeClass buildPartial() { + io.kubernetes.client.proto.V1Node.RuntimeClass result = new io.kubernetes.client.proto.V1Node.RuntimeClass(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.handler_ = handler_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (overheadBuilder_ == null) { + result.overhead_ = overhead_; + } else { + result.overhead_ = overheadBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (schedulingBuilder_ == null) { + result.scheduling_ = scheduling_; + } else { + result.scheduling_ = schedulingBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Node.RuntimeClass) { + return mergeFrom((io.kubernetes.client.proto.V1Node.RuntimeClass)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Node.RuntimeClass other) { + if (other == io.kubernetes.client.proto.V1Node.RuntimeClass.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasHandler()) { + bitField0_ |= 0x00000002; + handler_ = other.handler_; + onChanged(); + } + if (other.hasOverhead()) { + mergeOverhead(other.getOverhead()); + } + if (other.hasScheduling()) { + mergeScheduling(other.getScheduling()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Node.RuntimeClass parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Node.RuntimeClass) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.lang.Object handler_ = ""; + /** + *
+       * handler specifies the underlying runtime and configuration that the CRI
+       * implementation will use to handle pods of this class. The possible values
+       * are specific to the node & CRI configuration.  It is assumed that all
+       * handlers are available on every node, and handlers of the same name are
+       * equivalent on every node.
+       * For example, a handler called "runc" might specify that the runc OCI
+       * runtime (using native Linux containers) will be used to run the containers
+       * in a pod.
+       * The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements,
+       * and is immutable.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:format="k8s-short-name"
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string handler = 2; + */ + public boolean hasHandler() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * handler specifies the underlying runtime and configuration that the CRI
+       * implementation will use to handle pods of this class. The possible values
+       * are specific to the node & CRI configuration.  It is assumed that all
+       * handlers are available on every node, and handlers of the same name are
+       * equivalent on every node.
+       * For example, a handler called "runc" might specify that the runc OCI
+       * runtime (using native Linux containers) will be used to run the containers
+       * in a pod.
+       * The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements,
+       * and is immutable.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:format="k8s-short-name"
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string handler = 2; + */ + public java.lang.String getHandler() { + java.lang.Object ref = handler_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + handler_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * handler specifies the underlying runtime and configuration that the CRI
+       * implementation will use to handle pods of this class. The possible values
+       * are specific to the node & CRI configuration.  It is assumed that all
+       * handlers are available on every node, and handlers of the same name are
+       * equivalent on every node.
+       * For example, a handler called "runc" might specify that the runc OCI
+       * runtime (using native Linux containers) will be used to run the containers
+       * in a pod.
+       * The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements,
+       * and is immutable.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:format="k8s-short-name"
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string handler = 2; + */ + public com.google.protobuf.ByteString + getHandlerBytes() { + java.lang.Object ref = handler_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + handler_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * handler specifies the underlying runtime and configuration that the CRI
+       * implementation will use to handle pods of this class. The possible values
+       * are specific to the node & CRI configuration.  It is assumed that all
+       * handlers are available on every node, and handlers of the same name are
+       * equivalent on every node.
+       * For example, a handler called "runc" might specify that the runc OCI
+       * runtime (using native Linux containers) will be used to run the containers
+       * in a pod.
+       * The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements,
+       * and is immutable.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:format="k8s-short-name"
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string handler = 2; + */ + public Builder setHandler( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + handler_ = value; + onChanged(); + return this; + } + /** + *
+       * handler specifies the underlying runtime and configuration that the CRI
+       * implementation will use to handle pods of this class. The possible values
+       * are specific to the node & CRI configuration.  It is assumed that all
+       * handlers are available on every node, and handlers of the same name are
+       * equivalent on every node.
+       * For example, a handler called "runc" might specify that the runc OCI
+       * runtime (using native Linux containers) will be used to run the containers
+       * in a pod.
+       * The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements,
+       * and is immutable.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:format="k8s-short-name"
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string handler = 2; + */ + public Builder clearHandler() { + bitField0_ = (bitField0_ & ~0x00000002); + handler_ = getDefaultInstance().getHandler(); + onChanged(); + return this; + } + /** + *
+       * handler specifies the underlying runtime and configuration that the CRI
+       * implementation will use to handle pods of this class. The possible values
+       * are specific to the node & CRI configuration.  It is assumed that all
+       * handlers are available on every node, and handlers of the same name are
+       * equivalent on every node.
+       * For example, a handler called "runc" might specify that the runc OCI
+       * runtime (using native Linux containers) will be used to run the containers
+       * in a pod.
+       * The Handler must be lowercase, conform to the DNS Label (RFC 1123) requirements,
+       * and is immutable.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:format="k8s-short-name"
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string handler = 2; + */ + public Builder setHandlerBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + handler_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1Node.Overhead overhead_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Node.Overhead, io.kubernetes.client.proto.V1Node.Overhead.Builder, io.kubernetes.client.proto.V1Node.OverheadOrBuilder> overheadBuilder_; + /** + *
+       * overhead represents the resource overhead associated with running a pod for a
+       * given RuntimeClass. For more details, see
+       *  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+       * +optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Overhead overhead = 3; + */ + public boolean hasOverhead() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * overhead represents the resource overhead associated with running a pod for a
+       * given RuntimeClass. For more details, see
+       *  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+       * +optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Overhead overhead = 3; + */ + public io.kubernetes.client.proto.V1Node.Overhead getOverhead() { + if (overheadBuilder_ == null) { + return overhead_ == null ? io.kubernetes.client.proto.V1Node.Overhead.getDefaultInstance() : overhead_; + } else { + return overheadBuilder_.getMessage(); + } + } + /** + *
+       * overhead represents the resource overhead associated with running a pod for a
+       * given RuntimeClass. For more details, see
+       *  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+       * +optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Overhead overhead = 3; + */ + public Builder setOverhead(io.kubernetes.client.proto.V1Node.Overhead value) { + if (overheadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + overhead_ = value; + onChanged(); + } else { + overheadBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * overhead represents the resource overhead associated with running a pod for a
+       * given RuntimeClass. For more details, see
+       *  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+       * +optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Overhead overhead = 3; + */ + public Builder setOverhead( + io.kubernetes.client.proto.V1Node.Overhead.Builder builderForValue) { + if (overheadBuilder_ == null) { + overhead_ = builderForValue.build(); + onChanged(); + } else { + overheadBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * overhead represents the resource overhead associated with running a pod for a
+       * given RuntimeClass. For more details, see
+       *  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+       * +optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Overhead overhead = 3; + */ + public Builder mergeOverhead(io.kubernetes.client.proto.V1Node.Overhead value) { + if (overheadBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + overhead_ != null && + overhead_ != io.kubernetes.client.proto.V1Node.Overhead.getDefaultInstance()) { + overhead_ = + io.kubernetes.client.proto.V1Node.Overhead.newBuilder(overhead_).mergeFrom(value).buildPartial(); + } else { + overhead_ = value; + } + onChanged(); + } else { + overheadBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * overhead represents the resource overhead associated with running a pod for a
+       * given RuntimeClass. For more details, see
+       *  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+       * +optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Overhead overhead = 3; + */ + public Builder clearOverhead() { + if (overheadBuilder_ == null) { + overhead_ = null; + onChanged(); + } else { + overheadBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * overhead represents the resource overhead associated with running a pod for a
+       * given RuntimeClass. For more details, see
+       *  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+       * +optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Overhead overhead = 3; + */ + public io.kubernetes.client.proto.V1Node.Overhead.Builder getOverheadBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOverheadFieldBuilder().getBuilder(); + } + /** + *
+       * overhead represents the resource overhead associated with running a pod for a
+       * given RuntimeClass. For more details, see
+       *  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+       * +optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Overhead overhead = 3; + */ + public io.kubernetes.client.proto.V1Node.OverheadOrBuilder getOverheadOrBuilder() { + if (overheadBuilder_ != null) { + return overheadBuilder_.getMessageOrBuilder(); + } else { + return overhead_ == null ? + io.kubernetes.client.proto.V1Node.Overhead.getDefaultInstance() : overhead_; + } + } + /** + *
+       * overhead represents the resource overhead associated with running a pod for a
+       * given RuntimeClass. For more details, see
+       *  https://kubernetes.io/docs/concepts/scheduling-eviction/pod-overhead/
+       * +optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Overhead overhead = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Node.Overhead, io.kubernetes.client.proto.V1Node.Overhead.Builder, io.kubernetes.client.proto.V1Node.OverheadOrBuilder> + getOverheadFieldBuilder() { + if (overheadBuilder_ == null) { + overheadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Node.Overhead, io.kubernetes.client.proto.V1Node.Overhead.Builder, io.kubernetes.client.proto.V1Node.OverheadOrBuilder>( + getOverhead(), + getParentForChildren(), + isClean()); + overhead_ = null; + } + return overheadBuilder_; + } + + private io.kubernetes.client.proto.V1Node.Scheduling scheduling_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Node.Scheduling, io.kubernetes.client.proto.V1Node.Scheduling.Builder, io.kubernetes.client.proto.V1Node.SchedulingOrBuilder> schedulingBuilder_; + /** + *
+       * scheduling holds the scheduling constraints to ensure that pods running
+       * with this RuntimeClass are scheduled to nodes that support it.
+       * If scheduling is nil, this RuntimeClass is assumed to be supported by all
+       * nodes.
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Scheduling scheduling = 4; + */ + public boolean hasScheduling() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * scheduling holds the scheduling constraints to ensure that pods running
+       * with this RuntimeClass are scheduled to nodes that support it.
+       * If scheduling is nil, this RuntimeClass is assumed to be supported by all
+       * nodes.
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Scheduling scheduling = 4; + */ + public io.kubernetes.client.proto.V1Node.Scheduling getScheduling() { + if (schedulingBuilder_ == null) { + return scheduling_ == null ? io.kubernetes.client.proto.V1Node.Scheduling.getDefaultInstance() : scheduling_; + } else { + return schedulingBuilder_.getMessage(); + } + } + /** + *
+       * scheduling holds the scheduling constraints to ensure that pods running
+       * with this RuntimeClass are scheduled to nodes that support it.
+       * If scheduling is nil, this RuntimeClass is assumed to be supported by all
+       * nodes.
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Scheduling scheduling = 4; + */ + public Builder setScheduling(io.kubernetes.client.proto.V1Node.Scheduling value) { + if (schedulingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scheduling_ = value; + onChanged(); + } else { + schedulingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * scheduling holds the scheduling constraints to ensure that pods running
+       * with this RuntimeClass are scheduled to nodes that support it.
+       * If scheduling is nil, this RuntimeClass is assumed to be supported by all
+       * nodes.
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Scheduling scheduling = 4; + */ + public Builder setScheduling( + io.kubernetes.client.proto.V1Node.Scheduling.Builder builderForValue) { + if (schedulingBuilder_ == null) { + scheduling_ = builderForValue.build(); + onChanged(); + } else { + schedulingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * scheduling holds the scheduling constraints to ensure that pods running
+       * with this RuntimeClass are scheduled to nodes that support it.
+       * If scheduling is nil, this RuntimeClass is assumed to be supported by all
+       * nodes.
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Scheduling scheduling = 4; + */ + public Builder mergeScheduling(io.kubernetes.client.proto.V1Node.Scheduling value) { + if (schedulingBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + scheduling_ != null && + scheduling_ != io.kubernetes.client.proto.V1Node.Scheduling.getDefaultInstance()) { + scheduling_ = + io.kubernetes.client.proto.V1Node.Scheduling.newBuilder(scheduling_).mergeFrom(value).buildPartial(); + } else { + scheduling_ = value; + } + onChanged(); + } else { + schedulingBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * scheduling holds the scheduling constraints to ensure that pods running
+       * with this RuntimeClass are scheduled to nodes that support it.
+       * If scheduling is nil, this RuntimeClass is assumed to be supported by all
+       * nodes.
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Scheduling scheduling = 4; + */ + public Builder clearScheduling() { + if (schedulingBuilder_ == null) { + scheduling_ = null; + onChanged(); + } else { + schedulingBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + *
+       * scheduling holds the scheduling constraints to ensure that pods running
+       * with this RuntimeClass are scheduled to nodes that support it.
+       * If scheduling is nil, this RuntimeClass is assumed to be supported by all
+       * nodes.
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Scheduling scheduling = 4; + */ + public io.kubernetes.client.proto.V1Node.Scheduling.Builder getSchedulingBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getSchedulingFieldBuilder().getBuilder(); + } + /** + *
+       * scheduling holds the scheduling constraints to ensure that pods running
+       * with this RuntimeClass are scheduled to nodes that support it.
+       * If scheduling is nil, this RuntimeClass is assumed to be supported by all
+       * nodes.
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Scheduling scheduling = 4; + */ + public io.kubernetes.client.proto.V1Node.SchedulingOrBuilder getSchedulingOrBuilder() { + if (schedulingBuilder_ != null) { + return schedulingBuilder_.getMessageOrBuilder(); + } else { + return scheduling_ == null ? + io.kubernetes.client.proto.V1Node.Scheduling.getDefaultInstance() : scheduling_; + } + } + /** + *
+       * scheduling holds the scheduling constraints to ensure that pods running
+       * with this RuntimeClass are scheduled to nodes that support it.
+       * If scheduling is nil, this RuntimeClass is assumed to be supported by all
+       * nodes.
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.node.v1.Scheduling scheduling = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Node.Scheduling, io.kubernetes.client.proto.V1Node.Scheduling.Builder, io.kubernetes.client.proto.V1Node.SchedulingOrBuilder> + getSchedulingFieldBuilder() { + if (schedulingBuilder_ == null) { + schedulingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Node.Scheduling, io.kubernetes.client.proto.V1Node.Scheduling.Builder, io.kubernetes.client.proto.V1Node.SchedulingOrBuilder>( + getScheduling(), + getParentForChildren(), + isClean()); + scheduling_ = null; + } + return schedulingBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.node.v1.RuntimeClass) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.node.v1.RuntimeClass) + private static final io.kubernetes.client.proto.V1Node.RuntimeClass DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Node.RuntimeClass(); + } + + public static io.kubernetes.client.proto.V1Node.RuntimeClass getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeClass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RuntimeClass(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.RuntimeClass getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RuntimeClassListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.node.v1.RuntimeClassList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + io.kubernetes.client.proto.V1Node.RuntimeClass getItems(int index); + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + int getItemsCount(); + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + io.kubernetes.client.proto.V1Node.RuntimeClassOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * RuntimeClassList is a list of RuntimeClass objects.
+   * 
+ * + * Protobuf type {@code k8s.io.api.node.v1.RuntimeClassList} + */ + public static final class RuntimeClassList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.node.v1.RuntimeClassList) + RuntimeClassListOrBuilder { + private static final long serialVersionUID = 0L; + // Use RuntimeClassList.newBuilder() to construct. + private RuntimeClassList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RuntimeClassList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RuntimeClassList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V1Node.RuntimeClass.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_RuntimeClassList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_RuntimeClassList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Node.RuntimeClassList.class, io.kubernetes.client.proto.V1Node.RuntimeClassList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public io.kubernetes.client.proto.V1Node.RuntimeClass getItems(int index) { + return items_.get(index); + } + /** + *
+     * items is a list of schema objects.
+     * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public io.kubernetes.client.proto.V1Node.RuntimeClassOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Node.RuntimeClassList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Node.RuntimeClassList other = (io.kubernetes.client.proto.V1Node.RuntimeClassList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Node.RuntimeClassList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClassList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClassList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClassList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClassList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClassList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClassList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClassList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClassList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClassList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClassList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Node.RuntimeClassList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Node.RuntimeClassList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * RuntimeClassList is a list of RuntimeClass objects.
+     * 
+ * + * Protobuf type {@code k8s.io.api.node.v1.RuntimeClassList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.node.v1.RuntimeClassList) + io.kubernetes.client.proto.V1Node.RuntimeClassListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_RuntimeClassList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_RuntimeClassList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Node.RuntimeClassList.class, io.kubernetes.client.proto.V1Node.RuntimeClassList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Node.RuntimeClassList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_RuntimeClassList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.RuntimeClassList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Node.RuntimeClassList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.RuntimeClassList build() { + io.kubernetes.client.proto.V1Node.RuntimeClassList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.RuntimeClassList buildPartial() { + io.kubernetes.client.proto.V1Node.RuntimeClassList result = new io.kubernetes.client.proto.V1Node.RuntimeClassList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Node.RuntimeClassList) { + return mergeFrom((io.kubernetes.client.proto.V1Node.RuntimeClassList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Node.RuntimeClassList other) { + if (other == io.kubernetes.client.proto.V1Node.RuntimeClassList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Node.RuntimeClassList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Node.RuntimeClassList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Node.RuntimeClass, io.kubernetes.client.proto.V1Node.RuntimeClass.Builder, io.kubernetes.client.proto.V1Node.RuntimeClassOrBuilder> itemsBuilder_; + + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public io.kubernetes.client.proto.V1Node.RuntimeClass getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Node.RuntimeClass value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Node.RuntimeClass.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V1Node.RuntimeClass value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Node.RuntimeClass value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V1Node.RuntimeClass.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Node.RuntimeClass.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public io.kubernetes.client.proto.V1Node.RuntimeClass.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public io.kubernetes.client.proto.V1Node.RuntimeClassOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public io.kubernetes.client.proto.V1Node.RuntimeClass.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Node.RuntimeClass.getDefaultInstance()); + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public io.kubernetes.client.proto.V1Node.RuntimeClass.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Node.RuntimeClass.getDefaultInstance()); + } + /** + *
+       * items is a list of schema objects.
+       * 
+ * + * repeated .k8s.io.api.node.v1.RuntimeClass items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Node.RuntimeClass, io.kubernetes.client.proto.V1Node.RuntimeClass.Builder, io.kubernetes.client.proto.V1Node.RuntimeClassOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Node.RuntimeClass, io.kubernetes.client.proto.V1Node.RuntimeClass.Builder, io.kubernetes.client.proto.V1Node.RuntimeClassOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.node.v1.RuntimeClassList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.node.v1.RuntimeClassList) + private static final io.kubernetes.client.proto.V1Node.RuntimeClassList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Node.RuntimeClassList(); + } + + public static io.kubernetes.client.proto.V1Node.RuntimeClassList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RuntimeClassList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RuntimeClassList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.RuntimeClassList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SchedulingOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.node.v1.Scheduling) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * nodeSelector lists labels that must be present on nodes that support this
+     * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+     * node matched by this selector. The RuntimeClass nodeSelector is merged
+     * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+     * be rejected in admission.
+     * +optional
+     * +mapType=atomic
+     * 
+ * + * map<string, string> nodeSelector = 1; + */ + int getNodeSelectorCount(); + /** + *
+     * nodeSelector lists labels that must be present on nodes that support this
+     * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+     * node matched by this selector. The RuntimeClass nodeSelector is merged
+     * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+     * be rejected in admission.
+     * +optional
+     * +mapType=atomic
+     * 
+ * + * map<string, string> nodeSelector = 1; + */ + boolean containsNodeSelector( + java.lang.String key); + /** + * Use {@link #getNodeSelectorMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getNodeSelector(); + /** + *
+     * nodeSelector lists labels that must be present on nodes that support this
+     * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+     * node matched by this selector. The RuntimeClass nodeSelector is merged
+     * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+     * be rejected in admission.
+     * +optional
+     * +mapType=atomic
+     * 
+ * + * map<string, string> nodeSelector = 1; + */ + java.util.Map + getNodeSelectorMap(); + /** + *
+     * nodeSelector lists labels that must be present on nodes that support this
+     * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+     * node matched by this selector. The RuntimeClass nodeSelector is merged
+     * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+     * be rejected in admission.
+     * +optional
+     * +mapType=atomic
+     * 
+ * + * map<string, string> nodeSelector = 1; + */ + + java.lang.String getNodeSelectorOrDefault( + java.lang.String key, + java.lang.String defaultValue); + /** + *
+     * nodeSelector lists labels that must be present on nodes that support this
+     * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+     * node matched by this selector. The RuntimeClass nodeSelector is merged
+     * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+     * be rejected in admission.
+     * +optional
+     * +mapType=atomic
+     * 
+ * + * map<string, string> nodeSelector = 1; + */ + + java.lang.String getNodeSelectorOrThrow( + java.lang.String key); + + /** + *
+     * tolerations are appended (excluding duplicates) to pods running with this
+     * RuntimeClass during admission, effectively unioning the set of nodes
+     * tolerated by the pod and the RuntimeClass.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + java.util.List + getTolerationsList(); + /** + *
+     * tolerations are appended (excluding duplicates) to pods running with this
+     * RuntimeClass during admission, effectively unioning the set of nodes
+     * tolerated by the pod and the RuntimeClass.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + io.kubernetes.client.proto.V1.Toleration getTolerations(int index); + /** + *
+     * tolerations are appended (excluding duplicates) to pods running with this
+     * RuntimeClass during admission, effectively unioning the set of nodes
+     * tolerated by the pod and the RuntimeClass.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + int getTolerationsCount(); + /** + *
+     * tolerations are appended (excluding duplicates) to pods running with this
+     * RuntimeClass during admission, effectively unioning the set of nodes
+     * tolerated by the pod and the RuntimeClass.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + java.util.List + getTolerationsOrBuilderList(); + /** + *
+     * tolerations are appended (excluding duplicates) to pods running with this
+     * RuntimeClass during admission, effectively unioning the set of nodes
+     * tolerated by the pod and the RuntimeClass.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + io.kubernetes.client.proto.V1.TolerationOrBuilder getTolerationsOrBuilder( + int index); + } + /** + *
+   * Scheduling specifies the scheduling constraints for nodes supporting a
+   * RuntimeClass.
+   * 
+ * + * Protobuf type {@code k8s.io.api.node.v1.Scheduling} + */ + public static final class Scheduling extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.node.v1.Scheduling) + SchedulingOrBuilder { + private static final long serialVersionUID = 0L; + // Use Scheduling.newBuilder() to construct. + private Scheduling(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Scheduling() { + tolerations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Scheduling( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + nodeSelector_ = com.google.protobuf.MapField.newMapField( + NodeSelectorDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + nodeSelector__ = input.readMessage( + NodeSelectorDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + nodeSelector_.getMutableMap().put( + nodeSelector__.getKey(), nodeSelector__.getValue()); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + tolerations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + tolerations_.add( + input.readMessage(io.kubernetes.client.proto.V1.Toleration.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + tolerations_ = java.util.Collections.unmodifiableList(tolerations_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_Scheduling_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetNodeSelector(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_Scheduling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Node.Scheduling.class, io.kubernetes.client.proto.V1Node.Scheduling.Builder.class); + } + + public static final int NODESELECTOR_FIELD_NUMBER = 1; + private static final class NodeSelectorDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_Scheduling_NodeSelectorEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> nodeSelector_; + private com.google.protobuf.MapField + internalGetNodeSelector() { + if (nodeSelector_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NodeSelectorDefaultEntryHolder.defaultEntry); + } + return nodeSelector_; + } + + public int getNodeSelectorCount() { + return internalGetNodeSelector().getMap().size(); + } + /** + *
+     * nodeSelector lists labels that must be present on nodes that support this
+     * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+     * node matched by this selector. The RuntimeClass nodeSelector is merged
+     * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+     * be rejected in admission.
+     * +optional
+     * +mapType=atomic
+     * 
+ * + * map<string, string> nodeSelector = 1; + */ + + public boolean containsNodeSelector( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetNodeSelector().getMap().containsKey(key); + } + /** + * Use {@link #getNodeSelectorMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getNodeSelector() { + return getNodeSelectorMap(); + } + /** + *
+     * nodeSelector lists labels that must be present on nodes that support this
+     * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+     * node matched by this selector. The RuntimeClass nodeSelector is merged
+     * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+     * be rejected in admission.
+     * +optional
+     * +mapType=atomic
+     * 
+ * + * map<string, string> nodeSelector = 1; + */ + + public java.util.Map getNodeSelectorMap() { + return internalGetNodeSelector().getMap(); + } + /** + *
+     * nodeSelector lists labels that must be present on nodes that support this
+     * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+     * node matched by this selector. The RuntimeClass nodeSelector is merged
+     * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+     * be rejected in admission.
+     * +optional
+     * +mapType=atomic
+     * 
+ * + * map<string, string> nodeSelector = 1; + */ + + public java.lang.String getNodeSelectorOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetNodeSelector().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * nodeSelector lists labels that must be present on nodes that support this
+     * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+     * node matched by this selector. The RuntimeClass nodeSelector is merged
+     * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+     * be rejected in admission.
+     * +optional
+     * +mapType=atomic
+     * 
+ * + * map<string, string> nodeSelector = 1; + */ + + public java.lang.String getNodeSelectorOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetNodeSelector().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TOLERATIONS_FIELD_NUMBER = 2; + private java.util.List tolerations_; + /** + *
+     * tolerations are appended (excluding duplicates) to pods running with this
+     * RuntimeClass during admission, effectively unioning the set of nodes
+     * tolerated by the pod and the RuntimeClass.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public java.util.List getTolerationsList() { + return tolerations_; + } + /** + *
+     * tolerations are appended (excluding duplicates) to pods running with this
+     * RuntimeClass during admission, effectively unioning the set of nodes
+     * tolerated by the pod and the RuntimeClass.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public java.util.List + getTolerationsOrBuilderList() { + return tolerations_; + } + /** + *
+     * tolerations are appended (excluding duplicates) to pods running with this
+     * RuntimeClass during admission, effectively unioning the set of nodes
+     * tolerated by the pod and the RuntimeClass.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public int getTolerationsCount() { + return tolerations_.size(); + } + /** + *
+     * tolerations are appended (excluding duplicates) to pods running with this
+     * RuntimeClass during admission, effectively unioning the set of nodes
+     * tolerated by the pod and the RuntimeClass.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public io.kubernetes.client.proto.V1.Toleration getTolerations(int index) { + return tolerations_.get(index); + } + /** + *
+     * tolerations are appended (excluding duplicates) to pods running with this
+     * RuntimeClass during admission, effectively unioning the set of nodes
+     * tolerated by the pod and the RuntimeClass.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public io.kubernetes.client.proto.V1.TolerationOrBuilder getTolerationsOrBuilder( + int index) { + return tolerations_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetNodeSelector(), + NodeSelectorDefaultEntryHolder.defaultEntry, + 1); + for (int i = 0; i < tolerations_.size(); i++) { + output.writeMessage(2, tolerations_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetNodeSelector().getMap().entrySet()) { + com.google.protobuf.MapEntry + nodeSelector__ = NodeSelectorDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, nodeSelector__); + } + for (int i = 0; i < tolerations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, tolerations_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Node.Scheduling)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Node.Scheduling other = (io.kubernetes.client.proto.V1Node.Scheduling) obj; + + boolean result = true; + result = result && internalGetNodeSelector().equals( + other.internalGetNodeSelector()); + result = result && getTolerationsList() + .equals(other.getTolerationsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetNodeSelector().getMap().isEmpty()) { + hash = (37 * hash) + NODESELECTOR_FIELD_NUMBER; + hash = (53 * hash) + internalGetNodeSelector().hashCode(); + } + if (getTolerationsCount() > 0) { + hash = (37 * hash) + TOLERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getTolerationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Node.Scheduling parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Node.Scheduling parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.Scheduling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Node.Scheduling parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.Scheduling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Node.Scheduling parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.Scheduling parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Node.Scheduling parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.Scheduling parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Node.Scheduling parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Node.Scheduling parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Node.Scheduling parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Node.Scheduling prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Scheduling specifies the scheduling constraints for nodes supporting a
+     * RuntimeClass.
+     * 
+ * + * Protobuf type {@code k8s.io.api.node.v1.Scheduling} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.node.v1.Scheduling) + io.kubernetes.client.proto.V1Node.SchedulingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_Scheduling_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetNodeSelector(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableNodeSelector(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_Scheduling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Node.Scheduling.class, io.kubernetes.client.proto.V1Node.Scheduling.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Node.Scheduling.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTolerationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableNodeSelector().clear(); + if (tolerationsBuilder_ == null) { + tolerations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + tolerationsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Node.internal_static_k8s_io_api_node_v1_Scheduling_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.Scheduling getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Node.Scheduling.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.Scheduling build() { + io.kubernetes.client.proto.V1Node.Scheduling result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.Scheduling buildPartial() { + io.kubernetes.client.proto.V1Node.Scheduling result = new io.kubernetes.client.proto.V1Node.Scheduling(this); + int from_bitField0_ = bitField0_; + result.nodeSelector_ = internalGetNodeSelector(); + result.nodeSelector_.makeImmutable(); + if (tolerationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + tolerations_ = java.util.Collections.unmodifiableList(tolerations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.tolerations_ = tolerations_; + } else { + result.tolerations_ = tolerationsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Node.Scheduling) { + return mergeFrom((io.kubernetes.client.proto.V1Node.Scheduling)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Node.Scheduling other) { + if (other == io.kubernetes.client.proto.V1Node.Scheduling.getDefaultInstance()) return this; + internalGetMutableNodeSelector().mergeFrom( + other.internalGetNodeSelector()); + if (tolerationsBuilder_ == null) { + if (!other.tolerations_.isEmpty()) { + if (tolerations_.isEmpty()) { + tolerations_ = other.tolerations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTolerationsIsMutable(); + tolerations_.addAll(other.tolerations_); + } + onChanged(); + } + } else { + if (!other.tolerations_.isEmpty()) { + if (tolerationsBuilder_.isEmpty()) { + tolerationsBuilder_.dispose(); + tolerationsBuilder_ = null; + tolerations_ = other.tolerations_; + bitField0_ = (bitField0_ & ~0x00000002); + tolerationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTolerationsFieldBuilder() : null; + } else { + tolerationsBuilder_.addAllMessages(other.tolerations_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Node.Scheduling parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Node.Scheduling) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> nodeSelector_; + private com.google.protobuf.MapField + internalGetNodeSelector() { + if (nodeSelector_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NodeSelectorDefaultEntryHolder.defaultEntry); + } + return nodeSelector_; + } + private com.google.protobuf.MapField + internalGetMutableNodeSelector() { + onChanged();; + if (nodeSelector_ == null) { + nodeSelector_ = com.google.protobuf.MapField.newMapField( + NodeSelectorDefaultEntryHolder.defaultEntry); + } + if (!nodeSelector_.isMutable()) { + nodeSelector_ = nodeSelector_.copy(); + } + return nodeSelector_; + } + + public int getNodeSelectorCount() { + return internalGetNodeSelector().getMap().size(); + } + /** + *
+       * nodeSelector lists labels that must be present on nodes that support this
+       * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+       * node matched by this selector. The RuntimeClass nodeSelector is merged
+       * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+       * be rejected in admission.
+       * +optional
+       * +mapType=atomic
+       * 
+ * + * map<string, string> nodeSelector = 1; + */ + + public boolean containsNodeSelector( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetNodeSelector().getMap().containsKey(key); + } + /** + * Use {@link #getNodeSelectorMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getNodeSelector() { + return getNodeSelectorMap(); + } + /** + *
+       * nodeSelector lists labels that must be present on nodes that support this
+       * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+       * node matched by this selector. The RuntimeClass nodeSelector is merged
+       * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+       * be rejected in admission.
+       * +optional
+       * +mapType=atomic
+       * 
+ * + * map<string, string> nodeSelector = 1; + */ + + public java.util.Map getNodeSelectorMap() { + return internalGetNodeSelector().getMap(); + } + /** + *
+       * nodeSelector lists labels that must be present on nodes that support this
+       * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+       * node matched by this selector. The RuntimeClass nodeSelector is merged
+       * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+       * be rejected in admission.
+       * +optional
+       * +mapType=atomic
+       * 
+ * + * map<string, string> nodeSelector = 1; + */ + + public java.lang.String getNodeSelectorOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetNodeSelector().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * nodeSelector lists labels that must be present on nodes that support this
+       * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+       * node matched by this selector. The RuntimeClass nodeSelector is merged
+       * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+       * be rejected in admission.
+       * +optional
+       * +mapType=atomic
+       * 
+ * + * map<string, string> nodeSelector = 1; + */ + + public java.lang.String getNodeSelectorOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetNodeSelector().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearNodeSelector() { + internalGetMutableNodeSelector().getMutableMap() + .clear(); + return this; + } + /** + *
+       * nodeSelector lists labels that must be present on nodes that support this
+       * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+       * node matched by this selector. The RuntimeClass nodeSelector is merged
+       * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+       * be rejected in admission.
+       * +optional
+       * +mapType=atomic
+       * 
+ * + * map<string, string> nodeSelector = 1; + */ + + public Builder removeNodeSelector( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableNodeSelector().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableNodeSelector() { + return internalGetMutableNodeSelector().getMutableMap(); + } + /** + *
+       * nodeSelector lists labels that must be present on nodes that support this
+       * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+       * node matched by this selector. The RuntimeClass nodeSelector is merged
+       * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+       * be rejected in admission.
+       * +optional
+       * +mapType=atomic
+       * 
+ * + * map<string, string> nodeSelector = 1; + */ + public Builder putNodeSelector( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableNodeSelector().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * nodeSelector lists labels that must be present on nodes that support this
+       * RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
+       * node matched by this selector. The RuntimeClass nodeSelector is merged
+       * with a pod's existing nodeSelector. Any conflicts will cause the pod to
+       * be rejected in admission.
+       * +optional
+       * +mapType=atomic
+       * 
+ * + * map<string, string> nodeSelector = 1; + */ + + public Builder putAllNodeSelector( + java.util.Map values) { + internalGetMutableNodeSelector().getMutableMap() + .putAll(values); + return this; + } + + private java.util.List tolerations_ = + java.util.Collections.emptyList(); + private void ensureTolerationsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + tolerations_ = new java.util.ArrayList(tolerations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1.Toleration, io.kubernetes.client.proto.V1.Toleration.Builder, io.kubernetes.client.proto.V1.TolerationOrBuilder> tolerationsBuilder_; + + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public java.util.List getTolerationsList() { + if (tolerationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tolerations_); + } else { + return tolerationsBuilder_.getMessageList(); + } + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public int getTolerationsCount() { + if (tolerationsBuilder_ == null) { + return tolerations_.size(); + } else { + return tolerationsBuilder_.getCount(); + } + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public io.kubernetes.client.proto.V1.Toleration getTolerations(int index) { + if (tolerationsBuilder_ == null) { + return tolerations_.get(index); + } else { + return tolerationsBuilder_.getMessage(index); + } + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public Builder setTolerations( + int index, io.kubernetes.client.proto.V1.Toleration value) { + if (tolerationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTolerationsIsMutable(); + tolerations_.set(index, value); + onChanged(); + } else { + tolerationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public Builder setTolerations( + int index, io.kubernetes.client.proto.V1.Toleration.Builder builderForValue) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.set(index, builderForValue.build()); + onChanged(); + } else { + tolerationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public Builder addTolerations(io.kubernetes.client.proto.V1.Toleration value) { + if (tolerationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTolerationsIsMutable(); + tolerations_.add(value); + onChanged(); + } else { + tolerationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public Builder addTolerations( + int index, io.kubernetes.client.proto.V1.Toleration value) { + if (tolerationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTolerationsIsMutable(); + tolerations_.add(index, value); + onChanged(); + } else { + tolerationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public Builder addTolerations( + io.kubernetes.client.proto.V1.Toleration.Builder builderForValue) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.add(builderForValue.build()); + onChanged(); + } else { + tolerationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public Builder addTolerations( + int index, io.kubernetes.client.proto.V1.Toleration.Builder builderForValue) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.add(index, builderForValue.build()); + onChanged(); + } else { + tolerationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public Builder addAllTolerations( + java.lang.Iterable values) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tolerations_); + onChanged(); + } else { + tolerationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public Builder clearTolerations() { + if (tolerationsBuilder_ == null) { + tolerations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + tolerationsBuilder_.clear(); + } + return this; + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public Builder removeTolerations(int index) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.remove(index); + onChanged(); + } else { + tolerationsBuilder_.remove(index); + } + return this; + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public io.kubernetes.client.proto.V1.Toleration.Builder getTolerationsBuilder( + int index) { + return getTolerationsFieldBuilder().getBuilder(index); + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public io.kubernetes.client.proto.V1.TolerationOrBuilder getTolerationsOrBuilder( + int index) { + if (tolerationsBuilder_ == null) { + return tolerations_.get(index); } else { + return tolerationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public java.util.List + getTolerationsOrBuilderList() { + if (tolerationsBuilder_ != null) { + return tolerationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tolerations_); + } + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public io.kubernetes.client.proto.V1.Toleration.Builder addTolerationsBuilder() { + return getTolerationsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1.Toleration.getDefaultInstance()); + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public io.kubernetes.client.proto.V1.Toleration.Builder addTolerationsBuilder( + int index) { + return getTolerationsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1.Toleration.getDefaultInstance()); + } + /** + *
+       * tolerations are appended (excluding duplicates) to pods running with this
+       * RuntimeClass during admission, effectively unioning the set of nodes
+       * tolerated by the pod and the RuntimeClass.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.core.v1.Toleration tolerations = 2; + */ + public java.util.List + getTolerationsBuilderList() { + return getTolerationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1.Toleration, io.kubernetes.client.proto.V1.Toleration.Builder, io.kubernetes.client.proto.V1.TolerationOrBuilder> + getTolerationsFieldBuilder() { + if (tolerationsBuilder_ == null) { + tolerationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1.Toleration, io.kubernetes.client.proto.V1.Toleration.Builder, io.kubernetes.client.proto.V1.TolerationOrBuilder>( + tolerations_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + tolerations_ = null; + } + return tolerationsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.node.v1.Scheduling) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.node.v1.Scheduling) + private static final io.kubernetes.client.proto.V1Node.Scheduling DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Node.Scheduling(); + } + + public static io.kubernetes.client.proto.V1Node.Scheduling getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Scheduling parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Scheduling(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Node.Scheduling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_node_v1_Overhead_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_node_v1_Overhead_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_node_v1_Overhead_PodFixedEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_node_v1_Overhead_PodFixedEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_node_v1_RuntimeClass_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_node_v1_RuntimeClass_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_node_v1_RuntimeClassList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_node_v1_RuntimeClassList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_node_v1_Scheduling_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_node_v1_Scheduling_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_node_v1_Scheduling_NodeSelectorEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_node_v1_Scheduling_NodeSelectorEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\"k8s.io/api/node/v1/generated.proto\022\022k8" + + "s.io.api.node.v1\032\"k8s.io/api/core/v1/gen" + + "erated.proto\0324k8s.io/apimachinery/pkg/ap" + + "i/resource/generated.proto\0324k8s.io/apima" + + "chinery/pkg/apis/meta/v1/generated.proto" + + "\032/k8s.io/apimachinery/pkg/runtime/genera" + + "ted.proto\0326k8s.io/apimachinery/pkg/runti" + + "me/schema/generated.proto\"\251\001\n\010Overhead\022<" + + "\n\010podFixed\030\001 \003(\0132*.k8s.io.api.node.v1.Ov" + + "erhead.PodFixedEntry\032_\n\rPodFixedEntry\022\013\n" + + "\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apima" + + "chinery.pkg.api.resource.Quantity:\0028\001\"\307\001" + + "\n\014RuntimeClass\022B\n\010metadata\030\001 \001(\01320.k8s.i" + + "o.apimachinery.pkg.apis.meta.v1.ObjectMe" + + "ta\022\017\n\007handler\030\002 \001(\t\022.\n\010overhead\030\003 \001(\0132\034." + + "k8s.io.api.node.v1.Overhead\0222\n\nschedulin" + + "g\030\004 \001(\0132\036.k8s.io.api.node.v1.Scheduling\"" + + "\205\001\n\020RuntimeClassList\022@\n\010metadata\030\001 \001(\0132." + + ".k8s.io.apimachinery.pkg.apis.meta.v1.Li" + + "stMeta\022/\n\005items\030\002 \003(\0132 .k8s.io.api.node." + + "v1.RuntimeClass\"\276\001\n\nScheduling\022F\n\014nodeSe" + + "lector\030\001 \003(\01320.k8s.io.api.node.v1.Schedu" + + "ling.NodeSelectorEntry\0223\n\013tolerations\030\002 " + + "\003(\0132\036.k8s.io.api.core.v1.Toleration\0323\n\021N" + + "odeSelectorEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" + + " \001(\t:\0028\001B8\n\032io.kubernetes.client.protoB\006" + + "V1NodeZ\022k8s.io/api/node/v1" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.kubernetes.client.proto.V1.getDescriptor(), + io.kubernetes.client.proto.Resource.getDescriptor(), + io.kubernetes.client.proto.Meta.getDescriptor(), + io.kubernetes.client.proto.Runtime.getDescriptor(), + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), + }, assigner); + internal_static_k8s_io_api_node_v1_Overhead_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_k8s_io_api_node_v1_Overhead_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_node_v1_Overhead_descriptor, + new java.lang.String[] { "PodFixed", }); + internal_static_k8s_io_api_node_v1_Overhead_PodFixedEntry_descriptor = + internal_static_k8s_io_api_node_v1_Overhead_descriptor.getNestedTypes().get(0); + internal_static_k8s_io_api_node_v1_Overhead_PodFixedEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_node_v1_Overhead_PodFixedEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_k8s_io_api_node_v1_RuntimeClass_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_k8s_io_api_node_v1_RuntimeClass_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_node_v1_RuntimeClass_descriptor, + new java.lang.String[] { "Metadata", "Handler", "Overhead", "Scheduling", }); + internal_static_k8s_io_api_node_v1_RuntimeClassList_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_k8s_io_api_node_v1_RuntimeClassList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_node_v1_RuntimeClassList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_node_v1_Scheduling_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_k8s_io_api_node_v1_Scheduling_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_node_v1_Scheduling_descriptor, + new java.lang.String[] { "NodeSelector", "Tolerations", }); + internal_static_k8s_io_api_node_v1_Scheduling_NodeSelectorEntry_descriptor = + internal_static_k8s_io_api_node_v1_Scheduling_descriptor.getNestedTypes().get(0); + internal_static_k8s_io_api_node_v1_Scheduling_NodeSelectorEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_node_v1_Scheduling_NodeSelectorEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + io.kubernetes.client.proto.V1.getDescriptor(); + io.kubernetes.client.proto.Resource.getDescriptor(); + io.kubernetes.client.proto.Meta.getDescriptor(); + io.kubernetes.client.proto.Runtime.getDescriptor(); + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Policy.java b/proto/src/main/java/io/kubernetes/client/proto/V1Policy.java index 5769f2bccd..d3a720d673 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V1Policy.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Policy.java @@ -1086,6 +1086,7 @@ public interface PodDisruptionBudgetOrBuilder extends /** *
    * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
+   * +k8s:supportsSubresource="/status"
    * 
* * Protobuf type {@code k8s.io.api.policy.v1.PodDisruptionBudget} @@ -1505,6 +1506,7 @@ protected Builder newBuilderForType( /** *
      * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
+     * +k8s:supportsSubresource="/status"
      * 
* * Protobuf type {@code k8s.io.api.policy.v1.PodDisruptionBudget} @@ -5413,6 +5415,7 @@ io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow( /** *
      * Number of pod disruptions that are currently allowed.
+     * +optional
      * 
* * optional int32 disruptionsAllowed = 3; @@ -5421,6 +5424,7 @@ io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow( /** *
      * Number of pod disruptions that are currently allowed.
+     * +optional
      * 
* * optional int32 disruptionsAllowed = 3; @@ -5430,6 +5434,7 @@ io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow( /** *
      * current number of healthy pods
+     * +optional
      * 
* * optional int32 currentHealthy = 4; @@ -5438,6 +5443,7 @@ io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow( /** *
      * current number of healthy pods
+     * +optional
      * 
* * optional int32 currentHealthy = 4; @@ -5447,6 +5453,7 @@ io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow( /** *
      * minimum desired number of healthy pods
+     * +optional
      * 
* * optional int32 desiredHealthy = 5; @@ -5455,6 +5462,7 @@ io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow( /** *
      * minimum desired number of healthy pods
+     * +optional
      * 
* * optional int32 desiredHealthy = 5; @@ -5464,6 +5472,7 @@ io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow( /** *
      * total number of pods counted by this disruption budget
+     * +optional
      * 
* * optional int32 expectedPods = 6; @@ -5472,6 +5481,7 @@ io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow( /** *
      * total number of pods counted by this disruption budget
+     * +optional
      * 
* * optional int32 expectedPods = 6; @@ -5497,6 +5507,9 @@ io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -5522,6 +5535,9 @@ io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -5546,6 +5562,9 @@ io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -5570,6 +5589,9 @@ io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -5595,6 +5617,9 @@ io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -5915,6 +5940,7 @@ public io.kubernetes.client.proto.Meta.Time getDisruptedPodsOrThrow( /** *
      * Number of pod disruptions that are currently allowed.
+     * +optional
      * 
* * optional int32 disruptionsAllowed = 3; @@ -5925,6 +5951,7 @@ public boolean hasDisruptionsAllowed() { /** *
      * Number of pod disruptions that are currently allowed.
+     * +optional
      * 
* * optional int32 disruptionsAllowed = 3; @@ -5938,6 +5965,7 @@ public int getDisruptionsAllowed() { /** *
      * current number of healthy pods
+     * +optional
      * 
* * optional int32 currentHealthy = 4; @@ -5948,6 +5976,7 @@ public boolean hasCurrentHealthy() { /** *
      * current number of healthy pods
+     * +optional
      * 
* * optional int32 currentHealthy = 4; @@ -5961,6 +5990,7 @@ public int getCurrentHealthy() { /** *
      * minimum desired number of healthy pods
+     * +optional
      * 
* * optional int32 desiredHealthy = 5; @@ -5971,6 +6001,7 @@ public boolean hasDesiredHealthy() { /** *
      * minimum desired number of healthy pods
+     * +optional
      * 
* * optional int32 desiredHealthy = 5; @@ -5984,6 +6015,7 @@ public int getDesiredHealthy() { /** *
      * total number of pods counted by this disruption budget
+     * +optional
      * 
* * optional int32 expectedPods = 6; @@ -5994,6 +6026,7 @@ public boolean hasExpectedPods() { /** *
      * total number of pods counted by this disruption budget
+     * +optional
      * 
* * optional int32 expectedPods = 6; @@ -6023,6 +6056,9 @@ public int getExpectedPods() { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -6049,6 +6085,9 @@ public java.util.List getConditionsLi * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -6076,6 +6115,9 @@ public java.util.List getConditionsLi * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -6102,6 +6144,9 @@ public int getConditionsCount() { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -6128,6 +6173,9 @@ public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -6950,6 +6998,7 @@ public Builder putAllDisruptedPods( /** *
        * Number of pod disruptions that are currently allowed.
+       * +optional
        * 
* * optional int32 disruptionsAllowed = 3; @@ -6960,6 +7009,7 @@ public boolean hasDisruptionsAllowed() { /** *
        * Number of pod disruptions that are currently allowed.
+       * +optional
        * 
* * optional int32 disruptionsAllowed = 3; @@ -6970,6 +7020,7 @@ public int getDisruptionsAllowed() { /** *
        * Number of pod disruptions that are currently allowed.
+       * +optional
        * 
* * optional int32 disruptionsAllowed = 3; @@ -6983,6 +7034,7 @@ public Builder setDisruptionsAllowed(int value) { /** *
        * Number of pod disruptions that are currently allowed.
+       * +optional
        * 
* * optional int32 disruptionsAllowed = 3; @@ -6998,6 +7050,7 @@ public Builder clearDisruptionsAllowed() { /** *
        * current number of healthy pods
+       * +optional
        * 
* * optional int32 currentHealthy = 4; @@ -7008,6 +7061,7 @@ public boolean hasCurrentHealthy() { /** *
        * current number of healthy pods
+       * +optional
        * 
* * optional int32 currentHealthy = 4; @@ -7018,6 +7072,7 @@ public int getCurrentHealthy() { /** *
        * current number of healthy pods
+       * +optional
        * 
* * optional int32 currentHealthy = 4; @@ -7031,6 +7086,7 @@ public Builder setCurrentHealthy(int value) { /** *
        * current number of healthy pods
+       * +optional
        * 
* * optional int32 currentHealthy = 4; @@ -7046,6 +7102,7 @@ public Builder clearCurrentHealthy() { /** *
        * minimum desired number of healthy pods
+       * +optional
        * 
* * optional int32 desiredHealthy = 5; @@ -7056,6 +7113,7 @@ public boolean hasDesiredHealthy() { /** *
        * minimum desired number of healthy pods
+       * +optional
        * 
* * optional int32 desiredHealthy = 5; @@ -7066,6 +7124,7 @@ public int getDesiredHealthy() { /** *
        * minimum desired number of healthy pods
+       * +optional
        * 
* * optional int32 desiredHealthy = 5; @@ -7079,6 +7138,7 @@ public Builder setDesiredHealthy(int value) { /** *
        * minimum desired number of healthy pods
+       * +optional
        * 
* * optional int32 desiredHealthy = 5; @@ -7094,6 +7154,7 @@ public Builder clearDesiredHealthy() { /** *
        * total number of pods counted by this disruption budget
+       * +optional
        * 
* * optional int32 expectedPods = 6; @@ -7104,6 +7165,7 @@ public boolean hasExpectedPods() { /** *
        * total number of pods counted by this disruption budget
+       * +optional
        * 
* * optional int32 expectedPods = 6; @@ -7114,6 +7176,7 @@ public int getExpectedPods() { /** *
        * total number of pods counted by this disruption budget
+       * +optional
        * 
* * optional int32 expectedPods = 6; @@ -7127,6 +7190,7 @@ public Builder setExpectedPods(int value) { /** *
        * total number of pods counted by this disruption budget
+       * +optional
        * 
* * optional int32 expectedPods = 6; @@ -7169,6 +7233,9 @@ private void ensureConditionsIsMutable() { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7199,6 +7266,9 @@ public java.util.List getConditionsLi * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7229,6 +7299,9 @@ public int getConditionsCount() { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7259,6 +7332,9 @@ public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7296,6 +7372,9 @@ public Builder setConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7330,6 +7409,9 @@ public Builder setConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7366,6 +7448,9 @@ public Builder addConditions(io.kubernetes.client.proto.Meta.Condition value) { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7403,6 +7488,9 @@ public Builder addConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7437,6 +7525,9 @@ public Builder addConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7471,6 +7562,9 @@ public Builder addConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7506,6 +7600,9 @@ public Builder addAllConditions( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7539,6 +7636,9 @@ public Builder clearConditions() { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7572,6 +7672,9 @@ public Builder removeConditions(int index) { * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7599,6 +7702,9 @@ public io.kubernetes.client.proto.Meta.Condition.Builder getConditionsBuilder( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7629,6 +7735,9 @@ public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7660,6 +7769,9 @@ public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7687,6 +7799,9 @@ public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder() * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; @@ -7715,6 +7830,9 @@ public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder( * +patchStrategy=merge * +listType=map * +listMapKey=type + * +k8s:alpha(since: "1.37")=+k8s:optional + * +k8s:alpha(since: "1.37")=+k8s:listType=map + * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type *
* * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7; diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Rbac.java b/proto/src/main/java/io/kubernetes/client/proto/V1Rbac.java index d72e5fa407..32c8f93616 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V1Rbac.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Rbac.java @@ -1037,6 +1037,7 @@ public interface ClusterRoleOrBuilder extends * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -1048,6 +1049,7 @@ public interface ClusterRoleOrBuilder extends * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -1058,6 +1060,7 @@ public interface ClusterRoleOrBuilder extends * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -1068,6 +1071,7 @@ public interface ClusterRoleOrBuilder extends * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -1079,6 +1083,7 @@ public interface ClusterRoleOrBuilder extends * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -1278,6 +1283,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -1290,6 +1296,7 @@ public java.util.List getRulesList * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -1303,6 +1310,7 @@ public java.util.List getRulesList * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -1315,6 +1323,7 @@ public int getRulesCount() { * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -1327,6 +1336,7 @@ public io.kubernetes.client.proto.V1Rbac.PolicyRule getRules(int index) { * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -1975,6 +1985,7 @@ private void ensureRulesIsMutable() { * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -1991,6 +2002,7 @@ public java.util.List getRulesList * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2007,6 +2019,7 @@ public int getRulesCount() { * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2023,6 +2036,7 @@ public io.kubernetes.client.proto.V1Rbac.PolicyRule getRules(int index) { * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2046,6 +2060,7 @@ public Builder setRules( * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2066,6 +2081,7 @@ public Builder setRules( * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2088,6 +2104,7 @@ public Builder addRules(io.kubernetes.client.proto.V1Rbac.PolicyRule value) { * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2111,6 +2128,7 @@ public Builder addRules( * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2131,6 +2149,7 @@ public Builder addRules( * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2151,6 +2170,7 @@ public Builder addRules( * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2172,6 +2192,7 @@ public Builder addAllRules( * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2191,6 +2212,7 @@ public Builder clearRules() { * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2210,6 +2232,7 @@ public Builder removeRules(int index) { * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2223,6 +2246,7 @@ public io.kubernetes.client.proto.V1Rbac.PolicyRule.Builder getRulesBuilder( * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2239,6 +2263,7 @@ public io.kubernetes.client.proto.V1Rbac.PolicyRuleOrBuilder getRulesOrBuilder( * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2256,6 +2281,7 @@ public io.kubernetes.client.proto.V1Rbac.PolicyRuleOrBuilder getRulesOrBuilder( * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2269,6 +2295,7 @@ public io.kubernetes.client.proto.V1Rbac.PolicyRule.Builder addRulesBuilder() { * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2283,6 +2310,7 @@ public io.kubernetes.client.proto.V1Rbac.PolicyRule.Builder addRulesBuilder( * Rules holds all the PolicyRules for this ClusterRole * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -2576,6 +2604,7 @@ public interface ClusterRoleBindingOrBuilder extends * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -2587,6 +2616,7 @@ public interface ClusterRoleBindingOrBuilder extends * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -2597,6 +2627,7 @@ public interface ClusterRoleBindingOrBuilder extends * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -2607,6 +2638,7 @@ public interface ClusterRoleBindingOrBuilder extends * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -2618,6 +2650,7 @@ public interface ClusterRoleBindingOrBuilder extends * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -2630,6 +2663,7 @@ io.kubernetes.client.proto.V1Rbac.SubjectOrBuilder getSubjectsOrBuilder( * RoleRef can only reference a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required *
* * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -2640,6 +2674,7 @@ io.kubernetes.client.proto.V1Rbac.SubjectOrBuilder getSubjectsOrBuilder( * RoleRef can only reference a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required *
* * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -2650,6 +2685,7 @@ io.kubernetes.client.proto.V1Rbac.SubjectOrBuilder getSubjectsOrBuilder( * RoleRef can only reference a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required *
* * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -2815,6 +2851,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -2827,6 +2864,7 @@ public java.util.List getSubjectsList * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -2840,6 +2878,7 @@ public java.util.List getSubjectsList * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -2852,6 +2891,7 @@ public int getSubjectsCount() { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -2864,6 +2904,7 @@ public io.kubernetes.client.proto.V1Rbac.Subject getSubjects(int index) { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -2880,6 +2921,7 @@ public io.kubernetes.client.proto.V1Rbac.SubjectOrBuilder getSubjectsOrBuilder( * RoleRef can only reference a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required *
* * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -2892,6 +2934,7 @@ public boolean hasRoleRef() { * RoleRef can only reference a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required *
* * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -2904,6 +2947,7 @@ public io.kubernetes.client.proto.V1Rbac.RoleRef getRoleRef() { * RoleRef can only reference a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required *
* * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -3510,6 +3554,7 @@ private void ensureSubjectsIsMutable() { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3526,6 +3571,7 @@ public java.util.List getSubjectsList * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3542,6 +3588,7 @@ public int getSubjectsCount() { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3558,6 +3605,7 @@ public io.kubernetes.client.proto.V1Rbac.Subject getSubjects(int index) { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3581,6 +3629,7 @@ public Builder setSubjects( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3601,6 +3650,7 @@ public Builder setSubjects( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3623,6 +3673,7 @@ public Builder addSubjects(io.kubernetes.client.proto.V1Rbac.Subject value) { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3646,6 +3697,7 @@ public Builder addSubjects( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3666,6 +3718,7 @@ public Builder addSubjects( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3686,6 +3739,7 @@ public Builder addSubjects( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3707,6 +3761,7 @@ public Builder addAllSubjects( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3726,6 +3781,7 @@ public Builder clearSubjects() { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3745,6 +3801,7 @@ public Builder removeSubjects(int index) { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3758,6 +3815,7 @@ public io.kubernetes.client.proto.V1Rbac.Subject.Builder getSubjectsBuilder( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3774,6 +3832,7 @@ public io.kubernetes.client.proto.V1Rbac.SubjectOrBuilder getSubjectsOrBuilder( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3791,6 +3850,7 @@ public io.kubernetes.client.proto.V1Rbac.SubjectOrBuilder getSubjectsOrBuilder( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3804,6 +3864,7 @@ public io.kubernetes.client.proto.V1Rbac.Subject.Builder addSubjectsBuilder() { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3818,6 +3879,7 @@ public io.kubernetes.client.proto.V1Rbac.Subject.Builder addSubjectsBuilder( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -3849,6 +3911,7 @@ public io.kubernetes.client.proto.V1Rbac.Subject.Builder addSubjectsBuilder( * RoleRef can only reference a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required *
* * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -3861,6 +3924,7 @@ public boolean hasRoleRef() { * RoleRef can only reference a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required *
* * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -3877,6 +3941,7 @@ public io.kubernetes.client.proto.V1Rbac.RoleRef getRoleRef() { * RoleRef can only reference a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required *
* * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -3899,6 +3964,7 @@ public Builder setRoleRef(io.kubernetes.client.proto.V1Rbac.RoleRef value) { * RoleRef can only reference a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required *
* * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -3919,6 +3985,7 @@ public Builder setRoleRef( * RoleRef can only reference a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required *
* * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -3945,6 +4012,7 @@ public Builder mergeRoleRef(io.kubernetes.client.proto.V1Rbac.RoleRef value) { * RoleRef can only reference a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required *
* * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -3964,6 +4032,7 @@ public Builder clearRoleRef() { * RoleRef can only reference a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required *
* * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -3978,6 +4047,7 @@ public io.kubernetes.client.proto.V1Rbac.RoleRef.Builder getRoleRefBuilder() { * RoleRef can only reference a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required *
* * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -3995,6 +4065,7 @@ public io.kubernetes.client.proto.V1Rbac.RoleRefOrBuilder getRoleRefOrBuilder() * RoleRef can only reference a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required *
* * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -6431,6 +6502,8 @@ public interface PolicyRuleOrBuilder extends *
      * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
      * +listType=atomic
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * repeated string verbs = 1; @@ -6441,6 +6514,8 @@ public interface PolicyRuleOrBuilder extends *
      * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
      * +listType=atomic
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * repeated string verbs = 1; @@ -6450,6 +6525,8 @@ public interface PolicyRuleOrBuilder extends *
      * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
      * +listType=atomic
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * repeated string verbs = 1; @@ -6459,6 +6536,8 @@ public interface PolicyRuleOrBuilder extends *
      * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
      * +listType=atomic
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * repeated string verbs = 1; @@ -6797,6 +6876,8 @@ private PolicyRule( *
      * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
      * +listType=atomic
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * repeated string verbs = 1; @@ -6809,6 +6890,8 @@ private PolicyRule( *
      * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
      * +listType=atomic
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * repeated string verbs = 1; @@ -6820,6 +6903,8 @@ public int getVerbsCount() { *
      * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
      * +listType=atomic
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * repeated string verbs = 1; @@ -6831,6 +6916,8 @@ public java.lang.String getVerbs(int index) { *
      * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
      * +listType=atomic
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * repeated string verbs = 1; @@ -7538,6 +7625,8 @@ private void ensureVerbsIsMutable() { *
        * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
        * +listType=atomic
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * repeated string verbs = 1; @@ -7550,6 +7639,8 @@ private void ensureVerbsIsMutable() { *
        * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
        * +listType=atomic
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * repeated string verbs = 1; @@ -7561,6 +7652,8 @@ public int getVerbsCount() { *
        * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
        * +listType=atomic
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * repeated string verbs = 1; @@ -7572,6 +7665,8 @@ public java.lang.String getVerbs(int index) { *
        * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
        * +listType=atomic
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * repeated string verbs = 1; @@ -7584,6 +7679,8 @@ public java.lang.String getVerbs(int index) { *
        * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
        * +listType=atomic
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * repeated string verbs = 1; @@ -7602,6 +7699,8 @@ public Builder setVerbs( *
        * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
        * +listType=atomic
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * repeated string verbs = 1; @@ -7620,6 +7719,8 @@ public Builder addVerbs( *
        * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
        * +listType=atomic
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * repeated string verbs = 1; @@ -7636,6 +7737,8 @@ public Builder addAllVerbs( *
        * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
        * +listType=atomic
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * repeated string verbs = 1; @@ -7650,6 +7753,8 @@ public Builder clearVerbs() { *
        * Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
        * +listType=atomic
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * repeated string verbs = 1; @@ -8369,6 +8474,7 @@ public interface RoleOrBuilder extends * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -8380,6 +8486,7 @@ public interface RoleOrBuilder extends * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -8390,6 +8497,7 @@ public interface RoleOrBuilder extends * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -8400,6 +8508,7 @@ public interface RoleOrBuilder extends * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -8411,6 +8520,7 @@ public interface RoleOrBuilder extends * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -8563,6 +8673,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -8575,6 +8686,7 @@ public java.util.List getRulesList * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -8588,6 +8700,7 @@ public java.util.List getRulesList * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -8600,6 +8713,7 @@ public int getRulesCount() { * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -8612,6 +8726,7 @@ public io.kubernetes.client.proto.V1Rbac.PolicyRule getRules(int index) { * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9184,6 +9299,7 @@ private void ensureRulesIsMutable() { * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9200,6 +9316,7 @@ public java.util.List getRulesList * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9216,6 +9333,7 @@ public int getRulesCount() { * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9232,6 +9350,7 @@ public io.kubernetes.client.proto.V1Rbac.PolicyRule getRules(int index) { * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9255,6 +9374,7 @@ public Builder setRules( * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9275,6 +9395,7 @@ public Builder setRules( * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9297,6 +9418,7 @@ public Builder addRules(io.kubernetes.client.proto.V1Rbac.PolicyRule value) { * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9320,6 +9442,7 @@ public Builder addRules( * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9340,6 +9463,7 @@ public Builder addRules( * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9360,6 +9484,7 @@ public Builder addRules( * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9381,6 +9506,7 @@ public Builder addAllRules( * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9400,6 +9526,7 @@ public Builder clearRules() { * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9419,6 +9546,7 @@ public Builder removeRules(int index) { * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9432,6 +9560,7 @@ public io.kubernetes.client.proto.V1Rbac.PolicyRule.Builder getRulesBuilder( * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9448,6 +9577,7 @@ public io.kubernetes.client.proto.V1Rbac.PolicyRuleOrBuilder getRulesOrBuilder( * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9465,6 +9595,7 @@ public io.kubernetes.client.proto.V1Rbac.PolicyRuleOrBuilder getRulesOrBuilder( * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9478,6 +9609,7 @@ public io.kubernetes.client.proto.V1Rbac.PolicyRule.Builder addRulesBuilder() { * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9492,6 +9624,7 @@ public io.kubernetes.client.proto.V1Rbac.PolicyRule.Builder addRulesBuilder( * Rules holds all the PolicyRules for this Role * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.PolicyRule rules = 2; @@ -9604,6 +9737,7 @@ public interface RoleBindingOrBuilder extends * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -9615,6 +9749,7 @@ public interface RoleBindingOrBuilder extends * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -9625,6 +9760,7 @@ public interface RoleBindingOrBuilder extends * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -9635,6 +9771,7 @@ public interface RoleBindingOrBuilder extends * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -9646,6 +9783,7 @@ public interface RoleBindingOrBuilder extends * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -9658,6 +9796,8 @@ io.kubernetes.client.proto.V1Rbac.SubjectOrBuilder getSubjectsOrBuilder( * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required + * +k8s:alpha(since:"1.37")=+k8s:immutable * * * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -9668,6 +9808,8 @@ io.kubernetes.client.proto.V1Rbac.SubjectOrBuilder getSubjectsOrBuilder( * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required + * +k8s:alpha(since:"1.37")=+k8s:immutable * * * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -9678,6 +9820,8 @@ io.kubernetes.client.proto.V1Rbac.SubjectOrBuilder getSubjectsOrBuilder( * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required + * +k8s:alpha(since:"1.37")=+k8s:immutable * * * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -9844,6 +9988,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -9856,6 +10001,7 @@ public java.util.List getSubjectsList * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -9869,6 +10015,7 @@ public java.util.List getSubjectsList * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -9881,6 +10028,7 @@ public int getSubjectsCount() { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -9893,6 +10041,7 @@ public io.kubernetes.client.proto.V1Rbac.Subject getSubjects(int index) { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -9909,6 +10058,8 @@ public io.kubernetes.client.proto.V1Rbac.SubjectOrBuilder getSubjectsOrBuilder( * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required + * +k8s:alpha(since:"1.37")=+k8s:immutable * * * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -9921,6 +10072,8 @@ public boolean hasRoleRef() { * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required + * +k8s:alpha(since:"1.37")=+k8s:immutable * * * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -9933,6 +10086,8 @@ public io.kubernetes.client.proto.V1Rbac.RoleRef getRoleRef() { * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required + * +k8s:alpha(since:"1.37")=+k8s:immutable * * * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -10540,6 +10695,7 @@ private void ensureSubjectsIsMutable() { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10556,6 +10712,7 @@ public java.util.List getSubjectsList * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10572,6 +10729,7 @@ public int getSubjectsCount() { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10588,6 +10746,7 @@ public io.kubernetes.client.proto.V1Rbac.Subject getSubjects(int index) { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10611,6 +10770,7 @@ public Builder setSubjects( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10631,6 +10791,7 @@ public Builder setSubjects( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10653,6 +10814,7 @@ public Builder addSubjects(io.kubernetes.client.proto.V1Rbac.Subject value) { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10676,6 +10838,7 @@ public Builder addSubjects( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10696,6 +10859,7 @@ public Builder addSubjects( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10716,6 +10880,7 @@ public Builder addSubjects( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10737,6 +10902,7 @@ public Builder addAllSubjects( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10756,6 +10922,7 @@ public Builder clearSubjects() { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10775,6 +10942,7 @@ public Builder removeSubjects(int index) { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10788,6 +10956,7 @@ public io.kubernetes.client.proto.V1Rbac.Subject.Builder getSubjectsBuilder( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10804,6 +10973,7 @@ public io.kubernetes.client.proto.V1Rbac.SubjectOrBuilder getSubjectsOrBuilder( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10821,6 +10991,7 @@ public io.kubernetes.client.proto.V1Rbac.SubjectOrBuilder getSubjectsOrBuilder( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10834,6 +11005,7 @@ public io.kubernetes.client.proto.V1Rbac.Subject.Builder addSubjectsBuilder() { * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10848,6 +11020,7 @@ public io.kubernetes.client.proto.V1Rbac.Subject.Builder addSubjectsBuilder( * Subjects holds references to the objects the role applies to. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.rbac.v1.Subject subjects = 2; @@ -10879,6 +11052,8 @@ public io.kubernetes.client.proto.V1Rbac.Subject.Builder addSubjectsBuilder( * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required + * +k8s:alpha(since:"1.37")=+k8s:immutable * * * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -10891,6 +11066,8 @@ public boolean hasRoleRef() { * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required + * +k8s:alpha(since:"1.37")=+k8s:immutable * * * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -10907,6 +11084,8 @@ public io.kubernetes.client.proto.V1Rbac.RoleRef getRoleRef() { * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required + * +k8s:alpha(since:"1.37")=+k8s:immutable * * * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -10929,6 +11108,8 @@ public Builder setRoleRef(io.kubernetes.client.proto.V1Rbac.RoleRef value) { * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required + * +k8s:alpha(since:"1.37")=+k8s:immutable * * * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -10949,6 +11130,8 @@ public Builder setRoleRef( * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required + * +k8s:alpha(since:"1.37")=+k8s:immutable * * * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -10975,6 +11158,8 @@ public Builder mergeRoleRef(io.kubernetes.client.proto.V1Rbac.RoleRef value) { * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required + * +k8s:alpha(since:"1.37")=+k8s:immutable * * * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -10994,6 +11179,8 @@ public Builder clearRoleRef() { * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required + * +k8s:alpha(since:"1.37")=+k8s:immutable * * * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -11008,6 +11195,8 @@ public io.kubernetes.client.proto.V1Rbac.RoleRef.Builder getRoleRefBuilder() { * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required + * +k8s:alpha(since:"1.37")=+k8s:immutable * * * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -11025,6 +11214,8 @@ public io.kubernetes.client.proto.V1Rbac.RoleRefOrBuilder getRoleRefOrBuilder() * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. * If the RoleRef cannot be resolved, the Authorizer must return an error. * This field is immutable. + * +required + * +k8s:alpha(since:"1.37")=+k8s:immutable * * * optional .k8s.io.api.rbac.v1.RoleRef roleRef = 3; @@ -13460,6 +13651,7 @@ public interface RoleRefOrBuilder extends /** *
      * APIGroup is the group for the resource being referenced
+     * +optional
      * 
* * optional string apiGroup = 1; @@ -13468,6 +13660,7 @@ public interface RoleRefOrBuilder extends /** *
      * APIGroup is the group for the resource being referenced
+     * +optional
      * 
* * optional string apiGroup = 1; @@ -13476,6 +13669,7 @@ public interface RoleRefOrBuilder extends /** *
      * APIGroup is the group for the resource being referenced
+     * +optional
      * 
* * optional string apiGroup = 1; @@ -13486,6 +13680,7 @@ public interface RoleRefOrBuilder extends /** *
      * Kind is the type of resource being referenced
+     * +required
      * 
* * optional string kind = 2; @@ -13494,6 +13689,7 @@ public interface RoleRefOrBuilder extends /** *
      * Kind is the type of resource being referenced
+     * +required
      * 
* * optional string kind = 2; @@ -13502,6 +13698,7 @@ public interface RoleRefOrBuilder extends /** *
      * Kind is the type of resource being referenced
+     * +required
      * 
* * optional string kind = 2; @@ -13513,7 +13710,7 @@ public interface RoleRefOrBuilder extends *
      * Name is the name of resource being referenced
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -13523,7 +13720,7 @@ public interface RoleRefOrBuilder extends *
      * Name is the name of resource being referenced
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -13533,7 +13730,7 @@ public interface RoleRefOrBuilder extends *
      * Name is the name of resource being referenced
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -13644,6 +13841,7 @@ private RoleRef( /** *
      * APIGroup is the group for the resource being referenced
+     * +optional
      * 
* * optional string apiGroup = 1; @@ -13654,6 +13852,7 @@ public boolean hasApiGroup() { /** *
      * APIGroup is the group for the resource being referenced
+     * +optional
      * 
* * optional string apiGroup = 1; @@ -13675,6 +13874,7 @@ public java.lang.String getApiGroup() { /** *
      * APIGroup is the group for the resource being referenced
+     * +optional
      * 
* * optional string apiGroup = 1; @@ -13698,6 +13898,7 @@ public java.lang.String getApiGroup() { /** *
      * Kind is the type of resource being referenced
+     * +required
      * 
* * optional string kind = 2; @@ -13708,6 +13909,7 @@ public boolean hasKind() { /** *
      * Kind is the type of resource being referenced
+     * +required
      * 
* * optional string kind = 2; @@ -13729,6 +13931,7 @@ public java.lang.String getKind() { /** *
      * Kind is the type of resource being referenced
+     * +required
      * 
* * optional string kind = 2; @@ -13753,7 +13956,7 @@ public java.lang.String getKind() { *
      * Name is the name of resource being referenced
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -13765,7 +13968,7 @@ public boolean hasName() { *
      * Name is the name of resource being referenced
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -13788,7 +13991,7 @@ public java.lang.String getName() { *
      * Name is the name of resource being referenced
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -14184,6 +14387,7 @@ public Builder mergeFrom( /** *
        * APIGroup is the group for the resource being referenced
+       * +optional
        * 
* * optional string apiGroup = 1; @@ -14194,6 +14398,7 @@ public boolean hasApiGroup() { /** *
        * APIGroup is the group for the resource being referenced
+       * +optional
        * 
* * optional string apiGroup = 1; @@ -14215,6 +14420,7 @@ public java.lang.String getApiGroup() { /** *
        * APIGroup is the group for the resource being referenced
+       * +optional
        * 
* * optional string apiGroup = 1; @@ -14235,6 +14441,7 @@ public java.lang.String getApiGroup() { /** *
        * APIGroup is the group for the resource being referenced
+       * +optional
        * 
* * optional string apiGroup = 1; @@ -14252,6 +14459,7 @@ public Builder setApiGroup( /** *
        * APIGroup is the group for the resource being referenced
+       * +optional
        * 
* * optional string apiGroup = 1; @@ -14265,6 +14473,7 @@ public Builder clearApiGroup() { /** *
        * APIGroup is the group for the resource being referenced
+       * +optional
        * 
* * optional string apiGroup = 1; @@ -14284,6 +14493,7 @@ public Builder setApiGroupBytes( /** *
        * Kind is the type of resource being referenced
+       * +required
        * 
* * optional string kind = 2; @@ -14294,6 +14504,7 @@ public boolean hasKind() { /** *
        * Kind is the type of resource being referenced
+       * +required
        * 
* * optional string kind = 2; @@ -14315,6 +14526,7 @@ public java.lang.String getKind() { /** *
        * Kind is the type of resource being referenced
+       * +required
        * 
* * optional string kind = 2; @@ -14335,6 +14547,7 @@ public java.lang.String getKind() { /** *
        * Kind is the type of resource being referenced
+       * +required
        * 
* * optional string kind = 2; @@ -14352,6 +14565,7 @@ public Builder setKind( /** *
        * Kind is the type of resource being referenced
+       * +required
        * 
* * optional string kind = 2; @@ -14365,6 +14579,7 @@ public Builder clearKind() { /** *
        * Kind is the type of resource being referenced
+       * +required
        * 
* * optional string kind = 2; @@ -14385,7 +14600,7 @@ public Builder setKindBytes( *
        * Name is the name of resource being referenced
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -14397,7 +14612,7 @@ public boolean hasName() { *
        * Name is the name of resource being referenced
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -14420,7 +14635,7 @@ public java.lang.String getName() { *
        * Name is the name of resource being referenced
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -14442,7 +14657,7 @@ public java.lang.String getName() { *
        * Name is the name of resource being referenced
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -14461,7 +14676,7 @@ public Builder setName( *
        * Name is the name of resource being referenced
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -14476,7 +14691,7 @@ public Builder clearName() { *
        * Name is the name of resource being referenced
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -14552,6 +14767,7 @@ public interface SubjectOrBuilder extends *
      * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
      * If the Authorizer does not recognized the kind value, the Authorizer should report an error.
+     * +required
      * 
* * optional string kind = 1; @@ -14561,6 +14777,7 @@ public interface SubjectOrBuilder extends *
      * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
      * If the Authorizer does not recognized the kind value, the Authorizer should report an error.
+     * +required
      * 
* * optional string kind = 1; @@ -14570,6 +14787,7 @@ public interface SubjectOrBuilder extends *
      * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
      * If the Authorizer does not recognized the kind value, the Authorizer should report an error.
+     * +required
      * 
* * optional string kind = 1; @@ -14616,7 +14834,7 @@ public interface SubjectOrBuilder extends *
      * Name of the object being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -14626,7 +14844,7 @@ public interface SubjectOrBuilder extends *
      * Name of the object being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -14636,7 +14854,7 @@ public interface SubjectOrBuilder extends *
      * Name of the object being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -14788,6 +15006,7 @@ private Subject( *
      * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
      * If the Authorizer does not recognized the kind value, the Authorizer should report an error.
+     * +required
      * 
* * optional string kind = 1; @@ -14799,6 +15018,7 @@ public boolean hasKind() { *
      * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
      * If the Authorizer does not recognized the kind value, the Authorizer should report an error.
+     * +required
      * 
* * optional string kind = 1; @@ -14821,6 +15041,7 @@ public java.lang.String getKind() { *
      * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
      * If the Authorizer does not recognized the kind value, the Authorizer should report an error.
+     * +required
      * 
* * optional string kind = 1; @@ -14908,7 +15129,7 @@ public java.lang.String getApiGroup() { *
      * Name of the object being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -14920,7 +15141,7 @@ public boolean hasName() { *
      * Name of the object being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -14943,7 +15164,7 @@ public java.lang.String getName() { *
      * Name of the object being referenced.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string name = 3; @@ -15427,6 +15648,7 @@ public Builder mergeFrom( *
        * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
        * If the Authorizer does not recognized the kind value, the Authorizer should report an error.
+       * +required
        * 
* * optional string kind = 1; @@ -15438,6 +15660,7 @@ public boolean hasKind() { *
        * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
        * If the Authorizer does not recognized the kind value, the Authorizer should report an error.
+       * +required
        * 
* * optional string kind = 1; @@ -15460,6 +15683,7 @@ public java.lang.String getKind() { *
        * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
        * If the Authorizer does not recognized the kind value, the Authorizer should report an error.
+       * +required
        * 
* * optional string kind = 1; @@ -15481,6 +15705,7 @@ public java.lang.String getKind() { *
        * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
        * If the Authorizer does not recognized the kind value, the Authorizer should report an error.
+       * +required
        * 
* * optional string kind = 1; @@ -15499,6 +15724,7 @@ public Builder setKind( *
        * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
        * If the Authorizer does not recognized the kind value, the Authorizer should report an error.
+       * +required
        * 
* * optional string kind = 1; @@ -15513,6 +15739,7 @@ public Builder clearKind() { *
        * Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount".
        * If the Authorizer does not recognized the kind value, the Authorizer should report an error.
+       * +required
        * 
* * optional string kind = 1; @@ -15651,7 +15878,7 @@ public Builder setApiGroupBytes( *
        * Name of the object being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -15663,7 +15890,7 @@ public boolean hasName() { *
        * Name of the object being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -15686,7 +15913,7 @@ public java.lang.String getName() { *
        * Name of the object being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -15708,7 +15935,7 @@ public java.lang.String getName() { *
        * Name of the object being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -15727,7 +15954,7 @@ public Builder setName( *
        * Name of the object being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; @@ -15742,7 +15969,7 @@ public Builder clearName() { *
        * Name of the object being referenced.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string name = 3; diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Resource.java b/proto/src/main/java/io/kubernetes/client/proto/V1Resource.java new file mode 100644 index 0000000000..63ebaf686f --- /dev/null +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Resource.java @@ -0,0 +1,74885 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: k8s.io/api/resource/v1/generated.proto + +package io.kubernetes.client.proto; + +public final class V1Resource { + private V1Resource() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface AllocatedDeviceStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.AllocatedDeviceStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Driver specifies the name of the DRA driver whose kubelet
+     * plugin should be invoked to process the allocation once the claim is
+     * needed on a node.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * 
+ * + * optional string driver = 1; + */ + boolean hasDriver(); + /** + *
+     * Driver specifies the name of the DRA driver whose kubelet
+     * plugin should be invoked to process the allocation once the claim is
+     * needed on a node.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * 
+ * + * optional string driver = 1; + */ + java.lang.String getDriver(); + /** + *
+     * Driver specifies the name of the DRA driver whose kubelet
+     * plugin should be invoked to process the allocation once the claim is
+     * needed on a node.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * 
+ * + * optional string driver = 1; + */ + com.google.protobuf.ByteString + getDriverBytes(); + + /** + *
+     * This name together with the driver name and the device name field
+     * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+     * Must not be longer than 253 characters and may contain one or more
+     * DNS sub-domains separated by slashes.
+     * +required
+     * 
+ * + * optional string pool = 2; + */ + boolean hasPool(); + /** + *
+     * This name together with the driver name and the device name field
+     * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+     * Must not be longer than 253 characters and may contain one or more
+     * DNS sub-domains separated by slashes.
+     * +required
+     * 
+ * + * optional string pool = 2; + */ + java.lang.String getPool(); + /** + *
+     * This name together with the driver name and the device name field
+     * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+     * Must not be longer than 253 characters and may contain one or more
+     * DNS sub-domains separated by slashes.
+     * +required
+     * 
+ * + * optional string pool = 2; + */ + com.google.protobuf.ByteString + getPoolBytes(); + + /** + *
+     * Device references one device instance via its name in the driver's
+     * resource pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string device = 3; + */ + boolean hasDevice(); + /** + *
+     * Device references one device instance via its name in the driver's
+     * resource pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string device = 3; + */ + java.lang.String getDevice(); + /** + *
+     * Device references one device instance via its name in the driver's
+     * resource pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string device = 3; + */ + com.google.protobuf.ByteString + getDeviceBytes(); + + /** + *
+     * ShareID uniquely identifies an individual allocation share of the device.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+     * 
+ * + * optional string shareID = 7; + */ + boolean hasShareID(); + /** + *
+     * ShareID uniquely identifies an individual allocation share of the device.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+     * 
+ * + * optional string shareID = 7; + */ + java.lang.String getShareID(); + /** + *
+     * ShareID uniquely identifies an individual allocation share of the device.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+     * 
+ * + * optional string shareID = 7; + */ + com.google.protobuf.ByteString + getShareIDBytes(); + + /** + *
+     * Conditions contains the latest observation of the device's state.
+     * If the device has been configured according to the class and claim
+     * config references, the `Ready` condition should be True.
+     * Must not contain more than 8 entries.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + java.util.List + getConditionsList(); + /** + *
+     * Conditions contains the latest observation of the device's state.
+     * If the device has been configured according to the class and claim
+     * config references, the `Ready` condition should be True.
+     * Must not contain more than 8 entries.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + io.kubernetes.client.proto.Meta.Condition getConditions(int index); + /** + *
+     * Conditions contains the latest observation of the device's state.
+     * If the device has been configured according to the class and claim
+     * config references, the `Ready` condition should be True.
+     * Must not contain more than 8 entries.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + int getConditionsCount(); + /** + *
+     * Conditions contains the latest observation of the device's state.
+     * If the device has been configured according to the class and claim
+     * config references, the `Ready` condition should be True.
+     * Must not contain more than 8 entries.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+     * Conditions contains the latest observation of the device's state.
+     * If the device has been configured according to the class and claim
+     * config references, the `Ready` condition should be True.
+     * Must not contain more than 8 entries.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder( + int index); + + /** + *
+     * Data contains arbitrary driver-specific data.
+     * The length of the raw data must be smaller or equal to 10 Ki.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + */ + boolean hasData(); + /** + *
+     * Data contains arbitrary driver-specific data.
+     * The length of the raw data must be smaller or equal to 10 Ki.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + */ + io.kubernetes.client.proto.Runtime.RawExtension getData(); + /** + *
+     * Data contains arbitrary driver-specific data.
+     * The length of the raw data must be smaller or equal to 10 Ki.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + */ + io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getDataOrBuilder(); + + /** + *
+     * NetworkData contains network-related information specific to the device.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.NetworkDeviceData networkData = 6; + */ + boolean hasNetworkData(); + /** + *
+     * NetworkData contains network-related information specific to the device.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.NetworkDeviceData networkData = 6; + */ + io.kubernetes.client.proto.V1Resource.NetworkDeviceData getNetworkData(); + /** + *
+     * NetworkData contains network-related information specific to the device.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.NetworkDeviceData networkData = 6; + */ + io.kubernetes.client.proto.V1Resource.NetworkDeviceDataOrBuilder getNetworkDataOrBuilder(); + } + /** + *
+   * AllocatedDeviceStatus contains the status of an allocated device, if the
+   * driver chooses to report it. This may include driver-specific information.
+   * The combination of Driver, Pool, Device, and ShareID must match the corresponding key
+   * in Status.Allocation.Devices.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.AllocatedDeviceStatus} + */ + public static final class AllocatedDeviceStatus extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.AllocatedDeviceStatus) + AllocatedDeviceStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use AllocatedDeviceStatus.newBuilder() to construct. + private AllocatedDeviceStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AllocatedDeviceStatus() { + driver_ = ""; + pool_ = ""; + device_ = ""; + shareID_ = ""; + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AllocatedDeviceStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + driver_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + pool_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + device_ = bs; + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + conditions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + conditions_.add( + input.readMessage(io.kubernetes.client.proto.Meta.Condition.PARSER, extensionRegistry)); + break; + } + case 42: { + io.kubernetes.client.proto.Runtime.RawExtension.Builder subBuilder = null; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subBuilder = data_.toBuilder(); + } + data_ = input.readMessage(io.kubernetes.client.proto.Runtime.RawExtension.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(data_); + data_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000010; + break; + } + case 50: { + io.kubernetes.client.proto.V1Resource.NetworkDeviceData.Builder subBuilder = null; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + subBuilder = networkData_.toBuilder(); + } + networkData_ = input.readMessage(io.kubernetes.client.proto.V1Resource.NetworkDeviceData.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(networkData_); + networkData_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000020; + break; + } + case 58: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + shareID_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_AllocatedDeviceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_AllocatedDeviceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.class, io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.Builder.class); + } + + private int bitField0_; + public static final int DRIVER_FIELD_NUMBER = 1; + private volatile java.lang.Object driver_; + /** + *
+     * Driver specifies the name of the DRA driver whose kubelet
+     * plugin should be invoked to process the allocation once the claim is
+     * needed on a node.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * 
+ * + * optional string driver = 1; + */ + public boolean hasDriver() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Driver specifies the name of the DRA driver whose kubelet
+     * plugin should be invoked to process the allocation once the claim is
+     * needed on a node.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * 
+ * + * optional string driver = 1; + */ + public java.lang.String getDriver() { + java.lang.Object ref = driver_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + driver_ = s; + } + return s; + } + } + /** + *
+     * Driver specifies the name of the DRA driver whose kubelet
+     * plugin should be invoked to process the allocation once the claim is
+     * needed on a node.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * 
+ * + * optional string driver = 1; + */ + public com.google.protobuf.ByteString + getDriverBytes() { + java.lang.Object ref = driver_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + driver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POOL_FIELD_NUMBER = 2; + private volatile java.lang.Object pool_; + /** + *
+     * This name together with the driver name and the device name field
+     * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+     * Must not be longer than 253 characters and may contain one or more
+     * DNS sub-domains separated by slashes.
+     * +required
+     * 
+ * + * optional string pool = 2; + */ + public boolean hasPool() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * This name together with the driver name and the device name field
+     * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+     * Must not be longer than 253 characters and may contain one or more
+     * DNS sub-domains separated by slashes.
+     * +required
+     * 
+ * + * optional string pool = 2; + */ + public java.lang.String getPool() { + java.lang.Object ref = pool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + pool_ = s; + } + return s; + } + } + /** + *
+     * This name together with the driver name and the device name field
+     * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+     * Must not be longer than 253 characters and may contain one or more
+     * DNS sub-domains separated by slashes.
+     * +required
+     * 
+ * + * optional string pool = 2; + */ + public com.google.protobuf.ByteString + getPoolBytes() { + java.lang.Object ref = pool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVICE_FIELD_NUMBER = 3; + private volatile java.lang.Object device_; + /** + *
+     * Device references one device instance via its name in the driver's
+     * resource pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string device = 3; + */ + public boolean hasDevice() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * Device references one device instance via its name in the driver's
+     * resource pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string device = 3; + */ + public java.lang.String getDevice() { + java.lang.Object ref = device_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + device_ = s; + } + return s; + } + } + /** + *
+     * Device references one device instance via its name in the driver's
+     * resource pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string device = 3; + */ + public com.google.protobuf.ByteString + getDeviceBytes() { + java.lang.Object ref = device_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + device_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHAREID_FIELD_NUMBER = 7; + private volatile java.lang.Object shareID_; + /** + *
+     * ShareID uniquely identifies an individual allocation share of the device.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+     * 
+ * + * optional string shareID = 7; + */ + public boolean hasShareID() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * ShareID uniquely identifies an individual allocation share of the device.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+     * 
+ * + * optional string shareID = 7; + */ + public java.lang.String getShareID() { + java.lang.Object ref = shareID_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + shareID_ = s; + } + return s; + } + } + /** + *
+     * ShareID uniquely identifies an individual allocation share of the device.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+     * 
+ * + * optional string shareID = 7; + */ + public com.google.protobuf.ByteString + getShareIDBytes() { + java.lang.Object ref = shareID_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shareID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONDITIONS_FIELD_NUMBER = 4; + private java.util.List conditions_; + /** + *
+     * Conditions contains the latest observation of the device's state.
+     * If the device has been configured according to the class and claim
+     * config references, the `Ready` condition should be True.
+     * Must not contain more than 8 entries.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+     * Conditions contains the latest observation of the device's state.
+     * If the device has been configured according to the class and claim
+     * config references, the `Ready` condition should be True.
+     * Must not contain more than 8 entries.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+     * Conditions contains the latest observation of the device's state.
+     * If the device has been configured according to the class and claim
+     * config references, the `Ready` condition should be True.
+     * Must not contain more than 8 entries.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+     * Conditions contains the latest observation of the device's state.
+     * If the device has been configured according to the class and claim
+     * config references, the `Ready` condition should be True.
+     * Must not contain more than 8 entries.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { + return conditions_.get(index); + } + /** + *
+     * Conditions contains the latest observation of the device's state.
+     * If the device has been configured according to the class and claim
+     * config references, the `Ready` condition should be True.
+     * Must not contain more than 8 entries.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.get(index); + } + + public static final int DATA_FIELD_NUMBER = 5; + private io.kubernetes.client.proto.Runtime.RawExtension data_; + /** + *
+     * Data contains arbitrary driver-specific data.
+     * The length of the raw data must be smaller or equal to 10 Ki.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + */ + public boolean hasData() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+     * Data contains arbitrary driver-specific data.
+     * The length of the raw data must be smaller or equal to 10 Ki.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + */ + public io.kubernetes.client.proto.Runtime.RawExtension getData() { + return data_ == null ? io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance() : data_; + } + /** + *
+     * Data contains arbitrary driver-specific data.
+     * The length of the raw data must be smaller or equal to 10 Ki.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + */ + public io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getDataOrBuilder() { + return data_ == null ? io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance() : data_; + } + + public static final int NETWORKDATA_FIELD_NUMBER = 6; + private io.kubernetes.client.proto.V1Resource.NetworkDeviceData networkData_; + /** + *
+     * NetworkData contains network-related information specific to the device.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.NetworkDeviceData networkData = 6; + */ + public boolean hasNetworkData() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+     * NetworkData contains network-related information specific to the device.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.NetworkDeviceData networkData = 6; + */ + public io.kubernetes.client.proto.V1Resource.NetworkDeviceData getNetworkData() { + return networkData_ == null ? io.kubernetes.client.proto.V1Resource.NetworkDeviceData.getDefaultInstance() : networkData_; + } + /** + *
+     * NetworkData contains network-related information specific to the device.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.NetworkDeviceData networkData = 6; + */ + public io.kubernetes.client.proto.V1Resource.NetworkDeviceDataOrBuilder getNetworkDataOrBuilder() { + return networkData_ == null ? io.kubernetes.client.proto.V1Resource.NetworkDeviceData.getDefaultInstance() : networkData_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pool_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, device_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(4, conditions_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(5, getData()); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeMessage(6, getNetworkData()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, shareID_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, driver_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pool_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, device_); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, conditions_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getData()); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getNetworkData()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, shareID_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus other = (io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus) obj; + + boolean result = true; + result = result && (hasDriver() == other.hasDriver()); + if (hasDriver()) { + result = result && getDriver() + .equals(other.getDriver()); + } + result = result && (hasPool() == other.hasPool()); + if (hasPool()) { + result = result && getPool() + .equals(other.getPool()); + } + result = result && (hasDevice() == other.hasDevice()); + if (hasDevice()) { + result = result && getDevice() + .equals(other.getDevice()); + } + result = result && (hasShareID() == other.hasShareID()); + if (hasShareID()) { + result = result && getShareID() + .equals(other.getShareID()); + } + result = result && getConditionsList() + .equals(other.getConditionsList()); + result = result && (hasData() == other.hasData()); + if (hasData()) { + result = result && getData() + .equals(other.getData()); + } + result = result && (hasNetworkData() == other.hasNetworkData()); + if (hasNetworkData()) { + result = result && getNetworkData() + .equals(other.getNetworkData()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDriver()) { + hash = (37 * hash) + DRIVER_FIELD_NUMBER; + hash = (53 * hash) + getDriver().hashCode(); + } + if (hasPool()) { + hash = (37 * hash) + POOL_FIELD_NUMBER; + hash = (53 * hash) + getPool().hashCode(); + } + if (hasDevice()) { + hash = (37 * hash) + DEVICE_FIELD_NUMBER; + hash = (53 * hash) + getDevice().hashCode(); + } + if (hasShareID()) { + hash = (37 * hash) + SHAREID_FIELD_NUMBER; + hash = (53 * hash) + getShareID().hashCode(); + } + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + if (hasNetworkData()) { + hash = (37 * hash) + NETWORKDATA_FIELD_NUMBER; + hash = (53 * hash) + getNetworkData().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * AllocatedDeviceStatus contains the status of an allocated device, if the
+     * driver chooses to report it. This may include driver-specific information.
+     * The combination of Driver, Pool, Device, and ShareID must match the corresponding key
+     * in Status.Allocation.Devices.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.AllocatedDeviceStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.AllocatedDeviceStatus) + io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_AllocatedDeviceStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_AllocatedDeviceStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.class, io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConditionsFieldBuilder(); + getDataFieldBuilder(); + getNetworkDataFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + driver_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + pool_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + device_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + shareID_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + conditionsBuilder_.clear(); + } + if (dataBuilder_ == null) { + data_ = null; + } else { + dataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (networkDataBuilder_ == null) { + networkData_ = null; + } else { + networkDataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_AllocatedDeviceStatus_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus build() { + io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus buildPartial() { + io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus result = new io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.driver_ = driver_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.pool_ = pool_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.device_ = device_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.shareID_ = shareID_; + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000010; + } + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + if (networkDataBuilder_ == null) { + result.networkData_ = networkData_; + } else { + result.networkData_ = networkDataBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus other) { + if (other == io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.getDefaultInstance()) return this; + if (other.hasDriver()) { + bitField0_ |= 0x00000001; + driver_ = other.driver_; + onChanged(); + } + if (other.hasPool()) { + bitField0_ |= 0x00000002; + pool_ = other.pool_; + onChanged(); + } + if (other.hasDevice()) { + bitField0_ |= 0x00000004; + device_ = other.device_; + onChanged(); + } + if (other.hasShareID()) { + bitField0_ |= 0x00000008; + shareID_ = other.shareID_; + onChanged(); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000010); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.hasData()) { + mergeData(other.getData()); + } + if (other.hasNetworkData()) { + mergeNetworkData(other.getNetworkData()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object driver_ = ""; + /** + *
+       * Driver specifies the name of the DRA driver whose kubelet
+       * plugin should be invoked to process the allocation once the claim is
+       * needed on a node.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * 
+ * + * optional string driver = 1; + */ + public boolean hasDriver() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Driver specifies the name of the DRA driver whose kubelet
+       * plugin should be invoked to process the allocation once the claim is
+       * needed on a node.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * 
+ * + * optional string driver = 1; + */ + public java.lang.String getDriver() { + java.lang.Object ref = driver_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + driver_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Driver specifies the name of the DRA driver whose kubelet
+       * plugin should be invoked to process the allocation once the claim is
+       * needed on a node.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * 
+ * + * optional string driver = 1; + */ + public com.google.protobuf.ByteString + getDriverBytes() { + java.lang.Object ref = driver_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + driver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Driver specifies the name of the DRA driver whose kubelet
+       * plugin should be invoked to process the allocation once the claim is
+       * needed on a node.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * 
+ * + * optional string driver = 1; + */ + public Builder setDriver( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + driver_ = value; + onChanged(); + return this; + } + /** + *
+       * Driver specifies the name of the DRA driver whose kubelet
+       * plugin should be invoked to process the allocation once the claim is
+       * needed on a node.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * 
+ * + * optional string driver = 1; + */ + public Builder clearDriver() { + bitField0_ = (bitField0_ & ~0x00000001); + driver_ = getDefaultInstance().getDriver(); + onChanged(); + return this; + } + /** + *
+       * Driver specifies the name of the DRA driver whose kubelet
+       * plugin should be invoked to process the allocation once the claim is
+       * needed on a node.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * 
+ * + * optional string driver = 1; + */ + public Builder setDriverBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + driver_ = value; + onChanged(); + return this; + } + + private java.lang.Object pool_ = ""; + /** + *
+       * This name together with the driver name and the device name field
+       * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+       * Must not be longer than 253 characters and may contain one or more
+       * DNS sub-domains separated by slashes.
+       * +required
+       * 
+ * + * optional string pool = 2; + */ + public boolean hasPool() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * This name together with the driver name and the device name field
+       * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+       * Must not be longer than 253 characters and may contain one or more
+       * DNS sub-domains separated by slashes.
+       * +required
+       * 
+ * + * optional string pool = 2; + */ + public java.lang.String getPool() { + java.lang.Object ref = pool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + pool_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * This name together with the driver name and the device name field
+       * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+       * Must not be longer than 253 characters and may contain one or more
+       * DNS sub-domains separated by slashes.
+       * +required
+       * 
+ * + * optional string pool = 2; + */ + public com.google.protobuf.ByteString + getPoolBytes() { + java.lang.Object ref = pool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * This name together with the driver name and the device name field
+       * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+       * Must not be longer than 253 characters and may contain one or more
+       * DNS sub-domains separated by slashes.
+       * +required
+       * 
+ * + * optional string pool = 2; + */ + public Builder setPool( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + pool_ = value; + onChanged(); + return this; + } + /** + *
+       * This name together with the driver name and the device name field
+       * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+       * Must not be longer than 253 characters and may contain one or more
+       * DNS sub-domains separated by slashes.
+       * +required
+       * 
+ * + * optional string pool = 2; + */ + public Builder clearPool() { + bitField0_ = (bitField0_ & ~0x00000002); + pool_ = getDefaultInstance().getPool(); + onChanged(); + return this; + } + /** + *
+       * This name together with the driver name and the device name field
+       * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+       * Must not be longer than 253 characters and may contain one or more
+       * DNS sub-domains separated by slashes.
+       * +required
+       * 
+ * + * optional string pool = 2; + */ + public Builder setPoolBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + pool_ = value; + onChanged(); + return this; + } + + private java.lang.Object device_ = ""; + /** + *
+       * Device references one device instance via its name in the driver's
+       * resource pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string device = 3; + */ + public boolean hasDevice() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * Device references one device instance via its name in the driver's
+       * resource pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string device = 3; + */ + public java.lang.String getDevice() { + java.lang.Object ref = device_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + device_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Device references one device instance via its name in the driver's
+       * resource pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string device = 3; + */ + public com.google.protobuf.ByteString + getDeviceBytes() { + java.lang.Object ref = device_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + device_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Device references one device instance via its name in the driver's
+       * resource pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string device = 3; + */ + public Builder setDevice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + device_ = value; + onChanged(); + return this; + } + /** + *
+       * Device references one device instance via its name in the driver's
+       * resource pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string device = 3; + */ + public Builder clearDevice() { + bitField0_ = (bitField0_ & ~0x00000004); + device_ = getDefaultInstance().getDevice(); + onChanged(); + return this; + } + /** + *
+       * Device references one device instance via its name in the driver's
+       * resource pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string device = 3; + */ + public Builder setDeviceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + device_ = value; + onChanged(); + return this; + } + + private java.lang.Object shareID_ = ""; + /** + *
+       * ShareID uniquely identifies an individual allocation share of the device.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+       * 
+ * + * optional string shareID = 7; + */ + public boolean hasShareID() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * ShareID uniquely identifies an individual allocation share of the device.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+       * 
+ * + * optional string shareID = 7; + */ + public java.lang.String getShareID() { + java.lang.Object ref = shareID_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + shareID_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * ShareID uniquely identifies an individual allocation share of the device.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+       * 
+ * + * optional string shareID = 7; + */ + public com.google.protobuf.ByteString + getShareIDBytes() { + java.lang.Object ref = shareID_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shareID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * ShareID uniquely identifies an individual allocation share of the device.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+       * 
+ * + * optional string shareID = 7; + */ + public Builder setShareID( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + shareID_ = value; + onChanged(); + return this; + } + /** + *
+       * ShareID uniquely identifies an individual allocation share of the device.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+       * 
+ * + * optional string shareID = 7; + */ + public Builder clearShareID() { + bitField0_ = (bitField0_ & ~0x00000008); + shareID_ = getDefaultInstance().getShareID(); + onChanged(); + return this; + } + /** + *
+       * ShareID uniquely identifies an individual allocation share of the device.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+       * 
+ * + * optional string shareID = 7; + */ + public Builder setShareIDBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + shareID_ = value; + onChanged(); + return this; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.Meta.Condition, io.kubernetes.client.proto.Meta.Condition.Builder, io.kubernetes.client.proto.Meta.ConditionOrBuilder> conditionsBuilder_; + + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public Builder setConditions( + int index, io.kubernetes.client.proto.Meta.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public Builder setConditions( + int index, io.kubernetes.client.proto.Meta.Condition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public Builder addConditions(io.kubernetes.client.proto.Meta.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public Builder addConditions( + int index, io.kubernetes.client.proto.Meta.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public Builder addConditions( + io.kubernetes.client.proto.Meta.Condition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public Builder addConditions( + int index, io.kubernetes.client.proto.Meta.Condition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public io.kubernetes.client.proto.Meta.Condition.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder().addBuilder( + io.kubernetes.client.proto.Meta.Condition.getDefaultInstance()); + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.Meta.Condition.getDefaultInstance()); + } + /** + *
+       * Conditions contains the latest observation of the device's state.
+       * If the device has been configured according to the class and claim
+       * config references, the `Ready` condition should be True.
+       * Must not contain more than 8 entries.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 4; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.Meta.Condition, io.kubernetes.client.proto.Meta.Condition.Builder, io.kubernetes.client.proto.Meta.ConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.Meta.Condition, io.kubernetes.client.proto.Meta.Condition.Builder, io.kubernetes.client.proto.Meta.ConditionOrBuilder>( + conditions_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private io.kubernetes.client.proto.Runtime.RawExtension data_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Runtime.RawExtension, io.kubernetes.client.proto.Runtime.RawExtension.Builder, io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder> dataBuilder_; + /** + *
+       * Data contains arbitrary driver-specific data.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + */ + public boolean hasData() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+       * Data contains arbitrary driver-specific data.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + */ + public io.kubernetes.client.proto.Runtime.RawExtension getData() { + if (dataBuilder_ == null) { + return data_ == null ? io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + *
+       * Data contains arbitrary driver-specific data.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + */ + public Builder setData(io.kubernetes.client.proto.Runtime.RawExtension value) { + if (dataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + dataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + *
+       * Data contains arbitrary driver-specific data.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + */ + public Builder setData( + io.kubernetes.client.proto.Runtime.RawExtension.Builder builderForValue) { + if (dataBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + dataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + return this; + } + /** + *
+       * Data contains arbitrary driver-specific data.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + */ + public Builder mergeData(io.kubernetes.client.proto.Runtime.RawExtension value) { + if (dataBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020) && + data_ != null && + data_ != io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance()) { + data_ = + io.kubernetes.client.proto.Runtime.RawExtension.newBuilder(data_).mergeFrom(value).buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + dataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + *
+       * Data contains arbitrary driver-specific data.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = null; + onChanged(); + } else { + dataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + /** + *
+       * Data contains arbitrary driver-specific data.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + */ + public io.kubernetes.client.proto.Runtime.RawExtension.Builder getDataBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + *
+       * Data contains arbitrary driver-specific data.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + */ + public io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getDataOrBuilder() { + if (dataBuilder_ != null) { + return dataBuilder_.getMessageOrBuilder(); + } else { + return data_ == null ? + io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance() : data_; + } + } + /** + *
+       * Data contains arbitrary driver-specific data.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Runtime.RawExtension, io.kubernetes.client.proto.Runtime.RawExtension.Builder, io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder> + getDataFieldBuilder() { + if (dataBuilder_ == null) { + dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Runtime.RawExtension, io.kubernetes.client.proto.Runtime.RawExtension.Builder, io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder>( + getData(), + getParentForChildren(), + isClean()); + data_ = null; + } + return dataBuilder_; + } + + private io.kubernetes.client.proto.V1Resource.NetworkDeviceData networkData_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.NetworkDeviceData, io.kubernetes.client.proto.V1Resource.NetworkDeviceData.Builder, io.kubernetes.client.proto.V1Resource.NetworkDeviceDataOrBuilder> networkDataBuilder_; + /** + *
+       * NetworkData contains network-related information specific to the device.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.NetworkDeviceData networkData = 6; + */ + public boolean hasNetworkData() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + *
+       * NetworkData contains network-related information specific to the device.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.NetworkDeviceData networkData = 6; + */ + public io.kubernetes.client.proto.V1Resource.NetworkDeviceData getNetworkData() { + if (networkDataBuilder_ == null) { + return networkData_ == null ? io.kubernetes.client.proto.V1Resource.NetworkDeviceData.getDefaultInstance() : networkData_; + } else { + return networkDataBuilder_.getMessage(); + } + } + /** + *
+       * NetworkData contains network-related information specific to the device.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.NetworkDeviceData networkData = 6; + */ + public Builder setNetworkData(io.kubernetes.client.proto.V1Resource.NetworkDeviceData value) { + if (networkDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + networkData_ = value; + onChanged(); + } else { + networkDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + return this; + } + /** + *
+       * NetworkData contains network-related information specific to the device.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.NetworkDeviceData networkData = 6; + */ + public Builder setNetworkData( + io.kubernetes.client.proto.V1Resource.NetworkDeviceData.Builder builderForValue) { + if (networkDataBuilder_ == null) { + networkData_ = builderForValue.build(); + onChanged(); + } else { + networkDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + return this; + } + /** + *
+       * NetworkData contains network-related information specific to the device.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.NetworkDeviceData networkData = 6; + */ + public Builder mergeNetworkData(io.kubernetes.client.proto.V1Resource.NetworkDeviceData value) { + if (networkDataBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040) && + networkData_ != null && + networkData_ != io.kubernetes.client.proto.V1Resource.NetworkDeviceData.getDefaultInstance()) { + networkData_ = + io.kubernetes.client.proto.V1Resource.NetworkDeviceData.newBuilder(networkData_).mergeFrom(value).buildPartial(); + } else { + networkData_ = value; + } + onChanged(); + } else { + networkDataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + return this; + } + /** + *
+       * NetworkData contains network-related information specific to the device.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.NetworkDeviceData networkData = 6; + */ + public Builder clearNetworkData() { + if (networkDataBuilder_ == null) { + networkData_ = null; + onChanged(); + } else { + networkDataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + /** + *
+       * NetworkData contains network-related information specific to the device.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.NetworkDeviceData networkData = 6; + */ + public io.kubernetes.client.proto.V1Resource.NetworkDeviceData.Builder getNetworkDataBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getNetworkDataFieldBuilder().getBuilder(); + } + /** + *
+       * NetworkData contains network-related information specific to the device.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.NetworkDeviceData networkData = 6; + */ + public io.kubernetes.client.proto.V1Resource.NetworkDeviceDataOrBuilder getNetworkDataOrBuilder() { + if (networkDataBuilder_ != null) { + return networkDataBuilder_.getMessageOrBuilder(); + } else { + return networkData_ == null ? + io.kubernetes.client.proto.V1Resource.NetworkDeviceData.getDefaultInstance() : networkData_; + } + } + /** + *
+       * NetworkData contains network-related information specific to the device.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.NetworkDeviceData networkData = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.NetworkDeviceData, io.kubernetes.client.proto.V1Resource.NetworkDeviceData.Builder, io.kubernetes.client.proto.V1Resource.NetworkDeviceDataOrBuilder> + getNetworkDataFieldBuilder() { + if (networkDataBuilder_ == null) { + networkDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.NetworkDeviceData, io.kubernetes.client.proto.V1Resource.NetworkDeviceData.Builder, io.kubernetes.client.proto.V1Resource.NetworkDeviceDataOrBuilder>( + getNetworkData(), + getParentForChildren(), + isClean()); + networkData_ = null; + } + return networkDataBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.AllocatedDeviceStatus) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.AllocatedDeviceStatus) + private static final io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus(); + } + + public static io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllocatedDeviceStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllocatedDeviceStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AllocationResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.AllocationResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Devices is the result of allocating devices.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceAllocationResult devices = 1; + */ + boolean hasDevices(); + /** + *
+     * Devices is the result of allocating devices.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceAllocationResult devices = 1; + */ + io.kubernetes.client.proto.V1Resource.DeviceAllocationResult getDevices(); + /** + *
+     * Devices is the result of allocating devices.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceAllocationResult devices = 1; + */ + io.kubernetes.client.proto.V1Resource.DeviceAllocationResultOrBuilder getDevicesOrBuilder(); + + /** + *
+     * NodeSelector defines where the allocated resources are available. If
+     * unset, they are available everywhere.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + */ + boolean hasNodeSelector(); + /** + *
+     * NodeSelector defines where the allocated resources are available. If
+     * unset, they are available everywhere.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + */ + io.kubernetes.client.proto.V1.NodeSelector getNodeSelector(); + /** + *
+     * NodeSelector defines where the allocated resources are available. If
+     * unset, they are available everywhere.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + */ + io.kubernetes.client.proto.V1.NodeSelectorOrBuilder getNodeSelectorOrBuilder(); + + /** + *
+     * AllocationTimestamp stores the time when the resources were allocated.
+     * This field is not guaranteed to be set, in which case that time is unknown.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gate.
+     * +optional
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; + */ + boolean hasAllocationTimestamp(); + /** + *
+     * AllocationTimestamp stores the time when the resources were allocated.
+     * This field is not guaranteed to be set, in which case that time is unknown.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gate.
+     * +optional
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; + */ + io.kubernetes.client.proto.Meta.Time getAllocationTimestamp(); + /** + *
+     * AllocationTimestamp stores the time when the resources were allocated.
+     * This field is not guaranteed to be set, in which case that time is unknown.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gate.
+     * +optional
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; + */ + io.kubernetes.client.proto.Meta.TimeOrBuilder getAllocationTimestampOrBuilder(); + } + /** + *
+   * AllocationResult contains attributes of an allocated resource.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.AllocationResult} + */ + public static final class AllocationResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.AllocationResult) + AllocationResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use AllocationResult.newBuilder() to construct. + private AllocationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AllocationResult() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AllocationResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = devices_.toBuilder(); + } + devices_ = input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(devices_); + devices_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 26: { + io.kubernetes.client.proto.V1.NodeSelector.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = nodeSelector_.toBuilder(); + } + nodeSelector_ = input.readMessage(io.kubernetes.client.proto.V1.NodeSelector.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeSelector_); + nodeSelector_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 42: { + io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = allocationTimestamp_.toBuilder(); + } + allocationTimestamp_ = input.readMessage(io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(allocationTimestamp_); + allocationTimestamp_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_AllocationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_AllocationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.AllocationResult.class, io.kubernetes.client.proto.V1Resource.AllocationResult.Builder.class); + } + + private int bitField0_; + public static final int DEVICES_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.V1Resource.DeviceAllocationResult devices_; + /** + *
+     * Devices is the result of allocating devices.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceAllocationResult devices = 1; + */ + public boolean hasDevices() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Devices is the result of allocating devices.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceAllocationResult devices = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceAllocationResult getDevices() { + return devices_ == null ? io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.getDefaultInstance() : devices_; + } + /** + *
+     * Devices is the result of allocating devices.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceAllocationResult devices = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceAllocationResultOrBuilder getDevicesOrBuilder() { + return devices_ == null ? io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.getDefaultInstance() : devices_; + } + + public static final int NODESELECTOR_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.V1.NodeSelector nodeSelector_; + /** + *
+     * NodeSelector defines where the allocated resources are available. If
+     * unset, they are available everywhere.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + */ + public boolean hasNodeSelector() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * NodeSelector defines where the allocated resources are available. If
+     * unset, they are available everywhere.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + */ + public io.kubernetes.client.proto.V1.NodeSelector getNodeSelector() { + return nodeSelector_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : nodeSelector_; + } + /** + *
+     * NodeSelector defines where the allocated resources are available. If
+     * unset, they are available everywhere.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + */ + public io.kubernetes.client.proto.V1.NodeSelectorOrBuilder getNodeSelectorOrBuilder() { + return nodeSelector_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : nodeSelector_; + } + + public static final int ALLOCATIONTIMESTAMP_FIELD_NUMBER = 5; + private io.kubernetes.client.proto.Meta.Time allocationTimestamp_; + /** + *
+     * AllocationTimestamp stores the time when the resources were allocated.
+     * This field is not guaranteed to be set, in which case that time is unknown.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gate.
+     * +optional
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; + */ + public boolean hasAllocationTimestamp() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * AllocationTimestamp stores the time when the resources were allocated.
+     * This field is not guaranteed to be set, in which case that time is unknown.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gate.
+     * +optional
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; + */ + public io.kubernetes.client.proto.Meta.Time getAllocationTimestamp() { + return allocationTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : allocationTimestamp_; + } + /** + *
+     * AllocationTimestamp stores the time when the resources were allocated.
+     * This field is not guaranteed to be set, in which case that time is unknown.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gate.
+     * +optional
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getAllocationTimestampOrBuilder() { + return allocationTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : allocationTimestamp_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getDevices()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(3, getNodeSelector()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(5, getAllocationTimestamp()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDevices()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getNodeSelector()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getAllocationTimestamp()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.AllocationResult)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.AllocationResult other = (io.kubernetes.client.proto.V1Resource.AllocationResult) obj; + + boolean result = true; + result = result && (hasDevices() == other.hasDevices()); + if (hasDevices()) { + result = result && getDevices() + .equals(other.getDevices()); + } + result = result && (hasNodeSelector() == other.hasNodeSelector()); + if (hasNodeSelector()) { + result = result && getNodeSelector() + .equals(other.getNodeSelector()); + } + result = result && (hasAllocationTimestamp() == other.hasAllocationTimestamp()); + if (hasAllocationTimestamp()) { + result = result && getAllocationTimestamp() + .equals(other.getAllocationTimestamp()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDevices()) { + hash = (37 * hash) + DEVICES_FIELD_NUMBER; + hash = (53 * hash) + getDevices().hashCode(); + } + if (hasNodeSelector()) { + hash = (37 * hash) + NODESELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getNodeSelector().hashCode(); + } + if (hasAllocationTimestamp()) { + hash = (37 * hash) + ALLOCATIONTIMESTAMP_FIELD_NUMBER; + hash = (53 * hash) + getAllocationTimestamp().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.AllocationResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.AllocationResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.AllocationResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.AllocationResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.AllocationResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.AllocationResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.AllocationResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.AllocationResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.AllocationResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.AllocationResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.AllocationResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.AllocationResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.AllocationResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * AllocationResult contains attributes of an allocated resource.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.AllocationResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.AllocationResult) + io.kubernetes.client.proto.V1Resource.AllocationResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_AllocationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_AllocationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.AllocationResult.class, io.kubernetes.client.proto.V1Resource.AllocationResult.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.AllocationResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDevicesFieldBuilder(); + getNodeSelectorFieldBuilder(); + getAllocationTimestampFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (devicesBuilder_ == null) { + devices_ = null; + } else { + devicesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (nodeSelectorBuilder_ == null) { + nodeSelector_ = null; + } else { + nodeSelectorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (allocationTimestampBuilder_ == null) { + allocationTimestamp_ = null; + } else { + allocationTimestampBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_AllocationResult_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.AllocationResult getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.AllocationResult.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.AllocationResult build() { + io.kubernetes.client.proto.V1Resource.AllocationResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.AllocationResult buildPartial() { + io.kubernetes.client.proto.V1Resource.AllocationResult result = new io.kubernetes.client.proto.V1Resource.AllocationResult(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (devicesBuilder_ == null) { + result.devices_ = devices_; + } else { + result.devices_ = devicesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (nodeSelectorBuilder_ == null) { + result.nodeSelector_ = nodeSelector_; + } else { + result.nodeSelector_ = nodeSelectorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (allocationTimestampBuilder_ == null) { + result.allocationTimestamp_ = allocationTimestamp_; + } else { + result.allocationTimestamp_ = allocationTimestampBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.AllocationResult) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.AllocationResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.AllocationResult other) { + if (other == io.kubernetes.client.proto.V1Resource.AllocationResult.getDefaultInstance()) return this; + if (other.hasDevices()) { + mergeDevices(other.getDevices()); + } + if (other.hasNodeSelector()) { + mergeNodeSelector(other.getNodeSelector()); + } + if (other.hasAllocationTimestamp()) { + mergeAllocationTimestamp(other.getAllocationTimestamp()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.AllocationResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.AllocationResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.V1Resource.DeviceAllocationResult devices_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceAllocationResult, io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.Builder, io.kubernetes.client.proto.V1Resource.DeviceAllocationResultOrBuilder> devicesBuilder_; + /** + *
+       * Devices is the result of allocating devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceAllocationResult devices = 1; + */ + public boolean hasDevices() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Devices is the result of allocating devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceAllocationResult devices = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceAllocationResult getDevices() { + if (devicesBuilder_ == null) { + return devices_ == null ? io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.getDefaultInstance() : devices_; + } else { + return devicesBuilder_.getMessage(); + } + } + /** + *
+       * Devices is the result of allocating devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceAllocationResult devices = 1; + */ + public Builder setDevices(io.kubernetes.client.proto.V1Resource.DeviceAllocationResult value) { + if (devicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + devices_ = value; + onChanged(); + } else { + devicesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Devices is the result of allocating devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceAllocationResult devices = 1; + */ + public Builder setDevices( + io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.Builder builderForValue) { + if (devicesBuilder_ == null) { + devices_ = builderForValue.build(); + onChanged(); + } else { + devicesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Devices is the result of allocating devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceAllocationResult devices = 1; + */ + public Builder mergeDevices(io.kubernetes.client.proto.V1Resource.DeviceAllocationResult value) { + if (devicesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + devices_ != null && + devices_ != io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.getDefaultInstance()) { + devices_ = + io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.newBuilder(devices_).mergeFrom(value).buildPartial(); + } else { + devices_ = value; + } + onChanged(); + } else { + devicesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Devices is the result of allocating devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceAllocationResult devices = 1; + */ + public Builder clearDevices() { + if (devicesBuilder_ == null) { + devices_ = null; + onChanged(); + } else { + devicesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Devices is the result of allocating devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceAllocationResult devices = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.Builder getDevicesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDevicesFieldBuilder().getBuilder(); + } + /** + *
+       * Devices is the result of allocating devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceAllocationResult devices = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceAllocationResultOrBuilder getDevicesOrBuilder() { + if (devicesBuilder_ != null) { + return devicesBuilder_.getMessageOrBuilder(); + } else { + return devices_ == null ? + io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.getDefaultInstance() : devices_; + } + } + /** + *
+       * Devices is the result of allocating devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceAllocationResult devices = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceAllocationResult, io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.Builder, io.kubernetes.client.proto.V1Resource.DeviceAllocationResultOrBuilder> + getDevicesFieldBuilder() { + if (devicesBuilder_ == null) { + devicesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceAllocationResult, io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.Builder, io.kubernetes.client.proto.V1Resource.DeviceAllocationResultOrBuilder>( + getDevices(), + getParentForChildren(), + isClean()); + devices_ = null; + } + return devicesBuilder_; + } + + private io.kubernetes.client.proto.V1.NodeSelector nodeSelector_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.NodeSelector, io.kubernetes.client.proto.V1.NodeSelector.Builder, io.kubernetes.client.proto.V1.NodeSelectorOrBuilder> nodeSelectorBuilder_; + /** + *
+       * NodeSelector defines where the allocated resources are available. If
+       * unset, they are available everywhere.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + */ + public boolean hasNodeSelector() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * NodeSelector defines where the allocated resources are available. If
+       * unset, they are available everywhere.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + */ + public io.kubernetes.client.proto.V1.NodeSelector getNodeSelector() { + if (nodeSelectorBuilder_ == null) { + return nodeSelector_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : nodeSelector_; + } else { + return nodeSelectorBuilder_.getMessage(); + } + } + /** + *
+       * NodeSelector defines where the allocated resources are available. If
+       * unset, they are available everywhere.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + */ + public Builder setNodeSelector(io.kubernetes.client.proto.V1.NodeSelector value) { + if (nodeSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeSelector_ = value; + onChanged(); + } else { + nodeSelectorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * NodeSelector defines where the allocated resources are available. If
+       * unset, they are available everywhere.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + */ + public Builder setNodeSelector( + io.kubernetes.client.proto.V1.NodeSelector.Builder builderForValue) { + if (nodeSelectorBuilder_ == null) { + nodeSelector_ = builderForValue.build(); + onChanged(); + } else { + nodeSelectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * NodeSelector defines where the allocated resources are available. If
+       * unset, they are available everywhere.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + */ + public Builder mergeNodeSelector(io.kubernetes.client.proto.V1.NodeSelector value) { + if (nodeSelectorBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + nodeSelector_ != null && + nodeSelector_ != io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance()) { + nodeSelector_ = + io.kubernetes.client.proto.V1.NodeSelector.newBuilder(nodeSelector_).mergeFrom(value).buildPartial(); + } else { + nodeSelector_ = value; + } + onChanged(); + } else { + nodeSelectorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * NodeSelector defines where the allocated resources are available. If
+       * unset, they are available everywhere.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + */ + public Builder clearNodeSelector() { + if (nodeSelectorBuilder_ == null) { + nodeSelector_ = null; + onChanged(); + } else { + nodeSelectorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * NodeSelector defines where the allocated resources are available. If
+       * unset, they are available everywhere.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + */ + public io.kubernetes.client.proto.V1.NodeSelector.Builder getNodeSelectorBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getNodeSelectorFieldBuilder().getBuilder(); + } + /** + *
+       * NodeSelector defines where the allocated resources are available. If
+       * unset, they are available everywhere.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + */ + public io.kubernetes.client.proto.V1.NodeSelectorOrBuilder getNodeSelectorOrBuilder() { + if (nodeSelectorBuilder_ != null) { + return nodeSelectorBuilder_.getMessageOrBuilder(); + } else { + return nodeSelector_ == null ? + io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : nodeSelector_; + } + } + /** + *
+       * NodeSelector defines where the allocated resources are available. If
+       * unset, they are available everywhere.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.NodeSelector, io.kubernetes.client.proto.V1.NodeSelector.Builder, io.kubernetes.client.proto.V1.NodeSelectorOrBuilder> + getNodeSelectorFieldBuilder() { + if (nodeSelectorBuilder_ == null) { + nodeSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.NodeSelector, io.kubernetes.client.proto.V1.NodeSelector.Builder, io.kubernetes.client.proto.V1.NodeSelectorOrBuilder>( + getNodeSelector(), + getParentForChildren(), + isClean()); + nodeSelector_ = null; + } + return nodeSelectorBuilder_; + } + + private io.kubernetes.client.proto.Meta.Time allocationTimestamp_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> allocationTimestampBuilder_; + /** + *
+       * AllocationTimestamp stores the time when the resources were allocated.
+       * This field is not guaranteed to be set, in which case that time is unknown.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gate.
+       * +optional
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; + */ + public boolean hasAllocationTimestamp() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * AllocationTimestamp stores the time when the resources were allocated.
+       * This field is not guaranteed to be set, in which case that time is unknown.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gate.
+       * +optional
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; + */ + public io.kubernetes.client.proto.Meta.Time getAllocationTimestamp() { + if (allocationTimestampBuilder_ == null) { + return allocationTimestamp_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : allocationTimestamp_; + } else { + return allocationTimestampBuilder_.getMessage(); + } + } + /** + *
+       * AllocationTimestamp stores the time when the resources were allocated.
+       * This field is not guaranteed to be set, in which case that time is unknown.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gate.
+       * +optional
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; + */ + public Builder setAllocationTimestamp(io.kubernetes.client.proto.Meta.Time value) { + if (allocationTimestampBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + allocationTimestamp_ = value; + onChanged(); + } else { + allocationTimestampBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * AllocationTimestamp stores the time when the resources were allocated.
+       * This field is not guaranteed to be set, in which case that time is unknown.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gate.
+       * +optional
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; + */ + public Builder setAllocationTimestamp( + io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { + if (allocationTimestampBuilder_ == null) { + allocationTimestamp_ = builderForValue.build(); + onChanged(); + } else { + allocationTimestampBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * AllocationTimestamp stores the time when the resources were allocated.
+       * This field is not guaranteed to be set, in which case that time is unknown.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gate.
+       * +optional
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; + */ + public Builder mergeAllocationTimestamp(io.kubernetes.client.proto.Meta.Time value) { + if (allocationTimestampBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + allocationTimestamp_ != null && + allocationTimestamp_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { + allocationTimestamp_ = + io.kubernetes.client.proto.Meta.Time.newBuilder(allocationTimestamp_).mergeFrom(value).buildPartial(); + } else { + allocationTimestamp_ = value; + } + onChanged(); + } else { + allocationTimestampBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * AllocationTimestamp stores the time when the resources were allocated.
+       * This field is not guaranteed to be set, in which case that time is unknown.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gate.
+       * +optional
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; + */ + public Builder clearAllocationTimestamp() { + if (allocationTimestampBuilder_ == null) { + allocationTimestamp_ = null; + onChanged(); + } else { + allocationTimestampBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * AllocationTimestamp stores the time when the resources were allocated.
+       * This field is not guaranteed to be set, in which case that time is unknown.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gate.
+       * +optional
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; + */ + public io.kubernetes.client.proto.Meta.Time.Builder getAllocationTimestampBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAllocationTimestampFieldBuilder().getBuilder(); + } + /** + *
+       * AllocationTimestamp stores the time when the resources were allocated.
+       * This field is not guaranteed to be set, in which case that time is unknown.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gate.
+       * +optional
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getAllocationTimestampOrBuilder() { + if (allocationTimestampBuilder_ != null) { + return allocationTimestampBuilder_.getMessageOrBuilder(); + } else { + return allocationTimestamp_ == null ? + io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : allocationTimestamp_; + } + } + /** + *
+       * AllocationTimestamp stores the time when the resources were allocated.
+       * This field is not guaranteed to be set, in which case that time is unknown.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gate.
+       * +optional
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time allocationTimestamp = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> + getAllocationTimestampFieldBuilder() { + if (allocationTimestampBuilder_ == null) { + allocationTimestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( + getAllocationTimestamp(), + getParentForChildren(), + isClean()); + allocationTimestamp_ = null; + } + return allocationTimestampBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.AllocationResult) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.AllocationResult) + private static final io.kubernetes.client.proto.V1Resource.AllocationResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.AllocationResult(); + } + + public static io.kubernetes.client.proto.V1Resource.AllocationResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AllocationResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AllocationResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.AllocationResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CELDeviceSelectorOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.CELDeviceSelector) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Expression is a CEL expression which evaluates a single device. It
+     * must evaluate to true when the device under consideration satisfies
+     * the desired criteria, and false when it does not. Any other result
+     * is an error and causes allocation of devices to abort.
+     * The expression's input is an object named "device", which carries
+     * the following properties:
+     *  - driver (string): the name of the driver which defines this device.
+     *  - attributes (map[string]object): the device's attributes, grouped by prefix
+     *    (e.g. device.attributes["dra.example.com"] evaluates to an object with all
+     *    of the attributes which were prefixed by "dra.example.com").
+     *  - capacity (map[string]object): the device's capacities, grouped by prefix.
+     *  - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device
+     *    (v1.34+ with the DRAConsumableCapacity feature enabled).
+     * Example: Consider a device with driver="dra.example.com", which exposes
+     * two attributes named "model" and "ext.example.com/family" and which
+     * exposes one capacity named "modules". This input to this expression
+     * would have the following fields:
+     *     device.driver
+     *     device.attributes["dra.example.com"].model
+     *     device.attributes["ext.example.com"].family
+     *     device.capacity["dra.example.com"].modules
+     * The device.driver field can be used to check for a specific driver,
+     * either as a high-level precondition (i.e. you only want to consider
+     * devices from this driver) or as part of a multi-clause expression
+     * that is meant to consider devices from different drivers.
+     * The value type of each attribute is defined by the device
+     * definition, and users who write these expressions must consult the
+     * documentation for their specific drivers. The value type of each
+     * capacity is Quantity.
+     * If an unknown prefix is used as a lookup in either device.attributes
+     * or device.capacity, an empty map will be returned. Any reference to
+     * an unknown field will cause an evaluation error and allocation to
+     * abort.
+     * A robust expression should check for the existence of attributes
+     * before referencing them.
+     * Common errors:
+     * - "no such key": Use optional chaining (.? followed by orValue())
+     *   or guarding the check with has() for optional fields.
+     *   See CEL Optional Types for details:
+     *   https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes
+     * For more CEL expression syntax and examples, see:
+     * https://kubernetes.io/docs/reference/using-api/cel/
+     * For ease of use, the cel.bind() function is enabled, and can be used
+     * to simplify expressions that access multiple attributes with the
+     * same domain. For example:
+     *     cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
+     * When the DRAListTypeAttributes feature gate is enabled,
+     * the includes() helper is available and it can work for both scalar
+     * and list-type attributes. It was introduced to support smooth migration
+     * from scalar attributes to list-type attributes while keeping
+     * CEL expressions simple. For example:
+     *     device.attributes["dra.example.com"].models.includes("some-model")
+     * The length of the expression must be smaller or equal to 10 Ki. The
+     * cost of evaluating it is also limited based on the estimated number
+     * of logical steps.
+     * +required
+     * 
+ * + * optional string expression = 1; + */ + boolean hasExpression(); + /** + *
+     * Expression is a CEL expression which evaluates a single device. It
+     * must evaluate to true when the device under consideration satisfies
+     * the desired criteria, and false when it does not. Any other result
+     * is an error and causes allocation of devices to abort.
+     * The expression's input is an object named "device", which carries
+     * the following properties:
+     *  - driver (string): the name of the driver which defines this device.
+     *  - attributes (map[string]object): the device's attributes, grouped by prefix
+     *    (e.g. device.attributes["dra.example.com"] evaluates to an object with all
+     *    of the attributes which were prefixed by "dra.example.com").
+     *  - capacity (map[string]object): the device's capacities, grouped by prefix.
+     *  - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device
+     *    (v1.34+ with the DRAConsumableCapacity feature enabled).
+     * Example: Consider a device with driver="dra.example.com", which exposes
+     * two attributes named "model" and "ext.example.com/family" and which
+     * exposes one capacity named "modules". This input to this expression
+     * would have the following fields:
+     *     device.driver
+     *     device.attributes["dra.example.com"].model
+     *     device.attributes["ext.example.com"].family
+     *     device.capacity["dra.example.com"].modules
+     * The device.driver field can be used to check for a specific driver,
+     * either as a high-level precondition (i.e. you only want to consider
+     * devices from this driver) or as part of a multi-clause expression
+     * that is meant to consider devices from different drivers.
+     * The value type of each attribute is defined by the device
+     * definition, and users who write these expressions must consult the
+     * documentation for their specific drivers. The value type of each
+     * capacity is Quantity.
+     * If an unknown prefix is used as a lookup in either device.attributes
+     * or device.capacity, an empty map will be returned. Any reference to
+     * an unknown field will cause an evaluation error and allocation to
+     * abort.
+     * A robust expression should check for the existence of attributes
+     * before referencing them.
+     * Common errors:
+     * - "no such key": Use optional chaining (.? followed by orValue())
+     *   or guarding the check with has() for optional fields.
+     *   See CEL Optional Types for details:
+     *   https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes
+     * For more CEL expression syntax and examples, see:
+     * https://kubernetes.io/docs/reference/using-api/cel/
+     * For ease of use, the cel.bind() function is enabled, and can be used
+     * to simplify expressions that access multiple attributes with the
+     * same domain. For example:
+     *     cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
+     * When the DRAListTypeAttributes feature gate is enabled,
+     * the includes() helper is available and it can work for both scalar
+     * and list-type attributes. It was introduced to support smooth migration
+     * from scalar attributes to list-type attributes while keeping
+     * CEL expressions simple. For example:
+     *     device.attributes["dra.example.com"].models.includes("some-model")
+     * The length of the expression must be smaller or equal to 10 Ki. The
+     * cost of evaluating it is also limited based on the estimated number
+     * of logical steps.
+     * +required
+     * 
+ * + * optional string expression = 1; + */ + java.lang.String getExpression(); + /** + *
+     * Expression is a CEL expression which evaluates a single device. It
+     * must evaluate to true when the device under consideration satisfies
+     * the desired criteria, and false when it does not. Any other result
+     * is an error and causes allocation of devices to abort.
+     * The expression's input is an object named "device", which carries
+     * the following properties:
+     *  - driver (string): the name of the driver which defines this device.
+     *  - attributes (map[string]object): the device's attributes, grouped by prefix
+     *    (e.g. device.attributes["dra.example.com"] evaluates to an object with all
+     *    of the attributes which were prefixed by "dra.example.com").
+     *  - capacity (map[string]object): the device's capacities, grouped by prefix.
+     *  - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device
+     *    (v1.34+ with the DRAConsumableCapacity feature enabled).
+     * Example: Consider a device with driver="dra.example.com", which exposes
+     * two attributes named "model" and "ext.example.com/family" and which
+     * exposes one capacity named "modules". This input to this expression
+     * would have the following fields:
+     *     device.driver
+     *     device.attributes["dra.example.com"].model
+     *     device.attributes["ext.example.com"].family
+     *     device.capacity["dra.example.com"].modules
+     * The device.driver field can be used to check for a specific driver,
+     * either as a high-level precondition (i.e. you only want to consider
+     * devices from this driver) or as part of a multi-clause expression
+     * that is meant to consider devices from different drivers.
+     * The value type of each attribute is defined by the device
+     * definition, and users who write these expressions must consult the
+     * documentation for their specific drivers. The value type of each
+     * capacity is Quantity.
+     * If an unknown prefix is used as a lookup in either device.attributes
+     * or device.capacity, an empty map will be returned. Any reference to
+     * an unknown field will cause an evaluation error and allocation to
+     * abort.
+     * A robust expression should check for the existence of attributes
+     * before referencing them.
+     * Common errors:
+     * - "no such key": Use optional chaining (.? followed by orValue())
+     *   or guarding the check with has() for optional fields.
+     *   See CEL Optional Types for details:
+     *   https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes
+     * For more CEL expression syntax and examples, see:
+     * https://kubernetes.io/docs/reference/using-api/cel/
+     * For ease of use, the cel.bind() function is enabled, and can be used
+     * to simplify expressions that access multiple attributes with the
+     * same domain. For example:
+     *     cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
+     * When the DRAListTypeAttributes feature gate is enabled,
+     * the includes() helper is available and it can work for both scalar
+     * and list-type attributes. It was introduced to support smooth migration
+     * from scalar attributes to list-type attributes while keeping
+     * CEL expressions simple. For example:
+     *     device.attributes["dra.example.com"].models.includes("some-model")
+     * The length of the expression must be smaller or equal to 10 Ki. The
+     * cost of evaluating it is also limited based on the estimated number
+     * of logical steps.
+     * +required
+     * 
+ * + * optional string expression = 1; + */ + com.google.protobuf.ByteString + getExpressionBytes(); + } + /** + *
+   * CELDeviceSelector contains a CEL expression for selecting a device.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.CELDeviceSelector} + */ + public static final class CELDeviceSelector extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.CELDeviceSelector) + CELDeviceSelectorOrBuilder { + private static final long serialVersionUID = 0L; + // Use CELDeviceSelector.newBuilder() to construct. + private CELDeviceSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CELDeviceSelector() { + expression_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CELDeviceSelector( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + expression_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CELDeviceSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CELDeviceSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.CELDeviceSelector.class, io.kubernetes.client.proto.V1Resource.CELDeviceSelector.Builder.class); + } + + private int bitField0_; + public static final int EXPRESSION_FIELD_NUMBER = 1; + private volatile java.lang.Object expression_; + /** + *
+     * Expression is a CEL expression which evaluates a single device. It
+     * must evaluate to true when the device under consideration satisfies
+     * the desired criteria, and false when it does not. Any other result
+     * is an error and causes allocation of devices to abort.
+     * The expression's input is an object named "device", which carries
+     * the following properties:
+     *  - driver (string): the name of the driver which defines this device.
+     *  - attributes (map[string]object): the device's attributes, grouped by prefix
+     *    (e.g. device.attributes["dra.example.com"] evaluates to an object with all
+     *    of the attributes which were prefixed by "dra.example.com").
+     *  - capacity (map[string]object): the device's capacities, grouped by prefix.
+     *  - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device
+     *    (v1.34+ with the DRAConsumableCapacity feature enabled).
+     * Example: Consider a device with driver="dra.example.com", which exposes
+     * two attributes named "model" and "ext.example.com/family" and which
+     * exposes one capacity named "modules". This input to this expression
+     * would have the following fields:
+     *     device.driver
+     *     device.attributes["dra.example.com"].model
+     *     device.attributes["ext.example.com"].family
+     *     device.capacity["dra.example.com"].modules
+     * The device.driver field can be used to check for a specific driver,
+     * either as a high-level precondition (i.e. you only want to consider
+     * devices from this driver) or as part of a multi-clause expression
+     * that is meant to consider devices from different drivers.
+     * The value type of each attribute is defined by the device
+     * definition, and users who write these expressions must consult the
+     * documentation for their specific drivers. The value type of each
+     * capacity is Quantity.
+     * If an unknown prefix is used as a lookup in either device.attributes
+     * or device.capacity, an empty map will be returned. Any reference to
+     * an unknown field will cause an evaluation error and allocation to
+     * abort.
+     * A robust expression should check for the existence of attributes
+     * before referencing them.
+     * Common errors:
+     * - "no such key": Use optional chaining (.? followed by orValue())
+     *   or guarding the check with has() for optional fields.
+     *   See CEL Optional Types for details:
+     *   https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes
+     * For more CEL expression syntax and examples, see:
+     * https://kubernetes.io/docs/reference/using-api/cel/
+     * For ease of use, the cel.bind() function is enabled, and can be used
+     * to simplify expressions that access multiple attributes with the
+     * same domain. For example:
+     *     cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
+     * When the DRAListTypeAttributes feature gate is enabled,
+     * the includes() helper is available and it can work for both scalar
+     * and list-type attributes. It was introduced to support smooth migration
+     * from scalar attributes to list-type attributes while keeping
+     * CEL expressions simple. For example:
+     *     device.attributes["dra.example.com"].models.includes("some-model")
+     * The length of the expression must be smaller or equal to 10 Ki. The
+     * cost of evaluating it is also limited based on the estimated number
+     * of logical steps.
+     * +required
+     * 
+ * + * optional string expression = 1; + */ + public boolean hasExpression() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Expression is a CEL expression which evaluates a single device. It
+     * must evaluate to true when the device under consideration satisfies
+     * the desired criteria, and false when it does not. Any other result
+     * is an error and causes allocation of devices to abort.
+     * The expression's input is an object named "device", which carries
+     * the following properties:
+     *  - driver (string): the name of the driver which defines this device.
+     *  - attributes (map[string]object): the device's attributes, grouped by prefix
+     *    (e.g. device.attributes["dra.example.com"] evaluates to an object with all
+     *    of the attributes which were prefixed by "dra.example.com").
+     *  - capacity (map[string]object): the device's capacities, grouped by prefix.
+     *  - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device
+     *    (v1.34+ with the DRAConsumableCapacity feature enabled).
+     * Example: Consider a device with driver="dra.example.com", which exposes
+     * two attributes named "model" and "ext.example.com/family" and which
+     * exposes one capacity named "modules". This input to this expression
+     * would have the following fields:
+     *     device.driver
+     *     device.attributes["dra.example.com"].model
+     *     device.attributes["ext.example.com"].family
+     *     device.capacity["dra.example.com"].modules
+     * The device.driver field can be used to check for a specific driver,
+     * either as a high-level precondition (i.e. you only want to consider
+     * devices from this driver) or as part of a multi-clause expression
+     * that is meant to consider devices from different drivers.
+     * The value type of each attribute is defined by the device
+     * definition, and users who write these expressions must consult the
+     * documentation for their specific drivers. The value type of each
+     * capacity is Quantity.
+     * If an unknown prefix is used as a lookup in either device.attributes
+     * or device.capacity, an empty map will be returned. Any reference to
+     * an unknown field will cause an evaluation error and allocation to
+     * abort.
+     * A robust expression should check for the existence of attributes
+     * before referencing them.
+     * Common errors:
+     * - "no such key": Use optional chaining (.? followed by orValue())
+     *   or guarding the check with has() for optional fields.
+     *   See CEL Optional Types for details:
+     *   https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes
+     * For more CEL expression syntax and examples, see:
+     * https://kubernetes.io/docs/reference/using-api/cel/
+     * For ease of use, the cel.bind() function is enabled, and can be used
+     * to simplify expressions that access multiple attributes with the
+     * same domain. For example:
+     *     cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
+     * When the DRAListTypeAttributes feature gate is enabled,
+     * the includes() helper is available and it can work for both scalar
+     * and list-type attributes. It was introduced to support smooth migration
+     * from scalar attributes to list-type attributes while keeping
+     * CEL expressions simple. For example:
+     *     device.attributes["dra.example.com"].models.includes("some-model")
+     * The length of the expression must be smaller or equal to 10 Ki. The
+     * cost of evaluating it is also limited based on the estimated number
+     * of logical steps.
+     * +required
+     * 
+ * + * optional string expression = 1; + */ + public java.lang.String getExpression() { + java.lang.Object ref = expression_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + expression_ = s; + } + return s; + } + } + /** + *
+     * Expression is a CEL expression which evaluates a single device. It
+     * must evaluate to true when the device under consideration satisfies
+     * the desired criteria, and false when it does not. Any other result
+     * is an error and causes allocation of devices to abort.
+     * The expression's input is an object named "device", which carries
+     * the following properties:
+     *  - driver (string): the name of the driver which defines this device.
+     *  - attributes (map[string]object): the device's attributes, grouped by prefix
+     *    (e.g. device.attributes["dra.example.com"] evaluates to an object with all
+     *    of the attributes which were prefixed by "dra.example.com").
+     *  - capacity (map[string]object): the device's capacities, grouped by prefix.
+     *  - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device
+     *    (v1.34+ with the DRAConsumableCapacity feature enabled).
+     * Example: Consider a device with driver="dra.example.com", which exposes
+     * two attributes named "model" and "ext.example.com/family" and which
+     * exposes one capacity named "modules". This input to this expression
+     * would have the following fields:
+     *     device.driver
+     *     device.attributes["dra.example.com"].model
+     *     device.attributes["ext.example.com"].family
+     *     device.capacity["dra.example.com"].modules
+     * The device.driver field can be used to check for a specific driver,
+     * either as a high-level precondition (i.e. you only want to consider
+     * devices from this driver) or as part of a multi-clause expression
+     * that is meant to consider devices from different drivers.
+     * The value type of each attribute is defined by the device
+     * definition, and users who write these expressions must consult the
+     * documentation for their specific drivers. The value type of each
+     * capacity is Quantity.
+     * If an unknown prefix is used as a lookup in either device.attributes
+     * or device.capacity, an empty map will be returned. Any reference to
+     * an unknown field will cause an evaluation error and allocation to
+     * abort.
+     * A robust expression should check for the existence of attributes
+     * before referencing them.
+     * Common errors:
+     * - "no such key": Use optional chaining (.? followed by orValue())
+     *   or guarding the check with has() for optional fields.
+     *   See CEL Optional Types for details:
+     *   https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes
+     * For more CEL expression syntax and examples, see:
+     * https://kubernetes.io/docs/reference/using-api/cel/
+     * For ease of use, the cel.bind() function is enabled, and can be used
+     * to simplify expressions that access multiple attributes with the
+     * same domain. For example:
+     *     cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
+     * When the DRAListTypeAttributes feature gate is enabled,
+     * the includes() helper is available and it can work for both scalar
+     * and list-type attributes. It was introduced to support smooth migration
+     * from scalar attributes to list-type attributes while keeping
+     * CEL expressions simple. For example:
+     *     device.attributes["dra.example.com"].models.includes("some-model")
+     * The length of the expression must be smaller or equal to 10 Ki. The
+     * cost of evaluating it is also limited based on the estimated number
+     * of logical steps.
+     * +required
+     * 
+ * + * optional string expression = 1; + */ + public com.google.protobuf.ByteString + getExpressionBytes() { + java.lang.Object ref = expression_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + expression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, expression_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, expression_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.CELDeviceSelector)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.CELDeviceSelector other = (io.kubernetes.client.proto.V1Resource.CELDeviceSelector) obj; + + boolean result = true; + result = result && (hasExpression() == other.hasExpression()); + if (hasExpression()) { + result = result && getExpression() + .equals(other.getExpression()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasExpression()) { + hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.CELDeviceSelector parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.CELDeviceSelector parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CELDeviceSelector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.CELDeviceSelector parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CELDeviceSelector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.CELDeviceSelector parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CELDeviceSelector parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.CELDeviceSelector parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CELDeviceSelector parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.CELDeviceSelector parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CELDeviceSelector parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.CELDeviceSelector parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.CELDeviceSelector prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * CELDeviceSelector contains a CEL expression for selecting a device.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.CELDeviceSelector} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.CELDeviceSelector) + io.kubernetes.client.proto.V1Resource.CELDeviceSelectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CELDeviceSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CELDeviceSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.CELDeviceSelector.class, io.kubernetes.client.proto.V1Resource.CELDeviceSelector.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.CELDeviceSelector.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + expression_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CELDeviceSelector_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CELDeviceSelector getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.CELDeviceSelector.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CELDeviceSelector build() { + io.kubernetes.client.proto.V1Resource.CELDeviceSelector result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CELDeviceSelector buildPartial() { + io.kubernetes.client.proto.V1Resource.CELDeviceSelector result = new io.kubernetes.client.proto.V1Resource.CELDeviceSelector(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.expression_ = expression_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.CELDeviceSelector) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.CELDeviceSelector)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.CELDeviceSelector other) { + if (other == io.kubernetes.client.proto.V1Resource.CELDeviceSelector.getDefaultInstance()) return this; + if (other.hasExpression()) { + bitField0_ |= 0x00000001; + expression_ = other.expression_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.CELDeviceSelector parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.CELDeviceSelector) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object expression_ = ""; + /** + *
+       * Expression is a CEL expression which evaluates a single device. It
+       * must evaluate to true when the device under consideration satisfies
+       * the desired criteria, and false when it does not. Any other result
+       * is an error and causes allocation of devices to abort.
+       * The expression's input is an object named "device", which carries
+       * the following properties:
+       *  - driver (string): the name of the driver which defines this device.
+       *  - attributes (map[string]object): the device's attributes, grouped by prefix
+       *    (e.g. device.attributes["dra.example.com"] evaluates to an object with all
+       *    of the attributes which were prefixed by "dra.example.com").
+       *  - capacity (map[string]object): the device's capacities, grouped by prefix.
+       *  - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device
+       *    (v1.34+ with the DRAConsumableCapacity feature enabled).
+       * Example: Consider a device with driver="dra.example.com", which exposes
+       * two attributes named "model" and "ext.example.com/family" and which
+       * exposes one capacity named "modules". This input to this expression
+       * would have the following fields:
+       *     device.driver
+       *     device.attributes["dra.example.com"].model
+       *     device.attributes["ext.example.com"].family
+       *     device.capacity["dra.example.com"].modules
+       * The device.driver field can be used to check for a specific driver,
+       * either as a high-level precondition (i.e. you only want to consider
+       * devices from this driver) or as part of a multi-clause expression
+       * that is meant to consider devices from different drivers.
+       * The value type of each attribute is defined by the device
+       * definition, and users who write these expressions must consult the
+       * documentation for their specific drivers. The value type of each
+       * capacity is Quantity.
+       * If an unknown prefix is used as a lookup in either device.attributes
+       * or device.capacity, an empty map will be returned. Any reference to
+       * an unknown field will cause an evaluation error and allocation to
+       * abort.
+       * A robust expression should check for the existence of attributes
+       * before referencing them.
+       * Common errors:
+       * - "no such key": Use optional chaining (.? followed by orValue())
+       *   or guarding the check with has() for optional fields.
+       *   See CEL Optional Types for details:
+       *   https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes
+       * For more CEL expression syntax and examples, see:
+       * https://kubernetes.io/docs/reference/using-api/cel/
+       * For ease of use, the cel.bind() function is enabled, and can be used
+       * to simplify expressions that access multiple attributes with the
+       * same domain. For example:
+       *     cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
+       * When the DRAListTypeAttributes feature gate is enabled,
+       * the includes() helper is available and it can work for both scalar
+       * and list-type attributes. It was introduced to support smooth migration
+       * from scalar attributes to list-type attributes while keeping
+       * CEL expressions simple. For example:
+       *     device.attributes["dra.example.com"].models.includes("some-model")
+       * The length of the expression must be smaller or equal to 10 Ki. The
+       * cost of evaluating it is also limited based on the estimated number
+       * of logical steps.
+       * +required
+       * 
+ * + * optional string expression = 1; + */ + public boolean hasExpression() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Expression is a CEL expression which evaluates a single device. It
+       * must evaluate to true when the device under consideration satisfies
+       * the desired criteria, and false when it does not. Any other result
+       * is an error and causes allocation of devices to abort.
+       * The expression's input is an object named "device", which carries
+       * the following properties:
+       *  - driver (string): the name of the driver which defines this device.
+       *  - attributes (map[string]object): the device's attributes, grouped by prefix
+       *    (e.g. device.attributes["dra.example.com"] evaluates to an object with all
+       *    of the attributes which were prefixed by "dra.example.com").
+       *  - capacity (map[string]object): the device's capacities, grouped by prefix.
+       *  - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device
+       *    (v1.34+ with the DRAConsumableCapacity feature enabled).
+       * Example: Consider a device with driver="dra.example.com", which exposes
+       * two attributes named "model" and "ext.example.com/family" and which
+       * exposes one capacity named "modules". This input to this expression
+       * would have the following fields:
+       *     device.driver
+       *     device.attributes["dra.example.com"].model
+       *     device.attributes["ext.example.com"].family
+       *     device.capacity["dra.example.com"].modules
+       * The device.driver field can be used to check for a specific driver,
+       * either as a high-level precondition (i.e. you only want to consider
+       * devices from this driver) or as part of a multi-clause expression
+       * that is meant to consider devices from different drivers.
+       * The value type of each attribute is defined by the device
+       * definition, and users who write these expressions must consult the
+       * documentation for their specific drivers. The value type of each
+       * capacity is Quantity.
+       * If an unknown prefix is used as a lookup in either device.attributes
+       * or device.capacity, an empty map will be returned. Any reference to
+       * an unknown field will cause an evaluation error and allocation to
+       * abort.
+       * A robust expression should check for the existence of attributes
+       * before referencing them.
+       * Common errors:
+       * - "no such key": Use optional chaining (.? followed by orValue())
+       *   or guarding the check with has() for optional fields.
+       *   See CEL Optional Types for details:
+       *   https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes
+       * For more CEL expression syntax and examples, see:
+       * https://kubernetes.io/docs/reference/using-api/cel/
+       * For ease of use, the cel.bind() function is enabled, and can be used
+       * to simplify expressions that access multiple attributes with the
+       * same domain. For example:
+       *     cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
+       * When the DRAListTypeAttributes feature gate is enabled,
+       * the includes() helper is available and it can work for both scalar
+       * and list-type attributes. It was introduced to support smooth migration
+       * from scalar attributes to list-type attributes while keeping
+       * CEL expressions simple. For example:
+       *     device.attributes["dra.example.com"].models.includes("some-model")
+       * The length of the expression must be smaller or equal to 10 Ki. The
+       * cost of evaluating it is also limited based on the estimated number
+       * of logical steps.
+       * +required
+       * 
+ * + * optional string expression = 1; + */ + public java.lang.String getExpression() { + java.lang.Object ref = expression_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + expression_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Expression is a CEL expression which evaluates a single device. It
+       * must evaluate to true when the device under consideration satisfies
+       * the desired criteria, and false when it does not. Any other result
+       * is an error and causes allocation of devices to abort.
+       * The expression's input is an object named "device", which carries
+       * the following properties:
+       *  - driver (string): the name of the driver which defines this device.
+       *  - attributes (map[string]object): the device's attributes, grouped by prefix
+       *    (e.g. device.attributes["dra.example.com"] evaluates to an object with all
+       *    of the attributes which were prefixed by "dra.example.com").
+       *  - capacity (map[string]object): the device's capacities, grouped by prefix.
+       *  - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device
+       *    (v1.34+ with the DRAConsumableCapacity feature enabled).
+       * Example: Consider a device with driver="dra.example.com", which exposes
+       * two attributes named "model" and "ext.example.com/family" and which
+       * exposes one capacity named "modules". This input to this expression
+       * would have the following fields:
+       *     device.driver
+       *     device.attributes["dra.example.com"].model
+       *     device.attributes["ext.example.com"].family
+       *     device.capacity["dra.example.com"].modules
+       * The device.driver field can be used to check for a specific driver,
+       * either as a high-level precondition (i.e. you only want to consider
+       * devices from this driver) or as part of a multi-clause expression
+       * that is meant to consider devices from different drivers.
+       * The value type of each attribute is defined by the device
+       * definition, and users who write these expressions must consult the
+       * documentation for their specific drivers. The value type of each
+       * capacity is Quantity.
+       * If an unknown prefix is used as a lookup in either device.attributes
+       * or device.capacity, an empty map will be returned. Any reference to
+       * an unknown field will cause an evaluation error and allocation to
+       * abort.
+       * A robust expression should check for the existence of attributes
+       * before referencing them.
+       * Common errors:
+       * - "no such key": Use optional chaining (.? followed by orValue())
+       *   or guarding the check with has() for optional fields.
+       *   See CEL Optional Types for details:
+       *   https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes
+       * For more CEL expression syntax and examples, see:
+       * https://kubernetes.io/docs/reference/using-api/cel/
+       * For ease of use, the cel.bind() function is enabled, and can be used
+       * to simplify expressions that access multiple attributes with the
+       * same domain. For example:
+       *     cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
+       * When the DRAListTypeAttributes feature gate is enabled,
+       * the includes() helper is available and it can work for both scalar
+       * and list-type attributes. It was introduced to support smooth migration
+       * from scalar attributes to list-type attributes while keeping
+       * CEL expressions simple. For example:
+       *     device.attributes["dra.example.com"].models.includes("some-model")
+       * The length of the expression must be smaller or equal to 10 Ki. The
+       * cost of evaluating it is also limited based on the estimated number
+       * of logical steps.
+       * +required
+       * 
+ * + * optional string expression = 1; + */ + public com.google.protobuf.ByteString + getExpressionBytes() { + java.lang.Object ref = expression_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + expression_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Expression is a CEL expression which evaluates a single device. It
+       * must evaluate to true when the device under consideration satisfies
+       * the desired criteria, and false when it does not. Any other result
+       * is an error and causes allocation of devices to abort.
+       * The expression's input is an object named "device", which carries
+       * the following properties:
+       *  - driver (string): the name of the driver which defines this device.
+       *  - attributes (map[string]object): the device's attributes, grouped by prefix
+       *    (e.g. device.attributes["dra.example.com"] evaluates to an object with all
+       *    of the attributes which were prefixed by "dra.example.com").
+       *  - capacity (map[string]object): the device's capacities, grouped by prefix.
+       *  - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device
+       *    (v1.34+ with the DRAConsumableCapacity feature enabled).
+       * Example: Consider a device with driver="dra.example.com", which exposes
+       * two attributes named "model" and "ext.example.com/family" and which
+       * exposes one capacity named "modules". This input to this expression
+       * would have the following fields:
+       *     device.driver
+       *     device.attributes["dra.example.com"].model
+       *     device.attributes["ext.example.com"].family
+       *     device.capacity["dra.example.com"].modules
+       * The device.driver field can be used to check for a specific driver,
+       * either as a high-level precondition (i.e. you only want to consider
+       * devices from this driver) or as part of a multi-clause expression
+       * that is meant to consider devices from different drivers.
+       * The value type of each attribute is defined by the device
+       * definition, and users who write these expressions must consult the
+       * documentation for their specific drivers. The value type of each
+       * capacity is Quantity.
+       * If an unknown prefix is used as a lookup in either device.attributes
+       * or device.capacity, an empty map will be returned. Any reference to
+       * an unknown field will cause an evaluation error and allocation to
+       * abort.
+       * A robust expression should check for the existence of attributes
+       * before referencing them.
+       * Common errors:
+       * - "no such key": Use optional chaining (.? followed by orValue())
+       *   or guarding the check with has() for optional fields.
+       *   See CEL Optional Types for details:
+       *   https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes
+       * For more CEL expression syntax and examples, see:
+       * https://kubernetes.io/docs/reference/using-api/cel/
+       * For ease of use, the cel.bind() function is enabled, and can be used
+       * to simplify expressions that access multiple attributes with the
+       * same domain. For example:
+       *     cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
+       * When the DRAListTypeAttributes feature gate is enabled,
+       * the includes() helper is available and it can work for both scalar
+       * and list-type attributes. It was introduced to support smooth migration
+       * from scalar attributes to list-type attributes while keeping
+       * CEL expressions simple. For example:
+       *     device.attributes["dra.example.com"].models.includes("some-model")
+       * The length of the expression must be smaller or equal to 10 Ki. The
+       * cost of evaluating it is also limited based on the estimated number
+       * of logical steps.
+       * +required
+       * 
+ * + * optional string expression = 1; + */ + public Builder setExpression( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + expression_ = value; + onChanged(); + return this; + } + /** + *
+       * Expression is a CEL expression which evaluates a single device. It
+       * must evaluate to true when the device under consideration satisfies
+       * the desired criteria, and false when it does not. Any other result
+       * is an error and causes allocation of devices to abort.
+       * The expression's input is an object named "device", which carries
+       * the following properties:
+       *  - driver (string): the name of the driver which defines this device.
+       *  - attributes (map[string]object): the device's attributes, grouped by prefix
+       *    (e.g. device.attributes["dra.example.com"] evaluates to an object with all
+       *    of the attributes which were prefixed by "dra.example.com").
+       *  - capacity (map[string]object): the device's capacities, grouped by prefix.
+       *  - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device
+       *    (v1.34+ with the DRAConsumableCapacity feature enabled).
+       * Example: Consider a device with driver="dra.example.com", which exposes
+       * two attributes named "model" and "ext.example.com/family" and which
+       * exposes one capacity named "modules". This input to this expression
+       * would have the following fields:
+       *     device.driver
+       *     device.attributes["dra.example.com"].model
+       *     device.attributes["ext.example.com"].family
+       *     device.capacity["dra.example.com"].modules
+       * The device.driver field can be used to check for a specific driver,
+       * either as a high-level precondition (i.e. you only want to consider
+       * devices from this driver) or as part of a multi-clause expression
+       * that is meant to consider devices from different drivers.
+       * The value type of each attribute is defined by the device
+       * definition, and users who write these expressions must consult the
+       * documentation for their specific drivers. The value type of each
+       * capacity is Quantity.
+       * If an unknown prefix is used as a lookup in either device.attributes
+       * or device.capacity, an empty map will be returned. Any reference to
+       * an unknown field will cause an evaluation error and allocation to
+       * abort.
+       * A robust expression should check for the existence of attributes
+       * before referencing them.
+       * Common errors:
+       * - "no such key": Use optional chaining (.? followed by orValue())
+       *   or guarding the check with has() for optional fields.
+       *   See CEL Optional Types for details:
+       *   https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes
+       * For more CEL expression syntax and examples, see:
+       * https://kubernetes.io/docs/reference/using-api/cel/
+       * For ease of use, the cel.bind() function is enabled, and can be used
+       * to simplify expressions that access multiple attributes with the
+       * same domain. For example:
+       *     cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
+       * When the DRAListTypeAttributes feature gate is enabled,
+       * the includes() helper is available and it can work for both scalar
+       * and list-type attributes. It was introduced to support smooth migration
+       * from scalar attributes to list-type attributes while keeping
+       * CEL expressions simple. For example:
+       *     device.attributes["dra.example.com"].models.includes("some-model")
+       * The length of the expression must be smaller or equal to 10 Ki. The
+       * cost of evaluating it is also limited based on the estimated number
+       * of logical steps.
+       * +required
+       * 
+ * + * optional string expression = 1; + */ + public Builder clearExpression() { + bitField0_ = (bitField0_ & ~0x00000001); + expression_ = getDefaultInstance().getExpression(); + onChanged(); + return this; + } + /** + *
+       * Expression is a CEL expression which evaluates a single device. It
+       * must evaluate to true when the device under consideration satisfies
+       * the desired criteria, and false when it does not. Any other result
+       * is an error and causes allocation of devices to abort.
+       * The expression's input is an object named "device", which carries
+       * the following properties:
+       *  - driver (string): the name of the driver which defines this device.
+       *  - attributes (map[string]object): the device's attributes, grouped by prefix
+       *    (e.g. device.attributes["dra.example.com"] evaluates to an object with all
+       *    of the attributes which were prefixed by "dra.example.com").
+       *  - capacity (map[string]object): the device's capacities, grouped by prefix.
+       *  - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device
+       *    (v1.34+ with the DRAConsumableCapacity feature enabled).
+       * Example: Consider a device with driver="dra.example.com", which exposes
+       * two attributes named "model" and "ext.example.com/family" and which
+       * exposes one capacity named "modules". This input to this expression
+       * would have the following fields:
+       *     device.driver
+       *     device.attributes["dra.example.com"].model
+       *     device.attributes["ext.example.com"].family
+       *     device.capacity["dra.example.com"].modules
+       * The device.driver field can be used to check for a specific driver,
+       * either as a high-level precondition (i.e. you only want to consider
+       * devices from this driver) or as part of a multi-clause expression
+       * that is meant to consider devices from different drivers.
+       * The value type of each attribute is defined by the device
+       * definition, and users who write these expressions must consult the
+       * documentation for their specific drivers. The value type of each
+       * capacity is Quantity.
+       * If an unknown prefix is used as a lookup in either device.attributes
+       * or device.capacity, an empty map will be returned. Any reference to
+       * an unknown field will cause an evaluation error and allocation to
+       * abort.
+       * A robust expression should check for the existence of attributes
+       * before referencing them.
+       * Common errors:
+       * - "no such key": Use optional chaining (.? followed by orValue())
+       *   or guarding the check with has() for optional fields.
+       *   See CEL Optional Types for details:
+       *   https://pkg.go.dev/github.com/google/cel-go@v0.17.4/cel#OptionalTypes
+       * For more CEL expression syntax and examples, see:
+       * https://kubernetes.io/docs/reference/using-api/cel/
+       * For ease of use, the cel.bind() function is enabled, and can be used
+       * to simplify expressions that access multiple attributes with the
+       * same domain. For example:
+       *     cel.bind(dra, device.attributes["dra.example.com"], dra.someBool && dra.anotherBool)
+       * When the DRAListTypeAttributes feature gate is enabled,
+       * the includes() helper is available and it can work for both scalar
+       * and list-type attributes. It was introduced to support smooth migration
+       * from scalar attributes to list-type attributes while keeping
+       * CEL expressions simple. For example:
+       *     device.attributes["dra.example.com"].models.includes("some-model")
+       * The length of the expression must be smaller or equal to 10 Ki. The
+       * cost of evaluating it is also limited based on the estimated number
+       * of logical steps.
+       * +required
+       * 
+ * + * optional string expression = 1; + */ + public Builder setExpressionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + expression_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.CELDeviceSelector) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.CELDeviceSelector) + private static final io.kubernetes.client.proto.V1Resource.CELDeviceSelector DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.CELDeviceSelector(); + } + + public static io.kubernetes.client.proto.V1Resource.CELDeviceSelector getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CELDeviceSelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CELDeviceSelector(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CELDeviceSelector getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CapacityRequestPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.CapacityRequestPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Default specifies how much of this capacity is consumed by a request
+     * that does not contain an entry for it in DeviceRequest's Capacity.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + */ + boolean hasDefault(); + /** + *
+     * Default specifies how much of this capacity is consumed by a request
+     * that does not contain an entry for it in DeviceRequest's Capacity.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + */ + io.kubernetes.client.proto.Resource.Quantity getDefault(); + /** + *
+     * Default specifies how much of this capacity is consumed by a request
+     * that does not contain an entry for it in DeviceRequest's Capacity.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + */ + io.kubernetes.client.proto.Resource.QuantityOrBuilder getDefaultOrBuilder(); + + /** + *
+     * ValidValues defines a set of acceptable quantity values in consuming requests.
+     * Must not contain more than 10 entries.
+     * Must be sorted in ascending order.
+     * If this field is set,
+     * Default must be defined and it must be included in ValidValues list.
+     * If the requested amount does not match any valid value but smaller than some valid values,
+     * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+     * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+     * If the requested amount exceeds all valid values, the request violates the policy,
+     * and this device cannot be allocated.
+     * +optional
+     * +listType=atomic
+     * +oneOf=ValidRequestValues
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + java.util.List + getValidValuesList(); + /** + *
+     * ValidValues defines a set of acceptable quantity values in consuming requests.
+     * Must not contain more than 10 entries.
+     * Must be sorted in ascending order.
+     * If this field is set,
+     * Default must be defined and it must be included in ValidValues list.
+     * If the requested amount does not match any valid value but smaller than some valid values,
+     * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+     * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+     * If the requested amount exceeds all valid values, the request violates the policy,
+     * and this device cannot be allocated.
+     * +optional
+     * +listType=atomic
+     * +oneOf=ValidRequestValues
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + io.kubernetes.client.proto.Resource.Quantity getValidValues(int index); + /** + *
+     * ValidValues defines a set of acceptable quantity values in consuming requests.
+     * Must not contain more than 10 entries.
+     * Must be sorted in ascending order.
+     * If this field is set,
+     * Default must be defined and it must be included in ValidValues list.
+     * If the requested amount does not match any valid value but smaller than some valid values,
+     * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+     * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+     * If the requested amount exceeds all valid values, the request violates the policy,
+     * and this device cannot be allocated.
+     * +optional
+     * +listType=atomic
+     * +oneOf=ValidRequestValues
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + int getValidValuesCount(); + /** + *
+     * ValidValues defines a set of acceptable quantity values in consuming requests.
+     * Must not contain more than 10 entries.
+     * Must be sorted in ascending order.
+     * If this field is set,
+     * Default must be defined and it must be included in ValidValues list.
+     * If the requested amount does not match any valid value but smaller than some valid values,
+     * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+     * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+     * If the requested amount exceeds all valid values, the request violates the policy,
+     * and this device cannot be allocated.
+     * +optional
+     * +listType=atomic
+     * +oneOf=ValidRequestValues
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + java.util.List + getValidValuesOrBuilderList(); + /** + *
+     * ValidValues defines a set of acceptable quantity values in consuming requests.
+     * Must not contain more than 10 entries.
+     * Must be sorted in ascending order.
+     * If this field is set,
+     * Default must be defined and it must be included in ValidValues list.
+     * If the requested amount does not match any valid value but smaller than some valid values,
+     * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+     * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+     * If the requested amount exceeds all valid values, the request violates the policy,
+     * and this device cannot be allocated.
+     * +optional
+     * +listType=atomic
+     * +oneOf=ValidRequestValues
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + io.kubernetes.client.proto.Resource.QuantityOrBuilder getValidValuesOrBuilder( + int index); + + /** + *
+     * ValidRange defines an acceptable quantity value range in consuming requests.
+     * If this field is set,
+     * Default must be defined and it must fall within the defined ValidRange.
+     * If the requested amount does not fall within the defined range, the request violates the policy,
+     * and this device cannot be allocated.
+     * If the request doesn't contain this capacity entry, Default value is used.
+     * +optional
+     * +oneOf=ValidRequestValues
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicyRange validRange = 4; + */ + boolean hasValidRange(); + /** + *
+     * ValidRange defines an acceptable quantity value range in consuming requests.
+     * If this field is set,
+     * Default must be defined and it must fall within the defined ValidRange.
+     * If the requested amount does not fall within the defined range, the request violates the policy,
+     * and this device cannot be allocated.
+     * If the request doesn't contain this capacity entry, Default value is used.
+     * +optional
+     * +oneOf=ValidRequestValues
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicyRange validRange = 4; + */ + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange getValidRange(); + /** + *
+     * ValidRange defines an acceptable quantity value range in consuming requests.
+     * If this field is set,
+     * Default must be defined and it must fall within the defined ValidRange.
+     * If the requested amount does not fall within the defined range, the request violates the policy,
+     * and this device cannot be allocated.
+     * If the request doesn't contain this capacity entry, Default value is used.
+     * +optional
+     * +oneOf=ValidRequestValues
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicyRange validRange = 4; + */ + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRangeOrBuilder getValidRangeOrBuilder(); + } + /** + *
+   * CapacityRequestPolicy defines how requests consume device capacity.
+   * Must not set more than one ValidRequestValues.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.CapacityRequestPolicy} + */ + public static final class CapacityRequestPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.CapacityRequestPolicy) + CapacityRequestPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use CapacityRequestPolicy.newBuilder() to construct. + private CapacityRequestPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CapacityRequestPolicy() { + validValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CapacityRequestPolicy( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Resource.Quantity.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = default_.toBuilder(); + } + default_ = input.readMessage(io.kubernetes.client.proto.Resource.Quantity.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(default_); + default_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + validValues_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + validValues_.add( + input.readMessage(io.kubernetes.client.proto.Resource.Quantity.PARSER, extensionRegistry)); + break; + } + case 34: { + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = validRange_.toBuilder(); + } + validRange_ = input.readMessage(io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(validRange_); + validRange_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + validValues_ = java.util.Collections.unmodifiableList(validValues_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequestPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequestPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.class, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.Builder.class); + } + + private int bitField0_; + public static final int DEFAULT_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Resource.Quantity default_; + /** + *
+     * Default specifies how much of this capacity is consumed by a request
+     * that does not contain an entry for it in DeviceRequest's Capacity.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + */ + public boolean hasDefault() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Default specifies how much of this capacity is consumed by a request
+     * that does not contain an entry for it in DeviceRequest's Capacity.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + */ + public io.kubernetes.client.proto.Resource.Quantity getDefault() { + return default_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : default_; + } + /** + *
+     * Default specifies how much of this capacity is consumed by a request
+     * that does not contain an entry for it in DeviceRequest's Capacity.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getDefaultOrBuilder() { + return default_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : default_; + } + + public static final int VALIDVALUES_FIELD_NUMBER = 3; + private java.util.List validValues_; + /** + *
+     * ValidValues defines a set of acceptable quantity values in consuming requests.
+     * Must not contain more than 10 entries.
+     * Must be sorted in ascending order.
+     * If this field is set,
+     * Default must be defined and it must be included in ValidValues list.
+     * If the requested amount does not match any valid value but smaller than some valid values,
+     * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+     * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+     * If the requested amount exceeds all valid values, the request violates the policy,
+     * and this device cannot be allocated.
+     * +optional
+     * +listType=atomic
+     * +oneOf=ValidRequestValues
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public java.util.List getValidValuesList() { + return validValues_; + } + /** + *
+     * ValidValues defines a set of acceptable quantity values in consuming requests.
+     * Must not contain more than 10 entries.
+     * Must be sorted in ascending order.
+     * If this field is set,
+     * Default must be defined and it must be included in ValidValues list.
+     * If the requested amount does not match any valid value but smaller than some valid values,
+     * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+     * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+     * If the requested amount exceeds all valid values, the request violates the policy,
+     * and this device cannot be allocated.
+     * +optional
+     * +listType=atomic
+     * +oneOf=ValidRequestValues
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public java.util.List + getValidValuesOrBuilderList() { + return validValues_; + } + /** + *
+     * ValidValues defines a set of acceptable quantity values in consuming requests.
+     * Must not contain more than 10 entries.
+     * Must be sorted in ascending order.
+     * If this field is set,
+     * Default must be defined and it must be included in ValidValues list.
+     * If the requested amount does not match any valid value but smaller than some valid values,
+     * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+     * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+     * If the requested amount exceeds all valid values, the request violates the policy,
+     * and this device cannot be allocated.
+     * +optional
+     * +listType=atomic
+     * +oneOf=ValidRequestValues
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public int getValidValuesCount() { + return validValues_.size(); + } + /** + *
+     * ValidValues defines a set of acceptable quantity values in consuming requests.
+     * Must not contain more than 10 entries.
+     * Must be sorted in ascending order.
+     * If this field is set,
+     * Default must be defined and it must be included in ValidValues list.
+     * If the requested amount does not match any valid value but smaller than some valid values,
+     * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+     * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+     * If the requested amount exceeds all valid values, the request violates the policy,
+     * and this device cannot be allocated.
+     * +optional
+     * +listType=atomic
+     * +oneOf=ValidRequestValues
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public io.kubernetes.client.proto.Resource.Quantity getValidValues(int index) { + return validValues_.get(index); + } + /** + *
+     * ValidValues defines a set of acceptable quantity values in consuming requests.
+     * Must not contain more than 10 entries.
+     * Must be sorted in ascending order.
+     * If this field is set,
+     * Default must be defined and it must be included in ValidValues list.
+     * If the requested amount does not match any valid value but smaller than some valid values,
+     * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+     * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+     * If the requested amount exceeds all valid values, the request violates the policy,
+     * and this device cannot be allocated.
+     * +optional
+     * +listType=atomic
+     * +oneOf=ValidRequestValues
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getValidValuesOrBuilder( + int index) { + return validValues_.get(index); + } + + public static final int VALIDRANGE_FIELD_NUMBER = 4; + private io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange validRange_; + /** + *
+     * ValidRange defines an acceptable quantity value range in consuming requests.
+     * If this field is set,
+     * Default must be defined and it must fall within the defined ValidRange.
+     * If the requested amount does not fall within the defined range, the request violates the policy,
+     * and this device cannot be allocated.
+     * If the request doesn't contain this capacity entry, Default value is used.
+     * +optional
+     * +oneOf=ValidRequestValues
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicyRange validRange = 4; + */ + public boolean hasValidRange() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * ValidRange defines an acceptable quantity value range in consuming requests.
+     * If this field is set,
+     * Default must be defined and it must fall within the defined ValidRange.
+     * If the requested amount does not fall within the defined range, the request violates the policy,
+     * and this device cannot be allocated.
+     * If the request doesn't contain this capacity entry, Default value is used.
+     * +optional
+     * +oneOf=ValidRequestValues
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicyRange validRange = 4; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange getValidRange() { + return validRange_ == null ? io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.getDefaultInstance() : validRange_; + } + /** + *
+     * ValidRange defines an acceptable quantity value range in consuming requests.
+     * If this field is set,
+     * Default must be defined and it must fall within the defined ValidRange.
+     * If the requested amount does not fall within the defined range, the request violates the policy,
+     * and this device cannot be allocated.
+     * If the request doesn't contain this capacity entry, Default value is used.
+     * +optional
+     * +oneOf=ValidRequestValues
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicyRange validRange = 4; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRangeOrBuilder getValidRangeOrBuilder() { + return validRange_ == null ? io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.getDefaultInstance() : validRange_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getDefault()); + } + for (int i = 0; i < validValues_.size(); i++) { + output.writeMessage(3, validValues_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(4, getValidRange()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDefault()); + } + for (int i = 0; i < validValues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, validValues_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getValidRange()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy other = (io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy) obj; + + boolean result = true; + result = result && (hasDefault() == other.hasDefault()); + if (hasDefault()) { + result = result && getDefault() + .equals(other.getDefault()); + } + result = result && getValidValuesList() + .equals(other.getValidValuesList()); + result = result && (hasValidRange() == other.hasValidRange()); + if (hasValidRange()) { + result = result && getValidRange() + .equals(other.getValidRange()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDefault()) { + hash = (37 * hash) + DEFAULT_FIELD_NUMBER; + hash = (53 * hash) + getDefault().hashCode(); + } + if (getValidValuesCount() > 0) { + hash = (37 * hash) + VALIDVALUES_FIELD_NUMBER; + hash = (53 * hash) + getValidValuesList().hashCode(); + } + if (hasValidRange()) { + hash = (37 * hash) + VALIDRANGE_FIELD_NUMBER; + hash = (53 * hash) + getValidRange().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * CapacityRequestPolicy defines how requests consume device capacity.
+     * Must not set more than one ValidRequestValues.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.CapacityRequestPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.CapacityRequestPolicy) + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequestPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequestPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.class, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDefaultFieldBuilder(); + getValidValuesFieldBuilder(); + getValidRangeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (defaultBuilder_ == null) { + default_ = null; + } else { + defaultBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (validValuesBuilder_ == null) { + validValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + validValuesBuilder_.clear(); + } + if (validRangeBuilder_ == null) { + validRange_ = null; + } else { + validRangeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequestPolicy_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy build() { + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy buildPartial() { + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy result = new io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (defaultBuilder_ == null) { + result.default_ = default_; + } else { + result.default_ = defaultBuilder_.build(); + } + if (validValuesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + validValues_ = java.util.Collections.unmodifiableList(validValues_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.validValues_ = validValues_; + } else { + result.validValues_ = validValuesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + if (validRangeBuilder_ == null) { + result.validRange_ = validRange_; + } else { + result.validRange_ = validRangeBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy other) { + if (other == io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.getDefaultInstance()) return this; + if (other.hasDefault()) { + mergeDefault(other.getDefault()); + } + if (validValuesBuilder_ == null) { + if (!other.validValues_.isEmpty()) { + if (validValues_.isEmpty()) { + validValues_ = other.validValues_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureValidValuesIsMutable(); + validValues_.addAll(other.validValues_); + } + onChanged(); + } + } else { + if (!other.validValues_.isEmpty()) { + if (validValuesBuilder_.isEmpty()) { + validValuesBuilder_.dispose(); + validValuesBuilder_ = null; + validValues_ = other.validValues_; + bitField0_ = (bitField0_ & ~0x00000002); + validValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getValidValuesFieldBuilder() : null; + } else { + validValuesBuilder_.addAllMessages(other.validValues_); + } + } + } + if (other.hasValidRange()) { + mergeValidRange(other.getValidRange()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Resource.Quantity default_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> defaultBuilder_; + /** + *
+       * Default specifies how much of this capacity is consumed by a request
+       * that does not contain an entry for it in DeviceRequest's Capacity.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + */ + public boolean hasDefault() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Default specifies how much of this capacity is consumed by a request
+       * that does not contain an entry for it in DeviceRequest's Capacity.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + */ + public io.kubernetes.client.proto.Resource.Quantity getDefault() { + if (defaultBuilder_ == null) { + return default_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : default_; + } else { + return defaultBuilder_.getMessage(); + } + } + /** + *
+       * Default specifies how much of this capacity is consumed by a request
+       * that does not contain an entry for it in DeviceRequest's Capacity.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + */ + public Builder setDefault(io.kubernetes.client.proto.Resource.Quantity value) { + if (defaultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + default_ = value; + onChanged(); + } else { + defaultBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Default specifies how much of this capacity is consumed by a request
+       * that does not contain an entry for it in DeviceRequest's Capacity.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + */ + public Builder setDefault( + io.kubernetes.client.proto.Resource.Quantity.Builder builderForValue) { + if (defaultBuilder_ == null) { + default_ = builderForValue.build(); + onChanged(); + } else { + defaultBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Default specifies how much of this capacity is consumed by a request
+       * that does not contain an entry for it in DeviceRequest's Capacity.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + */ + public Builder mergeDefault(io.kubernetes.client.proto.Resource.Quantity value) { + if (defaultBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + default_ != null && + default_ != io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()) { + default_ = + io.kubernetes.client.proto.Resource.Quantity.newBuilder(default_).mergeFrom(value).buildPartial(); + } else { + default_ = value; + } + onChanged(); + } else { + defaultBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Default specifies how much of this capacity is consumed by a request
+       * that does not contain an entry for it in DeviceRequest's Capacity.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + */ + public Builder clearDefault() { + if (defaultBuilder_ == null) { + default_ = null; + onChanged(); + } else { + defaultBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Default specifies how much of this capacity is consumed by a request
+       * that does not contain an entry for it in DeviceRequest's Capacity.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + */ + public io.kubernetes.client.proto.Resource.Quantity.Builder getDefaultBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDefaultFieldBuilder().getBuilder(); + } + /** + *
+       * Default specifies how much of this capacity is consumed by a request
+       * that does not contain an entry for it in DeviceRequest's Capacity.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getDefaultOrBuilder() { + if (defaultBuilder_ != null) { + return defaultBuilder_.getMessageOrBuilder(); + } else { + return default_ == null ? + io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : default_; + } + } + /** + *
+       * Default specifies how much of this capacity is consumed by a request
+       * that does not contain an entry for it in DeviceRequest's Capacity.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity default = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> + getDefaultFieldBuilder() { + if (defaultBuilder_ == null) { + defaultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder>( + getDefault(), + getParentForChildren(), + isClean()); + default_ = null; + } + return defaultBuilder_; + } + + private java.util.List validValues_ = + java.util.Collections.emptyList(); + private void ensureValidValuesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + validValues_ = new java.util.ArrayList(validValues_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> validValuesBuilder_; + + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public java.util.List getValidValuesList() { + if (validValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(validValues_); + } else { + return validValuesBuilder_.getMessageList(); + } + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public int getValidValuesCount() { + if (validValuesBuilder_ == null) { + return validValues_.size(); + } else { + return validValuesBuilder_.getCount(); + } + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public io.kubernetes.client.proto.Resource.Quantity getValidValues(int index) { + if (validValuesBuilder_ == null) { + return validValues_.get(index); + } else { + return validValuesBuilder_.getMessage(index); + } + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public Builder setValidValues( + int index, io.kubernetes.client.proto.Resource.Quantity value) { + if (validValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidValuesIsMutable(); + validValues_.set(index, value); + onChanged(); + } else { + validValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public Builder setValidValues( + int index, io.kubernetes.client.proto.Resource.Quantity.Builder builderForValue) { + if (validValuesBuilder_ == null) { + ensureValidValuesIsMutable(); + validValues_.set(index, builderForValue.build()); + onChanged(); + } else { + validValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public Builder addValidValues(io.kubernetes.client.proto.Resource.Quantity value) { + if (validValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidValuesIsMutable(); + validValues_.add(value); + onChanged(); + } else { + validValuesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public Builder addValidValues( + int index, io.kubernetes.client.proto.Resource.Quantity value) { + if (validValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureValidValuesIsMutable(); + validValues_.add(index, value); + onChanged(); + } else { + validValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public Builder addValidValues( + io.kubernetes.client.proto.Resource.Quantity.Builder builderForValue) { + if (validValuesBuilder_ == null) { + ensureValidValuesIsMutable(); + validValues_.add(builderForValue.build()); + onChanged(); + } else { + validValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public Builder addValidValues( + int index, io.kubernetes.client.proto.Resource.Quantity.Builder builderForValue) { + if (validValuesBuilder_ == null) { + ensureValidValuesIsMutable(); + validValues_.add(index, builderForValue.build()); + onChanged(); + } else { + validValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public Builder addAllValidValues( + java.lang.Iterable values) { + if (validValuesBuilder_ == null) { + ensureValidValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, validValues_); + onChanged(); + } else { + validValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public Builder clearValidValues() { + if (validValuesBuilder_ == null) { + validValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + validValuesBuilder_.clear(); + } + return this; + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public Builder removeValidValues(int index) { + if (validValuesBuilder_ == null) { + ensureValidValuesIsMutable(); + validValues_.remove(index); + onChanged(); + } else { + validValuesBuilder_.remove(index); + } + return this; + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public io.kubernetes.client.proto.Resource.Quantity.Builder getValidValuesBuilder( + int index) { + return getValidValuesFieldBuilder().getBuilder(index); + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getValidValuesOrBuilder( + int index) { + if (validValuesBuilder_ == null) { + return validValues_.get(index); } else { + return validValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public java.util.List + getValidValuesOrBuilderList() { + if (validValuesBuilder_ != null) { + return validValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(validValues_); + } + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public io.kubernetes.client.proto.Resource.Quantity.Builder addValidValuesBuilder() { + return getValidValuesFieldBuilder().addBuilder( + io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public io.kubernetes.client.proto.Resource.Quantity.Builder addValidValuesBuilder( + int index) { + return getValidValuesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); + } + /** + *
+       * ValidValues defines a set of acceptable quantity values in consuming requests.
+       * Must not contain more than 10 entries.
+       * Must be sorted in ascending order.
+       * If this field is set,
+       * Default must be defined and it must be included in ValidValues list.
+       * If the requested amount does not match any valid value but smaller than some valid values,
+       * the scheduler calculates the smallest valid value that is greater than or equal to the request.
+       * That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues).
+       * If the requested amount exceeds all valid values, the request violates the policy,
+       * and this device cannot be allocated.
+       * +optional
+       * +listType=atomic
+       * +oneOf=ValidRequestValues
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.api.resource.Quantity validValues = 3; + */ + public java.util.List + getValidValuesBuilderList() { + return getValidValuesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> + getValidValuesFieldBuilder() { + if (validValuesBuilder_ == null) { + validValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder>( + validValues_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + validValues_ = null; + } + return validValuesBuilder_; + } + + private io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange validRange_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.Builder, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRangeOrBuilder> validRangeBuilder_; + /** + *
+       * ValidRange defines an acceptable quantity value range in consuming requests.
+       * If this field is set,
+       * Default must be defined and it must fall within the defined ValidRange.
+       * If the requested amount does not fall within the defined range, the request violates the policy,
+       * and this device cannot be allocated.
+       * If the request doesn't contain this capacity entry, Default value is used.
+       * +optional
+       * +oneOf=ValidRequestValues
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicyRange validRange = 4; + */ + public boolean hasValidRange() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * ValidRange defines an acceptable quantity value range in consuming requests.
+       * If this field is set,
+       * Default must be defined and it must fall within the defined ValidRange.
+       * If the requested amount does not fall within the defined range, the request violates the policy,
+       * and this device cannot be allocated.
+       * If the request doesn't contain this capacity entry, Default value is used.
+       * +optional
+       * +oneOf=ValidRequestValues
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicyRange validRange = 4; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange getValidRange() { + if (validRangeBuilder_ == null) { + return validRange_ == null ? io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.getDefaultInstance() : validRange_; + } else { + return validRangeBuilder_.getMessage(); + } + } + /** + *
+       * ValidRange defines an acceptable quantity value range in consuming requests.
+       * If this field is set,
+       * Default must be defined and it must fall within the defined ValidRange.
+       * If the requested amount does not fall within the defined range, the request violates the policy,
+       * and this device cannot be allocated.
+       * If the request doesn't contain this capacity entry, Default value is used.
+       * +optional
+       * +oneOf=ValidRequestValues
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicyRange validRange = 4; + */ + public Builder setValidRange(io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange value) { + if (validRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + validRange_ = value; + onChanged(); + } else { + validRangeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * ValidRange defines an acceptable quantity value range in consuming requests.
+       * If this field is set,
+       * Default must be defined and it must fall within the defined ValidRange.
+       * If the requested amount does not fall within the defined range, the request violates the policy,
+       * and this device cannot be allocated.
+       * If the request doesn't contain this capacity entry, Default value is used.
+       * +optional
+       * +oneOf=ValidRequestValues
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicyRange validRange = 4; + */ + public Builder setValidRange( + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.Builder builderForValue) { + if (validRangeBuilder_ == null) { + validRange_ = builderForValue.build(); + onChanged(); + } else { + validRangeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * ValidRange defines an acceptable quantity value range in consuming requests.
+       * If this field is set,
+       * Default must be defined and it must fall within the defined ValidRange.
+       * If the requested amount does not fall within the defined range, the request violates the policy,
+       * and this device cannot be allocated.
+       * If the request doesn't contain this capacity entry, Default value is used.
+       * +optional
+       * +oneOf=ValidRequestValues
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicyRange validRange = 4; + */ + public Builder mergeValidRange(io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange value) { + if (validRangeBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + validRange_ != null && + validRange_ != io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.getDefaultInstance()) { + validRange_ = + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.newBuilder(validRange_).mergeFrom(value).buildPartial(); + } else { + validRange_ = value; + } + onChanged(); + } else { + validRangeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * ValidRange defines an acceptable quantity value range in consuming requests.
+       * If this field is set,
+       * Default must be defined and it must fall within the defined ValidRange.
+       * If the requested amount does not fall within the defined range, the request violates the policy,
+       * and this device cannot be allocated.
+       * If the request doesn't contain this capacity entry, Default value is used.
+       * +optional
+       * +oneOf=ValidRequestValues
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicyRange validRange = 4; + */ + public Builder clearValidRange() { + if (validRangeBuilder_ == null) { + validRange_ = null; + onChanged(); + } else { + validRangeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * ValidRange defines an acceptable quantity value range in consuming requests.
+       * If this field is set,
+       * Default must be defined and it must fall within the defined ValidRange.
+       * If the requested amount does not fall within the defined range, the request violates the policy,
+       * and this device cannot be allocated.
+       * If the request doesn't contain this capacity entry, Default value is used.
+       * +optional
+       * +oneOf=ValidRequestValues
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicyRange validRange = 4; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.Builder getValidRangeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getValidRangeFieldBuilder().getBuilder(); + } + /** + *
+       * ValidRange defines an acceptable quantity value range in consuming requests.
+       * If this field is set,
+       * Default must be defined and it must fall within the defined ValidRange.
+       * If the requested amount does not fall within the defined range, the request violates the policy,
+       * and this device cannot be allocated.
+       * If the request doesn't contain this capacity entry, Default value is used.
+       * +optional
+       * +oneOf=ValidRequestValues
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicyRange validRange = 4; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRangeOrBuilder getValidRangeOrBuilder() { + if (validRangeBuilder_ != null) { + return validRangeBuilder_.getMessageOrBuilder(); + } else { + return validRange_ == null ? + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.getDefaultInstance() : validRange_; + } + } + /** + *
+       * ValidRange defines an acceptable quantity value range in consuming requests.
+       * If this field is set,
+       * Default must be defined and it must fall within the defined ValidRange.
+       * If the requested amount does not fall within the defined range, the request violates the policy,
+       * and this device cannot be allocated.
+       * If the request doesn't contain this capacity entry, Default value is used.
+       * +optional
+       * +oneOf=ValidRequestValues
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicyRange validRange = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.Builder, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRangeOrBuilder> + getValidRangeFieldBuilder() { + if (validRangeBuilder_ == null) { + validRangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.Builder, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRangeOrBuilder>( + getValidRange(), + getParentForChildren(), + isClean()); + validRange_ = null; + } + return validRangeBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.CapacityRequestPolicy) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.CapacityRequestPolicy) + private static final io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy(); + } + + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CapacityRequestPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CapacityRequestPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CapacityRequestPolicyRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.CapacityRequestPolicyRange) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Min specifies the minimum capacity allowed for a consumption request.
+     * Min must be greater than or equal to zero,
+     * and less than or equal to the capacity value.
+     * requestPolicy.default must be more than or equal to the minimum.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + */ + boolean hasMin(); + /** + *
+     * Min specifies the minimum capacity allowed for a consumption request.
+     * Min must be greater than or equal to zero,
+     * and less than or equal to the capacity value.
+     * requestPolicy.default must be more than or equal to the minimum.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + */ + io.kubernetes.client.proto.Resource.Quantity getMin(); + /** + *
+     * Min specifies the minimum capacity allowed for a consumption request.
+     * Min must be greater than or equal to zero,
+     * and less than or equal to the capacity value.
+     * requestPolicy.default must be more than or equal to the minimum.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + */ + io.kubernetes.client.proto.Resource.QuantityOrBuilder getMinOrBuilder(); + + /** + *
+     * Max defines the upper limit for capacity that can be requested.
+     * Max must be less than or equal to the capacity value.
+     * Min and requestPolicy.default must be less than or equal to the maximum.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + */ + boolean hasMax(); + /** + *
+     * Max defines the upper limit for capacity that can be requested.
+     * Max must be less than or equal to the capacity value.
+     * Min and requestPolicy.default must be less than or equal to the maximum.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + */ + io.kubernetes.client.proto.Resource.Quantity getMax(); + /** + *
+     * Max defines the upper limit for capacity that can be requested.
+     * Max must be less than or equal to the capacity value.
+     * Min and requestPolicy.default must be less than or equal to the maximum.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + */ + io.kubernetes.client.proto.Resource.QuantityOrBuilder getMaxOrBuilder(); + + /** + *
+     * Step defines the step size between valid capacity amounts within the range.
+     * Max (if set) and requestPolicy.default must be a multiple of Step.
+     * Min + Step must be less than or equal to the capacity value.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; + */ + boolean hasStep(); + /** + *
+     * Step defines the step size between valid capacity amounts within the range.
+     * Max (if set) and requestPolicy.default must be a multiple of Step.
+     * Min + Step must be less than or equal to the capacity value.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; + */ + io.kubernetes.client.proto.Resource.Quantity getStep(); + /** + *
+     * Step defines the step size between valid capacity amounts within the range.
+     * Max (if set) and requestPolicy.default must be a multiple of Step.
+     * Min + Step must be less than or equal to the capacity value.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; + */ + io.kubernetes.client.proto.Resource.QuantityOrBuilder getStepOrBuilder(); + } + /** + *
+   * CapacityRequestPolicyRange defines a valid range for consumable capacity values.
+   *   - If the requested amount is less than Min, it is rounded up to the Min value.
+   *   - If Step is set and the requested amount is between Min and Max but not aligned with Step,
+   *     it will be rounded up to the next value equal to Min + (n * Step).
+   *   - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).
+   *   - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,
+   *     and the device cannot be allocated.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.CapacityRequestPolicyRange} + */ + public static final class CapacityRequestPolicyRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.CapacityRequestPolicyRange) + CapacityRequestPolicyRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use CapacityRequestPolicyRange.newBuilder() to construct. + private CapacityRequestPolicyRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CapacityRequestPolicyRange() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CapacityRequestPolicyRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Resource.Quantity.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = min_.toBuilder(); + } + min_ = input.readMessage(io.kubernetes.client.proto.Resource.Quantity.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(min_); + min_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.Resource.Quantity.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = max_.toBuilder(); + } + max_ = input.readMessage(io.kubernetes.client.proto.Resource.Quantity.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(max_); + max_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + io.kubernetes.client.proto.Resource.Quantity.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = step_.toBuilder(); + } + step_ = input.readMessage(io.kubernetes.client.proto.Resource.Quantity.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(step_); + step_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequestPolicyRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequestPolicyRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.class, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.Builder.class); + } + + private int bitField0_; + public static final int MIN_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Resource.Quantity min_; + /** + *
+     * Min specifies the minimum capacity allowed for a consumption request.
+     * Min must be greater than or equal to zero,
+     * and less than or equal to the capacity value.
+     * requestPolicy.default must be more than or equal to the minimum.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + */ + public boolean hasMin() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Min specifies the minimum capacity allowed for a consumption request.
+     * Min must be greater than or equal to zero,
+     * and less than or equal to the capacity value.
+     * requestPolicy.default must be more than or equal to the minimum.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + */ + public io.kubernetes.client.proto.Resource.Quantity getMin() { + return min_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : min_; + } + /** + *
+     * Min specifies the minimum capacity allowed for a consumption request.
+     * Min must be greater than or equal to zero,
+     * and less than or equal to the capacity value.
+     * requestPolicy.default must be more than or equal to the minimum.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getMinOrBuilder() { + return min_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : min_; + } + + public static final int MAX_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.Resource.Quantity max_; + /** + *
+     * Max defines the upper limit for capacity that can be requested.
+     * Max must be less than or equal to the capacity value.
+     * Min and requestPolicy.default must be less than or equal to the maximum.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + */ + public boolean hasMax() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * Max defines the upper limit for capacity that can be requested.
+     * Max must be less than or equal to the capacity value.
+     * Min and requestPolicy.default must be less than or equal to the maximum.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + */ + public io.kubernetes.client.proto.Resource.Quantity getMax() { + return max_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : max_; + } + /** + *
+     * Max defines the upper limit for capacity that can be requested.
+     * Max must be less than or equal to the capacity value.
+     * Min and requestPolicy.default must be less than or equal to the maximum.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getMaxOrBuilder() { + return max_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : max_; + } + + public static final int STEP_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.Resource.Quantity step_; + /** + *
+     * Step defines the step size between valid capacity amounts within the range.
+     * Max (if set) and requestPolicy.default must be a multiple of Step.
+     * Min + Step must be less than or equal to the capacity value.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; + */ + public boolean hasStep() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * Step defines the step size between valid capacity amounts within the range.
+     * Max (if set) and requestPolicy.default must be a multiple of Step.
+     * Min + Step must be less than or equal to the capacity value.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; + */ + public io.kubernetes.client.proto.Resource.Quantity getStep() { + return step_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : step_; + } + /** + *
+     * Step defines the step size between valid capacity amounts within the range.
+     * Max (if set) and requestPolicy.default must be a multiple of Step.
+     * Min + Step must be less than or equal to the capacity value.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getStepOrBuilder() { + return step_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : step_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMin()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getMax()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getStep()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMin()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getMax()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStep()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange other = (io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange) obj; + + boolean result = true; + result = result && (hasMin() == other.hasMin()); + if (hasMin()) { + result = result && getMin() + .equals(other.getMin()); + } + result = result && (hasMax() == other.hasMax()); + if (hasMax()) { + result = result && getMax() + .equals(other.getMax()); + } + result = result && (hasStep() == other.hasStep()); + if (hasStep()) { + result = result && getStep() + .equals(other.getStep()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMin()) { + hash = (37 * hash) + MIN_FIELD_NUMBER; + hash = (53 * hash) + getMin().hashCode(); + } + if (hasMax()) { + hash = (37 * hash) + MAX_FIELD_NUMBER; + hash = (53 * hash) + getMax().hashCode(); + } + if (hasStep()) { + hash = (37 * hash) + STEP_FIELD_NUMBER; + hash = (53 * hash) + getStep().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * CapacityRequestPolicyRange defines a valid range for consumable capacity values.
+     *   - If the requested amount is less than Min, it is rounded up to the Min value.
+     *   - If Step is set and the requested amount is between Min and Max but not aligned with Step,
+     *     it will be rounded up to the next value equal to Min + (n * Step).
+     *   - If Step is not set, the requested amount is used as-is if it falls within the range Min to Max (if set).
+     *   - If the requested or rounded amount exceeds Max (if set), the request does not satisfy the policy,
+     *     and the device cannot be allocated.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.CapacityRequestPolicyRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.CapacityRequestPolicyRange) + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequestPolicyRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequestPolicyRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.class, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMinFieldBuilder(); + getMaxFieldBuilder(); + getStepFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (minBuilder_ == null) { + min_ = null; + } else { + minBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (maxBuilder_ == null) { + max_ = null; + } else { + maxBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (stepBuilder_ == null) { + step_ = null; + } else { + stepBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequestPolicyRange_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange build() { + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange buildPartial() { + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange result = new io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (minBuilder_ == null) { + result.min_ = min_; + } else { + result.min_ = minBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (maxBuilder_ == null) { + result.max_ = max_; + } else { + result.max_ = maxBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (stepBuilder_ == null) { + result.step_ = step_; + } else { + result.step_ = stepBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange other) { + if (other == io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange.getDefaultInstance()) return this; + if (other.hasMin()) { + mergeMin(other.getMin()); + } + if (other.hasMax()) { + mergeMax(other.getMax()); + } + if (other.hasStep()) { + mergeStep(other.getStep()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Resource.Quantity min_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> minBuilder_; + /** + *
+       * Min specifies the minimum capacity allowed for a consumption request.
+       * Min must be greater than or equal to zero,
+       * and less than or equal to the capacity value.
+       * requestPolicy.default must be more than or equal to the minimum.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + */ + public boolean hasMin() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Min specifies the minimum capacity allowed for a consumption request.
+       * Min must be greater than or equal to zero,
+       * and less than or equal to the capacity value.
+       * requestPolicy.default must be more than or equal to the minimum.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + */ + public io.kubernetes.client.proto.Resource.Quantity getMin() { + if (minBuilder_ == null) { + return min_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : min_; + } else { + return minBuilder_.getMessage(); + } + } + /** + *
+       * Min specifies the minimum capacity allowed for a consumption request.
+       * Min must be greater than or equal to zero,
+       * and less than or equal to the capacity value.
+       * requestPolicy.default must be more than or equal to the minimum.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + */ + public Builder setMin(io.kubernetes.client.proto.Resource.Quantity value) { + if (minBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + min_ = value; + onChanged(); + } else { + minBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Min specifies the minimum capacity allowed for a consumption request.
+       * Min must be greater than or equal to zero,
+       * and less than or equal to the capacity value.
+       * requestPolicy.default must be more than or equal to the minimum.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + */ + public Builder setMin( + io.kubernetes.client.proto.Resource.Quantity.Builder builderForValue) { + if (minBuilder_ == null) { + min_ = builderForValue.build(); + onChanged(); + } else { + minBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Min specifies the minimum capacity allowed for a consumption request.
+       * Min must be greater than or equal to zero,
+       * and less than or equal to the capacity value.
+       * requestPolicy.default must be more than or equal to the minimum.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + */ + public Builder mergeMin(io.kubernetes.client.proto.Resource.Quantity value) { + if (minBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + min_ != null && + min_ != io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()) { + min_ = + io.kubernetes.client.proto.Resource.Quantity.newBuilder(min_).mergeFrom(value).buildPartial(); + } else { + min_ = value; + } + onChanged(); + } else { + minBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Min specifies the minimum capacity allowed for a consumption request.
+       * Min must be greater than or equal to zero,
+       * and less than or equal to the capacity value.
+       * requestPolicy.default must be more than or equal to the minimum.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + */ + public Builder clearMin() { + if (minBuilder_ == null) { + min_ = null; + onChanged(); + } else { + minBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Min specifies the minimum capacity allowed for a consumption request.
+       * Min must be greater than or equal to zero,
+       * and less than or equal to the capacity value.
+       * requestPolicy.default must be more than or equal to the minimum.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + */ + public io.kubernetes.client.proto.Resource.Quantity.Builder getMinBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMinFieldBuilder().getBuilder(); + } + /** + *
+       * Min specifies the minimum capacity allowed for a consumption request.
+       * Min must be greater than or equal to zero,
+       * and less than or equal to the capacity value.
+       * requestPolicy.default must be more than or equal to the minimum.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getMinOrBuilder() { + if (minBuilder_ != null) { + return minBuilder_.getMessageOrBuilder(); + } else { + return min_ == null ? + io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : min_; + } + } + /** + *
+       * Min specifies the minimum capacity allowed for a consumption request.
+       * Min must be greater than or equal to zero,
+       * and less than or equal to the capacity value.
+       * requestPolicy.default must be more than or equal to the minimum.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity min = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> + getMinFieldBuilder() { + if (minBuilder_ == null) { + minBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder>( + getMin(), + getParentForChildren(), + isClean()); + min_ = null; + } + return minBuilder_; + } + + private io.kubernetes.client.proto.Resource.Quantity max_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> maxBuilder_; + /** + *
+       * Max defines the upper limit for capacity that can be requested.
+       * Max must be less than or equal to the capacity value.
+       * Min and requestPolicy.default must be less than or equal to the maximum.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + */ + public boolean hasMax() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * Max defines the upper limit for capacity that can be requested.
+       * Max must be less than or equal to the capacity value.
+       * Min and requestPolicy.default must be less than or equal to the maximum.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + */ + public io.kubernetes.client.proto.Resource.Quantity getMax() { + if (maxBuilder_ == null) { + return max_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : max_; + } else { + return maxBuilder_.getMessage(); + } + } + /** + *
+       * Max defines the upper limit for capacity that can be requested.
+       * Max must be less than or equal to the capacity value.
+       * Min and requestPolicy.default must be less than or equal to the maximum.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + */ + public Builder setMax(io.kubernetes.client.proto.Resource.Quantity value) { + if (maxBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + max_ = value; + onChanged(); + } else { + maxBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Max defines the upper limit for capacity that can be requested.
+       * Max must be less than or equal to the capacity value.
+       * Min and requestPolicy.default must be less than or equal to the maximum.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + */ + public Builder setMax( + io.kubernetes.client.proto.Resource.Quantity.Builder builderForValue) { + if (maxBuilder_ == null) { + max_ = builderForValue.build(); + onChanged(); + } else { + maxBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Max defines the upper limit for capacity that can be requested.
+       * Max must be less than or equal to the capacity value.
+       * Min and requestPolicy.default must be less than or equal to the maximum.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + */ + public Builder mergeMax(io.kubernetes.client.proto.Resource.Quantity value) { + if (maxBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + max_ != null && + max_ != io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()) { + max_ = + io.kubernetes.client.proto.Resource.Quantity.newBuilder(max_).mergeFrom(value).buildPartial(); + } else { + max_ = value; + } + onChanged(); + } else { + maxBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Max defines the upper limit for capacity that can be requested.
+       * Max must be less than or equal to the capacity value.
+       * Min and requestPolicy.default must be less than or equal to the maximum.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + */ + public Builder clearMax() { + if (maxBuilder_ == null) { + max_ = null; + onChanged(); + } else { + maxBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * Max defines the upper limit for capacity that can be requested.
+       * Max must be less than or equal to the capacity value.
+       * Min and requestPolicy.default must be less than or equal to the maximum.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + */ + public io.kubernetes.client.proto.Resource.Quantity.Builder getMaxBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMaxFieldBuilder().getBuilder(); + } + /** + *
+       * Max defines the upper limit for capacity that can be requested.
+       * Max must be less than or equal to the capacity value.
+       * Min and requestPolicy.default must be less than or equal to the maximum.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getMaxOrBuilder() { + if (maxBuilder_ != null) { + return maxBuilder_.getMessageOrBuilder(); + } else { + return max_ == null ? + io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : max_; + } + } + /** + *
+       * Max defines the upper limit for capacity that can be requested.
+       * Max must be less than or equal to the capacity value.
+       * Min and requestPolicy.default must be less than or equal to the maximum.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity max = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> + getMaxFieldBuilder() { + if (maxBuilder_ == null) { + maxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder>( + getMax(), + getParentForChildren(), + isClean()); + max_ = null; + } + return maxBuilder_; + } + + private io.kubernetes.client.proto.Resource.Quantity step_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> stepBuilder_; + /** + *
+       * Step defines the step size between valid capacity amounts within the range.
+       * Max (if set) and requestPolicy.default must be a multiple of Step.
+       * Min + Step must be less than or equal to the capacity value.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; + */ + public boolean hasStep() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * Step defines the step size between valid capacity amounts within the range.
+       * Max (if set) and requestPolicy.default must be a multiple of Step.
+       * Min + Step must be less than or equal to the capacity value.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; + */ + public io.kubernetes.client.proto.Resource.Quantity getStep() { + if (stepBuilder_ == null) { + return step_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : step_; + } else { + return stepBuilder_.getMessage(); + } + } + /** + *
+       * Step defines the step size between valid capacity amounts within the range.
+       * Max (if set) and requestPolicy.default must be a multiple of Step.
+       * Min + Step must be less than or equal to the capacity value.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; + */ + public Builder setStep(io.kubernetes.client.proto.Resource.Quantity value) { + if (stepBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + step_ = value; + onChanged(); + } else { + stepBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * Step defines the step size between valid capacity amounts within the range.
+       * Max (if set) and requestPolicy.default must be a multiple of Step.
+       * Min + Step must be less than or equal to the capacity value.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; + */ + public Builder setStep( + io.kubernetes.client.proto.Resource.Quantity.Builder builderForValue) { + if (stepBuilder_ == null) { + step_ = builderForValue.build(); + onChanged(); + } else { + stepBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * Step defines the step size between valid capacity amounts within the range.
+       * Max (if set) and requestPolicy.default must be a multiple of Step.
+       * Min + Step must be less than or equal to the capacity value.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; + */ + public Builder mergeStep(io.kubernetes.client.proto.Resource.Quantity value) { + if (stepBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + step_ != null && + step_ != io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()) { + step_ = + io.kubernetes.client.proto.Resource.Quantity.newBuilder(step_).mergeFrom(value).buildPartial(); + } else { + step_ = value; + } + onChanged(); + } else { + stepBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * Step defines the step size between valid capacity amounts within the range.
+       * Max (if set) and requestPolicy.default must be a multiple of Step.
+       * Min + Step must be less than or equal to the capacity value.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; + */ + public Builder clearStep() { + if (stepBuilder_ == null) { + step_ = null; + onChanged(); + } else { + stepBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * Step defines the step size between valid capacity amounts within the range.
+       * Max (if set) and requestPolicy.default must be a multiple of Step.
+       * Min + Step must be less than or equal to the capacity value.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; + */ + public io.kubernetes.client.proto.Resource.Quantity.Builder getStepBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStepFieldBuilder().getBuilder(); + } + /** + *
+       * Step defines the step size between valid capacity amounts within the range.
+       * Max (if set) and requestPolicy.default must be a multiple of Step.
+       * Min + Step must be less than or equal to the capacity value.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getStepOrBuilder() { + if (stepBuilder_ != null) { + return stepBuilder_.getMessageOrBuilder(); + } else { + return step_ == null ? + io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : step_; + } + } + /** + *
+       * Step defines the step size between valid capacity amounts within the range.
+       * Max (if set) and requestPolicy.default must be a multiple of Step.
+       * Min + Step must be less than or equal to the capacity value.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity step = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> + getStepFieldBuilder() { + if (stepBuilder_ == null) { + stepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder>( + getStep(), + getParentForChildren(), + isClean()); + step_ = null; + } + return stepBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.CapacityRequestPolicyRange) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.CapacityRequestPolicyRange) + private static final io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange(); + } + + public static io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CapacityRequestPolicyRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CapacityRequestPolicyRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CapacityRequirementsOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.CapacityRequirements) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Requests represent individual device resource requests for distinct resources,
+     * all of which must be provided by the device.
+     * This value is used as an additional filtering condition against the available capacity on the device.
+     * This is semantically equivalent to a CEL selector with
+     * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+     * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+     * When a requestPolicy is defined, the requested amount is adjusted upward
+     * to the nearest valid value based on the policy.
+     * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+     * the device is considered ineligible for allocation.
+     * For any capacity that is not explicitly requested:
+     * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+     *   (i.e., the whole device is claimed).
+     * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+     * If the device allows multiple allocation,
+     * the aggregated amount across all requests must not exceed the capacity value.
+     * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+     * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + int getRequestsCount(); + /** + *
+     * Requests represent individual device resource requests for distinct resources,
+     * all of which must be provided by the device.
+     * This value is used as an additional filtering condition against the available capacity on the device.
+     * This is semantically equivalent to a CEL selector with
+     * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+     * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+     * When a requestPolicy is defined, the requested amount is adjusted upward
+     * to the nearest valid value based on the policy.
+     * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+     * the device is considered ineligible for allocation.
+     * For any capacity that is not explicitly requested:
+     * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+     *   (i.e., the whole device is claimed).
+     * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+     * If the device allows multiple allocation,
+     * the aggregated amount across all requests must not exceed the capacity value.
+     * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+     * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + boolean containsRequests( + java.lang.String key); + /** + * Use {@link #getRequestsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getRequests(); + /** + *
+     * Requests represent individual device resource requests for distinct resources,
+     * all of which must be provided by the device.
+     * This value is used as an additional filtering condition against the available capacity on the device.
+     * This is semantically equivalent to a CEL selector with
+     * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+     * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+     * When a requestPolicy is defined, the requested amount is adjusted upward
+     * to the nearest valid value based on the policy.
+     * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+     * the device is considered ineligible for allocation.
+     * For any capacity that is not explicitly requested:
+     * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+     *   (i.e., the whole device is claimed).
+     * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+     * If the device allows multiple allocation,
+     * the aggregated amount across all requests must not exceed the capacity value.
+     * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+     * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + java.util.Map + getRequestsMap(); + /** + *
+     * Requests represent individual device resource requests for distinct resources,
+     * all of which must be provided by the device.
+     * This value is used as an additional filtering condition against the available capacity on the device.
+     * This is semantically equivalent to a CEL selector with
+     * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+     * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+     * When a requestPolicy is defined, the requested amount is adjusted upward
+     * to the nearest valid value based on the policy.
+     * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+     * the device is considered ineligible for allocation.
+     * For any capacity that is not explicitly requested:
+     * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+     *   (i.e., the whole device is claimed).
+     * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+     * If the device allows multiple allocation,
+     * the aggregated amount across all requests must not exceed the capacity value.
+     * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+     * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + + io.kubernetes.client.proto.Resource.Quantity getRequestsOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue); + /** + *
+     * Requests represent individual device resource requests for distinct resources,
+     * all of which must be provided by the device.
+     * This value is used as an additional filtering condition against the available capacity on the device.
+     * This is semantically equivalent to a CEL selector with
+     * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+     * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+     * When a requestPolicy is defined, the requested amount is adjusted upward
+     * to the nearest valid value based on the policy.
+     * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+     * the device is considered ineligible for allocation.
+     * For any capacity that is not explicitly requested:
+     * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+     *   (i.e., the whole device is claimed).
+     * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+     * If the device allows multiple allocation,
+     * the aggregated amount across all requests must not exceed the capacity value.
+     * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+     * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + + io.kubernetes.client.proto.Resource.Quantity getRequestsOrThrow( + java.lang.String key); + } + /** + *
+   * CapacityRequirements defines the capacity requirements for a specific device request.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.CapacityRequirements} + */ + public static final class CapacityRequirements extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.CapacityRequirements) + CapacityRequirementsOrBuilder { + private static final long serialVersionUID = 0L; + // Use CapacityRequirements.newBuilder() to construct. + private CapacityRequirements(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CapacityRequirements() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CapacityRequirements( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = com.google.protobuf.MapField.newMapField( + RequestsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + requests__ = input.readMessage( + RequestsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + requests_.getMutableMap().put( + requests__.getKey(), requests__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequirements_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetRequests(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequirements_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.CapacityRequirements.class, io.kubernetes.client.proto.V1Resource.CapacityRequirements.Builder.class); + } + + public static final int REQUESTS_FIELD_NUMBER = 1; + private static final class RequestsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequirements_RequestsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.Resource.Quantity> requests_; + private com.google.protobuf.MapField + internalGetRequests() { + if (requests_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RequestsDefaultEntryHolder.defaultEntry); + } + return requests_; + } + + public int getRequestsCount() { + return internalGetRequests().getMap().size(); + } + /** + *
+     * Requests represent individual device resource requests for distinct resources,
+     * all of which must be provided by the device.
+     * This value is used as an additional filtering condition against the available capacity on the device.
+     * This is semantically equivalent to a CEL selector with
+     * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+     * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+     * When a requestPolicy is defined, the requested amount is adjusted upward
+     * to the nearest valid value based on the policy.
+     * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+     * the device is considered ineligible for allocation.
+     * For any capacity that is not explicitly requested:
+     * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+     *   (i.e., the whole device is claimed).
+     * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+     * If the device allows multiple allocation,
+     * the aggregated amount across all requests must not exceed the capacity value.
+     * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+     * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + + public boolean containsRequests( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetRequests().getMap().containsKey(key); + } + /** + * Use {@link #getRequestsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getRequests() { + return getRequestsMap(); + } + /** + *
+     * Requests represent individual device resource requests for distinct resources,
+     * all of which must be provided by the device.
+     * This value is used as an additional filtering condition against the available capacity on the device.
+     * This is semantically equivalent to a CEL selector with
+     * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+     * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+     * When a requestPolicy is defined, the requested amount is adjusted upward
+     * to the nearest valid value based on the policy.
+     * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+     * the device is considered ineligible for allocation.
+     * For any capacity that is not explicitly requested:
+     * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+     *   (i.e., the whole device is claimed).
+     * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+     * If the device allows multiple allocation,
+     * the aggregated amount across all requests must not exceed the capacity value.
+     * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+     * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + + public java.util.Map getRequestsMap() { + return internalGetRequests().getMap(); + } + /** + *
+     * Requests represent individual device resource requests for distinct resources,
+     * all of which must be provided by the device.
+     * This value is used as an additional filtering condition against the available capacity on the device.
+     * This is semantically equivalent to a CEL selector with
+     * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+     * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+     * When a requestPolicy is defined, the requested amount is adjusted upward
+     * to the nearest valid value based on the policy.
+     * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+     * the device is considered ineligible for allocation.
+     * For any capacity that is not explicitly requested:
+     * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+     *   (i.e., the whole device is claimed).
+     * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+     * If the device allows multiple allocation,
+     * the aggregated amount across all requests must not exceed the capacity value.
+     * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+     * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + + public io.kubernetes.client.proto.Resource.Quantity getRequestsOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRequests().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Requests represent individual device resource requests for distinct resources,
+     * all of which must be provided by the device.
+     * This value is used as an additional filtering condition against the available capacity on the device.
+     * This is semantically equivalent to a CEL selector with
+     * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+     * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+     * When a requestPolicy is defined, the requested amount is adjusted upward
+     * to the nearest valid value based on the policy.
+     * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+     * the device is considered ineligible for allocation.
+     * For any capacity that is not explicitly requested:
+     * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+     *   (i.e., the whole device is claimed).
+     * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+     * If the device allows multiple allocation,
+     * the aggregated amount across all requests must not exceed the capacity value.
+     * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+     * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + + public io.kubernetes.client.proto.Resource.Quantity getRequestsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRequests().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetRequests(), + RequestsDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetRequests().getMap().entrySet()) { + com.google.protobuf.MapEntry + requests__ = RequestsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.CapacityRequirements)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.CapacityRequirements other = (io.kubernetes.client.proto.V1Resource.CapacityRequirements) obj; + + boolean result = true; + result = result && internalGetRequests().equals( + other.internalGetRequests()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetRequests().getMap().isEmpty()) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetRequests().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.CapacityRequirements parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequirements parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequirements parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequirements parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequirements parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequirements parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequirements parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequirements parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequirements parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequirements parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequirements parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.CapacityRequirements parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.CapacityRequirements prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * CapacityRequirements defines the capacity requirements for a specific device request.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.CapacityRequirements} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.CapacityRequirements) + io.kubernetes.client.proto.V1Resource.CapacityRequirementsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequirements_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetRequests(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + return internalGetMutableRequests(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequirements_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.CapacityRequirements.class, io.kubernetes.client.proto.V1Resource.CapacityRequirements.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.CapacityRequirements.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + internalGetMutableRequests().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CapacityRequirements_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CapacityRequirements getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.CapacityRequirements.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CapacityRequirements build() { + io.kubernetes.client.proto.V1Resource.CapacityRequirements result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CapacityRequirements buildPartial() { + io.kubernetes.client.proto.V1Resource.CapacityRequirements result = new io.kubernetes.client.proto.V1Resource.CapacityRequirements(this); + int from_bitField0_ = bitField0_; + result.requests_ = internalGetRequests(); + result.requests_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.CapacityRequirements) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.CapacityRequirements)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.CapacityRequirements other) { + if (other == io.kubernetes.client.proto.V1Resource.CapacityRequirements.getDefaultInstance()) return this; + internalGetMutableRequests().mergeFrom( + other.internalGetRequests()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.CapacityRequirements parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.CapacityRequirements) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.Resource.Quantity> requests_; + private com.google.protobuf.MapField + internalGetRequests() { + if (requests_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RequestsDefaultEntryHolder.defaultEntry); + } + return requests_; + } + private com.google.protobuf.MapField + internalGetMutableRequests() { + onChanged();; + if (requests_ == null) { + requests_ = com.google.protobuf.MapField.newMapField( + RequestsDefaultEntryHolder.defaultEntry); + } + if (!requests_.isMutable()) { + requests_ = requests_.copy(); + } + return requests_; + } + + public int getRequestsCount() { + return internalGetRequests().getMap().size(); + } + /** + *
+       * Requests represent individual device resource requests for distinct resources,
+       * all of which must be provided by the device.
+       * This value is used as an additional filtering condition against the available capacity on the device.
+       * This is semantically equivalent to a CEL selector with
+       * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+       * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+       * When a requestPolicy is defined, the requested amount is adjusted upward
+       * to the nearest valid value based on the policy.
+       * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+       * the device is considered ineligible for allocation.
+       * For any capacity that is not explicitly requested:
+       * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+       *   (i.e., the whole device is claimed).
+       * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+       * If the device allows multiple allocation,
+       * the aggregated amount across all requests must not exceed the capacity value.
+       * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+       * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + + public boolean containsRequests( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetRequests().getMap().containsKey(key); + } + /** + * Use {@link #getRequestsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getRequests() { + return getRequestsMap(); + } + /** + *
+       * Requests represent individual device resource requests for distinct resources,
+       * all of which must be provided by the device.
+       * This value is used as an additional filtering condition against the available capacity on the device.
+       * This is semantically equivalent to a CEL selector with
+       * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+       * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+       * When a requestPolicy is defined, the requested amount is adjusted upward
+       * to the nearest valid value based on the policy.
+       * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+       * the device is considered ineligible for allocation.
+       * For any capacity that is not explicitly requested:
+       * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+       *   (i.e., the whole device is claimed).
+       * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+       * If the device allows multiple allocation,
+       * the aggregated amount across all requests must not exceed the capacity value.
+       * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+       * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + + public java.util.Map getRequestsMap() { + return internalGetRequests().getMap(); + } + /** + *
+       * Requests represent individual device resource requests for distinct resources,
+       * all of which must be provided by the device.
+       * This value is used as an additional filtering condition against the available capacity on the device.
+       * This is semantically equivalent to a CEL selector with
+       * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+       * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+       * When a requestPolicy is defined, the requested amount is adjusted upward
+       * to the nearest valid value based on the policy.
+       * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+       * the device is considered ineligible for allocation.
+       * For any capacity that is not explicitly requested:
+       * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+       *   (i.e., the whole device is claimed).
+       * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+       * If the device allows multiple allocation,
+       * the aggregated amount across all requests must not exceed the capacity value.
+       * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+       * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + + public io.kubernetes.client.proto.Resource.Quantity getRequestsOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRequests().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Requests represent individual device resource requests for distinct resources,
+       * all of which must be provided by the device.
+       * This value is used as an additional filtering condition against the available capacity on the device.
+       * This is semantically equivalent to a CEL selector with
+       * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+       * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+       * When a requestPolicy is defined, the requested amount is adjusted upward
+       * to the nearest valid value based on the policy.
+       * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+       * the device is considered ineligible for allocation.
+       * For any capacity that is not explicitly requested:
+       * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+       *   (i.e., the whole device is claimed).
+       * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+       * If the device allows multiple allocation,
+       * the aggregated amount across all requests must not exceed the capacity value.
+       * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+       * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + + public io.kubernetes.client.proto.Resource.Quantity getRequestsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetRequests().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearRequests() { + internalGetMutableRequests().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Requests represent individual device resource requests for distinct resources,
+       * all of which must be provided by the device.
+       * This value is used as an additional filtering condition against the available capacity on the device.
+       * This is semantically equivalent to a CEL selector with
+       * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+       * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+       * When a requestPolicy is defined, the requested amount is adjusted upward
+       * to the nearest valid value based on the policy.
+       * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+       * the device is considered ineligible for allocation.
+       * For any capacity that is not explicitly requested:
+       * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+       *   (i.e., the whole device is claimed).
+       * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+       * If the device allows multiple allocation,
+       * the aggregated amount across all requests must not exceed the capacity value.
+       * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+       * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + + public Builder removeRequests( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableRequests().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableRequests() { + return internalGetMutableRequests().getMutableMap(); + } + /** + *
+       * Requests represent individual device resource requests for distinct resources,
+       * all of which must be provided by the device.
+       * This value is used as an additional filtering condition against the available capacity on the device.
+       * This is semantically equivalent to a CEL selector with
+       * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+       * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+       * When a requestPolicy is defined, the requested amount is adjusted upward
+       * to the nearest valid value based on the policy.
+       * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+       * the device is considered ineligible for allocation.
+       * For any capacity that is not explicitly requested:
+       * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+       *   (i.e., the whole device is claimed).
+       * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+       * If the device allows multiple allocation,
+       * the aggregated amount across all requests must not exceed the capacity value.
+       * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+       * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + public Builder putRequests( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableRequests().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Requests represent individual device resource requests for distinct resources,
+       * all of which must be provided by the device.
+       * This value is used as an additional filtering condition against the available capacity on the device.
+       * This is semantically equivalent to a CEL selector with
+       * `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`.
+       * For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0.
+       * When a requestPolicy is defined, the requested amount is adjusted upward
+       * to the nearest valid value based on the policy.
+       * If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows—
+       * the device is considered ineligible for allocation.
+       * For any capacity that is not explicitly requested:
+       * - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity
+       *   (i.e., the whole device is claimed).
+       * - If a requestPolicy is set, the default consumed capacity is determined according to that policy.
+       * If the device allows multiple allocation,
+       * the aggregated amount across all requests must not exceed the capacity value.
+       * The consumed capacity, which may be adjusted based on the requestPolicy if defined,
+       * is recorded in the resource claim’s status.devices[*].consumedCapacity field.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> requests = 1; + */ + + public Builder putAllRequests( + java.util.Map values) { + internalGetMutableRequests().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.CapacityRequirements) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.CapacityRequirements) + private static final io.kubernetes.client.proto.V1Resource.CapacityRequirements DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.CapacityRequirements(); + } + + public static io.kubernetes.client.proto.V1Resource.CapacityRequirements getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CapacityRequirements parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CapacityRequirements(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CapacityRequirements getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CounterOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.Counter) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Value defines how much of a certain device counter is available.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + boolean hasValue(); + /** + *
+     * Value defines how much of a certain device counter is available.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + io.kubernetes.client.proto.Resource.Quantity getValue(); + /** + *
+     * Value defines how much of a certain device counter is available.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + io.kubernetes.client.proto.Resource.QuantityOrBuilder getValueOrBuilder(); + } + /** + *
+   * Counter describes a quantity associated with a device.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.Counter} + */ + public static final class Counter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.Counter) + CounterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Counter.newBuilder() to construct. + private Counter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Counter() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Counter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Resource.Quantity.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(io.kubernetes.client.proto.Resource.Quantity.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_Counter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_Counter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.Counter.class, io.kubernetes.client.proto.V1Resource.Counter.Builder.class); + } + + private int bitField0_; + public static final int VALUE_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Resource.Quantity value_; + /** + *
+     * Value defines how much of a certain device counter is available.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Value defines how much of a certain device counter is available.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public io.kubernetes.client.proto.Resource.Quantity getValue() { + return value_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : value_; + } + /** + *
+     * Value defines how much of a certain device counter is available.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getValueOrBuilder() { + return value_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : value_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getValue()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getValue()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.Counter)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.Counter other = (io.kubernetes.client.proto.V1Resource.Counter) obj; + + boolean result = true; + result = result && (hasValue() == other.hasValue()); + if (hasValue()) { + result = result && getValue() + .equals(other.getValue()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.Counter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.Counter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.Counter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.Counter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.Counter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.Counter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.Counter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.Counter parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.Counter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.Counter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.Counter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.Counter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.Counter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Counter describes a quantity associated with a device.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.Counter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.Counter) + io.kubernetes.client.proto.V1Resource.CounterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_Counter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_Counter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.Counter.class, io.kubernetes.client.proto.V1Resource.Counter.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.Counter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getValueFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (valueBuilder_ == null) { + value_ = null; + } else { + valueBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_Counter_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.Counter getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.Counter.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.Counter build() { + io.kubernetes.client.proto.V1Resource.Counter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.Counter buildPartial() { + io.kubernetes.client.proto.V1Resource.Counter result = new io.kubernetes.client.proto.V1Resource.Counter(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.Counter) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.Counter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.Counter other) { + if (other == io.kubernetes.client.proto.V1Resource.Counter.getDefaultInstance()) return this; + if (other.hasValue()) { + mergeValue(other.getValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.Counter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.Counter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Resource.Quantity value_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> valueBuilder_; + /** + *
+       * Value defines how much of a certain device counter is available.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Value defines how much of a certain device counter is available.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public io.kubernetes.client.proto.Resource.Quantity getValue() { + if (valueBuilder_ == null) { + return value_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + *
+       * Value defines how much of a certain device counter is available.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public Builder setValue(io.kubernetes.client.proto.Resource.Quantity value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Value defines how much of a certain device counter is available.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public Builder setValue( + io.kubernetes.client.proto.Resource.Quantity.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Value defines how much of a certain device counter is available.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public Builder mergeValue(io.kubernetes.client.proto.Resource.Quantity value) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + value_ != null && + value_ != io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()) { + value_ = + io.kubernetes.client.proto.Resource.Quantity.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Value defines how much of a certain device counter is available.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + valueBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Value defines how much of a certain device counter is available.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public io.kubernetes.client.proto.Resource.Quantity.Builder getValueBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + *
+       * Value defines how much of a certain device counter is available.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : value_; + } + } + /** + *
+       * Value defines how much of a certain device counter is available.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.Counter) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.Counter) + private static final io.kubernetes.client.proto.V1Resource.Counter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.Counter(); + } + + public static io.kubernetes.client.proto.V1Resource.Counter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Counter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Counter(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.Counter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface CounterSetOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.CounterSet) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name defines the name of the counter set.
+     * It must be a DNS label.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+     * 
+ * + * optional string name = 1; + */ + boolean hasName(); + /** + *
+     * Name defines the name of the counter set.
+     * It must be a DNS label.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+     * 
+ * + * optional string name = 1; + */ + java.lang.String getName(); + /** + *
+     * Name defines the name of the counter set.
+     * It must be a DNS label.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+     * 
+ * + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Counters defines the set of counters for this CounterSet
+     * The name of each counter must be unique in that set and must be a DNS label.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + int getCountersCount(); + /** + *
+     * Counters defines the set of counters for this CounterSet
+     * The name of each counter must be unique in that set and must be a DNS label.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + boolean containsCounters( + java.lang.String key); + /** + * Use {@link #getCountersMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCounters(); + /** + *
+     * Counters defines the set of counters for this CounterSet
+     * The name of each counter must be unique in that set and must be a DNS label.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + java.util.Map + getCountersMap(); + /** + *
+     * Counters defines the set of counters for this CounterSet
+     * The name of each counter must be unique in that set and must be a DNS label.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + io.kubernetes.client.proto.V1Resource.Counter getCountersOrDefault( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.Counter defaultValue); + /** + *
+     * Counters defines the set of counters for this CounterSet
+     * The name of each counter must be unique in that set and must be a DNS label.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + io.kubernetes.client.proto.V1Resource.Counter getCountersOrThrow( + java.lang.String key); + } + /** + *
+   * CounterSet defines a named set of counters
+   * that are available to be used by devices defined in the
+   * ResourcePool.
+   * The counters are not allocatable by themselves, but
+   * can be referenced by devices. When a device is allocated,
+   * the portion of counters it uses will no longer be available for use
+   * by other devices.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.CounterSet} + */ + public static final class CounterSet extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.CounterSet) + CounterSetOrBuilder { + private static final long serialVersionUID = 0L; + // Use CounterSet.newBuilder() to construct. + private CounterSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CounterSet() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CounterSet( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + counters_ = com.google.protobuf.MapField.newMapField( + CountersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + counters__ = input.readMessage( + CountersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + counters_.getMutableMap().put( + counters__.getKey(), counters__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CounterSet_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetCounters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CounterSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.CounterSet.class, io.kubernetes.client.proto.V1Resource.CounterSet.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Name defines the name of the counter set.
+     * It must be a DNS label.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+     * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Name defines the name of the counter set.
+     * It must be a DNS label.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+     * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + *
+     * Name defines the name of the counter set.
+     * It must be a DNS label.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+     * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COUNTERS_FIELD_NUMBER = 2; + private static final class CountersDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, io.kubernetes.client.proto.V1Resource.Counter> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CounterSet_CountersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + io.kubernetes.client.proto.V1Resource.Counter.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.V1Resource.Counter> counters_; + private com.google.protobuf.MapField + internalGetCounters() { + if (counters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CountersDefaultEntryHolder.defaultEntry); + } + return counters_; + } + + public int getCountersCount() { + return internalGetCounters().getMap().size(); + } + /** + *
+     * Counters defines the set of counters for this CounterSet
+     * The name of each counter must be unique in that set and must be a DNS label.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public boolean containsCounters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetCounters().getMap().containsKey(key); + } + /** + * Use {@link #getCountersMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getCounters() { + return getCountersMap(); + } + /** + *
+     * Counters defines the set of counters for this CounterSet
+     * The name of each counter must be unique in that set and must be a DNS label.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public java.util.Map getCountersMap() { + return internalGetCounters().getMap(); + } + /** + *
+     * Counters defines the set of counters for this CounterSet
+     * The name of each counter must be unique in that set and must be a DNS label.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public io.kubernetes.client.proto.V1Resource.Counter getCountersOrDefault( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.Counter defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCounters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Counters defines the set of counters for this CounterSet
+     * The name of each counter must be unique in that set and must be a DNS label.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public io.kubernetes.client.proto.V1Resource.Counter getCountersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCounters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCounters(), + CountersDefaultEntryHolder.defaultEntry, + 2); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (java.util.Map.Entry entry + : internalGetCounters().getMap().entrySet()) { + com.google.protobuf.MapEntry + counters__ = CountersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, counters__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.CounterSet)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.CounterSet other = (io.kubernetes.client.proto.V1Resource.CounterSet) obj; + + boolean result = true; + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && internalGetCounters().equals( + other.internalGetCounters()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (!internalGetCounters().getMap().isEmpty()) { + hash = (37 * hash) + COUNTERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetCounters().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.CounterSet parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.CounterSet parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CounterSet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.CounterSet parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CounterSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.CounterSet parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CounterSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.CounterSet parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CounterSet parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.CounterSet parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.CounterSet parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.CounterSet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.CounterSet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * CounterSet defines a named set of counters
+     * that are available to be used by devices defined in the
+     * ResourcePool.
+     * The counters are not allocatable by themselves, but
+     * can be referenced by devices. When a device is allocated,
+     * the portion of counters it uses will no longer be available for use
+     * by other devices.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.CounterSet} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.CounterSet) + io.kubernetes.client.proto.V1Resource.CounterSetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CounterSet_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetCounters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableCounters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CounterSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.CounterSet.class, io.kubernetes.client.proto.V1Resource.CounterSet.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.CounterSet.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableCounters().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_CounterSet_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CounterSet getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.CounterSet.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CounterSet build() { + io.kubernetes.client.proto.V1Resource.CounterSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CounterSet buildPartial() { + io.kubernetes.client.proto.V1Resource.CounterSet result = new io.kubernetes.client.proto.V1Resource.CounterSet(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + result.counters_ = internalGetCounters(); + result.counters_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.CounterSet) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.CounterSet)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.CounterSet other) { + if (other == io.kubernetes.client.proto.V1Resource.CounterSet.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + internalGetMutableCounters().mergeFrom( + other.internalGetCounters()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.CounterSet parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.CounterSet) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * Name defines the name of the counter set.
+       * It must be a DNS label.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+       * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Name defines the name of the counter set.
+       * It must be a DNS label.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+       * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name defines the name of the counter set.
+       * It must be a DNS label.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+       * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name defines the name of the counter set.
+       * It must be a DNS label.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+       * 
+ * + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Name defines the name of the counter set.
+       * It must be a DNS label.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+       * 
+ * + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name defines the name of the counter set.
+       * It must be a DNS label.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+       * 
+ * + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.V1Resource.Counter> counters_; + private com.google.protobuf.MapField + internalGetCounters() { + if (counters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CountersDefaultEntryHolder.defaultEntry); + } + return counters_; + } + private com.google.protobuf.MapField + internalGetMutableCounters() { + onChanged();; + if (counters_ == null) { + counters_ = com.google.protobuf.MapField.newMapField( + CountersDefaultEntryHolder.defaultEntry); + } + if (!counters_.isMutable()) { + counters_ = counters_.copy(); + } + return counters_; + } + + public int getCountersCount() { + return internalGetCounters().getMap().size(); + } + /** + *
+       * Counters defines the set of counters for this CounterSet
+       * The name of each counter must be unique in that set and must be a DNS label.
+       * The maximum number of counters is 32.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public boolean containsCounters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetCounters().getMap().containsKey(key); + } + /** + * Use {@link #getCountersMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getCounters() { + return getCountersMap(); + } + /** + *
+       * Counters defines the set of counters for this CounterSet
+       * The name of each counter must be unique in that set and must be a DNS label.
+       * The maximum number of counters is 32.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public java.util.Map getCountersMap() { + return internalGetCounters().getMap(); + } + /** + *
+       * Counters defines the set of counters for this CounterSet
+       * The name of each counter must be unique in that set and must be a DNS label.
+       * The maximum number of counters is 32.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public io.kubernetes.client.proto.V1Resource.Counter getCountersOrDefault( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.Counter defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCounters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Counters defines the set of counters for this CounterSet
+       * The name of each counter must be unique in that set and must be a DNS label.
+       * The maximum number of counters is 32.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public io.kubernetes.client.proto.V1Resource.Counter getCountersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCounters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCounters() { + internalGetMutableCounters().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Counters defines the set of counters for this CounterSet
+       * The name of each counter must be unique in that set and must be a DNS label.
+       * The maximum number of counters is 32.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public Builder removeCounters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableCounters().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCounters() { + return internalGetMutableCounters().getMutableMap(); + } + /** + *
+       * Counters defines the set of counters for this CounterSet
+       * The name of each counter must be unique in that set and must be a DNS label.
+       * The maximum number of counters is 32.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + public Builder putCounters( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.Counter value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableCounters().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Counters defines the set of counters for this CounterSet
+       * The name of each counter must be unique in that set and must be a DNS label.
+       * The maximum number of counters is 32.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public Builder putAllCounters( + java.util.Map values) { + internalGetMutableCounters().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.CounterSet) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.CounterSet) + private static final io.kubernetes.client.proto.V1Resource.CounterSet DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.CounterSet(); + } + + public static io.kubernetes.client.proto.V1Resource.CounterSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CounterSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CounterSet(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.CounterSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.Device) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name is unique identifier among all devices managed by
+     * the driver in the pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + boolean hasName(); + /** + *
+     * Name is unique identifier among all devices managed by
+     * the driver in the pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + java.lang.String getName(); + /** + *
+     * Name is unique identifier among all devices managed by
+     * the driver in the pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Attributes defines the set of attributes for this device.
+     * The name of each attribute must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + int getAttributesCount(); + /** + *
+     * Attributes defines the set of attributes for this device.
+     * The name of each attribute must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + boolean containsAttributes( + java.lang.String key); + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getAttributes(); + /** + *
+     * Attributes defines the set of attributes for this device.
+     * The name of each attribute must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + java.util.Map + getAttributesMap(); + /** + *
+     * Attributes defines the set of attributes for this device.
+     * The name of each attribute must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + + io.kubernetes.client.proto.V1Resource.DeviceAttribute getAttributesOrDefault( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.DeviceAttribute defaultValue); + /** + *
+     * Attributes defines the set of attributes for this device.
+     * The name of each attribute must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + + io.kubernetes.client.proto.V1Resource.DeviceAttribute getAttributesOrThrow( + java.lang.String key); + + /** + *
+     * Capacity defines the set of capacities for this device.
+     * The name of each capacity must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + int getCapacityCount(); + /** + *
+     * Capacity defines the set of capacities for this device.
+     * The name of each capacity must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + boolean containsCapacity( + java.lang.String key); + /** + * Use {@link #getCapacityMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCapacity(); + /** + *
+     * Capacity defines the set of capacities for this device.
+     * The name of each capacity must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + java.util.Map + getCapacityMap(); + /** + *
+     * Capacity defines the set of capacities for this device.
+     * The name of each capacity must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + + io.kubernetes.client.proto.V1Resource.DeviceCapacity getCapacityOrDefault( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.DeviceCapacity defaultValue); + /** + *
+     * Capacity defines the set of capacities for this device.
+     * The name of each capacity must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + + io.kubernetes.client.proto.V1Resource.DeviceCapacity getCapacityOrThrow( + java.lang.String key); + + /** + *
+     * ConsumesCounters defines a list of references to sharedCounters
+     * and the set of counters that the device will
+     * consume from those counter sets.
+     * There can only be a single entry per counterSet.
+     * The maximum number of device counter consumptions per
+     * device is 2.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+     * +featureGate=DRAPartitionableDevices
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + java.util.List + getConsumesCountersList(); + /** + *
+     * ConsumesCounters defines a list of references to sharedCounters
+     * and the set of counters that the device will
+     * consume from those counter sets.
+     * There can only be a single entry per counterSet.
+     * The maximum number of device counter consumptions per
+     * device is 2.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+     * +featureGate=DRAPartitionableDevices
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption getConsumesCounters(int index); + /** + *
+     * ConsumesCounters defines a list of references to sharedCounters
+     * and the set of counters that the device will
+     * consume from those counter sets.
+     * There can only be a single entry per counterSet.
+     * The maximum number of device counter consumptions per
+     * device is 2.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+     * +featureGate=DRAPartitionableDevices
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + int getConsumesCountersCount(); + /** + *
+     * ConsumesCounters defines a list of references to sharedCounters
+     * and the set of counters that the device will
+     * consume from those counter sets.
+     * There can only be a single entry per counterSet.
+     * The maximum number of device counter consumptions per
+     * device is 2.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+     * +featureGate=DRAPartitionableDevices
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + java.util.List + getConsumesCountersOrBuilderList(); + /** + *
+     * ConsumesCounters defines a list of references to sharedCounters
+     * and the set of counters that the device will
+     * consume from those counter sets.
+     * There can only be a single entry per counterSet.
+     * The maximum number of device counter consumptions per
+     * device is 2.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+     * +featureGate=DRAPartitionableDevices
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + io.kubernetes.client.proto.V1Resource.DeviceCounterConsumptionOrBuilder getConsumesCountersOrBuilder( + int index); + + /** + *
+     * NodeName identifies the node where the device is available.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional string nodeName = 5; + */ + boolean hasNodeName(); + /** + *
+     * NodeName identifies the node where the device is available.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional string nodeName = 5; + */ + java.lang.String getNodeName(); + /** + *
+     * NodeName identifies the node where the device is available.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional string nodeName = 5; + */ + com.google.protobuf.ByteString + getNodeNameBytes(); + + /** + *
+     * NodeSelector defines the nodes where the device is available.
+     * Must use exactly one term.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + */ + boolean hasNodeSelector(); + /** + *
+     * NodeSelector defines the nodes where the device is available.
+     * Must use exactly one term.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + */ + io.kubernetes.client.proto.V1.NodeSelector getNodeSelector(); + /** + *
+     * NodeSelector defines the nodes where the device is available.
+     * Must use exactly one term.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + */ + io.kubernetes.client.proto.V1.NodeSelectorOrBuilder getNodeSelectorOrBuilder(); + + /** + *
+     * AllNodes indicates that all nodes have access to the device.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional bool allNodes = 7; + */ + boolean hasAllNodes(); + /** + *
+     * AllNodes indicates that all nodes have access to the device.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional bool allNodes = 7; + */ + boolean getAllNodes(); + + /** + *
+     * If specified, these are the driver-defined taints.
+     * The maximum number of taints is 16. If taints are set for
+     * any device in a ResourceSlice, then the maximum number of
+     * allowed devices per ResourceSlice is 64 instead of 128.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + java.util.List + getTaintsList(); + /** + *
+     * If specified, these are the driver-defined taints.
+     * The maximum number of taints is 16. If taints are set for
+     * any device in a ResourceSlice, then the maximum number of
+     * allowed devices per ResourceSlice is 64 instead of 128.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + io.kubernetes.client.proto.V1Resource.DeviceTaint getTaints(int index); + /** + *
+     * If specified, these are the driver-defined taints.
+     * The maximum number of taints is 16. If taints are set for
+     * any device in a ResourceSlice, then the maximum number of
+     * allowed devices per ResourceSlice is 64 instead of 128.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + int getTaintsCount(); + /** + *
+     * If specified, these are the driver-defined taints.
+     * The maximum number of taints is 16. If taints are set for
+     * any device in a ResourceSlice, then the maximum number of
+     * allowed devices per ResourceSlice is 64 instead of 128.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + java.util.List + getTaintsOrBuilderList(); + /** + *
+     * If specified, these are the driver-defined taints.
+     * The maximum number of taints is 16. If taints are set for
+     * any device in a ResourceSlice, then the maximum number of
+     * allowed devices per ResourceSlice is 64 instead of 128.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + io.kubernetes.client.proto.V1Resource.DeviceTaintOrBuilder getTaintsOrBuilder( + int index); + + /** + *
+     * BindsToNode indicates if the usage of an allocation involving this device
+     * has to be limited to exactly the node that was chosen when allocating the claim.
+     * If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector
+     * to match the node where the allocation was made.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * 
+ * + * optional bool bindsToNode = 9; + */ + boolean hasBindsToNode(); + /** + *
+     * BindsToNode indicates if the usage of an allocation involving this device
+     * has to be limited to exactly the node that was chosen when allocating the claim.
+     * If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector
+     * to match the node where the allocation was made.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * 
+ * + * optional bool bindsToNode = 9; + */ + boolean getBindsToNode(); + + /** + *
+     * BindingConditions defines the conditions for proceeding with binding.
+     * All of these conditions must be set in the per-device status
+     * conditions with a value of True to proceed with binding the pod to the node
+     * while scheduling the pod.
+     * The maximum number of binding conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 10; + */ + java.util.List + getBindingConditionsList(); + /** + *
+     * BindingConditions defines the conditions for proceeding with binding.
+     * All of these conditions must be set in the per-device status
+     * conditions with a value of True to proceed with binding the pod to the node
+     * while scheduling the pod.
+     * The maximum number of binding conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 10; + */ + int getBindingConditionsCount(); + /** + *
+     * BindingConditions defines the conditions for proceeding with binding.
+     * All of these conditions must be set in the per-device status
+     * conditions with a value of True to proceed with binding the pod to the node
+     * while scheduling the pod.
+     * The maximum number of binding conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 10; + */ + java.lang.String getBindingConditions(int index); + /** + *
+     * BindingConditions defines the conditions for proceeding with binding.
+     * All of these conditions must be set in the per-device status
+     * conditions with a value of True to proceed with binding the pod to the node
+     * while scheduling the pod.
+     * The maximum number of binding conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 10; + */ + com.google.protobuf.ByteString + getBindingConditionsBytes(int index); + + /** + *
+     * BindingFailureConditions defines the conditions for binding failure.
+     * They may be set in the per-device status conditions.
+     * If any is set to "True", a binding failure occurred.
+     * The maximum number of binding failure conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 11; + */ + java.util.List + getBindingFailureConditionsList(); + /** + *
+     * BindingFailureConditions defines the conditions for binding failure.
+     * They may be set in the per-device status conditions.
+     * If any is set to "True", a binding failure occurred.
+     * The maximum number of binding failure conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 11; + */ + int getBindingFailureConditionsCount(); + /** + *
+     * BindingFailureConditions defines the conditions for binding failure.
+     * They may be set in the per-device status conditions.
+     * If any is set to "True", a binding failure occurred.
+     * The maximum number of binding failure conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 11; + */ + java.lang.String getBindingFailureConditions(int index); + /** + *
+     * BindingFailureConditions defines the conditions for binding failure.
+     * They may be set in the per-device status conditions.
+     * If any is set to "True", a binding failure occurred.
+     * The maximum number of binding failure conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 11; + */ + com.google.protobuf.ByteString + getBindingFailureConditionsBytes(int index); + + /** + *
+     * AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests.
+     * If AllowMultipleAllocations is set to true, the device can be allocated more than once,
+     * and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional bool allowMultipleAllocations = 12; + */ + boolean hasAllowMultipleAllocations(); + /** + *
+     * AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests.
+     * If AllowMultipleAllocations is set to true, the device can be allocated more than once,
+     * and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional bool allowMultipleAllocations = 12; + */ + boolean getAllowMultipleAllocations(); + + /** + *
+     * NodeAllocatableResourceMappings defines the mapping of node resources
+     * that are managed by the DRA driver exposing this device. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * In addition to standard requests made through the Pod `spec`, these resources
+     * can also be requested through claims and allocated by the DRA driver.
+     * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+     * dependencies of an accelerator device.
+     * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+     * Extended resource names are not permitted as keys.
+     * +optional
+     * +featureGate=DRANodeAllocatableResources
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + int getNodeAllocatableResourceMappingsCount(); + /** + *
+     * NodeAllocatableResourceMappings defines the mapping of node resources
+     * that are managed by the DRA driver exposing this device. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * In addition to standard requests made through the Pod `spec`, these resources
+     * can also be requested through claims and allocated by the DRA driver.
+     * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+     * dependencies of an accelerator device.
+     * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+     * Extended resource names are not permitted as keys.
+     * +optional
+     * +featureGate=DRANodeAllocatableResources
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + boolean containsNodeAllocatableResourceMappings( + java.lang.String key); + /** + * Use {@link #getNodeAllocatableResourceMappingsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getNodeAllocatableResourceMappings(); + /** + *
+     * NodeAllocatableResourceMappings defines the mapping of node resources
+     * that are managed by the DRA driver exposing this device. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * In addition to standard requests made through the Pod `spec`, these resources
+     * can also be requested through claims and allocated by the DRA driver.
+     * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+     * dependencies of an accelerator device.
+     * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+     * Extended resource names are not permitted as keys.
+     * +optional
+     * +featureGate=DRANodeAllocatableResources
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + java.util.Map + getNodeAllocatableResourceMappingsMap(); + /** + *
+     * NodeAllocatableResourceMappings defines the mapping of node resources
+     * that are managed by the DRA driver exposing this device. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * In addition to standard requests made through the Pod `spec`, these resources
+     * can also be requested through claims and allocated by the DRA driver.
+     * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+     * dependencies of an accelerator device.
+     * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+     * Extended resource names are not permitted as keys.
+     * +optional
+     * +featureGate=DRANodeAllocatableResources
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + + io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping getNodeAllocatableResourceMappingsOrDefault( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping defaultValue); + /** + *
+     * NodeAllocatableResourceMappings defines the mapping of node resources
+     * that are managed by the DRA driver exposing this device. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * In addition to standard requests made through the Pod `spec`, these resources
+     * can also be requested through claims and allocated by the DRA driver.
+     * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+     * dependencies of an accelerator device.
+     * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+     * Extended resource names are not permitted as keys.
+     * +optional
+     * +featureGate=DRANodeAllocatableResources
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + + io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping getNodeAllocatableResourceMappingsOrThrow( + java.lang.String key); + } + /** + *
+   * Device represents one individual hardware instance that can be selected based
+   * on its attributes. Besides the name, exactly one field must be set.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.Device} + */ + public static final class Device extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.Device) + DeviceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Device.newBuilder() to construct. + private Device(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Device() { + name_ = ""; + consumesCounters_ = java.util.Collections.emptyList(); + nodeName_ = ""; + allNodes_ = false; + taints_ = java.util.Collections.emptyList(); + bindsToNode_ = false; + bindingConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bindingFailureConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + allowMultipleAllocations_ = false; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Device( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + attributes__ = input.readMessage( + AttributesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + attributes_.getMutableMap().put( + attributes__.getKey(), attributes__.getValue()); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + capacity_ = com.google.protobuf.MapField.newMapField( + CapacityDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry + capacity__ = input.readMessage( + CapacityDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + capacity_.getMutableMap().put( + capacity__.getKey(), capacity__.getValue()); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + consumesCounters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000008; + } + consumesCounters_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.PARSER, extensionRegistry)); + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + nodeName_ = bs; + break; + } + case 50: { + io.kubernetes.client.proto.V1.NodeSelector.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = nodeSelector_.toBuilder(); + } + nodeSelector_ = input.readMessage(io.kubernetes.client.proto.V1.NodeSelector.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeSelector_); + nodeSelector_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + case 56: { + bitField0_ |= 0x00000008; + allNodes_ = input.readBool(); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + taints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + taints_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceTaint.PARSER, extensionRegistry)); + break; + } + case 72: { + bitField0_ |= 0x00000010; + bindsToNode_ = input.readBool(); + break; + } + case 82: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + bindingConditions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000200; + } + bindingConditions_.add(bs); + break; + } + case 90: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + bindingFailureConditions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000400; + } + bindingFailureConditions_.add(bs); + break; + } + case 96: { + bitField0_ |= 0x00000020; + allowMultipleAllocations_ = input.readBool(); + break; + } + case 106: { + if (!((mutable_bitField0_ & 0x00001000) == 0x00001000)) { + nodeAllocatableResourceMappings_ = com.google.protobuf.MapField.newMapField( + NodeAllocatableResourceMappingsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00001000; + } + com.google.protobuf.MapEntry + nodeAllocatableResourceMappings__ = input.readMessage( + NodeAllocatableResourceMappingsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + nodeAllocatableResourceMappings_.getMutableMap().put( + nodeAllocatableResourceMappings__.getKey(), nodeAllocatableResourceMappings__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + consumesCounters_ = java.util.Collections.unmodifiableList(consumesCounters_); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + } + if (((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + bindingConditions_ = bindingConditions_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000400) == 0x00000400)) { + bindingFailureConditions_ = bindingFailureConditions_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_Device_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetAttributes(); + case 3: + return internalGetCapacity(); + case 13: + return internalGetNodeAllocatableResourceMappings(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_Device_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.Device.class, io.kubernetes.client.proto.V1Resource.Device.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Name is unique identifier among all devices managed by
+     * the driver in the pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Name is unique identifier among all devices managed by
+     * the driver in the pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + *
+     * Name is unique identifier among all devices managed by
+     * the driver in the pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ATTRIBUTES_FIELD_NUMBER = 2; + private static final class AttributesDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, io.kubernetes.client.proto.V1Resource.DeviceAttribute> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_Device_AttributesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + io.kubernetes.client.proto.V1Resource.DeviceAttribute.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.V1Resource.DeviceAttribute> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + *
+     * Attributes defines the set of attributes for this device.
+     * The name of each attribute must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + *
+     * Attributes defines the set of attributes for this device.
+     * The name of each attribute must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + *
+     * Attributes defines the set of attributes for this device.
+     * The name of each attribute must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + + public io.kubernetes.client.proto.V1Resource.DeviceAttribute getAttributesOrDefault( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.DeviceAttribute defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Attributes defines the set of attributes for this device.
+     * The name of each attribute must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + + public io.kubernetes.client.proto.V1Resource.DeviceAttribute getAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CAPACITY_FIELD_NUMBER = 3; + private static final class CapacityDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, io.kubernetes.client.proto.V1Resource.DeviceCapacity> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_Device_CapacityEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + io.kubernetes.client.proto.V1Resource.DeviceCapacity.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.V1Resource.DeviceCapacity> capacity_; + private com.google.protobuf.MapField + internalGetCapacity() { + if (capacity_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CapacityDefaultEntryHolder.defaultEntry); + } + return capacity_; + } + + public int getCapacityCount() { + return internalGetCapacity().getMap().size(); + } + /** + *
+     * Capacity defines the set of capacities for this device.
+     * The name of each capacity must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + + public boolean containsCapacity( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetCapacity().getMap().containsKey(key); + } + /** + * Use {@link #getCapacityMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getCapacity() { + return getCapacityMap(); + } + /** + *
+     * Capacity defines the set of capacities for this device.
+     * The name of each capacity must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + + public java.util.Map getCapacityMap() { + return internalGetCapacity().getMap(); + } + /** + *
+     * Capacity defines the set of capacities for this device.
+     * The name of each capacity must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + + public io.kubernetes.client.proto.V1Resource.DeviceCapacity getCapacityOrDefault( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.DeviceCapacity defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCapacity().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Capacity defines the set of capacities for this device.
+     * The name of each capacity must be unique in that set.
+     * The maximum number of attributes and capacities combined is 32.
+     * +optional
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + + public io.kubernetes.client.proto.V1Resource.DeviceCapacity getCapacityOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCapacity().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CONSUMESCOUNTERS_FIELD_NUMBER = 4; + private java.util.List consumesCounters_; + /** + *
+     * ConsumesCounters defines a list of references to sharedCounters
+     * and the set of counters that the device will
+     * consume from those counter sets.
+     * There can only be a single entry per counterSet.
+     * The maximum number of device counter consumptions per
+     * device is 2.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+     * +featureGate=DRAPartitionableDevices
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public java.util.List getConsumesCountersList() { + return consumesCounters_; + } + /** + *
+     * ConsumesCounters defines a list of references to sharedCounters
+     * and the set of counters that the device will
+     * consume from those counter sets.
+     * There can only be a single entry per counterSet.
+     * The maximum number of device counter consumptions per
+     * device is 2.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+     * +featureGate=DRAPartitionableDevices
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public java.util.List + getConsumesCountersOrBuilderList() { + return consumesCounters_; + } + /** + *
+     * ConsumesCounters defines a list of references to sharedCounters
+     * and the set of counters that the device will
+     * consume from those counter sets.
+     * There can only be a single entry per counterSet.
+     * The maximum number of device counter consumptions per
+     * device is 2.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+     * +featureGate=DRAPartitionableDevices
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public int getConsumesCountersCount() { + return consumesCounters_.size(); + } + /** + *
+     * ConsumesCounters defines a list of references to sharedCounters
+     * and the set of counters that the device will
+     * consume from those counter sets.
+     * There can only be a single entry per counterSet.
+     * The maximum number of device counter consumptions per
+     * device is 2.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+     * +featureGate=DRAPartitionableDevices
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption getConsumesCounters(int index) { + return consumesCounters_.get(index); + } + /** + *
+     * ConsumesCounters defines a list of references to sharedCounters
+     * and the set of counters that the device will
+     * consume from those counter sets.
+     * There can only be a single entry per counterSet.
+     * The maximum number of device counter consumptions per
+     * device is 2.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+     * +featureGate=DRAPartitionableDevices
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public io.kubernetes.client.proto.V1Resource.DeviceCounterConsumptionOrBuilder getConsumesCountersOrBuilder( + int index) { + return consumesCounters_.get(index); + } + + public static final int NODENAME_FIELD_NUMBER = 5; + private volatile java.lang.Object nodeName_; + /** + *
+     * NodeName identifies the node where the device is available.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional string nodeName = 5; + */ + public boolean hasNodeName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * NodeName identifies the node where the device is available.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional string nodeName = 5; + */ + public java.lang.String getNodeName() { + java.lang.Object ref = nodeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + nodeName_ = s; + } + return s; + } + } + /** + *
+     * NodeName identifies the node where the device is available.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional string nodeName = 5; + */ + public com.google.protobuf.ByteString + getNodeNameBytes() { + java.lang.Object ref = nodeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODESELECTOR_FIELD_NUMBER = 6; + private io.kubernetes.client.proto.V1.NodeSelector nodeSelector_; + /** + *
+     * NodeSelector defines the nodes where the device is available.
+     * Must use exactly one term.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + */ + public boolean hasNodeSelector() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * NodeSelector defines the nodes where the device is available.
+     * Must use exactly one term.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + */ + public io.kubernetes.client.proto.V1.NodeSelector getNodeSelector() { + return nodeSelector_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : nodeSelector_; + } + /** + *
+     * NodeSelector defines the nodes where the device is available.
+     * Must use exactly one term.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + */ + public io.kubernetes.client.proto.V1.NodeSelectorOrBuilder getNodeSelectorOrBuilder() { + return nodeSelector_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : nodeSelector_; + } + + public static final int ALLNODES_FIELD_NUMBER = 7; + private boolean allNodes_; + /** + *
+     * AllNodes indicates that all nodes have access to the device.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional bool allNodes = 7; + */ + public boolean hasAllNodes() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * AllNodes indicates that all nodes have access to the device.
+     * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+     * At most one of NodeName, NodeSelector and AllNodes can be set.
+     * +optional
+     * +oneOf=DeviceNodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional bool allNodes = 7; + */ + public boolean getAllNodes() { + return allNodes_; + } + + public static final int TAINTS_FIELD_NUMBER = 8; + private java.util.List taints_; + /** + *
+     * If specified, these are the driver-defined taints.
+     * The maximum number of taints is 16. If taints are set for
+     * any device in a ResourceSlice, then the maximum number of
+     * allowed devices per ResourceSlice is 64 instead of 128.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public java.util.List getTaintsList() { + return taints_; + } + /** + *
+     * If specified, these are the driver-defined taints.
+     * The maximum number of taints is 16. If taints are set for
+     * any device in a ResourceSlice, then the maximum number of
+     * allowed devices per ResourceSlice is 64 instead of 128.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public java.util.List + getTaintsOrBuilderList() { + return taints_; + } + /** + *
+     * If specified, these are the driver-defined taints.
+     * The maximum number of taints is 16. If taints are set for
+     * any device in a ResourceSlice, then the maximum number of
+     * allowed devices per ResourceSlice is 64 instead of 128.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public int getTaintsCount() { + return taints_.size(); + } + /** + *
+     * If specified, these are the driver-defined taints.
+     * The maximum number of taints is 16. If taints are set for
+     * any device in a ResourceSlice, then the maximum number of
+     * allowed devices per ResourceSlice is 64 instead of 128.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public io.kubernetes.client.proto.V1Resource.DeviceTaint getTaints(int index) { + return taints_.get(index); + } + /** + *
+     * If specified, these are the driver-defined taints.
+     * The maximum number of taints is 16. If taints are set for
+     * any device in a ResourceSlice, then the maximum number of
+     * allowed devices per ResourceSlice is 64 instead of 128.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public io.kubernetes.client.proto.V1Resource.DeviceTaintOrBuilder getTaintsOrBuilder( + int index) { + return taints_.get(index); + } + + public static final int BINDSTONODE_FIELD_NUMBER = 9; + private boolean bindsToNode_; + /** + *
+     * BindsToNode indicates if the usage of an allocation involving this device
+     * has to be limited to exactly the node that was chosen when allocating the claim.
+     * If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector
+     * to match the node where the allocation was made.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * 
+ * + * optional bool bindsToNode = 9; + */ + public boolean hasBindsToNode() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+     * BindsToNode indicates if the usage of an allocation involving this device
+     * has to be limited to exactly the node that was chosen when allocating the claim.
+     * If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector
+     * to match the node where the allocation was made.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * 
+ * + * optional bool bindsToNode = 9; + */ + public boolean getBindsToNode() { + return bindsToNode_; + } + + public static final int BINDINGCONDITIONS_FIELD_NUMBER = 10; + private com.google.protobuf.LazyStringList bindingConditions_; + /** + *
+     * BindingConditions defines the conditions for proceeding with binding.
+     * All of these conditions must be set in the per-device status
+     * conditions with a value of True to proceed with binding the pod to the node
+     * while scheduling the pod.
+     * The maximum number of binding conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 10; + */ + public com.google.protobuf.ProtocolStringList + getBindingConditionsList() { + return bindingConditions_; + } + /** + *
+     * BindingConditions defines the conditions for proceeding with binding.
+     * All of these conditions must be set in the per-device status
+     * conditions with a value of True to proceed with binding the pod to the node
+     * while scheduling the pod.
+     * The maximum number of binding conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 10; + */ + public int getBindingConditionsCount() { + return bindingConditions_.size(); + } + /** + *
+     * BindingConditions defines the conditions for proceeding with binding.
+     * All of these conditions must be set in the per-device status
+     * conditions with a value of True to proceed with binding the pod to the node
+     * while scheduling the pod.
+     * The maximum number of binding conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 10; + */ + public java.lang.String getBindingConditions(int index) { + return bindingConditions_.get(index); + } + /** + *
+     * BindingConditions defines the conditions for proceeding with binding.
+     * All of these conditions must be set in the per-device status
+     * conditions with a value of True to proceed with binding the pod to the node
+     * while scheduling the pod.
+     * The maximum number of binding conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 10; + */ + public com.google.protobuf.ByteString + getBindingConditionsBytes(int index) { + return bindingConditions_.getByteString(index); + } + + public static final int BINDINGFAILURECONDITIONS_FIELD_NUMBER = 11; + private com.google.protobuf.LazyStringList bindingFailureConditions_; + /** + *
+     * BindingFailureConditions defines the conditions for binding failure.
+     * They may be set in the per-device status conditions.
+     * If any is set to "True", a binding failure occurred.
+     * The maximum number of binding failure conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 11; + */ + public com.google.protobuf.ProtocolStringList + getBindingFailureConditionsList() { + return bindingFailureConditions_; + } + /** + *
+     * BindingFailureConditions defines the conditions for binding failure.
+     * They may be set in the per-device status conditions.
+     * If any is set to "True", a binding failure occurred.
+     * The maximum number of binding failure conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 11; + */ + public int getBindingFailureConditionsCount() { + return bindingFailureConditions_.size(); + } + /** + *
+     * BindingFailureConditions defines the conditions for binding failure.
+     * They may be set in the per-device status conditions.
+     * If any is set to "True", a binding failure occurred.
+     * The maximum number of binding failure conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 11; + */ + public java.lang.String getBindingFailureConditions(int index) { + return bindingFailureConditions_.get(index); + } + /** + *
+     * BindingFailureConditions defines the conditions for binding failure.
+     * They may be set in the per-device status conditions.
+     * If any is set to "True", a binding failure occurred.
+     * The maximum number of binding failure conditions is 4.
+     * The conditions must be a valid condition type string.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 11; + */ + public com.google.protobuf.ByteString + getBindingFailureConditionsBytes(int index) { + return bindingFailureConditions_.getByteString(index); + } + + public static final int ALLOWMULTIPLEALLOCATIONS_FIELD_NUMBER = 12; + private boolean allowMultipleAllocations_; + /** + *
+     * AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests.
+     * If AllowMultipleAllocations is set to true, the device can be allocated more than once,
+     * and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional bool allowMultipleAllocations = 12; + */ + public boolean hasAllowMultipleAllocations() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+     * AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests.
+     * If AllowMultipleAllocations is set to true, the device can be allocated more than once,
+     * and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional bool allowMultipleAllocations = 12; + */ + public boolean getAllowMultipleAllocations() { + return allowMultipleAllocations_; + } + + public static final int NODEALLOCATABLERESOURCEMAPPINGS_FIELD_NUMBER = 13; + private static final class NodeAllocatableResourceMappingsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_Device_NodeAllocatableResourceMappingsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings_; + private com.google.protobuf.MapField + internalGetNodeAllocatableResourceMappings() { + if (nodeAllocatableResourceMappings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NodeAllocatableResourceMappingsDefaultEntryHolder.defaultEntry); + } + return nodeAllocatableResourceMappings_; + } + + public int getNodeAllocatableResourceMappingsCount() { + return internalGetNodeAllocatableResourceMappings().getMap().size(); + } + /** + *
+     * NodeAllocatableResourceMappings defines the mapping of node resources
+     * that are managed by the DRA driver exposing this device. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * In addition to standard requests made through the Pod `spec`, these resources
+     * can also be requested through claims and allocated by the DRA driver.
+     * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+     * dependencies of an accelerator device.
+     * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+     * Extended resource names are not permitted as keys.
+     * +optional
+     * +featureGate=DRANodeAllocatableResources
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + + public boolean containsNodeAllocatableResourceMappings( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetNodeAllocatableResourceMappings().getMap().containsKey(key); + } + /** + * Use {@link #getNodeAllocatableResourceMappingsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getNodeAllocatableResourceMappings() { + return getNodeAllocatableResourceMappingsMap(); + } + /** + *
+     * NodeAllocatableResourceMappings defines the mapping of node resources
+     * that are managed by the DRA driver exposing this device. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * In addition to standard requests made through the Pod `spec`, these resources
+     * can also be requested through claims and allocated by the DRA driver.
+     * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+     * dependencies of an accelerator device.
+     * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+     * Extended resource names are not permitted as keys.
+     * +optional
+     * +featureGate=DRANodeAllocatableResources
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + + public java.util.Map getNodeAllocatableResourceMappingsMap() { + return internalGetNodeAllocatableResourceMappings().getMap(); + } + /** + *
+     * NodeAllocatableResourceMappings defines the mapping of node resources
+     * that are managed by the DRA driver exposing this device. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * In addition to standard requests made through the Pod `spec`, these resources
+     * can also be requested through claims and allocated by the DRA driver.
+     * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+     * dependencies of an accelerator device.
+     * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+     * Extended resource names are not permitted as keys.
+     * +optional
+     * +featureGate=DRANodeAllocatableResources
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + + public io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping getNodeAllocatableResourceMappingsOrDefault( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetNodeAllocatableResourceMappings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * NodeAllocatableResourceMappings defines the mapping of node resources
+     * that are managed by the DRA driver exposing this device. This includes resources currently
+     * reported in v1.Node `status.allocatable` that are not extended resources
+     * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+     * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+     * In addition to standard requests made through the Pod `spec`, these resources
+     * can also be requested through claims and allocated by the DRA driver.
+     * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+     * dependencies of an accelerator device.
+     * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+     * Extended resource names are not permitted as keys.
+     * +optional
+     * +featureGate=DRANodeAllocatableResources
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + + public io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping getNodeAllocatableResourceMappingsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetNodeAllocatableResourceMappings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetAttributes(), + AttributesDefaultEntryHolder.defaultEntry, + 2); + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCapacity(), + CapacityDefaultEntryHolder.defaultEntry, + 3); + for (int i = 0; i < consumesCounters_.size(); i++) { + output.writeMessage(4, consumesCounters_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, nodeName_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(6, getNodeSelector()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBool(7, allNodes_); + } + for (int i = 0; i < taints_.size(); i++) { + output.writeMessage(8, taints_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBool(9, bindsToNode_); + } + for (int i = 0; i < bindingConditions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, bindingConditions_.getRaw(i)); + } + for (int i = 0; i < bindingFailureConditions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, bindingFailureConditions_.getRaw(i)); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBool(12, allowMultipleAllocations_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetNodeAllocatableResourceMappings(), + NodeAllocatableResourceMappingsDefaultEntryHolder.defaultEntry, + 13); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + for (java.util.Map.Entry entry + : internalGetAttributes().getMap().entrySet()) { + com.google.protobuf.MapEntry + attributes__ = AttributesDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, attributes__); + } + for (java.util.Map.Entry entry + : internalGetCapacity().getMap().entrySet()) { + com.google.protobuf.MapEntry + capacity__ = CapacityDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, capacity__); + } + for (int i = 0; i < consumesCounters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, consumesCounters_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, nodeName_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getNodeSelector()); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, allNodes_); + } + for (int i = 0; i < taints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, taints_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(9, bindsToNode_); + } + { + int dataSize = 0; + for (int i = 0; i < bindingConditions_.size(); i++) { + dataSize += computeStringSizeNoTag(bindingConditions_.getRaw(i)); + } + size += dataSize; + size += 1 * getBindingConditionsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < bindingFailureConditions_.size(); i++) { + dataSize += computeStringSizeNoTag(bindingFailureConditions_.getRaw(i)); + } + size += dataSize; + size += 1 * getBindingFailureConditionsList().size(); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, allowMultipleAllocations_); + } + for (java.util.Map.Entry entry + : internalGetNodeAllocatableResourceMappings().getMap().entrySet()) { + com.google.protobuf.MapEntry + nodeAllocatableResourceMappings__ = NodeAllocatableResourceMappingsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(13, nodeAllocatableResourceMappings__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.Device)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.Device other = (io.kubernetes.client.proto.V1Resource.Device) obj; + + boolean result = true; + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && internalGetAttributes().equals( + other.internalGetAttributes()); + result = result && internalGetCapacity().equals( + other.internalGetCapacity()); + result = result && getConsumesCountersList() + .equals(other.getConsumesCountersList()); + result = result && (hasNodeName() == other.hasNodeName()); + if (hasNodeName()) { + result = result && getNodeName() + .equals(other.getNodeName()); + } + result = result && (hasNodeSelector() == other.hasNodeSelector()); + if (hasNodeSelector()) { + result = result && getNodeSelector() + .equals(other.getNodeSelector()); + } + result = result && (hasAllNodes() == other.hasAllNodes()); + if (hasAllNodes()) { + result = result && (getAllNodes() + == other.getAllNodes()); + } + result = result && getTaintsList() + .equals(other.getTaintsList()); + result = result && (hasBindsToNode() == other.hasBindsToNode()); + if (hasBindsToNode()) { + result = result && (getBindsToNode() + == other.getBindsToNode()); + } + result = result && getBindingConditionsList() + .equals(other.getBindingConditionsList()); + result = result && getBindingFailureConditionsList() + .equals(other.getBindingFailureConditionsList()); + result = result && (hasAllowMultipleAllocations() == other.hasAllowMultipleAllocations()); + if (hasAllowMultipleAllocations()) { + result = result && (getAllowMultipleAllocations() + == other.getAllowMultipleAllocations()); + } + result = result && internalGetNodeAllocatableResourceMappings().equals( + other.internalGetNodeAllocatableResourceMappings()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (!internalGetAttributes().getMap().isEmpty()) { + hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; + hash = (53 * hash) + internalGetAttributes().hashCode(); + } + if (!internalGetCapacity().getMap().isEmpty()) { + hash = (37 * hash) + CAPACITY_FIELD_NUMBER; + hash = (53 * hash) + internalGetCapacity().hashCode(); + } + if (getConsumesCountersCount() > 0) { + hash = (37 * hash) + CONSUMESCOUNTERS_FIELD_NUMBER; + hash = (53 * hash) + getConsumesCountersList().hashCode(); + } + if (hasNodeName()) { + hash = (37 * hash) + NODENAME_FIELD_NUMBER; + hash = (53 * hash) + getNodeName().hashCode(); + } + if (hasNodeSelector()) { + hash = (37 * hash) + NODESELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getNodeSelector().hashCode(); + } + if (hasAllNodes()) { + hash = (37 * hash) + ALLNODES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllNodes()); + } + if (getTaintsCount() > 0) { + hash = (37 * hash) + TAINTS_FIELD_NUMBER; + hash = (53 * hash) + getTaintsList().hashCode(); + } + if (hasBindsToNode()) { + hash = (37 * hash) + BINDSTONODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBindsToNode()); + } + if (getBindingConditionsCount() > 0) { + hash = (37 * hash) + BINDINGCONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getBindingConditionsList().hashCode(); + } + if (getBindingFailureConditionsCount() > 0) { + hash = (37 * hash) + BINDINGFAILURECONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getBindingFailureConditionsList().hashCode(); + } + if (hasAllowMultipleAllocations()) { + hash = (37 * hash) + ALLOWMULTIPLEALLOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllowMultipleAllocations()); + } + if (!internalGetNodeAllocatableResourceMappings().getMap().isEmpty()) { + hash = (37 * hash) + NODEALLOCATABLERESOURCEMAPPINGS_FIELD_NUMBER; + hash = (53 * hash) + internalGetNodeAllocatableResourceMappings().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.Device parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.Device parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.Device parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.Device parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.Device parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.Device parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.Device parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.Device parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.Device parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.Device parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.Device parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.Device parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.Device prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Device represents one individual hardware instance that can be selected based
+     * on its attributes. Besides the name, exactly one field must be set.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.Device} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.Device) + io.kubernetes.client.proto.V1Resource.DeviceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_Device_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetAttributes(); + case 3: + return internalGetCapacity(); + case 13: + return internalGetNodeAllocatableResourceMappings(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableAttributes(); + case 3: + return internalGetMutableCapacity(); + case 13: + return internalGetMutableNodeAllocatableResourceMappings(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_Device_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.Device.class, io.kubernetes.client.proto.V1Resource.Device.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.Device.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConsumesCountersFieldBuilder(); + getNodeSelectorFieldBuilder(); + getTaintsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableAttributes().clear(); + internalGetMutableCapacity().clear(); + if (consumesCountersBuilder_ == null) { + consumesCounters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + } else { + consumesCountersBuilder_.clear(); + } + nodeName_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + if (nodeSelectorBuilder_ == null) { + nodeSelector_ = null; + } else { + nodeSelectorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + allNodes_ = false; + bitField0_ = (bitField0_ & ~0x00000040); + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + taintsBuilder_.clear(); + } + bindsToNode_ = false; + bitField0_ = (bitField0_ & ~0x00000100); + bindingConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000200); + bindingFailureConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000400); + allowMultipleAllocations_ = false; + bitField0_ = (bitField0_ & ~0x00000800); + internalGetMutableNodeAllocatableResourceMappings().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_Device_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.Device getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.Device.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.Device build() { + io.kubernetes.client.proto.V1Resource.Device result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.Device buildPartial() { + io.kubernetes.client.proto.V1Resource.Device result = new io.kubernetes.client.proto.V1Resource.Device(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + result.attributes_ = internalGetAttributes(); + result.attributes_.makeImmutable(); + result.capacity_ = internalGetCapacity(); + result.capacity_.makeImmutable(); + if (consumesCountersBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008)) { + consumesCounters_ = java.util.Collections.unmodifiableList(consumesCounters_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.consumesCounters_ = consumesCounters_; + } else { + result.consumesCounters_ = consumesCountersBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000002; + } + result.nodeName_ = nodeName_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000004; + } + if (nodeSelectorBuilder_ == null) { + result.nodeSelector_ = nodeSelector_; + } else { + result.nodeSelector_ = nodeSelectorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000008; + } + result.allNodes_ = allNodes_; + if (taintsBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.taints_ = taints_; + } else { + result.taints_ = taintsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000010; + } + result.bindsToNode_ = bindsToNode_; + if (((bitField0_ & 0x00000200) == 0x00000200)) { + bindingConditions_ = bindingConditions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.bindingConditions_ = bindingConditions_; + if (((bitField0_ & 0x00000400) == 0x00000400)) { + bindingFailureConditions_ = bindingFailureConditions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000400); + } + result.bindingFailureConditions_ = bindingFailureConditions_; + if (((from_bitField0_ & 0x00000800) == 0x00000800)) { + to_bitField0_ |= 0x00000020; + } + result.allowMultipleAllocations_ = allowMultipleAllocations_; + result.nodeAllocatableResourceMappings_ = internalGetNodeAllocatableResourceMappings(); + result.nodeAllocatableResourceMappings_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.Device) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.Device)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.Device other) { + if (other == io.kubernetes.client.proto.V1Resource.Device.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + internalGetMutableAttributes().mergeFrom( + other.internalGetAttributes()); + internalGetMutableCapacity().mergeFrom( + other.internalGetCapacity()); + if (consumesCountersBuilder_ == null) { + if (!other.consumesCounters_.isEmpty()) { + if (consumesCounters_.isEmpty()) { + consumesCounters_ = other.consumesCounters_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureConsumesCountersIsMutable(); + consumesCounters_.addAll(other.consumesCounters_); + } + onChanged(); + } + } else { + if (!other.consumesCounters_.isEmpty()) { + if (consumesCountersBuilder_.isEmpty()) { + consumesCountersBuilder_.dispose(); + consumesCountersBuilder_ = null; + consumesCounters_ = other.consumesCounters_; + bitField0_ = (bitField0_ & ~0x00000008); + consumesCountersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConsumesCountersFieldBuilder() : null; + } else { + consumesCountersBuilder_.addAllMessages(other.consumesCounters_); + } + } + } + if (other.hasNodeName()) { + bitField0_ |= 0x00000010; + nodeName_ = other.nodeName_; + onChanged(); + } + if (other.hasNodeSelector()) { + mergeNodeSelector(other.getNodeSelector()); + } + if (other.hasAllNodes()) { + setAllNodes(other.getAllNodes()); + } + if (taintsBuilder_ == null) { + if (!other.taints_.isEmpty()) { + if (taints_.isEmpty()) { + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureTaintsIsMutable(); + taints_.addAll(other.taints_); + } + onChanged(); + } + } else { + if (!other.taints_.isEmpty()) { + if (taintsBuilder_.isEmpty()) { + taintsBuilder_.dispose(); + taintsBuilder_ = null; + taints_ = other.taints_; + bitField0_ = (bitField0_ & ~0x00000080); + taintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTaintsFieldBuilder() : null; + } else { + taintsBuilder_.addAllMessages(other.taints_); + } + } + } + if (other.hasBindsToNode()) { + setBindsToNode(other.getBindsToNode()); + } + if (!other.bindingConditions_.isEmpty()) { + if (bindingConditions_.isEmpty()) { + bindingConditions_ = other.bindingConditions_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureBindingConditionsIsMutable(); + bindingConditions_.addAll(other.bindingConditions_); + } + onChanged(); + } + if (!other.bindingFailureConditions_.isEmpty()) { + if (bindingFailureConditions_.isEmpty()) { + bindingFailureConditions_ = other.bindingFailureConditions_; + bitField0_ = (bitField0_ & ~0x00000400); + } else { + ensureBindingFailureConditionsIsMutable(); + bindingFailureConditions_.addAll(other.bindingFailureConditions_); + } + onChanged(); + } + if (other.hasAllowMultipleAllocations()) { + setAllowMultipleAllocations(other.getAllowMultipleAllocations()); + } + internalGetMutableNodeAllocatableResourceMappings().mergeFrom( + other.internalGetNodeAllocatableResourceMappings()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.Device parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.Device) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * Name is unique identifier among all devices managed by
+       * the driver in the pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Name is unique identifier among all devices managed by
+       * the driver in the pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name is unique identifier among all devices managed by
+       * the driver in the pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name is unique identifier among all devices managed by
+       * the driver in the pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Name is unique identifier among all devices managed by
+       * the driver in the pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name is unique identifier among all devices managed by
+       * the driver in the pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.V1Resource.DeviceAttribute> attributes_; + private com.google.protobuf.MapField + internalGetAttributes() { + if (attributes_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + return attributes_; + } + private com.google.protobuf.MapField + internalGetMutableAttributes() { + onChanged();; + if (attributes_ == null) { + attributes_ = com.google.protobuf.MapField.newMapField( + AttributesDefaultEntryHolder.defaultEntry); + } + if (!attributes_.isMutable()) { + attributes_ = attributes_.copy(); + } + return attributes_; + } + + public int getAttributesCount() { + return internalGetAttributes().getMap().size(); + } + /** + *
+       * Attributes defines the set of attributes for this device.
+       * The name of each attribute must be unique in that set.
+       * The maximum number of attributes and capacities combined is 32.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + + public boolean containsAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetAttributes().getMap().containsKey(key); + } + /** + * Use {@link #getAttributesMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getAttributes() { + return getAttributesMap(); + } + /** + *
+       * Attributes defines the set of attributes for this device.
+       * The name of each attribute must be unique in that set.
+       * The maximum number of attributes and capacities combined is 32.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + + public java.util.Map getAttributesMap() { + return internalGetAttributes().getMap(); + } + /** + *
+       * Attributes defines the set of attributes for this device.
+       * The name of each attribute must be unique in that set.
+       * The maximum number of attributes and capacities combined is 32.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + + public io.kubernetes.client.proto.V1Resource.DeviceAttribute getAttributesOrDefault( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.DeviceAttribute defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Attributes defines the set of attributes for this device.
+       * The name of each attribute must be unique in that set.
+       * The maximum number of attributes and capacities combined is 32.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + + public io.kubernetes.client.proto.V1Resource.DeviceAttribute getAttributesOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetAttributes().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAttributes() { + internalGetMutableAttributes().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Attributes defines the set of attributes for this device.
+       * The name of each attribute must be unique in that set.
+       * The maximum number of attributes and capacities combined is 32.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + + public Builder removeAttributes( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAttributes().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableAttributes() { + return internalGetMutableAttributes().getMutableMap(); + } + /** + *
+       * Attributes defines the set of attributes for this device.
+       * The name of each attribute must be unique in that set.
+       * The maximum number of attributes and capacities combined is 32.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + public Builder putAttributes( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.DeviceAttribute value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableAttributes().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Attributes defines the set of attributes for this device.
+       * The name of each attribute must be unique in that set.
+       * The maximum number of attributes and capacities combined is 32.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceAttribute> attributes = 2; + */ + + public Builder putAllAttributes( + java.util.Map values) { + internalGetMutableAttributes().getMutableMap() + .putAll(values); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.V1Resource.DeviceCapacity> capacity_; + private com.google.protobuf.MapField + internalGetCapacity() { + if (capacity_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CapacityDefaultEntryHolder.defaultEntry); + } + return capacity_; + } + private com.google.protobuf.MapField + internalGetMutableCapacity() { + onChanged();; + if (capacity_ == null) { + capacity_ = com.google.protobuf.MapField.newMapField( + CapacityDefaultEntryHolder.defaultEntry); + } + if (!capacity_.isMutable()) { + capacity_ = capacity_.copy(); + } + return capacity_; + } + + public int getCapacityCount() { + return internalGetCapacity().getMap().size(); + } + /** + *
+       * Capacity defines the set of capacities for this device.
+       * The name of each capacity must be unique in that set.
+       * The maximum number of attributes and capacities combined is 32.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + + public boolean containsCapacity( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetCapacity().getMap().containsKey(key); + } + /** + * Use {@link #getCapacityMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getCapacity() { + return getCapacityMap(); + } + /** + *
+       * Capacity defines the set of capacities for this device.
+       * The name of each capacity must be unique in that set.
+       * The maximum number of attributes and capacities combined is 32.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + + public java.util.Map getCapacityMap() { + return internalGetCapacity().getMap(); + } + /** + *
+       * Capacity defines the set of capacities for this device.
+       * The name of each capacity must be unique in that set.
+       * The maximum number of attributes and capacities combined is 32.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + + public io.kubernetes.client.proto.V1Resource.DeviceCapacity getCapacityOrDefault( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.DeviceCapacity defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCapacity().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Capacity defines the set of capacities for this device.
+       * The name of each capacity must be unique in that set.
+       * The maximum number of attributes and capacities combined is 32.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + + public io.kubernetes.client.proto.V1Resource.DeviceCapacity getCapacityOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCapacity().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCapacity() { + internalGetMutableCapacity().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Capacity defines the set of capacities for this device.
+       * The name of each capacity must be unique in that set.
+       * The maximum number of attributes and capacities combined is 32.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + + public Builder removeCapacity( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableCapacity().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCapacity() { + return internalGetMutableCapacity().getMutableMap(); + } + /** + *
+       * Capacity defines the set of capacities for this device.
+       * The name of each capacity must be unique in that set.
+       * The maximum number of attributes and capacities combined is 32.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + public Builder putCapacity( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.DeviceCapacity value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableCapacity().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Capacity defines the set of capacities for this device.
+       * The name of each capacity must be unique in that set.
+       * The maximum number of attributes and capacities combined is 32.
+       * +optional
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.DeviceCapacity> capacity = 3; + */ + + public Builder putAllCapacity( + java.util.Map values) { + internalGetMutableCapacity().getMutableMap() + .putAll(values); + return this; + } + + private java.util.List consumesCounters_ = + java.util.Collections.emptyList(); + private void ensureConsumesCountersIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + consumesCounters_ = new java.util.ArrayList(consumesCounters_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption, io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.Builder, io.kubernetes.client.proto.V1Resource.DeviceCounterConsumptionOrBuilder> consumesCountersBuilder_; + + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public java.util.List getConsumesCountersList() { + if (consumesCountersBuilder_ == null) { + return java.util.Collections.unmodifiableList(consumesCounters_); + } else { + return consumesCountersBuilder_.getMessageList(); + } + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public int getConsumesCountersCount() { + if (consumesCountersBuilder_ == null) { + return consumesCounters_.size(); + } else { + return consumesCountersBuilder_.getCount(); + } + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption getConsumesCounters(int index) { + if (consumesCountersBuilder_ == null) { + return consumesCounters_.get(index); + } else { + return consumesCountersBuilder_.getMessage(index); + } + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public Builder setConsumesCounters( + int index, io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption value) { + if (consumesCountersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConsumesCountersIsMutable(); + consumesCounters_.set(index, value); + onChanged(); + } else { + consumesCountersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public Builder setConsumesCounters( + int index, io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.Builder builderForValue) { + if (consumesCountersBuilder_ == null) { + ensureConsumesCountersIsMutable(); + consumesCounters_.set(index, builderForValue.build()); + onChanged(); + } else { + consumesCountersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public Builder addConsumesCounters(io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption value) { + if (consumesCountersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConsumesCountersIsMutable(); + consumesCounters_.add(value); + onChanged(); + } else { + consumesCountersBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public Builder addConsumesCounters( + int index, io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption value) { + if (consumesCountersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConsumesCountersIsMutable(); + consumesCounters_.add(index, value); + onChanged(); + } else { + consumesCountersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public Builder addConsumesCounters( + io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.Builder builderForValue) { + if (consumesCountersBuilder_ == null) { + ensureConsumesCountersIsMutable(); + consumesCounters_.add(builderForValue.build()); + onChanged(); + } else { + consumesCountersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public Builder addConsumesCounters( + int index, io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.Builder builderForValue) { + if (consumesCountersBuilder_ == null) { + ensureConsumesCountersIsMutable(); + consumesCounters_.add(index, builderForValue.build()); + onChanged(); + } else { + consumesCountersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public Builder addAllConsumesCounters( + java.lang.Iterable values) { + if (consumesCountersBuilder_ == null) { + ensureConsumesCountersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, consumesCounters_); + onChanged(); + } else { + consumesCountersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public Builder clearConsumesCounters() { + if (consumesCountersBuilder_ == null) { + consumesCounters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + consumesCountersBuilder_.clear(); + } + return this; + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public Builder removeConsumesCounters(int index) { + if (consumesCountersBuilder_ == null) { + ensureConsumesCountersIsMutable(); + consumesCounters_.remove(index); + onChanged(); + } else { + consumesCountersBuilder_.remove(index); + } + return this; + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.Builder getConsumesCountersBuilder( + int index) { + return getConsumesCountersFieldBuilder().getBuilder(index); + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public io.kubernetes.client.proto.V1Resource.DeviceCounterConsumptionOrBuilder getConsumesCountersOrBuilder( + int index) { + if (consumesCountersBuilder_ == null) { + return consumesCounters_.get(index); } else { + return consumesCountersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public java.util.List + getConsumesCountersOrBuilderList() { + if (consumesCountersBuilder_ != null) { + return consumesCountersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(consumesCounters_); + } + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.Builder addConsumesCountersBuilder() { + return getConsumesCountersFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.getDefaultInstance()); + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.Builder addConsumesCountersBuilder( + int index) { + return getConsumesCountersFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.getDefaultInstance()); + } + /** + *
+       * ConsumesCounters defines a list of references to sharedCounters
+       * and the set of counters that the device will
+       * consume from those counter sets.
+       * There can only be a single entry per counterSet.
+       * The maximum number of device counter consumptions per
+       * device is 2.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=counterSet
+       * +featureGate=DRAPartitionableDevices
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=2
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceCounterConsumption consumesCounters = 4; + */ + public java.util.List + getConsumesCountersBuilderList() { + return getConsumesCountersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption, io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.Builder, io.kubernetes.client.proto.V1Resource.DeviceCounterConsumptionOrBuilder> + getConsumesCountersFieldBuilder() { + if (consumesCountersBuilder_ == null) { + consumesCountersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption, io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.Builder, io.kubernetes.client.proto.V1Resource.DeviceCounterConsumptionOrBuilder>( + consumesCounters_, + ((bitField0_ & 0x00000008) == 0x00000008), + getParentForChildren(), + isClean()); + consumesCounters_ = null; + } + return consumesCountersBuilder_; + } + + private java.lang.Object nodeName_ = ""; + /** + *
+       * NodeName identifies the node where the device is available.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional string nodeName = 5; + */ + public boolean hasNodeName() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+       * NodeName identifies the node where the device is available.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional string nodeName = 5; + */ + public java.lang.String getNodeName() { + java.lang.Object ref = nodeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + nodeName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * NodeName identifies the node where the device is available.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional string nodeName = 5; + */ + public com.google.protobuf.ByteString + getNodeNameBytes() { + java.lang.Object ref = nodeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * NodeName identifies the node where the device is available.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional string nodeName = 5; + */ + public Builder setNodeName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + nodeName_ = value; + onChanged(); + return this; + } + /** + *
+       * NodeName identifies the node where the device is available.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional string nodeName = 5; + */ + public Builder clearNodeName() { + bitField0_ = (bitField0_ & ~0x00000010); + nodeName_ = getDefaultInstance().getNodeName(); + onChanged(); + return this; + } + /** + *
+       * NodeName identifies the node where the device is available.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional string nodeName = 5; + */ + public Builder setNodeNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + nodeName_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1.NodeSelector nodeSelector_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.NodeSelector, io.kubernetes.client.proto.V1.NodeSelector.Builder, io.kubernetes.client.proto.V1.NodeSelectorOrBuilder> nodeSelectorBuilder_; + /** + *
+       * NodeSelector defines the nodes where the device is available.
+       * Must use exactly one term.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + */ + public boolean hasNodeSelector() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+       * NodeSelector defines the nodes where the device is available.
+       * Must use exactly one term.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + */ + public io.kubernetes.client.proto.V1.NodeSelector getNodeSelector() { + if (nodeSelectorBuilder_ == null) { + return nodeSelector_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : nodeSelector_; + } else { + return nodeSelectorBuilder_.getMessage(); + } + } + /** + *
+       * NodeSelector defines the nodes where the device is available.
+       * Must use exactly one term.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + */ + public Builder setNodeSelector(io.kubernetes.client.proto.V1.NodeSelector value) { + if (nodeSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeSelector_ = value; + onChanged(); + } else { + nodeSelectorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + *
+       * NodeSelector defines the nodes where the device is available.
+       * Must use exactly one term.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + */ + public Builder setNodeSelector( + io.kubernetes.client.proto.V1.NodeSelector.Builder builderForValue) { + if (nodeSelectorBuilder_ == null) { + nodeSelector_ = builderForValue.build(); + onChanged(); + } else { + nodeSelectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + return this; + } + /** + *
+       * NodeSelector defines the nodes where the device is available.
+       * Must use exactly one term.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + */ + public Builder mergeNodeSelector(io.kubernetes.client.proto.V1.NodeSelector value) { + if (nodeSelectorBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020) && + nodeSelector_ != null && + nodeSelector_ != io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance()) { + nodeSelector_ = + io.kubernetes.client.proto.V1.NodeSelector.newBuilder(nodeSelector_).mergeFrom(value).buildPartial(); + } else { + nodeSelector_ = value; + } + onChanged(); + } else { + nodeSelectorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + return this; + } + /** + *
+       * NodeSelector defines the nodes where the device is available.
+       * Must use exactly one term.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + */ + public Builder clearNodeSelector() { + if (nodeSelectorBuilder_ == null) { + nodeSelector_ = null; + onChanged(); + } else { + nodeSelectorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + /** + *
+       * NodeSelector defines the nodes where the device is available.
+       * Must use exactly one term.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + */ + public io.kubernetes.client.proto.V1.NodeSelector.Builder getNodeSelectorBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getNodeSelectorFieldBuilder().getBuilder(); + } + /** + *
+       * NodeSelector defines the nodes where the device is available.
+       * Must use exactly one term.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + */ + public io.kubernetes.client.proto.V1.NodeSelectorOrBuilder getNodeSelectorOrBuilder() { + if (nodeSelectorBuilder_ != null) { + return nodeSelectorBuilder_.getMessageOrBuilder(); + } else { + return nodeSelector_ == null ? + io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : nodeSelector_; + } + } + /** + *
+       * NodeSelector defines the nodes where the device is available.
+       * Must use exactly one term.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.NodeSelector, io.kubernetes.client.proto.V1.NodeSelector.Builder, io.kubernetes.client.proto.V1.NodeSelectorOrBuilder> + getNodeSelectorFieldBuilder() { + if (nodeSelectorBuilder_ == null) { + nodeSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.NodeSelector, io.kubernetes.client.proto.V1.NodeSelector.Builder, io.kubernetes.client.proto.V1.NodeSelectorOrBuilder>( + getNodeSelector(), + getParentForChildren(), + isClean()); + nodeSelector_ = null; + } + return nodeSelectorBuilder_; + } + + private boolean allNodes_ ; + /** + *
+       * AllNodes indicates that all nodes have access to the device.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional bool allNodes = 7; + */ + public boolean hasAllNodes() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + *
+       * AllNodes indicates that all nodes have access to the device.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional bool allNodes = 7; + */ + public boolean getAllNodes() { + return allNodes_; + } + /** + *
+       * AllNodes indicates that all nodes have access to the device.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional bool allNodes = 7; + */ + public Builder setAllNodes(boolean value) { + bitField0_ |= 0x00000040; + allNodes_ = value; + onChanged(); + return this; + } + /** + *
+       * AllNodes indicates that all nodes have access to the device.
+       * Must only be set if Spec.PerDeviceNodeSelection is set to true.
+       * At most one of NodeName, NodeSelector and AllNodes can be set.
+       * +optional
+       * +oneOf=DeviceNodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional bool allNodes = 7; + */ + public Builder clearAllNodes() { + bitField0_ = (bitField0_ & ~0x00000040); + allNodes_ = false; + onChanged(); + return this; + } + + private java.util.List taints_ = + java.util.Collections.emptyList(); + private void ensureTaintsIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + taints_ = new java.util.ArrayList(taints_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceTaint, io.kubernetes.client.proto.V1Resource.DeviceTaint.Builder, io.kubernetes.client.proto.V1Resource.DeviceTaintOrBuilder> taintsBuilder_; + + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public java.util.List getTaintsList() { + if (taintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(taints_); + } else { + return taintsBuilder_.getMessageList(); + } + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public int getTaintsCount() { + if (taintsBuilder_ == null) { + return taints_.size(); + } else { + return taintsBuilder_.getCount(); + } + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public io.kubernetes.client.proto.V1Resource.DeviceTaint getTaints(int index) { + if (taintsBuilder_ == null) { + return taints_.get(index); + } else { + return taintsBuilder_.getMessage(index); + } + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public Builder setTaints( + int index, io.kubernetes.client.proto.V1Resource.DeviceTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.set(index, value); + onChanged(); + } else { + taintsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public Builder setTaints( + int index, io.kubernetes.client.proto.V1Resource.DeviceTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.set(index, builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public Builder addTaints(io.kubernetes.client.proto.V1Resource.DeviceTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.add(value); + onChanged(); + } else { + taintsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public Builder addTaints( + int index, io.kubernetes.client.proto.V1Resource.DeviceTaint value) { + if (taintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTaintsIsMutable(); + taints_.add(index, value); + onChanged(); + } else { + taintsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public Builder addTaints( + io.kubernetes.client.proto.V1Resource.DeviceTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public Builder addTaints( + int index, io.kubernetes.client.proto.V1Resource.DeviceTaint.Builder builderForValue) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.add(index, builderForValue.build()); + onChanged(); + } else { + taintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public Builder addAllTaints( + java.lang.Iterable values) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, taints_); + onChanged(); + } else { + taintsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public Builder clearTaints() { + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + taintsBuilder_.clear(); + } + return this; + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public Builder removeTaints(int index) { + if (taintsBuilder_ == null) { + ensureTaintsIsMutable(); + taints_.remove(index); + onChanged(); + } else { + taintsBuilder_.remove(index); + } + return this; + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public io.kubernetes.client.proto.V1Resource.DeviceTaint.Builder getTaintsBuilder( + int index) { + return getTaintsFieldBuilder().getBuilder(index); + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public io.kubernetes.client.proto.V1Resource.DeviceTaintOrBuilder getTaintsOrBuilder( + int index) { + if (taintsBuilder_ == null) { + return taints_.get(index); } else { + return taintsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public java.util.List + getTaintsOrBuilderList() { + if (taintsBuilder_ != null) { + return taintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(taints_); + } + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public io.kubernetes.client.proto.V1Resource.DeviceTaint.Builder addTaintsBuilder() { + return getTaintsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceTaint.getDefaultInstance()); + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public io.kubernetes.client.proto.V1Resource.DeviceTaint.Builder addTaintsBuilder( + int index) { + return getTaintsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceTaint.getDefaultInstance()); + } + /** + *
+       * If specified, these are the driver-defined taints.
+       * The maximum number of taints is 16. If taints are set for
+       * any device in a ResourceSlice, then the maximum number of
+       * allowed devices per ResourceSlice is 64 instead of 128.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceTaint taints = 8; + */ + public java.util.List + getTaintsBuilderList() { + return getTaintsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceTaint, io.kubernetes.client.proto.V1Resource.DeviceTaint.Builder, io.kubernetes.client.proto.V1Resource.DeviceTaintOrBuilder> + getTaintsFieldBuilder() { + if (taintsBuilder_ == null) { + taintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceTaint, io.kubernetes.client.proto.V1Resource.DeviceTaint.Builder, io.kubernetes.client.proto.V1Resource.DeviceTaintOrBuilder>( + taints_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + taints_ = null; + } + return taintsBuilder_; + } + + private boolean bindsToNode_ ; + /** + *
+       * BindsToNode indicates if the usage of an allocation involving this device
+       * has to be limited to exactly the node that was chosen when allocating the claim.
+       * If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector
+       * to match the node where the allocation was made.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * 
+ * + * optional bool bindsToNode = 9; + */ + public boolean hasBindsToNode() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + *
+       * BindsToNode indicates if the usage of an allocation involving this device
+       * has to be limited to exactly the node that was chosen when allocating the claim.
+       * If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector
+       * to match the node where the allocation was made.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * 
+ * + * optional bool bindsToNode = 9; + */ + public boolean getBindsToNode() { + return bindsToNode_; + } + /** + *
+       * BindsToNode indicates if the usage of an allocation involving this device
+       * has to be limited to exactly the node that was chosen when allocating the claim.
+       * If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector
+       * to match the node where the allocation was made.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * 
+ * + * optional bool bindsToNode = 9; + */ + public Builder setBindsToNode(boolean value) { + bitField0_ |= 0x00000100; + bindsToNode_ = value; + onChanged(); + return this; + } + /** + *
+       * BindsToNode indicates if the usage of an allocation involving this device
+       * has to be limited to exactly the node that was chosen when allocating the claim.
+       * If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector
+       * to match the node where the allocation was made.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * 
+ * + * optional bool bindsToNode = 9; + */ + public Builder clearBindsToNode() { + bitField0_ = (bitField0_ & ~0x00000100); + bindsToNode_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList bindingConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureBindingConditionsIsMutable() { + if (!((bitField0_ & 0x00000200) == 0x00000200)) { + bindingConditions_ = new com.google.protobuf.LazyStringArrayList(bindingConditions_); + bitField0_ |= 0x00000200; + } + } + /** + *
+       * BindingConditions defines the conditions for proceeding with binding.
+       * All of these conditions must be set in the per-device status
+       * conditions with a value of True to proceed with binding the pod to the node
+       * while scheduling the pod.
+       * The maximum number of binding conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 10; + */ + public com.google.protobuf.ProtocolStringList + getBindingConditionsList() { + return bindingConditions_.getUnmodifiableView(); + } + /** + *
+       * BindingConditions defines the conditions for proceeding with binding.
+       * All of these conditions must be set in the per-device status
+       * conditions with a value of True to proceed with binding the pod to the node
+       * while scheduling the pod.
+       * The maximum number of binding conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 10; + */ + public int getBindingConditionsCount() { + return bindingConditions_.size(); + } + /** + *
+       * BindingConditions defines the conditions for proceeding with binding.
+       * All of these conditions must be set in the per-device status
+       * conditions with a value of True to proceed with binding the pod to the node
+       * while scheduling the pod.
+       * The maximum number of binding conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 10; + */ + public java.lang.String getBindingConditions(int index) { + return bindingConditions_.get(index); + } + /** + *
+       * BindingConditions defines the conditions for proceeding with binding.
+       * All of these conditions must be set in the per-device status
+       * conditions with a value of True to proceed with binding the pod to the node
+       * while scheduling the pod.
+       * The maximum number of binding conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 10; + */ + public com.google.protobuf.ByteString + getBindingConditionsBytes(int index) { + return bindingConditions_.getByteString(index); + } + /** + *
+       * BindingConditions defines the conditions for proceeding with binding.
+       * All of these conditions must be set in the per-device status
+       * conditions with a value of True to proceed with binding the pod to the node
+       * while scheduling the pod.
+       * The maximum number of binding conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 10; + */ + public Builder setBindingConditions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingConditionsIsMutable(); + bindingConditions_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * BindingConditions defines the conditions for proceeding with binding.
+       * All of these conditions must be set in the per-device status
+       * conditions with a value of True to proceed with binding the pod to the node
+       * while scheduling the pod.
+       * The maximum number of binding conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 10; + */ + public Builder addBindingConditions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingConditionsIsMutable(); + bindingConditions_.add(value); + onChanged(); + return this; + } + /** + *
+       * BindingConditions defines the conditions for proceeding with binding.
+       * All of these conditions must be set in the per-device status
+       * conditions with a value of True to proceed with binding the pod to the node
+       * while scheduling the pod.
+       * The maximum number of binding conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 10; + */ + public Builder addAllBindingConditions( + java.lang.Iterable values) { + ensureBindingConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bindingConditions_); + onChanged(); + return this; + } + /** + *
+       * BindingConditions defines the conditions for proceeding with binding.
+       * All of these conditions must be set in the per-device status
+       * conditions with a value of True to proceed with binding the pod to the node
+       * while scheduling the pod.
+       * The maximum number of binding conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 10; + */ + public Builder clearBindingConditions() { + bindingConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + *
+       * BindingConditions defines the conditions for proceeding with binding.
+       * All of these conditions must be set in the per-device status
+       * conditions with a value of True to proceed with binding the pod to the node
+       * while scheduling the pod.
+       * The maximum number of binding conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 10; + */ + public Builder addBindingConditionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingConditionsIsMutable(); + bindingConditions_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList bindingFailureConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureBindingFailureConditionsIsMutable() { + if (!((bitField0_ & 0x00000400) == 0x00000400)) { + bindingFailureConditions_ = new com.google.protobuf.LazyStringArrayList(bindingFailureConditions_); + bitField0_ |= 0x00000400; + } + } + /** + *
+       * BindingFailureConditions defines the conditions for binding failure.
+       * They may be set in the per-device status conditions.
+       * If any is set to "True", a binding failure occurred.
+       * The maximum number of binding failure conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 11; + */ + public com.google.protobuf.ProtocolStringList + getBindingFailureConditionsList() { + return bindingFailureConditions_.getUnmodifiableView(); + } + /** + *
+       * BindingFailureConditions defines the conditions for binding failure.
+       * They may be set in the per-device status conditions.
+       * If any is set to "True", a binding failure occurred.
+       * The maximum number of binding failure conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 11; + */ + public int getBindingFailureConditionsCount() { + return bindingFailureConditions_.size(); + } + /** + *
+       * BindingFailureConditions defines the conditions for binding failure.
+       * They may be set in the per-device status conditions.
+       * If any is set to "True", a binding failure occurred.
+       * The maximum number of binding failure conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 11; + */ + public java.lang.String getBindingFailureConditions(int index) { + return bindingFailureConditions_.get(index); + } + /** + *
+       * BindingFailureConditions defines the conditions for binding failure.
+       * They may be set in the per-device status conditions.
+       * If any is set to "True", a binding failure occurred.
+       * The maximum number of binding failure conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 11; + */ + public com.google.protobuf.ByteString + getBindingFailureConditionsBytes(int index) { + return bindingFailureConditions_.getByteString(index); + } + /** + *
+       * BindingFailureConditions defines the conditions for binding failure.
+       * They may be set in the per-device status conditions.
+       * If any is set to "True", a binding failure occurred.
+       * The maximum number of binding failure conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 11; + */ + public Builder setBindingFailureConditions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingFailureConditionsIsMutable(); + bindingFailureConditions_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * BindingFailureConditions defines the conditions for binding failure.
+       * They may be set in the per-device status conditions.
+       * If any is set to "True", a binding failure occurred.
+       * The maximum number of binding failure conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 11; + */ + public Builder addBindingFailureConditions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingFailureConditionsIsMutable(); + bindingFailureConditions_.add(value); + onChanged(); + return this; + } + /** + *
+       * BindingFailureConditions defines the conditions for binding failure.
+       * They may be set in the per-device status conditions.
+       * If any is set to "True", a binding failure occurred.
+       * The maximum number of binding failure conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 11; + */ + public Builder addAllBindingFailureConditions( + java.lang.Iterable values) { + ensureBindingFailureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bindingFailureConditions_); + onChanged(); + return this; + } + /** + *
+       * BindingFailureConditions defines the conditions for binding failure.
+       * They may be set in the per-device status conditions.
+       * If any is set to "True", a binding failure occurred.
+       * The maximum number of binding failure conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 11; + */ + public Builder clearBindingFailureConditions() { + bindingFailureConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + *
+       * BindingFailureConditions defines the conditions for binding failure.
+       * They may be set in the per-device status conditions.
+       * If any is set to "True", a binding failure occurred.
+       * The maximum number of binding failure conditions is 4.
+       * The conditions must be a valid condition type string.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 11; + */ + public Builder addBindingFailureConditionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingFailureConditionsIsMutable(); + bindingFailureConditions_.add(value); + onChanged(); + return this; + } + + private boolean allowMultipleAllocations_ ; + /** + *
+       * AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests.
+       * If AllowMultipleAllocations is set to true, the device can be allocated more than once,
+       * and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional bool allowMultipleAllocations = 12; + */ + public boolean hasAllowMultipleAllocations() { + return ((bitField0_ & 0x00000800) == 0x00000800); + } + /** + *
+       * AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests.
+       * If AllowMultipleAllocations is set to true, the device can be allocated more than once,
+       * and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional bool allowMultipleAllocations = 12; + */ + public boolean getAllowMultipleAllocations() { + return allowMultipleAllocations_; + } + /** + *
+       * AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests.
+       * If AllowMultipleAllocations is set to true, the device can be allocated more than once,
+       * and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional bool allowMultipleAllocations = 12; + */ + public Builder setAllowMultipleAllocations(boolean value) { + bitField0_ |= 0x00000800; + allowMultipleAllocations_ = value; + onChanged(); + return this; + } + /** + *
+       * AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests.
+       * If AllowMultipleAllocations is set to true, the device can be allocated more than once,
+       * and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional bool allowMultipleAllocations = 12; + */ + public Builder clearAllowMultipleAllocations() { + bitField0_ = (bitField0_ & ~0x00000800); + allowMultipleAllocations_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings_; + private com.google.protobuf.MapField + internalGetNodeAllocatableResourceMappings() { + if (nodeAllocatableResourceMappings_ == null) { + return com.google.protobuf.MapField.emptyMapField( + NodeAllocatableResourceMappingsDefaultEntryHolder.defaultEntry); + } + return nodeAllocatableResourceMappings_; + } + private com.google.protobuf.MapField + internalGetMutableNodeAllocatableResourceMappings() { + onChanged();; + if (nodeAllocatableResourceMappings_ == null) { + nodeAllocatableResourceMappings_ = com.google.protobuf.MapField.newMapField( + NodeAllocatableResourceMappingsDefaultEntryHolder.defaultEntry); + } + if (!nodeAllocatableResourceMappings_.isMutable()) { + nodeAllocatableResourceMappings_ = nodeAllocatableResourceMappings_.copy(); + } + return nodeAllocatableResourceMappings_; + } + + public int getNodeAllocatableResourceMappingsCount() { + return internalGetNodeAllocatableResourceMappings().getMap().size(); + } + /** + *
+       * NodeAllocatableResourceMappings defines the mapping of node resources
+       * that are managed by the DRA driver exposing this device. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * In addition to standard requests made through the Pod `spec`, these resources
+       * can also be requested through claims and allocated by the DRA driver.
+       * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+       * dependencies of an accelerator device.
+       * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+       * Extended resource names are not permitted as keys.
+       * +optional
+       * +featureGate=DRANodeAllocatableResources
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + + public boolean containsNodeAllocatableResourceMappings( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetNodeAllocatableResourceMappings().getMap().containsKey(key); + } + /** + * Use {@link #getNodeAllocatableResourceMappingsMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getNodeAllocatableResourceMappings() { + return getNodeAllocatableResourceMappingsMap(); + } + /** + *
+       * NodeAllocatableResourceMappings defines the mapping of node resources
+       * that are managed by the DRA driver exposing this device. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * In addition to standard requests made through the Pod `spec`, these resources
+       * can also be requested through claims and allocated by the DRA driver.
+       * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+       * dependencies of an accelerator device.
+       * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+       * Extended resource names are not permitted as keys.
+       * +optional
+       * +featureGate=DRANodeAllocatableResources
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + + public java.util.Map getNodeAllocatableResourceMappingsMap() { + return internalGetNodeAllocatableResourceMappings().getMap(); + } + /** + *
+       * NodeAllocatableResourceMappings defines the mapping of node resources
+       * that are managed by the DRA driver exposing this device. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * In addition to standard requests made through the Pod `spec`, these resources
+       * can also be requested through claims and allocated by the DRA driver.
+       * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+       * dependencies of an accelerator device.
+       * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+       * Extended resource names are not permitted as keys.
+       * +optional
+       * +featureGate=DRANodeAllocatableResources
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + + public io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping getNodeAllocatableResourceMappingsOrDefault( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetNodeAllocatableResourceMappings().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * NodeAllocatableResourceMappings defines the mapping of node resources
+       * that are managed by the DRA driver exposing this device. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * In addition to standard requests made through the Pod `spec`, these resources
+       * can also be requested through claims and allocated by the DRA driver.
+       * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+       * dependencies of an accelerator device.
+       * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+       * Extended resource names are not permitted as keys.
+       * +optional
+       * +featureGate=DRANodeAllocatableResources
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + + public io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping getNodeAllocatableResourceMappingsOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetNodeAllocatableResourceMappings().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearNodeAllocatableResourceMappings() { + internalGetMutableNodeAllocatableResourceMappings().getMutableMap() + .clear(); + return this; + } + /** + *
+       * NodeAllocatableResourceMappings defines the mapping of node resources
+       * that are managed by the DRA driver exposing this device. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * In addition to standard requests made through the Pod `spec`, these resources
+       * can also be requested through claims and allocated by the DRA driver.
+       * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+       * dependencies of an accelerator device.
+       * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+       * Extended resource names are not permitted as keys.
+       * +optional
+       * +featureGate=DRANodeAllocatableResources
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + + public Builder removeNodeAllocatableResourceMappings( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableNodeAllocatableResourceMappings().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableNodeAllocatableResourceMappings() { + return internalGetMutableNodeAllocatableResourceMappings().getMutableMap(); + } + /** + *
+       * NodeAllocatableResourceMappings defines the mapping of node resources
+       * that are managed by the DRA driver exposing this device. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * In addition to standard requests made through the Pod `spec`, these resources
+       * can also be requested through claims and allocated by the DRA driver.
+       * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+       * dependencies of an accelerator device.
+       * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+       * Extended resource names are not permitted as keys.
+       * +optional
+       * +featureGate=DRANodeAllocatableResources
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + public Builder putNodeAllocatableResourceMappings( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableNodeAllocatableResourceMappings().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * NodeAllocatableResourceMappings defines the mapping of node resources
+       * that are managed by the DRA driver exposing this device. This includes resources currently
+       * reported in v1.Node `status.allocatable` that are not extended resources
+       * (see https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#extended-resources).
+       * Examples include "cpu", "memory", "ephemeral-storage", and hugepages.
+       * In addition to standard requests made through the Pod `spec`, these resources
+       * can also be requested through claims and allocated by the DRA driver.
+       * For example, a CPU DRA driver might allocate exclusive CPUs or auxiliary node memory
+       * dependencies of an accelerator device.
+       * The keys of this map are the node-allocatable resource names (e.g., "cpu", "memory").
+       * Extended resource names are not permitted as keys.
+       * +optional
+       * +featureGate=DRANodeAllocatableResources
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.NodeAllocatableResourceMapping> nodeAllocatableResourceMappings = 13; + */ + + public Builder putAllNodeAllocatableResourceMappings( + java.util.Map values) { + internalGetMutableNodeAllocatableResourceMappings().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.Device) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.Device) + private static final io.kubernetes.client.proto.V1Resource.Device DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.Device(); + } + + public static io.kubernetes.client.proto.V1Resource.Device getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Device parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Device(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.Device getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceAllocationConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceAllocationConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Source records whether the configuration comes from a class and thus
+     * is not something that a normal user would have been able to set
+     * or from a claim.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string source = 1; + */ + boolean hasSource(); + /** + *
+     * Source records whether the configuration comes from a class and thus
+     * is not something that a normal user would have been able to set
+     * or from a claim.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string source = 1; + */ + java.lang.String getSource(); + /** + *
+     * Source records whether the configuration comes from a class and thus
+     * is not something that a normal user would have been able to set
+     * or from a claim.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string source = 1; + */ + com.google.protobuf.ByteString + getSourceBytes(); + + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, its applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 2; + */ + java.util.List + getRequestsList(); + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, its applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 2; + */ + int getRequestsCount(); + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, its applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 2; + */ + java.lang.String getRequests(int index); + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, its applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 2; + */ + com.google.protobuf.ByteString + getRequestsBytes(int index); + + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 3; + */ + boolean hasDeviceConfiguration(); + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 3; + */ + io.kubernetes.client.proto.V1Resource.DeviceConfiguration getDeviceConfiguration(); + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 3; + */ + io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder getDeviceConfigurationOrBuilder(); + } + /** + *
+   * DeviceAllocationConfiguration gets embedded in an AllocationResult.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceAllocationConfiguration} + */ + public static final class DeviceAllocationConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceAllocationConfiguration) + DeviceAllocationConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceAllocationConfiguration.newBuilder() to construct. + private DeviceAllocationConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceAllocationConfiguration() { + source_ = ""; + requests_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceAllocationConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + source_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + requests_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + requests_.add(bs); + break; + } + case 26: { + io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = deviceConfiguration_.toBuilder(); + } + deviceConfiguration_ = input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceConfiguration.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deviceConfiguration_); + deviceConfiguration_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + requests_ = requests_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceAllocationConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceAllocationConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.class, io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.Builder.class); + } + + private int bitField0_; + public static final int SOURCE_FIELD_NUMBER = 1; + private volatile java.lang.Object source_; + /** + *
+     * Source records whether the configuration comes from a class and thus
+     * is not something that a normal user would have been able to set
+     * or from a claim.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string source = 1; + */ + public boolean hasSource() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Source records whether the configuration comes from a class and thus
+     * is not something that a normal user would have been able to set
+     * or from a claim.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string source = 1; + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + source_ = s; + } + return s; + } + } + /** + *
+     * Source records whether the configuration comes from a class and thus
+     * is not something that a normal user would have been able to set
+     * or from a claim.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string source = 1; + */ + public com.google.protobuf.ByteString + getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList requests_; + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, its applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 2; + */ + public com.google.protobuf.ProtocolStringList + getRequestsList() { + return requests_; + } + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, its applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 2; + */ + public int getRequestsCount() { + return requests_.size(); + } + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, its applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 2; + */ + public java.lang.String getRequests(int index) { + return requests_.get(index); + } + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, its applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 2; + */ + public com.google.protobuf.ByteString + getRequestsBytes(int index) { + return requests_.getByteString(index); + } + + public static final int DEVICECONFIGURATION_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.V1Resource.DeviceConfiguration deviceConfiguration_; + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 3; + */ + public boolean hasDeviceConfiguration() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConfiguration getDeviceConfiguration() { + return deviceConfiguration_ == null ? io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance() : deviceConfiguration_; + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder getDeviceConfigurationOrBuilder() { + return deviceConfiguration_ == null ? io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance() : deviceConfiguration_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_); + } + for (int i = 0; i < requests_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requests_.getRaw(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(3, getDeviceConfiguration()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, source_); + } + { + int dataSize = 0; + for (int i = 0; i < requests_.size(); i++) { + dataSize += computeStringSizeNoTag(requests_.getRaw(i)); + } + size += dataSize; + size += 1 * getRequestsList().size(); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDeviceConfiguration()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration other = (io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration) obj; + + boolean result = true; + result = result && (hasSource() == other.hasSource()); + if (hasSource()) { + result = result && getSource() + .equals(other.getSource()); + } + result = result && getRequestsList() + .equals(other.getRequestsList()); + result = result && (hasDeviceConfiguration() == other.hasDeviceConfiguration()); + if (hasDeviceConfiguration()) { + result = result && getDeviceConfiguration() + .equals(other.getDeviceConfiguration()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSource()) { + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + } + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + if (hasDeviceConfiguration()) { + hash = (37 * hash) + DEVICECONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getDeviceConfiguration().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceAllocationConfiguration gets embedded in an AllocationResult.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceAllocationConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceAllocationConfiguration) + io.kubernetes.client.proto.V1Resource.DeviceAllocationConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceAllocationConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceAllocationConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.class, io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDeviceConfigurationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + source_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + requests_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + if (deviceConfigurationBuilder_ == null) { + deviceConfiguration_ = null; + } else { + deviceConfigurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceAllocationConfiguration_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration build() { + io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration result = new io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.source_ = source_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + requests_ = requests_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + if (deviceConfigurationBuilder_ == null) { + result.deviceConfiguration_ = deviceConfiguration_; + } else { + result.deviceConfiguration_ = deviceConfigurationBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.getDefaultInstance()) return this; + if (other.hasSource()) { + bitField0_ |= 0x00000001; + source_ = other.source_; + onChanged(); + } + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + if (other.hasDeviceConfiguration()) { + mergeDeviceConfiguration(other.getDeviceConfiguration()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object source_ = ""; + /** + *
+       * Source records whether the configuration comes from a class and thus
+       * is not something that a normal user would have been able to set
+       * or from a claim.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string source = 1; + */ + public boolean hasSource() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Source records whether the configuration comes from a class and thus
+       * is not something that a normal user would have been able to set
+       * or from a claim.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string source = 1; + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + source_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Source records whether the configuration comes from a class and thus
+       * is not something that a normal user would have been able to set
+       * or from a claim.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string source = 1; + */ + public com.google.protobuf.ByteString + getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Source records whether the configuration comes from a class and thus
+       * is not something that a normal user would have been able to set
+       * or from a claim.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string source = 1; + */ + public Builder setSource( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + source_ = value; + onChanged(); + return this; + } + /** + *
+       * Source records whether the configuration comes from a class and thus
+       * is not something that a normal user would have been able to set
+       * or from a claim.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string source = 1; + */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000001); + source_ = getDefaultInstance().getSource(); + onChanged(); + return this; + } + /** + *
+       * Source records whether the configuration comes from a class and thus
+       * is not something that a normal user would have been able to set
+       * or from a claim.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string source = 1; + */ + public Builder setSourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + source_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList requests_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + requests_ = new com.google.protobuf.LazyStringArrayList(requests_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, its applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 2; + */ + public com.google.protobuf.ProtocolStringList + getRequestsList() { + return requests_.getUnmodifiableView(); + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, its applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 2; + */ + public int getRequestsCount() { + return requests_.size(); + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, its applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 2; + */ + public java.lang.String getRequests(int index) { + return requests_.get(index); + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, its applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 2; + */ + public com.google.protobuf.ByteString + getRequestsBytes(int index) { + return requests_.getByteString(index); + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, its applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 2; + */ + public Builder setRequests( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, its applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 2; + */ + public Builder addRequests( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + return this; + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, its applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 2; + */ + public Builder addAllRequests( + java.lang.Iterable values) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); + onChanged(); + return this; + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, its applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 2; + */ + public Builder clearRequests() { + requests_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, its applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 2; + */ + public Builder addRequestsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1Resource.DeviceConfiguration deviceConfiguration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceConfiguration, io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder> deviceConfigurationBuilder_; + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 3; + */ + public boolean hasDeviceConfiguration() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConfiguration getDeviceConfiguration() { + if (deviceConfigurationBuilder_ == null) { + return deviceConfiguration_ == null ? io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance() : deviceConfiguration_; + } else { + return deviceConfigurationBuilder_.getMessage(); + } + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 3; + */ + public Builder setDeviceConfiguration(io.kubernetes.client.proto.V1Resource.DeviceConfiguration value) { + if (deviceConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deviceConfiguration_ = value; + onChanged(); + } else { + deviceConfigurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 3; + */ + public Builder setDeviceConfiguration( + io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder builderForValue) { + if (deviceConfigurationBuilder_ == null) { + deviceConfiguration_ = builderForValue.build(); + onChanged(); + } else { + deviceConfigurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 3; + */ + public Builder mergeDeviceConfiguration(io.kubernetes.client.proto.V1Resource.DeviceConfiguration value) { + if (deviceConfigurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + deviceConfiguration_ != null && + deviceConfiguration_ != io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance()) { + deviceConfiguration_ = + io.kubernetes.client.proto.V1Resource.DeviceConfiguration.newBuilder(deviceConfiguration_).mergeFrom(value).buildPartial(); + } else { + deviceConfiguration_ = value; + } + onChanged(); + } else { + deviceConfigurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 3; + */ + public Builder clearDeviceConfiguration() { + if (deviceConfigurationBuilder_ == null) { + deviceConfiguration_ = null; + onChanged(); + } else { + deviceConfigurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder getDeviceConfigurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getDeviceConfigurationFieldBuilder().getBuilder(); + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder getDeviceConfigurationOrBuilder() { + if (deviceConfigurationBuilder_ != null) { + return deviceConfigurationBuilder_.getMessageOrBuilder(); + } else { + return deviceConfiguration_ == null ? + io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance() : deviceConfiguration_; + } + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceConfiguration, io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder> + getDeviceConfigurationFieldBuilder() { + if (deviceConfigurationBuilder_ == null) { + deviceConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceConfiguration, io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder>( + getDeviceConfiguration(), + getParentForChildren(), + isClean()); + deviceConfiguration_ = null; + } + return deviceConfigurationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceAllocationConfiguration) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceAllocationConfiguration) + private static final io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceAllocationConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceAllocationConfiguration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceAllocationResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceAllocationResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Results lists all allocated devices.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + java.util.List + getResultsList(); + /** + *
+     * Results lists all allocated devices.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult getResults(int index); + /** + *
+     * Results lists all allocated devices.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + int getResultsCount(); + /** + *
+     * Results lists all allocated devices.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + java.util.List + getResultsOrBuilderList(); + /** + *
+     * Results lists all allocated devices.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResultOrBuilder getResultsOrBuilder( + int index); + + /** + *
+     * This field is a combination of all the claim and class configuration parameters.
+     * Drivers can distinguish between those based on a flag.
+     * This includes configuration parameters for drivers which have no allocated
+     * devices in the result because it is up to the drivers which configuration
+     * parameters they support. They can silently ignore unknown configuration
+     * parameters.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + java.util.List + getConfigList(); + /** + *
+     * This field is a combination of all the claim and class configuration parameters.
+     * Drivers can distinguish between those based on a flag.
+     * This includes configuration parameters for drivers which have no allocated
+     * devices in the result because it is up to the drivers which configuration
+     * parameters they support. They can silently ignore unknown configuration
+     * parameters.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration getConfig(int index); + /** + *
+     * This field is a combination of all the claim and class configuration parameters.
+     * Drivers can distinguish between those based on a flag.
+     * This includes configuration parameters for drivers which have no allocated
+     * devices in the result because it is up to the drivers which configuration
+     * parameters they support. They can silently ignore unknown configuration
+     * parameters.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + int getConfigCount(); + /** + *
+     * This field is a combination of all the claim and class configuration parameters.
+     * Drivers can distinguish between those based on a flag.
+     * This includes configuration parameters for drivers which have no allocated
+     * devices in the result because it is up to the drivers which configuration
+     * parameters they support. They can silently ignore unknown configuration
+     * parameters.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + java.util.List + getConfigOrBuilderList(); + /** + *
+     * This field is a combination of all the claim and class configuration parameters.
+     * Drivers can distinguish between those based on a flag.
+     * This includes configuration parameters for drivers which have no allocated
+     * devices in the result because it is up to the drivers which configuration
+     * parameters they support. They can silently ignore unknown configuration
+     * parameters.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + io.kubernetes.client.proto.V1Resource.DeviceAllocationConfigurationOrBuilder getConfigOrBuilder( + int index); + } + /** + *
+   * DeviceAllocationResult is the result of allocating devices.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceAllocationResult} + */ + public static final class DeviceAllocationResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceAllocationResult) + DeviceAllocationResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceAllocationResult.newBuilder() to construct. + private DeviceAllocationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceAllocationResult() { + results_ = java.util.Collections.emptyList(); + config_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceAllocationResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + results_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + results_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.PARSER, extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + config_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + config_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + results_ = java.util.Collections.unmodifiableList(results_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + config_ = java.util.Collections.unmodifiableList(config_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceAllocationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceAllocationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.class, io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.Builder.class); + } + + public static final int RESULTS_FIELD_NUMBER = 1; + private java.util.List results_; + /** + *
+     * Results lists all allocated devices.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public java.util.List getResultsList() { + return results_; + } + /** + *
+     * Results lists all allocated devices.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public java.util.List + getResultsOrBuilderList() { + return results_; + } + /** + *
+     * Results lists all allocated devices.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public int getResultsCount() { + return results_.size(); + } + /** + *
+     * Results lists all allocated devices.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult getResults(int index) { + return results_.get(index); + } + /** + *
+     * Results lists all allocated devices.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResultOrBuilder getResultsOrBuilder( + int index) { + return results_.get(index); + } + + public static final int CONFIG_FIELD_NUMBER = 2; + private java.util.List config_; + /** + *
+     * This field is a combination of all the claim and class configuration parameters.
+     * Drivers can distinguish between those based on a flag.
+     * This includes configuration parameters for drivers which have no allocated
+     * devices in the result because it is up to the drivers which configuration
+     * parameters they support. They can silently ignore unknown configuration
+     * parameters.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public java.util.List getConfigList() { + return config_; + } + /** + *
+     * This field is a combination of all the claim and class configuration parameters.
+     * Drivers can distinguish between those based on a flag.
+     * This includes configuration parameters for drivers which have no allocated
+     * devices in the result because it is up to the drivers which configuration
+     * parameters they support. They can silently ignore unknown configuration
+     * parameters.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public java.util.List + getConfigOrBuilderList() { + return config_; + } + /** + *
+     * This field is a combination of all the claim and class configuration parameters.
+     * Drivers can distinguish between those based on a flag.
+     * This includes configuration parameters for drivers which have no allocated
+     * devices in the result because it is up to the drivers which configuration
+     * parameters they support. They can silently ignore unknown configuration
+     * parameters.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public int getConfigCount() { + return config_.size(); + } + /** + *
+     * This field is a combination of all the claim and class configuration parameters.
+     * Drivers can distinguish between those based on a flag.
+     * This includes configuration parameters for drivers which have no allocated
+     * devices in the result because it is up to the drivers which configuration
+     * parameters they support. They can silently ignore unknown configuration
+     * parameters.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration getConfig(int index) { + return config_.get(index); + } + /** + *
+     * This field is a combination of all the claim and class configuration parameters.
+     * Drivers can distinguish between those based on a flag.
+     * This includes configuration parameters for drivers which have no allocated
+     * devices in the result because it is up to the drivers which configuration
+     * parameters they support. They can silently ignore unknown configuration
+     * parameters.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceAllocationConfigurationOrBuilder getConfigOrBuilder( + int index) { + return config_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < results_.size(); i++) { + output.writeMessage(1, results_.get(i)); + } + for (int i = 0; i < config_.size(); i++) { + output.writeMessage(2, config_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < results_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, results_.get(i)); + } + for (int i = 0; i < config_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, config_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceAllocationResult)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceAllocationResult other = (io.kubernetes.client.proto.V1Resource.DeviceAllocationResult) obj; + + boolean result = true; + result = result && getResultsList() + .equals(other.getResultsList()); + result = result && getConfigList() + .equals(other.getConfigList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getResultsCount() > 0) { + hash = (37 * hash) + RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getResultsList().hashCode(); + } + if (getConfigCount() > 0) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfigList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceAllocationResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceAllocationResult is the result of allocating devices.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceAllocationResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceAllocationResult) + io.kubernetes.client.proto.V1Resource.DeviceAllocationResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceAllocationResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceAllocationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.class, io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResultsFieldBuilder(); + getConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + resultsBuilder_.clear(); + } + if (configBuilder_ == null) { + config_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + configBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceAllocationResult_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceAllocationResult getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceAllocationResult build() { + io.kubernetes.client.proto.V1Resource.DeviceAllocationResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceAllocationResult buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceAllocationResult result = new io.kubernetes.client.proto.V1Resource.DeviceAllocationResult(this); + int from_bitField0_ = bitField0_; + if (resultsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + results_ = java.util.Collections.unmodifiableList(results_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.results_ = results_; + } else { + result.results_ = resultsBuilder_.build(); + } + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + config_ = java.util.Collections.unmodifiableList(config_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.config_ = config_; + } else { + result.config_ = configBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceAllocationResult) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceAllocationResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceAllocationResult other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceAllocationResult.getDefaultInstance()) return this; + if (resultsBuilder_ == null) { + if (!other.results_.isEmpty()) { + if (results_.isEmpty()) { + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResultsIsMutable(); + results_.addAll(other.results_); + } + onChanged(); + } + } else { + if (!other.results_.isEmpty()) { + if (resultsBuilder_.isEmpty()) { + resultsBuilder_.dispose(); + resultsBuilder_ = null; + results_ = other.results_; + bitField0_ = (bitField0_ & ~0x00000001); + resultsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResultsFieldBuilder() : null; + } else { + resultsBuilder_.addAllMessages(other.results_); + } + } + } + if (configBuilder_ == null) { + if (!other.config_.isEmpty()) { + if (config_.isEmpty()) { + config_ = other.config_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureConfigIsMutable(); + config_.addAll(other.config_); + } + onChanged(); + } + } else { + if (!other.config_.isEmpty()) { + if (configBuilder_.isEmpty()) { + configBuilder_.dispose(); + configBuilder_ = null; + config_ = other.config_; + bitField0_ = (bitField0_ & ~0x00000002); + configBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConfigFieldBuilder() : null; + } else { + configBuilder_.addAllMessages(other.config_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceAllocationResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceAllocationResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List results_ = + java.util.Collections.emptyList(); + private void ensureResultsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + results_ = new java.util.ArrayList(results_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult, io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.Builder, io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResultOrBuilder> resultsBuilder_; + + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public java.util.List getResultsList() { + if (resultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(results_); + } else { + return resultsBuilder_.getMessageList(); + } + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public int getResultsCount() { + if (resultsBuilder_ == null) { + return results_.size(); + } else { + return resultsBuilder_.getCount(); + } + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult getResults(int index) { + if (resultsBuilder_ == null) { + return results_.get(index); + } else { + return resultsBuilder_.getMessage(index); + } + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public Builder setResults( + int index, io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.set(index, value); + onChanged(); + } else { + resultsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public Builder setResults( + int index, io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.set(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public Builder addResults(io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(value); + onChanged(); + } else { + resultsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public Builder addResults( + int index, io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult value) { + if (resultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResultsIsMutable(); + results_.add(index, value); + onChanged(); + } else { + resultsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public Builder addResults( + io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public Builder addResults( + int index, io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.Builder builderForValue) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.add(index, builderForValue.build()); + onChanged(); + } else { + resultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public Builder addAllResults( + java.lang.Iterable values) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, results_); + onChanged(); + } else { + resultsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public Builder clearResults() { + if (resultsBuilder_ == null) { + results_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + resultsBuilder_.clear(); + } + return this; + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public Builder removeResults(int index) { + if (resultsBuilder_ == null) { + ensureResultsIsMutable(); + results_.remove(index); + onChanged(); + } else { + resultsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.Builder getResultsBuilder( + int index) { + return getResultsFieldBuilder().getBuilder(index); + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResultOrBuilder getResultsOrBuilder( + int index) { + if (resultsBuilder_ == null) { + return results_.get(index); } else { + return resultsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public java.util.List + getResultsOrBuilderList() { + if (resultsBuilder_ != null) { + return resultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(results_); + } + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.Builder addResultsBuilder() { + return getResultsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.getDefaultInstance()); + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.Builder addResultsBuilder( + int index) { + return getResultsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.getDefaultInstance()); + } + /** + *
+       * Results lists all allocated devices.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequestAllocationResult results = 1; + */ + public java.util.List + getResultsBuilderList() { + return getResultsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult, io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.Builder, io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResultOrBuilder> + getResultsFieldBuilder() { + if (resultsBuilder_ == null) { + resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult, io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.Builder, io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResultOrBuilder>( + results_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + results_ = null; + } + return resultsBuilder_; + } + + private java.util.List config_ = + java.util.Collections.emptyList(); + private void ensureConfigIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + config_ = new java.util.ArrayList(config_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration, io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceAllocationConfigurationOrBuilder> configBuilder_; + + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public java.util.List getConfigList() { + if (configBuilder_ == null) { + return java.util.Collections.unmodifiableList(config_); + } else { + return configBuilder_.getMessageList(); + } + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public int getConfigCount() { + if (configBuilder_ == null) { + return config_.size(); + } else { + return configBuilder_.getCount(); + } + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration getConfig(int index) { + if (configBuilder_ == null) { + return config_.get(index); + } else { + return configBuilder_.getMessage(index); + } + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public Builder setConfig( + int index, io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.set(index, value); + onChanged(); + } else { + configBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public Builder setConfig( + int index, io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.set(index, builderForValue.build()); + onChanged(); + } else { + configBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public Builder addConfig(io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.add(value); + onChanged(); + } else { + configBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public Builder addConfig( + int index, io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.add(index, value); + onChanged(); + } else { + configBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public Builder addConfig( + io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.add(builderForValue.build()); + onChanged(); + } else { + configBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public Builder addConfig( + int index, io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.add(index, builderForValue.build()); + onChanged(); + } else { + configBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public Builder addAllConfig( + java.lang.Iterable values) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, config_); + onChanged(); + } else { + configBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + config_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + configBuilder_.clear(); + } + return this; + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public Builder removeConfig(int index) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.remove(index); + onChanged(); + } else { + configBuilder_.remove(index); + } + return this; + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.Builder getConfigBuilder( + int index) { + return getConfigFieldBuilder().getBuilder(index); + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceAllocationConfigurationOrBuilder getConfigOrBuilder( + int index) { + if (configBuilder_ == null) { + return config_.get(index); } else { + return configBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public java.util.List + getConfigOrBuilderList() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(config_); + } + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.Builder addConfigBuilder() { + return getConfigFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.getDefaultInstance()); + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.Builder addConfigBuilder( + int index) { + return getConfigFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.getDefaultInstance()); + } + /** + *
+       * This field is a combination of all the claim and class configuration parameters.
+       * Drivers can distinguish between those based on a flag.
+       * This includes configuration parameters for drivers which have no allocated
+       * devices in the result because it is up to the drivers which configuration
+       * parameters they support. They can silently ignore unknown configuration
+       * parameters.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=64
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceAllocationConfiguration config = 2; + */ + public java.util.List + getConfigBuilderList() { + return getConfigFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration, io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceAllocationConfigurationOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration, io.kubernetes.client.proto.V1Resource.DeviceAllocationConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceAllocationConfigurationOrBuilder>( + config_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + config_ = null; + } + return configBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceAllocationResult) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceAllocationResult) + private static final io.kubernetes.client.proto.V1Resource.DeviceAllocationResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceAllocationResult(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceAllocationResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceAllocationResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceAllocationResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceAllocationResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceAttributeOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceAttribute) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * IntValue is a number.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional int64 int = 2; + */ + boolean hasInt(); + /** + *
+     * IntValue is a number.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional int64 int = 2; + */ + long getInt(); + + /** + *
+     * BoolValue is a true/false value.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional bool bool = 3; + */ + boolean hasBool(); + /** + *
+     * BoolValue is a true/false value.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional bool bool = 3; + */ + boolean getBool(); + + /** + *
+     * StringValue is a string. Must not be longer than 64 characters.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional string string = 4; + */ + boolean hasString(); + /** + *
+     * StringValue is a string. Must not be longer than 64 characters.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional string string = 4; + */ + java.lang.String getString(); + /** + *
+     * StringValue is a string. Must not be longer than 64 characters.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional string string = 4; + */ + com.google.protobuf.ByteString + getStringBytes(); + + /** + *
+     * VersionValue is a semantic version according to semver.org spec 2.0.0.
+     * Must not be longer than 64 characters.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional string version = 5; + */ + boolean hasVersion(); + /** + *
+     * VersionValue is a semantic version according to semver.org spec 2.0.0.
+     * Must not be longer than 64 characters.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional string version = 5; + */ + java.lang.String getVersion(); + /** + *
+     * VersionValue is a semantic version according to semver.org spec 2.0.0.
+     * Must not be longer than 64 characters.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional string version = 5; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+     * IntValues is a non-empty list of numbers.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated int64 ints = 6; + */ + java.util.List getIntsList(); + /** + *
+     * IntValues is a non-empty list of numbers.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated int64 ints = 6; + */ + int getIntsCount(); + /** + *
+     * IntValues is a non-empty list of numbers.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated int64 ints = 6; + */ + long getInts(int index); + + /** + *
+     * BoolValues is a non-empty list of true/false values.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated bool bools = 7; + */ + java.util.List getBoolsList(); + /** + *
+     * BoolValues is a non-empty list of true/false values.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated bool bools = 7; + */ + int getBoolsCount(); + /** + *
+     * BoolValues is a non-empty list of true/false values.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated bool bools = 7; + */ + boolean getBools(int index); + + /** + *
+     * StringValues is a non-empty list of strings.
+     * Each string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string strings = 8; + */ + java.util.List + getStringsList(); + /** + *
+     * StringValues is a non-empty list of strings.
+     * Each string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string strings = 8; + */ + int getStringsCount(); + /** + *
+     * StringValues is a non-empty list of strings.
+     * Each string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string strings = 8; + */ + java.lang.String getStrings(int index); + /** + *
+     * StringValues is a non-empty list of strings.
+     * Each string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string strings = 8; + */ + com.google.protobuf.ByteString + getStringsBytes(int index); + + /** + *
+     * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+     * Each version string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string versions = 9; + */ + java.util.List + getVersionsList(); + /** + *
+     * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+     * Each version string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string versions = 9; + */ + int getVersionsCount(); + /** + *
+     * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+     * Each version string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string versions = 9; + */ + java.lang.String getVersions(int index); + /** + *
+     * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+     * Each version string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string versions = 9; + */ + com.google.protobuf.ByteString + getVersionsBytes(int index); + } + /** + *
+   * DeviceAttribute must have exactly one field set.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceAttribute} + */ + public static final class DeviceAttribute extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceAttribute) + DeviceAttributeOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceAttribute.newBuilder() to construct. + private DeviceAttribute(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceAttribute() { + int_ = 0L; + bool_ = false; + string_ = ""; + version_ = ""; + ints_ = java.util.Collections.emptyList(); + bools_ = java.util.Collections.emptyList(); + strings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + versions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceAttribute( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 16: { + bitField0_ |= 0x00000001; + int_ = input.readInt64(); + break; + } + case 24: { + bitField0_ |= 0x00000002; + bool_ = input.readBool(); + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + string_ = bs; + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + version_ = bs; + break; + } + case 48: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + ints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + ints_.add(input.readInt64()); + break; + } + case 50: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010) && input.getBytesUntilLimit() > 0) { + ints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + while (input.getBytesUntilLimit() > 0) { + ints_.add(input.readInt64()); + } + input.popLimit(limit); + break; + } + case 56: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + bools_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + bools_.add(input.readBool()); + break; + } + case 58: { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020) && input.getBytesUntilLimit() > 0) { + bools_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + while (input.getBytesUntilLimit() > 0) { + bools_.add(input.readBool()); + } + input.popLimit(limit); + break; + } + case 66: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + strings_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000040; + } + strings_.add(bs); + break; + } + case 74: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + versions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000080; + } + versions_.add(bs); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + ints_ = java.util.Collections.unmodifiableList(ints_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + bools_ = java.util.Collections.unmodifiableList(bools_); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + strings_ = strings_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + versions_ = versions_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceAttribute.class, io.kubernetes.client.proto.V1Resource.DeviceAttribute.Builder.class); + } + + private int bitField0_; + public static final int INT_FIELD_NUMBER = 2; + private long int_; + /** + *
+     * IntValue is a number.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional int64 int = 2; + */ + public boolean hasInt() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * IntValue is a number.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional int64 int = 2; + */ + public long getInt() { + return int_; + } + + public static final int BOOL_FIELD_NUMBER = 3; + private boolean bool_; + /** + *
+     * BoolValue is a true/false value.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional bool bool = 3; + */ + public boolean hasBool() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * BoolValue is a true/false value.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional bool bool = 3; + */ + public boolean getBool() { + return bool_; + } + + public static final int STRING_FIELD_NUMBER = 4; + private volatile java.lang.Object string_; + /** + *
+     * StringValue is a string. Must not be longer than 64 characters.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional string string = 4; + */ + public boolean hasString() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * StringValue is a string. Must not be longer than 64 characters.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional string string = 4; + */ + public java.lang.String getString() { + java.lang.Object ref = string_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + string_ = s; + } + return s; + } + } + /** + *
+     * StringValue is a string. Must not be longer than 64 characters.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional string string = 4; + */ + public com.google.protobuf.ByteString + getStringBytes() { + java.lang.Object ref = string_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + string_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 5; + private volatile java.lang.Object version_; + /** + *
+     * VersionValue is a semantic version according to semver.org spec 2.0.0.
+     * Must not be longer than 64 characters.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional string version = 5; + */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * VersionValue is a semantic version according to semver.org spec 2.0.0.
+     * Must not be longer than 64 characters.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional string version = 5; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + version_ = s; + } + return s; + } + } + /** + *
+     * VersionValue is a semantic version according to semver.org spec 2.0.0.
+     * Must not be longer than 64 characters.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * 
+ * + * optional string version = 5; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INTS_FIELD_NUMBER = 6; + private java.util.List ints_; + /** + *
+     * IntValues is a non-empty list of numbers.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated int64 ints = 6; + */ + public java.util.List + getIntsList() { + return ints_; + } + /** + *
+     * IntValues is a non-empty list of numbers.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated int64 ints = 6; + */ + public int getIntsCount() { + return ints_.size(); + } + /** + *
+     * IntValues is a non-empty list of numbers.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated int64 ints = 6; + */ + public long getInts(int index) { + return ints_.get(index); + } + + public static final int BOOLS_FIELD_NUMBER = 7; + private java.util.List bools_; + /** + *
+     * BoolValues is a non-empty list of true/false values.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated bool bools = 7; + */ + public java.util.List + getBoolsList() { + return bools_; + } + /** + *
+     * BoolValues is a non-empty list of true/false values.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated bool bools = 7; + */ + public int getBoolsCount() { + return bools_.size(); + } + /** + *
+     * BoolValues is a non-empty list of true/false values.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated bool bools = 7; + */ + public boolean getBools(int index) { + return bools_.get(index); + } + + public static final int STRINGS_FIELD_NUMBER = 8; + private com.google.protobuf.LazyStringList strings_; + /** + *
+     * StringValues is a non-empty list of strings.
+     * Each string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string strings = 8; + */ + public com.google.protobuf.ProtocolStringList + getStringsList() { + return strings_; + } + /** + *
+     * StringValues is a non-empty list of strings.
+     * Each string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string strings = 8; + */ + public int getStringsCount() { + return strings_.size(); + } + /** + *
+     * StringValues is a non-empty list of strings.
+     * Each string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string strings = 8; + */ + public java.lang.String getStrings(int index) { + return strings_.get(index); + } + /** + *
+     * StringValues is a non-empty list of strings.
+     * Each string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string strings = 8; + */ + public com.google.protobuf.ByteString + getStringsBytes(int index) { + return strings_.getByteString(index); + } + + public static final int VERSIONS_FIELD_NUMBER = 9; + private com.google.protobuf.LazyStringList versions_; + /** + *
+     * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+     * Each version string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string versions = 9; + */ + public com.google.protobuf.ProtocolStringList + getVersionsList() { + return versions_; + } + /** + *
+     * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+     * Each version string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string versions = 9; + */ + public int getVersionsCount() { + return versions_.size(); + } + /** + *
+     * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+     * Each version string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string versions = 9; + */ + public java.lang.String getVersions(int index) { + return versions_.get(index); + } + /** + *
+     * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+     * Each version string must not be longer than 64 characters.
+     * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+     * +optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:unionMember
+     * +featureGate=DRAListTypeAttributes
+     * 
+ * + * repeated string versions = 9; + */ + public com.google.protobuf.ByteString + getVersionsBytes(int index) { + return versions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt64(2, int_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBool(3, bool_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, string_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, version_); + } + for (int i = 0; i < ints_.size(); i++) { + output.writeInt64(6, ints_.get(i)); + } + for (int i = 0; i < bools_.size(); i++) { + output.writeBool(7, bools_.get(i)); + } + for (int i = 0; i < strings_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, strings_.getRaw(i)); + } + for (int i = 0; i < versions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, versions_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, int_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, bool_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, string_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, version_); + } + { + int dataSize = 0; + for (int i = 0; i < ints_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream + .computeInt64SizeNoTag(ints_.get(i)); + } + size += dataSize; + size += 1 * getIntsList().size(); + } + { + int dataSize = 0; + dataSize = 1 * getBoolsList().size(); + size += dataSize; + size += 1 * getBoolsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < strings_.size(); i++) { + dataSize += computeStringSizeNoTag(strings_.getRaw(i)); + } + size += dataSize; + size += 1 * getStringsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < versions_.size(); i++) { + dataSize += computeStringSizeNoTag(versions_.getRaw(i)); + } + size += dataSize; + size += 1 * getVersionsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceAttribute)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceAttribute other = (io.kubernetes.client.proto.V1Resource.DeviceAttribute) obj; + + boolean result = true; + result = result && (hasInt() == other.hasInt()); + if (hasInt()) { + result = result && (getInt() + == other.getInt()); + } + result = result && (hasBool() == other.hasBool()); + if (hasBool()) { + result = result && (getBool() + == other.getBool()); + } + result = result && (hasString() == other.hasString()); + if (hasString()) { + result = result && getString() + .equals(other.getString()); + } + result = result && (hasVersion() == other.hasVersion()); + if (hasVersion()) { + result = result && getVersion() + .equals(other.getVersion()); + } + result = result && getIntsList() + .equals(other.getIntsList()); + result = result && getBoolsList() + .equals(other.getBoolsList()); + result = result && getStringsList() + .equals(other.getStringsList()); + result = result && getVersionsList() + .equals(other.getVersionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInt()) { + hash = (37 * hash) + INT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getInt()); + } + if (hasBool()) { + hash = (37 * hash) + BOOL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getBool()); + } + if (hasString()) { + hash = (37 * hash) + STRING_FIELD_NUMBER; + hash = (53 * hash) + getString().hashCode(); + } + if (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + } + if (getIntsCount() > 0) { + hash = (37 * hash) + INTS_FIELD_NUMBER; + hash = (53 * hash) + getIntsList().hashCode(); + } + if (getBoolsCount() > 0) { + hash = (37 * hash) + BOOLS_FIELD_NUMBER; + hash = (53 * hash) + getBoolsList().hashCode(); + } + if (getStringsCount() > 0) { + hash = (37 * hash) + STRINGS_FIELD_NUMBER; + hash = (53 * hash) + getStringsList().hashCode(); + } + if (getVersionsCount() > 0) { + hash = (37 * hash) + VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getVersionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceAttribute parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAttribute parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAttribute parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAttribute parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAttribute parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAttribute parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAttribute parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAttribute parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAttribute parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAttribute parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAttribute parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceAttribute parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceAttribute prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceAttribute must have exactly one field set.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceAttribute} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceAttribute) + io.kubernetes.client.proto.V1Resource.DeviceAttributeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceAttribute_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceAttribute_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceAttribute.class, io.kubernetes.client.proto.V1Resource.DeviceAttribute.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceAttribute.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + int_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + bool_ = false; + bitField0_ = (bitField0_ & ~0x00000002); + string_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + version_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + ints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + bools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + strings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + versions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceAttribute_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceAttribute getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceAttribute.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceAttribute build() { + io.kubernetes.client.proto.V1Resource.DeviceAttribute result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceAttribute buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceAttribute result = new io.kubernetes.client.proto.V1Resource.DeviceAttribute(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.int_ = int_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.bool_ = bool_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.string_ = string_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.version_ = version_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + ints_ = java.util.Collections.unmodifiableList(ints_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.ints_ = ints_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + bools_ = java.util.Collections.unmodifiableList(bools_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.bools_ = bools_; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + strings_ = strings_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.strings_ = strings_; + if (((bitField0_ & 0x00000080) == 0x00000080)) { + versions_ = versions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.versions_ = versions_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceAttribute) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceAttribute)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceAttribute other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceAttribute.getDefaultInstance()) return this; + if (other.hasInt()) { + setInt(other.getInt()); + } + if (other.hasBool()) { + setBool(other.getBool()); + } + if (other.hasString()) { + bitField0_ |= 0x00000004; + string_ = other.string_; + onChanged(); + } + if (other.hasVersion()) { + bitField0_ |= 0x00000008; + version_ = other.version_; + onChanged(); + } + if (!other.ints_.isEmpty()) { + if (ints_.isEmpty()) { + ints_ = other.ints_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureIntsIsMutable(); + ints_.addAll(other.ints_); + } + onChanged(); + } + if (!other.bools_.isEmpty()) { + if (bools_.isEmpty()) { + bools_ = other.bools_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureBoolsIsMutable(); + bools_.addAll(other.bools_); + } + onChanged(); + } + if (!other.strings_.isEmpty()) { + if (strings_.isEmpty()) { + strings_ = other.strings_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureStringsIsMutable(); + strings_.addAll(other.strings_); + } + onChanged(); + } + if (!other.versions_.isEmpty()) { + if (versions_.isEmpty()) { + versions_ = other.versions_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureVersionsIsMutable(); + versions_.addAll(other.versions_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceAttribute parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceAttribute) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long int_ ; + /** + *
+       * IntValue is a number.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional int64 int = 2; + */ + public boolean hasInt() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * IntValue is a number.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional int64 int = 2; + */ + public long getInt() { + return int_; + } + /** + *
+       * IntValue is a number.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional int64 int = 2; + */ + public Builder setInt(long value) { + bitField0_ |= 0x00000001; + int_ = value; + onChanged(); + return this; + } + /** + *
+       * IntValue is a number.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional int64 int = 2; + */ + public Builder clearInt() { + bitField0_ = (bitField0_ & ~0x00000001); + int_ = 0L; + onChanged(); + return this; + } + + private boolean bool_ ; + /** + *
+       * BoolValue is a true/false value.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional bool bool = 3; + */ + public boolean hasBool() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * BoolValue is a true/false value.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional bool bool = 3; + */ + public boolean getBool() { + return bool_; + } + /** + *
+       * BoolValue is a true/false value.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional bool bool = 3; + */ + public Builder setBool(boolean value) { + bitField0_ |= 0x00000002; + bool_ = value; + onChanged(); + return this; + } + /** + *
+       * BoolValue is a true/false value.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional bool bool = 3; + */ + public Builder clearBool() { + bitField0_ = (bitField0_ & ~0x00000002); + bool_ = false; + onChanged(); + return this; + } + + private java.lang.Object string_ = ""; + /** + *
+       * StringValue is a string. Must not be longer than 64 characters.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional string string = 4; + */ + public boolean hasString() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * StringValue is a string. Must not be longer than 64 characters.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional string string = 4; + */ + public java.lang.String getString() { + java.lang.Object ref = string_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + string_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * StringValue is a string. Must not be longer than 64 characters.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional string string = 4; + */ + public com.google.protobuf.ByteString + getStringBytes() { + java.lang.Object ref = string_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + string_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * StringValue is a string. Must not be longer than 64 characters.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional string string = 4; + */ + public Builder setString( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + string_ = value; + onChanged(); + return this; + } + /** + *
+       * StringValue is a string. Must not be longer than 64 characters.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional string string = 4; + */ + public Builder clearString() { + bitField0_ = (bitField0_ & ~0x00000004); + string_ = getDefaultInstance().getString(); + onChanged(); + return this; + } + /** + *
+       * StringValue is a string. Must not be longer than 64 characters.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional string string = 4; + */ + public Builder setStringBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + string_ = value; + onChanged(); + return this; + } + + private java.lang.Object version_ = ""; + /** + *
+       * VersionValue is a semantic version according to semver.org spec 2.0.0.
+       * Must not be longer than 64 characters.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional string version = 5; + */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * VersionValue is a semantic version according to semver.org spec 2.0.0.
+       * Must not be longer than 64 characters.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional string version = 5; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + version_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * VersionValue is a semantic version according to semver.org spec 2.0.0.
+       * Must not be longer than 64 characters.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional string version = 5; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * VersionValue is a semantic version according to semver.org spec 2.0.0.
+       * Must not be longer than 64 characters.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional string version = 5; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + version_ = value; + onChanged(); + return this; + } + /** + *
+       * VersionValue is a semantic version according to semver.org spec 2.0.0.
+       * Must not be longer than 64 characters.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional string version = 5; + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000008); + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       * VersionValue is a semantic version according to semver.org spec 2.0.0.
+       * Must not be longer than 64 characters.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * 
+ * + * optional string version = 5; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + version_ = value; + onChanged(); + return this; + } + + private java.util.List ints_ = java.util.Collections.emptyList(); + private void ensureIntsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + ints_ = new java.util.ArrayList(ints_); + bitField0_ |= 0x00000010; + } + } + /** + *
+       * IntValues is a non-empty list of numbers.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated int64 ints = 6; + */ + public java.util.List + getIntsList() { + return java.util.Collections.unmodifiableList(ints_); + } + /** + *
+       * IntValues is a non-empty list of numbers.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated int64 ints = 6; + */ + public int getIntsCount() { + return ints_.size(); + } + /** + *
+       * IntValues is a non-empty list of numbers.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated int64 ints = 6; + */ + public long getInts(int index) { + return ints_.get(index); + } + /** + *
+       * IntValues is a non-empty list of numbers.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated int64 ints = 6; + */ + public Builder setInts( + int index, long value) { + ensureIntsIsMutable(); + ints_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * IntValues is a non-empty list of numbers.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated int64 ints = 6; + */ + public Builder addInts(long value) { + ensureIntsIsMutable(); + ints_.add(value); + onChanged(); + return this; + } + /** + *
+       * IntValues is a non-empty list of numbers.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated int64 ints = 6; + */ + public Builder addAllInts( + java.lang.Iterable values) { + ensureIntsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ints_); + onChanged(); + return this; + } + /** + *
+       * IntValues is a non-empty list of numbers.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated int64 ints = 6; + */ + public Builder clearInts() { + ints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + private java.util.List bools_ = java.util.Collections.emptyList(); + private void ensureBoolsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + bools_ = new java.util.ArrayList(bools_); + bitField0_ |= 0x00000020; + } + } + /** + *
+       * BoolValues is a non-empty list of true/false values.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated bool bools = 7; + */ + public java.util.List + getBoolsList() { + return java.util.Collections.unmodifiableList(bools_); + } + /** + *
+       * BoolValues is a non-empty list of true/false values.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated bool bools = 7; + */ + public int getBoolsCount() { + return bools_.size(); + } + /** + *
+       * BoolValues is a non-empty list of true/false values.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated bool bools = 7; + */ + public boolean getBools(int index) { + return bools_.get(index); + } + /** + *
+       * BoolValues is a non-empty list of true/false values.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated bool bools = 7; + */ + public Builder setBools( + int index, boolean value) { + ensureBoolsIsMutable(); + bools_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * BoolValues is a non-empty list of true/false values.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated bool bools = 7; + */ + public Builder addBools(boolean value) { + ensureBoolsIsMutable(); + bools_.add(value); + onChanged(); + return this; + } + /** + *
+       * BoolValues is a non-empty list of true/false values.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated bool bools = 7; + */ + public Builder addAllBools( + java.lang.Iterable values) { + ensureBoolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bools_); + onChanged(); + return this; + } + /** + *
+       * BoolValues is a non-empty list of true/false values.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated bool bools = 7; + */ + public Builder clearBools() { + bools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList strings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureStringsIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + strings_ = new com.google.protobuf.LazyStringArrayList(strings_); + bitField0_ |= 0x00000040; + } + } + /** + *
+       * StringValues is a non-empty list of strings.
+       * Each string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string strings = 8; + */ + public com.google.protobuf.ProtocolStringList + getStringsList() { + return strings_.getUnmodifiableView(); + } + /** + *
+       * StringValues is a non-empty list of strings.
+       * Each string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string strings = 8; + */ + public int getStringsCount() { + return strings_.size(); + } + /** + *
+       * StringValues is a non-empty list of strings.
+       * Each string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string strings = 8; + */ + public java.lang.String getStrings(int index) { + return strings_.get(index); + } + /** + *
+       * StringValues is a non-empty list of strings.
+       * Each string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string strings = 8; + */ + public com.google.protobuf.ByteString + getStringsBytes(int index) { + return strings_.getByteString(index); + } + /** + *
+       * StringValues is a non-empty list of strings.
+       * Each string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string strings = 8; + */ + public Builder setStrings( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStringsIsMutable(); + strings_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * StringValues is a non-empty list of strings.
+       * Each string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string strings = 8; + */ + public Builder addStrings( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStringsIsMutable(); + strings_.add(value); + onChanged(); + return this; + } + /** + *
+       * StringValues is a non-empty list of strings.
+       * Each string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string strings = 8; + */ + public Builder addAllStrings( + java.lang.Iterable values) { + ensureStringsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, strings_); + onChanged(); + return this; + } + /** + *
+       * StringValues is a non-empty list of strings.
+       * Each string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string strings = 8; + */ + public Builder clearStrings() { + strings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+       * StringValues is a non-empty list of strings.
+       * Each string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +k8s:alpha(since: "1.37")=+k8s:eachVal=+k8s:maxBytes=64
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string strings = 8; + */ + public Builder addStringsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureStringsIsMutable(); + strings_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList versions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureVersionsIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + versions_ = new com.google.protobuf.LazyStringArrayList(versions_); + bitField0_ |= 0x00000080; + } + } + /** + *
+       * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+       * Each version string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string versions = 9; + */ + public com.google.protobuf.ProtocolStringList + getVersionsList() { + return versions_.getUnmodifiableView(); + } + /** + *
+       * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+       * Each version string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string versions = 9; + */ + public int getVersionsCount() { + return versions_.size(); + } + /** + *
+       * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+       * Each version string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string versions = 9; + */ + public java.lang.String getVersions(int index) { + return versions_.get(index); + } + /** + *
+       * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+       * Each version string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string versions = 9; + */ + public com.google.protobuf.ByteString + getVersionsBytes(int index) { + return versions_.getByteString(index); + } + /** + *
+       * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+       * Each version string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string versions = 9; + */ + public Builder setVersions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionsIsMutable(); + versions_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+       * Each version string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string versions = 9; + */ + public Builder addVersions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionsIsMutable(); + versions_.add(value); + onChanged(); + return this; + } + /** + *
+       * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+       * Each version string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string versions = 9; + */ + public Builder addAllVersions( + java.lang.Iterable values) { + ensureVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, versions_); + onChanged(); + return this; + } + /** + *
+       * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+       * Each version string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string versions = 9; + */ + public Builder clearVersions() { + versions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+       * VersionValues is a non-empty list of semantic versions according to semver.org spec 2.0.0.
+       * Each version string must not be longer than 64 characters.
+       * This is an alpha field and requires enabling the DRAListTypeAttributes feature gate.
+       * +optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:unionMember
+       * +featureGate=DRAListTypeAttributes
+       * 
+ * + * repeated string versions = 9; + */ + public Builder addVersionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionsIsMutable(); + versions_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceAttribute) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceAttribute) + private static final io.kubernetes.client.proto.V1Resource.DeviceAttribute DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceAttribute(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceAttribute getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceAttribute parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceAttribute(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceAttribute getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceCapacityOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceCapacity) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Value defines how much of a certain capacity that device has.
+     * This field reflects the fixed total capacity and does not change.
+     * The consumed amount is tracked separately by scheduler
+     * and does not affect this value.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + boolean hasValue(); + /** + *
+     * Value defines how much of a certain capacity that device has.
+     * This field reflects the fixed total capacity and does not change.
+     * The consumed amount is tracked separately by scheduler
+     * and does not affect this value.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + io.kubernetes.client.proto.Resource.Quantity getValue(); + /** + *
+     * Value defines how much of a certain capacity that device has.
+     * This field reflects the fixed total capacity and does not change.
+     * The consumed amount is tracked separately by scheduler
+     * and does not affect this value.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + io.kubernetes.client.proto.Resource.QuantityOrBuilder getValueOrBuilder(); + + /** + *
+     * RequestPolicy defines how this DeviceCapacity must be consumed
+     * when the device is allowed to be shared by multiple allocations.
+     * The Device must have allowMultipleAllocations set to true in order to set a requestPolicy.
+     * If unset, capacity requests are unconstrained:
+     * requests can consume any amount of capacity, as long as the total consumed
+     * across all allocations does not exceed the device's defined capacity.
+     * If request is also unset, default is the full capacity value.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicy requestPolicy = 2; + */ + boolean hasRequestPolicy(); + /** + *
+     * RequestPolicy defines how this DeviceCapacity must be consumed
+     * when the device is allowed to be shared by multiple allocations.
+     * The Device must have allowMultipleAllocations set to true in order to set a requestPolicy.
+     * If unset, capacity requests are unconstrained:
+     * requests can consume any amount of capacity, as long as the total consumed
+     * across all allocations does not exceed the device's defined capacity.
+     * If request is also unset, default is the full capacity value.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicy requestPolicy = 2; + */ + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy getRequestPolicy(); + /** + *
+     * RequestPolicy defines how this DeviceCapacity must be consumed
+     * when the device is allowed to be shared by multiple allocations.
+     * The Device must have allowMultipleAllocations set to true in order to set a requestPolicy.
+     * If unset, capacity requests are unconstrained:
+     * requests can consume any amount of capacity, as long as the total consumed
+     * across all allocations does not exceed the device's defined capacity.
+     * If request is also unset, default is the full capacity value.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicy requestPolicy = 2; + */ + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyOrBuilder getRequestPolicyOrBuilder(); + } + /** + *
+   * DeviceCapacity describes a quantity associated with a device.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceCapacity} + */ + public static final class DeviceCapacity extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceCapacity) + DeviceCapacityOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceCapacity.newBuilder() to construct. + private DeviceCapacity(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceCapacity() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceCapacity( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Resource.Quantity.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = value_.toBuilder(); + } + value_ = input.readMessage(io.kubernetes.client.proto.Resource.Quantity.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(value_); + value_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = requestPolicy_.toBuilder(); + } + requestPolicy_ = input.readMessage(io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(requestPolicy_); + requestPolicy_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceCapacity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceCapacity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceCapacity.class, io.kubernetes.client.proto.V1Resource.DeviceCapacity.Builder.class); + } + + private int bitField0_; + public static final int VALUE_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Resource.Quantity value_; + /** + *
+     * Value defines how much of a certain capacity that device has.
+     * This field reflects the fixed total capacity and does not change.
+     * The consumed amount is tracked separately by scheduler
+     * and does not affect this value.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Value defines how much of a certain capacity that device has.
+     * This field reflects the fixed total capacity and does not change.
+     * The consumed amount is tracked separately by scheduler
+     * and does not affect this value.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public io.kubernetes.client.proto.Resource.Quantity getValue() { + return value_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : value_; + } + /** + *
+     * Value defines how much of a certain capacity that device has.
+     * This field reflects the fixed total capacity and does not change.
+     * The consumed amount is tracked separately by scheduler
+     * and does not affect this value.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getValueOrBuilder() { + return value_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : value_; + } + + public static final int REQUESTPOLICY_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy requestPolicy_; + /** + *
+     * RequestPolicy defines how this DeviceCapacity must be consumed
+     * when the device is allowed to be shared by multiple allocations.
+     * The Device must have allowMultipleAllocations set to true in order to set a requestPolicy.
+     * If unset, capacity requests are unconstrained:
+     * requests can consume any amount of capacity, as long as the total consumed
+     * across all allocations does not exceed the device's defined capacity.
+     * If request is also unset, default is the full capacity value.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicy requestPolicy = 2; + */ + public boolean hasRequestPolicy() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * RequestPolicy defines how this DeviceCapacity must be consumed
+     * when the device is allowed to be shared by multiple allocations.
+     * The Device must have allowMultipleAllocations set to true in order to set a requestPolicy.
+     * If unset, capacity requests are unconstrained:
+     * requests can consume any amount of capacity, as long as the total consumed
+     * across all allocations does not exceed the device's defined capacity.
+     * If request is also unset, default is the full capacity value.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicy requestPolicy = 2; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy getRequestPolicy() { + return requestPolicy_ == null ? io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.getDefaultInstance() : requestPolicy_; + } + /** + *
+     * RequestPolicy defines how this DeviceCapacity must be consumed
+     * when the device is allowed to be shared by multiple allocations.
+     * The Device must have allowMultipleAllocations set to true in order to set a requestPolicy.
+     * If unset, capacity requests are unconstrained:
+     * requests can consume any amount of capacity, as long as the total consumed
+     * across all allocations does not exceed the device's defined capacity.
+     * If request is also unset, default is the full capacity value.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicy requestPolicy = 2; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyOrBuilder getRequestPolicyOrBuilder() { + return requestPolicy_ == null ? io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.getDefaultInstance() : requestPolicy_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getValue()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getRequestPolicy()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getValue()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getRequestPolicy()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceCapacity)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceCapacity other = (io.kubernetes.client.proto.V1Resource.DeviceCapacity) obj; + + boolean result = true; + result = result && (hasValue() == other.hasValue()); + if (hasValue()) { + result = result && getValue() + .equals(other.getValue()); + } + result = result && (hasRequestPolicy() == other.hasRequestPolicy()); + if (hasRequestPolicy()) { + result = result && getRequestPolicy() + .equals(other.getRequestPolicy()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + if (hasRequestPolicy()) { + hash = (37 * hash) + REQUESTPOLICY_FIELD_NUMBER; + hash = (53 * hash) + getRequestPolicy().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceCapacity parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCapacity parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCapacity parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCapacity parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCapacity parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCapacity parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCapacity parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCapacity parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCapacity parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCapacity parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCapacity parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCapacity parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceCapacity prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceCapacity describes a quantity associated with a device.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceCapacity} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceCapacity) + io.kubernetes.client.proto.V1Resource.DeviceCapacityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceCapacity_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceCapacity_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceCapacity.class, io.kubernetes.client.proto.V1Resource.DeviceCapacity.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceCapacity.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getValueFieldBuilder(); + getRequestPolicyFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (valueBuilder_ == null) { + value_ = null; + } else { + valueBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (requestPolicyBuilder_ == null) { + requestPolicy_ = null; + } else { + requestPolicyBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceCapacity_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceCapacity getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceCapacity.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceCapacity build() { + io.kubernetes.client.proto.V1Resource.DeviceCapacity result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceCapacity buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceCapacity result = new io.kubernetes.client.proto.V1Resource.DeviceCapacity(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (requestPolicyBuilder_ == null) { + result.requestPolicy_ = requestPolicy_; + } else { + result.requestPolicy_ = requestPolicyBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceCapacity) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceCapacity)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceCapacity other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceCapacity.getDefaultInstance()) return this; + if (other.hasValue()) { + mergeValue(other.getValue()); + } + if (other.hasRequestPolicy()) { + mergeRequestPolicy(other.getRequestPolicy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceCapacity parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceCapacity) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Resource.Quantity value_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> valueBuilder_; + /** + *
+       * Value defines how much of a certain capacity that device has.
+       * This field reflects the fixed total capacity and does not change.
+       * The consumed amount is tracked separately by scheduler
+       * and does not affect this value.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Value defines how much of a certain capacity that device has.
+       * This field reflects the fixed total capacity and does not change.
+       * The consumed amount is tracked separately by scheduler
+       * and does not affect this value.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public io.kubernetes.client.proto.Resource.Quantity getValue() { + if (valueBuilder_ == null) { + return value_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + *
+       * Value defines how much of a certain capacity that device has.
+       * This field reflects the fixed total capacity and does not change.
+       * The consumed amount is tracked separately by scheduler
+       * and does not affect this value.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public Builder setValue(io.kubernetes.client.proto.Resource.Quantity value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + onChanged(); + } else { + valueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Value defines how much of a certain capacity that device has.
+       * This field reflects the fixed total capacity and does not change.
+       * The consumed amount is tracked separately by scheduler
+       * and does not affect this value.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public Builder setValue( + io.kubernetes.client.proto.Resource.Quantity.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + onChanged(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Value defines how much of a certain capacity that device has.
+       * This field reflects the fixed total capacity and does not change.
+       * The consumed amount is tracked separately by scheduler
+       * and does not affect this value.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public Builder mergeValue(io.kubernetes.client.proto.Resource.Quantity value) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + value_ != null && + value_ != io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()) { + value_ = + io.kubernetes.client.proto.Resource.Quantity.newBuilder(value_).mergeFrom(value).buildPartial(); + } else { + value_ = value; + } + onChanged(); + } else { + valueBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Value defines how much of a certain capacity that device has.
+       * This field reflects the fixed total capacity and does not change.
+       * The consumed amount is tracked separately by scheduler
+       * and does not affect this value.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public Builder clearValue() { + if (valueBuilder_ == null) { + value_ = null; + onChanged(); + } else { + valueBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Value defines how much of a certain capacity that device has.
+       * This field reflects the fixed total capacity and does not change.
+       * The consumed amount is tracked separately by scheduler
+       * and does not affect this value.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public io.kubernetes.client.proto.Resource.Quantity.Builder getValueBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + *
+       * Value defines how much of a certain capacity that device has.
+       * This field reflects the fixed total capacity and does not change.
+       * The consumed amount is tracked separately by scheduler
+       * and does not affect this value.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : value_; + } + } + /** + *
+       * Value defines how much of a certain capacity that device has.
+       * This field reflects the fixed total capacity and does not change.
+       * The consumed amount is tracked separately by scheduler
+       * and does not affect this value.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + + private io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy requestPolicy_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.Builder, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyOrBuilder> requestPolicyBuilder_; + /** + *
+       * RequestPolicy defines how this DeviceCapacity must be consumed
+       * when the device is allowed to be shared by multiple allocations.
+       * The Device must have allowMultipleAllocations set to true in order to set a requestPolicy.
+       * If unset, capacity requests are unconstrained:
+       * requests can consume any amount of capacity, as long as the total consumed
+       * across all allocations does not exceed the device's defined capacity.
+       * If request is also unset, default is the full capacity value.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicy requestPolicy = 2; + */ + public boolean hasRequestPolicy() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * RequestPolicy defines how this DeviceCapacity must be consumed
+       * when the device is allowed to be shared by multiple allocations.
+       * The Device must have allowMultipleAllocations set to true in order to set a requestPolicy.
+       * If unset, capacity requests are unconstrained:
+       * requests can consume any amount of capacity, as long as the total consumed
+       * across all allocations does not exceed the device's defined capacity.
+       * If request is also unset, default is the full capacity value.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicy requestPolicy = 2; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy getRequestPolicy() { + if (requestPolicyBuilder_ == null) { + return requestPolicy_ == null ? io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.getDefaultInstance() : requestPolicy_; + } else { + return requestPolicyBuilder_.getMessage(); + } + } + /** + *
+       * RequestPolicy defines how this DeviceCapacity must be consumed
+       * when the device is allowed to be shared by multiple allocations.
+       * The Device must have allowMultipleAllocations set to true in order to set a requestPolicy.
+       * If unset, capacity requests are unconstrained:
+       * requests can consume any amount of capacity, as long as the total consumed
+       * across all allocations does not exceed the device's defined capacity.
+       * If request is also unset, default is the full capacity value.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicy requestPolicy = 2; + */ + public Builder setRequestPolicy(io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy value) { + if (requestPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + requestPolicy_ = value; + onChanged(); + } else { + requestPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * RequestPolicy defines how this DeviceCapacity must be consumed
+       * when the device is allowed to be shared by multiple allocations.
+       * The Device must have allowMultipleAllocations set to true in order to set a requestPolicy.
+       * If unset, capacity requests are unconstrained:
+       * requests can consume any amount of capacity, as long as the total consumed
+       * across all allocations does not exceed the device's defined capacity.
+       * If request is also unset, default is the full capacity value.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicy requestPolicy = 2; + */ + public Builder setRequestPolicy( + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.Builder builderForValue) { + if (requestPolicyBuilder_ == null) { + requestPolicy_ = builderForValue.build(); + onChanged(); + } else { + requestPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * RequestPolicy defines how this DeviceCapacity must be consumed
+       * when the device is allowed to be shared by multiple allocations.
+       * The Device must have allowMultipleAllocations set to true in order to set a requestPolicy.
+       * If unset, capacity requests are unconstrained:
+       * requests can consume any amount of capacity, as long as the total consumed
+       * across all allocations does not exceed the device's defined capacity.
+       * If request is also unset, default is the full capacity value.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicy requestPolicy = 2; + */ + public Builder mergeRequestPolicy(io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy value) { + if (requestPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + requestPolicy_ != null && + requestPolicy_ != io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.getDefaultInstance()) { + requestPolicy_ = + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.newBuilder(requestPolicy_).mergeFrom(value).buildPartial(); + } else { + requestPolicy_ = value; + } + onChanged(); + } else { + requestPolicyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * RequestPolicy defines how this DeviceCapacity must be consumed
+       * when the device is allowed to be shared by multiple allocations.
+       * The Device must have allowMultipleAllocations set to true in order to set a requestPolicy.
+       * If unset, capacity requests are unconstrained:
+       * requests can consume any amount of capacity, as long as the total consumed
+       * across all allocations does not exceed the device's defined capacity.
+       * If request is also unset, default is the full capacity value.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicy requestPolicy = 2; + */ + public Builder clearRequestPolicy() { + if (requestPolicyBuilder_ == null) { + requestPolicy_ = null; + onChanged(); + } else { + requestPolicyBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * RequestPolicy defines how this DeviceCapacity must be consumed
+       * when the device is allowed to be shared by multiple allocations.
+       * The Device must have allowMultipleAllocations set to true in order to set a requestPolicy.
+       * If unset, capacity requests are unconstrained:
+       * requests can consume any amount of capacity, as long as the total consumed
+       * across all allocations does not exceed the device's defined capacity.
+       * If request is also unset, default is the full capacity value.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicy requestPolicy = 2; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.Builder getRequestPolicyBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRequestPolicyFieldBuilder().getBuilder(); + } + /** + *
+       * RequestPolicy defines how this DeviceCapacity must be consumed
+       * when the device is allowed to be shared by multiple allocations.
+       * The Device must have allowMultipleAllocations set to true in order to set a requestPolicy.
+       * If unset, capacity requests are unconstrained:
+       * requests can consume any amount of capacity, as long as the total consumed
+       * across all allocations does not exceed the device's defined capacity.
+       * If request is also unset, default is the full capacity value.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicy requestPolicy = 2; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyOrBuilder getRequestPolicyOrBuilder() { + if (requestPolicyBuilder_ != null) { + return requestPolicyBuilder_.getMessageOrBuilder(); + } else { + return requestPolicy_ == null ? + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.getDefaultInstance() : requestPolicy_; + } + } + /** + *
+       * RequestPolicy defines how this DeviceCapacity must be consumed
+       * when the device is allowed to be shared by multiple allocations.
+       * The Device must have allowMultipleAllocations set to true in order to set a requestPolicy.
+       * If unset, capacity requests are unconstrained:
+       * requests can consume any amount of capacity, as long as the total consumed
+       * across all allocations does not exceed the device's defined capacity.
+       * If request is also unset, default is the full capacity value.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequestPolicy requestPolicy = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.Builder, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyOrBuilder> + getRequestPolicyFieldBuilder() { + if (requestPolicyBuilder_ == null) { + requestPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicy.Builder, io.kubernetes.client.proto.V1Resource.CapacityRequestPolicyOrBuilder>( + getRequestPolicy(), + getParentForChildren(), + isClean()); + requestPolicy_ = null; + } + return requestPolicyBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceCapacity) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceCapacity) + private static final io.kubernetes.client.proto.V1Resource.DeviceCapacity DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceCapacity(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceCapacity getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceCapacity parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceCapacity(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceCapacity getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceClaimOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceClaim) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Requests represent individual requests for distinct devices which
+     * must all be satisfied. If empty, nothing needs to be allocated.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + java.util.List + getRequestsList(); + /** + *
+     * Requests represent individual requests for distinct devices which
+     * must all be satisfied. If empty, nothing needs to be allocated.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + io.kubernetes.client.proto.V1Resource.DeviceRequest getRequests(int index); + /** + *
+     * Requests represent individual requests for distinct devices which
+     * must all be satisfied. If empty, nothing needs to be allocated.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + int getRequestsCount(); + /** + *
+     * Requests represent individual requests for distinct devices which
+     * must all be satisfied. If empty, nothing needs to be allocated.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + java.util.List + getRequestsOrBuilderList(); + /** + *
+     * Requests represent individual requests for distinct devices which
+     * must all be satisfied. If empty, nothing needs to be allocated.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + io.kubernetes.client.proto.V1Resource.DeviceRequestOrBuilder getRequestsOrBuilder( + int index); + + /** + *
+     * These constraints must be satisfied by the set of devices that get
+     * allocated for the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + java.util.List + getConstraintsList(); + /** + *
+     * These constraints must be satisfied by the set of devices that get
+     * allocated for the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + io.kubernetes.client.proto.V1Resource.DeviceConstraint getConstraints(int index); + /** + *
+     * These constraints must be satisfied by the set of devices that get
+     * allocated for the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + int getConstraintsCount(); + /** + *
+     * These constraints must be satisfied by the set of devices that get
+     * allocated for the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + java.util.List + getConstraintsOrBuilderList(); + /** + *
+     * These constraints must be satisfied by the set of devices that get
+     * allocated for the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + io.kubernetes.client.proto.V1Resource.DeviceConstraintOrBuilder getConstraintsOrBuilder( + int index); + + /** + *
+     * This field holds configuration for multiple potential drivers which
+     * could satisfy requests in this claim. It is ignored while allocating
+     * the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + java.util.List + getConfigList(); + /** + *
+     * This field holds configuration for multiple potential drivers which
+     * could satisfy requests in this claim. It is ignored while allocating
+     * the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration getConfig(int index); + /** + *
+     * This field holds configuration for multiple potential drivers which
+     * could satisfy requests in this claim. It is ignored while allocating
+     * the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + int getConfigCount(); + /** + *
+     * This field holds configuration for multiple potential drivers which
+     * could satisfy requests in this claim. It is ignored while allocating
+     * the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + java.util.List + getConfigOrBuilderList(); + /** + *
+     * This field holds configuration for multiple potential drivers which
+     * could satisfy requests in this claim. It is ignored while allocating
+     * the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + io.kubernetes.client.proto.V1Resource.DeviceClaimConfigurationOrBuilder getConfigOrBuilder( + int index); + } + /** + *
+   * DeviceClaim defines how to request devices with a ResourceClaim.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceClaim} + */ + public static final class DeviceClaim extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceClaim) + DeviceClaimOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceClaim.newBuilder() to construct. + private DeviceClaim(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceClaim() { + requests_ = java.util.Collections.emptyList(); + constraints_ = java.util.Collections.emptyList(); + config_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceClaim( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceRequest.PARSER, extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + constraints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + constraints_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceConstraint.PARSER, extensionRegistry)); + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + config_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + config_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + constraints_ = java.util.Collections.unmodifiableList(constraints_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + config_ = java.util.Collections.unmodifiableList(config_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClaim_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClaim_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceClaim.class, io.kubernetes.client.proto.V1Resource.DeviceClaim.Builder.class); + } + + public static final int REQUESTS_FIELD_NUMBER = 1; + private java.util.List requests_; + /** + *
+     * Requests represent individual requests for distinct devices which
+     * must all be satisfied. If empty, nothing needs to be allocated.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public java.util.List getRequestsList() { + return requests_; + } + /** + *
+     * Requests represent individual requests for distinct devices which
+     * must all be satisfied. If empty, nothing needs to be allocated.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + /** + *
+     * Requests represent individual requests for distinct devices which
+     * must all be satisfied. If empty, nothing needs to be allocated.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public int getRequestsCount() { + return requests_.size(); + } + /** + *
+     * Requests represent individual requests for distinct devices which
+     * must all be satisfied. If empty, nothing needs to be allocated.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceRequest getRequests(int index) { + return requests_.get(index); + } + /** + *
+     * Requests represent individual requests for distinct devices which
+     * must all be satisfied. If empty, nothing needs to be allocated.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.get(index); + } + + public static final int CONSTRAINTS_FIELD_NUMBER = 2; + private java.util.List constraints_; + /** + *
+     * These constraints must be satisfied by the set of devices that get
+     * allocated for the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public java.util.List getConstraintsList() { + return constraints_; + } + /** + *
+     * These constraints must be satisfied by the set of devices that get
+     * allocated for the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public java.util.List + getConstraintsOrBuilderList() { + return constraints_; + } + /** + *
+     * These constraints must be satisfied by the set of devices that get
+     * allocated for the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public int getConstraintsCount() { + return constraints_.size(); + } + /** + *
+     * These constraints must be satisfied by the set of devices that get
+     * allocated for the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConstraint getConstraints(int index) { + return constraints_.get(index); + } + /** + *
+     * These constraints must be satisfied by the set of devices that get
+     * allocated for the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConstraintOrBuilder getConstraintsOrBuilder( + int index) { + return constraints_.get(index); + } + + public static final int CONFIG_FIELD_NUMBER = 3; + private java.util.List config_; + /** + *
+     * This field holds configuration for multiple potential drivers which
+     * could satisfy requests in this claim. It is ignored while allocating
+     * the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public java.util.List getConfigList() { + return config_; + } + /** + *
+     * This field holds configuration for multiple potential drivers which
+     * could satisfy requests in this claim. It is ignored while allocating
+     * the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public java.util.List + getConfigOrBuilderList() { + return config_; + } + /** + *
+     * This field holds configuration for multiple potential drivers which
+     * could satisfy requests in this claim. It is ignored while allocating
+     * the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public int getConfigCount() { + return config_.size(); + } + /** + *
+     * This field holds configuration for multiple potential drivers which
+     * could satisfy requests in this claim. It is ignored while allocating
+     * the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration getConfig(int index) { + return config_.get(index); + } + /** + *
+     * This field holds configuration for multiple potential drivers which
+     * could satisfy requests in this claim. It is ignored while allocating
+     * the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClaimConfigurationOrBuilder getConfigOrBuilder( + int index) { + return config_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(1, requests_.get(i)); + } + for (int i = 0; i < constraints_.size(); i++) { + output.writeMessage(2, constraints_.get(i)); + } + for (int i = 0; i < config_.size(); i++) { + output.writeMessage(3, config_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); + } + for (int i = 0; i < constraints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, constraints_.get(i)); + } + for (int i = 0; i < config_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, config_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceClaim)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceClaim other = (io.kubernetes.client.proto.V1Resource.DeviceClaim) obj; + + boolean result = true; + result = result && getRequestsList() + .equals(other.getRequestsList()); + result = result && getConstraintsList() + .equals(other.getConstraintsList()); + result = result && getConfigList() + .equals(other.getConfigList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + if (getConstraintsCount() > 0) { + hash = (37 * hash) + CONSTRAINTS_FIELD_NUMBER; + hash = (53 * hash) + getConstraintsList().hashCode(); + } + if (getConfigCount() > 0) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfigList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceClaim parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaim parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaim parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaim parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaim parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaim parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaim parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaim parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaim parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaim parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaim parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaim parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceClaim prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceClaim defines how to request devices with a ResourceClaim.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceClaim} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceClaim) + io.kubernetes.client.proto.V1Resource.DeviceClaimOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClaim_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClaim_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceClaim.class, io.kubernetes.client.proto.V1Resource.DeviceClaim.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceClaim.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRequestsFieldBuilder(); + getConstraintsFieldBuilder(); + getConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + requestsBuilder_.clear(); + } + if (constraintsBuilder_ == null) { + constraints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + constraintsBuilder_.clear(); + } + if (configBuilder_ == null) { + config_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + configBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClaim_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClaim getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceClaim.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClaim build() { + io.kubernetes.client.proto.V1Resource.DeviceClaim result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClaim buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceClaim result = new io.kubernetes.client.proto.V1Resource.DeviceClaim(this); + int from_bitField0_ = bitField0_; + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + if (constraintsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + constraints_ = java.util.Collections.unmodifiableList(constraints_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.constraints_ = constraints_; + } else { + result.constraints_ = constraintsBuilder_.build(); + } + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + config_ = java.util.Collections.unmodifiableList(config_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.config_ = config_; + } else { + result.config_ = configBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceClaim) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceClaim)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceClaim other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceClaim.getDefaultInstance()) return this; + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + if (constraintsBuilder_ == null) { + if (!other.constraints_.isEmpty()) { + if (constraints_.isEmpty()) { + constraints_ = other.constraints_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureConstraintsIsMutable(); + constraints_.addAll(other.constraints_); + } + onChanged(); + } + } else { + if (!other.constraints_.isEmpty()) { + if (constraintsBuilder_.isEmpty()) { + constraintsBuilder_.dispose(); + constraintsBuilder_ = null; + constraints_ = other.constraints_; + bitField0_ = (bitField0_ & ~0x00000002); + constraintsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConstraintsFieldBuilder() : null; + } else { + constraintsBuilder_.addAllMessages(other.constraints_); + } + } + } + if (configBuilder_ == null) { + if (!other.config_.isEmpty()) { + if (config_.isEmpty()) { + config_ = other.config_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureConfigIsMutable(); + config_.addAll(other.config_); + } + onChanged(); + } + } else { + if (!other.config_.isEmpty()) { + if (configBuilder_.isEmpty()) { + configBuilder_.dispose(); + configBuilder_ = null; + config_ = other.config_; + bitField0_ = (bitField0_ & ~0x00000004); + configBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConfigFieldBuilder() : null; + } else { + configBuilder_.addAllMessages(other.config_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceClaim parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceClaim) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List requests_ = + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = new java.util.ArrayList(requests_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceRequest, io.kubernetes.client.proto.V1Resource.DeviceRequest.Builder, io.kubernetes.client.proto.V1Resource.DeviceRequestOrBuilder> requestsBuilder_; + + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public Builder setRequests( + int index, io.kubernetes.client.proto.V1Resource.DeviceRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public Builder setRequests( + int index, io.kubernetes.client.proto.V1Resource.DeviceRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public Builder addRequests(io.kubernetes.client.proto.V1Resource.DeviceRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public Builder addRequests( + int index, io.kubernetes.client.proto.V1Resource.DeviceRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public Builder addRequests( + io.kubernetes.client.proto.V1Resource.DeviceRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public Builder addRequests( + int index, io.kubernetes.client.proto.V1Resource.DeviceRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceRequest.getDefaultInstance()); + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceRequest.getDefaultInstance()); + } + /** + *
+       * Requests represent individual requests for distinct devices which
+       * must all be satisfied. If empty, nothing needs to be allocated.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceRequest requests = 1; + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceRequest, io.kubernetes.client.proto.V1Resource.DeviceRequest.Builder, io.kubernetes.client.proto.V1Resource.DeviceRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceRequest, io.kubernetes.client.proto.V1Resource.DeviceRequest.Builder, io.kubernetes.client.proto.V1Resource.DeviceRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + private java.util.List constraints_ = + java.util.Collections.emptyList(); + private void ensureConstraintsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + constraints_ = new java.util.ArrayList(constraints_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceConstraint, io.kubernetes.client.proto.V1Resource.DeviceConstraint.Builder, io.kubernetes.client.proto.V1Resource.DeviceConstraintOrBuilder> constraintsBuilder_; + + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public java.util.List getConstraintsList() { + if (constraintsBuilder_ == null) { + return java.util.Collections.unmodifiableList(constraints_); + } else { + return constraintsBuilder_.getMessageList(); + } + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public int getConstraintsCount() { + if (constraintsBuilder_ == null) { + return constraints_.size(); + } else { + return constraintsBuilder_.getCount(); + } + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConstraint getConstraints(int index) { + if (constraintsBuilder_ == null) { + return constraints_.get(index); + } else { + return constraintsBuilder_.getMessage(index); + } + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public Builder setConstraints( + int index, io.kubernetes.client.proto.V1Resource.DeviceConstraint value) { + if (constraintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstraintsIsMutable(); + constraints_.set(index, value); + onChanged(); + } else { + constraintsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public Builder setConstraints( + int index, io.kubernetes.client.proto.V1Resource.DeviceConstraint.Builder builderForValue) { + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + constraints_.set(index, builderForValue.build()); + onChanged(); + } else { + constraintsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public Builder addConstraints(io.kubernetes.client.proto.V1Resource.DeviceConstraint value) { + if (constraintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstraintsIsMutable(); + constraints_.add(value); + onChanged(); + } else { + constraintsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public Builder addConstraints( + int index, io.kubernetes.client.proto.V1Resource.DeviceConstraint value) { + if (constraintsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConstraintsIsMutable(); + constraints_.add(index, value); + onChanged(); + } else { + constraintsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public Builder addConstraints( + io.kubernetes.client.proto.V1Resource.DeviceConstraint.Builder builderForValue) { + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + constraints_.add(builderForValue.build()); + onChanged(); + } else { + constraintsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public Builder addConstraints( + int index, io.kubernetes.client.proto.V1Resource.DeviceConstraint.Builder builderForValue) { + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + constraints_.add(index, builderForValue.build()); + onChanged(); + } else { + constraintsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public Builder addAllConstraints( + java.lang.Iterable values) { + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, constraints_); + onChanged(); + } else { + constraintsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public Builder clearConstraints() { + if (constraintsBuilder_ == null) { + constraints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + constraintsBuilder_.clear(); + } + return this; + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public Builder removeConstraints(int index) { + if (constraintsBuilder_ == null) { + ensureConstraintsIsMutable(); + constraints_.remove(index); + onChanged(); + } else { + constraintsBuilder_.remove(index); + } + return this; + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConstraint.Builder getConstraintsBuilder( + int index) { + return getConstraintsFieldBuilder().getBuilder(index); + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConstraintOrBuilder getConstraintsOrBuilder( + int index) { + if (constraintsBuilder_ == null) { + return constraints_.get(index); } else { + return constraintsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public java.util.List + getConstraintsOrBuilderList() { + if (constraintsBuilder_ != null) { + return constraintsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(constraints_); + } + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConstraint.Builder addConstraintsBuilder() { + return getConstraintsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceConstraint.getDefaultInstance()); + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConstraint.Builder addConstraintsBuilder( + int index) { + return getConstraintsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceConstraint.getDefaultInstance()); + } + /** + *
+       * These constraints must be satisfied by the set of devices that get
+       * allocated for the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceConstraint constraints = 2; + */ + public java.util.List + getConstraintsBuilderList() { + return getConstraintsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceConstraint, io.kubernetes.client.proto.V1Resource.DeviceConstraint.Builder, io.kubernetes.client.proto.V1Resource.DeviceConstraintOrBuilder> + getConstraintsFieldBuilder() { + if (constraintsBuilder_ == null) { + constraintsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceConstraint, io.kubernetes.client.proto.V1Resource.DeviceConstraint.Builder, io.kubernetes.client.proto.V1Resource.DeviceConstraintOrBuilder>( + constraints_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + constraints_ = null; + } + return constraintsBuilder_; + } + + private java.util.List config_ = + java.util.Collections.emptyList(); + private void ensureConfigIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + config_ = new java.util.ArrayList(config_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration, io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceClaimConfigurationOrBuilder> configBuilder_; + + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public java.util.List getConfigList() { + if (configBuilder_ == null) { + return java.util.Collections.unmodifiableList(config_); + } else { + return configBuilder_.getMessageList(); + } + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public int getConfigCount() { + if (configBuilder_ == null) { + return config_.size(); + } else { + return configBuilder_.getCount(); + } + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration getConfig(int index) { + if (configBuilder_ == null) { + return config_.get(index); + } else { + return configBuilder_.getMessage(index); + } + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public Builder setConfig( + int index, io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.set(index, value); + onChanged(); + } else { + configBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public Builder setConfig( + int index, io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.set(index, builderForValue.build()); + onChanged(); + } else { + configBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public Builder addConfig(io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.add(value); + onChanged(); + } else { + configBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public Builder addConfig( + int index, io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.add(index, value); + onChanged(); + } else { + configBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public Builder addConfig( + io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.add(builderForValue.build()); + onChanged(); + } else { + configBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public Builder addConfig( + int index, io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.add(index, builderForValue.build()); + onChanged(); + } else { + configBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public Builder addAllConfig( + java.lang.Iterable values) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, config_); + onChanged(); + } else { + configBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + config_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + configBuilder_.clear(); + } + return this; + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public Builder removeConfig(int index) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.remove(index); + onChanged(); + } else { + configBuilder_.remove(index); + } + return this; + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.Builder getConfigBuilder( + int index) { + return getConfigFieldBuilder().getBuilder(index); + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClaimConfigurationOrBuilder getConfigOrBuilder( + int index) { + if (configBuilder_ == null) { + return config_.get(index); } else { + return configBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public java.util.List + getConfigOrBuilderList() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(config_); + } + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.Builder addConfigBuilder() { + return getConfigFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.getDefaultInstance()); + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.Builder addConfigBuilder( + int index) { + return getConfigFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.getDefaultInstance()); + } + /** + *
+       * This field holds configuration for multiple potential drivers which
+       * could satisfy requests in this claim. It is ignored while allocating
+       * the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClaimConfiguration config = 3; + */ + public java.util.List + getConfigBuilderList() { + return getConfigFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration, io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceClaimConfigurationOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration, io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceClaimConfigurationOrBuilder>( + config_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + config_ = null; + } + return configBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceClaim) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceClaim) + private static final io.kubernetes.client.proto.V1Resource.DeviceClaim DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceClaim(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceClaim getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceClaim parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceClaim(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClaim getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceClaimConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceClaimConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, it applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + java.util.List + getRequestsList(); + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, it applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + int getRequestsCount(); + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, it applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + java.lang.String getRequests(int index); + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, it applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + com.google.protobuf.ByteString + getRequestsBytes(int index); + + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 2; + */ + boolean hasDeviceConfiguration(); + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 2; + */ + io.kubernetes.client.proto.V1Resource.DeviceConfiguration getDeviceConfiguration(); + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 2; + */ + io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder getDeviceConfigurationOrBuilder(); + } + /** + *
+   * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceClaimConfiguration} + */ + public static final class DeviceClaimConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceClaimConfiguration) + DeviceClaimConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceClaimConfiguration.newBuilder() to construct. + private DeviceClaimConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceClaimConfiguration() { + requests_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceClaimConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add(bs); + break; + } + case 18: { + io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = deviceConfiguration_.toBuilder(); + } + deviceConfiguration_ = input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceConfiguration.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deviceConfiguration_); + deviceConfiguration_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = requests_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClaimConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClaimConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.class, io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.Builder.class); + } + + private int bitField0_; + public static final int REQUESTS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList requests_; + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, it applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + public com.google.protobuf.ProtocolStringList + getRequestsList() { + return requests_; + } + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, it applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + public int getRequestsCount() { + return requests_.size(); + } + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, it applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + public java.lang.String getRequests(int index) { + return requests_.get(index); + } + /** + *
+     * Requests lists the names of requests where the configuration applies.
+     * If empty, it applies to all requests.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the configuration applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + public com.google.protobuf.ByteString + getRequestsBytes(int index) { + return requests_.getByteString(index); + } + + public static final int DEVICECONFIGURATION_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Resource.DeviceConfiguration deviceConfiguration_; + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 2; + */ + public boolean hasDeviceConfiguration() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConfiguration getDeviceConfiguration() { + return deviceConfiguration_ == null ? io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance() : deviceConfiguration_; + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder getDeviceConfigurationOrBuilder() { + return deviceConfiguration_ == null ? io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance() : deviceConfiguration_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < requests_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requests_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(2, getDeviceConfiguration()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < requests_.size(); i++) { + dataSize += computeStringSizeNoTag(requests_.getRaw(i)); + } + size += dataSize; + size += 1 * getRequestsList().size(); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDeviceConfiguration()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration other = (io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration) obj; + + boolean result = true; + result = result && getRequestsList() + .equals(other.getRequestsList()); + result = result && (hasDeviceConfiguration() == other.hasDeviceConfiguration()); + if (hasDeviceConfiguration()) { + result = result && getDeviceConfiguration() + .equals(other.getDeviceConfiguration()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + if (hasDeviceConfiguration()) { + hash = (37 * hash) + DEVICECONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getDeviceConfiguration().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceClaimConfiguration is used for configuration parameters in DeviceClaim.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceClaimConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceClaimConfiguration) + io.kubernetes.client.proto.V1Resource.DeviceClaimConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClaimConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClaimConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.class, io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDeviceConfigurationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + requests_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (deviceConfigurationBuilder_ == null) { + deviceConfiguration_ = null; + } else { + deviceConfigurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClaimConfiguration_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration build() { + io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration result = new io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = requests_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.requests_ = requests_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000001; + } + if (deviceConfigurationBuilder_ == null) { + result.deviceConfiguration_ = deviceConfiguration_; + } else { + result.deviceConfiguration_ = deviceConfigurationBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration.getDefaultInstance()) return this; + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + if (other.hasDeviceConfiguration()) { + mergeDeviceConfiguration(other.getDeviceConfiguration()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList requests_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = new com.google.protobuf.LazyStringArrayList(requests_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, it applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public com.google.protobuf.ProtocolStringList + getRequestsList() { + return requests_.getUnmodifiableView(); + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, it applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public int getRequestsCount() { + return requests_.size(); + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, it applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public java.lang.String getRequests(int index) { + return requests_.get(index); + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, it applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public com.google.protobuf.ByteString + getRequestsBytes(int index) { + return requests_.getByteString(index); + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, it applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public Builder setRequests( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, it applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public Builder addRequests( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + return this; + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, it applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public Builder addAllRequests( + java.lang.Iterable values) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); + onChanged(); + return this; + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, it applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public Builder clearRequests() { + requests_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Requests lists the names of requests where the configuration applies.
+       * If empty, it applies to all requests.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the configuration applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public Builder addRequestsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1Resource.DeviceConfiguration deviceConfiguration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceConfiguration, io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder> deviceConfigurationBuilder_; + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 2; + */ + public boolean hasDeviceConfiguration() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConfiguration getDeviceConfiguration() { + if (deviceConfigurationBuilder_ == null) { + return deviceConfiguration_ == null ? io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance() : deviceConfiguration_; + } else { + return deviceConfigurationBuilder_.getMessage(); + } + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 2; + */ + public Builder setDeviceConfiguration(io.kubernetes.client.proto.V1Resource.DeviceConfiguration value) { + if (deviceConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deviceConfiguration_ = value; + onChanged(); + } else { + deviceConfigurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 2; + */ + public Builder setDeviceConfiguration( + io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder builderForValue) { + if (deviceConfigurationBuilder_ == null) { + deviceConfiguration_ = builderForValue.build(); + onChanged(); + } else { + deviceConfigurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 2; + */ + public Builder mergeDeviceConfiguration(io.kubernetes.client.proto.V1Resource.DeviceConfiguration value) { + if (deviceConfigurationBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + deviceConfiguration_ != null && + deviceConfiguration_ != io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance()) { + deviceConfiguration_ = + io.kubernetes.client.proto.V1Resource.DeviceConfiguration.newBuilder(deviceConfiguration_).mergeFrom(value).buildPartial(); + } else { + deviceConfiguration_ = value; + } + onChanged(); + } else { + deviceConfigurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 2; + */ + public Builder clearDeviceConfiguration() { + if (deviceConfigurationBuilder_ == null) { + deviceConfiguration_ = null; + onChanged(); + } else { + deviceConfigurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder getDeviceConfigurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDeviceConfigurationFieldBuilder().getBuilder(); + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder getDeviceConfigurationOrBuilder() { + if (deviceConfigurationBuilder_ != null) { + return deviceConfigurationBuilder_.getMessageOrBuilder(); + } else { + return deviceConfiguration_ == null ? + io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance() : deviceConfiguration_; + } + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceConfiguration, io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder> + getDeviceConfigurationFieldBuilder() { + if (deviceConfigurationBuilder_ == null) { + deviceConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceConfiguration, io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder>( + getDeviceConfiguration(), + getParentForChildren(), + isClean()); + deviceConfiguration_ = null; + } + return deviceConfigurationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceClaimConfiguration) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceClaimConfiguration) + private static final io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceClaimConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceClaimConfiguration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClaimConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceClassOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceClass) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard object metadata
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard object metadata
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * Standard object metadata
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Spec defines what can be allocated and how to configure it.
+     * This is mutable. Consumers have to be prepared for classes changing
+     * at any time, either because they get updated or replaced. Claim
+     * allocations are done once based on whatever was set in classes at
+     * the time of allocation.
+     * Changing the spec automatically increments the metadata.generation number.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClassSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * Spec defines what can be allocated and how to configure it.
+     * This is mutable. Consumers have to be prepared for classes changing
+     * at any time, either because they get updated or replaced. Claim
+     * allocations are done once based on whatever was set in classes at
+     * the time of allocation.
+     * Changing the spec automatically increments the metadata.generation number.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClassSpec spec = 2; + */ + io.kubernetes.client.proto.V1Resource.DeviceClassSpec getSpec(); + /** + *
+     * Spec defines what can be allocated and how to configure it.
+     * This is mutable. Consumers have to be prepared for classes changing
+     * at any time, either because they get updated or replaced. Claim
+     * allocations are done once based on whatever was set in classes at
+     * the time of allocation.
+     * Changing the spec automatically increments the metadata.generation number.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClassSpec spec = 2; + */ + io.kubernetes.client.proto.V1Resource.DeviceClassSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * DeviceClass is a vendor- or admin-provided resource that contains
+   * device configuration and selectors. It can be referenced in
+   * the device requests of a claim to apply these presets.
+   * Cluster scoped.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceClass} + */ + public static final class DeviceClass extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceClass) + DeviceClassOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceClass.newBuilder() to construct. + private DeviceClass(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceClass() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceClass( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.V1Resource.DeviceClassSpec.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceClassSpec.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClass_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClass_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceClass.class, io.kubernetes.client.proto.V1Resource.DeviceClass.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * Standard object metadata
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard object metadata
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard object metadata
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int SPEC_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Resource.DeviceClassSpec spec_; + /** + *
+     * Spec defines what can be allocated and how to configure it.
+     * This is mutable. Consumers have to be prepared for classes changing
+     * at any time, either because they get updated or replaced. Claim
+     * allocations are done once based on whatever was set in classes at
+     * the time of allocation.
+     * Changing the spec automatically increments the metadata.generation number.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClassSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * Spec defines what can be allocated and how to configure it.
+     * This is mutable. Consumers have to be prepared for classes changing
+     * at any time, either because they get updated or replaced. Claim
+     * allocations are done once based on whatever was set in classes at
+     * the time of allocation.
+     * Changing the spec automatically increments the metadata.generation number.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClassSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClassSpec getSpec() { + return spec_ == null ? io.kubernetes.client.proto.V1Resource.DeviceClassSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Spec defines what can be allocated and how to configure it.
+     * This is mutable. Consumers have to be prepared for classes changing
+     * at any time, either because they get updated or replaced. Claim
+     * allocations are done once based on whatever was set in classes at
+     * the time of allocation.
+     * Changing the spec automatically increments the metadata.generation number.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClassSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClassSpecOrBuilder getSpecOrBuilder() { + return spec_ == null ? io.kubernetes.client.proto.V1Resource.DeviceClassSpec.getDefaultInstance() : spec_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getSpec()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceClass)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceClass other = (io.kubernetes.client.proto.V1Resource.DeviceClass) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceClass parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClass parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClass parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClass parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClass parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClass parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClass parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClass parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClass parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClass parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClass parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClass parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceClass prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceClass is a vendor- or admin-provided resource that contains
+     * device configuration and selectors. It can be referenced in
+     * the device requests of a claim to apply these presets.
+     * Cluster scoped.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceClass} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceClass) + io.kubernetes.client.proto.V1Resource.DeviceClassOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClass_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClass_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceClass.class, io.kubernetes.client.proto.V1Resource.DeviceClass.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceClass.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getSpecFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (specBuilder_ == null) { + spec_ = null; + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClass_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClass getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceClass.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClass build() { + io.kubernetes.client.proto.V1Resource.DeviceClass result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClass buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceClass result = new io.kubernetes.client.proto.V1Resource.DeviceClass(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceClass) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceClass)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceClass other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceClass.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceClass parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceClass) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard object metadata
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard object metadata
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard object metadata
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard object metadata
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard object metadata
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:subfield(name)=+k8s:format=k8s-long-name
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.kubernetes.client.proto.V1Resource.DeviceClassSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceClassSpec, io.kubernetes.client.proto.V1Resource.DeviceClassSpec.Builder, io.kubernetes.client.proto.V1Resource.DeviceClassSpecOrBuilder> specBuilder_; + /** + *
+       * Spec defines what can be allocated and how to configure it.
+       * This is mutable. Consumers have to be prepared for classes changing
+       * at any time, either because they get updated or replaced. Claim
+       * allocations are done once based on whatever was set in classes at
+       * the time of allocation.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClassSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * Spec defines what can be allocated and how to configure it.
+       * This is mutable. Consumers have to be prepared for classes changing
+       * at any time, either because they get updated or replaced. Claim
+       * allocations are done once based on whatever was set in classes at
+       * the time of allocation.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClassSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClassSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? io.kubernetes.client.proto.V1Resource.DeviceClassSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Spec defines what can be allocated and how to configure it.
+       * This is mutable. Consumers have to be prepared for classes changing
+       * at any time, either because they get updated or replaced. Claim
+       * allocations are done once based on whatever was set in classes at
+       * the time of allocation.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClassSpec spec = 2; + */ + public Builder setSpec(io.kubernetes.client.proto.V1Resource.DeviceClassSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Spec defines what can be allocated and how to configure it.
+       * This is mutable. Consumers have to be prepared for classes changing
+       * at any time, either because they get updated or replaced. Claim
+       * allocations are done once based on whatever was set in classes at
+       * the time of allocation.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClassSpec spec = 2; + */ + public Builder setSpec( + io.kubernetes.client.proto.V1Resource.DeviceClassSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Spec defines what can be allocated and how to configure it.
+       * This is mutable. Consumers have to be prepared for classes changing
+       * at any time, either because they get updated or replaced. Claim
+       * allocations are done once based on whatever was set in classes at
+       * the time of allocation.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClassSpec spec = 2; + */ + public Builder mergeSpec(io.kubernetes.client.proto.V1Resource.DeviceClassSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + spec_ != null && + spec_ != io.kubernetes.client.proto.V1Resource.DeviceClassSpec.getDefaultInstance()) { + spec_ = + io.kubernetes.client.proto.V1Resource.DeviceClassSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Spec defines what can be allocated and how to configure it.
+       * This is mutable. Consumers have to be prepared for classes changing
+       * at any time, either because they get updated or replaced. Claim
+       * allocations are done once based on whatever was set in classes at
+       * the time of allocation.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClassSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * Spec defines what can be allocated and how to configure it.
+       * This is mutable. Consumers have to be prepared for classes changing
+       * at any time, either because they get updated or replaced. Claim
+       * allocations are done once based on whatever was set in classes at
+       * the time of allocation.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClassSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClassSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Spec defines what can be allocated and how to configure it.
+       * This is mutable. Consumers have to be prepared for classes changing
+       * at any time, either because they get updated or replaced. Claim
+       * allocations are done once based on whatever was set in classes at
+       * the time of allocation.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClassSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClassSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + io.kubernetes.client.proto.V1Resource.DeviceClassSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Spec defines what can be allocated and how to configure it.
+       * This is mutable. Consumers have to be prepared for classes changing
+       * at any time, either because they get updated or replaced. Claim
+       * allocations are done once based on whatever was set in classes at
+       * the time of allocation.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClassSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceClassSpec, io.kubernetes.client.proto.V1Resource.DeviceClassSpec.Builder, io.kubernetes.client.proto.V1Resource.DeviceClassSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceClassSpec, io.kubernetes.client.proto.V1Resource.DeviceClassSpec.Builder, io.kubernetes.client.proto.V1Resource.DeviceClassSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceClass) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceClass) + private static final io.kubernetes.client.proto.V1Resource.DeviceClass DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceClass(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceClass getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceClass parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceClass(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClass getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceClassConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceClassConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 1; + */ + boolean hasDeviceConfiguration(); + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 1; + */ + io.kubernetes.client.proto.V1Resource.DeviceConfiguration getDeviceConfiguration(); + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 1; + */ + io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder getDeviceConfigurationOrBuilder(); + } + /** + *
+   * DeviceClassConfiguration is used in DeviceClass.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceClassConfiguration} + */ + public static final class DeviceClassConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceClassConfiguration) + DeviceClassConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceClassConfiguration.newBuilder() to construct. + private DeviceClassConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceClassConfiguration() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceClassConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = deviceConfiguration_.toBuilder(); + } + deviceConfiguration_ = input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceConfiguration.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deviceConfiguration_); + deviceConfiguration_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClassConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClassConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.class, io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.Builder.class); + } + + private int bitField0_; + public static final int DEVICECONFIGURATION_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.V1Resource.DeviceConfiguration deviceConfiguration_; + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 1; + */ + public boolean hasDeviceConfiguration() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConfiguration getDeviceConfiguration() { + return deviceConfiguration_ == null ? io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance() : deviceConfiguration_; + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder getDeviceConfigurationOrBuilder() { + return deviceConfiguration_ == null ? io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance() : deviceConfiguration_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getDeviceConfiguration()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDeviceConfiguration()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration other = (io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration) obj; + + boolean result = true; + result = result && (hasDeviceConfiguration() == other.hasDeviceConfiguration()); + if (hasDeviceConfiguration()) { + result = result && getDeviceConfiguration() + .equals(other.getDeviceConfiguration()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDeviceConfiguration()) { + hash = (37 * hash) + DEVICECONFIGURATION_FIELD_NUMBER; + hash = (53 * hash) + getDeviceConfiguration().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceClassConfiguration is used in DeviceClass.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceClassConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceClassConfiguration) + io.kubernetes.client.proto.V1Resource.DeviceClassConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClassConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClassConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.class, io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDeviceConfigurationFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (deviceConfigurationBuilder_ == null) { + deviceConfiguration_ = null; + } else { + deviceConfigurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClassConfiguration_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration build() { + io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration result = new io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (deviceConfigurationBuilder_ == null) { + result.deviceConfiguration_ = deviceConfiguration_; + } else { + result.deviceConfiguration_ = deviceConfigurationBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.getDefaultInstance()) return this; + if (other.hasDeviceConfiguration()) { + mergeDeviceConfiguration(other.getDeviceConfiguration()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.V1Resource.DeviceConfiguration deviceConfiguration_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceConfiguration, io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder> deviceConfigurationBuilder_; + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 1; + */ + public boolean hasDeviceConfiguration() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConfiguration getDeviceConfiguration() { + if (deviceConfigurationBuilder_ == null) { + return deviceConfiguration_ == null ? io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance() : deviceConfiguration_; + } else { + return deviceConfigurationBuilder_.getMessage(); + } + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 1; + */ + public Builder setDeviceConfiguration(io.kubernetes.client.proto.V1Resource.DeviceConfiguration value) { + if (deviceConfigurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deviceConfiguration_ = value; + onChanged(); + } else { + deviceConfigurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 1; + */ + public Builder setDeviceConfiguration( + io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder builderForValue) { + if (deviceConfigurationBuilder_ == null) { + deviceConfiguration_ = builderForValue.build(); + onChanged(); + } else { + deviceConfigurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 1; + */ + public Builder mergeDeviceConfiguration(io.kubernetes.client.proto.V1Resource.DeviceConfiguration value) { + if (deviceConfigurationBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + deviceConfiguration_ != null && + deviceConfiguration_ != io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance()) { + deviceConfiguration_ = + io.kubernetes.client.proto.V1Resource.DeviceConfiguration.newBuilder(deviceConfiguration_).mergeFrom(value).buildPartial(); + } else { + deviceConfiguration_ = value; + } + onChanged(); + } else { + deviceConfigurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 1; + */ + public Builder clearDeviceConfiguration() { + if (deviceConfigurationBuilder_ == null) { + deviceConfiguration_ = null; + onChanged(); + } else { + deviceConfigurationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder getDeviceConfigurationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDeviceConfigurationFieldBuilder().getBuilder(); + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder getDeviceConfigurationOrBuilder() { + if (deviceConfigurationBuilder_ != null) { + return deviceConfigurationBuilder_.getMessageOrBuilder(); + } else { + return deviceConfiguration_ == null ? + io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance() : deviceConfiguration_; + } + } + /** + * optional .k8s.io.api.resource.v1.DeviceConfiguration deviceConfiguration = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceConfiguration, io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder> + getDeviceConfigurationFieldBuilder() { + if (deviceConfigurationBuilder_ == null) { + deviceConfigurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceConfiguration, io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder>( + getDeviceConfiguration(), + getParentForChildren(), + isClean()); + deviceConfiguration_ = null; + } + return deviceConfigurationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceClassConfiguration) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceClassConfiguration) + private static final io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceClassConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceClassConfiguration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceClassListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceClassList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Items is the list of resource classes.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * Items is the list of resource classes.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + io.kubernetes.client.proto.V1Resource.DeviceClass getItems(int index); + /** + *
+     * Items is the list of resource classes.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + int getItemsCount(); + /** + *
+     * Items is the list of resource classes.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * Items is the list of resource classes.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + io.kubernetes.client.proto.V1Resource.DeviceClassOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * DeviceClassList is a collection of classes.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceClassList} + */ + public static final class DeviceClassList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceClassList) + DeviceClassListOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceClassList.newBuilder() to construct. + private DeviceClassList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceClassList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceClassList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceClass.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClassList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClassList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceClassList.class, io.kubernetes.client.proto.V1Resource.DeviceClassList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * Items is the list of resource classes.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * Items is the list of resource classes.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * Items is the list of resource classes.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * Items is the list of resource classes.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClass getItems(int index) { + return items_.get(index); + } + /** + *
+     * Items is the list of resource classes.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClassOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceClassList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceClassList other = (io.kubernetes.client.proto.V1Resource.DeviceClassList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceClassList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceClassList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceClassList is a collection of classes.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceClassList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceClassList) + io.kubernetes.client.proto.V1Resource.DeviceClassListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClassList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClassList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceClassList.class, io.kubernetes.client.proto.V1Resource.DeviceClassList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceClassList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClassList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClassList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceClassList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClassList build() { + io.kubernetes.client.proto.V1Resource.DeviceClassList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClassList buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceClassList result = new io.kubernetes.client.proto.V1Resource.DeviceClassList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceClassList) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceClassList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceClassList other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceClassList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceClassList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceClassList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceClass, io.kubernetes.client.proto.V1Resource.DeviceClass.Builder, io.kubernetes.client.proto.V1Resource.DeviceClassOrBuilder> itemsBuilder_; + + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClass getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Resource.DeviceClass value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Resource.DeviceClass.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V1Resource.DeviceClass value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Resource.DeviceClass value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V1Resource.DeviceClass.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Resource.DeviceClass.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClass.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClassOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClass.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceClass.getDefaultInstance()); + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClass.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceClass.getDefaultInstance()); + } + /** + *
+       * Items is the list of resource classes.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClass items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceClass, io.kubernetes.client.proto.V1Resource.DeviceClass.Builder, io.kubernetes.client.proto.V1Resource.DeviceClassOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceClass, io.kubernetes.client.proto.V1Resource.DeviceClass.Builder, io.kubernetes.client.proto.V1Resource.DeviceClassOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceClassList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceClassList) + private static final io.kubernetes.client.proto.V1Resource.DeviceClassList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceClassList(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceClassList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceClassList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceClassList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClassList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceClassSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceClassSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Each selector must be satisfied by a device which is claimed via this class.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + java.util.List + getSelectorsList(); + /** + *
+     * Each selector must be satisfied by a device which is claimed via this class.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + io.kubernetes.client.proto.V1Resource.DeviceSelector getSelectors(int index); + /** + *
+     * Each selector must be satisfied by a device which is claimed via this class.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + int getSelectorsCount(); + /** + *
+     * Each selector must be satisfied by a device which is claimed via this class.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + java.util.List + getSelectorsOrBuilderList(); + /** + *
+     * Each selector must be satisfied by a device which is claimed via this class.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder getSelectorsOrBuilder( + int index); + + /** + *
+     * Config defines configuration parameters that apply to each device that is claimed via this class.
+     * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+     * configuration applies to exactly one driver.
+     * They are passed to the driver, but are not considered while allocating the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + java.util.List + getConfigList(); + /** + *
+     * Config defines configuration parameters that apply to each device that is claimed via this class.
+     * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+     * configuration applies to exactly one driver.
+     * They are passed to the driver, but are not considered while allocating the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration getConfig(int index); + /** + *
+     * Config defines configuration parameters that apply to each device that is claimed via this class.
+     * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+     * configuration applies to exactly one driver.
+     * They are passed to the driver, but are not considered while allocating the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + int getConfigCount(); + /** + *
+     * Config defines configuration parameters that apply to each device that is claimed via this class.
+     * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+     * configuration applies to exactly one driver.
+     * They are passed to the driver, but are not considered while allocating the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + java.util.List + getConfigOrBuilderList(); + /** + *
+     * Config defines configuration parameters that apply to each device that is claimed via this class.
+     * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+     * configuration applies to exactly one driver.
+     * They are passed to the driver, but are not considered while allocating the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + io.kubernetes.client.proto.V1Resource.DeviceClassConfigurationOrBuilder getConfigOrBuilder( + int index); + + /** + *
+     * ExtendedResourceName is the extended resource name for the devices of this class.
+     * The devices of this class can be used to satisfy a pod's extended resource requests.
+     * It has the same format as the name of a pod's extended resource.
+     * It should be unique among all the device classes in a cluster.
+     * If two device classes have the same name, then the class created later
+     * is picked to satisfy a pod's extended resource requests.
+     * If two classes are created at the same time, then the name of the class
+     * lexicographically sorted first is picked.
+     * +optional
+     * +featureGate=DRAExtendedResource
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-extended-resource-name
+     * 
+ * + * optional string extendedResourceName = 4; + */ + boolean hasExtendedResourceName(); + /** + *
+     * ExtendedResourceName is the extended resource name for the devices of this class.
+     * The devices of this class can be used to satisfy a pod's extended resource requests.
+     * It has the same format as the name of a pod's extended resource.
+     * It should be unique among all the device classes in a cluster.
+     * If two device classes have the same name, then the class created later
+     * is picked to satisfy a pod's extended resource requests.
+     * If two classes are created at the same time, then the name of the class
+     * lexicographically sorted first is picked.
+     * +optional
+     * +featureGate=DRAExtendedResource
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-extended-resource-name
+     * 
+ * + * optional string extendedResourceName = 4; + */ + java.lang.String getExtendedResourceName(); + /** + *
+     * ExtendedResourceName is the extended resource name for the devices of this class.
+     * The devices of this class can be used to satisfy a pod's extended resource requests.
+     * It has the same format as the name of a pod's extended resource.
+     * It should be unique among all the device classes in a cluster.
+     * If two device classes have the same name, then the class created later
+     * is picked to satisfy a pod's extended resource requests.
+     * If two classes are created at the same time, then the name of the class
+     * lexicographically sorted first is picked.
+     * +optional
+     * +featureGate=DRAExtendedResource
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-extended-resource-name
+     * 
+ * + * optional string extendedResourceName = 4; + */ + com.google.protobuf.ByteString + getExtendedResourceNameBytes(); + } + /** + *
+   * DeviceClassSpec is used in a [DeviceClass] to define what can be allocated
+   * and how to configure it.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceClassSpec} + */ + public static final class DeviceClassSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceClassSpec) + DeviceClassSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceClassSpec.newBuilder() to construct. + private DeviceClassSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceClassSpec() { + selectors_ = java.util.Collections.emptyList(); + config_ = java.util.Collections.emptyList(); + extendedResourceName_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceClassSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + selectors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + selectors_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceSelector.PARSER, extensionRegistry)); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + config_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + config_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.PARSER, extensionRegistry)); + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + extendedResourceName_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + selectors_ = java.util.Collections.unmodifiableList(selectors_); + } + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + config_ = java.util.Collections.unmodifiableList(config_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClassSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClassSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceClassSpec.class, io.kubernetes.client.proto.V1Resource.DeviceClassSpec.Builder.class); + } + + private int bitField0_; + public static final int SELECTORS_FIELD_NUMBER = 1; + private java.util.List selectors_; + /** + *
+     * Each selector must be satisfied by a device which is claimed via this class.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public java.util.List getSelectorsList() { + return selectors_; + } + /** + *
+     * Each selector must be satisfied by a device which is claimed via this class.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public java.util.List + getSelectorsOrBuilderList() { + return selectors_; + } + /** + *
+     * Each selector must be satisfied by a device which is claimed via this class.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public int getSelectorsCount() { + return selectors_.size(); + } + /** + *
+     * Each selector must be satisfied by a device which is claimed via this class.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelector getSelectors(int index) { + return selectors_.get(index); + } + /** + *
+     * Each selector must be satisfied by a device which is claimed via this class.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder getSelectorsOrBuilder( + int index) { + return selectors_.get(index); + } + + public static final int CONFIG_FIELD_NUMBER = 2; + private java.util.List config_; + /** + *
+     * Config defines configuration parameters that apply to each device that is claimed via this class.
+     * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+     * configuration applies to exactly one driver.
+     * They are passed to the driver, but are not considered while allocating the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public java.util.List getConfigList() { + return config_; + } + /** + *
+     * Config defines configuration parameters that apply to each device that is claimed via this class.
+     * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+     * configuration applies to exactly one driver.
+     * They are passed to the driver, but are not considered while allocating the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public java.util.List + getConfigOrBuilderList() { + return config_; + } + /** + *
+     * Config defines configuration parameters that apply to each device that is claimed via this class.
+     * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+     * configuration applies to exactly one driver.
+     * They are passed to the driver, but are not considered while allocating the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public int getConfigCount() { + return config_.size(); + } + /** + *
+     * Config defines configuration parameters that apply to each device that is claimed via this class.
+     * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+     * configuration applies to exactly one driver.
+     * They are passed to the driver, but are not considered while allocating the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration getConfig(int index) { + return config_.get(index); + } + /** + *
+     * Config defines configuration parameters that apply to each device that is claimed via this class.
+     * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+     * configuration applies to exactly one driver.
+     * They are passed to the driver, but are not considered while allocating the claim.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClassConfigurationOrBuilder getConfigOrBuilder( + int index) { + return config_.get(index); + } + + public static final int EXTENDEDRESOURCENAME_FIELD_NUMBER = 4; + private volatile java.lang.Object extendedResourceName_; + /** + *
+     * ExtendedResourceName is the extended resource name for the devices of this class.
+     * The devices of this class can be used to satisfy a pod's extended resource requests.
+     * It has the same format as the name of a pod's extended resource.
+     * It should be unique among all the device classes in a cluster.
+     * If two device classes have the same name, then the class created later
+     * is picked to satisfy a pod's extended resource requests.
+     * If two classes are created at the same time, then the name of the class
+     * lexicographically sorted first is picked.
+     * +optional
+     * +featureGate=DRAExtendedResource
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-extended-resource-name
+     * 
+ * + * optional string extendedResourceName = 4; + */ + public boolean hasExtendedResourceName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * ExtendedResourceName is the extended resource name for the devices of this class.
+     * The devices of this class can be used to satisfy a pod's extended resource requests.
+     * It has the same format as the name of a pod's extended resource.
+     * It should be unique among all the device classes in a cluster.
+     * If two device classes have the same name, then the class created later
+     * is picked to satisfy a pod's extended resource requests.
+     * If two classes are created at the same time, then the name of the class
+     * lexicographically sorted first is picked.
+     * +optional
+     * +featureGate=DRAExtendedResource
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-extended-resource-name
+     * 
+ * + * optional string extendedResourceName = 4; + */ + public java.lang.String getExtendedResourceName() { + java.lang.Object ref = extendedResourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + extendedResourceName_ = s; + } + return s; + } + } + /** + *
+     * ExtendedResourceName is the extended resource name for the devices of this class.
+     * The devices of this class can be used to satisfy a pod's extended resource requests.
+     * It has the same format as the name of a pod's extended resource.
+     * It should be unique among all the device classes in a cluster.
+     * If two device classes have the same name, then the class created later
+     * is picked to satisfy a pod's extended resource requests.
+     * If two classes are created at the same time, then the name of the class
+     * lexicographically sorted first is picked.
+     * +optional
+     * +featureGate=DRAExtendedResource
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-extended-resource-name
+     * 
+ * + * optional string extendedResourceName = 4; + */ + public com.google.protobuf.ByteString + getExtendedResourceNameBytes() { + java.lang.Object ref = extendedResourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + extendedResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < selectors_.size(); i++) { + output.writeMessage(1, selectors_.get(i)); + } + for (int i = 0; i < config_.size(); i++) { + output.writeMessage(2, config_.get(i)); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, extendedResourceName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < selectors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, selectors_.get(i)); + } + for (int i = 0; i < config_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, config_.get(i)); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, extendedResourceName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceClassSpec)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceClassSpec other = (io.kubernetes.client.proto.V1Resource.DeviceClassSpec) obj; + + boolean result = true; + result = result && getSelectorsList() + .equals(other.getSelectorsList()); + result = result && getConfigList() + .equals(other.getConfigList()); + result = result && (hasExtendedResourceName() == other.hasExtendedResourceName()); + if (hasExtendedResourceName()) { + result = result && getExtendedResourceName() + .equals(other.getExtendedResourceName()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSelectorsCount() > 0) { + hash = (37 * hash) + SELECTORS_FIELD_NUMBER; + hash = (53 * hash) + getSelectorsList().hashCode(); + } + if (getConfigCount() > 0) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfigList().hashCode(); + } + if (hasExtendedResourceName()) { + hash = (37 * hash) + EXTENDEDRESOURCENAME_FIELD_NUMBER; + hash = (53 * hash) + getExtendedResourceName().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceClassSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceClassSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceClassSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceClassSpec is used in a [DeviceClass] to define what can be allocated
+     * and how to configure it.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceClassSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceClassSpec) + io.kubernetes.client.proto.V1Resource.DeviceClassSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClassSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClassSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceClassSpec.class, io.kubernetes.client.proto.V1Resource.DeviceClassSpec.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceClassSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSelectorsFieldBuilder(); + getConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (selectorsBuilder_ == null) { + selectors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + selectorsBuilder_.clear(); + } + if (configBuilder_ == null) { + config_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + configBuilder_.clear(); + } + extendedResourceName_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceClassSpec_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClassSpec getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceClassSpec.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClassSpec build() { + io.kubernetes.client.proto.V1Resource.DeviceClassSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClassSpec buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceClassSpec result = new io.kubernetes.client.proto.V1Resource.DeviceClassSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (selectorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + selectors_ = java.util.Collections.unmodifiableList(selectors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.selectors_ = selectors_; + } else { + result.selectors_ = selectorsBuilder_.build(); + } + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + config_ = java.util.Collections.unmodifiableList(config_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.config_ = config_; + } else { + result.config_ = configBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000001; + } + result.extendedResourceName_ = extendedResourceName_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceClassSpec) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceClassSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceClassSpec other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceClassSpec.getDefaultInstance()) return this; + if (selectorsBuilder_ == null) { + if (!other.selectors_.isEmpty()) { + if (selectors_.isEmpty()) { + selectors_ = other.selectors_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSelectorsIsMutable(); + selectors_.addAll(other.selectors_); + } + onChanged(); + } + } else { + if (!other.selectors_.isEmpty()) { + if (selectorsBuilder_.isEmpty()) { + selectorsBuilder_.dispose(); + selectorsBuilder_ = null; + selectors_ = other.selectors_; + bitField0_ = (bitField0_ & ~0x00000001); + selectorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSelectorsFieldBuilder() : null; + } else { + selectorsBuilder_.addAllMessages(other.selectors_); + } + } + } + if (configBuilder_ == null) { + if (!other.config_.isEmpty()) { + if (config_.isEmpty()) { + config_ = other.config_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureConfigIsMutable(); + config_.addAll(other.config_); + } + onChanged(); + } + } else { + if (!other.config_.isEmpty()) { + if (configBuilder_.isEmpty()) { + configBuilder_.dispose(); + configBuilder_ = null; + config_ = other.config_; + bitField0_ = (bitField0_ & ~0x00000002); + configBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConfigFieldBuilder() : null; + } else { + configBuilder_.addAllMessages(other.config_); + } + } + } + if (other.hasExtendedResourceName()) { + bitField0_ |= 0x00000004; + extendedResourceName_ = other.extendedResourceName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceClassSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceClassSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List selectors_ = + java.util.Collections.emptyList(); + private void ensureSelectorsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + selectors_ = new java.util.ArrayList(selectors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceSelector, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder, io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder> selectorsBuilder_; + + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public java.util.List getSelectorsList() { + if (selectorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(selectors_); + } else { + return selectorsBuilder_.getMessageList(); + } + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public int getSelectorsCount() { + if (selectorsBuilder_ == null) { + return selectors_.size(); + } else { + return selectorsBuilder_.getCount(); + } + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelector getSelectors(int index) { + if (selectorsBuilder_ == null) { + return selectors_.get(index); + } else { + return selectorsBuilder_.getMessage(index); + } + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public Builder setSelectors( + int index, io.kubernetes.client.proto.V1Resource.DeviceSelector value) { + if (selectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSelectorsIsMutable(); + selectors_.set(index, value); + onChanged(); + } else { + selectorsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public Builder setSelectors( + int index, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder builderForValue) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.set(index, builderForValue.build()); + onChanged(); + } else { + selectorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public Builder addSelectors(io.kubernetes.client.proto.V1Resource.DeviceSelector value) { + if (selectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSelectorsIsMutable(); + selectors_.add(value); + onChanged(); + } else { + selectorsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public Builder addSelectors( + int index, io.kubernetes.client.proto.V1Resource.DeviceSelector value) { + if (selectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSelectorsIsMutable(); + selectors_.add(index, value); + onChanged(); + } else { + selectorsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public Builder addSelectors( + io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder builderForValue) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.add(builderForValue.build()); + onChanged(); + } else { + selectorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public Builder addSelectors( + int index, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder builderForValue) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.add(index, builderForValue.build()); + onChanged(); + } else { + selectorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public Builder addAllSelectors( + java.lang.Iterable values) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, selectors_); + onChanged(); + } else { + selectorsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public Builder clearSelectors() { + if (selectorsBuilder_ == null) { + selectors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + selectorsBuilder_.clear(); + } + return this; + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public Builder removeSelectors(int index) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.remove(index); + onChanged(); + } else { + selectorsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder getSelectorsBuilder( + int index) { + return getSelectorsFieldBuilder().getBuilder(index); + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder getSelectorsOrBuilder( + int index) { + if (selectorsBuilder_ == null) { + return selectors_.get(index); } else { + return selectorsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public java.util.List + getSelectorsOrBuilderList() { + if (selectorsBuilder_ != null) { + return selectorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(selectors_); + } + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder addSelectorsBuilder() { + return getSelectorsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceSelector.getDefaultInstance()); + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder addSelectorsBuilder( + int index) { + return getSelectorsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceSelector.getDefaultInstance()); + } + /** + *
+       * Each selector must be satisfied by a device which is claimed via this class.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 1; + */ + public java.util.List + getSelectorsBuilderList() { + return getSelectorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceSelector, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder, io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder> + getSelectorsFieldBuilder() { + if (selectorsBuilder_ == null) { + selectorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceSelector, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder, io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder>( + selectors_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + selectors_ = null; + } + return selectorsBuilder_; + } + + private java.util.List config_ = + java.util.Collections.emptyList(); + private void ensureConfigIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + config_ = new java.util.ArrayList(config_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration, io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceClassConfigurationOrBuilder> configBuilder_; + + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public java.util.List getConfigList() { + if (configBuilder_ == null) { + return java.util.Collections.unmodifiableList(config_); + } else { + return configBuilder_.getMessageList(); + } + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public int getConfigCount() { + if (configBuilder_ == null) { + return config_.size(); + } else { + return configBuilder_.getCount(); + } + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration getConfig(int index) { + if (configBuilder_ == null) { + return config_.get(index); + } else { + return configBuilder_.getMessage(index); + } + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public Builder setConfig( + int index, io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.set(index, value); + onChanged(); + } else { + configBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public Builder setConfig( + int index, io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.set(index, builderForValue.build()); + onChanged(); + } else { + configBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public Builder addConfig(io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.add(value); + onChanged(); + } else { + configBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public Builder addConfig( + int index, io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConfigIsMutable(); + config_.add(index, value); + onChanged(); + } else { + configBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public Builder addConfig( + io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.add(builderForValue.build()); + onChanged(); + } else { + configBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public Builder addConfig( + int index, io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.Builder builderForValue) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.add(index, builderForValue.build()); + onChanged(); + } else { + configBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public Builder addAllConfig( + java.lang.Iterable values) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, config_); + onChanged(); + } else { + configBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public Builder clearConfig() { + if (configBuilder_ == null) { + config_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + configBuilder_.clear(); + } + return this; + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public Builder removeConfig(int index) { + if (configBuilder_ == null) { + ensureConfigIsMutable(); + config_.remove(index); + onChanged(); + } else { + configBuilder_.remove(index); + } + return this; + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.Builder getConfigBuilder( + int index) { + return getConfigFieldBuilder().getBuilder(index); + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClassConfigurationOrBuilder getConfigOrBuilder( + int index) { + if (configBuilder_ == null) { + return config_.get(index); } else { + return configBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public java.util.List + getConfigOrBuilderList() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(config_); + } + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.Builder addConfigBuilder() { + return getConfigFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.getDefaultInstance()); + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.Builder addConfigBuilder( + int index) { + return getConfigFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.getDefaultInstance()); + } + /** + *
+       * Config defines configuration parameters that apply to each device that is claimed via this class.
+       * Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor
+       * configuration applies to exactly one driver.
+       * They are passed to the driver, but are not considered while allocating the claim.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceClassConfiguration config = 2; + */ + public java.util.List + getConfigBuilderList() { + return getConfigFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration, io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceClassConfigurationOrBuilder> + getConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration, io.kubernetes.client.proto.V1Resource.DeviceClassConfiguration.Builder, io.kubernetes.client.proto.V1Resource.DeviceClassConfigurationOrBuilder>( + config_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + config_ = null; + } + return configBuilder_; + } + + private java.lang.Object extendedResourceName_ = ""; + /** + *
+       * ExtendedResourceName is the extended resource name for the devices of this class.
+       * The devices of this class can be used to satisfy a pod's extended resource requests.
+       * It has the same format as the name of a pod's extended resource.
+       * It should be unique among all the device classes in a cluster.
+       * If two device classes have the same name, then the class created later
+       * is picked to satisfy a pod's extended resource requests.
+       * If two classes are created at the same time, then the name of the class
+       * lexicographically sorted first is picked.
+       * +optional
+       * +featureGate=DRAExtendedResource
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-extended-resource-name
+       * 
+ * + * optional string extendedResourceName = 4; + */ + public boolean hasExtendedResourceName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * ExtendedResourceName is the extended resource name for the devices of this class.
+       * The devices of this class can be used to satisfy a pod's extended resource requests.
+       * It has the same format as the name of a pod's extended resource.
+       * It should be unique among all the device classes in a cluster.
+       * If two device classes have the same name, then the class created later
+       * is picked to satisfy a pod's extended resource requests.
+       * If two classes are created at the same time, then the name of the class
+       * lexicographically sorted first is picked.
+       * +optional
+       * +featureGate=DRAExtendedResource
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-extended-resource-name
+       * 
+ * + * optional string extendedResourceName = 4; + */ + public java.lang.String getExtendedResourceName() { + java.lang.Object ref = extendedResourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + extendedResourceName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * ExtendedResourceName is the extended resource name for the devices of this class.
+       * The devices of this class can be used to satisfy a pod's extended resource requests.
+       * It has the same format as the name of a pod's extended resource.
+       * It should be unique among all the device classes in a cluster.
+       * If two device classes have the same name, then the class created later
+       * is picked to satisfy a pod's extended resource requests.
+       * If two classes are created at the same time, then the name of the class
+       * lexicographically sorted first is picked.
+       * +optional
+       * +featureGate=DRAExtendedResource
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-extended-resource-name
+       * 
+ * + * optional string extendedResourceName = 4; + */ + public com.google.protobuf.ByteString + getExtendedResourceNameBytes() { + java.lang.Object ref = extendedResourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + extendedResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * ExtendedResourceName is the extended resource name for the devices of this class.
+       * The devices of this class can be used to satisfy a pod's extended resource requests.
+       * It has the same format as the name of a pod's extended resource.
+       * It should be unique among all the device classes in a cluster.
+       * If two device classes have the same name, then the class created later
+       * is picked to satisfy a pod's extended resource requests.
+       * If two classes are created at the same time, then the name of the class
+       * lexicographically sorted first is picked.
+       * +optional
+       * +featureGate=DRAExtendedResource
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-extended-resource-name
+       * 
+ * + * optional string extendedResourceName = 4; + */ + public Builder setExtendedResourceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + extendedResourceName_ = value; + onChanged(); + return this; + } + /** + *
+       * ExtendedResourceName is the extended resource name for the devices of this class.
+       * The devices of this class can be used to satisfy a pod's extended resource requests.
+       * It has the same format as the name of a pod's extended resource.
+       * It should be unique among all the device classes in a cluster.
+       * If two device classes have the same name, then the class created later
+       * is picked to satisfy a pod's extended resource requests.
+       * If two classes are created at the same time, then the name of the class
+       * lexicographically sorted first is picked.
+       * +optional
+       * +featureGate=DRAExtendedResource
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-extended-resource-name
+       * 
+ * + * optional string extendedResourceName = 4; + */ + public Builder clearExtendedResourceName() { + bitField0_ = (bitField0_ & ~0x00000004); + extendedResourceName_ = getDefaultInstance().getExtendedResourceName(); + onChanged(); + return this; + } + /** + *
+       * ExtendedResourceName is the extended resource name for the devices of this class.
+       * The devices of this class can be used to satisfy a pod's extended resource requests.
+       * It has the same format as the name of a pod's extended resource.
+       * It should be unique among all the device classes in a cluster.
+       * If two device classes have the same name, then the class created later
+       * is picked to satisfy a pod's extended resource requests.
+       * If two classes are created at the same time, then the name of the class
+       * lexicographically sorted first is picked.
+       * +optional
+       * +featureGate=DRAExtendedResource
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-extended-resource-name
+       * 
+ * + * optional string extendedResourceName = 4; + */ + public Builder setExtendedResourceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + extendedResourceName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceClassSpec) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceClassSpec) + private static final io.kubernetes.client.proto.V1Resource.DeviceClassSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceClassSpec(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceClassSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceClassSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceClassSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceClassSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Opaque provides driver-specific configuration parameters.
+     * +optional
+     * +oneOf=ConfigurationType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.OpaqueDeviceConfiguration opaque = 1; + */ + boolean hasOpaque(); + /** + *
+     * Opaque provides driver-specific configuration parameters.
+     * +optional
+     * +oneOf=ConfigurationType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.OpaqueDeviceConfiguration opaque = 1; + */ + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration getOpaque(); + /** + *
+     * Opaque provides driver-specific configuration parameters.
+     * +optional
+     * +oneOf=ConfigurationType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.OpaqueDeviceConfiguration opaque = 1; + */ + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfigurationOrBuilder getOpaqueOrBuilder(); + } + /** + *
+   * DeviceConfiguration must have exactly one field set. It gets embedded
+   * inline in some other structs which have other fields, so field names must
+   * not conflict with those.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceConfiguration} + */ + public static final class DeviceConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceConfiguration) + DeviceConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceConfiguration.newBuilder() to construct. + private DeviceConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceConfiguration() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = opaque_.toBuilder(); + } + opaque_ = input.readMessage(io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(opaque_); + opaque_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceConfiguration.class, io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder.class); + } + + private int bitField0_; + public static final int OPAQUE_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration opaque_; + /** + *
+     * Opaque provides driver-specific configuration parameters.
+     * +optional
+     * +oneOf=ConfigurationType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.OpaqueDeviceConfiguration opaque = 1; + */ + public boolean hasOpaque() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Opaque provides driver-specific configuration parameters.
+     * +optional
+     * +oneOf=ConfigurationType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.OpaqueDeviceConfiguration opaque = 1; + */ + public io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration getOpaque() { + return opaque_ == null ? io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.getDefaultInstance() : opaque_; + } + /** + *
+     * Opaque provides driver-specific configuration parameters.
+     * +optional
+     * +oneOf=ConfigurationType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.OpaqueDeviceConfiguration opaque = 1; + */ + public io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfigurationOrBuilder getOpaqueOrBuilder() { + return opaque_ == null ? io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.getDefaultInstance() : opaque_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getOpaque()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getOpaque()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceConfiguration)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceConfiguration other = (io.kubernetes.client.proto.V1Resource.DeviceConfiguration) obj; + + boolean result = true; + result = result && (hasOpaque() == other.hasOpaque()); + if (hasOpaque()) { + result = result && getOpaque() + .equals(other.getOpaque()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasOpaque()) { + hash = (37 * hash) + OPAQUE_FIELD_NUMBER; + hash = (53 * hash) + getOpaque().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConfiguration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConfiguration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceConfiguration must have exactly one field set. It gets embedded
+     * inline in some other structs which have other fields, so field names must
+     * not conflict with those.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceConfiguration) + io.kubernetes.client.proto.V1Resource.DeviceConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceConfiguration.class, io.kubernetes.client.proto.V1Resource.DeviceConfiguration.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getOpaqueFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (opaqueBuilder_ == null) { + opaque_ = null; + } else { + opaqueBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceConfiguration_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceConfiguration getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceConfiguration build() { + io.kubernetes.client.proto.V1Resource.DeviceConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceConfiguration buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceConfiguration result = new io.kubernetes.client.proto.V1Resource.DeviceConfiguration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (opaqueBuilder_ == null) { + result.opaque_ = opaque_; + } else { + result.opaque_ = opaqueBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceConfiguration) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceConfiguration other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceConfiguration.getDefaultInstance()) return this; + if (other.hasOpaque()) { + mergeOpaque(other.getOpaque()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration opaque_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration, io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.Builder, io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfigurationOrBuilder> opaqueBuilder_; + /** + *
+       * Opaque provides driver-specific configuration parameters.
+       * +optional
+       * +oneOf=ConfigurationType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.OpaqueDeviceConfiguration opaque = 1; + */ + public boolean hasOpaque() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Opaque provides driver-specific configuration parameters.
+       * +optional
+       * +oneOf=ConfigurationType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.OpaqueDeviceConfiguration opaque = 1; + */ + public io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration getOpaque() { + if (opaqueBuilder_ == null) { + return opaque_ == null ? io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.getDefaultInstance() : opaque_; + } else { + return opaqueBuilder_.getMessage(); + } + } + /** + *
+       * Opaque provides driver-specific configuration parameters.
+       * +optional
+       * +oneOf=ConfigurationType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.OpaqueDeviceConfiguration opaque = 1; + */ + public Builder setOpaque(io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration value) { + if (opaqueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + opaque_ = value; + onChanged(); + } else { + opaqueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Opaque provides driver-specific configuration parameters.
+       * +optional
+       * +oneOf=ConfigurationType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.OpaqueDeviceConfiguration opaque = 1; + */ + public Builder setOpaque( + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.Builder builderForValue) { + if (opaqueBuilder_ == null) { + opaque_ = builderForValue.build(); + onChanged(); + } else { + opaqueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Opaque provides driver-specific configuration parameters.
+       * +optional
+       * +oneOf=ConfigurationType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.OpaqueDeviceConfiguration opaque = 1; + */ + public Builder mergeOpaque(io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration value) { + if (opaqueBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + opaque_ != null && + opaque_ != io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.getDefaultInstance()) { + opaque_ = + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.newBuilder(opaque_).mergeFrom(value).buildPartial(); + } else { + opaque_ = value; + } + onChanged(); + } else { + opaqueBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Opaque provides driver-specific configuration parameters.
+       * +optional
+       * +oneOf=ConfigurationType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.OpaqueDeviceConfiguration opaque = 1; + */ + public Builder clearOpaque() { + if (opaqueBuilder_ == null) { + opaque_ = null; + onChanged(); + } else { + opaqueBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Opaque provides driver-specific configuration parameters.
+       * +optional
+       * +oneOf=ConfigurationType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.OpaqueDeviceConfiguration opaque = 1; + */ + public io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.Builder getOpaqueBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getOpaqueFieldBuilder().getBuilder(); + } + /** + *
+       * Opaque provides driver-specific configuration parameters.
+       * +optional
+       * +oneOf=ConfigurationType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.OpaqueDeviceConfiguration opaque = 1; + */ + public io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfigurationOrBuilder getOpaqueOrBuilder() { + if (opaqueBuilder_ != null) { + return opaqueBuilder_.getMessageOrBuilder(); + } else { + return opaque_ == null ? + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.getDefaultInstance() : opaque_; + } + } + /** + *
+       * Opaque provides driver-specific configuration parameters.
+       * +optional
+       * +oneOf=ConfigurationType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.OpaqueDeviceConfiguration opaque = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration, io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.Builder, io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfigurationOrBuilder> + getOpaqueFieldBuilder() { + if (opaqueBuilder_ == null) { + opaqueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration, io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.Builder, io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfigurationOrBuilder>( + getOpaque(), + getParentForChildren(), + isClean()); + opaque_ = null; + } + return opaqueBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceConfiguration) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceConfiguration) + private static final io.kubernetes.client.proto.V1Resource.DeviceConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceConfiguration(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceConfiguration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceConstraintOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceConstraint) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Requests is a list of the one or more requests in this claim which
+     * must co-satisfy this constraint. If a request is fulfilled by
+     * multiple devices, then all of the devices must satisfy the
+     * constraint. If this is not specified, this constraint applies to all
+     * requests in this claim.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the constraint applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + java.util.List + getRequestsList(); + /** + *
+     * Requests is a list of the one or more requests in this claim which
+     * must co-satisfy this constraint. If a request is fulfilled by
+     * multiple devices, then all of the devices must satisfy the
+     * constraint. If this is not specified, this constraint applies to all
+     * requests in this claim.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the constraint applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + int getRequestsCount(); + /** + *
+     * Requests is a list of the one or more requests in this claim which
+     * must co-satisfy this constraint. If a request is fulfilled by
+     * multiple devices, then all of the devices must satisfy the
+     * constraint. If this is not specified, this constraint applies to all
+     * requests in this claim.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the constraint applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + java.lang.String getRequests(int index); + /** + *
+     * Requests is a list of the one or more requests in this claim which
+     * must co-satisfy this constraint. If a request is fulfilled by
+     * multiple devices, then all of the devices must satisfy the
+     * constraint. If this is not specified, this constraint applies to all
+     * requests in this claim.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the constraint applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + com.google.protobuf.ByteString + getRequestsBytes(int index); + + /** + *
+     * MatchAttribute requires that all devices in question have this
+     * attribute and that its type and value are the same across those
+     * devices.
+     * For example, if you specified "dra.example.com/numa" (a hypothetical example!),
+     * then only devices in the same NUMA node will be chosen. A device which
+     * does not have that attribute will not be chosen. All devices should
+     * use a value of the same type for this attribute because that is part of
+     * its specification, but if one device doesn't, then it also will not be
+     * chosen.
+     * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+     * set semantics(i.e., element order and duplicates are ignored): list-valued attributes
+     * match when the intersection across all devices is non-empty.
+     * Scalar values are treated as single-element lists for backward compatibility.
+     * Must include the domain qualifier.
+     * +optional
+     * +oneOf=ConstraintType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-fully-qualified-name
+     * 
+ * + * optional string matchAttribute = 2; + */ + boolean hasMatchAttribute(); + /** + *
+     * MatchAttribute requires that all devices in question have this
+     * attribute and that its type and value are the same across those
+     * devices.
+     * For example, if you specified "dra.example.com/numa" (a hypothetical example!),
+     * then only devices in the same NUMA node will be chosen. A device which
+     * does not have that attribute will not be chosen. All devices should
+     * use a value of the same type for this attribute because that is part of
+     * its specification, but if one device doesn't, then it also will not be
+     * chosen.
+     * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+     * set semantics(i.e., element order and duplicates are ignored): list-valued attributes
+     * match when the intersection across all devices is non-empty.
+     * Scalar values are treated as single-element lists for backward compatibility.
+     * Must include the domain qualifier.
+     * +optional
+     * +oneOf=ConstraintType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-fully-qualified-name
+     * 
+ * + * optional string matchAttribute = 2; + */ + java.lang.String getMatchAttribute(); + /** + *
+     * MatchAttribute requires that all devices in question have this
+     * attribute and that its type and value are the same across those
+     * devices.
+     * For example, if you specified "dra.example.com/numa" (a hypothetical example!),
+     * then only devices in the same NUMA node will be chosen. A device which
+     * does not have that attribute will not be chosen. All devices should
+     * use a value of the same type for this attribute because that is part of
+     * its specification, but if one device doesn't, then it also will not be
+     * chosen.
+     * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+     * set semantics(i.e., element order and duplicates are ignored): list-valued attributes
+     * match when the intersection across all devices is non-empty.
+     * Scalar values are treated as single-element lists for backward compatibility.
+     * Must include the domain qualifier.
+     * +optional
+     * +oneOf=ConstraintType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-fully-qualified-name
+     * 
+ * + * optional string matchAttribute = 2; + */ + com.google.protobuf.ByteString + getMatchAttributeBytes(); + + /** + *
+     * DistinctAttribute requires that all devices in question have this
+     * attribute and that its type and value are unique across those devices.
+     * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+     * set semantics (i.e., element order and duplicates are ignored):
+     * list-valued attributes must be pairwise disjoint across devices.
+     * Scalar values are treated as singleton sets for backward compatibility.
+     * This acts as the inverse of MatchAttribute.
+     * This constraint is used to avoid allocating multiple requests to the same device
+     * by ensuring attribute-level differentiation.
+     * This is useful for scenarios where resource requests must be fulfilled by separate physical devices.
+     * For example, a container requests two network interfaces that must be allocated from two different physical NICs.
+     * +optional
+     * +oneOf=ConstraintType
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional string distinctAttribute = 3; + */ + boolean hasDistinctAttribute(); + /** + *
+     * DistinctAttribute requires that all devices in question have this
+     * attribute and that its type and value are unique across those devices.
+     * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+     * set semantics (i.e., element order and duplicates are ignored):
+     * list-valued attributes must be pairwise disjoint across devices.
+     * Scalar values are treated as singleton sets for backward compatibility.
+     * This acts as the inverse of MatchAttribute.
+     * This constraint is used to avoid allocating multiple requests to the same device
+     * by ensuring attribute-level differentiation.
+     * This is useful for scenarios where resource requests must be fulfilled by separate physical devices.
+     * For example, a container requests two network interfaces that must be allocated from two different physical NICs.
+     * +optional
+     * +oneOf=ConstraintType
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional string distinctAttribute = 3; + */ + java.lang.String getDistinctAttribute(); + /** + *
+     * DistinctAttribute requires that all devices in question have this
+     * attribute and that its type and value are unique across those devices.
+     * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+     * set semantics (i.e., element order and duplicates are ignored):
+     * list-valued attributes must be pairwise disjoint across devices.
+     * Scalar values are treated as singleton sets for backward compatibility.
+     * This acts as the inverse of MatchAttribute.
+     * This constraint is used to avoid allocating multiple requests to the same device
+     * by ensuring attribute-level differentiation.
+     * This is useful for scenarios where resource requests must be fulfilled by separate physical devices.
+     * For example, a container requests two network interfaces that must be allocated from two different physical NICs.
+     * +optional
+     * +oneOf=ConstraintType
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional string distinctAttribute = 3; + */ + com.google.protobuf.ByteString + getDistinctAttributeBytes(); + } + /** + *
+   * DeviceConstraint must have exactly one field set besides Requests.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceConstraint} + */ + public static final class DeviceConstraint extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceConstraint) + DeviceConstraintOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceConstraint.newBuilder() to construct. + private DeviceConstraint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceConstraint() { + requests_ = com.google.protobuf.LazyStringArrayList.EMPTY; + matchAttribute_ = ""; + distinctAttribute_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceConstraint( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add(bs); + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + matchAttribute_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + distinctAttribute_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = requests_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceConstraint.class, io.kubernetes.client.proto.V1Resource.DeviceConstraint.Builder.class); + } + + private int bitField0_; + public static final int REQUESTS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList requests_; + /** + *
+     * Requests is a list of the one or more requests in this claim which
+     * must co-satisfy this constraint. If a request is fulfilled by
+     * multiple devices, then all of the devices must satisfy the
+     * constraint. If this is not specified, this constraint applies to all
+     * requests in this claim.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the constraint applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + public com.google.protobuf.ProtocolStringList + getRequestsList() { + return requests_; + } + /** + *
+     * Requests is a list of the one or more requests in this claim which
+     * must co-satisfy this constraint. If a request is fulfilled by
+     * multiple devices, then all of the devices must satisfy the
+     * constraint. If this is not specified, this constraint applies to all
+     * requests in this claim.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the constraint applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + public int getRequestsCount() { + return requests_.size(); + } + /** + *
+     * Requests is a list of the one or more requests in this claim which
+     * must co-satisfy this constraint. If a request is fulfilled by
+     * multiple devices, then all of the devices must satisfy the
+     * constraint. If this is not specified, this constraint applies to all
+     * requests in this claim.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the constraint applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + public java.lang.String getRequests(int index) { + return requests_.get(index); + } + /** + *
+     * Requests is a list of the one or more requests in this claim which
+     * must co-satisfy this constraint. If a request is fulfilled by
+     * multiple devices, then all of the devices must satisfy the
+     * constraint. If this is not specified, this constraint applies to all
+     * requests in this claim.
+     * References to subrequests must include the name of the main request
+     * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+     * the main request is given, the constraint applies to all subrequests.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated string requests = 1; + */ + public com.google.protobuf.ByteString + getRequestsBytes(int index) { + return requests_.getByteString(index); + } + + public static final int MATCHATTRIBUTE_FIELD_NUMBER = 2; + private volatile java.lang.Object matchAttribute_; + /** + *
+     * MatchAttribute requires that all devices in question have this
+     * attribute and that its type and value are the same across those
+     * devices.
+     * For example, if you specified "dra.example.com/numa" (a hypothetical example!),
+     * then only devices in the same NUMA node will be chosen. A device which
+     * does not have that attribute will not be chosen. All devices should
+     * use a value of the same type for this attribute because that is part of
+     * its specification, but if one device doesn't, then it also will not be
+     * chosen.
+     * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+     * set semantics(i.e., element order and duplicates are ignored): list-valued attributes
+     * match when the intersection across all devices is non-empty.
+     * Scalar values are treated as single-element lists for backward compatibility.
+     * Must include the domain qualifier.
+     * +optional
+     * +oneOf=ConstraintType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-fully-qualified-name
+     * 
+ * + * optional string matchAttribute = 2; + */ + public boolean hasMatchAttribute() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * MatchAttribute requires that all devices in question have this
+     * attribute and that its type and value are the same across those
+     * devices.
+     * For example, if you specified "dra.example.com/numa" (a hypothetical example!),
+     * then only devices in the same NUMA node will be chosen. A device which
+     * does not have that attribute will not be chosen. All devices should
+     * use a value of the same type for this attribute because that is part of
+     * its specification, but if one device doesn't, then it also will not be
+     * chosen.
+     * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+     * set semantics(i.e., element order and duplicates are ignored): list-valued attributes
+     * match when the intersection across all devices is non-empty.
+     * Scalar values are treated as single-element lists for backward compatibility.
+     * Must include the domain qualifier.
+     * +optional
+     * +oneOf=ConstraintType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-fully-qualified-name
+     * 
+ * + * optional string matchAttribute = 2; + */ + public java.lang.String getMatchAttribute() { + java.lang.Object ref = matchAttribute_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + matchAttribute_ = s; + } + return s; + } + } + /** + *
+     * MatchAttribute requires that all devices in question have this
+     * attribute and that its type and value are the same across those
+     * devices.
+     * For example, if you specified "dra.example.com/numa" (a hypothetical example!),
+     * then only devices in the same NUMA node will be chosen. A device which
+     * does not have that attribute will not be chosen. All devices should
+     * use a value of the same type for this attribute because that is part of
+     * its specification, but if one device doesn't, then it also will not be
+     * chosen.
+     * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+     * set semantics(i.e., element order and duplicates are ignored): list-valued attributes
+     * match when the intersection across all devices is non-empty.
+     * Scalar values are treated as single-element lists for backward compatibility.
+     * Must include the domain qualifier.
+     * +optional
+     * +oneOf=ConstraintType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-fully-qualified-name
+     * 
+ * + * optional string matchAttribute = 2; + */ + public com.google.protobuf.ByteString + getMatchAttributeBytes() { + java.lang.Object ref = matchAttribute_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + matchAttribute_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISTINCTATTRIBUTE_FIELD_NUMBER = 3; + private volatile java.lang.Object distinctAttribute_; + /** + *
+     * DistinctAttribute requires that all devices in question have this
+     * attribute and that its type and value are unique across those devices.
+     * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+     * set semantics (i.e., element order and duplicates are ignored):
+     * list-valued attributes must be pairwise disjoint across devices.
+     * Scalar values are treated as singleton sets for backward compatibility.
+     * This acts as the inverse of MatchAttribute.
+     * This constraint is used to avoid allocating multiple requests to the same device
+     * by ensuring attribute-level differentiation.
+     * This is useful for scenarios where resource requests must be fulfilled by separate physical devices.
+     * For example, a container requests two network interfaces that must be allocated from two different physical NICs.
+     * +optional
+     * +oneOf=ConstraintType
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional string distinctAttribute = 3; + */ + public boolean hasDistinctAttribute() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * DistinctAttribute requires that all devices in question have this
+     * attribute and that its type and value are unique across those devices.
+     * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+     * set semantics (i.e., element order and duplicates are ignored):
+     * list-valued attributes must be pairwise disjoint across devices.
+     * Scalar values are treated as singleton sets for backward compatibility.
+     * This acts as the inverse of MatchAttribute.
+     * This constraint is used to avoid allocating multiple requests to the same device
+     * by ensuring attribute-level differentiation.
+     * This is useful for scenarios where resource requests must be fulfilled by separate physical devices.
+     * For example, a container requests two network interfaces that must be allocated from two different physical NICs.
+     * +optional
+     * +oneOf=ConstraintType
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional string distinctAttribute = 3; + */ + public java.lang.String getDistinctAttribute() { + java.lang.Object ref = distinctAttribute_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + distinctAttribute_ = s; + } + return s; + } + } + /** + *
+     * DistinctAttribute requires that all devices in question have this
+     * attribute and that its type and value are unique across those devices.
+     * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+     * set semantics (i.e., element order and duplicates are ignored):
+     * list-valued attributes must be pairwise disjoint across devices.
+     * Scalar values are treated as singleton sets for backward compatibility.
+     * This acts as the inverse of MatchAttribute.
+     * This constraint is used to avoid allocating multiple requests to the same device
+     * by ensuring attribute-level differentiation.
+     * This is useful for scenarios where resource requests must be fulfilled by separate physical devices.
+     * For example, a container requests two network interfaces that must be allocated from two different physical NICs.
+     * +optional
+     * +oneOf=ConstraintType
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional string distinctAttribute = 3; + */ + public com.google.protobuf.ByteString + getDistinctAttributeBytes() { + java.lang.Object ref = distinctAttribute_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + distinctAttribute_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < requests_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, requests_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, matchAttribute_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, distinctAttribute_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < requests_.size(); i++) { + dataSize += computeStringSizeNoTag(requests_.getRaw(i)); + } + size += dataSize; + size += 1 * getRequestsList().size(); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, matchAttribute_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, distinctAttribute_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceConstraint)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceConstraint other = (io.kubernetes.client.proto.V1Resource.DeviceConstraint) obj; + + boolean result = true; + result = result && getRequestsList() + .equals(other.getRequestsList()); + result = result && (hasMatchAttribute() == other.hasMatchAttribute()); + if (hasMatchAttribute()) { + result = result && getMatchAttribute() + .equals(other.getMatchAttribute()); + } + result = result && (hasDistinctAttribute() == other.hasDistinctAttribute()); + if (hasDistinctAttribute()) { + result = result && getDistinctAttribute() + .equals(other.getDistinctAttribute()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + if (hasMatchAttribute()) { + hash = (37 * hash) + MATCHATTRIBUTE_FIELD_NUMBER; + hash = (53 * hash) + getMatchAttribute().hashCode(); + } + if (hasDistinctAttribute()) { + hash = (37 * hash) + DISTINCTATTRIBUTE_FIELD_NUMBER; + hash = (53 * hash) + getDistinctAttribute().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceConstraint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConstraint parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConstraint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConstraint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConstraint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConstraint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConstraint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConstraint parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConstraint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConstraint parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConstraint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceConstraint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceConstraint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceConstraint must have exactly one field set besides Requests.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceConstraint} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceConstraint) + io.kubernetes.client.proto.V1Resource.DeviceConstraintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceConstraint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceConstraint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceConstraint.class, io.kubernetes.client.proto.V1Resource.DeviceConstraint.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceConstraint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + requests_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + matchAttribute_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + distinctAttribute_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceConstraint_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceConstraint getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceConstraint.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceConstraint build() { + io.kubernetes.client.proto.V1Resource.DeviceConstraint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceConstraint buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceConstraint result = new io.kubernetes.client.proto.V1Resource.DeviceConstraint(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = requests_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.requests_ = requests_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000001; + } + result.matchAttribute_ = matchAttribute_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + result.distinctAttribute_ = distinctAttribute_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceConstraint) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceConstraint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceConstraint other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceConstraint.getDefaultInstance()) return this; + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + if (other.hasMatchAttribute()) { + bitField0_ |= 0x00000002; + matchAttribute_ = other.matchAttribute_; + onChanged(); + } + if (other.hasDistinctAttribute()) { + bitField0_ |= 0x00000004; + distinctAttribute_ = other.distinctAttribute_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceConstraint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceConstraint) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList requests_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + requests_ = new com.google.protobuf.LazyStringArrayList(requests_); + bitField0_ |= 0x00000001; + } + } + /** + *
+       * Requests is a list of the one or more requests in this claim which
+       * must co-satisfy this constraint. If a request is fulfilled by
+       * multiple devices, then all of the devices must satisfy the
+       * constraint. If this is not specified, this constraint applies to all
+       * requests in this claim.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the constraint applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public com.google.protobuf.ProtocolStringList + getRequestsList() { + return requests_.getUnmodifiableView(); + } + /** + *
+       * Requests is a list of the one or more requests in this claim which
+       * must co-satisfy this constraint. If a request is fulfilled by
+       * multiple devices, then all of the devices must satisfy the
+       * constraint. If this is not specified, this constraint applies to all
+       * requests in this claim.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the constraint applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public int getRequestsCount() { + return requests_.size(); + } + /** + *
+       * Requests is a list of the one or more requests in this claim which
+       * must co-satisfy this constraint. If a request is fulfilled by
+       * multiple devices, then all of the devices must satisfy the
+       * constraint. If this is not specified, this constraint applies to all
+       * requests in this claim.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the constraint applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public java.lang.String getRequests(int index) { + return requests_.get(index); + } + /** + *
+       * Requests is a list of the one or more requests in this claim which
+       * must co-satisfy this constraint. If a request is fulfilled by
+       * multiple devices, then all of the devices must satisfy the
+       * constraint. If this is not specified, this constraint applies to all
+       * requests in this claim.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the constraint applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public com.google.protobuf.ByteString + getRequestsBytes(int index) { + return requests_.getByteString(index); + } + /** + *
+       * Requests is a list of the one or more requests in this claim which
+       * must co-satisfy this constraint. If a request is fulfilled by
+       * multiple devices, then all of the devices must satisfy the
+       * constraint. If this is not specified, this constraint applies to all
+       * requests in this claim.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the constraint applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public Builder setRequests( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * Requests is a list of the one or more requests in this claim which
+       * must co-satisfy this constraint. If a request is fulfilled by
+       * multiple devices, then all of the devices must satisfy the
+       * constraint. If this is not specified, this constraint applies to all
+       * requests in this claim.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the constraint applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public Builder addRequests( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + return this; + } + /** + *
+       * Requests is a list of the one or more requests in this claim which
+       * must co-satisfy this constraint. If a request is fulfilled by
+       * multiple devices, then all of the devices must satisfy the
+       * constraint. If this is not specified, this constraint applies to all
+       * requests in this claim.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the constraint applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public Builder addAllRequests( + java.lang.Iterable values) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); + onChanged(); + return this; + } + /** + *
+       * Requests is a list of the one or more requests in this claim which
+       * must co-satisfy this constraint. If a request is fulfilled by
+       * multiple devices, then all of the devices must satisfy the
+       * constraint. If this is not specified, this constraint applies to all
+       * requests in this claim.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the constraint applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public Builder clearRequests() { + requests_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+       * Requests is a list of the one or more requests in this claim which
+       * must co-satisfy this constraint. If a request is fulfilled by
+       * multiple devices, then all of the devices must satisfy the
+       * constraint. If this is not specified, this constraint applies to all
+       * requests in this claim.
+       * References to subrequests must include the name of the main request
+       * and may include the subrequest using the format <main request>[/<subrequest>]. If just
+       * the main request is given, the constraint applies to all subrequests.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated string requests = 1; + */ + public Builder addRequestsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + return this; + } + + private java.lang.Object matchAttribute_ = ""; + /** + *
+       * MatchAttribute requires that all devices in question have this
+       * attribute and that its type and value are the same across those
+       * devices.
+       * For example, if you specified "dra.example.com/numa" (a hypothetical example!),
+       * then only devices in the same NUMA node will be chosen. A device which
+       * does not have that attribute will not be chosen. All devices should
+       * use a value of the same type for this attribute because that is part of
+       * its specification, but if one device doesn't, then it also will not be
+       * chosen.
+       * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+       * set semantics(i.e., element order and duplicates are ignored): list-valued attributes
+       * match when the intersection across all devices is non-empty.
+       * Scalar values are treated as single-element lists for backward compatibility.
+       * Must include the domain qualifier.
+       * +optional
+       * +oneOf=ConstraintType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-fully-qualified-name
+       * 
+ * + * optional string matchAttribute = 2; + */ + public boolean hasMatchAttribute() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * MatchAttribute requires that all devices in question have this
+       * attribute and that its type and value are the same across those
+       * devices.
+       * For example, if you specified "dra.example.com/numa" (a hypothetical example!),
+       * then only devices in the same NUMA node will be chosen. A device which
+       * does not have that attribute will not be chosen. All devices should
+       * use a value of the same type for this attribute because that is part of
+       * its specification, but if one device doesn't, then it also will not be
+       * chosen.
+       * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+       * set semantics(i.e., element order and duplicates are ignored): list-valued attributes
+       * match when the intersection across all devices is non-empty.
+       * Scalar values are treated as single-element lists for backward compatibility.
+       * Must include the domain qualifier.
+       * +optional
+       * +oneOf=ConstraintType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-fully-qualified-name
+       * 
+ * + * optional string matchAttribute = 2; + */ + public java.lang.String getMatchAttribute() { + java.lang.Object ref = matchAttribute_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + matchAttribute_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * MatchAttribute requires that all devices in question have this
+       * attribute and that its type and value are the same across those
+       * devices.
+       * For example, if you specified "dra.example.com/numa" (a hypothetical example!),
+       * then only devices in the same NUMA node will be chosen. A device which
+       * does not have that attribute will not be chosen. All devices should
+       * use a value of the same type for this attribute because that is part of
+       * its specification, but if one device doesn't, then it also will not be
+       * chosen.
+       * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+       * set semantics(i.e., element order and duplicates are ignored): list-valued attributes
+       * match when the intersection across all devices is non-empty.
+       * Scalar values are treated as single-element lists for backward compatibility.
+       * Must include the domain qualifier.
+       * +optional
+       * +oneOf=ConstraintType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-fully-qualified-name
+       * 
+ * + * optional string matchAttribute = 2; + */ + public com.google.protobuf.ByteString + getMatchAttributeBytes() { + java.lang.Object ref = matchAttribute_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + matchAttribute_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * MatchAttribute requires that all devices in question have this
+       * attribute and that its type and value are the same across those
+       * devices.
+       * For example, if you specified "dra.example.com/numa" (a hypothetical example!),
+       * then only devices in the same NUMA node will be chosen. A device which
+       * does not have that attribute will not be chosen. All devices should
+       * use a value of the same type for this attribute because that is part of
+       * its specification, but if one device doesn't, then it also will not be
+       * chosen.
+       * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+       * set semantics(i.e., element order and duplicates are ignored): list-valued attributes
+       * match when the intersection across all devices is non-empty.
+       * Scalar values are treated as single-element lists for backward compatibility.
+       * Must include the domain qualifier.
+       * +optional
+       * +oneOf=ConstraintType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-fully-qualified-name
+       * 
+ * + * optional string matchAttribute = 2; + */ + public Builder setMatchAttribute( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + matchAttribute_ = value; + onChanged(); + return this; + } + /** + *
+       * MatchAttribute requires that all devices in question have this
+       * attribute and that its type and value are the same across those
+       * devices.
+       * For example, if you specified "dra.example.com/numa" (a hypothetical example!),
+       * then only devices in the same NUMA node will be chosen. A device which
+       * does not have that attribute will not be chosen. All devices should
+       * use a value of the same type for this attribute because that is part of
+       * its specification, but if one device doesn't, then it also will not be
+       * chosen.
+       * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+       * set semantics(i.e., element order and duplicates are ignored): list-valued attributes
+       * match when the intersection across all devices is non-empty.
+       * Scalar values are treated as single-element lists for backward compatibility.
+       * Must include the domain qualifier.
+       * +optional
+       * +oneOf=ConstraintType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-fully-qualified-name
+       * 
+ * + * optional string matchAttribute = 2; + */ + public Builder clearMatchAttribute() { + bitField0_ = (bitField0_ & ~0x00000002); + matchAttribute_ = getDefaultInstance().getMatchAttribute(); + onChanged(); + return this; + } + /** + *
+       * MatchAttribute requires that all devices in question have this
+       * attribute and that its type and value are the same across those
+       * devices.
+       * For example, if you specified "dra.example.com/numa" (a hypothetical example!),
+       * then only devices in the same NUMA node will be chosen. A device which
+       * does not have that attribute will not be chosen. All devices should
+       * use a value of the same type for this attribute because that is part of
+       * its specification, but if one device doesn't, then it also will not be
+       * chosen.
+       * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+       * set semantics(i.e., element order and duplicates are ignored): list-valued attributes
+       * match when the intersection across all devices is non-empty.
+       * Scalar values are treated as single-element lists for backward compatibility.
+       * Must include the domain qualifier.
+       * +optional
+       * +oneOf=ConstraintType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-fully-qualified-name
+       * 
+ * + * optional string matchAttribute = 2; + */ + public Builder setMatchAttributeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + matchAttribute_ = value; + onChanged(); + return this; + } + + private java.lang.Object distinctAttribute_ = ""; + /** + *
+       * DistinctAttribute requires that all devices in question have this
+       * attribute and that its type and value are unique across those devices.
+       * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+       * set semantics (i.e., element order and duplicates are ignored):
+       * list-valued attributes must be pairwise disjoint across devices.
+       * Scalar values are treated as singleton sets for backward compatibility.
+       * This acts as the inverse of MatchAttribute.
+       * This constraint is used to avoid allocating multiple requests to the same device
+       * by ensuring attribute-level differentiation.
+       * This is useful for scenarios where resource requests must be fulfilled by separate physical devices.
+       * For example, a container requests two network interfaces that must be allocated from two different physical NICs.
+       * +optional
+       * +oneOf=ConstraintType
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional string distinctAttribute = 3; + */ + public boolean hasDistinctAttribute() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * DistinctAttribute requires that all devices in question have this
+       * attribute and that its type and value are unique across those devices.
+       * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+       * set semantics (i.e., element order and duplicates are ignored):
+       * list-valued attributes must be pairwise disjoint across devices.
+       * Scalar values are treated as singleton sets for backward compatibility.
+       * This acts as the inverse of MatchAttribute.
+       * This constraint is used to avoid allocating multiple requests to the same device
+       * by ensuring attribute-level differentiation.
+       * This is useful for scenarios where resource requests must be fulfilled by separate physical devices.
+       * For example, a container requests two network interfaces that must be allocated from two different physical NICs.
+       * +optional
+       * +oneOf=ConstraintType
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional string distinctAttribute = 3; + */ + public java.lang.String getDistinctAttribute() { + java.lang.Object ref = distinctAttribute_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + distinctAttribute_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * DistinctAttribute requires that all devices in question have this
+       * attribute and that its type and value are unique across those devices.
+       * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+       * set semantics (i.e., element order and duplicates are ignored):
+       * list-valued attributes must be pairwise disjoint across devices.
+       * Scalar values are treated as singleton sets for backward compatibility.
+       * This acts as the inverse of MatchAttribute.
+       * This constraint is used to avoid allocating multiple requests to the same device
+       * by ensuring attribute-level differentiation.
+       * This is useful for scenarios where resource requests must be fulfilled by separate physical devices.
+       * For example, a container requests two network interfaces that must be allocated from two different physical NICs.
+       * +optional
+       * +oneOf=ConstraintType
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional string distinctAttribute = 3; + */ + public com.google.protobuf.ByteString + getDistinctAttributeBytes() { + java.lang.Object ref = distinctAttribute_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + distinctAttribute_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * DistinctAttribute requires that all devices in question have this
+       * attribute and that its type and value are unique across those devices.
+       * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+       * set semantics (i.e., element order and duplicates are ignored):
+       * list-valued attributes must be pairwise disjoint across devices.
+       * Scalar values are treated as singleton sets for backward compatibility.
+       * This acts as the inverse of MatchAttribute.
+       * This constraint is used to avoid allocating multiple requests to the same device
+       * by ensuring attribute-level differentiation.
+       * This is useful for scenarios where resource requests must be fulfilled by separate physical devices.
+       * For example, a container requests two network interfaces that must be allocated from two different physical NICs.
+       * +optional
+       * +oneOf=ConstraintType
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional string distinctAttribute = 3; + */ + public Builder setDistinctAttribute( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + distinctAttribute_ = value; + onChanged(); + return this; + } + /** + *
+       * DistinctAttribute requires that all devices in question have this
+       * attribute and that its type and value are unique across those devices.
+       * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+       * set semantics (i.e., element order and duplicates are ignored):
+       * list-valued attributes must be pairwise disjoint across devices.
+       * Scalar values are treated as singleton sets for backward compatibility.
+       * This acts as the inverse of MatchAttribute.
+       * This constraint is used to avoid allocating multiple requests to the same device
+       * by ensuring attribute-level differentiation.
+       * This is useful for scenarios where resource requests must be fulfilled by separate physical devices.
+       * For example, a container requests two network interfaces that must be allocated from two different physical NICs.
+       * +optional
+       * +oneOf=ConstraintType
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional string distinctAttribute = 3; + */ + public Builder clearDistinctAttribute() { + bitField0_ = (bitField0_ & ~0x00000004); + distinctAttribute_ = getDefaultInstance().getDistinctAttribute(); + onChanged(); + return this; + } + /** + *
+       * DistinctAttribute requires that all devices in question have this
+       * attribute and that its type and value are unique across those devices.
+       * When the DRAListTypeAttributes feature gate is enabled, comparison uses
+       * set semantics (i.e., element order and duplicates are ignored):
+       * list-valued attributes must be pairwise disjoint across devices.
+       * Scalar values are treated as singleton sets for backward compatibility.
+       * This acts as the inverse of MatchAttribute.
+       * This constraint is used to avoid allocating multiple requests to the same device
+       * by ensuring attribute-level differentiation.
+       * This is useful for scenarios where resource requests must be fulfilled by separate physical devices.
+       * For example, a container requests two network interfaces that must be allocated from two different physical NICs.
+       * +optional
+       * +oneOf=ConstraintType
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional string distinctAttribute = 3; + */ + public Builder setDistinctAttributeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + distinctAttribute_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceConstraint) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceConstraint) + private static final io.kubernetes.client.proto.V1Resource.DeviceConstraint DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceConstraint(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceConstraint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceConstraint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceConstraint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceConstraint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceCounterConsumptionOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceCounterConsumption) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * CounterSet is the name of the set from which the
+     * counters defined will be consumed.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+     * 
+ * + * optional string counterSet = 1; + */ + boolean hasCounterSet(); + /** + *
+     * CounterSet is the name of the set from which the
+     * counters defined will be consumed.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+     * 
+ * + * optional string counterSet = 1; + */ + java.lang.String getCounterSet(); + /** + *
+     * CounterSet is the name of the set from which the
+     * counters defined will be consumed.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+     * 
+ * + * optional string counterSet = 1; + */ + com.google.protobuf.ByteString + getCounterSetBytes(); + + /** + *
+     * Counters defines the counters that will be consumed by the device.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + int getCountersCount(); + /** + *
+     * Counters defines the counters that will be consumed by the device.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + boolean containsCounters( + java.lang.String key); + /** + * Use {@link #getCountersMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getCounters(); + /** + *
+     * Counters defines the counters that will be consumed by the device.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + java.util.Map + getCountersMap(); + /** + *
+     * Counters defines the counters that will be consumed by the device.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + io.kubernetes.client.proto.V1Resource.Counter getCountersOrDefault( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.Counter defaultValue); + /** + *
+     * Counters defines the counters that will be consumed by the device.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + io.kubernetes.client.proto.V1Resource.Counter getCountersOrThrow( + java.lang.String key); + } + /** + *
+   * DeviceCounterConsumption defines a set of counters that
+   * a device will consume from a CounterSet.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceCounterConsumption} + */ + public static final class DeviceCounterConsumption extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceCounterConsumption) + DeviceCounterConsumptionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceCounterConsumption.newBuilder() to construct. + private DeviceCounterConsumption(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceCounterConsumption() { + counterSet_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceCounterConsumption( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + counterSet_ = bs; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + counters_ = com.google.protobuf.MapField.newMapField( + CountersDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000002; + } + com.google.protobuf.MapEntry + counters__ = input.readMessage( + CountersDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + counters_.getMutableMap().put( + counters__.getKey(), counters__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetCounters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.class, io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.Builder.class); + } + + private int bitField0_; + public static final int COUNTERSET_FIELD_NUMBER = 1; + private volatile java.lang.Object counterSet_; + /** + *
+     * CounterSet is the name of the set from which the
+     * counters defined will be consumed.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+     * 
+ * + * optional string counterSet = 1; + */ + public boolean hasCounterSet() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * CounterSet is the name of the set from which the
+     * counters defined will be consumed.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+     * 
+ * + * optional string counterSet = 1; + */ + public java.lang.String getCounterSet() { + java.lang.Object ref = counterSet_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + counterSet_ = s; + } + return s; + } + } + /** + *
+     * CounterSet is the name of the set from which the
+     * counters defined will be consumed.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+     * 
+ * + * optional string counterSet = 1; + */ + public com.google.protobuf.ByteString + getCounterSetBytes() { + java.lang.Object ref = counterSet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + counterSet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COUNTERS_FIELD_NUMBER = 2; + private static final class CountersDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, io.kubernetes.client.proto.V1Resource.Counter> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_CountersEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + io.kubernetes.client.proto.V1Resource.Counter.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.V1Resource.Counter> counters_; + private com.google.protobuf.MapField + internalGetCounters() { + if (counters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CountersDefaultEntryHolder.defaultEntry); + } + return counters_; + } + + public int getCountersCount() { + return internalGetCounters().getMap().size(); + } + /** + *
+     * Counters defines the counters that will be consumed by the device.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public boolean containsCounters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetCounters().getMap().containsKey(key); + } + /** + * Use {@link #getCountersMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getCounters() { + return getCountersMap(); + } + /** + *
+     * Counters defines the counters that will be consumed by the device.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public java.util.Map getCountersMap() { + return internalGetCounters().getMap(); + } + /** + *
+     * Counters defines the counters that will be consumed by the device.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public io.kubernetes.client.proto.V1Resource.Counter getCountersOrDefault( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.Counter defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCounters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * Counters defines the counters that will be consumed by the device.
+     * The maximum number of counters is 32.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+     * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public io.kubernetes.client.proto.V1Resource.Counter getCountersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCounters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, counterSet_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetCounters(), + CountersDefaultEntryHolder.defaultEntry, + 2); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, counterSet_); + } + for (java.util.Map.Entry entry + : internalGetCounters().getMap().entrySet()) { + com.google.protobuf.MapEntry + counters__ = CountersDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, counters__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption other = (io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption) obj; + + boolean result = true; + result = result && (hasCounterSet() == other.hasCounterSet()); + if (hasCounterSet()) { + result = result && getCounterSet() + .equals(other.getCounterSet()); + } + result = result && internalGetCounters().equals( + other.internalGetCounters()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCounterSet()) { + hash = (37 * hash) + COUNTERSET_FIELD_NUMBER; + hash = (53 * hash) + getCounterSet().hashCode(); + } + if (!internalGetCounters().getMap().isEmpty()) { + hash = (37 * hash) + COUNTERS_FIELD_NUMBER; + hash = (53 * hash) + internalGetCounters().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceCounterConsumption defines a set of counters that
+     * a device will consume from a CounterSet.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceCounterConsumption} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceCounterConsumption) + io.kubernetes.client.proto.V1Resource.DeviceCounterConsumptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetCounters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableCounters(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.class, io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + counterSet_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableCounters().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption build() { + io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption result = new io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.counterSet_ = counterSet_; + result.counters_ = internalGetCounters(); + result.counters_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption.getDefaultInstance()) return this; + if (other.hasCounterSet()) { + bitField0_ |= 0x00000001; + counterSet_ = other.counterSet_; + onChanged(); + } + internalGetMutableCounters().mergeFrom( + other.internalGetCounters()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object counterSet_ = ""; + /** + *
+       * CounterSet is the name of the set from which the
+       * counters defined will be consumed.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+       * 
+ * + * optional string counterSet = 1; + */ + public boolean hasCounterSet() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * CounterSet is the name of the set from which the
+       * counters defined will be consumed.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+       * 
+ * + * optional string counterSet = 1; + */ + public java.lang.String getCounterSet() { + java.lang.Object ref = counterSet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + counterSet_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * CounterSet is the name of the set from which the
+       * counters defined will be consumed.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+       * 
+ * + * optional string counterSet = 1; + */ + public com.google.protobuf.ByteString + getCounterSetBytes() { + java.lang.Object ref = counterSet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + counterSet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * CounterSet is the name of the set from which the
+       * counters defined will be consumed.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+       * 
+ * + * optional string counterSet = 1; + */ + public Builder setCounterSet( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + counterSet_ = value; + onChanged(); + return this; + } + /** + *
+       * CounterSet is the name of the set from which the
+       * counters defined will be consumed.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+       * 
+ * + * optional string counterSet = 1; + */ + public Builder clearCounterSet() { + bitField0_ = (bitField0_ & ~0x00000001); + counterSet_ = getDefaultInstance().getCounterSet(); + onChanged(); + return this; + } + /** + *
+       * CounterSet is the name of the set from which the
+       * counters defined will be consumed.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-short-name
+       * 
+ * + * optional string counterSet = 1; + */ + public Builder setCounterSetBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + counterSet_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.V1Resource.Counter> counters_; + private com.google.protobuf.MapField + internalGetCounters() { + if (counters_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CountersDefaultEntryHolder.defaultEntry); + } + return counters_; + } + private com.google.protobuf.MapField + internalGetMutableCounters() { + onChanged();; + if (counters_ == null) { + counters_ = com.google.protobuf.MapField.newMapField( + CountersDefaultEntryHolder.defaultEntry); + } + if (!counters_.isMutable()) { + counters_ = counters_.copy(); + } + return counters_; + } + + public int getCountersCount() { + return internalGetCounters().getMap().size(); + } + /** + *
+       * Counters defines the counters that will be consumed by the device.
+       * The maximum number of counters is 32.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public boolean containsCounters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetCounters().getMap().containsKey(key); + } + /** + * Use {@link #getCountersMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getCounters() { + return getCountersMap(); + } + /** + *
+       * Counters defines the counters that will be consumed by the device.
+       * The maximum number of counters is 32.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public java.util.Map getCountersMap() { + return internalGetCounters().getMap(); + } + /** + *
+       * Counters defines the counters that will be consumed by the device.
+       * The maximum number of counters is 32.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public io.kubernetes.client.proto.V1Resource.Counter getCountersOrDefault( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.Counter defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCounters().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * Counters defines the counters that will be consumed by the device.
+       * The maximum number of counters is 32.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public io.kubernetes.client.proto.V1Resource.Counter getCountersOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetCounters().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCounters() { + internalGetMutableCounters().getMutableMap() + .clear(); + return this; + } + /** + *
+       * Counters defines the counters that will be consumed by the device.
+       * The maximum number of counters is 32.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public Builder removeCounters( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableCounters().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableCounters() { + return internalGetMutableCounters().getMutableMap(); + } + /** + *
+       * Counters defines the counters that will be consumed by the device.
+       * The maximum number of counters is 32.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + public Builder putCounters( + java.lang.String key, + io.kubernetes.client.proto.V1Resource.Counter value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableCounters().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * Counters defines the counters that will be consumed by the device.
+       * The maximum number of counters is 32.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:eachKey=+k8s:format=k8s-short-name
+       * 
+ * + * map<string, .k8s.io.api.resource.v1.Counter> counters = 2; + */ + + public Builder putAllCounters( + java.util.Map values) { + internalGetMutableCounters().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceCounterConsumption) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceCounterConsumption) + private static final io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceCounterConsumption parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceCounterConsumption(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceCounterConsumption getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name can be used to reference this request in a pod.spec.containers[].resources.claims
+     * entry and in a constraint of the claim.
+     * References using the name in the DeviceRequest will uniquely
+     * identify a request when the Exactly field is set. When the
+     * FirstAvailable field is set, a reference to the name of the
+     * DeviceRequest will match whatever subrequest is chosen by the
+     * scheduler.
+     * Must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + boolean hasName(); + /** + *
+     * Name can be used to reference this request in a pod.spec.containers[].resources.claims
+     * entry and in a constraint of the claim.
+     * References using the name in the DeviceRequest will uniquely
+     * identify a request when the Exactly field is set. When the
+     * FirstAvailable field is set, a reference to the name of the
+     * DeviceRequest will match whatever subrequest is chosen by the
+     * scheduler.
+     * Must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + java.lang.String getName(); + /** + *
+     * Name can be used to reference this request in a pod.spec.containers[].resources.claims
+     * entry and in a constraint of the claim.
+     * References using the name in the DeviceRequest will uniquely
+     * identify a request when the Exactly field is set. When the
+     * FirstAvailable field is set, a reference to the name of the
+     * DeviceRequest will match whatever subrequest is chosen by the
+     * scheduler.
+     * Must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Exactly specifies the details for a single request that must
+     * be met exactly for the request to be satisfied.
+     * One of Exactly or FirstAvailable must be set.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ExactDeviceRequest exactly = 2; + */ + boolean hasExactly(); + /** + *
+     * Exactly specifies the details for a single request that must
+     * be met exactly for the request to be satisfied.
+     * One of Exactly or FirstAvailable must be set.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ExactDeviceRequest exactly = 2; + */ + io.kubernetes.client.proto.V1Resource.ExactDeviceRequest getExactly(); + /** + *
+     * Exactly specifies the details for a single request that must
+     * be met exactly for the request to be satisfied.
+     * One of Exactly or FirstAvailable must be set.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ExactDeviceRequest exactly = 2; + */ + io.kubernetes.client.proto.V1Resource.ExactDeviceRequestOrBuilder getExactlyOrBuilder(); + + /** + *
+     * FirstAvailable contains subrequests, of which exactly one will be
+     * selected by the scheduler. It tries to
+     * satisfy them in the order in which they are listed here. So if
+     * there are two entries in the list, the scheduler will only check
+     * the second one if it determines that the first one can not be used.
+     * DRA does not yet implement scoring, so the scheduler will
+     * select the first set of devices that satisfies all the
+     * requests in the claim. And if the requirements can
+     * be satisfied on more than one node, other scheduling features
+     * will determine which node is chosen. This means that the set of
+     * devices allocated to a claim might not be the optimal set
+     * available to the cluster. Scoring will be implemented later.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +listType=atomic
+     * +featureGate=DRAPrioritizedList
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + java.util.List + getFirstAvailableList(); + /** + *
+     * FirstAvailable contains subrequests, of which exactly one will be
+     * selected by the scheduler. It tries to
+     * satisfy them in the order in which they are listed here. So if
+     * there are two entries in the list, the scheduler will only check
+     * the second one if it determines that the first one can not be used.
+     * DRA does not yet implement scoring, so the scheduler will
+     * select the first set of devices that satisfies all the
+     * requests in the claim. And if the requirements can
+     * be satisfied on more than one node, other scheduling features
+     * will determine which node is chosen. This means that the set of
+     * devices allocated to a claim might not be the optimal set
+     * available to the cluster. Scoring will be implemented later.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +listType=atomic
+     * +featureGate=DRAPrioritizedList
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + io.kubernetes.client.proto.V1Resource.DeviceSubRequest getFirstAvailable(int index); + /** + *
+     * FirstAvailable contains subrequests, of which exactly one will be
+     * selected by the scheduler. It tries to
+     * satisfy them in the order in which they are listed here. So if
+     * there are two entries in the list, the scheduler will only check
+     * the second one if it determines that the first one can not be used.
+     * DRA does not yet implement scoring, so the scheduler will
+     * select the first set of devices that satisfies all the
+     * requests in the claim. And if the requirements can
+     * be satisfied on more than one node, other scheduling features
+     * will determine which node is chosen. This means that the set of
+     * devices allocated to a claim might not be the optimal set
+     * available to the cluster. Scoring will be implemented later.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +listType=atomic
+     * +featureGate=DRAPrioritizedList
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + int getFirstAvailableCount(); + /** + *
+     * FirstAvailable contains subrequests, of which exactly one will be
+     * selected by the scheduler. It tries to
+     * satisfy them in the order in which they are listed here. So if
+     * there are two entries in the list, the scheduler will only check
+     * the second one if it determines that the first one can not be used.
+     * DRA does not yet implement scoring, so the scheduler will
+     * select the first set of devices that satisfies all the
+     * requests in the claim. And if the requirements can
+     * be satisfied on more than one node, other scheduling features
+     * will determine which node is chosen. This means that the set of
+     * devices allocated to a claim might not be the optimal set
+     * available to the cluster. Scoring will be implemented later.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +listType=atomic
+     * +featureGate=DRAPrioritizedList
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + java.util.List + getFirstAvailableOrBuilderList(); + /** + *
+     * FirstAvailable contains subrequests, of which exactly one will be
+     * selected by the scheduler. It tries to
+     * satisfy them in the order in which they are listed here. So if
+     * there are two entries in the list, the scheduler will only check
+     * the second one if it determines that the first one can not be used.
+     * DRA does not yet implement scoring, so the scheduler will
+     * select the first set of devices that satisfies all the
+     * requests in the claim. And if the requirements can
+     * be satisfied on more than one node, other scheduling features
+     * will determine which node is chosen. This means that the set of
+     * devices allocated to a claim might not be the optimal set
+     * available to the cluster. Scoring will be implemented later.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +listType=atomic
+     * +featureGate=DRAPrioritizedList
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + io.kubernetes.client.proto.V1Resource.DeviceSubRequestOrBuilder getFirstAvailableOrBuilder( + int index); + } + /** + *
+   * DeviceRequest is a request for devices required for a claim.
+   * This is typically a request for a single resource like a device, but can
+   * also ask for several identical devices. With FirstAvailable it is also
+   * possible to provide a prioritized list of requests.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceRequest} + */ + public static final class DeviceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceRequest) + DeviceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceRequest.newBuilder() to construct. + private DeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceRequest() { + name_ = ""; + firstAvailable_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + case 18: { + io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = exactly_.toBuilder(); + } + exactly_ = input.readMessage(io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(exactly_); + exactly_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + firstAvailable_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + firstAvailable_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceSubRequest.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + firstAvailable_ = java.util.Collections.unmodifiableList(firstAvailable_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceRequest.class, io.kubernetes.client.proto.V1Resource.DeviceRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Name can be used to reference this request in a pod.spec.containers[].resources.claims
+     * entry and in a constraint of the claim.
+     * References using the name in the DeviceRequest will uniquely
+     * identify a request when the Exactly field is set. When the
+     * FirstAvailable field is set, a reference to the name of the
+     * DeviceRequest will match whatever subrequest is chosen by the
+     * scheduler.
+     * Must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Name can be used to reference this request in a pod.spec.containers[].resources.claims
+     * entry and in a constraint of the claim.
+     * References using the name in the DeviceRequest will uniquely
+     * identify a request when the Exactly field is set. When the
+     * FirstAvailable field is set, a reference to the name of the
+     * DeviceRequest will match whatever subrequest is chosen by the
+     * scheduler.
+     * Must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + *
+     * Name can be used to reference this request in a pod.spec.containers[].resources.claims
+     * entry and in a constraint of the claim.
+     * References using the name in the DeviceRequest will uniquely
+     * identify a request when the Exactly field is set. When the
+     * FirstAvailable field is set, a reference to the name of the
+     * DeviceRequest will match whatever subrequest is chosen by the
+     * scheduler.
+     * Must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXACTLY_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Resource.ExactDeviceRequest exactly_; + /** + *
+     * Exactly specifies the details for a single request that must
+     * be met exactly for the request to be satisfied.
+     * One of Exactly or FirstAvailable must be set.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ExactDeviceRequest exactly = 2; + */ + public boolean hasExactly() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * Exactly specifies the details for a single request that must
+     * be met exactly for the request to be satisfied.
+     * One of Exactly or FirstAvailable must be set.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ExactDeviceRequest exactly = 2; + */ + public io.kubernetes.client.proto.V1Resource.ExactDeviceRequest getExactly() { + return exactly_ == null ? io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.getDefaultInstance() : exactly_; + } + /** + *
+     * Exactly specifies the details for a single request that must
+     * be met exactly for the request to be satisfied.
+     * One of Exactly or FirstAvailable must be set.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ExactDeviceRequest exactly = 2; + */ + public io.kubernetes.client.proto.V1Resource.ExactDeviceRequestOrBuilder getExactlyOrBuilder() { + return exactly_ == null ? io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.getDefaultInstance() : exactly_; + } + + public static final int FIRSTAVAILABLE_FIELD_NUMBER = 3; + private java.util.List firstAvailable_; + /** + *
+     * FirstAvailable contains subrequests, of which exactly one will be
+     * selected by the scheduler. It tries to
+     * satisfy them in the order in which they are listed here. So if
+     * there are two entries in the list, the scheduler will only check
+     * the second one if it determines that the first one can not be used.
+     * DRA does not yet implement scoring, so the scheduler will
+     * select the first set of devices that satisfies all the
+     * requests in the claim. And if the requirements can
+     * be satisfied on more than one node, other scheduling features
+     * will determine which node is chosen. This means that the set of
+     * devices allocated to a claim might not be the optimal set
+     * available to the cluster. Scoring will be implemented later.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +listType=atomic
+     * +featureGate=DRAPrioritizedList
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public java.util.List getFirstAvailableList() { + return firstAvailable_; + } + /** + *
+     * FirstAvailable contains subrequests, of which exactly one will be
+     * selected by the scheduler. It tries to
+     * satisfy them in the order in which they are listed here. So if
+     * there are two entries in the list, the scheduler will only check
+     * the second one if it determines that the first one can not be used.
+     * DRA does not yet implement scoring, so the scheduler will
+     * select the first set of devices that satisfies all the
+     * requests in the claim. And if the requirements can
+     * be satisfied on more than one node, other scheduling features
+     * will determine which node is chosen. This means that the set of
+     * devices allocated to a claim might not be the optimal set
+     * available to the cluster. Scoring will be implemented later.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +listType=atomic
+     * +featureGate=DRAPrioritizedList
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public java.util.List + getFirstAvailableOrBuilderList() { + return firstAvailable_; + } + /** + *
+     * FirstAvailable contains subrequests, of which exactly one will be
+     * selected by the scheduler. It tries to
+     * satisfy them in the order in which they are listed here. So if
+     * there are two entries in the list, the scheduler will only check
+     * the second one if it determines that the first one can not be used.
+     * DRA does not yet implement scoring, so the scheduler will
+     * select the first set of devices that satisfies all the
+     * requests in the claim. And if the requirements can
+     * be satisfied on more than one node, other scheduling features
+     * will determine which node is chosen. This means that the set of
+     * devices allocated to a claim might not be the optimal set
+     * available to the cluster. Scoring will be implemented later.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +listType=atomic
+     * +featureGate=DRAPrioritizedList
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public int getFirstAvailableCount() { + return firstAvailable_.size(); + } + /** + *
+     * FirstAvailable contains subrequests, of which exactly one will be
+     * selected by the scheduler. It tries to
+     * satisfy them in the order in which they are listed here. So if
+     * there are two entries in the list, the scheduler will only check
+     * the second one if it determines that the first one can not be used.
+     * DRA does not yet implement scoring, so the scheduler will
+     * select the first set of devices that satisfies all the
+     * requests in the claim. And if the requirements can
+     * be satisfied on more than one node, other scheduling features
+     * will determine which node is chosen. This means that the set of
+     * devices allocated to a claim might not be the optimal set
+     * available to the cluster. Scoring will be implemented later.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +listType=atomic
+     * +featureGate=DRAPrioritizedList
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSubRequest getFirstAvailable(int index) { + return firstAvailable_.get(index); + } + /** + *
+     * FirstAvailable contains subrequests, of which exactly one will be
+     * selected by the scheduler. It tries to
+     * satisfy them in the order in which they are listed here. So if
+     * there are two entries in the list, the scheduler will only check
+     * the second one if it determines that the first one can not be used.
+     * DRA does not yet implement scoring, so the scheduler will
+     * select the first set of devices that satisfies all the
+     * requests in the claim. And if the requirements can
+     * be satisfied on more than one node, other scheduling features
+     * will determine which node is chosen. This means that the set of
+     * devices allocated to a claim might not be the optimal set
+     * available to the cluster. Scoring will be implemented later.
+     * +optional
+     * +oneOf=deviceRequestType
+     * +listType=atomic
+     * +featureGate=DRAPrioritizedList
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSubRequestOrBuilder getFirstAvailableOrBuilder( + int index) { + return firstAvailable_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getExactly()); + } + for (int i = 0; i < firstAvailable_.size(); i++) { + output.writeMessage(3, firstAvailable_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getExactly()); + } + for (int i = 0; i < firstAvailable_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, firstAvailable_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceRequest)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceRequest other = (io.kubernetes.client.proto.V1Resource.DeviceRequest) obj; + + boolean result = true; + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && (hasExactly() == other.hasExactly()); + if (hasExactly()) { + result = result && getExactly() + .equals(other.getExactly()); + } + result = result && getFirstAvailableList() + .equals(other.getFirstAvailableList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasExactly()) { + hash = (37 * hash) + EXACTLY_FIELD_NUMBER; + hash = (53 * hash) + getExactly().hashCode(); + } + if (getFirstAvailableCount() > 0) { + hash = (37 * hash) + FIRSTAVAILABLE_FIELD_NUMBER; + hash = (53 * hash) + getFirstAvailableList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceRequest is a request for devices required for a claim.
+     * This is typically a request for a single resource like a device, but can
+     * also ask for several identical devices. With FirstAvailable it is also
+     * possible to provide a prioritized list of requests.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceRequest) + io.kubernetes.client.proto.V1Resource.DeviceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceRequest.class, io.kubernetes.client.proto.V1Resource.DeviceRequest.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getExactlyFieldBuilder(); + getFirstAvailableFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (exactlyBuilder_ == null) { + exactly_ = null; + } else { + exactlyBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (firstAvailableBuilder_ == null) { + firstAvailable_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + firstAvailableBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceRequest_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceRequest getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceRequest build() { + io.kubernetes.client.proto.V1Resource.DeviceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceRequest buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceRequest result = new io.kubernetes.client.proto.V1Resource.DeviceRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (exactlyBuilder_ == null) { + result.exactly_ = exactly_; + } else { + result.exactly_ = exactlyBuilder_.build(); + } + if (firstAvailableBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + firstAvailable_ = java.util.Collections.unmodifiableList(firstAvailable_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.firstAvailable_ = firstAvailable_; + } else { + result.firstAvailable_ = firstAvailableBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceRequest) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceRequest other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceRequest.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + if (other.hasExactly()) { + mergeExactly(other.getExactly()); + } + if (firstAvailableBuilder_ == null) { + if (!other.firstAvailable_.isEmpty()) { + if (firstAvailable_.isEmpty()) { + firstAvailable_ = other.firstAvailable_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFirstAvailableIsMutable(); + firstAvailable_.addAll(other.firstAvailable_); + } + onChanged(); + } + } else { + if (!other.firstAvailable_.isEmpty()) { + if (firstAvailableBuilder_.isEmpty()) { + firstAvailableBuilder_.dispose(); + firstAvailableBuilder_ = null; + firstAvailable_ = other.firstAvailable_; + bitField0_ = (bitField0_ & ~0x00000004); + firstAvailableBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFirstAvailableFieldBuilder() : null; + } else { + firstAvailableBuilder_.addAllMessages(other.firstAvailable_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * Name can be used to reference this request in a pod.spec.containers[].resources.claims
+       * entry and in a constraint of the claim.
+       * References using the name in the DeviceRequest will uniquely
+       * identify a request when the Exactly field is set. When the
+       * FirstAvailable field is set, a reference to the name of the
+       * DeviceRequest will match whatever subrequest is chosen by the
+       * scheduler.
+       * Must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Name can be used to reference this request in a pod.spec.containers[].resources.claims
+       * entry and in a constraint of the claim.
+       * References using the name in the DeviceRequest will uniquely
+       * identify a request when the Exactly field is set. When the
+       * FirstAvailable field is set, a reference to the name of the
+       * DeviceRequest will match whatever subrequest is chosen by the
+       * scheduler.
+       * Must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name can be used to reference this request in a pod.spec.containers[].resources.claims
+       * entry and in a constraint of the claim.
+       * References using the name in the DeviceRequest will uniquely
+       * identify a request when the Exactly field is set. When the
+       * FirstAvailable field is set, a reference to the name of the
+       * DeviceRequest will match whatever subrequest is chosen by the
+       * scheduler.
+       * Must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name can be used to reference this request in a pod.spec.containers[].resources.claims
+       * entry and in a constraint of the claim.
+       * References using the name in the DeviceRequest will uniquely
+       * identify a request when the Exactly field is set. When the
+       * FirstAvailable field is set, a reference to the name of the
+       * DeviceRequest will match whatever subrequest is chosen by the
+       * scheduler.
+       * Must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Name can be used to reference this request in a pod.spec.containers[].resources.claims
+       * entry and in a constraint of the claim.
+       * References using the name in the DeviceRequest will uniquely
+       * identify a request when the Exactly field is set. When the
+       * FirstAvailable field is set, a reference to the name of the
+       * DeviceRequest will match whatever subrequest is chosen by the
+       * scheduler.
+       * Must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name can be used to reference this request in a pod.spec.containers[].resources.claims
+       * entry and in a constraint of the claim.
+       * References using the name in the DeviceRequest will uniquely
+       * identify a request when the Exactly field is set. When the
+       * FirstAvailable field is set, a reference to the name of the
+       * DeviceRequest will match whatever subrequest is chosen by the
+       * scheduler.
+       * Must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1Resource.ExactDeviceRequest exactly_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ExactDeviceRequest, io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.Builder, io.kubernetes.client.proto.V1Resource.ExactDeviceRequestOrBuilder> exactlyBuilder_; + /** + *
+       * Exactly specifies the details for a single request that must
+       * be met exactly for the request to be satisfied.
+       * One of Exactly or FirstAvailable must be set.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ExactDeviceRequest exactly = 2; + */ + public boolean hasExactly() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * Exactly specifies the details for a single request that must
+       * be met exactly for the request to be satisfied.
+       * One of Exactly or FirstAvailable must be set.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ExactDeviceRequest exactly = 2; + */ + public io.kubernetes.client.proto.V1Resource.ExactDeviceRequest getExactly() { + if (exactlyBuilder_ == null) { + return exactly_ == null ? io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.getDefaultInstance() : exactly_; + } else { + return exactlyBuilder_.getMessage(); + } + } + /** + *
+       * Exactly specifies the details for a single request that must
+       * be met exactly for the request to be satisfied.
+       * One of Exactly or FirstAvailable must be set.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ExactDeviceRequest exactly = 2; + */ + public Builder setExactly(io.kubernetes.client.proto.V1Resource.ExactDeviceRequest value) { + if (exactlyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exactly_ = value; + onChanged(); + } else { + exactlyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Exactly specifies the details for a single request that must
+       * be met exactly for the request to be satisfied.
+       * One of Exactly or FirstAvailable must be set.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ExactDeviceRequest exactly = 2; + */ + public Builder setExactly( + io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.Builder builderForValue) { + if (exactlyBuilder_ == null) { + exactly_ = builderForValue.build(); + onChanged(); + } else { + exactlyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Exactly specifies the details for a single request that must
+       * be met exactly for the request to be satisfied.
+       * One of Exactly or FirstAvailable must be set.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ExactDeviceRequest exactly = 2; + */ + public Builder mergeExactly(io.kubernetes.client.proto.V1Resource.ExactDeviceRequest value) { + if (exactlyBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + exactly_ != null && + exactly_ != io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.getDefaultInstance()) { + exactly_ = + io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.newBuilder(exactly_).mergeFrom(value).buildPartial(); + } else { + exactly_ = value; + } + onChanged(); + } else { + exactlyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Exactly specifies the details for a single request that must
+       * be met exactly for the request to be satisfied.
+       * One of Exactly or FirstAvailable must be set.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ExactDeviceRequest exactly = 2; + */ + public Builder clearExactly() { + if (exactlyBuilder_ == null) { + exactly_ = null; + onChanged(); + } else { + exactlyBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * Exactly specifies the details for a single request that must
+       * be met exactly for the request to be satisfied.
+       * One of Exactly or FirstAvailable must be set.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ExactDeviceRequest exactly = 2; + */ + public io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.Builder getExactlyBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getExactlyFieldBuilder().getBuilder(); + } + /** + *
+       * Exactly specifies the details for a single request that must
+       * be met exactly for the request to be satisfied.
+       * One of Exactly or FirstAvailable must be set.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ExactDeviceRequest exactly = 2; + */ + public io.kubernetes.client.proto.V1Resource.ExactDeviceRequestOrBuilder getExactlyOrBuilder() { + if (exactlyBuilder_ != null) { + return exactlyBuilder_.getMessageOrBuilder(); + } else { + return exactly_ == null ? + io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.getDefaultInstance() : exactly_; + } + } + /** + *
+       * Exactly specifies the details for a single request that must
+       * be met exactly for the request to be satisfied.
+       * One of Exactly or FirstAvailable must be set.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ExactDeviceRequest exactly = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ExactDeviceRequest, io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.Builder, io.kubernetes.client.proto.V1Resource.ExactDeviceRequestOrBuilder> + getExactlyFieldBuilder() { + if (exactlyBuilder_ == null) { + exactlyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ExactDeviceRequest, io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.Builder, io.kubernetes.client.proto.V1Resource.ExactDeviceRequestOrBuilder>( + getExactly(), + getParentForChildren(), + isClean()); + exactly_ = null; + } + return exactlyBuilder_; + } + + private java.util.List firstAvailable_ = + java.util.Collections.emptyList(); + private void ensureFirstAvailableIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + firstAvailable_ = new java.util.ArrayList(firstAvailable_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceSubRequest, io.kubernetes.client.proto.V1Resource.DeviceSubRequest.Builder, io.kubernetes.client.proto.V1Resource.DeviceSubRequestOrBuilder> firstAvailableBuilder_; + + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public java.util.List getFirstAvailableList() { + if (firstAvailableBuilder_ == null) { + return java.util.Collections.unmodifiableList(firstAvailable_); + } else { + return firstAvailableBuilder_.getMessageList(); + } + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public int getFirstAvailableCount() { + if (firstAvailableBuilder_ == null) { + return firstAvailable_.size(); + } else { + return firstAvailableBuilder_.getCount(); + } + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSubRequest getFirstAvailable(int index) { + if (firstAvailableBuilder_ == null) { + return firstAvailable_.get(index); + } else { + return firstAvailableBuilder_.getMessage(index); + } + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public Builder setFirstAvailable( + int index, io.kubernetes.client.proto.V1Resource.DeviceSubRequest value) { + if (firstAvailableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirstAvailableIsMutable(); + firstAvailable_.set(index, value); + onChanged(); + } else { + firstAvailableBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public Builder setFirstAvailable( + int index, io.kubernetes.client.proto.V1Resource.DeviceSubRequest.Builder builderForValue) { + if (firstAvailableBuilder_ == null) { + ensureFirstAvailableIsMutable(); + firstAvailable_.set(index, builderForValue.build()); + onChanged(); + } else { + firstAvailableBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public Builder addFirstAvailable(io.kubernetes.client.proto.V1Resource.DeviceSubRequest value) { + if (firstAvailableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirstAvailableIsMutable(); + firstAvailable_.add(value); + onChanged(); + } else { + firstAvailableBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public Builder addFirstAvailable( + int index, io.kubernetes.client.proto.V1Resource.DeviceSubRequest value) { + if (firstAvailableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirstAvailableIsMutable(); + firstAvailable_.add(index, value); + onChanged(); + } else { + firstAvailableBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public Builder addFirstAvailable( + io.kubernetes.client.proto.V1Resource.DeviceSubRequest.Builder builderForValue) { + if (firstAvailableBuilder_ == null) { + ensureFirstAvailableIsMutable(); + firstAvailable_.add(builderForValue.build()); + onChanged(); + } else { + firstAvailableBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public Builder addFirstAvailable( + int index, io.kubernetes.client.proto.V1Resource.DeviceSubRequest.Builder builderForValue) { + if (firstAvailableBuilder_ == null) { + ensureFirstAvailableIsMutable(); + firstAvailable_.add(index, builderForValue.build()); + onChanged(); + } else { + firstAvailableBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public Builder addAllFirstAvailable( + java.lang.Iterable values) { + if (firstAvailableBuilder_ == null) { + ensureFirstAvailableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, firstAvailable_); + onChanged(); + } else { + firstAvailableBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public Builder clearFirstAvailable() { + if (firstAvailableBuilder_ == null) { + firstAvailable_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + firstAvailableBuilder_.clear(); + } + return this; + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public Builder removeFirstAvailable(int index) { + if (firstAvailableBuilder_ == null) { + ensureFirstAvailableIsMutable(); + firstAvailable_.remove(index); + onChanged(); + } else { + firstAvailableBuilder_.remove(index); + } + return this; + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSubRequest.Builder getFirstAvailableBuilder( + int index) { + return getFirstAvailableFieldBuilder().getBuilder(index); + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSubRequestOrBuilder getFirstAvailableOrBuilder( + int index) { + if (firstAvailableBuilder_ == null) { + return firstAvailable_.get(index); } else { + return firstAvailableBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public java.util.List + getFirstAvailableOrBuilderList() { + if (firstAvailableBuilder_ != null) { + return firstAvailableBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(firstAvailable_); + } + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSubRequest.Builder addFirstAvailableBuilder() { + return getFirstAvailableFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceSubRequest.getDefaultInstance()); + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSubRequest.Builder addFirstAvailableBuilder( + int index) { + return getFirstAvailableFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceSubRequest.getDefaultInstance()); + } + /** + *
+       * FirstAvailable contains subrequests, of which exactly one will be
+       * selected by the scheduler. It tries to
+       * satisfy them in the order in which they are listed here. So if
+       * there are two entries in the list, the scheduler will only check
+       * the second one if it determines that the first one can not be used.
+       * DRA does not yet implement scoring, so the scheduler will
+       * select the first set of devices that satisfies all the
+       * requests in the claim. And if the requirements can
+       * be satisfied on more than one node, other scheduling features
+       * will determine which node is chosen. This means that the set of
+       * devices allocated to a claim might not be the optimal set
+       * available to the cluster. Scoring will be implemented later.
+       * +optional
+       * +oneOf=deviceRequestType
+       * +listType=atomic
+       * +featureGate=DRAPrioritizedList
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSubRequest firstAvailable = 3; + */ + public java.util.List + getFirstAvailableBuilderList() { + return getFirstAvailableFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceSubRequest, io.kubernetes.client.proto.V1Resource.DeviceSubRequest.Builder, io.kubernetes.client.proto.V1Resource.DeviceSubRequestOrBuilder> + getFirstAvailableFieldBuilder() { + if (firstAvailableBuilder_ == null) { + firstAvailableBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceSubRequest, io.kubernetes.client.proto.V1Resource.DeviceSubRequest.Builder, io.kubernetes.client.proto.V1Resource.DeviceSubRequestOrBuilder>( + firstAvailable_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + firstAvailable_ = null; + } + return firstAvailableBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceRequest) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceRequest) + private static final io.kubernetes.client.proto.V1Resource.DeviceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceRequest(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceRequestAllocationResultOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceRequestAllocationResult) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Request is the name of the request in the claim which caused this
+     * device to be allocated. If it references a subrequest in the
+     * firstAvailable list on a DeviceRequest, this field must
+     * include both the name of the main request and the subrequest
+     * using the format <main request>/<subrequest>.
+     * Multiple devices may have been allocated per request.
+     * +required
+     * 
+ * + * optional string request = 1; + */ + boolean hasRequest(); + /** + *
+     * Request is the name of the request in the claim which caused this
+     * device to be allocated. If it references a subrequest in the
+     * firstAvailable list on a DeviceRequest, this field must
+     * include both the name of the main request and the subrequest
+     * using the format <main request>/<subrequest>.
+     * Multiple devices may have been allocated per request.
+     * +required
+     * 
+ * + * optional string request = 1; + */ + java.lang.String getRequest(); + /** + *
+     * Request is the name of the request in the claim which caused this
+     * device to be allocated. If it references a subrequest in the
+     * firstAvailable list on a DeviceRequest, this field must
+     * include both the name of the main request and the subrequest
+     * using the format <main request>/<subrequest>.
+     * Multiple devices may have been allocated per request.
+     * +required
+     * 
+ * + * optional string request = 1; + */ + com.google.protobuf.ByteString + getRequestBytes(); + + /** + *
+     * Driver specifies the name of the DRA driver whose kubelet
+     * plugin should be invoked to process the allocation once the claim is
+     * needed on a node.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+     * 
+ * + * optional string driver = 2; + */ + boolean hasDriver(); + /** + *
+     * Driver specifies the name of the DRA driver whose kubelet
+     * plugin should be invoked to process the allocation once the claim is
+     * needed on a node.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+     * 
+ * + * optional string driver = 2; + */ + java.lang.String getDriver(); + /** + *
+     * Driver specifies the name of the DRA driver whose kubelet
+     * plugin should be invoked to process the allocation once the claim is
+     * needed on a node.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+     * 
+ * + * optional string driver = 2; + */ + com.google.protobuf.ByteString + getDriverBytes(); + + /** + *
+     * This name together with the driver name and the device name field
+     * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+     * Must not be longer than 253 characters and may contain one or more
+     * DNS sub-domains separated by slashes.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-pool-name
+     * 
+ * + * optional string pool = 3; + */ + boolean hasPool(); + /** + *
+     * This name together with the driver name and the device name field
+     * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+     * Must not be longer than 253 characters and may contain one or more
+     * DNS sub-domains separated by slashes.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-pool-name
+     * 
+ * + * optional string pool = 3; + */ + java.lang.String getPool(); + /** + *
+     * This name together with the driver name and the device name field
+     * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+     * Must not be longer than 253 characters and may contain one or more
+     * DNS sub-domains separated by slashes.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-pool-name
+     * 
+ * + * optional string pool = 3; + */ + com.google.protobuf.ByteString + getPoolBytes(); + + /** + *
+     * Device references one device instance via its name in the driver's
+     * resource pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string device = 4; + */ + boolean hasDevice(); + /** + *
+     * Device references one device instance via its name in the driver's
+     * resource pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string device = 4; + */ + java.lang.String getDevice(); + /** + *
+     * Device references one device instance via its name in the driver's
+     * resource pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string device = 4; + */ + com.google.protobuf.ByteString + getDeviceBytes(); + + /** + *
+     * AdminAccess indicates that this device was allocated for
+     * administrative access. See the corresponding request field
+     * for a definition of mode.
+     * Admin access is disabled if this field is unset or
+     * set to false, otherwise it is enabled.
+     * +optional
+     * +featureGate=DRAAdminAccess
+     * 
+ * + * optional bool adminAccess = 5; + */ + boolean hasAdminAccess(); + /** + *
+     * AdminAccess indicates that this device was allocated for
+     * administrative access. See the corresponding request field
+     * for a definition of mode.
+     * Admin access is disabled if this field is unset or
+     * set to false, otherwise it is enabled.
+     * +optional
+     * +featureGate=DRAAdminAccess
+     * 
+ * + * optional bool adminAccess = 5; + */ + boolean getAdminAccess(); + + /** + *
+     * A copy of all tolerations specified in the request at the time
+     * when the device got allocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + java.util.List + getTolerationsList(); + /** + *
+     * A copy of all tolerations specified in the request at the time
+     * when the device got allocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + io.kubernetes.client.proto.V1Resource.DeviceToleration getTolerations(int index); + /** + *
+     * A copy of all tolerations specified in the request at the time
+     * when the device got allocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + int getTolerationsCount(); + /** + *
+     * A copy of all tolerations specified in the request at the time
+     * when the device got allocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + java.util.List + getTolerationsOrBuilderList(); + /** + *
+     * A copy of all tolerations specified in the request at the time
+     * when the device got allocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder getTolerationsOrBuilder( + int index); + + /** + *
+     * BindingConditions contains a copy of the BindingConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 7; + */ + java.util.List + getBindingConditionsList(); + /** + *
+     * BindingConditions contains a copy of the BindingConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 7; + */ + int getBindingConditionsCount(); + /** + *
+     * BindingConditions contains a copy of the BindingConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 7; + */ + java.lang.String getBindingConditions(int index); + /** + *
+     * BindingConditions contains a copy of the BindingConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 7; + */ + com.google.protobuf.ByteString + getBindingConditionsBytes(int index); + + /** + *
+     * BindingFailureConditions contains a copy of the BindingFailureConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 8; + */ + java.util.List + getBindingFailureConditionsList(); + /** + *
+     * BindingFailureConditions contains a copy of the BindingFailureConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 8; + */ + int getBindingFailureConditionsCount(); + /** + *
+     * BindingFailureConditions contains a copy of the BindingFailureConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 8; + */ + java.lang.String getBindingFailureConditions(int index); + /** + *
+     * BindingFailureConditions contains a copy of the BindingFailureConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 8; + */ + com.google.protobuf.ByteString + getBindingFailureConditionsBytes(int index); + + /** + *
+     * ShareID uniquely identifies an individual allocation share of the device,
+     * used when the device supports multiple simultaneous allocations.
+     * It serves as an additional map key to differentiate concurrent shares
+     * of the same device.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+     * 
+ * + * optional string shareID = 9; + */ + boolean hasShareID(); + /** + *
+     * ShareID uniquely identifies an individual allocation share of the device,
+     * used when the device supports multiple simultaneous allocations.
+     * It serves as an additional map key to differentiate concurrent shares
+     * of the same device.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+     * 
+ * + * optional string shareID = 9; + */ + java.lang.String getShareID(); + /** + *
+     * ShareID uniquely identifies an individual allocation share of the device,
+     * used when the device supports multiple simultaneous allocations.
+     * It serves as an additional map key to differentiate concurrent shares
+     * of the same device.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+     * 
+ * + * optional string shareID = 9; + */ + com.google.protobuf.ByteString + getShareIDBytes(); + + /** + *
+     * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+     * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+     * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+     * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+     * This field is populated only for devices that allow multiple allocations.
+     * All capacity entries are included, even if the consumed amount is zero.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + int getConsumedCapacityCount(); + /** + *
+     * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+     * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+     * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+     * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+     * This field is populated only for devices that allow multiple allocations.
+     * All capacity entries are included, even if the consumed amount is zero.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + boolean containsConsumedCapacity( + java.lang.String key); + /** + * Use {@link #getConsumedCapacityMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getConsumedCapacity(); + /** + *
+     * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+     * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+     * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+     * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+     * This field is populated only for devices that allow multiple allocations.
+     * All capacity entries are included, even if the consumed amount is zero.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + java.util.Map + getConsumedCapacityMap(); + /** + *
+     * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+     * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+     * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+     * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+     * This field is populated only for devices that allow multiple allocations.
+     * All capacity entries are included, even if the consumed amount is zero.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + + io.kubernetes.client.proto.Resource.Quantity getConsumedCapacityOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue); + /** + *
+     * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+     * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+     * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+     * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+     * This field is populated only for devices that allow multiple allocations.
+     * All capacity entries are included, even if the consumed amount is zero.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + + io.kubernetes.client.proto.Resource.Quantity getConsumedCapacityOrThrow( + java.lang.String key); + } + /** + *
+   * DeviceRequestAllocationResult contains the allocation result for one request.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceRequestAllocationResult} + */ + public static final class DeviceRequestAllocationResult extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceRequestAllocationResult) + DeviceRequestAllocationResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceRequestAllocationResult.newBuilder() to construct. + private DeviceRequestAllocationResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceRequestAllocationResult() { + request_ = ""; + driver_ = ""; + pool_ = ""; + device_ = ""; + adminAccess_ = false; + tolerations_ = java.util.Collections.emptyList(); + bindingConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bindingFailureConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + shareID_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceRequestAllocationResult( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + request_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + driver_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + pool_ = bs; + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + device_ = bs; + break; + } + case 40: { + bitField0_ |= 0x00000010; + adminAccess_ = input.readBool(); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + tolerations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + tolerations_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceToleration.PARSER, extensionRegistry)); + break; + } + case 58: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + bindingConditions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000040; + } + bindingConditions_.add(bs); + break; + } + case 66: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + bindingFailureConditions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000080; + } + bindingFailureConditions_.add(bs); + break; + } + case 74: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000020; + shareID_ = bs; + break; + } + case 82: { + if (!((mutable_bitField0_ & 0x00000200) == 0x00000200)) { + consumedCapacity_ = com.google.protobuf.MapField.newMapField( + ConsumedCapacityDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000200; + } + com.google.protobuf.MapEntry + consumedCapacity__ = input.readMessage( + ConsumedCapacityDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + consumedCapacity_.getMutableMap().put( + consumedCapacity__.getKey(), consumedCapacity__.getValue()); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + tolerations_ = java.util.Collections.unmodifiableList(tolerations_); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + bindingConditions_ = bindingConditions_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + bindingFailureConditions_ = bindingFailureConditions_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 10: + return internalGetConsumedCapacity(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.class, io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.Builder.class); + } + + private int bitField0_; + public static final int REQUEST_FIELD_NUMBER = 1; + private volatile java.lang.Object request_; + /** + *
+     * Request is the name of the request in the claim which caused this
+     * device to be allocated. If it references a subrequest in the
+     * firstAvailable list on a DeviceRequest, this field must
+     * include both the name of the main request and the subrequest
+     * using the format <main request>/<subrequest>.
+     * Multiple devices may have been allocated per request.
+     * +required
+     * 
+ * + * optional string request = 1; + */ + public boolean hasRequest() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Request is the name of the request in the claim which caused this
+     * device to be allocated. If it references a subrequest in the
+     * firstAvailable list on a DeviceRequest, this field must
+     * include both the name of the main request and the subrequest
+     * using the format <main request>/<subrequest>.
+     * Multiple devices may have been allocated per request.
+     * +required
+     * 
+ * + * optional string request = 1; + */ + public java.lang.String getRequest() { + java.lang.Object ref = request_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + request_ = s; + } + return s; + } + } + /** + *
+     * Request is the name of the request in the claim which caused this
+     * device to be allocated. If it references a subrequest in the
+     * firstAvailable list on a DeviceRequest, this field must
+     * include both the name of the main request and the subrequest
+     * using the format <main request>/<subrequest>.
+     * Multiple devices may have been allocated per request.
+     * +required
+     * 
+ * + * optional string request = 1; + */ + public com.google.protobuf.ByteString + getRequestBytes() { + java.lang.Object ref = request_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + request_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DRIVER_FIELD_NUMBER = 2; + private volatile java.lang.Object driver_; + /** + *
+     * Driver specifies the name of the DRA driver whose kubelet
+     * plugin should be invoked to process the allocation once the claim is
+     * needed on a node.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+     * 
+ * + * optional string driver = 2; + */ + public boolean hasDriver() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * Driver specifies the name of the DRA driver whose kubelet
+     * plugin should be invoked to process the allocation once the claim is
+     * needed on a node.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+     * 
+ * + * optional string driver = 2; + */ + public java.lang.String getDriver() { + java.lang.Object ref = driver_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + driver_ = s; + } + return s; + } + } + /** + *
+     * Driver specifies the name of the DRA driver whose kubelet
+     * plugin should be invoked to process the allocation once the claim is
+     * needed on a node.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+     * 
+ * + * optional string driver = 2; + */ + public com.google.protobuf.ByteString + getDriverBytes() { + java.lang.Object ref = driver_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + driver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POOL_FIELD_NUMBER = 3; + private volatile java.lang.Object pool_; + /** + *
+     * This name together with the driver name and the device name field
+     * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+     * Must not be longer than 253 characters and may contain one or more
+     * DNS sub-domains separated by slashes.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-pool-name
+     * 
+ * + * optional string pool = 3; + */ + public boolean hasPool() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * This name together with the driver name and the device name field
+     * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+     * Must not be longer than 253 characters and may contain one or more
+     * DNS sub-domains separated by slashes.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-pool-name
+     * 
+ * + * optional string pool = 3; + */ + public java.lang.String getPool() { + java.lang.Object ref = pool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + pool_ = s; + } + return s; + } + } + /** + *
+     * This name together with the driver name and the device name field
+     * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+     * Must not be longer than 253 characters and may contain one or more
+     * DNS sub-domains separated by slashes.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-pool-name
+     * 
+ * + * optional string pool = 3; + */ + public com.google.protobuf.ByteString + getPoolBytes() { + java.lang.Object ref = pool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVICE_FIELD_NUMBER = 4; + private volatile java.lang.Object device_; + /** + *
+     * Device references one device instance via its name in the driver's
+     * resource pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string device = 4; + */ + public boolean hasDevice() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * Device references one device instance via its name in the driver's
+     * resource pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string device = 4; + */ + public java.lang.String getDevice() { + java.lang.Object ref = device_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + device_ = s; + } + return s; + } + } + /** + *
+     * Device references one device instance via its name in the driver's
+     * resource pool. It must be a DNS label.
+     * +required
+     * 
+ * + * optional string device = 4; + */ + public com.google.protobuf.ByteString + getDeviceBytes() { + java.lang.Object ref = device_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + device_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADMINACCESS_FIELD_NUMBER = 5; + private boolean adminAccess_; + /** + *
+     * AdminAccess indicates that this device was allocated for
+     * administrative access. See the corresponding request field
+     * for a definition of mode.
+     * Admin access is disabled if this field is unset or
+     * set to false, otherwise it is enabled.
+     * +optional
+     * +featureGate=DRAAdminAccess
+     * 
+ * + * optional bool adminAccess = 5; + */ + public boolean hasAdminAccess() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+     * AdminAccess indicates that this device was allocated for
+     * administrative access. See the corresponding request field
+     * for a definition of mode.
+     * Admin access is disabled if this field is unset or
+     * set to false, otherwise it is enabled.
+     * +optional
+     * +featureGate=DRAAdminAccess
+     * 
+ * + * optional bool adminAccess = 5; + */ + public boolean getAdminAccess() { + return adminAccess_; + } + + public static final int TOLERATIONS_FIELD_NUMBER = 6; + private java.util.List tolerations_; + /** + *
+     * A copy of all tolerations specified in the request at the time
+     * when the device got allocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public java.util.List getTolerationsList() { + return tolerations_; + } + /** + *
+     * A copy of all tolerations specified in the request at the time
+     * when the device got allocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public java.util.List + getTolerationsOrBuilderList() { + return tolerations_; + } + /** + *
+     * A copy of all tolerations specified in the request at the time
+     * when the device got allocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public int getTolerationsCount() { + return tolerations_.size(); + } + /** + *
+     * A copy of all tolerations specified in the request at the time
+     * when the device got allocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceToleration getTolerations(int index) { + return tolerations_.get(index); + } + /** + *
+     * A copy of all tolerations specified in the request at the time
+     * when the device got allocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder getTolerationsOrBuilder( + int index) { + return tolerations_.get(index); + } + + public static final int BINDINGCONDITIONS_FIELD_NUMBER = 7; + private com.google.protobuf.LazyStringList bindingConditions_; + /** + *
+     * BindingConditions contains a copy of the BindingConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 7; + */ + public com.google.protobuf.ProtocolStringList + getBindingConditionsList() { + return bindingConditions_; + } + /** + *
+     * BindingConditions contains a copy of the BindingConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 7; + */ + public int getBindingConditionsCount() { + return bindingConditions_.size(); + } + /** + *
+     * BindingConditions contains a copy of the BindingConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 7; + */ + public java.lang.String getBindingConditions(int index) { + return bindingConditions_.get(index); + } + /** + *
+     * BindingConditions contains a copy of the BindingConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingConditions = 7; + */ + public com.google.protobuf.ByteString + getBindingConditionsBytes(int index) { + return bindingConditions_.getByteString(index); + } + + public static final int BINDINGFAILURECONDITIONS_FIELD_NUMBER = 8; + private com.google.protobuf.LazyStringList bindingFailureConditions_; + /** + *
+     * BindingFailureConditions contains a copy of the BindingFailureConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 8; + */ + public com.google.protobuf.ProtocolStringList + getBindingFailureConditionsList() { + return bindingFailureConditions_; + } + /** + *
+     * BindingFailureConditions contains a copy of the BindingFailureConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 8; + */ + public int getBindingFailureConditionsCount() { + return bindingFailureConditions_.size(); + } + /** + *
+     * BindingFailureConditions contains a copy of the BindingFailureConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 8; + */ + public java.lang.String getBindingFailureConditions(int index) { + return bindingFailureConditions_.get(index); + } + /** + *
+     * BindingFailureConditions contains a copy of the BindingFailureConditions
+     * from the corresponding ResourceSlice at the time of allocation.
+     * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+     * feature gates.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+     * 
+ * + * repeated string bindingFailureConditions = 8; + */ + public com.google.protobuf.ByteString + getBindingFailureConditionsBytes(int index) { + return bindingFailureConditions_.getByteString(index); + } + + public static final int SHAREID_FIELD_NUMBER = 9; + private volatile java.lang.Object shareID_; + /** + *
+     * ShareID uniquely identifies an individual allocation share of the device,
+     * used when the device supports multiple simultaneous allocations.
+     * It serves as an additional map key to differentiate concurrent shares
+     * of the same device.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+     * 
+ * + * optional string shareID = 9; + */ + public boolean hasShareID() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+     * ShareID uniquely identifies an individual allocation share of the device,
+     * used when the device supports multiple simultaneous allocations.
+     * It serves as an additional map key to differentiate concurrent shares
+     * of the same device.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+     * 
+ * + * optional string shareID = 9; + */ + public java.lang.String getShareID() { + java.lang.Object ref = shareID_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + shareID_ = s; + } + return s; + } + } + /** + *
+     * ShareID uniquely identifies an individual allocation share of the device,
+     * used when the device supports multiple simultaneous allocations.
+     * It serves as an additional map key to differentiate concurrent shares
+     * of the same device.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+     * 
+ * + * optional string shareID = 9; + */ + public com.google.protobuf.ByteString + getShareIDBytes() { + java.lang.Object ref = shareID_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shareID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONSUMEDCAPACITY_FIELD_NUMBER = 10; + private static final class ConsumedCapacityDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, io.kubernetes.client.proto.Resource.Quantity> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_ConsumedCapacityEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()); + } + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.Resource.Quantity> consumedCapacity_; + private com.google.protobuf.MapField + internalGetConsumedCapacity() { + if (consumedCapacity_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConsumedCapacityDefaultEntryHolder.defaultEntry); + } + return consumedCapacity_; + } + + public int getConsumedCapacityCount() { + return internalGetConsumedCapacity().getMap().size(); + } + /** + *
+     * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+     * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+     * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+     * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+     * This field is populated only for devices that allow multiple allocations.
+     * All capacity entries are included, even if the consumed amount is zero.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + + public boolean containsConsumedCapacity( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetConsumedCapacity().getMap().containsKey(key); + } + /** + * Use {@link #getConsumedCapacityMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getConsumedCapacity() { + return getConsumedCapacityMap(); + } + /** + *
+     * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+     * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+     * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+     * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+     * This field is populated only for devices that allow multiple allocations.
+     * All capacity entries are included, even if the consumed amount is zero.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + + public java.util.Map getConsumedCapacityMap() { + return internalGetConsumedCapacity().getMap(); + } + /** + *
+     * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+     * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+     * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+     * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+     * This field is populated only for devices that allow multiple allocations.
+     * All capacity entries are included, even if the consumed amount is zero.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + + public io.kubernetes.client.proto.Resource.Quantity getConsumedCapacityOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetConsumedCapacity().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+     * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+     * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+     * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+     * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+     * This field is populated only for devices that allow multiple allocations.
+     * All capacity entries are included, even if the consumed amount is zero.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + + public io.kubernetes.client.proto.Resource.Quantity getConsumedCapacityOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetConsumedCapacity().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, request_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, driver_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pool_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, device_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBool(5, adminAccess_); + } + for (int i = 0; i < tolerations_.size(); i++) { + output.writeMessage(6, tolerations_.get(i)); + } + for (int i = 0; i < bindingConditions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, bindingConditions_.getRaw(i)); + } + for (int i = 0; i < bindingFailureConditions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, bindingFailureConditions_.getRaw(i)); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, shareID_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetConsumedCapacity(), + ConsumedCapacityDefaultEntryHolder.defaultEntry, + 10); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, request_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, driver_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pool_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, device_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, adminAccess_); + } + for (int i = 0; i < tolerations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, tolerations_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < bindingConditions_.size(); i++) { + dataSize += computeStringSizeNoTag(bindingConditions_.getRaw(i)); + } + size += dataSize; + size += 1 * getBindingConditionsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < bindingFailureConditions_.size(); i++) { + dataSize += computeStringSizeNoTag(bindingFailureConditions_.getRaw(i)); + } + size += dataSize; + size += 1 * getBindingFailureConditionsList().size(); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, shareID_); + } + for (java.util.Map.Entry entry + : internalGetConsumedCapacity().getMap().entrySet()) { + com.google.protobuf.MapEntry + consumedCapacity__ = ConsumedCapacityDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, consumedCapacity__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult other = (io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult) obj; + + boolean result = true; + result = result && (hasRequest() == other.hasRequest()); + if (hasRequest()) { + result = result && getRequest() + .equals(other.getRequest()); + } + result = result && (hasDriver() == other.hasDriver()); + if (hasDriver()) { + result = result && getDriver() + .equals(other.getDriver()); + } + result = result && (hasPool() == other.hasPool()); + if (hasPool()) { + result = result && getPool() + .equals(other.getPool()); + } + result = result && (hasDevice() == other.hasDevice()); + if (hasDevice()) { + result = result && getDevice() + .equals(other.getDevice()); + } + result = result && (hasAdminAccess() == other.hasAdminAccess()); + if (hasAdminAccess()) { + result = result && (getAdminAccess() + == other.getAdminAccess()); + } + result = result && getTolerationsList() + .equals(other.getTolerationsList()); + result = result && getBindingConditionsList() + .equals(other.getBindingConditionsList()); + result = result && getBindingFailureConditionsList() + .equals(other.getBindingFailureConditionsList()); + result = result && (hasShareID() == other.hasShareID()); + if (hasShareID()) { + result = result && getShareID() + .equals(other.getShareID()); + } + result = result && internalGetConsumedCapacity().equals( + other.internalGetConsumedCapacity()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + if (hasDriver()) { + hash = (37 * hash) + DRIVER_FIELD_NUMBER; + hash = (53 * hash) + getDriver().hashCode(); + } + if (hasPool()) { + hash = (37 * hash) + POOL_FIELD_NUMBER; + hash = (53 * hash) + getPool().hashCode(); + } + if (hasDevice()) { + hash = (37 * hash) + DEVICE_FIELD_NUMBER; + hash = (53 * hash) + getDevice().hashCode(); + } + if (hasAdminAccess()) { + hash = (37 * hash) + ADMINACCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAdminAccess()); + } + if (getTolerationsCount() > 0) { + hash = (37 * hash) + TOLERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getTolerationsList().hashCode(); + } + if (getBindingConditionsCount() > 0) { + hash = (37 * hash) + BINDINGCONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getBindingConditionsList().hashCode(); + } + if (getBindingFailureConditionsCount() > 0) { + hash = (37 * hash) + BINDINGFAILURECONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getBindingFailureConditionsList().hashCode(); + } + if (hasShareID()) { + hash = (37 * hash) + SHAREID_FIELD_NUMBER; + hash = (53 * hash) + getShareID().hashCode(); + } + if (!internalGetConsumedCapacity().getMap().isEmpty()) { + hash = (37 * hash) + CONSUMEDCAPACITY_FIELD_NUMBER; + hash = (53 * hash) + internalGetConsumedCapacity().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceRequestAllocationResult contains the allocation result for one request.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceRequestAllocationResult} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceRequestAllocationResult) + io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 10: + return internalGetConsumedCapacity(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 10: + return internalGetMutableConsumedCapacity(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.class, io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTolerationsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + request_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + driver_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + pool_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + device_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + adminAccess_ = false; + bitField0_ = (bitField0_ & ~0x00000010); + if (tolerationsBuilder_ == null) { + tolerations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + tolerationsBuilder_.clear(); + } + bindingConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + bindingFailureConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); + shareID_ = ""; + bitField0_ = (bitField0_ & ~0x00000100); + internalGetMutableConsumedCapacity().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult build() { + io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult result = new io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.request_ = request_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.driver_ = driver_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.pool_ = pool_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.device_ = device_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.adminAccess_ = adminAccess_; + if (tolerationsBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + tolerations_ = java.util.Collections.unmodifiableList(tolerations_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.tolerations_ = tolerations_; + } else { + result.tolerations_ = tolerationsBuilder_.build(); + } + if (((bitField0_ & 0x00000040) == 0x00000040)) { + bindingConditions_ = bindingConditions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.bindingConditions_ = bindingConditions_; + if (((bitField0_ & 0x00000080) == 0x00000080)) { + bindingFailureConditions_ = bindingFailureConditions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.bindingFailureConditions_ = bindingFailureConditions_; + if (((from_bitField0_ & 0x00000100) == 0x00000100)) { + to_bitField0_ |= 0x00000020; + } + result.shareID_ = shareID_; + result.consumedCapacity_ = internalGetConsumedCapacity(); + result.consumedCapacity_.makeImmutable(); + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult.getDefaultInstance()) return this; + if (other.hasRequest()) { + bitField0_ |= 0x00000001; + request_ = other.request_; + onChanged(); + } + if (other.hasDriver()) { + bitField0_ |= 0x00000002; + driver_ = other.driver_; + onChanged(); + } + if (other.hasPool()) { + bitField0_ |= 0x00000004; + pool_ = other.pool_; + onChanged(); + } + if (other.hasDevice()) { + bitField0_ |= 0x00000008; + device_ = other.device_; + onChanged(); + } + if (other.hasAdminAccess()) { + setAdminAccess(other.getAdminAccess()); + } + if (tolerationsBuilder_ == null) { + if (!other.tolerations_.isEmpty()) { + if (tolerations_.isEmpty()) { + tolerations_ = other.tolerations_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTolerationsIsMutable(); + tolerations_.addAll(other.tolerations_); + } + onChanged(); + } + } else { + if (!other.tolerations_.isEmpty()) { + if (tolerationsBuilder_.isEmpty()) { + tolerationsBuilder_.dispose(); + tolerationsBuilder_ = null; + tolerations_ = other.tolerations_; + bitField0_ = (bitField0_ & ~0x00000020); + tolerationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTolerationsFieldBuilder() : null; + } else { + tolerationsBuilder_.addAllMessages(other.tolerations_); + } + } + } + if (!other.bindingConditions_.isEmpty()) { + if (bindingConditions_.isEmpty()) { + bindingConditions_ = other.bindingConditions_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureBindingConditionsIsMutable(); + bindingConditions_.addAll(other.bindingConditions_); + } + onChanged(); + } + if (!other.bindingFailureConditions_.isEmpty()) { + if (bindingFailureConditions_.isEmpty()) { + bindingFailureConditions_ = other.bindingFailureConditions_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureBindingFailureConditionsIsMutable(); + bindingFailureConditions_.addAll(other.bindingFailureConditions_); + } + onChanged(); + } + if (other.hasShareID()) { + bitField0_ |= 0x00000100; + shareID_ = other.shareID_; + onChanged(); + } + internalGetMutableConsumedCapacity().mergeFrom( + other.internalGetConsumedCapacity()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object request_ = ""; + /** + *
+       * Request is the name of the request in the claim which caused this
+       * device to be allocated. If it references a subrequest in the
+       * firstAvailable list on a DeviceRequest, this field must
+       * include both the name of the main request and the subrequest
+       * using the format <main request>/<subrequest>.
+       * Multiple devices may have been allocated per request.
+       * +required
+       * 
+ * + * optional string request = 1; + */ + public boolean hasRequest() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Request is the name of the request in the claim which caused this
+       * device to be allocated. If it references a subrequest in the
+       * firstAvailable list on a DeviceRequest, this field must
+       * include both the name of the main request and the subrequest
+       * using the format <main request>/<subrequest>.
+       * Multiple devices may have been allocated per request.
+       * +required
+       * 
+ * + * optional string request = 1; + */ + public java.lang.String getRequest() { + java.lang.Object ref = request_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + request_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Request is the name of the request in the claim which caused this
+       * device to be allocated. If it references a subrequest in the
+       * firstAvailable list on a DeviceRequest, this field must
+       * include both the name of the main request and the subrequest
+       * using the format <main request>/<subrequest>.
+       * Multiple devices may have been allocated per request.
+       * +required
+       * 
+ * + * optional string request = 1; + */ + public com.google.protobuf.ByteString + getRequestBytes() { + java.lang.Object ref = request_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + request_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Request is the name of the request in the claim which caused this
+       * device to be allocated. If it references a subrequest in the
+       * firstAvailable list on a DeviceRequest, this field must
+       * include both the name of the main request and the subrequest
+       * using the format <main request>/<subrequest>.
+       * Multiple devices may have been allocated per request.
+       * +required
+       * 
+ * + * optional string request = 1; + */ + public Builder setRequest( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + request_ = value; + onChanged(); + return this; + } + /** + *
+       * Request is the name of the request in the claim which caused this
+       * device to be allocated. If it references a subrequest in the
+       * firstAvailable list on a DeviceRequest, this field must
+       * include both the name of the main request and the subrequest
+       * using the format <main request>/<subrequest>.
+       * Multiple devices may have been allocated per request.
+       * +required
+       * 
+ * + * optional string request = 1; + */ + public Builder clearRequest() { + bitField0_ = (bitField0_ & ~0x00000001); + request_ = getDefaultInstance().getRequest(); + onChanged(); + return this; + } + /** + *
+       * Request is the name of the request in the claim which caused this
+       * device to be allocated. If it references a subrequest in the
+       * firstAvailable list on a DeviceRequest, this field must
+       * include both the name of the main request and the subrequest
+       * using the format <main request>/<subrequest>.
+       * Multiple devices may have been allocated per request.
+       * +required
+       * 
+ * + * optional string request = 1; + */ + public Builder setRequestBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + request_ = value; + onChanged(); + return this; + } + + private java.lang.Object driver_ = ""; + /** + *
+       * Driver specifies the name of the DRA driver whose kubelet
+       * plugin should be invoked to process the allocation once the claim is
+       * needed on a node.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+       * 
+ * + * optional string driver = 2; + */ + public boolean hasDriver() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * Driver specifies the name of the DRA driver whose kubelet
+       * plugin should be invoked to process the allocation once the claim is
+       * needed on a node.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+       * 
+ * + * optional string driver = 2; + */ + public java.lang.String getDriver() { + java.lang.Object ref = driver_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + driver_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Driver specifies the name of the DRA driver whose kubelet
+       * plugin should be invoked to process the allocation once the claim is
+       * needed on a node.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+       * 
+ * + * optional string driver = 2; + */ + public com.google.protobuf.ByteString + getDriverBytes() { + java.lang.Object ref = driver_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + driver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Driver specifies the name of the DRA driver whose kubelet
+       * plugin should be invoked to process the allocation once the claim is
+       * needed on a node.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+       * 
+ * + * optional string driver = 2; + */ + public Builder setDriver( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + driver_ = value; + onChanged(); + return this; + } + /** + *
+       * Driver specifies the name of the DRA driver whose kubelet
+       * plugin should be invoked to process the allocation once the claim is
+       * needed on a node.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+       * 
+ * + * optional string driver = 2; + */ + public Builder clearDriver() { + bitField0_ = (bitField0_ & ~0x00000002); + driver_ = getDefaultInstance().getDriver(); + onChanged(); + return this; + } + /** + *
+       * Driver specifies the name of the DRA driver whose kubelet
+       * plugin should be invoked to process the allocation once the claim is
+       * needed on a node.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+       * 
+ * + * optional string driver = 2; + */ + public Builder setDriverBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + driver_ = value; + onChanged(); + return this; + } + + private java.lang.Object pool_ = ""; + /** + *
+       * This name together with the driver name and the device name field
+       * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+       * Must not be longer than 253 characters and may contain one or more
+       * DNS sub-domains separated by slashes.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-pool-name
+       * 
+ * + * optional string pool = 3; + */ + public boolean hasPool() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * This name together with the driver name and the device name field
+       * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+       * Must not be longer than 253 characters and may contain one or more
+       * DNS sub-domains separated by slashes.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-pool-name
+       * 
+ * + * optional string pool = 3; + */ + public java.lang.String getPool() { + java.lang.Object ref = pool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + pool_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * This name together with the driver name and the device name field
+       * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+       * Must not be longer than 253 characters and may contain one or more
+       * DNS sub-domains separated by slashes.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-pool-name
+       * 
+ * + * optional string pool = 3; + */ + public com.google.protobuf.ByteString + getPoolBytes() { + java.lang.Object ref = pool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * This name together with the driver name and the device name field
+       * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+       * Must not be longer than 253 characters and may contain one or more
+       * DNS sub-domains separated by slashes.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-pool-name
+       * 
+ * + * optional string pool = 3; + */ + public Builder setPool( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + pool_ = value; + onChanged(); + return this; + } + /** + *
+       * This name together with the driver name and the device name field
+       * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+       * Must not be longer than 253 characters and may contain one or more
+       * DNS sub-domains separated by slashes.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-pool-name
+       * 
+ * + * optional string pool = 3; + */ + public Builder clearPool() { + bitField0_ = (bitField0_ & ~0x00000004); + pool_ = getDefaultInstance().getPool(); + onChanged(); + return this; + } + /** + *
+       * This name together with the driver name and the device name field
+       * identify which device was allocated (`<driver name>/<pool name>/<device name>`).
+       * Must not be longer than 253 characters and may contain one or more
+       * DNS sub-domains separated by slashes.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-resource-pool-name
+       * 
+ * + * optional string pool = 3; + */ + public Builder setPoolBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + pool_ = value; + onChanged(); + return this; + } + + private java.lang.Object device_ = ""; + /** + *
+       * Device references one device instance via its name in the driver's
+       * resource pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string device = 4; + */ + public boolean hasDevice() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * Device references one device instance via its name in the driver's
+       * resource pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string device = 4; + */ + public java.lang.String getDevice() { + java.lang.Object ref = device_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + device_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Device references one device instance via its name in the driver's
+       * resource pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string device = 4; + */ + public com.google.protobuf.ByteString + getDeviceBytes() { + java.lang.Object ref = device_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + device_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Device references one device instance via its name in the driver's
+       * resource pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string device = 4; + */ + public Builder setDevice( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + device_ = value; + onChanged(); + return this; + } + /** + *
+       * Device references one device instance via its name in the driver's
+       * resource pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string device = 4; + */ + public Builder clearDevice() { + bitField0_ = (bitField0_ & ~0x00000008); + device_ = getDefaultInstance().getDevice(); + onChanged(); + return this; + } + /** + *
+       * Device references one device instance via its name in the driver's
+       * resource pool. It must be a DNS label.
+       * +required
+       * 
+ * + * optional string device = 4; + */ + public Builder setDeviceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + device_ = value; + onChanged(); + return this; + } + + private boolean adminAccess_ ; + /** + *
+       * AdminAccess indicates that this device was allocated for
+       * administrative access. See the corresponding request field
+       * for a definition of mode.
+       * Admin access is disabled if this field is unset or
+       * set to false, otherwise it is enabled.
+       * +optional
+       * +featureGate=DRAAdminAccess
+       * 
+ * + * optional bool adminAccess = 5; + */ + public boolean hasAdminAccess() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+       * AdminAccess indicates that this device was allocated for
+       * administrative access. See the corresponding request field
+       * for a definition of mode.
+       * Admin access is disabled if this field is unset or
+       * set to false, otherwise it is enabled.
+       * +optional
+       * +featureGate=DRAAdminAccess
+       * 
+ * + * optional bool adminAccess = 5; + */ + public boolean getAdminAccess() { + return adminAccess_; + } + /** + *
+       * AdminAccess indicates that this device was allocated for
+       * administrative access. See the corresponding request field
+       * for a definition of mode.
+       * Admin access is disabled if this field is unset or
+       * set to false, otherwise it is enabled.
+       * +optional
+       * +featureGate=DRAAdminAccess
+       * 
+ * + * optional bool adminAccess = 5; + */ + public Builder setAdminAccess(boolean value) { + bitField0_ |= 0x00000010; + adminAccess_ = value; + onChanged(); + return this; + } + /** + *
+       * AdminAccess indicates that this device was allocated for
+       * administrative access. See the corresponding request field
+       * for a definition of mode.
+       * Admin access is disabled if this field is unset or
+       * set to false, otherwise it is enabled.
+       * +optional
+       * +featureGate=DRAAdminAccess
+       * 
+ * + * optional bool adminAccess = 5; + */ + public Builder clearAdminAccess() { + bitField0_ = (bitField0_ & ~0x00000010); + adminAccess_ = false; + onChanged(); + return this; + } + + private java.util.List tolerations_ = + java.util.Collections.emptyList(); + private void ensureTolerationsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + tolerations_ = new java.util.ArrayList(tolerations_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceToleration, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder, io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder> tolerationsBuilder_; + + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public java.util.List getTolerationsList() { + if (tolerationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tolerations_); + } else { + return tolerationsBuilder_.getMessageList(); + } + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public int getTolerationsCount() { + if (tolerationsBuilder_ == null) { + return tolerations_.size(); + } else { + return tolerationsBuilder_.getCount(); + } + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceToleration getTolerations(int index) { + if (tolerationsBuilder_ == null) { + return tolerations_.get(index); + } else { + return tolerationsBuilder_.getMessage(index); + } + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder setTolerations( + int index, io.kubernetes.client.proto.V1Resource.DeviceToleration value) { + if (tolerationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTolerationsIsMutable(); + tolerations_.set(index, value); + onChanged(); + } else { + tolerationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder setTolerations( + int index, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder builderForValue) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.set(index, builderForValue.build()); + onChanged(); + } else { + tolerationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder addTolerations(io.kubernetes.client.proto.V1Resource.DeviceToleration value) { + if (tolerationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTolerationsIsMutable(); + tolerations_.add(value); + onChanged(); + } else { + tolerationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder addTolerations( + int index, io.kubernetes.client.proto.V1Resource.DeviceToleration value) { + if (tolerationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTolerationsIsMutable(); + tolerations_.add(index, value); + onChanged(); + } else { + tolerationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder addTolerations( + io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder builderForValue) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.add(builderForValue.build()); + onChanged(); + } else { + tolerationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder addTolerations( + int index, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder builderForValue) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.add(index, builderForValue.build()); + onChanged(); + } else { + tolerationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder addAllTolerations( + java.lang.Iterable values) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tolerations_); + onChanged(); + } else { + tolerationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder clearTolerations() { + if (tolerationsBuilder_ == null) { + tolerations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + tolerationsBuilder_.clear(); + } + return this; + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder removeTolerations(int index) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.remove(index); + onChanged(); + } else { + tolerationsBuilder_.remove(index); + } + return this; + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder getTolerationsBuilder( + int index) { + return getTolerationsFieldBuilder().getBuilder(index); + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder getTolerationsOrBuilder( + int index) { + if (tolerationsBuilder_ == null) { + return tolerations_.get(index); } else { + return tolerationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public java.util.List + getTolerationsOrBuilderList() { + if (tolerationsBuilder_ != null) { + return tolerationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tolerations_); + } + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder addTolerationsBuilder() { + return getTolerationsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceToleration.getDefaultInstance()); + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder addTolerationsBuilder( + int index) { + return getTolerationsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceToleration.getDefaultInstance()); + } + /** + *
+       * A copy of all tolerations specified in the request at the time
+       * when the device got allocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public java.util.List + getTolerationsBuilderList() { + return getTolerationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceToleration, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder, io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder> + getTolerationsFieldBuilder() { + if (tolerationsBuilder_ == null) { + tolerationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceToleration, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder, io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder>( + tolerations_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + tolerations_ = null; + } + return tolerationsBuilder_; + } + + private com.google.protobuf.LazyStringList bindingConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureBindingConditionsIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + bindingConditions_ = new com.google.protobuf.LazyStringArrayList(bindingConditions_); + bitField0_ |= 0x00000040; + } + } + /** + *
+       * BindingConditions contains a copy of the BindingConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 7; + */ + public com.google.protobuf.ProtocolStringList + getBindingConditionsList() { + return bindingConditions_.getUnmodifiableView(); + } + /** + *
+       * BindingConditions contains a copy of the BindingConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 7; + */ + public int getBindingConditionsCount() { + return bindingConditions_.size(); + } + /** + *
+       * BindingConditions contains a copy of the BindingConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 7; + */ + public java.lang.String getBindingConditions(int index) { + return bindingConditions_.get(index); + } + /** + *
+       * BindingConditions contains a copy of the BindingConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 7; + */ + public com.google.protobuf.ByteString + getBindingConditionsBytes(int index) { + return bindingConditions_.getByteString(index); + } + /** + *
+       * BindingConditions contains a copy of the BindingConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 7; + */ + public Builder setBindingConditions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingConditionsIsMutable(); + bindingConditions_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * BindingConditions contains a copy of the BindingConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 7; + */ + public Builder addBindingConditions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingConditionsIsMutable(); + bindingConditions_.add(value); + onChanged(); + return this; + } + /** + *
+       * BindingConditions contains a copy of the BindingConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 7; + */ + public Builder addAllBindingConditions( + java.lang.Iterable values) { + ensureBindingConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bindingConditions_); + onChanged(); + return this; + } + /** + *
+       * BindingConditions contains a copy of the BindingConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 7; + */ + public Builder clearBindingConditions() { + bindingConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+       * BindingConditions contains a copy of the BindingConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingConditions = 7; + */ + public Builder addBindingConditionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingConditionsIsMutable(); + bindingConditions_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList bindingFailureConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureBindingFailureConditionsIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + bindingFailureConditions_ = new com.google.protobuf.LazyStringArrayList(bindingFailureConditions_); + bitField0_ |= 0x00000080; + } + } + /** + *
+       * BindingFailureConditions contains a copy of the BindingFailureConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 8; + */ + public com.google.protobuf.ProtocolStringList + getBindingFailureConditionsList() { + return bindingFailureConditions_.getUnmodifiableView(); + } + /** + *
+       * BindingFailureConditions contains a copy of the BindingFailureConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 8; + */ + public int getBindingFailureConditionsCount() { + return bindingFailureConditions_.size(); + } + /** + *
+       * BindingFailureConditions contains a copy of the BindingFailureConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 8; + */ + public java.lang.String getBindingFailureConditions(int index) { + return bindingFailureConditions_.get(index); + } + /** + *
+       * BindingFailureConditions contains a copy of the BindingFailureConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 8; + */ + public com.google.protobuf.ByteString + getBindingFailureConditionsBytes(int index) { + return bindingFailureConditions_.getByteString(index); + } + /** + *
+       * BindingFailureConditions contains a copy of the BindingFailureConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 8; + */ + public Builder setBindingFailureConditions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingFailureConditionsIsMutable(); + bindingFailureConditions_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * BindingFailureConditions contains a copy of the BindingFailureConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 8; + */ + public Builder addBindingFailureConditions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingFailureConditionsIsMutable(); + bindingFailureConditions_.add(value); + onChanged(); + return this; + } + /** + *
+       * BindingFailureConditions contains a copy of the BindingFailureConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 8; + */ + public Builder addAllBindingFailureConditions( + java.lang.Iterable values) { + ensureBindingFailureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bindingFailureConditions_); + onChanged(); + return this; + } + /** + *
+       * BindingFailureConditions contains a copy of the BindingFailureConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 8; + */ + public Builder clearBindingFailureConditions() { + bindingFailureConditions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + *
+       * BindingFailureConditions contains a copy of the BindingFailureConditions
+       * from the corresponding ResourceSlice at the time of allocation.
+       * This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus
+       * feature gates.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceBindingConditions,DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=4
+       * 
+ * + * repeated string bindingFailureConditions = 8; + */ + public Builder addBindingFailureConditionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBindingFailureConditionsIsMutable(); + bindingFailureConditions_.add(value); + onChanged(); + return this; + } + + private java.lang.Object shareID_ = ""; + /** + *
+       * ShareID uniquely identifies an individual allocation share of the device,
+       * used when the device supports multiple simultaneous allocations.
+       * It serves as an additional map key to differentiate concurrent shares
+       * of the same device.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+       * 
+ * + * optional string shareID = 9; + */ + public boolean hasShareID() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + *
+       * ShareID uniquely identifies an individual allocation share of the device,
+       * used when the device supports multiple simultaneous allocations.
+       * It serves as an additional map key to differentiate concurrent shares
+       * of the same device.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+       * 
+ * + * optional string shareID = 9; + */ + public java.lang.String getShareID() { + java.lang.Object ref = shareID_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + shareID_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * ShareID uniquely identifies an individual allocation share of the device,
+       * used when the device supports multiple simultaneous allocations.
+       * It serves as an additional map key to differentiate concurrent shares
+       * of the same device.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+       * 
+ * + * optional string shareID = 9; + */ + public com.google.protobuf.ByteString + getShareIDBytes() { + java.lang.Object ref = shareID_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + shareID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * ShareID uniquely identifies an individual allocation share of the device,
+       * used when the device supports multiple simultaneous allocations.
+       * It serves as an additional map key to differentiate concurrent shares
+       * of the same device.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+       * 
+ * + * optional string shareID = 9; + */ + public Builder setShareID( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + shareID_ = value; + onChanged(); + return this; + } + /** + *
+       * ShareID uniquely identifies an individual allocation share of the device,
+       * used when the device supports multiple simultaneous allocations.
+       * It serves as an additional map key to differentiate concurrent shares
+       * of the same device.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+       * 
+ * + * optional string shareID = 9; + */ + public Builder clearShareID() { + bitField0_ = (bitField0_ & ~0x00000100); + shareID_ = getDefaultInstance().getShareID(); + onChanged(); + return this; + } + /** + *
+       * ShareID uniquely identifies an individual allocation share of the device,
+       * used when the device supports multiple simultaneous allocations.
+       * It serves as an additional map key to differentiate concurrent shares
+       * of the same device.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-uuid
+       * 
+ * + * optional string shareID = 9; + */ + public Builder setShareIDBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000100; + shareID_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, io.kubernetes.client.proto.Resource.Quantity> consumedCapacity_; + private com.google.protobuf.MapField + internalGetConsumedCapacity() { + if (consumedCapacity_ == null) { + return com.google.protobuf.MapField.emptyMapField( + ConsumedCapacityDefaultEntryHolder.defaultEntry); + } + return consumedCapacity_; + } + private com.google.protobuf.MapField + internalGetMutableConsumedCapacity() { + onChanged();; + if (consumedCapacity_ == null) { + consumedCapacity_ = com.google.protobuf.MapField.newMapField( + ConsumedCapacityDefaultEntryHolder.defaultEntry); + } + if (!consumedCapacity_.isMutable()) { + consumedCapacity_ = consumedCapacity_.copy(); + } + return consumedCapacity_; + } + + public int getConsumedCapacityCount() { + return internalGetConsumedCapacity().getMap().size(); + } + /** + *
+       * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+       * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+       * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+       * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+       * This field is populated only for devices that allow multiple allocations.
+       * All capacity entries are included, even if the consumed amount is zero.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + + public boolean containsConsumedCapacity( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + return internalGetConsumedCapacity().getMap().containsKey(key); + } + /** + * Use {@link #getConsumedCapacityMap()} instead. + */ + @java.lang.Deprecated + public java.util.Map getConsumedCapacity() { + return getConsumedCapacityMap(); + } + /** + *
+       * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+       * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+       * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+       * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+       * This field is populated only for devices that allow multiple allocations.
+       * All capacity entries are included, even if the consumed amount is zero.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + + public java.util.Map getConsumedCapacityMap() { + return internalGetConsumedCapacity().getMap(); + } + /** + *
+       * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+       * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+       * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+       * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+       * This field is populated only for devices that allow multiple allocations.
+       * All capacity entries are included, even if the consumed amount is zero.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + + public io.kubernetes.client.proto.Resource.Quantity getConsumedCapacityOrDefault( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity defaultValue) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetConsumedCapacity().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + *
+       * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+       * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+       * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+       * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+       * This field is populated only for devices that allow multiple allocations.
+       * All capacity entries are included, even if the consumed amount is zero.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + + public io.kubernetes.client.proto.Resource.Quantity getConsumedCapacityOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetConsumedCapacity().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearConsumedCapacity() { + internalGetMutableConsumedCapacity().getMutableMap() + .clear(); + return this; + } + /** + *
+       * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+       * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+       * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+       * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+       * This field is populated only for devices that allow multiple allocations.
+       * All capacity entries are included, even if the consumed amount is zero.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + + public Builder removeConsumedCapacity( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + internalGetMutableConsumedCapacity().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableConsumedCapacity() { + return internalGetMutableConsumedCapacity().getMutableMap(); + } + /** + *
+       * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+       * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+       * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+       * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+       * This field is populated only for devices that allow multiple allocations.
+       * All capacity entries are included, even if the consumed amount is zero.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + public Builder putConsumedCapacity( + java.lang.String key, + io.kubernetes.client.proto.Resource.Quantity value) { + if (key == null) { throw new java.lang.NullPointerException(); } + if (value == null) { throw new java.lang.NullPointerException(); } + internalGetMutableConsumedCapacity().getMutableMap() + .put(key, value); + return this; + } + /** + *
+       * ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request.
+       * The consumed amount may differ from the requested amount: it is rounded up to the nearest valid
+       * value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount).
+       * The total consumed capacity for each device must not exceed the DeviceCapacity's Value.
+       * This field is populated only for devices that allow multiple allocations.
+       * All capacity entries are included, even if the consumed amount is zero.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * map<string, .k8s.io.apimachinery.pkg.api.resource.Quantity> consumedCapacity = 10; + */ + + public Builder putAllConsumedCapacity( + java.util.Map values) { + internalGetMutableConsumedCapacity().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceRequestAllocationResult) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceRequestAllocationResult) + private static final io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceRequestAllocationResult parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceRequestAllocationResult(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceRequestAllocationResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceSelectorOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceSelector) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * CEL contains a CEL expression for selecting a device.
+     * +optional
+     * +oneOf=SelectorType
+     * 
+ * + * optional .k8s.io.api.resource.v1.CELDeviceSelector cel = 1; + */ + boolean hasCel(); + /** + *
+     * CEL contains a CEL expression for selecting a device.
+     * +optional
+     * +oneOf=SelectorType
+     * 
+ * + * optional .k8s.io.api.resource.v1.CELDeviceSelector cel = 1; + */ + io.kubernetes.client.proto.V1Resource.CELDeviceSelector getCel(); + /** + *
+     * CEL contains a CEL expression for selecting a device.
+     * +optional
+     * +oneOf=SelectorType
+     * 
+ * + * optional .k8s.io.api.resource.v1.CELDeviceSelector cel = 1; + */ + io.kubernetes.client.proto.V1Resource.CELDeviceSelectorOrBuilder getCelOrBuilder(); + } + /** + *
+   * DeviceSelector must have exactly one field set.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceSelector} + */ + public static final class DeviceSelector extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceSelector) + DeviceSelectorOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceSelector.newBuilder() to construct. + private DeviceSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceSelector() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceSelector( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.V1Resource.CELDeviceSelector.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = cel_.toBuilder(); + } + cel_ = input.readMessage(io.kubernetes.client.proto.V1Resource.CELDeviceSelector.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cel_); + cel_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceSelector.class, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder.class); + } + + private int bitField0_; + public static final int CEL_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.V1Resource.CELDeviceSelector cel_; + /** + *
+     * CEL contains a CEL expression for selecting a device.
+     * +optional
+     * +oneOf=SelectorType
+     * 
+ * + * optional .k8s.io.api.resource.v1.CELDeviceSelector cel = 1; + */ + public boolean hasCel() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * CEL contains a CEL expression for selecting a device.
+     * +optional
+     * +oneOf=SelectorType
+     * 
+ * + * optional .k8s.io.api.resource.v1.CELDeviceSelector cel = 1; + */ + public io.kubernetes.client.proto.V1Resource.CELDeviceSelector getCel() { + return cel_ == null ? io.kubernetes.client.proto.V1Resource.CELDeviceSelector.getDefaultInstance() : cel_; + } + /** + *
+     * CEL contains a CEL expression for selecting a device.
+     * +optional
+     * +oneOf=SelectorType
+     * 
+ * + * optional .k8s.io.api.resource.v1.CELDeviceSelector cel = 1; + */ + public io.kubernetes.client.proto.V1Resource.CELDeviceSelectorOrBuilder getCelOrBuilder() { + return cel_ == null ? io.kubernetes.client.proto.V1Resource.CELDeviceSelector.getDefaultInstance() : cel_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getCel()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getCel()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceSelector)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceSelector other = (io.kubernetes.client.proto.V1Resource.DeviceSelector) obj; + + boolean result = true; + result = result && (hasCel() == other.hasCel()); + if (hasCel()) { + result = result && getCel() + .equals(other.getCel()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCel()) { + hash = (37 * hash) + CEL_FIELD_NUMBER; + hash = (53 * hash) + getCel().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceSelector parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSelector parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSelector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSelector parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSelector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSelector parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSelector parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSelector parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSelector parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSelector parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSelector parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSelector parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceSelector prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceSelector must have exactly one field set.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceSelector} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceSelector) + io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceSelector.class, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceSelector.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCelFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (celBuilder_ == null) { + cel_ = null; + } else { + celBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceSelector_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceSelector getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceSelector.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceSelector build() { + io.kubernetes.client.proto.V1Resource.DeviceSelector result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceSelector buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceSelector result = new io.kubernetes.client.proto.V1Resource.DeviceSelector(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (celBuilder_ == null) { + result.cel_ = cel_; + } else { + result.cel_ = celBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceSelector) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceSelector)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceSelector other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceSelector.getDefaultInstance()) return this; + if (other.hasCel()) { + mergeCel(other.getCel()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceSelector parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceSelector) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.V1Resource.CELDeviceSelector cel_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CELDeviceSelector, io.kubernetes.client.proto.V1Resource.CELDeviceSelector.Builder, io.kubernetes.client.proto.V1Resource.CELDeviceSelectorOrBuilder> celBuilder_; + /** + *
+       * CEL contains a CEL expression for selecting a device.
+       * +optional
+       * +oneOf=SelectorType
+       * 
+ * + * optional .k8s.io.api.resource.v1.CELDeviceSelector cel = 1; + */ + public boolean hasCel() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * CEL contains a CEL expression for selecting a device.
+       * +optional
+       * +oneOf=SelectorType
+       * 
+ * + * optional .k8s.io.api.resource.v1.CELDeviceSelector cel = 1; + */ + public io.kubernetes.client.proto.V1Resource.CELDeviceSelector getCel() { + if (celBuilder_ == null) { + return cel_ == null ? io.kubernetes.client.proto.V1Resource.CELDeviceSelector.getDefaultInstance() : cel_; + } else { + return celBuilder_.getMessage(); + } + } + /** + *
+       * CEL contains a CEL expression for selecting a device.
+       * +optional
+       * +oneOf=SelectorType
+       * 
+ * + * optional .k8s.io.api.resource.v1.CELDeviceSelector cel = 1; + */ + public Builder setCel(io.kubernetes.client.proto.V1Resource.CELDeviceSelector value) { + if (celBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + cel_ = value; + onChanged(); + } else { + celBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * CEL contains a CEL expression for selecting a device.
+       * +optional
+       * +oneOf=SelectorType
+       * 
+ * + * optional .k8s.io.api.resource.v1.CELDeviceSelector cel = 1; + */ + public Builder setCel( + io.kubernetes.client.proto.V1Resource.CELDeviceSelector.Builder builderForValue) { + if (celBuilder_ == null) { + cel_ = builderForValue.build(); + onChanged(); + } else { + celBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * CEL contains a CEL expression for selecting a device.
+       * +optional
+       * +oneOf=SelectorType
+       * 
+ * + * optional .k8s.io.api.resource.v1.CELDeviceSelector cel = 1; + */ + public Builder mergeCel(io.kubernetes.client.proto.V1Resource.CELDeviceSelector value) { + if (celBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + cel_ != null && + cel_ != io.kubernetes.client.proto.V1Resource.CELDeviceSelector.getDefaultInstance()) { + cel_ = + io.kubernetes.client.proto.V1Resource.CELDeviceSelector.newBuilder(cel_).mergeFrom(value).buildPartial(); + } else { + cel_ = value; + } + onChanged(); + } else { + celBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * CEL contains a CEL expression for selecting a device.
+       * +optional
+       * +oneOf=SelectorType
+       * 
+ * + * optional .k8s.io.api.resource.v1.CELDeviceSelector cel = 1; + */ + public Builder clearCel() { + if (celBuilder_ == null) { + cel_ = null; + onChanged(); + } else { + celBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * CEL contains a CEL expression for selecting a device.
+       * +optional
+       * +oneOf=SelectorType
+       * 
+ * + * optional .k8s.io.api.resource.v1.CELDeviceSelector cel = 1; + */ + public io.kubernetes.client.proto.V1Resource.CELDeviceSelector.Builder getCelBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCelFieldBuilder().getBuilder(); + } + /** + *
+       * CEL contains a CEL expression for selecting a device.
+       * +optional
+       * +oneOf=SelectorType
+       * 
+ * + * optional .k8s.io.api.resource.v1.CELDeviceSelector cel = 1; + */ + public io.kubernetes.client.proto.V1Resource.CELDeviceSelectorOrBuilder getCelOrBuilder() { + if (celBuilder_ != null) { + return celBuilder_.getMessageOrBuilder(); + } else { + return cel_ == null ? + io.kubernetes.client.proto.V1Resource.CELDeviceSelector.getDefaultInstance() : cel_; + } + } + /** + *
+       * CEL contains a CEL expression for selecting a device.
+       * +optional
+       * +oneOf=SelectorType
+       * 
+ * + * optional .k8s.io.api.resource.v1.CELDeviceSelector cel = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CELDeviceSelector, io.kubernetes.client.proto.V1Resource.CELDeviceSelector.Builder, io.kubernetes.client.proto.V1Resource.CELDeviceSelectorOrBuilder> + getCelFieldBuilder() { + if (celBuilder_ == null) { + celBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CELDeviceSelector, io.kubernetes.client.proto.V1Resource.CELDeviceSelector.Builder, io.kubernetes.client.proto.V1Resource.CELDeviceSelectorOrBuilder>( + getCel(), + getParentForChildren(), + isClean()); + cel_ = null; + } + return celBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceSelector) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceSelector) + private static final io.kubernetes.client.proto.V1Resource.DeviceSelector DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceSelector(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceSelector getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceSelector parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceSelector(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceSelector getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceSubRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceSubRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name can be used to reference this subrequest in the list of constraints
+     * or the list of configurations for the claim. References must use the
+     * format <main request>/<subrequest>.
+     * Must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + boolean hasName(); + /** + *
+     * Name can be used to reference this subrequest in the list of constraints
+     * or the list of configurations for the claim. References must use the
+     * format <main request>/<subrequest>.
+     * Must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + java.lang.String getName(); + /** + *
+     * Name can be used to reference this subrequest in the list of constraints
+     * or the list of configurations for the claim. References must use the
+     * format <main request>/<subrequest>.
+     * Must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * DeviceClassName references a specific DeviceClass, which can define
+     * additional configuration and selectors to be inherited by this
+     * subrequest.
+     * A class is required. Which classes are available depends on the cluster.
+     * Administrators may use this to restrict which devices may get
+     * requested by only installing classes with selectors for permitted
+     * devices. If users are free to request anything without restrictions,
+     * then administrators can create an empty DeviceClass for users
+     * to reference.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name
+     * 
+ * + * optional string deviceClassName = 2; + */ + boolean hasDeviceClassName(); + /** + *
+     * DeviceClassName references a specific DeviceClass, which can define
+     * additional configuration and selectors to be inherited by this
+     * subrequest.
+     * A class is required. Which classes are available depends on the cluster.
+     * Administrators may use this to restrict which devices may get
+     * requested by only installing classes with selectors for permitted
+     * devices. If users are free to request anything without restrictions,
+     * then administrators can create an empty DeviceClass for users
+     * to reference.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name
+     * 
+ * + * optional string deviceClassName = 2; + */ + java.lang.String getDeviceClassName(); + /** + *
+     * DeviceClassName references a specific DeviceClass, which can define
+     * additional configuration and selectors to be inherited by this
+     * subrequest.
+     * A class is required. Which classes are available depends on the cluster.
+     * Administrators may use this to restrict which devices may get
+     * requested by only installing classes with selectors for permitted
+     * devices. If users are free to request anything without restrictions,
+     * then administrators can create an empty DeviceClass for users
+     * to reference.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name
+     * 
+ * + * optional string deviceClassName = 2; + */ + com.google.protobuf.ByteString + getDeviceClassNameBytes(); + + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * subrequest. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + java.util.List + getSelectorsList(); + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * subrequest. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + io.kubernetes.client.proto.V1Resource.DeviceSelector getSelectors(int index); + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * subrequest. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + int getSelectorsCount(); + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * subrequest. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + java.util.List + getSelectorsOrBuilderList(); + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * subrequest. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder getSelectorsOrBuilder( + int index); + + /** + *
+     * AllocationMode and its related fields define how devices are allocated
+     * to satisfy this subrequest. Supported values are:
+     * - ExactCount: This request is for a specific number of devices.
+     *   This is the default. The exact number is provided in the
+     *   count field.
+     * - All: This subrequest is for all of the matching devices in a pool.
+     *   Allocation will fail if some devices are already allocated,
+     *   unless adminAccess is requested.
+     * If AllocationMode is not specified, the default mode is ExactCount. If
+     * the mode is ExactCount and count is not specified, the default count is
+     * one. Any other subrequests must specify this field.
+     * More modes may get added in the future. Clients must refuse to handle
+     * requests with unknown modes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string allocationMode = 4; + */ + boolean hasAllocationMode(); + /** + *
+     * AllocationMode and its related fields define how devices are allocated
+     * to satisfy this subrequest. Supported values are:
+     * - ExactCount: This request is for a specific number of devices.
+     *   This is the default. The exact number is provided in the
+     *   count field.
+     * - All: This subrequest is for all of the matching devices in a pool.
+     *   Allocation will fail if some devices are already allocated,
+     *   unless adminAccess is requested.
+     * If AllocationMode is not specified, the default mode is ExactCount. If
+     * the mode is ExactCount and count is not specified, the default count is
+     * one. Any other subrequests must specify this field.
+     * More modes may get added in the future. Clients must refuse to handle
+     * requests with unknown modes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string allocationMode = 4; + */ + java.lang.String getAllocationMode(); + /** + *
+     * AllocationMode and its related fields define how devices are allocated
+     * to satisfy this subrequest. Supported values are:
+     * - ExactCount: This request is for a specific number of devices.
+     *   This is the default. The exact number is provided in the
+     *   count field.
+     * - All: This subrequest is for all of the matching devices in a pool.
+     *   Allocation will fail if some devices are already allocated,
+     *   unless adminAccess is requested.
+     * If AllocationMode is not specified, the default mode is ExactCount. If
+     * the mode is ExactCount and count is not specified, the default count is
+     * one. Any other subrequests must specify this field.
+     * More modes may get added in the future. Clients must refuse to handle
+     * requests with unknown modes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string allocationMode = 4; + */ + com.google.protobuf.ByteString + getAllocationModeBytes(); + + /** + *
+     * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+     * If AllocationMode is ExactCount and this field is not specified, the default is one.
+     * +optional
+     * +oneOf=AllocationMode
+     * 
+ * + * optional int64 count = 5; + */ + boolean hasCount(); + /** + *
+     * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+     * If AllocationMode is ExactCount and this field is not specified, the default is one.
+     * +optional
+     * +oneOf=AllocationMode
+     * 
+ * + * optional int64 count = 5; + */ + long getCount(); + + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + java.util.List + getTolerationsList(); + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + io.kubernetes.client.proto.V1Resource.DeviceToleration getTolerations(int index); + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + int getTolerationsCount(); + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + java.util.List + getTolerationsOrBuilderList(); + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder getTolerationsOrBuilder( + int index); + + /** + *
+     * Capacity define resource requirements against each capacity.
+     * If this field is unset and the device supports multiple allocations,
+     * the default value will be applied to each capacity according to requestPolicy.
+     * For the capacity that has no requestPolicy, default is the full capacity value.
+     * Applies to each device allocation.
+     * If Count > 1,
+     * the request fails if there aren't enough devices that meet the requirements.
+     * If AllocationMode is set to All,
+     * the request fails if there are devices that otherwise match the request,
+     * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + boolean hasCapacity(); + /** + *
+     * Capacity define resource requirements against each capacity.
+     * If this field is unset and the device supports multiple allocations,
+     * the default value will be applied to each capacity according to requestPolicy.
+     * For the capacity that has no requestPolicy, default is the full capacity value.
+     * Applies to each device allocation.
+     * If Count > 1,
+     * the request fails if there aren't enough devices that meet the requirements.
+     * If AllocationMode is set to All,
+     * the request fails if there are devices that otherwise match the request,
+     * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + io.kubernetes.client.proto.V1Resource.CapacityRequirements getCapacity(); + /** + *
+     * Capacity define resource requirements against each capacity.
+     * If this field is unset and the device supports multiple allocations,
+     * the default value will be applied to each capacity according to requestPolicy.
+     * For the capacity that has no requestPolicy, default is the full capacity value.
+     * Applies to each device allocation.
+     * If Count > 1,
+     * the request fails if there aren't enough devices that meet the requirements.
+     * If AllocationMode is set to All,
+     * the request fails if there are devices that otherwise match the request,
+     * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + io.kubernetes.client.proto.V1Resource.CapacityRequirementsOrBuilder getCapacityOrBuilder(); + } + /** + *
+   * DeviceSubRequest describes a request for device provided in the
+   * claim.spec.devices.requests[].firstAvailable array. Each
+   * is typically a request for a single resource like a device, but can
+   * also ask for several identical devices.
+   * DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the
+   * AdminAccess field as that one is only supported when requesting a
+   * specific device.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceSubRequest} + */ + public static final class DeviceSubRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceSubRequest) + DeviceSubRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceSubRequest.newBuilder() to construct. + private DeviceSubRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceSubRequest() { + name_ = ""; + deviceClassName_ = ""; + selectors_ = java.util.Collections.emptyList(); + allocationMode_ = ""; + count_ = 0L; + tolerations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceSubRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + deviceClassName_ = bs; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + selectors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + selectors_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceSelector.PARSER, extensionRegistry)); + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + allocationMode_ = bs; + break; + } + case 40: { + bitField0_ |= 0x00000008; + count_ = input.readInt64(); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + tolerations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + tolerations_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceToleration.PARSER, extensionRegistry)); + break; + } + case 58: { + io.kubernetes.client.proto.V1Resource.CapacityRequirements.Builder subBuilder = null; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subBuilder = capacity_.toBuilder(); + } + capacity_ = input.readMessage(io.kubernetes.client.proto.V1Resource.CapacityRequirements.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(capacity_); + capacity_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000010; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + selectors_ = java.util.Collections.unmodifiableList(selectors_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + tolerations_ = java.util.Collections.unmodifiableList(tolerations_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceSubRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceSubRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceSubRequest.class, io.kubernetes.client.proto.V1Resource.DeviceSubRequest.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Name can be used to reference this subrequest in the list of constraints
+     * or the list of configurations for the claim. References must use the
+     * format <main request>/<subrequest>.
+     * Must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Name can be used to reference this subrequest in the list of constraints
+     * or the list of configurations for the claim. References must use the
+     * format <main request>/<subrequest>.
+     * Must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + *
+     * Name can be used to reference this subrequest in the list of constraints
+     * or the list of configurations for the claim. References must use the
+     * format <main request>/<subrequest>.
+     * Must be a DNS label.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEVICECLASSNAME_FIELD_NUMBER = 2; + private volatile java.lang.Object deviceClassName_; + /** + *
+     * DeviceClassName references a specific DeviceClass, which can define
+     * additional configuration and selectors to be inherited by this
+     * subrequest.
+     * A class is required. Which classes are available depends on the cluster.
+     * Administrators may use this to restrict which devices may get
+     * requested by only installing classes with selectors for permitted
+     * devices. If users are free to request anything without restrictions,
+     * then administrators can create an empty DeviceClass for users
+     * to reference.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name
+     * 
+ * + * optional string deviceClassName = 2; + */ + public boolean hasDeviceClassName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * DeviceClassName references a specific DeviceClass, which can define
+     * additional configuration and selectors to be inherited by this
+     * subrequest.
+     * A class is required. Which classes are available depends on the cluster.
+     * Administrators may use this to restrict which devices may get
+     * requested by only installing classes with selectors for permitted
+     * devices. If users are free to request anything without restrictions,
+     * then administrators can create an empty DeviceClass for users
+     * to reference.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name
+     * 
+ * + * optional string deviceClassName = 2; + */ + public java.lang.String getDeviceClassName() { + java.lang.Object ref = deviceClassName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + deviceClassName_ = s; + } + return s; + } + } + /** + *
+     * DeviceClassName references a specific DeviceClass, which can define
+     * additional configuration and selectors to be inherited by this
+     * subrequest.
+     * A class is required. Which classes are available depends on the cluster.
+     * Administrators may use this to restrict which devices may get
+     * requested by only installing classes with selectors for permitted
+     * devices. If users are free to request anything without restrictions,
+     * then administrators can create an empty DeviceClass for users
+     * to reference.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name
+     * 
+ * + * optional string deviceClassName = 2; + */ + public com.google.protobuf.ByteString + getDeviceClassNameBytes() { + java.lang.Object ref = deviceClassName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceClassName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELECTORS_FIELD_NUMBER = 3; + private java.util.List selectors_; + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * subrequest. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public java.util.List getSelectorsList() { + return selectors_; + } + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * subrequest. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public java.util.List + getSelectorsOrBuilderList() { + return selectors_; + } + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * subrequest. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public int getSelectorsCount() { + return selectors_.size(); + } + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * subrequest. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelector getSelectors(int index) { + return selectors_.get(index); + } + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * subrequest. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder getSelectorsOrBuilder( + int index) { + return selectors_.get(index); + } + + public static final int ALLOCATIONMODE_FIELD_NUMBER = 4; + private volatile java.lang.Object allocationMode_; + /** + *
+     * AllocationMode and its related fields define how devices are allocated
+     * to satisfy this subrequest. Supported values are:
+     * - ExactCount: This request is for a specific number of devices.
+     *   This is the default. The exact number is provided in the
+     *   count field.
+     * - All: This subrequest is for all of the matching devices in a pool.
+     *   Allocation will fail if some devices are already allocated,
+     *   unless adminAccess is requested.
+     * If AllocationMode is not specified, the default mode is ExactCount. If
+     * the mode is ExactCount and count is not specified, the default count is
+     * one. Any other subrequests must specify this field.
+     * More modes may get added in the future. Clients must refuse to handle
+     * requests with unknown modes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string allocationMode = 4; + */ + public boolean hasAllocationMode() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * AllocationMode and its related fields define how devices are allocated
+     * to satisfy this subrequest. Supported values are:
+     * - ExactCount: This request is for a specific number of devices.
+     *   This is the default. The exact number is provided in the
+     *   count field.
+     * - All: This subrequest is for all of the matching devices in a pool.
+     *   Allocation will fail if some devices are already allocated,
+     *   unless adminAccess is requested.
+     * If AllocationMode is not specified, the default mode is ExactCount. If
+     * the mode is ExactCount and count is not specified, the default count is
+     * one. Any other subrequests must specify this field.
+     * More modes may get added in the future. Clients must refuse to handle
+     * requests with unknown modes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string allocationMode = 4; + */ + public java.lang.String getAllocationMode() { + java.lang.Object ref = allocationMode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + allocationMode_ = s; + } + return s; + } + } + /** + *
+     * AllocationMode and its related fields define how devices are allocated
+     * to satisfy this subrequest. Supported values are:
+     * - ExactCount: This request is for a specific number of devices.
+     *   This is the default. The exact number is provided in the
+     *   count field.
+     * - All: This subrequest is for all of the matching devices in a pool.
+     *   Allocation will fail if some devices are already allocated,
+     *   unless adminAccess is requested.
+     * If AllocationMode is not specified, the default mode is ExactCount. If
+     * the mode is ExactCount and count is not specified, the default count is
+     * one. Any other subrequests must specify this field.
+     * More modes may get added in the future. Clients must refuse to handle
+     * requests with unknown modes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string allocationMode = 4; + */ + public com.google.protobuf.ByteString + getAllocationModeBytes() { + java.lang.Object ref = allocationMode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + allocationMode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COUNT_FIELD_NUMBER = 5; + private long count_; + /** + *
+     * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+     * If AllocationMode is ExactCount and this field is not specified, the default is one.
+     * +optional
+     * +oneOf=AllocationMode
+     * 
+ * + * optional int64 count = 5; + */ + public boolean hasCount() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+     * If AllocationMode is ExactCount and this field is not specified, the default is one.
+     * +optional
+     * +oneOf=AllocationMode
+     * 
+ * + * optional int64 count = 5; + */ + public long getCount() { + return count_; + } + + public static final int TOLERATIONS_FIELD_NUMBER = 6; + private java.util.List tolerations_; + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public java.util.List getTolerationsList() { + return tolerations_; + } + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public java.util.List + getTolerationsOrBuilderList() { + return tolerations_; + } + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public int getTolerationsCount() { + return tolerations_.size(); + } + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceToleration getTolerations(int index) { + return tolerations_.get(index); + } + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder getTolerationsOrBuilder( + int index) { + return tolerations_.get(index); + } + + public static final int CAPACITY_FIELD_NUMBER = 7; + private io.kubernetes.client.proto.V1Resource.CapacityRequirements capacity_; + /** + *
+     * Capacity define resource requirements against each capacity.
+     * If this field is unset and the device supports multiple allocations,
+     * the default value will be applied to each capacity according to requestPolicy.
+     * For the capacity that has no requestPolicy, default is the full capacity value.
+     * Applies to each device allocation.
+     * If Count > 1,
+     * the request fails if there aren't enough devices that meet the requirements.
+     * If AllocationMode is set to All,
+     * the request fails if there are devices that otherwise match the request,
+     * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public boolean hasCapacity() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+     * Capacity define resource requirements against each capacity.
+     * If this field is unset and the device supports multiple allocations,
+     * the default value will be applied to each capacity according to requestPolicy.
+     * For the capacity that has no requestPolicy, default is the full capacity value.
+     * Applies to each device allocation.
+     * If Count > 1,
+     * the request fails if there aren't enough devices that meet the requirements.
+     * If AllocationMode is set to All,
+     * the request fails if there are devices that otherwise match the request,
+     * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequirements getCapacity() { + return capacity_ == null ? io.kubernetes.client.proto.V1Resource.CapacityRequirements.getDefaultInstance() : capacity_; + } + /** + *
+     * Capacity define resource requirements against each capacity.
+     * If this field is unset and the device supports multiple allocations,
+     * the default value will be applied to each capacity according to requestPolicy.
+     * For the capacity that has no requestPolicy, default is the full capacity value.
+     * Applies to each device allocation.
+     * If Count > 1,
+     * the request fails if there aren't enough devices that meet the requirements.
+     * If AllocationMode is set to All,
+     * the request fails if there are devices that otherwise match the request,
+     * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequirementsOrBuilder getCapacityOrBuilder() { + return capacity_ == null ? io.kubernetes.client.proto.V1Resource.CapacityRequirements.getDefaultInstance() : capacity_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, deviceClassName_); + } + for (int i = 0; i < selectors_.size(); i++) { + output.writeMessage(3, selectors_.get(i)); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, allocationMode_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeInt64(5, count_); + } + for (int i = 0; i < tolerations_.size(); i++) { + output.writeMessage(6, tolerations_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(7, getCapacity()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, deviceClassName_); + } + for (int i = 0; i < selectors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, selectors_.get(i)); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, allocationMode_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, count_); + } + for (int i = 0; i < tolerations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, tolerations_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCapacity()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceSubRequest)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceSubRequest other = (io.kubernetes.client.proto.V1Resource.DeviceSubRequest) obj; + + boolean result = true; + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && (hasDeviceClassName() == other.hasDeviceClassName()); + if (hasDeviceClassName()) { + result = result && getDeviceClassName() + .equals(other.getDeviceClassName()); + } + result = result && getSelectorsList() + .equals(other.getSelectorsList()); + result = result && (hasAllocationMode() == other.hasAllocationMode()); + if (hasAllocationMode()) { + result = result && getAllocationMode() + .equals(other.getAllocationMode()); + } + result = result && (hasCount() == other.hasCount()); + if (hasCount()) { + result = result && (getCount() + == other.getCount()); + } + result = result && getTolerationsList() + .equals(other.getTolerationsList()); + result = result && (hasCapacity() == other.hasCapacity()); + if (hasCapacity()) { + result = result && getCapacity() + .equals(other.getCapacity()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasDeviceClassName()) { + hash = (37 * hash) + DEVICECLASSNAME_FIELD_NUMBER; + hash = (53 * hash) + getDeviceClassName().hashCode(); + } + if (getSelectorsCount() > 0) { + hash = (37 * hash) + SELECTORS_FIELD_NUMBER; + hash = (53 * hash) + getSelectorsList().hashCode(); + } + if (hasAllocationMode()) { + hash = (37 * hash) + ALLOCATIONMODE_FIELD_NUMBER; + hash = (53 * hash) + getAllocationMode().hashCode(); + } + if (hasCount()) { + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCount()); + } + if (getTolerationsCount() > 0) { + hash = (37 * hash) + TOLERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getTolerationsList().hashCode(); + } + if (hasCapacity()) { + hash = (37 * hash) + CAPACITY_FIELD_NUMBER; + hash = (53 * hash) + getCapacity().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceSubRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSubRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSubRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSubRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSubRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSubRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSubRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSubRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSubRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSubRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSubRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceSubRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceSubRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * DeviceSubRequest describes a request for device provided in the
+     * claim.spec.devices.requests[].firstAvailable array. Each
+     * is typically a request for a single resource like a device, but can
+     * also ask for several identical devices.
+     * DeviceSubRequest is similar to ExactDeviceRequest, but doesn't expose the
+     * AdminAccess field as that one is only supported when requesting a
+     * specific device.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceSubRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceSubRequest) + io.kubernetes.client.proto.V1Resource.DeviceSubRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceSubRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceSubRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceSubRequest.class, io.kubernetes.client.proto.V1Resource.DeviceSubRequest.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceSubRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSelectorsFieldBuilder(); + getTolerationsFieldBuilder(); + getCapacityFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + deviceClassName_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + if (selectorsBuilder_ == null) { + selectors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + selectorsBuilder_.clear(); + } + allocationMode_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + count_ = 0L; + bitField0_ = (bitField0_ & ~0x00000010); + if (tolerationsBuilder_ == null) { + tolerations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + tolerationsBuilder_.clear(); + } + if (capacityBuilder_ == null) { + capacity_ = null; + } else { + capacityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceSubRequest_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceSubRequest getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceSubRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceSubRequest build() { + io.kubernetes.client.proto.V1Resource.DeviceSubRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceSubRequest buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceSubRequest result = new io.kubernetes.client.proto.V1Resource.DeviceSubRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.deviceClassName_ = deviceClassName_; + if (selectorsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + selectors_ = java.util.Collections.unmodifiableList(selectors_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.selectors_ = selectors_; + } else { + result.selectors_ = selectorsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000004; + } + result.allocationMode_ = allocationMode_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.count_ = count_; + if (tolerationsBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + tolerations_ = java.util.Collections.unmodifiableList(tolerations_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.tolerations_ = tolerations_; + } else { + result.tolerations_ = tolerationsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000010; + } + if (capacityBuilder_ == null) { + result.capacity_ = capacity_; + } else { + result.capacity_ = capacityBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceSubRequest) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceSubRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceSubRequest other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceSubRequest.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + if (other.hasDeviceClassName()) { + bitField0_ |= 0x00000002; + deviceClassName_ = other.deviceClassName_; + onChanged(); + } + if (selectorsBuilder_ == null) { + if (!other.selectors_.isEmpty()) { + if (selectors_.isEmpty()) { + selectors_ = other.selectors_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSelectorsIsMutable(); + selectors_.addAll(other.selectors_); + } + onChanged(); + } + } else { + if (!other.selectors_.isEmpty()) { + if (selectorsBuilder_.isEmpty()) { + selectorsBuilder_.dispose(); + selectorsBuilder_ = null; + selectors_ = other.selectors_; + bitField0_ = (bitField0_ & ~0x00000004); + selectorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSelectorsFieldBuilder() : null; + } else { + selectorsBuilder_.addAllMessages(other.selectors_); + } + } + } + if (other.hasAllocationMode()) { + bitField0_ |= 0x00000008; + allocationMode_ = other.allocationMode_; + onChanged(); + } + if (other.hasCount()) { + setCount(other.getCount()); + } + if (tolerationsBuilder_ == null) { + if (!other.tolerations_.isEmpty()) { + if (tolerations_.isEmpty()) { + tolerations_ = other.tolerations_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTolerationsIsMutable(); + tolerations_.addAll(other.tolerations_); + } + onChanged(); + } + } else { + if (!other.tolerations_.isEmpty()) { + if (tolerationsBuilder_.isEmpty()) { + tolerationsBuilder_.dispose(); + tolerationsBuilder_ = null; + tolerations_ = other.tolerations_; + bitField0_ = (bitField0_ & ~0x00000020); + tolerationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTolerationsFieldBuilder() : null; + } else { + tolerationsBuilder_.addAllMessages(other.tolerations_); + } + } + } + if (other.hasCapacity()) { + mergeCapacity(other.getCapacity()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceSubRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceSubRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * Name can be used to reference this subrequest in the list of constraints
+       * or the list of configurations for the claim. References must use the
+       * format <main request>/<subrequest>.
+       * Must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Name can be used to reference this subrequest in the list of constraints
+       * or the list of configurations for the claim. References must use the
+       * format <main request>/<subrequest>.
+       * Must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name can be used to reference this subrequest in the list of constraints
+       * or the list of configurations for the claim. References must use the
+       * format <main request>/<subrequest>.
+       * Must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name can be used to reference this subrequest in the list of constraints
+       * or the list of configurations for the claim. References must use the
+       * format <main request>/<subrequest>.
+       * Must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Name can be used to reference this subrequest in the list of constraints
+       * or the list of configurations for the claim. References must use the
+       * format <main request>/<subrequest>.
+       * Must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name can be used to reference this subrequest in the list of constraints
+       * or the list of configurations for the claim. References must use the
+       * format <main request>/<subrequest>.
+       * Must be a DNS label.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object deviceClassName_ = ""; + /** + *
+       * DeviceClassName references a specific DeviceClass, which can define
+       * additional configuration and selectors to be inherited by this
+       * subrequest.
+       * A class is required. Which classes are available depends on the cluster.
+       * Administrators may use this to restrict which devices may get
+       * requested by only installing classes with selectors for permitted
+       * devices. If users are free to request anything without restrictions,
+       * then administrators can create an empty DeviceClass for users
+       * to reference.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name
+       * 
+ * + * optional string deviceClassName = 2; + */ + public boolean hasDeviceClassName() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * DeviceClassName references a specific DeviceClass, which can define
+       * additional configuration and selectors to be inherited by this
+       * subrequest.
+       * A class is required. Which classes are available depends on the cluster.
+       * Administrators may use this to restrict which devices may get
+       * requested by only installing classes with selectors for permitted
+       * devices. If users are free to request anything without restrictions,
+       * then administrators can create an empty DeviceClass for users
+       * to reference.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name
+       * 
+ * + * optional string deviceClassName = 2; + */ + public java.lang.String getDeviceClassName() { + java.lang.Object ref = deviceClassName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + deviceClassName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * DeviceClassName references a specific DeviceClass, which can define
+       * additional configuration and selectors to be inherited by this
+       * subrequest.
+       * A class is required. Which classes are available depends on the cluster.
+       * Administrators may use this to restrict which devices may get
+       * requested by only installing classes with selectors for permitted
+       * devices. If users are free to request anything without restrictions,
+       * then administrators can create an empty DeviceClass for users
+       * to reference.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name
+       * 
+ * + * optional string deviceClassName = 2; + */ + public com.google.protobuf.ByteString + getDeviceClassNameBytes() { + java.lang.Object ref = deviceClassName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceClassName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * DeviceClassName references a specific DeviceClass, which can define
+       * additional configuration and selectors to be inherited by this
+       * subrequest.
+       * A class is required. Which classes are available depends on the cluster.
+       * Administrators may use this to restrict which devices may get
+       * requested by only installing classes with selectors for permitted
+       * devices. If users are free to request anything without restrictions,
+       * then administrators can create an empty DeviceClass for users
+       * to reference.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name
+       * 
+ * + * optional string deviceClassName = 2; + */ + public Builder setDeviceClassName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + deviceClassName_ = value; + onChanged(); + return this; + } + /** + *
+       * DeviceClassName references a specific DeviceClass, which can define
+       * additional configuration and selectors to be inherited by this
+       * subrequest.
+       * A class is required. Which classes are available depends on the cluster.
+       * Administrators may use this to restrict which devices may get
+       * requested by only installing classes with selectors for permitted
+       * devices. If users are free to request anything without restrictions,
+       * then administrators can create an empty DeviceClass for users
+       * to reference.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name
+       * 
+ * + * optional string deviceClassName = 2; + */ + public Builder clearDeviceClassName() { + bitField0_ = (bitField0_ & ~0x00000002); + deviceClassName_ = getDefaultInstance().getDeviceClassName(); + onChanged(); + return this; + } + /** + *
+       * DeviceClassName references a specific DeviceClass, which can define
+       * additional configuration and selectors to be inherited by this
+       * subrequest.
+       * A class is required. Which classes are available depends on the cluster.
+       * Administrators may use this to restrict which devices may get
+       * requested by only installing classes with selectors for permitted
+       * devices. If users are free to request anything without restrictions,
+       * then administrators can create an empty DeviceClass for users
+       * to reference.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name
+       * 
+ * + * optional string deviceClassName = 2; + */ + public Builder setDeviceClassNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + deviceClassName_ = value; + onChanged(); + return this; + } + + private java.util.List selectors_ = + java.util.Collections.emptyList(); + private void ensureSelectorsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + selectors_ = new java.util.ArrayList(selectors_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceSelector, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder, io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder> selectorsBuilder_; + + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public java.util.List getSelectorsList() { + if (selectorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(selectors_); + } else { + return selectorsBuilder_.getMessageList(); + } + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public int getSelectorsCount() { + if (selectorsBuilder_ == null) { + return selectors_.size(); + } else { + return selectorsBuilder_.getCount(); + } + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelector getSelectors(int index) { + if (selectorsBuilder_ == null) { + return selectors_.get(index); + } else { + return selectorsBuilder_.getMessage(index); + } + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public Builder setSelectors( + int index, io.kubernetes.client.proto.V1Resource.DeviceSelector value) { + if (selectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSelectorsIsMutable(); + selectors_.set(index, value); + onChanged(); + } else { + selectorsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public Builder setSelectors( + int index, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder builderForValue) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.set(index, builderForValue.build()); + onChanged(); + } else { + selectorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public Builder addSelectors(io.kubernetes.client.proto.V1Resource.DeviceSelector value) { + if (selectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSelectorsIsMutable(); + selectors_.add(value); + onChanged(); + } else { + selectorsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public Builder addSelectors( + int index, io.kubernetes.client.proto.V1Resource.DeviceSelector value) { + if (selectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSelectorsIsMutable(); + selectors_.add(index, value); + onChanged(); + } else { + selectorsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public Builder addSelectors( + io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder builderForValue) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.add(builderForValue.build()); + onChanged(); + } else { + selectorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public Builder addSelectors( + int index, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder builderForValue) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.add(index, builderForValue.build()); + onChanged(); + } else { + selectorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public Builder addAllSelectors( + java.lang.Iterable values) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, selectors_); + onChanged(); + } else { + selectorsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public Builder clearSelectors() { + if (selectorsBuilder_ == null) { + selectors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + selectorsBuilder_.clear(); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public Builder removeSelectors(int index) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.remove(index); + onChanged(); + } else { + selectorsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder getSelectorsBuilder( + int index) { + return getSelectorsFieldBuilder().getBuilder(index); + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder getSelectorsOrBuilder( + int index) { + if (selectorsBuilder_ == null) { + return selectors_.get(index); } else { + return selectorsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public java.util.List + getSelectorsOrBuilderList() { + if (selectorsBuilder_ != null) { + return selectorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(selectors_); + } + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder addSelectorsBuilder() { + return getSelectorsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceSelector.getDefaultInstance()); + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder addSelectorsBuilder( + int index) { + return getSelectorsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceSelector.getDefaultInstance()); + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * subrequest. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 3; + */ + public java.util.List + getSelectorsBuilderList() { + return getSelectorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceSelector, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder, io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder> + getSelectorsFieldBuilder() { + if (selectorsBuilder_ == null) { + selectorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceSelector, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder, io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder>( + selectors_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + selectors_ = null; + } + return selectorsBuilder_; + } + + private java.lang.Object allocationMode_ = ""; + /** + *
+       * AllocationMode and its related fields define how devices are allocated
+       * to satisfy this subrequest. Supported values are:
+       * - ExactCount: This request is for a specific number of devices.
+       *   This is the default. The exact number is provided in the
+       *   count field.
+       * - All: This subrequest is for all of the matching devices in a pool.
+       *   Allocation will fail if some devices are already allocated,
+       *   unless adminAccess is requested.
+       * If AllocationMode is not specified, the default mode is ExactCount. If
+       * the mode is ExactCount and count is not specified, the default count is
+       * one. Any other subrequests must specify this field.
+       * More modes may get added in the future. Clients must refuse to handle
+       * requests with unknown modes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string allocationMode = 4; + */ + public boolean hasAllocationMode() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * AllocationMode and its related fields define how devices are allocated
+       * to satisfy this subrequest. Supported values are:
+       * - ExactCount: This request is for a specific number of devices.
+       *   This is the default. The exact number is provided in the
+       *   count field.
+       * - All: This subrequest is for all of the matching devices in a pool.
+       *   Allocation will fail if some devices are already allocated,
+       *   unless adminAccess is requested.
+       * If AllocationMode is not specified, the default mode is ExactCount. If
+       * the mode is ExactCount and count is not specified, the default count is
+       * one. Any other subrequests must specify this field.
+       * More modes may get added in the future. Clients must refuse to handle
+       * requests with unknown modes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string allocationMode = 4; + */ + public java.lang.String getAllocationMode() { + java.lang.Object ref = allocationMode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + allocationMode_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * AllocationMode and its related fields define how devices are allocated
+       * to satisfy this subrequest. Supported values are:
+       * - ExactCount: This request is for a specific number of devices.
+       *   This is the default. The exact number is provided in the
+       *   count field.
+       * - All: This subrequest is for all of the matching devices in a pool.
+       *   Allocation will fail if some devices are already allocated,
+       *   unless adminAccess is requested.
+       * If AllocationMode is not specified, the default mode is ExactCount. If
+       * the mode is ExactCount and count is not specified, the default count is
+       * one. Any other subrequests must specify this field.
+       * More modes may get added in the future. Clients must refuse to handle
+       * requests with unknown modes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string allocationMode = 4; + */ + public com.google.protobuf.ByteString + getAllocationModeBytes() { + java.lang.Object ref = allocationMode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + allocationMode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * AllocationMode and its related fields define how devices are allocated
+       * to satisfy this subrequest. Supported values are:
+       * - ExactCount: This request is for a specific number of devices.
+       *   This is the default. The exact number is provided in the
+       *   count field.
+       * - All: This subrequest is for all of the matching devices in a pool.
+       *   Allocation will fail if some devices are already allocated,
+       *   unless adminAccess is requested.
+       * If AllocationMode is not specified, the default mode is ExactCount. If
+       * the mode is ExactCount and count is not specified, the default count is
+       * one. Any other subrequests must specify this field.
+       * More modes may get added in the future. Clients must refuse to handle
+       * requests with unknown modes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string allocationMode = 4; + */ + public Builder setAllocationMode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + allocationMode_ = value; + onChanged(); + return this; + } + /** + *
+       * AllocationMode and its related fields define how devices are allocated
+       * to satisfy this subrequest. Supported values are:
+       * - ExactCount: This request is for a specific number of devices.
+       *   This is the default. The exact number is provided in the
+       *   count field.
+       * - All: This subrequest is for all of the matching devices in a pool.
+       *   Allocation will fail if some devices are already allocated,
+       *   unless adminAccess is requested.
+       * If AllocationMode is not specified, the default mode is ExactCount. If
+       * the mode is ExactCount and count is not specified, the default count is
+       * one. Any other subrequests must specify this field.
+       * More modes may get added in the future. Clients must refuse to handle
+       * requests with unknown modes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string allocationMode = 4; + */ + public Builder clearAllocationMode() { + bitField0_ = (bitField0_ & ~0x00000008); + allocationMode_ = getDefaultInstance().getAllocationMode(); + onChanged(); + return this; + } + /** + *
+       * AllocationMode and its related fields define how devices are allocated
+       * to satisfy this subrequest. Supported values are:
+       * - ExactCount: This request is for a specific number of devices.
+       *   This is the default. The exact number is provided in the
+       *   count field.
+       * - All: This subrequest is for all of the matching devices in a pool.
+       *   Allocation will fail if some devices are already allocated,
+       *   unless adminAccess is requested.
+       * If AllocationMode is not specified, the default mode is ExactCount. If
+       * the mode is ExactCount and count is not specified, the default count is
+       * one. Any other subrequests must specify this field.
+       * More modes may get added in the future. Clients must refuse to handle
+       * requests with unknown modes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string allocationMode = 4; + */ + public Builder setAllocationModeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + allocationMode_ = value; + onChanged(); + return this; + } + + private long count_ ; + /** + *
+       * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+       * If AllocationMode is ExactCount and this field is not specified, the default is one.
+       * +optional
+       * +oneOf=AllocationMode
+       * 
+ * + * optional int64 count = 5; + */ + public boolean hasCount() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+       * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+       * If AllocationMode is ExactCount and this field is not specified, the default is one.
+       * +optional
+       * +oneOf=AllocationMode
+       * 
+ * + * optional int64 count = 5; + */ + public long getCount() { + return count_; + } + /** + *
+       * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+       * If AllocationMode is ExactCount and this field is not specified, the default is one.
+       * +optional
+       * +oneOf=AllocationMode
+       * 
+ * + * optional int64 count = 5; + */ + public Builder setCount(long value) { + bitField0_ |= 0x00000010; + count_ = value; + onChanged(); + return this; + } + /** + *
+       * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+       * If AllocationMode is ExactCount and this field is not specified, the default is one.
+       * +optional
+       * +oneOf=AllocationMode
+       * 
+ * + * optional int64 count = 5; + */ + public Builder clearCount() { + bitField0_ = (bitField0_ & ~0x00000010); + count_ = 0L; + onChanged(); + return this; + } + + private java.util.List tolerations_ = + java.util.Collections.emptyList(); + private void ensureTolerationsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + tolerations_ = new java.util.ArrayList(tolerations_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceToleration, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder, io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder> tolerationsBuilder_; + + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public java.util.List getTolerationsList() { + if (tolerationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tolerations_); + } else { + return tolerationsBuilder_.getMessageList(); + } + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public int getTolerationsCount() { + if (tolerationsBuilder_ == null) { + return tolerations_.size(); + } else { + return tolerationsBuilder_.getCount(); + } + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceToleration getTolerations(int index) { + if (tolerationsBuilder_ == null) { + return tolerations_.get(index); + } else { + return tolerationsBuilder_.getMessage(index); + } + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder setTolerations( + int index, io.kubernetes.client.proto.V1Resource.DeviceToleration value) { + if (tolerationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTolerationsIsMutable(); + tolerations_.set(index, value); + onChanged(); + } else { + tolerationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder setTolerations( + int index, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder builderForValue) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.set(index, builderForValue.build()); + onChanged(); + } else { + tolerationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder addTolerations(io.kubernetes.client.proto.V1Resource.DeviceToleration value) { + if (tolerationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTolerationsIsMutable(); + tolerations_.add(value); + onChanged(); + } else { + tolerationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder addTolerations( + int index, io.kubernetes.client.proto.V1Resource.DeviceToleration value) { + if (tolerationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTolerationsIsMutable(); + tolerations_.add(index, value); + onChanged(); + } else { + tolerationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder addTolerations( + io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder builderForValue) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.add(builderForValue.build()); + onChanged(); + } else { + tolerationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder addTolerations( + int index, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder builderForValue) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.add(index, builderForValue.build()); + onChanged(); + } else { + tolerationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder addAllTolerations( + java.lang.Iterable values) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tolerations_); + onChanged(); + } else { + tolerationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder clearTolerations() { + if (tolerationsBuilder_ == null) { + tolerations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + tolerationsBuilder_.clear(); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder removeTolerations(int index) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.remove(index); + onChanged(); + } else { + tolerationsBuilder_.remove(index); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder getTolerationsBuilder( + int index) { + return getTolerationsFieldBuilder().getBuilder(index); + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder getTolerationsOrBuilder( + int index) { + if (tolerationsBuilder_ == null) { + return tolerations_.get(index); } else { + return tolerationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public java.util.List + getTolerationsOrBuilderList() { + if (tolerationsBuilder_ != null) { + return tolerationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tolerations_); + } + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder addTolerationsBuilder() { + return getTolerationsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceToleration.getDefaultInstance()); + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder addTolerationsBuilder( + int index) { + return getTolerationsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceToleration.getDefaultInstance()); + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public java.util.List + getTolerationsBuilderList() { + return getTolerationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceToleration, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder, io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder> + getTolerationsFieldBuilder() { + if (tolerationsBuilder_ == null) { + tolerationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceToleration, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder, io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder>( + tolerations_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + tolerations_ = null; + } + return tolerationsBuilder_; + } + + private io.kubernetes.client.proto.V1Resource.CapacityRequirements capacity_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CapacityRequirements, io.kubernetes.client.proto.V1Resource.CapacityRequirements.Builder, io.kubernetes.client.proto.V1Resource.CapacityRequirementsOrBuilder> capacityBuilder_; + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public boolean hasCapacity() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequirements getCapacity() { + if (capacityBuilder_ == null) { + return capacity_ == null ? io.kubernetes.client.proto.V1Resource.CapacityRequirements.getDefaultInstance() : capacity_; + } else { + return capacityBuilder_.getMessage(); + } + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public Builder setCapacity(io.kubernetes.client.proto.V1Resource.CapacityRequirements value) { + if (capacityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + capacity_ = value; + onChanged(); + } else { + capacityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + return this; + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public Builder setCapacity( + io.kubernetes.client.proto.V1Resource.CapacityRequirements.Builder builderForValue) { + if (capacityBuilder_ == null) { + capacity_ = builderForValue.build(); + onChanged(); + } else { + capacityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + return this; + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public Builder mergeCapacity(io.kubernetes.client.proto.V1Resource.CapacityRequirements value) { + if (capacityBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040) && + capacity_ != null && + capacity_ != io.kubernetes.client.proto.V1Resource.CapacityRequirements.getDefaultInstance()) { + capacity_ = + io.kubernetes.client.proto.V1Resource.CapacityRequirements.newBuilder(capacity_).mergeFrom(value).buildPartial(); + } else { + capacity_ = value; + } + onChanged(); + } else { + capacityBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + return this; + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public Builder clearCapacity() { + if (capacityBuilder_ == null) { + capacity_ = null; + onChanged(); + } else { + capacityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequirements.Builder getCapacityBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCapacityFieldBuilder().getBuilder(); + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequirementsOrBuilder getCapacityOrBuilder() { + if (capacityBuilder_ != null) { + return capacityBuilder_.getMessageOrBuilder(); + } else { + return capacity_ == null ? + io.kubernetes.client.proto.V1Resource.CapacityRequirements.getDefaultInstance() : capacity_; + } + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CapacityRequirements, io.kubernetes.client.proto.V1Resource.CapacityRequirements.Builder, io.kubernetes.client.proto.V1Resource.CapacityRequirementsOrBuilder> + getCapacityFieldBuilder() { + if (capacityBuilder_ == null) { + capacityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CapacityRequirements, io.kubernetes.client.proto.V1Resource.CapacityRequirements.Builder, io.kubernetes.client.proto.V1Resource.CapacityRequirementsOrBuilder>( + getCapacity(), + getParentForChildren(), + isClean()); + capacity_ = null; + } + return capacityBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceSubRequest) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceSubRequest) + private static final io.kubernetes.client.proto.V1Resource.DeviceSubRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceSubRequest(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceSubRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceSubRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceSubRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceSubRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceTaintOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceTaint) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The taint key to be applied to a device.
+     * Must be a label name.
+     * +required
+     * 
+ * + * optional string key = 1; + */ + boolean hasKey(); + /** + *
+     * The taint key to be applied to a device.
+     * Must be a label name.
+     * +required
+     * 
+ * + * optional string key = 1; + */ + java.lang.String getKey(); + /** + *
+     * The taint key to be applied to a device.
+     * Must be a label name.
+     * +required
+     * 
+ * + * optional string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+     * The taint value corresponding to the taint key.
+     * Must be a label value.
+     * +optional
+     * 
+ * + * optional string value = 2; + */ + boolean hasValue(); + /** + *
+     * The taint value corresponding to the taint key.
+     * Must be a label value.
+     * +optional
+     * 
+ * + * optional string value = 2; + */ + java.lang.String getValue(); + /** + *
+     * The taint value corresponding to the taint key.
+     * Must be a label value.
+     * +optional
+     * 
+ * + * optional string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + *
+     * The effect of the taint on claims that do not tolerate the taint
+     * and through such claims on the pods using them.
+     * Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for
+     * nodes is not valid here. More effects may get added in the future.
+     * Consumers must treat unknown effects like None.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string effect = 3; + */ + boolean hasEffect(); + /** + *
+     * The effect of the taint on claims that do not tolerate the taint
+     * and through such claims on the pods using them.
+     * Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for
+     * nodes is not valid here. More effects may get added in the future.
+     * Consumers must treat unknown effects like None.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string effect = 3; + */ + java.lang.String getEffect(); + /** + *
+     * The effect of the taint on claims that do not tolerate the taint
+     * and through such claims on the pods using them.
+     * Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for
+     * nodes is not valid here. More effects may get added in the future.
+     * Consumers must treat unknown effects like None.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string effect = 3; + */ + com.google.protobuf.ByteString + getEffectBytes(); + + /** + *
+     * TimeAdded represents the time at which the taint was added or
+     * (only in a DeviceTaintRule) the effect was modified.
+     * Added automatically during create or update if not set.
+     * In addition, in a DeviceTaintRule a value provided during
+     * an update gets replaced with the current time if the provided
+     * value is the same as the old one and the new effect is different.
+     * Changing the key and/or value while keeping the effect unchanged
+     * is possible and does not update the time stamp because the eviction
+     * which uses it is either already started (NoExecute) or
+     * not started yet (NoEffect, NoSchedule).
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; + */ + boolean hasTimeAdded(); + /** + *
+     * TimeAdded represents the time at which the taint was added or
+     * (only in a DeviceTaintRule) the effect was modified.
+     * Added automatically during create or update if not set.
+     * In addition, in a DeviceTaintRule a value provided during
+     * an update gets replaced with the current time if the provided
+     * value is the same as the old one and the new effect is different.
+     * Changing the key and/or value while keeping the effect unchanged
+     * is possible and does not update the time stamp because the eviction
+     * which uses it is either already started (NoExecute) or
+     * not started yet (NoEffect, NoSchedule).
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; + */ + io.kubernetes.client.proto.Meta.Time getTimeAdded(); + /** + *
+     * TimeAdded represents the time at which the taint was added or
+     * (only in a DeviceTaintRule) the effect was modified.
+     * Added automatically during create or update if not set.
+     * In addition, in a DeviceTaintRule a value provided during
+     * an update gets replaced with the current time if the provided
+     * value is the same as the old one and the new effect is different.
+     * Changing the key and/or value while keeping the effect unchanged
+     * is possible and does not update the time stamp because the eviction
+     * which uses it is either already started (NoExecute) or
+     * not started yet (NoEffect, NoSchedule).
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; + */ + io.kubernetes.client.proto.Meta.TimeOrBuilder getTimeAddedOrBuilder(); + } + /** + *
+   * The device this taint is attached to has the "effect" on
+   * any claim which does not tolerate the taint and, through the claim,
+   * to pods using the claim.
+   * +protobuf.options.(gogoproto.goproto_stringer)=false
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceTaint} + */ + public static final class DeviceTaint extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceTaint) + DeviceTaintOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceTaint.newBuilder() to construct. + private DeviceTaint(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceTaint() { + key_ = ""; + value_ = ""; + effect_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceTaint( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + key_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + value_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + effect_ = bs; + break; + } + case 34: { + io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = timeAdded_.toBuilder(); + } + timeAdded_ = input.readMessage(io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeAdded_); + timeAdded_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceTaint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceTaint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceTaint.class, io.kubernetes.client.proto.V1Resource.DeviceTaint.Builder.class); + } + + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + *
+     * The taint key to be applied to a device.
+     * Must be a label name.
+     * +required
+     * 
+ * + * optional string key = 1; + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * The taint key to be applied to a device.
+     * Must be a label name.
+     * +required
+     * 
+ * + * optional string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } + return s; + } + } + /** + *
+     * The taint key to be applied to a device.
+     * Must be a label name.
+     * +required
+     * 
+ * + * optional string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private volatile java.lang.Object value_; + /** + *
+     * The taint value corresponding to the taint key.
+     * Must be a label value.
+     * +optional
+     * 
+ * + * optional string value = 2; + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * The taint value corresponding to the taint key.
+     * Must be a label value.
+     * +optional
+     * 
+ * + * optional string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + value_ = s; + } + return s; + } + } + /** + *
+     * The taint value corresponding to the taint key.
+     * Must be a label value.
+     * +optional
+     * 
+ * + * optional string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EFFECT_FIELD_NUMBER = 3; + private volatile java.lang.Object effect_; + /** + *
+     * The effect of the taint on claims that do not tolerate the taint
+     * and through such claims on the pods using them.
+     * Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for
+     * nodes is not valid here. More effects may get added in the future.
+     * Consumers must treat unknown effects like None.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string effect = 3; + */ + public boolean hasEffect() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * The effect of the taint on claims that do not tolerate the taint
+     * and through such claims on the pods using them.
+     * Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for
+     * nodes is not valid here. More effects may get added in the future.
+     * Consumers must treat unknown effects like None.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string effect = 3; + */ + public java.lang.String getEffect() { + java.lang.Object ref = effect_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + effect_ = s; + } + return s; + } + } + /** + *
+     * The effect of the taint on claims that do not tolerate the taint
+     * and through such claims on the pods using them.
+     * Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for
+     * nodes is not valid here. More effects may get added in the future.
+     * Consumers must treat unknown effects like None.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * 
+ * + * optional string effect = 3; + */ + public com.google.protobuf.ByteString + getEffectBytes() { + java.lang.Object ref = effect_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + effect_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TIMEADDED_FIELD_NUMBER = 4; + private io.kubernetes.client.proto.Meta.Time timeAdded_; + /** + *
+     * TimeAdded represents the time at which the taint was added or
+     * (only in a DeviceTaintRule) the effect was modified.
+     * Added automatically during create or update if not set.
+     * In addition, in a DeviceTaintRule a value provided during
+     * an update gets replaced with the current time if the provided
+     * value is the same as the old one and the new effect is different.
+     * Changing the key and/or value while keeping the effect unchanged
+     * is possible and does not update the time stamp because the eviction
+     * which uses it is either already started (NoExecute) or
+     * not started yet (NoEffect, NoSchedule).
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; + */ + public boolean hasTimeAdded() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * TimeAdded represents the time at which the taint was added or
+     * (only in a DeviceTaintRule) the effect was modified.
+     * Added automatically during create or update if not set.
+     * In addition, in a DeviceTaintRule a value provided during
+     * an update gets replaced with the current time if the provided
+     * value is the same as the old one and the new effect is different.
+     * Changing the key and/or value while keeping the effect unchanged
+     * is possible and does not update the time stamp because the eviction
+     * which uses it is either already started (NoExecute) or
+     * not started yet (NoEffect, NoSchedule).
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; + */ + public io.kubernetes.client.proto.Meta.Time getTimeAdded() { + return timeAdded_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : timeAdded_; + } + /** + *
+     * TimeAdded represents the time at which the taint was added or
+     * (only in a DeviceTaintRule) the effect was modified.
+     * Added automatically during create or update if not set.
+     * In addition, in a DeviceTaintRule a value provided during
+     * an update gets replaced with the current time if the provided
+     * value is the same as the old one and the new effect is different.
+     * Changing the key and/or value while keeping the effect unchanged
+     * is possible and does not update the time stamp because the eviction
+     * which uses it is either already started (NoExecute) or
+     * not started yet (NoEffect, NoSchedule).
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getTimeAddedOrBuilder() { + return timeAdded_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : timeAdded_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, effect_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, getTimeAdded()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, effect_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTimeAdded()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceTaint)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceTaint other = (io.kubernetes.client.proto.V1Resource.DeviceTaint) obj; + + boolean result = true; + result = result && (hasKey() == other.hasKey()); + if (hasKey()) { + result = result && getKey() + .equals(other.getKey()); + } + result = result && (hasValue() == other.hasValue()); + if (hasValue()) { + result = result && getValue() + .equals(other.getValue()); + } + result = result && (hasEffect() == other.hasEffect()); + if (hasEffect()) { + result = result && getEffect() + .equals(other.getEffect()); + } + result = result && (hasTimeAdded() == other.hasTimeAdded()); + if (hasTimeAdded()) { + result = result && getTimeAdded() + .equals(other.getTimeAdded()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasKey()) { + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + } + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + if (hasEffect()) { + hash = (37 * hash) + EFFECT_FIELD_NUMBER; + hash = (53 * hash) + getEffect().hashCode(); + } + if (hasTimeAdded()) { + hash = (37 * hash) + TIMEADDED_FIELD_NUMBER; + hash = (53 * hash) + getTimeAdded().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceTaint parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceTaint parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceTaint parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceTaint parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceTaint parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceTaint parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceTaint parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceTaint parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceTaint parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceTaint parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceTaint parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceTaint parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceTaint prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The device this taint is attached to has the "effect" on
+     * any claim which does not tolerate the taint and, through the claim,
+     * to pods using the claim.
+     * +protobuf.options.(gogoproto.goproto_stringer)=false
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceTaint} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceTaint) + io.kubernetes.client.proto.V1Resource.DeviceTaintOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceTaint_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceTaint_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceTaint.class, io.kubernetes.client.proto.V1Resource.DeviceTaint.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceTaint.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTimeAddedFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + value_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + effect_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + if (timeAddedBuilder_ == null) { + timeAdded_ = null; + } else { + timeAddedBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceTaint_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceTaint getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceTaint.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceTaint build() { + io.kubernetes.client.proto.V1Resource.DeviceTaint result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceTaint buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceTaint result = new io.kubernetes.client.proto.V1Resource.DeviceTaint(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.key_ = key_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.value_ = value_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.effect_ = effect_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (timeAddedBuilder_ == null) { + result.timeAdded_ = timeAdded_; + } else { + result.timeAdded_ = timeAddedBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceTaint) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceTaint)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceTaint other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceTaint.getDefaultInstance()) return this; + if (other.hasKey()) { + bitField0_ |= 0x00000001; + key_ = other.key_; + onChanged(); + } + if (other.hasValue()) { + bitField0_ |= 0x00000002; + value_ = other.value_; + onChanged(); + } + if (other.hasEffect()) { + bitField0_ |= 0x00000004; + effect_ = other.effect_; + onChanged(); + } + if (other.hasTimeAdded()) { + mergeTimeAdded(other.getTimeAdded()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceTaint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceTaint) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object key_ = ""; + /** + *
+       * The taint key to be applied to a device.
+       * Must be a label name.
+       * +required
+       * 
+ * + * optional string key = 1; + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * The taint key to be applied to a device.
+       * Must be a label name.
+       * +required
+       * 
+ * + * optional string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The taint key to be applied to a device.
+       * Must be a label name.
+       * +required
+       * 
+ * + * optional string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The taint key to be applied to a device.
+       * Must be a label name.
+       * +required
+       * 
+ * + * optional string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + /** + *
+       * The taint key to be applied to a device.
+       * Must be a label name.
+       * +required
+       * 
+ * + * optional string key = 1; + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000001); + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + *
+       * The taint key to be applied to a device.
+       * Must be a label name.
+       * +required
+       * 
+ * + * optional string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + *
+       * The taint value corresponding to the taint key.
+       * Must be a label value.
+       * +optional
+       * 
+ * + * optional string value = 2; + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * The taint value corresponding to the taint key.
+       * Must be a label value.
+       * +optional
+       * 
+ * + * optional string value = 2; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The taint value corresponding to the taint key.
+       * Must be a label value.
+       * +optional
+       * 
+ * + * optional string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The taint value corresponding to the taint key.
+       * Must be a label value.
+       * +optional
+       * 
+ * + * optional string value = 2; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + value_ = value; + onChanged(); + return this; + } + /** + *
+       * The taint value corresponding to the taint key.
+       * Must be a label value.
+       * +optional
+       * 
+ * + * optional string value = 2; + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
+       * The taint value corresponding to the taint key.
+       * Must be a label value.
+       * +optional
+       * 
+ * + * optional string value = 2; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + value_ = value; + onChanged(); + return this; + } + + private java.lang.Object effect_ = ""; + /** + *
+       * The effect of the taint on claims that do not tolerate the taint
+       * and through such claims on the pods using them.
+       * Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for
+       * nodes is not valid here. More effects may get added in the future.
+       * Consumers must treat unknown effects like None.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string effect = 3; + */ + public boolean hasEffect() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * The effect of the taint on claims that do not tolerate the taint
+       * and through such claims on the pods using them.
+       * Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for
+       * nodes is not valid here. More effects may get added in the future.
+       * Consumers must treat unknown effects like None.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string effect = 3; + */ + public java.lang.String getEffect() { + java.lang.Object ref = effect_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + effect_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * The effect of the taint on claims that do not tolerate the taint
+       * and through such claims on the pods using them.
+       * Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for
+       * nodes is not valid here. More effects may get added in the future.
+       * Consumers must treat unknown effects like None.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string effect = 3; + */ + public com.google.protobuf.ByteString + getEffectBytes() { + java.lang.Object ref = effect_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + effect_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * The effect of the taint on claims that do not tolerate the taint
+       * and through such claims on the pods using them.
+       * Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for
+       * nodes is not valid here. More effects may get added in the future.
+       * Consumers must treat unknown effects like None.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string effect = 3; + */ + public Builder setEffect( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + effect_ = value; + onChanged(); + return this; + } + /** + *
+       * The effect of the taint on claims that do not tolerate the taint
+       * and through such claims on the pods using them.
+       * Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for
+       * nodes is not valid here. More effects may get added in the future.
+       * Consumers must treat unknown effects like None.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string effect = 3; + */ + public Builder clearEffect() { + bitField0_ = (bitField0_ & ~0x00000004); + effect_ = getDefaultInstance().getEffect(); + onChanged(); + return this; + } + /** + *
+       * The effect of the taint on claims that do not tolerate the taint
+       * and through such claims on the pods using them.
+       * Valid effects are None, NoSchedule and NoExecute. PreferNoSchedule as used for
+       * nodes is not valid here. More effects may get added in the future.
+       * Consumers must treat unknown effects like None.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * 
+ * + * optional string effect = 3; + */ + public Builder setEffectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + effect_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.Meta.Time timeAdded_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> timeAddedBuilder_; + /** + *
+       * TimeAdded represents the time at which the taint was added or
+       * (only in a DeviceTaintRule) the effect was modified.
+       * Added automatically during create or update if not set.
+       * In addition, in a DeviceTaintRule a value provided during
+       * an update gets replaced with the current time if the provided
+       * value is the same as the old one and the new effect is different.
+       * Changing the key and/or value while keeping the effect unchanged
+       * is possible and does not update the time stamp because the eviction
+       * which uses it is either already started (NoExecute) or
+       * not started yet (NoEffect, NoSchedule).
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; + */ + public boolean hasTimeAdded() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * TimeAdded represents the time at which the taint was added or
+       * (only in a DeviceTaintRule) the effect was modified.
+       * Added automatically during create or update if not set.
+       * In addition, in a DeviceTaintRule a value provided during
+       * an update gets replaced with the current time if the provided
+       * value is the same as the old one and the new effect is different.
+       * Changing the key and/or value while keeping the effect unchanged
+       * is possible and does not update the time stamp because the eviction
+       * which uses it is either already started (NoExecute) or
+       * not started yet (NoEffect, NoSchedule).
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; + */ + public io.kubernetes.client.proto.Meta.Time getTimeAdded() { + if (timeAddedBuilder_ == null) { + return timeAdded_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : timeAdded_; + } else { + return timeAddedBuilder_.getMessage(); + } + } + /** + *
+       * TimeAdded represents the time at which the taint was added or
+       * (only in a DeviceTaintRule) the effect was modified.
+       * Added automatically during create or update if not set.
+       * In addition, in a DeviceTaintRule a value provided during
+       * an update gets replaced with the current time if the provided
+       * value is the same as the old one and the new effect is different.
+       * Changing the key and/or value while keeping the effect unchanged
+       * is possible and does not update the time stamp because the eviction
+       * which uses it is either already started (NoExecute) or
+       * not started yet (NoEffect, NoSchedule).
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; + */ + public Builder setTimeAdded(io.kubernetes.client.proto.Meta.Time value) { + if (timeAddedBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + timeAdded_ = value; + onChanged(); + } else { + timeAddedBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * TimeAdded represents the time at which the taint was added or
+       * (only in a DeviceTaintRule) the effect was modified.
+       * Added automatically during create or update if not set.
+       * In addition, in a DeviceTaintRule a value provided during
+       * an update gets replaced with the current time if the provided
+       * value is the same as the old one and the new effect is different.
+       * Changing the key and/or value while keeping the effect unchanged
+       * is possible and does not update the time stamp because the eviction
+       * which uses it is either already started (NoExecute) or
+       * not started yet (NoEffect, NoSchedule).
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; + */ + public Builder setTimeAdded( + io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { + if (timeAddedBuilder_ == null) { + timeAdded_ = builderForValue.build(); + onChanged(); + } else { + timeAddedBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * TimeAdded represents the time at which the taint was added or
+       * (only in a DeviceTaintRule) the effect was modified.
+       * Added automatically during create or update if not set.
+       * In addition, in a DeviceTaintRule a value provided during
+       * an update gets replaced with the current time if the provided
+       * value is the same as the old one and the new effect is different.
+       * Changing the key and/or value while keeping the effect unchanged
+       * is possible and does not update the time stamp because the eviction
+       * which uses it is either already started (NoExecute) or
+       * not started yet (NoEffect, NoSchedule).
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; + */ + public Builder mergeTimeAdded(io.kubernetes.client.proto.Meta.Time value) { + if (timeAddedBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + timeAdded_ != null && + timeAdded_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { + timeAdded_ = + io.kubernetes.client.proto.Meta.Time.newBuilder(timeAdded_).mergeFrom(value).buildPartial(); + } else { + timeAdded_ = value; + } + onChanged(); + } else { + timeAddedBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * TimeAdded represents the time at which the taint was added or
+       * (only in a DeviceTaintRule) the effect was modified.
+       * Added automatically during create or update if not set.
+       * In addition, in a DeviceTaintRule a value provided during
+       * an update gets replaced with the current time if the provided
+       * value is the same as the old one and the new effect is different.
+       * Changing the key and/or value while keeping the effect unchanged
+       * is possible and does not update the time stamp because the eviction
+       * which uses it is either already started (NoExecute) or
+       * not started yet (NoEffect, NoSchedule).
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; + */ + public Builder clearTimeAdded() { + if (timeAddedBuilder_ == null) { + timeAdded_ = null; + onChanged(); + } else { + timeAddedBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + *
+       * TimeAdded represents the time at which the taint was added or
+       * (only in a DeviceTaintRule) the effect was modified.
+       * Added automatically during create or update if not set.
+       * In addition, in a DeviceTaintRule a value provided during
+       * an update gets replaced with the current time if the provided
+       * value is the same as the old one and the new effect is different.
+       * Changing the key and/or value while keeping the effect unchanged
+       * is possible and does not update the time stamp because the eviction
+       * which uses it is either already started (NoExecute) or
+       * not started yet (NoEffect, NoSchedule).
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; + */ + public io.kubernetes.client.proto.Meta.Time.Builder getTimeAddedBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getTimeAddedFieldBuilder().getBuilder(); + } + /** + *
+       * TimeAdded represents the time at which the taint was added or
+       * (only in a DeviceTaintRule) the effect was modified.
+       * Added automatically during create or update if not set.
+       * In addition, in a DeviceTaintRule a value provided during
+       * an update gets replaced with the current time if the provided
+       * value is the same as the old one and the new effect is different.
+       * Changing the key and/or value while keeping the effect unchanged
+       * is possible and does not update the time stamp because the eviction
+       * which uses it is either already started (NoExecute) or
+       * not started yet (NoEffect, NoSchedule).
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getTimeAddedOrBuilder() { + if (timeAddedBuilder_ != null) { + return timeAddedBuilder_.getMessageOrBuilder(); + } else { + return timeAdded_ == null ? + io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : timeAdded_; + } + } + /** + *
+       * TimeAdded represents the time at which the taint was added or
+       * (only in a DeviceTaintRule) the effect was modified.
+       * Added automatically during create or update if not set.
+       * In addition, in a DeviceTaintRule a value provided during
+       * an update gets replaced with the current time if the provided
+       * value is the same as the old one and the new effect is different.
+       * Changing the key and/or value while keeping the effect unchanged
+       * is possible and does not update the time stamp because the eviction
+       * which uses it is either already started (NoExecute) or
+       * not started yet (NoEffect, NoSchedule).
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time timeAdded = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> + getTimeAddedFieldBuilder() { + if (timeAddedBuilder_ == null) { + timeAddedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( + getTimeAdded(), + getParentForChildren(), + isClean()); + timeAdded_ = null; + } + return timeAddedBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceTaint) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceTaint) + private static final io.kubernetes.client.proto.V1Resource.DeviceTaint DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceTaint(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceTaint getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceTaint parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceTaint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceTaint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeviceTolerationOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.DeviceToleration) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Key is the taint key that the toleration applies to. Empty means match all taint keys.
+     * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
+     * Must be a label name.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-label-key
+     * 
+ * + * optional string key = 1; + */ + boolean hasKey(); + /** + *
+     * Key is the taint key that the toleration applies to. Empty means match all taint keys.
+     * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
+     * Must be a label name.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-label-key
+     * 
+ * + * optional string key = 1; + */ + java.lang.String getKey(); + /** + *
+     * Key is the taint key that the toleration applies to. Empty means match all taint keys.
+     * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
+     * Must be a label name.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-label-key
+     * 
+ * + * optional string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + *
+     * Operator represents a key's relationship to the value.
+     * Valid operators are Exists and Equal. Defaults to Equal.
+     * Exists is equivalent to wildcard for value, so that a ResourceClaim can
+     * tolerate all taints of a particular category.
+     * +optional
+     * +default="Equal"
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string operator = 2; + */ + boolean hasOperator(); + /** + *
+     * Operator represents a key's relationship to the value.
+     * Valid operators are Exists and Equal. Defaults to Equal.
+     * Exists is equivalent to wildcard for value, so that a ResourceClaim can
+     * tolerate all taints of a particular category.
+     * +optional
+     * +default="Equal"
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string operator = 2; + */ + java.lang.String getOperator(); + /** + *
+     * Operator represents a key's relationship to the value.
+     * Valid operators are Exists and Equal. Defaults to Equal.
+     * Exists is equivalent to wildcard for value, so that a ResourceClaim can
+     * tolerate all taints of a particular category.
+     * +optional
+     * +default="Equal"
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string operator = 2; + */ + com.google.protobuf.ByteString + getOperatorBytes(); + + /** + *
+     * Value is the taint value the toleration matches to.
+     * If the operator is Exists, the value must be empty, otherwise just a regular string.
+     * Must be a label value.
+     * +optional
+     * 
+ * + * optional string value = 3; + */ + boolean hasValue(); + /** + *
+     * Value is the taint value the toleration matches to.
+     * If the operator is Exists, the value must be empty, otherwise just a regular string.
+     * Must be a label value.
+     * +optional
+     * 
+ * + * optional string value = 3; + */ + java.lang.String getValue(); + /** + *
+     * Value is the taint value the toleration matches to.
+     * If the operator is Exists, the value must be empty, otherwise just a regular string.
+     * Must be a label value.
+     * +optional
+     * 
+ * + * optional string value = 3; + */ + com.google.protobuf.ByteString + getValueBytes(); + + /** + *
+     * Effect indicates the taint effect to match. Empty means match all taint effects.
+     * When specified, allowed values are NoSchedule and NoExecute.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string effect = 4; + */ + boolean hasEffect(); + /** + *
+     * Effect indicates the taint effect to match. Empty means match all taint effects.
+     * When specified, allowed values are NoSchedule and NoExecute.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string effect = 4; + */ + java.lang.String getEffect(); + /** + *
+     * Effect indicates the taint effect to match. Empty means match all taint effects.
+     * When specified, allowed values are NoSchedule and NoExecute.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string effect = 4; + */ + com.google.protobuf.ByteString + getEffectBytes(); + + /** + *
+     * TolerationSeconds represents the period of time the toleration (which must be
+     * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
+     * it is not set, which means tolerate the taint forever (do not evict). Zero and
+     * negative values will be treated as 0 (evict immediately) by the system.
+     * If larger than zero, the time when the pod needs to be evicted is calculated as <time when
+     * taint was adedd> + <toleration seconds>.
+     * +optional
+     * 
+ * + * optional int64 tolerationSeconds = 5; + */ + boolean hasTolerationSeconds(); + /** + *
+     * TolerationSeconds represents the period of time the toleration (which must be
+     * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
+     * it is not set, which means tolerate the taint forever (do not evict). Zero and
+     * negative values will be treated as 0 (evict immediately) by the system.
+     * If larger than zero, the time when the pod needs to be evicted is calculated as <time when
+     * taint was adedd> + <toleration seconds>.
+     * +optional
+     * 
+ * + * optional int64 tolerationSeconds = 5; + */ + long getTolerationSeconds(); + } + /** + *
+   * The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches
+   * the triple <key,value,effect> using the matching operator <operator>.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceToleration} + */ + public static final class DeviceToleration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.DeviceToleration) + DeviceTolerationOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeviceToleration.newBuilder() to construct. + private DeviceToleration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeviceToleration() { + key_ = ""; + operator_ = ""; + value_ = ""; + effect_ = ""; + tolerationSeconds_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeviceToleration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + key_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + operator_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + value_ = bs; + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + effect_ = bs; + break; + } + case 40: { + bitField0_ |= 0x00000010; + tolerationSeconds_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceToleration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceToleration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceToleration.class, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder.class); + } + + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + private volatile java.lang.Object key_; + /** + *
+     * Key is the taint key that the toleration applies to. Empty means match all taint keys.
+     * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
+     * Must be a label name.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-label-key
+     * 
+ * + * optional string key = 1; + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Key is the taint key that the toleration applies to. Empty means match all taint keys.
+     * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
+     * Must be a label name.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-label-key
+     * 
+ * + * optional string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } + return s; + } + } + /** + *
+     * Key is the taint key that the toleration applies to. Empty means match all taint keys.
+     * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
+     * Must be a label name.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-label-key
+     * 
+ * + * optional string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATOR_FIELD_NUMBER = 2; + private volatile java.lang.Object operator_; + /** + *
+     * Operator represents a key's relationship to the value.
+     * Valid operators are Exists and Equal. Defaults to Equal.
+     * Exists is equivalent to wildcard for value, so that a ResourceClaim can
+     * tolerate all taints of a particular category.
+     * +optional
+     * +default="Equal"
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string operator = 2; + */ + public boolean hasOperator() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * Operator represents a key's relationship to the value.
+     * Valid operators are Exists and Equal. Defaults to Equal.
+     * Exists is equivalent to wildcard for value, so that a ResourceClaim can
+     * tolerate all taints of a particular category.
+     * +optional
+     * +default="Equal"
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string operator = 2; + */ + public java.lang.String getOperator() { + java.lang.Object ref = operator_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + operator_ = s; + } + return s; + } + } + /** + *
+     * Operator represents a key's relationship to the value.
+     * Valid operators are Exists and Equal. Defaults to Equal.
+     * Exists is equivalent to wildcard for value, so that a ResourceClaim can
+     * tolerate all taints of a particular category.
+     * +optional
+     * +default="Equal"
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string operator = 2; + */ + public com.google.protobuf.ByteString + getOperatorBytes() { + java.lang.Object ref = operator_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 3; + private volatile java.lang.Object value_; + /** + *
+     * Value is the taint value the toleration matches to.
+     * If the operator is Exists, the value must be empty, otherwise just a regular string.
+     * Must be a label value.
+     * +optional
+     * 
+ * + * optional string value = 3; + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * Value is the taint value the toleration matches to.
+     * If the operator is Exists, the value must be empty, otherwise just a regular string.
+     * Must be a label value.
+     * +optional
+     * 
+ * + * optional string value = 3; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + value_ = s; + } + return s; + } + } + /** + *
+     * Value is the taint value the toleration matches to.
+     * If the operator is Exists, the value must be empty, otherwise just a regular string.
+     * Must be a label value.
+     * +optional
+     * 
+ * + * optional string value = 3; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EFFECT_FIELD_NUMBER = 4; + private volatile java.lang.Object effect_; + /** + *
+     * Effect indicates the taint effect to match. Empty means match all taint effects.
+     * When specified, allowed values are NoSchedule and NoExecute.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string effect = 4; + */ + public boolean hasEffect() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * Effect indicates the taint effect to match. Empty means match all taint effects.
+     * When specified, allowed values are NoSchedule and NoExecute.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string effect = 4; + */ + public java.lang.String getEffect() { + java.lang.Object ref = effect_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + effect_ = s; + } + return s; + } + } + /** + *
+     * Effect indicates the taint effect to match. Empty means match all taint effects.
+     * When specified, allowed values are NoSchedule and NoExecute.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string effect = 4; + */ + public com.google.protobuf.ByteString + getEffectBytes() { + java.lang.Object ref = effect_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + effect_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOLERATIONSECONDS_FIELD_NUMBER = 5; + private long tolerationSeconds_; + /** + *
+     * TolerationSeconds represents the period of time the toleration (which must be
+     * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
+     * it is not set, which means tolerate the taint forever (do not evict). Zero and
+     * negative values will be treated as 0 (evict immediately) by the system.
+     * If larger than zero, the time when the pod needs to be evicted is calculated as <time when
+     * taint was adedd> + <toleration seconds>.
+     * +optional
+     * 
+ * + * optional int64 tolerationSeconds = 5; + */ + public boolean hasTolerationSeconds() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+     * TolerationSeconds represents the period of time the toleration (which must be
+     * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
+     * it is not set, which means tolerate the taint forever (do not evict). Zero and
+     * negative values will be treated as 0 (evict immediately) by the system.
+     * If larger than zero, the time when the pod needs to be evicted is calculated as <time when
+     * taint was adedd> + <toleration seconds>.
+     * +optional
+     * 
+ * + * optional int64 tolerationSeconds = 5; + */ + public long getTolerationSeconds() { + return tolerationSeconds_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, operator_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, effect_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeInt64(5, tolerationSeconds_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, operator_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, effect_); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, tolerationSeconds_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.DeviceToleration)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.DeviceToleration other = (io.kubernetes.client.proto.V1Resource.DeviceToleration) obj; + + boolean result = true; + result = result && (hasKey() == other.hasKey()); + if (hasKey()) { + result = result && getKey() + .equals(other.getKey()); + } + result = result && (hasOperator() == other.hasOperator()); + if (hasOperator()) { + result = result && getOperator() + .equals(other.getOperator()); + } + result = result && (hasValue() == other.hasValue()); + if (hasValue()) { + result = result && getValue() + .equals(other.getValue()); + } + result = result && (hasEffect() == other.hasEffect()); + if (hasEffect()) { + result = result && getEffect() + .equals(other.getEffect()); + } + result = result && (hasTolerationSeconds() == other.hasTolerationSeconds()); + if (hasTolerationSeconds()) { + result = result && (getTolerationSeconds() + == other.getTolerationSeconds()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasKey()) { + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + } + if (hasOperator()) { + hash = (37 * hash) + OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + getOperator().hashCode(); + } + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + if (hasEffect()) { + hash = (37 * hash) + EFFECT_FIELD_NUMBER; + hash = (53 * hash) + getEffect().hashCode(); + } + if (hasTolerationSeconds()) { + hash = (37 * hash) + TOLERATIONSECONDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTolerationSeconds()); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.DeviceToleration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceToleration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceToleration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceToleration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceToleration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.DeviceToleration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceToleration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceToleration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceToleration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceToleration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.DeviceToleration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.DeviceToleration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.DeviceToleration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * The ResourceClaim this DeviceToleration is attached to tolerates any taint that matches
+     * the triple <key,value,effect> using the matching operator <operator>.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.DeviceToleration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.DeviceToleration) + io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceToleration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceToleration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.DeviceToleration.class, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.DeviceToleration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + operator_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + value_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + effect_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + tolerationSeconds_ = 0L; + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_DeviceToleration_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceToleration getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.DeviceToleration.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceToleration build() { + io.kubernetes.client.proto.V1Resource.DeviceToleration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceToleration buildPartial() { + io.kubernetes.client.proto.V1Resource.DeviceToleration result = new io.kubernetes.client.proto.V1Resource.DeviceToleration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.key_ = key_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.operator_ = operator_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.value_ = value_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.effect_ = effect_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.tolerationSeconds_ = tolerationSeconds_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.DeviceToleration) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.DeviceToleration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.DeviceToleration other) { + if (other == io.kubernetes.client.proto.V1Resource.DeviceToleration.getDefaultInstance()) return this; + if (other.hasKey()) { + bitField0_ |= 0x00000001; + key_ = other.key_; + onChanged(); + } + if (other.hasOperator()) { + bitField0_ |= 0x00000002; + operator_ = other.operator_; + onChanged(); + } + if (other.hasValue()) { + bitField0_ |= 0x00000004; + value_ = other.value_; + onChanged(); + } + if (other.hasEffect()) { + bitField0_ |= 0x00000008; + effect_ = other.effect_; + onChanged(); + } + if (other.hasTolerationSeconds()) { + setTolerationSeconds(other.getTolerationSeconds()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.DeviceToleration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.DeviceToleration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object key_ = ""; + /** + *
+       * Key is the taint key that the toleration applies to. Empty means match all taint keys.
+       * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
+       * Must be a label name.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-label-key
+       * 
+ * + * optional string key = 1; + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Key is the taint key that the toleration applies to. Empty means match all taint keys.
+       * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
+       * Must be a label name.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-label-key
+       * 
+ * + * optional string key = 1; + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Key is the taint key that the toleration applies to. Empty means match all taint keys.
+       * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
+       * Must be a label name.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-label-key
+       * 
+ * + * optional string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Key is the taint key that the toleration applies to. Empty means match all taint keys.
+       * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
+       * Must be a label name.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-label-key
+       * 
+ * + * optional string key = 1; + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + /** + *
+       * Key is the taint key that the toleration applies to. Empty means match all taint keys.
+       * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
+       * Must be a label name.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-label-key
+       * 
+ * + * optional string key = 1; + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000001); + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + *
+       * Key is the taint key that the toleration applies to. Empty means match all taint keys.
+       * If the key is empty, operator must be Exists; this combination means to match all values and all keys.
+       * Must be a label name.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-label-key
+       * 
+ * + * optional string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object operator_ = ""; + /** + *
+       * Operator represents a key's relationship to the value.
+       * Valid operators are Exists and Equal. Defaults to Equal.
+       * Exists is equivalent to wildcard for value, so that a ResourceClaim can
+       * tolerate all taints of a particular category.
+       * +optional
+       * +default="Equal"
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string operator = 2; + */ + public boolean hasOperator() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * Operator represents a key's relationship to the value.
+       * Valid operators are Exists and Equal. Defaults to Equal.
+       * Exists is equivalent to wildcard for value, so that a ResourceClaim can
+       * tolerate all taints of a particular category.
+       * +optional
+       * +default="Equal"
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string operator = 2; + */ + public java.lang.String getOperator() { + java.lang.Object ref = operator_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + operator_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Operator represents a key's relationship to the value.
+       * Valid operators are Exists and Equal. Defaults to Equal.
+       * Exists is equivalent to wildcard for value, so that a ResourceClaim can
+       * tolerate all taints of a particular category.
+       * +optional
+       * +default="Equal"
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string operator = 2; + */ + public com.google.protobuf.ByteString + getOperatorBytes() { + java.lang.Object ref = operator_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + operator_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Operator represents a key's relationship to the value.
+       * Valid operators are Exists and Equal. Defaults to Equal.
+       * Exists is equivalent to wildcard for value, so that a ResourceClaim can
+       * tolerate all taints of a particular category.
+       * +optional
+       * +default="Equal"
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string operator = 2; + */ + public Builder setOperator( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + operator_ = value; + onChanged(); + return this; + } + /** + *
+       * Operator represents a key's relationship to the value.
+       * Valid operators are Exists and Equal. Defaults to Equal.
+       * Exists is equivalent to wildcard for value, so that a ResourceClaim can
+       * tolerate all taints of a particular category.
+       * +optional
+       * +default="Equal"
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string operator = 2; + */ + public Builder clearOperator() { + bitField0_ = (bitField0_ & ~0x00000002); + operator_ = getDefaultInstance().getOperator(); + onChanged(); + return this; + } + /** + *
+       * Operator represents a key's relationship to the value.
+       * Valid operators are Exists and Equal. Defaults to Equal.
+       * Exists is equivalent to wildcard for value, so that a ResourceClaim can
+       * tolerate all taints of a particular category.
+       * +optional
+       * +default="Equal"
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string operator = 2; + */ + public Builder setOperatorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + operator_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + *
+       * Value is the taint value the toleration matches to.
+       * If the operator is Exists, the value must be empty, otherwise just a regular string.
+       * Must be a label value.
+       * +optional
+       * 
+ * + * optional string value = 3; + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * Value is the taint value the toleration matches to.
+       * If the operator is Exists, the value must be empty, otherwise just a regular string.
+       * Must be a label value.
+       * +optional
+       * 
+ * + * optional string value = 3; + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + value_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Value is the taint value the toleration matches to.
+       * If the operator is Exists, the value must be empty, otherwise just a regular string.
+       * Must be a label value.
+       * +optional
+       * 
+ * + * optional string value = 3; + */ + public com.google.protobuf.ByteString + getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Value is the taint value the toleration matches to.
+       * If the operator is Exists, the value must be empty, otherwise just a regular string.
+       * Must be a label value.
+       * +optional
+       * 
+ * + * optional string value = 3; + */ + public Builder setValue( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + value_ = value; + onChanged(); + return this; + } + /** + *
+       * Value is the taint value the toleration matches to.
+       * If the operator is Exists, the value must be empty, otherwise just a regular string.
+       * Must be a label value.
+       * +optional
+       * 
+ * + * optional string value = 3; + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000004); + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + *
+       * Value is the taint value the toleration matches to.
+       * If the operator is Exists, the value must be empty, otherwise just a regular string.
+       * Must be a label value.
+       * +optional
+       * 
+ * + * optional string value = 3; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + value_ = value; + onChanged(); + return this; + } + + private java.lang.Object effect_ = ""; + /** + *
+       * Effect indicates the taint effect to match. Empty means match all taint effects.
+       * When specified, allowed values are NoSchedule and NoExecute.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string effect = 4; + */ + public boolean hasEffect() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * Effect indicates the taint effect to match. Empty means match all taint effects.
+       * When specified, allowed values are NoSchedule and NoExecute.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string effect = 4; + */ + public java.lang.String getEffect() { + java.lang.Object ref = effect_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + effect_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Effect indicates the taint effect to match. Empty means match all taint effects.
+       * When specified, allowed values are NoSchedule and NoExecute.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string effect = 4; + */ + public com.google.protobuf.ByteString + getEffectBytes() { + java.lang.Object ref = effect_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + effect_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Effect indicates the taint effect to match. Empty means match all taint effects.
+       * When specified, allowed values are NoSchedule and NoExecute.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string effect = 4; + */ + public Builder setEffect( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + effect_ = value; + onChanged(); + return this; + } + /** + *
+       * Effect indicates the taint effect to match. Empty means match all taint effects.
+       * When specified, allowed values are NoSchedule and NoExecute.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string effect = 4; + */ + public Builder clearEffect() { + bitField0_ = (bitField0_ & ~0x00000008); + effect_ = getDefaultInstance().getEffect(); + onChanged(); + return this; + } + /** + *
+       * Effect indicates the taint effect to match. Empty means match all taint effects.
+       * When specified, allowed values are NoSchedule and NoExecute.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string effect = 4; + */ + public Builder setEffectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + effect_ = value; + onChanged(); + return this; + } + + private long tolerationSeconds_ ; + /** + *
+       * TolerationSeconds represents the period of time the toleration (which must be
+       * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
+       * it is not set, which means tolerate the taint forever (do not evict). Zero and
+       * negative values will be treated as 0 (evict immediately) by the system.
+       * If larger than zero, the time when the pod needs to be evicted is calculated as <time when
+       * taint was adedd> + <toleration seconds>.
+       * +optional
+       * 
+ * + * optional int64 tolerationSeconds = 5; + */ + public boolean hasTolerationSeconds() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+       * TolerationSeconds represents the period of time the toleration (which must be
+       * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
+       * it is not set, which means tolerate the taint forever (do not evict). Zero and
+       * negative values will be treated as 0 (evict immediately) by the system.
+       * If larger than zero, the time when the pod needs to be evicted is calculated as <time when
+       * taint was adedd> + <toleration seconds>.
+       * +optional
+       * 
+ * + * optional int64 tolerationSeconds = 5; + */ + public long getTolerationSeconds() { + return tolerationSeconds_; + } + /** + *
+       * TolerationSeconds represents the period of time the toleration (which must be
+       * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
+       * it is not set, which means tolerate the taint forever (do not evict). Zero and
+       * negative values will be treated as 0 (evict immediately) by the system.
+       * If larger than zero, the time when the pod needs to be evicted is calculated as <time when
+       * taint was adedd> + <toleration seconds>.
+       * +optional
+       * 
+ * + * optional int64 tolerationSeconds = 5; + */ + public Builder setTolerationSeconds(long value) { + bitField0_ |= 0x00000010; + tolerationSeconds_ = value; + onChanged(); + return this; + } + /** + *
+       * TolerationSeconds represents the period of time the toleration (which must be
+       * of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
+       * it is not set, which means tolerate the taint forever (do not evict). Zero and
+       * negative values will be treated as 0 (evict immediately) by the system.
+       * If larger than zero, the time when the pod needs to be evicted is calculated as <time when
+       * taint was adedd> + <toleration seconds>.
+       * +optional
+       * 
+ * + * optional int64 tolerationSeconds = 5; + */ + public Builder clearTolerationSeconds() { + bitField0_ = (bitField0_ & ~0x00000010); + tolerationSeconds_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.DeviceToleration) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.DeviceToleration) + private static final io.kubernetes.client.proto.V1Resource.DeviceToleration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.DeviceToleration(); + } + + public static io.kubernetes.client.proto.V1Resource.DeviceToleration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeviceToleration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeviceToleration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.DeviceToleration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ExactDeviceRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.ExactDeviceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * DeviceClassName references a specific DeviceClass, which can define
+     * additional configuration and selectors to be inherited by this
+     * request.
+     * A DeviceClassName is required.
+     * Administrators may use this to restrict which devices may get
+     * requested by only installing classes with selectors for permitted
+     * devices. If users are free to request anything without restrictions,
+     * then administrators can create an empty DeviceClass for users
+     * to reference.
+     * +required
+     * 
+ * + * optional string deviceClassName = 1; + */ + boolean hasDeviceClassName(); + /** + *
+     * DeviceClassName references a specific DeviceClass, which can define
+     * additional configuration and selectors to be inherited by this
+     * request.
+     * A DeviceClassName is required.
+     * Administrators may use this to restrict which devices may get
+     * requested by only installing classes with selectors for permitted
+     * devices. If users are free to request anything without restrictions,
+     * then administrators can create an empty DeviceClass for users
+     * to reference.
+     * +required
+     * 
+ * + * optional string deviceClassName = 1; + */ + java.lang.String getDeviceClassName(); + /** + *
+     * DeviceClassName references a specific DeviceClass, which can define
+     * additional configuration and selectors to be inherited by this
+     * request.
+     * A DeviceClassName is required.
+     * Administrators may use this to restrict which devices may get
+     * requested by only installing classes with selectors for permitted
+     * devices. If users are free to request anything without restrictions,
+     * then administrators can create an empty DeviceClass for users
+     * to reference.
+     * +required
+     * 
+ * + * optional string deviceClassName = 1; + */ + com.google.protobuf.ByteString + getDeviceClassNameBytes(); + + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * request. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + java.util.List + getSelectorsList(); + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * request. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + io.kubernetes.client.proto.V1Resource.DeviceSelector getSelectors(int index); + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * request. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + int getSelectorsCount(); + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * request. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + java.util.List + getSelectorsOrBuilderList(); + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * request. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder getSelectorsOrBuilder( + int index); + + /** + *
+     * AllocationMode and its related fields define how devices are allocated
+     * to satisfy this request. Supported values are:
+     * - ExactCount: This request is for a specific number of devices.
+     *   This is the default. The exact number is provided in the
+     *   count field.
+     * - All: This request is for all of the matching devices in a pool.
+     *   At least one device must exist on the node for the allocation to succeed.
+     *   Allocation will fail if some devices are already allocated,
+     *   unless adminAccess is requested.
+     * If AllocationMode is not specified, the default mode is ExactCount. If
+     * the mode is ExactCount and count is not specified, the default count is
+     * one. Any other requests must specify this field.
+     * More modes may get added in the future. Clients must refuse to handle
+     * requests with unknown modes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string allocationMode = 3; + */ + boolean hasAllocationMode(); + /** + *
+     * AllocationMode and its related fields define how devices are allocated
+     * to satisfy this request. Supported values are:
+     * - ExactCount: This request is for a specific number of devices.
+     *   This is the default. The exact number is provided in the
+     *   count field.
+     * - All: This request is for all of the matching devices in a pool.
+     *   At least one device must exist on the node for the allocation to succeed.
+     *   Allocation will fail if some devices are already allocated,
+     *   unless adminAccess is requested.
+     * If AllocationMode is not specified, the default mode is ExactCount. If
+     * the mode is ExactCount and count is not specified, the default count is
+     * one. Any other requests must specify this field.
+     * More modes may get added in the future. Clients must refuse to handle
+     * requests with unknown modes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string allocationMode = 3; + */ + java.lang.String getAllocationMode(); + /** + *
+     * AllocationMode and its related fields define how devices are allocated
+     * to satisfy this request. Supported values are:
+     * - ExactCount: This request is for a specific number of devices.
+     *   This is the default. The exact number is provided in the
+     *   count field.
+     * - All: This request is for all of the matching devices in a pool.
+     *   At least one device must exist on the node for the allocation to succeed.
+     *   Allocation will fail if some devices are already allocated,
+     *   unless adminAccess is requested.
+     * If AllocationMode is not specified, the default mode is ExactCount. If
+     * the mode is ExactCount and count is not specified, the default count is
+     * one. Any other requests must specify this field.
+     * More modes may get added in the future. Clients must refuse to handle
+     * requests with unknown modes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string allocationMode = 3; + */ + com.google.protobuf.ByteString + getAllocationModeBytes(); + + /** + *
+     * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+     * If AllocationMode is ExactCount and this field is not specified, the default is one.
+     * +optional
+     * +oneOf=AllocationMode
+     * 
+ * + * optional int64 count = 4; + */ + boolean hasCount(); + /** + *
+     * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+     * If AllocationMode is ExactCount and this field is not specified, the default is one.
+     * +optional
+     * +oneOf=AllocationMode
+     * 
+ * + * optional int64 count = 4; + */ + long getCount(); + + /** + *
+     * AdminAccess indicates that this is a claim for administrative access
+     * to the device(s). Claims with AdminAccess are expected to be used for
+     * monitoring or other management services for a device.  They ignore
+     * all ordinary claims to the device with respect to access modes and
+     * any resource allocations.
+     * Admin access is disabled if this field is unset or
+     * set to false, otherwise it is enabled.
+     * +optional
+     * +featureGate=DRAAdminAccess
+     * 
+ * + * optional bool adminAccess = 5; + */ + boolean hasAdminAccess(); + /** + *
+     * AdminAccess indicates that this is a claim for administrative access
+     * to the device(s). Claims with AdminAccess are expected to be used for
+     * monitoring or other management services for a device.  They ignore
+     * all ordinary claims to the device with respect to access modes and
+     * any resource allocations.
+     * Admin access is disabled if this field is unset or
+     * set to false, otherwise it is enabled.
+     * +optional
+     * +featureGate=DRAAdminAccess
+     * 
+ * + * optional bool adminAccess = 5; + */ + boolean getAdminAccess(); + + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + java.util.List + getTolerationsList(); + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + io.kubernetes.client.proto.V1Resource.DeviceToleration getTolerations(int index); + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + int getTolerationsCount(); + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + java.util.List + getTolerationsOrBuilderList(); + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder getTolerationsOrBuilder( + int index); + + /** + *
+     * Capacity define resource requirements against each capacity.
+     * If this field is unset and the device supports multiple allocations,
+     * the default value will be applied to each capacity according to requestPolicy.
+     * For the capacity that has no requestPolicy, default is the full capacity value.
+     * Applies to each device allocation.
+     * If Count > 1,
+     * the request fails if there aren't enough devices that meet the requirements.
+     * If AllocationMode is set to All,
+     * the request fails if there are devices that otherwise match the request,
+     * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + boolean hasCapacity(); + /** + *
+     * Capacity define resource requirements against each capacity.
+     * If this field is unset and the device supports multiple allocations,
+     * the default value will be applied to each capacity according to requestPolicy.
+     * For the capacity that has no requestPolicy, default is the full capacity value.
+     * Applies to each device allocation.
+     * If Count > 1,
+     * the request fails if there aren't enough devices that meet the requirements.
+     * If AllocationMode is set to All,
+     * the request fails if there are devices that otherwise match the request,
+     * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + io.kubernetes.client.proto.V1Resource.CapacityRequirements getCapacity(); + /** + *
+     * Capacity define resource requirements against each capacity.
+     * If this field is unset and the device supports multiple allocations,
+     * the default value will be applied to each capacity according to requestPolicy.
+     * For the capacity that has no requestPolicy, default is the full capacity value.
+     * Applies to each device allocation.
+     * If Count > 1,
+     * the request fails if there aren't enough devices that meet the requirements.
+     * If AllocationMode is set to All,
+     * the request fails if there are devices that otherwise match the request,
+     * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + io.kubernetes.client.proto.V1Resource.CapacityRequirementsOrBuilder getCapacityOrBuilder(); + } + /** + *
+   * ExactDeviceRequest is a request for one or more identical devices.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ExactDeviceRequest} + */ + public static final class ExactDeviceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.ExactDeviceRequest) + ExactDeviceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExactDeviceRequest.newBuilder() to construct. + private ExactDeviceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ExactDeviceRequest() { + deviceClassName_ = ""; + selectors_ = java.util.Collections.emptyList(); + allocationMode_ = ""; + count_ = 0L; + adminAccess_ = false; + tolerations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ExactDeviceRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + deviceClassName_ = bs; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + selectors_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + selectors_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceSelector.PARSER, extensionRegistry)); + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + allocationMode_ = bs; + break; + } + case 32: { + bitField0_ |= 0x00000004; + count_ = input.readInt64(); + break; + } + case 40: { + bitField0_ |= 0x00000008; + adminAccess_ = input.readBool(); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + tolerations_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + tolerations_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceToleration.PARSER, extensionRegistry)); + break; + } + case 58: { + io.kubernetes.client.proto.V1Resource.CapacityRequirements.Builder subBuilder = null; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + subBuilder = capacity_.toBuilder(); + } + capacity_ = input.readMessage(io.kubernetes.client.proto.V1Resource.CapacityRequirements.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(capacity_); + capacity_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000010; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + selectors_ = java.util.Collections.unmodifiableList(selectors_); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + tolerations_ = java.util.Collections.unmodifiableList(tolerations_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ExactDeviceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ExactDeviceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.class, io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.Builder.class); + } + + private int bitField0_; + public static final int DEVICECLASSNAME_FIELD_NUMBER = 1; + private volatile java.lang.Object deviceClassName_; + /** + *
+     * DeviceClassName references a specific DeviceClass, which can define
+     * additional configuration and selectors to be inherited by this
+     * request.
+     * A DeviceClassName is required.
+     * Administrators may use this to restrict which devices may get
+     * requested by only installing classes with selectors for permitted
+     * devices. If users are free to request anything without restrictions,
+     * then administrators can create an empty DeviceClass for users
+     * to reference.
+     * +required
+     * 
+ * + * optional string deviceClassName = 1; + */ + public boolean hasDeviceClassName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * DeviceClassName references a specific DeviceClass, which can define
+     * additional configuration and selectors to be inherited by this
+     * request.
+     * A DeviceClassName is required.
+     * Administrators may use this to restrict which devices may get
+     * requested by only installing classes with selectors for permitted
+     * devices. If users are free to request anything without restrictions,
+     * then administrators can create an empty DeviceClass for users
+     * to reference.
+     * +required
+     * 
+ * + * optional string deviceClassName = 1; + */ + public java.lang.String getDeviceClassName() { + java.lang.Object ref = deviceClassName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + deviceClassName_ = s; + } + return s; + } + } + /** + *
+     * DeviceClassName references a specific DeviceClass, which can define
+     * additional configuration and selectors to be inherited by this
+     * request.
+     * A DeviceClassName is required.
+     * Administrators may use this to restrict which devices may get
+     * requested by only installing classes with selectors for permitted
+     * devices. If users are free to request anything without restrictions,
+     * then administrators can create an empty DeviceClass for users
+     * to reference.
+     * +required
+     * 
+ * + * optional string deviceClassName = 1; + */ + public com.google.protobuf.ByteString + getDeviceClassNameBytes() { + java.lang.Object ref = deviceClassName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceClassName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SELECTORS_FIELD_NUMBER = 2; + private java.util.List selectors_; + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * request. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public java.util.List getSelectorsList() { + return selectors_; + } + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * request. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public java.util.List + getSelectorsOrBuilderList() { + return selectors_; + } + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * request. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public int getSelectorsCount() { + return selectors_.size(); + } + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * request. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelector getSelectors(int index) { + return selectors_.get(index); + } + /** + *
+     * Selectors define criteria which must be satisfied by a specific
+     * device in order for that device to be considered for this
+     * request. All selectors must be satisfied for a device to be
+     * considered.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder getSelectorsOrBuilder( + int index) { + return selectors_.get(index); + } + + public static final int ALLOCATIONMODE_FIELD_NUMBER = 3; + private volatile java.lang.Object allocationMode_; + /** + *
+     * AllocationMode and its related fields define how devices are allocated
+     * to satisfy this request. Supported values are:
+     * - ExactCount: This request is for a specific number of devices.
+     *   This is the default. The exact number is provided in the
+     *   count field.
+     * - All: This request is for all of the matching devices in a pool.
+     *   At least one device must exist on the node for the allocation to succeed.
+     *   Allocation will fail if some devices are already allocated,
+     *   unless adminAccess is requested.
+     * If AllocationMode is not specified, the default mode is ExactCount. If
+     * the mode is ExactCount and count is not specified, the default count is
+     * one. Any other requests must specify this field.
+     * More modes may get added in the future. Clients must refuse to handle
+     * requests with unknown modes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string allocationMode = 3; + */ + public boolean hasAllocationMode() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * AllocationMode and its related fields define how devices are allocated
+     * to satisfy this request. Supported values are:
+     * - ExactCount: This request is for a specific number of devices.
+     *   This is the default. The exact number is provided in the
+     *   count field.
+     * - All: This request is for all of the matching devices in a pool.
+     *   At least one device must exist on the node for the allocation to succeed.
+     *   Allocation will fail if some devices are already allocated,
+     *   unless adminAccess is requested.
+     * If AllocationMode is not specified, the default mode is ExactCount. If
+     * the mode is ExactCount and count is not specified, the default count is
+     * one. Any other requests must specify this field.
+     * More modes may get added in the future. Clients must refuse to handle
+     * requests with unknown modes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string allocationMode = 3; + */ + public java.lang.String getAllocationMode() { + java.lang.Object ref = allocationMode_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + allocationMode_ = s; + } + return s; + } + } + /** + *
+     * AllocationMode and its related fields define how devices are allocated
+     * to satisfy this request. Supported values are:
+     * - ExactCount: This request is for a specific number of devices.
+     *   This is the default. The exact number is provided in the
+     *   count field.
+     * - All: This request is for all of the matching devices in a pool.
+     *   At least one device must exist on the node for the allocation to succeed.
+     *   Allocation will fail if some devices are already allocated,
+     *   unless adminAccess is requested.
+     * If AllocationMode is not specified, the default mode is ExactCount. If
+     * the mode is ExactCount and count is not specified, the default count is
+     * one. Any other requests must specify this field.
+     * More modes may get added in the future. Clients must refuse to handle
+     * requests with unknown modes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * optional string allocationMode = 3; + */ + public com.google.protobuf.ByteString + getAllocationModeBytes() { + java.lang.Object ref = allocationMode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + allocationMode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COUNT_FIELD_NUMBER = 4; + private long count_; + /** + *
+     * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+     * If AllocationMode is ExactCount and this field is not specified, the default is one.
+     * +optional
+     * +oneOf=AllocationMode
+     * 
+ * + * optional int64 count = 4; + */ + public boolean hasCount() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+     * If AllocationMode is ExactCount and this field is not specified, the default is one.
+     * +optional
+     * +oneOf=AllocationMode
+     * 
+ * + * optional int64 count = 4; + */ + public long getCount() { + return count_; + } + + public static final int ADMINACCESS_FIELD_NUMBER = 5; + private boolean adminAccess_; + /** + *
+     * AdminAccess indicates that this is a claim for administrative access
+     * to the device(s). Claims with AdminAccess are expected to be used for
+     * monitoring or other management services for a device.  They ignore
+     * all ordinary claims to the device with respect to access modes and
+     * any resource allocations.
+     * Admin access is disabled if this field is unset or
+     * set to false, otherwise it is enabled.
+     * +optional
+     * +featureGate=DRAAdminAccess
+     * 
+ * + * optional bool adminAccess = 5; + */ + public boolean hasAdminAccess() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * AdminAccess indicates that this is a claim for administrative access
+     * to the device(s). Claims with AdminAccess are expected to be used for
+     * monitoring or other management services for a device.  They ignore
+     * all ordinary claims to the device with respect to access modes and
+     * any resource allocations.
+     * Admin access is disabled if this field is unset or
+     * set to false, otherwise it is enabled.
+     * +optional
+     * +featureGate=DRAAdminAccess
+     * 
+ * + * optional bool adminAccess = 5; + */ + public boolean getAdminAccess() { + return adminAccess_; + } + + public static final int TOLERATIONS_FIELD_NUMBER = 6; + private java.util.List tolerations_; + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public java.util.List getTolerationsList() { + return tolerations_; + } + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public java.util.List + getTolerationsOrBuilderList() { + return tolerations_; + } + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public int getTolerationsCount() { + return tolerations_.size(); + } + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceToleration getTolerations(int index) { + return tolerations_.get(index); + } + /** + *
+     * If specified, the request's tolerations.
+     * Tolerations for NoSchedule are required to allocate a
+     * device which has a taint with that effect. The same applies
+     * to NoExecute.
+     * In addition, should any of the allocated devices get tainted
+     * with NoExecute after allocation and that effect is not tolerated,
+     * then all pods consuming the ResourceClaim get deleted to evict
+     * them. The scheduler will not let new pods reserve the claim while
+     * it has these tainted devices. Once all pods are evicted, the
+     * claim will get deallocated.
+     * The maximum number of tolerations is 16.
+     * This is a beta field and requires enabling the DRADeviceTaints
+     * feature gate.
+     * +optional
+     * +listType=atomic
+     * +featureGate=DRADeviceTaints
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder getTolerationsOrBuilder( + int index) { + return tolerations_.get(index); + } + + public static final int CAPACITY_FIELD_NUMBER = 7; + private io.kubernetes.client.proto.V1Resource.CapacityRequirements capacity_; + /** + *
+     * Capacity define resource requirements against each capacity.
+     * If this field is unset and the device supports multiple allocations,
+     * the default value will be applied to each capacity according to requestPolicy.
+     * For the capacity that has no requestPolicy, default is the full capacity value.
+     * Applies to each device allocation.
+     * If Count > 1,
+     * the request fails if there aren't enough devices that meet the requirements.
+     * If AllocationMode is set to All,
+     * the request fails if there are devices that otherwise match the request,
+     * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public boolean hasCapacity() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+     * Capacity define resource requirements against each capacity.
+     * If this field is unset and the device supports multiple allocations,
+     * the default value will be applied to each capacity according to requestPolicy.
+     * For the capacity that has no requestPolicy, default is the full capacity value.
+     * Applies to each device allocation.
+     * If Count > 1,
+     * the request fails if there aren't enough devices that meet the requirements.
+     * If AllocationMode is set to All,
+     * the request fails if there are devices that otherwise match the request,
+     * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequirements getCapacity() { + return capacity_ == null ? io.kubernetes.client.proto.V1Resource.CapacityRequirements.getDefaultInstance() : capacity_; + } + /** + *
+     * Capacity define resource requirements against each capacity.
+     * If this field is unset and the device supports multiple allocations,
+     * the default value will be applied to each capacity according to requestPolicy.
+     * For the capacity that has no requestPolicy, default is the full capacity value.
+     * Applies to each device allocation.
+     * If Count > 1,
+     * the request fails if there aren't enough devices that meet the requirements.
+     * If AllocationMode is set to All,
+     * the request fails if there are devices that otherwise match the request,
+     * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+     * +optional
+     * +featureGate=DRAConsumableCapacity
+     * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequirementsOrBuilder getCapacityOrBuilder() { + return capacity_ == null ? io.kubernetes.client.proto.V1Resource.CapacityRequirements.getDefaultInstance() : capacity_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceClassName_); + } + for (int i = 0; i < selectors_.size(); i++) { + output.writeMessage(2, selectors_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, allocationMode_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt64(4, count_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeBool(5, adminAccess_); + } + for (int i = 0; i < tolerations_.size(); i++) { + output.writeMessage(6, tolerations_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeMessage(7, getCapacity()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceClassName_); + } + for (int i = 0; i < selectors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, selectors_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, allocationMode_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, count_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, adminAccess_); + } + for (int i = 0; i < tolerations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, tolerations_.get(i)); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCapacity()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.ExactDeviceRequest)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.ExactDeviceRequest other = (io.kubernetes.client.proto.V1Resource.ExactDeviceRequest) obj; + + boolean result = true; + result = result && (hasDeviceClassName() == other.hasDeviceClassName()); + if (hasDeviceClassName()) { + result = result && getDeviceClassName() + .equals(other.getDeviceClassName()); + } + result = result && getSelectorsList() + .equals(other.getSelectorsList()); + result = result && (hasAllocationMode() == other.hasAllocationMode()); + if (hasAllocationMode()) { + result = result && getAllocationMode() + .equals(other.getAllocationMode()); + } + result = result && (hasCount() == other.hasCount()); + if (hasCount()) { + result = result && (getCount() + == other.getCount()); + } + result = result && (hasAdminAccess() == other.hasAdminAccess()); + if (hasAdminAccess()) { + result = result && (getAdminAccess() + == other.getAdminAccess()); + } + result = result && getTolerationsList() + .equals(other.getTolerationsList()); + result = result && (hasCapacity() == other.hasCapacity()); + if (hasCapacity()) { + result = result && getCapacity() + .equals(other.getCapacity()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDeviceClassName()) { + hash = (37 * hash) + DEVICECLASSNAME_FIELD_NUMBER; + hash = (53 * hash) + getDeviceClassName().hashCode(); + } + if (getSelectorsCount() > 0) { + hash = (37 * hash) + SELECTORS_FIELD_NUMBER; + hash = (53 * hash) + getSelectorsList().hashCode(); + } + if (hasAllocationMode()) { + hash = (37 * hash) + ALLOCATIONMODE_FIELD_NUMBER; + hash = (53 * hash) + getAllocationMode().hashCode(); + } + if (hasCount()) { + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCount()); + } + if (hasAdminAccess()) { + hash = (37 * hash) + ADMINACCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAdminAccess()); + } + if (getTolerationsCount() > 0) { + hash = (37 * hash) + TOLERATIONS_FIELD_NUMBER; + hash = (53 * hash) + getTolerationsList().hashCode(); + } + if (hasCapacity()) { + hash = (37 * hash) + CAPACITY_FIELD_NUMBER; + hash = (53 * hash) + getCapacity().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.ExactDeviceRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ExactDeviceRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ExactDeviceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ExactDeviceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ExactDeviceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ExactDeviceRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ExactDeviceRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ExactDeviceRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ExactDeviceRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ExactDeviceRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ExactDeviceRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ExactDeviceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.ExactDeviceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ExactDeviceRequest is a request for one or more identical devices.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ExactDeviceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.ExactDeviceRequest) + io.kubernetes.client.proto.V1Resource.ExactDeviceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ExactDeviceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ExactDeviceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.class, io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSelectorsFieldBuilder(); + getTolerationsFieldBuilder(); + getCapacityFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + deviceClassName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (selectorsBuilder_ == null) { + selectors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + selectorsBuilder_.clear(); + } + allocationMode_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + count_ = 0L; + bitField0_ = (bitField0_ & ~0x00000008); + adminAccess_ = false; + bitField0_ = (bitField0_ & ~0x00000010); + if (tolerationsBuilder_ == null) { + tolerations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + tolerationsBuilder_.clear(); + } + if (capacityBuilder_ == null) { + capacity_ = null; + } else { + capacityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ExactDeviceRequest_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ExactDeviceRequest getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ExactDeviceRequest build() { + io.kubernetes.client.proto.V1Resource.ExactDeviceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ExactDeviceRequest buildPartial() { + io.kubernetes.client.proto.V1Resource.ExactDeviceRequest result = new io.kubernetes.client.proto.V1Resource.ExactDeviceRequest(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.deviceClassName_ = deviceClassName_; + if (selectorsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + selectors_ = java.util.Collections.unmodifiableList(selectors_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.selectors_ = selectors_; + } else { + result.selectors_ = selectorsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + result.allocationMode_ = allocationMode_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000004; + } + result.count_ = count_; + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000008; + } + result.adminAccess_ = adminAccess_; + if (tolerationsBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + tolerations_ = java.util.Collections.unmodifiableList(tolerations_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.tolerations_ = tolerations_; + } else { + result.tolerations_ = tolerationsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000010; + } + if (capacityBuilder_ == null) { + result.capacity_ = capacity_; + } else { + result.capacity_ = capacityBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.ExactDeviceRequest) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.ExactDeviceRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.ExactDeviceRequest other) { + if (other == io.kubernetes.client.proto.V1Resource.ExactDeviceRequest.getDefaultInstance()) return this; + if (other.hasDeviceClassName()) { + bitField0_ |= 0x00000001; + deviceClassName_ = other.deviceClassName_; + onChanged(); + } + if (selectorsBuilder_ == null) { + if (!other.selectors_.isEmpty()) { + if (selectors_.isEmpty()) { + selectors_ = other.selectors_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSelectorsIsMutable(); + selectors_.addAll(other.selectors_); + } + onChanged(); + } + } else { + if (!other.selectors_.isEmpty()) { + if (selectorsBuilder_.isEmpty()) { + selectorsBuilder_.dispose(); + selectorsBuilder_ = null; + selectors_ = other.selectors_; + bitField0_ = (bitField0_ & ~0x00000002); + selectorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSelectorsFieldBuilder() : null; + } else { + selectorsBuilder_.addAllMessages(other.selectors_); + } + } + } + if (other.hasAllocationMode()) { + bitField0_ |= 0x00000004; + allocationMode_ = other.allocationMode_; + onChanged(); + } + if (other.hasCount()) { + setCount(other.getCount()); + } + if (other.hasAdminAccess()) { + setAdminAccess(other.getAdminAccess()); + } + if (tolerationsBuilder_ == null) { + if (!other.tolerations_.isEmpty()) { + if (tolerations_.isEmpty()) { + tolerations_ = other.tolerations_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTolerationsIsMutable(); + tolerations_.addAll(other.tolerations_); + } + onChanged(); + } + } else { + if (!other.tolerations_.isEmpty()) { + if (tolerationsBuilder_.isEmpty()) { + tolerationsBuilder_.dispose(); + tolerationsBuilder_ = null; + tolerations_ = other.tolerations_; + bitField0_ = (bitField0_ & ~0x00000020); + tolerationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTolerationsFieldBuilder() : null; + } else { + tolerationsBuilder_.addAllMessages(other.tolerations_); + } + } + } + if (other.hasCapacity()) { + mergeCapacity(other.getCapacity()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.ExactDeviceRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.ExactDeviceRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object deviceClassName_ = ""; + /** + *
+       * DeviceClassName references a specific DeviceClass, which can define
+       * additional configuration and selectors to be inherited by this
+       * request.
+       * A DeviceClassName is required.
+       * Administrators may use this to restrict which devices may get
+       * requested by only installing classes with selectors for permitted
+       * devices. If users are free to request anything without restrictions,
+       * then administrators can create an empty DeviceClass for users
+       * to reference.
+       * +required
+       * 
+ * + * optional string deviceClassName = 1; + */ + public boolean hasDeviceClassName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * DeviceClassName references a specific DeviceClass, which can define
+       * additional configuration and selectors to be inherited by this
+       * request.
+       * A DeviceClassName is required.
+       * Administrators may use this to restrict which devices may get
+       * requested by only installing classes with selectors for permitted
+       * devices. If users are free to request anything without restrictions,
+       * then administrators can create an empty DeviceClass for users
+       * to reference.
+       * +required
+       * 
+ * + * optional string deviceClassName = 1; + */ + public java.lang.String getDeviceClassName() { + java.lang.Object ref = deviceClassName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + deviceClassName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * DeviceClassName references a specific DeviceClass, which can define
+       * additional configuration and selectors to be inherited by this
+       * request.
+       * A DeviceClassName is required.
+       * Administrators may use this to restrict which devices may get
+       * requested by only installing classes with selectors for permitted
+       * devices. If users are free to request anything without restrictions,
+       * then administrators can create an empty DeviceClass for users
+       * to reference.
+       * +required
+       * 
+ * + * optional string deviceClassName = 1; + */ + public com.google.protobuf.ByteString + getDeviceClassNameBytes() { + java.lang.Object ref = deviceClassName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + deviceClassName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * DeviceClassName references a specific DeviceClass, which can define
+       * additional configuration and selectors to be inherited by this
+       * request.
+       * A DeviceClassName is required.
+       * Administrators may use this to restrict which devices may get
+       * requested by only installing classes with selectors for permitted
+       * devices. If users are free to request anything without restrictions,
+       * then administrators can create an empty DeviceClass for users
+       * to reference.
+       * +required
+       * 
+ * + * optional string deviceClassName = 1; + */ + public Builder setDeviceClassName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + deviceClassName_ = value; + onChanged(); + return this; + } + /** + *
+       * DeviceClassName references a specific DeviceClass, which can define
+       * additional configuration and selectors to be inherited by this
+       * request.
+       * A DeviceClassName is required.
+       * Administrators may use this to restrict which devices may get
+       * requested by only installing classes with selectors for permitted
+       * devices. If users are free to request anything without restrictions,
+       * then administrators can create an empty DeviceClass for users
+       * to reference.
+       * +required
+       * 
+ * + * optional string deviceClassName = 1; + */ + public Builder clearDeviceClassName() { + bitField0_ = (bitField0_ & ~0x00000001); + deviceClassName_ = getDefaultInstance().getDeviceClassName(); + onChanged(); + return this; + } + /** + *
+       * DeviceClassName references a specific DeviceClass, which can define
+       * additional configuration and selectors to be inherited by this
+       * request.
+       * A DeviceClassName is required.
+       * Administrators may use this to restrict which devices may get
+       * requested by only installing classes with selectors for permitted
+       * devices. If users are free to request anything without restrictions,
+       * then administrators can create an empty DeviceClass for users
+       * to reference.
+       * +required
+       * 
+ * + * optional string deviceClassName = 1; + */ + public Builder setDeviceClassNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + deviceClassName_ = value; + onChanged(); + return this; + } + + private java.util.List selectors_ = + java.util.Collections.emptyList(); + private void ensureSelectorsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + selectors_ = new java.util.ArrayList(selectors_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceSelector, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder, io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder> selectorsBuilder_; + + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public java.util.List getSelectorsList() { + if (selectorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(selectors_); + } else { + return selectorsBuilder_.getMessageList(); + } + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public int getSelectorsCount() { + if (selectorsBuilder_ == null) { + return selectors_.size(); + } else { + return selectorsBuilder_.getCount(); + } + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelector getSelectors(int index) { + if (selectorsBuilder_ == null) { + return selectors_.get(index); + } else { + return selectorsBuilder_.getMessage(index); + } + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public Builder setSelectors( + int index, io.kubernetes.client.proto.V1Resource.DeviceSelector value) { + if (selectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSelectorsIsMutable(); + selectors_.set(index, value); + onChanged(); + } else { + selectorsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public Builder setSelectors( + int index, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder builderForValue) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.set(index, builderForValue.build()); + onChanged(); + } else { + selectorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public Builder addSelectors(io.kubernetes.client.proto.V1Resource.DeviceSelector value) { + if (selectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSelectorsIsMutable(); + selectors_.add(value); + onChanged(); + } else { + selectorsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public Builder addSelectors( + int index, io.kubernetes.client.proto.V1Resource.DeviceSelector value) { + if (selectorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSelectorsIsMutable(); + selectors_.add(index, value); + onChanged(); + } else { + selectorsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public Builder addSelectors( + io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder builderForValue) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.add(builderForValue.build()); + onChanged(); + } else { + selectorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public Builder addSelectors( + int index, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder builderForValue) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.add(index, builderForValue.build()); + onChanged(); + } else { + selectorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public Builder addAllSelectors( + java.lang.Iterable values) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, selectors_); + onChanged(); + } else { + selectorsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public Builder clearSelectors() { + if (selectorsBuilder_ == null) { + selectors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + selectorsBuilder_.clear(); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public Builder removeSelectors(int index) { + if (selectorsBuilder_ == null) { + ensureSelectorsIsMutable(); + selectors_.remove(index); + onChanged(); + } else { + selectorsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder getSelectorsBuilder( + int index) { + return getSelectorsFieldBuilder().getBuilder(index); + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder getSelectorsOrBuilder( + int index) { + if (selectorsBuilder_ == null) { + return selectors_.get(index); } else { + return selectorsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public java.util.List + getSelectorsOrBuilderList() { + if (selectorsBuilder_ != null) { + return selectorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(selectors_); + } + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder addSelectorsBuilder() { + return getSelectorsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceSelector.getDefaultInstance()); + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder addSelectorsBuilder( + int index) { + return getSelectorsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceSelector.getDefaultInstance()); + } + /** + *
+       * Selectors define criteria which must be satisfied by a specific
+       * device in order for that device to be considered for this
+       * request. All selectors must be satisfied for a device to be
+       * considered.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=32
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceSelector selectors = 2; + */ + public java.util.List + getSelectorsBuilderList() { + return getSelectorsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceSelector, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder, io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder> + getSelectorsFieldBuilder() { + if (selectorsBuilder_ == null) { + selectorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceSelector, io.kubernetes.client.proto.V1Resource.DeviceSelector.Builder, io.kubernetes.client.proto.V1Resource.DeviceSelectorOrBuilder>( + selectors_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + selectors_ = null; + } + return selectorsBuilder_; + } + + private java.lang.Object allocationMode_ = ""; + /** + *
+       * AllocationMode and its related fields define how devices are allocated
+       * to satisfy this request. Supported values are:
+       * - ExactCount: This request is for a specific number of devices.
+       *   This is the default. The exact number is provided in the
+       *   count field.
+       * - All: This request is for all of the matching devices in a pool.
+       *   At least one device must exist on the node for the allocation to succeed.
+       *   Allocation will fail if some devices are already allocated,
+       *   unless adminAccess is requested.
+       * If AllocationMode is not specified, the default mode is ExactCount. If
+       * the mode is ExactCount and count is not specified, the default count is
+       * one. Any other requests must specify this field.
+       * More modes may get added in the future. Clients must refuse to handle
+       * requests with unknown modes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string allocationMode = 3; + */ + public boolean hasAllocationMode() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * AllocationMode and its related fields define how devices are allocated
+       * to satisfy this request. Supported values are:
+       * - ExactCount: This request is for a specific number of devices.
+       *   This is the default. The exact number is provided in the
+       *   count field.
+       * - All: This request is for all of the matching devices in a pool.
+       *   At least one device must exist on the node for the allocation to succeed.
+       *   Allocation will fail if some devices are already allocated,
+       *   unless adminAccess is requested.
+       * If AllocationMode is not specified, the default mode is ExactCount. If
+       * the mode is ExactCount and count is not specified, the default count is
+       * one. Any other requests must specify this field.
+       * More modes may get added in the future. Clients must refuse to handle
+       * requests with unknown modes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string allocationMode = 3; + */ + public java.lang.String getAllocationMode() { + java.lang.Object ref = allocationMode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + allocationMode_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * AllocationMode and its related fields define how devices are allocated
+       * to satisfy this request. Supported values are:
+       * - ExactCount: This request is for a specific number of devices.
+       *   This is the default. The exact number is provided in the
+       *   count field.
+       * - All: This request is for all of the matching devices in a pool.
+       *   At least one device must exist on the node for the allocation to succeed.
+       *   Allocation will fail if some devices are already allocated,
+       *   unless adminAccess is requested.
+       * If AllocationMode is not specified, the default mode is ExactCount. If
+       * the mode is ExactCount and count is not specified, the default count is
+       * one. Any other requests must specify this field.
+       * More modes may get added in the future. Clients must refuse to handle
+       * requests with unknown modes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string allocationMode = 3; + */ + public com.google.protobuf.ByteString + getAllocationModeBytes() { + java.lang.Object ref = allocationMode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + allocationMode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * AllocationMode and its related fields define how devices are allocated
+       * to satisfy this request. Supported values are:
+       * - ExactCount: This request is for a specific number of devices.
+       *   This is the default. The exact number is provided in the
+       *   count field.
+       * - All: This request is for all of the matching devices in a pool.
+       *   At least one device must exist on the node for the allocation to succeed.
+       *   Allocation will fail if some devices are already allocated,
+       *   unless adminAccess is requested.
+       * If AllocationMode is not specified, the default mode is ExactCount. If
+       * the mode is ExactCount and count is not specified, the default count is
+       * one. Any other requests must specify this field.
+       * More modes may get added in the future. Clients must refuse to handle
+       * requests with unknown modes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string allocationMode = 3; + */ + public Builder setAllocationMode( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + allocationMode_ = value; + onChanged(); + return this; + } + /** + *
+       * AllocationMode and its related fields define how devices are allocated
+       * to satisfy this request. Supported values are:
+       * - ExactCount: This request is for a specific number of devices.
+       *   This is the default. The exact number is provided in the
+       *   count field.
+       * - All: This request is for all of the matching devices in a pool.
+       *   At least one device must exist on the node for the allocation to succeed.
+       *   Allocation will fail if some devices are already allocated,
+       *   unless adminAccess is requested.
+       * If AllocationMode is not specified, the default mode is ExactCount. If
+       * the mode is ExactCount and count is not specified, the default count is
+       * one. Any other requests must specify this field.
+       * More modes may get added in the future. Clients must refuse to handle
+       * requests with unknown modes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string allocationMode = 3; + */ + public Builder clearAllocationMode() { + bitField0_ = (bitField0_ & ~0x00000004); + allocationMode_ = getDefaultInstance().getAllocationMode(); + onChanged(); + return this; + } + /** + *
+       * AllocationMode and its related fields define how devices are allocated
+       * to satisfy this request. Supported values are:
+       * - ExactCount: This request is for a specific number of devices.
+       *   This is the default. The exact number is provided in the
+       *   count field.
+       * - All: This request is for all of the matching devices in a pool.
+       *   At least one device must exist on the node for the allocation to succeed.
+       *   Allocation will fail if some devices are already allocated,
+       *   unless adminAccess is requested.
+       * If AllocationMode is not specified, the default mode is ExactCount. If
+       * the mode is ExactCount and count is not specified, the default count is
+       * one. Any other requests must specify this field.
+       * More modes may get added in the future. Clients must refuse to handle
+       * requests with unknown modes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * optional string allocationMode = 3; + */ + public Builder setAllocationModeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + allocationMode_ = value; + onChanged(); + return this; + } + + private long count_ ; + /** + *
+       * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+       * If AllocationMode is ExactCount and this field is not specified, the default is one.
+       * +optional
+       * +oneOf=AllocationMode
+       * 
+ * + * optional int64 count = 4; + */ + public boolean hasCount() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+       * If AllocationMode is ExactCount and this field is not specified, the default is one.
+       * +optional
+       * +oneOf=AllocationMode
+       * 
+ * + * optional int64 count = 4; + */ + public long getCount() { + return count_; + } + /** + *
+       * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+       * If AllocationMode is ExactCount and this field is not specified, the default is one.
+       * +optional
+       * +oneOf=AllocationMode
+       * 
+ * + * optional int64 count = 4; + */ + public Builder setCount(long value) { + bitField0_ |= 0x00000008; + count_ = value; + onChanged(); + return this; + } + /** + *
+       * Count is used only when the count mode is "ExactCount". Must be greater than zero.
+       * If AllocationMode is ExactCount and this field is not specified, the default is one.
+       * +optional
+       * +oneOf=AllocationMode
+       * 
+ * + * optional int64 count = 4; + */ + public Builder clearCount() { + bitField0_ = (bitField0_ & ~0x00000008); + count_ = 0L; + onChanged(); + return this; + } + + private boolean adminAccess_ ; + /** + *
+       * AdminAccess indicates that this is a claim for administrative access
+       * to the device(s). Claims with AdminAccess are expected to be used for
+       * monitoring or other management services for a device.  They ignore
+       * all ordinary claims to the device with respect to access modes and
+       * any resource allocations.
+       * Admin access is disabled if this field is unset or
+       * set to false, otherwise it is enabled.
+       * +optional
+       * +featureGate=DRAAdminAccess
+       * 
+ * + * optional bool adminAccess = 5; + */ + public boolean hasAdminAccess() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+       * AdminAccess indicates that this is a claim for administrative access
+       * to the device(s). Claims with AdminAccess are expected to be used for
+       * monitoring or other management services for a device.  They ignore
+       * all ordinary claims to the device with respect to access modes and
+       * any resource allocations.
+       * Admin access is disabled if this field is unset or
+       * set to false, otherwise it is enabled.
+       * +optional
+       * +featureGate=DRAAdminAccess
+       * 
+ * + * optional bool adminAccess = 5; + */ + public boolean getAdminAccess() { + return adminAccess_; + } + /** + *
+       * AdminAccess indicates that this is a claim for administrative access
+       * to the device(s). Claims with AdminAccess are expected to be used for
+       * monitoring or other management services for a device.  They ignore
+       * all ordinary claims to the device with respect to access modes and
+       * any resource allocations.
+       * Admin access is disabled if this field is unset or
+       * set to false, otherwise it is enabled.
+       * +optional
+       * +featureGate=DRAAdminAccess
+       * 
+ * + * optional bool adminAccess = 5; + */ + public Builder setAdminAccess(boolean value) { + bitField0_ |= 0x00000010; + adminAccess_ = value; + onChanged(); + return this; + } + /** + *
+       * AdminAccess indicates that this is a claim for administrative access
+       * to the device(s). Claims with AdminAccess are expected to be used for
+       * monitoring or other management services for a device.  They ignore
+       * all ordinary claims to the device with respect to access modes and
+       * any resource allocations.
+       * Admin access is disabled if this field is unset or
+       * set to false, otherwise it is enabled.
+       * +optional
+       * +featureGate=DRAAdminAccess
+       * 
+ * + * optional bool adminAccess = 5; + */ + public Builder clearAdminAccess() { + bitField0_ = (bitField0_ & ~0x00000010); + adminAccess_ = false; + onChanged(); + return this; + } + + private java.util.List tolerations_ = + java.util.Collections.emptyList(); + private void ensureTolerationsIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + tolerations_ = new java.util.ArrayList(tolerations_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceToleration, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder, io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder> tolerationsBuilder_; + + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public java.util.List getTolerationsList() { + if (tolerationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tolerations_); + } else { + return tolerationsBuilder_.getMessageList(); + } + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public int getTolerationsCount() { + if (tolerationsBuilder_ == null) { + return tolerations_.size(); + } else { + return tolerationsBuilder_.getCount(); + } + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceToleration getTolerations(int index) { + if (tolerationsBuilder_ == null) { + return tolerations_.get(index); + } else { + return tolerationsBuilder_.getMessage(index); + } + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder setTolerations( + int index, io.kubernetes.client.proto.V1Resource.DeviceToleration value) { + if (tolerationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTolerationsIsMutable(); + tolerations_.set(index, value); + onChanged(); + } else { + tolerationsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder setTolerations( + int index, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder builderForValue) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.set(index, builderForValue.build()); + onChanged(); + } else { + tolerationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder addTolerations(io.kubernetes.client.proto.V1Resource.DeviceToleration value) { + if (tolerationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTolerationsIsMutable(); + tolerations_.add(value); + onChanged(); + } else { + tolerationsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder addTolerations( + int index, io.kubernetes.client.proto.V1Resource.DeviceToleration value) { + if (tolerationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTolerationsIsMutable(); + tolerations_.add(index, value); + onChanged(); + } else { + tolerationsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder addTolerations( + io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder builderForValue) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.add(builderForValue.build()); + onChanged(); + } else { + tolerationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder addTolerations( + int index, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder builderForValue) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.add(index, builderForValue.build()); + onChanged(); + } else { + tolerationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder addAllTolerations( + java.lang.Iterable values) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tolerations_); + onChanged(); + } else { + tolerationsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder clearTolerations() { + if (tolerationsBuilder_ == null) { + tolerations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + tolerationsBuilder_.clear(); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public Builder removeTolerations(int index) { + if (tolerationsBuilder_ == null) { + ensureTolerationsIsMutable(); + tolerations_.remove(index); + onChanged(); + } else { + tolerationsBuilder_.remove(index); + } + return this; + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder getTolerationsBuilder( + int index) { + return getTolerationsFieldBuilder().getBuilder(index); + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder getTolerationsOrBuilder( + int index) { + if (tolerationsBuilder_ == null) { + return tolerations_.get(index); } else { + return tolerationsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public java.util.List + getTolerationsOrBuilderList() { + if (tolerationsBuilder_ != null) { + return tolerationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tolerations_); + } + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder addTolerationsBuilder() { + return getTolerationsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.DeviceToleration.getDefaultInstance()); + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder addTolerationsBuilder( + int index) { + return getTolerationsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.DeviceToleration.getDefaultInstance()); + } + /** + *
+       * If specified, the request's tolerations.
+       * Tolerations for NoSchedule are required to allocate a
+       * device which has a taint with that effect. The same applies
+       * to NoExecute.
+       * In addition, should any of the allocated devices get tainted
+       * with NoExecute after allocation and that effect is not tolerated,
+       * then all pods consuming the ResourceClaim get deleted to evict
+       * them. The scheduler will not let new pods reserve the claim while
+       * it has these tainted devices. Once all pods are evicted, the
+       * claim will get deallocated.
+       * The maximum number of tolerations is 16.
+       * This is a beta field and requires enabling the DRADeviceTaints
+       * feature gate.
+       * +optional
+       * +listType=atomic
+       * +featureGate=DRADeviceTaints
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * 
+ * + * repeated .k8s.io.api.resource.v1.DeviceToleration tolerations = 6; + */ + public java.util.List + getTolerationsBuilderList() { + return getTolerationsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceToleration, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder, io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder> + getTolerationsFieldBuilder() { + if (tolerationsBuilder_ == null) { + tolerationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceToleration, io.kubernetes.client.proto.V1Resource.DeviceToleration.Builder, io.kubernetes.client.proto.V1Resource.DeviceTolerationOrBuilder>( + tolerations_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + tolerations_ = null; + } + return tolerationsBuilder_; + } + + private io.kubernetes.client.proto.V1Resource.CapacityRequirements capacity_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CapacityRequirements, io.kubernetes.client.proto.V1Resource.CapacityRequirements.Builder, io.kubernetes.client.proto.V1Resource.CapacityRequirementsOrBuilder> capacityBuilder_; + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public boolean hasCapacity() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequirements getCapacity() { + if (capacityBuilder_ == null) { + return capacity_ == null ? io.kubernetes.client.proto.V1Resource.CapacityRequirements.getDefaultInstance() : capacity_; + } else { + return capacityBuilder_.getMessage(); + } + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public Builder setCapacity(io.kubernetes.client.proto.V1Resource.CapacityRequirements value) { + if (capacityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + capacity_ = value; + onChanged(); + } else { + capacityBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + return this; + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public Builder setCapacity( + io.kubernetes.client.proto.V1Resource.CapacityRequirements.Builder builderForValue) { + if (capacityBuilder_ == null) { + capacity_ = builderForValue.build(); + onChanged(); + } else { + capacityBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + return this; + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public Builder mergeCapacity(io.kubernetes.client.proto.V1Resource.CapacityRequirements value) { + if (capacityBuilder_ == null) { + if (((bitField0_ & 0x00000040) == 0x00000040) && + capacity_ != null && + capacity_ != io.kubernetes.client.proto.V1Resource.CapacityRequirements.getDefaultInstance()) { + capacity_ = + io.kubernetes.client.proto.V1Resource.CapacityRequirements.newBuilder(capacity_).mergeFrom(value).buildPartial(); + } else { + capacity_ = value; + } + onChanged(); + } else { + capacityBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + return this; + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public Builder clearCapacity() { + if (capacityBuilder_ == null) { + capacity_ = null; + onChanged(); + } else { + capacityBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequirements.Builder getCapacityBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCapacityFieldBuilder().getBuilder(); + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + public io.kubernetes.client.proto.V1Resource.CapacityRequirementsOrBuilder getCapacityOrBuilder() { + if (capacityBuilder_ != null) { + return capacityBuilder_.getMessageOrBuilder(); + } else { + return capacity_ == null ? + io.kubernetes.client.proto.V1Resource.CapacityRequirements.getDefaultInstance() : capacity_; + } + } + /** + *
+       * Capacity define resource requirements against each capacity.
+       * If this field is unset and the device supports multiple allocations,
+       * the default value will be applied to each capacity according to requestPolicy.
+       * For the capacity that has no requestPolicy, default is the full capacity value.
+       * Applies to each device allocation.
+       * If Count > 1,
+       * the request fails if there aren't enough devices that meet the requirements.
+       * If AllocationMode is set to All,
+       * the request fails if there are devices that otherwise match the request,
+       * and have this capacity, with a value >= the requested amount, but which cannot be allocated to this request.
+       * +optional
+       * +featureGate=DRAConsumableCapacity
+       * 
+ * + * optional .k8s.io.api.resource.v1.CapacityRequirements capacity = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CapacityRequirements, io.kubernetes.client.proto.V1Resource.CapacityRequirements.Builder, io.kubernetes.client.proto.V1Resource.CapacityRequirementsOrBuilder> + getCapacityFieldBuilder() { + if (capacityBuilder_ == null) { + capacityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CapacityRequirements, io.kubernetes.client.proto.V1Resource.CapacityRequirements.Builder, io.kubernetes.client.proto.V1Resource.CapacityRequirementsOrBuilder>( + getCapacity(), + getParentForChildren(), + isClean()); + capacity_ = null; + } + return capacityBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.ExactDeviceRequest) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.ExactDeviceRequest) + private static final io.kubernetes.client.proto.V1Resource.ExactDeviceRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.ExactDeviceRequest(); + } + + public static io.kubernetes.client.proto.V1Resource.ExactDeviceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExactDeviceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ExactDeviceRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ExactDeviceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NetworkDeviceDataOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.NetworkDeviceData) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * InterfaceName specifies the name of the network interface associated with
+     * the allocated device. This might be the name of a physical or virtual
+     * network interface being configured in the pod.
+     * Must not be longer than 256 bytes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxBytes=256
+     * 
+ * + * optional string interfaceName = 1; + */ + boolean hasInterfaceName(); + /** + *
+     * InterfaceName specifies the name of the network interface associated with
+     * the allocated device. This might be the name of a physical or virtual
+     * network interface being configured in the pod.
+     * Must not be longer than 256 bytes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxBytes=256
+     * 
+ * + * optional string interfaceName = 1; + */ + java.lang.String getInterfaceName(); + /** + *
+     * InterfaceName specifies the name of the network interface associated with
+     * the allocated device. This might be the name of a physical or virtual
+     * network interface being configured in the pod.
+     * Must not be longer than 256 bytes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxBytes=256
+     * 
+ * + * optional string interfaceName = 1; + */ + com.google.protobuf.ByteString + getInterfaceNameBytes(); + + /** + *
+     * IPs lists the network addresses assigned to the device's network interface.
+     * This can include both IPv4 and IPv6 addresses.
+     * The IPs are in the CIDR notation, which includes both the address and the
+     * associated subnet mask.
+     * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+     * 
+ * + * repeated string ips = 2; + */ + java.util.List + getIpsList(); + /** + *
+     * IPs lists the network addresses assigned to the device's network interface.
+     * This can include both IPv4 and IPv6 addresses.
+     * The IPs are in the CIDR notation, which includes both the address and the
+     * associated subnet mask.
+     * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+     * 
+ * + * repeated string ips = 2; + */ + int getIpsCount(); + /** + *
+     * IPs lists the network addresses assigned to the device's network interface.
+     * This can include both IPv4 and IPv6 addresses.
+     * The IPs are in the CIDR notation, which includes both the address and the
+     * associated subnet mask.
+     * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+     * 
+ * + * repeated string ips = 2; + */ + java.lang.String getIps(int index); + /** + *
+     * IPs lists the network addresses assigned to the device's network interface.
+     * This can include both IPv4 and IPv6 addresses.
+     * The IPs are in the CIDR notation, which includes both the address and the
+     * associated subnet mask.
+     * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+     * 
+ * + * repeated string ips = 2; + */ + com.google.protobuf.ByteString + getIpsBytes(int index); + + /** + *
+     * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
+     * Must not be longer than 128 bytes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxBytes=128
+     * 
+ * + * optional string hardwareAddress = 3; + */ + boolean hasHardwareAddress(); + /** + *
+     * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
+     * Must not be longer than 128 bytes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxBytes=128
+     * 
+ * + * optional string hardwareAddress = 3; + */ + java.lang.String getHardwareAddress(); + /** + *
+     * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
+     * Must not be longer than 128 bytes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxBytes=128
+     * 
+ * + * optional string hardwareAddress = 3; + */ + com.google.protobuf.ByteString + getHardwareAddressBytes(); + } + /** + *
+   * NetworkDeviceData provides network-related details for the allocated device.
+   * This information may be filled by drivers or other components to configure
+   * or identify the device within a network context.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.NetworkDeviceData} + */ + public static final class NetworkDeviceData extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.NetworkDeviceData) + NetworkDeviceDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use NetworkDeviceData.newBuilder() to construct. + private NetworkDeviceData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NetworkDeviceData() { + interfaceName_ = ""; + ips_ = com.google.protobuf.LazyStringArrayList.EMPTY; + hardwareAddress_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NetworkDeviceData( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + interfaceName_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + ips_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + ips_.add(bs); + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + hardwareAddress_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + ips_ = ips_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_NetworkDeviceData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_NetworkDeviceData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.NetworkDeviceData.class, io.kubernetes.client.proto.V1Resource.NetworkDeviceData.Builder.class); + } + + private int bitField0_; + public static final int INTERFACENAME_FIELD_NUMBER = 1; + private volatile java.lang.Object interfaceName_; + /** + *
+     * InterfaceName specifies the name of the network interface associated with
+     * the allocated device. This might be the name of a physical or virtual
+     * network interface being configured in the pod.
+     * Must not be longer than 256 bytes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxBytes=256
+     * 
+ * + * optional string interfaceName = 1; + */ + public boolean hasInterfaceName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * InterfaceName specifies the name of the network interface associated with
+     * the allocated device. This might be the name of a physical or virtual
+     * network interface being configured in the pod.
+     * Must not be longer than 256 bytes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxBytes=256
+     * 
+ * + * optional string interfaceName = 1; + */ + public java.lang.String getInterfaceName() { + java.lang.Object ref = interfaceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + interfaceName_ = s; + } + return s; + } + } + /** + *
+     * InterfaceName specifies the name of the network interface associated with
+     * the allocated device. This might be the name of a physical or virtual
+     * network interface being configured in the pod.
+     * Must not be longer than 256 bytes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxBytes=256
+     * 
+ * + * optional string interfaceName = 1; + */ + public com.google.protobuf.ByteString + getInterfaceNameBytes() { + java.lang.Object ref = interfaceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + interfaceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IPS_FIELD_NUMBER = 2; + private com.google.protobuf.LazyStringList ips_; + /** + *
+     * IPs lists the network addresses assigned to the device's network interface.
+     * This can include both IPv4 and IPv6 addresses.
+     * The IPs are in the CIDR notation, which includes both the address and the
+     * associated subnet mask.
+     * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+     * 
+ * + * repeated string ips = 2; + */ + public com.google.protobuf.ProtocolStringList + getIpsList() { + return ips_; + } + /** + *
+     * IPs lists the network addresses assigned to the device's network interface.
+     * This can include both IPv4 and IPv6 addresses.
+     * The IPs are in the CIDR notation, which includes both the address and the
+     * associated subnet mask.
+     * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+     * 
+ * + * repeated string ips = 2; + */ + public int getIpsCount() { + return ips_.size(); + } + /** + *
+     * IPs lists the network addresses assigned to the device's network interface.
+     * This can include both IPv4 and IPv6 addresses.
+     * The IPs are in the CIDR notation, which includes both the address and the
+     * associated subnet mask.
+     * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+     * 
+ * + * repeated string ips = 2; + */ + public java.lang.String getIps(int index) { + return ips_.get(index); + } + /** + *
+     * IPs lists the network addresses assigned to the device's network interface.
+     * This can include both IPv4 and IPv6 addresses.
+     * The IPs are in the CIDR notation, which includes both the address and the
+     * associated subnet mask.
+     * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=set
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+     * 
+ * + * repeated string ips = 2; + */ + public com.google.protobuf.ByteString + getIpsBytes(int index) { + return ips_.getByteString(index); + } + + public static final int HARDWAREADDRESS_FIELD_NUMBER = 3; + private volatile java.lang.Object hardwareAddress_; + /** + *
+     * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
+     * Must not be longer than 128 bytes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxBytes=128
+     * 
+ * + * optional string hardwareAddress = 3; + */ + public boolean hasHardwareAddress() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
+     * Must not be longer than 128 bytes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxBytes=128
+     * 
+ * + * optional string hardwareAddress = 3; + */ + public java.lang.String getHardwareAddress() { + java.lang.Object ref = hardwareAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + hardwareAddress_ = s; + } + return s; + } + } + /** + *
+     * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
+     * Must not be longer than 128 bytes.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:maxBytes=128
+     * 
+ * + * optional string hardwareAddress = 3; + */ + public com.google.protobuf.ByteString + getHardwareAddressBytes() { + java.lang.Object ref = hardwareAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hardwareAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, interfaceName_); + } + for (int i = 0; i < ips_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ips_.getRaw(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, hardwareAddress_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, interfaceName_); + } + { + int dataSize = 0; + for (int i = 0; i < ips_.size(); i++) { + dataSize += computeStringSizeNoTag(ips_.getRaw(i)); + } + size += dataSize; + size += 1 * getIpsList().size(); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, hardwareAddress_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.NetworkDeviceData)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.NetworkDeviceData other = (io.kubernetes.client.proto.V1Resource.NetworkDeviceData) obj; + + boolean result = true; + result = result && (hasInterfaceName() == other.hasInterfaceName()); + if (hasInterfaceName()) { + result = result && getInterfaceName() + .equals(other.getInterfaceName()); + } + result = result && getIpsList() + .equals(other.getIpsList()); + result = result && (hasHardwareAddress() == other.hasHardwareAddress()); + if (hasHardwareAddress()) { + result = result && getHardwareAddress() + .equals(other.getHardwareAddress()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasInterfaceName()) { + hash = (37 * hash) + INTERFACENAME_FIELD_NUMBER; + hash = (53 * hash) + getInterfaceName().hashCode(); + } + if (getIpsCount() > 0) { + hash = (37 * hash) + IPS_FIELD_NUMBER; + hash = (53 * hash) + getIpsList().hashCode(); + } + if (hasHardwareAddress()) { + hash = (37 * hash) + HARDWAREADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getHardwareAddress().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.NetworkDeviceData parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.NetworkDeviceData parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.NetworkDeviceData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.NetworkDeviceData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.NetworkDeviceData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.NetworkDeviceData parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.NetworkDeviceData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.NetworkDeviceData parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.NetworkDeviceData parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.NetworkDeviceData parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.NetworkDeviceData parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.NetworkDeviceData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.NetworkDeviceData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * NetworkDeviceData provides network-related details for the allocated device.
+     * This information may be filled by drivers or other components to configure
+     * or identify the device within a network context.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.NetworkDeviceData} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.NetworkDeviceData) + io.kubernetes.client.proto.V1Resource.NetworkDeviceDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_NetworkDeviceData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_NetworkDeviceData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.NetworkDeviceData.class, io.kubernetes.client.proto.V1Resource.NetworkDeviceData.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.NetworkDeviceData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + interfaceName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + ips_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + hardwareAddress_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_NetworkDeviceData_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.NetworkDeviceData getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.NetworkDeviceData.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.NetworkDeviceData build() { + io.kubernetes.client.proto.V1Resource.NetworkDeviceData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.NetworkDeviceData buildPartial() { + io.kubernetes.client.proto.V1Resource.NetworkDeviceData result = new io.kubernetes.client.proto.V1Resource.NetworkDeviceData(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.interfaceName_ = interfaceName_; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + ips_ = ips_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.ips_ = ips_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + result.hardwareAddress_ = hardwareAddress_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.NetworkDeviceData) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.NetworkDeviceData)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.NetworkDeviceData other) { + if (other == io.kubernetes.client.proto.V1Resource.NetworkDeviceData.getDefaultInstance()) return this; + if (other.hasInterfaceName()) { + bitField0_ |= 0x00000001; + interfaceName_ = other.interfaceName_; + onChanged(); + } + if (!other.ips_.isEmpty()) { + if (ips_.isEmpty()) { + ips_ = other.ips_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIpsIsMutable(); + ips_.addAll(other.ips_); + } + onChanged(); + } + if (other.hasHardwareAddress()) { + bitField0_ |= 0x00000004; + hardwareAddress_ = other.hardwareAddress_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.NetworkDeviceData parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.NetworkDeviceData) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object interfaceName_ = ""; + /** + *
+       * InterfaceName specifies the name of the network interface associated with
+       * the allocated device. This might be the name of a physical or virtual
+       * network interface being configured in the pod.
+       * Must not be longer than 256 bytes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxBytes=256
+       * 
+ * + * optional string interfaceName = 1; + */ + public boolean hasInterfaceName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * InterfaceName specifies the name of the network interface associated with
+       * the allocated device. This might be the name of a physical or virtual
+       * network interface being configured in the pod.
+       * Must not be longer than 256 bytes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxBytes=256
+       * 
+ * + * optional string interfaceName = 1; + */ + public java.lang.String getInterfaceName() { + java.lang.Object ref = interfaceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + interfaceName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * InterfaceName specifies the name of the network interface associated with
+       * the allocated device. This might be the name of a physical or virtual
+       * network interface being configured in the pod.
+       * Must not be longer than 256 bytes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxBytes=256
+       * 
+ * + * optional string interfaceName = 1; + */ + public com.google.protobuf.ByteString + getInterfaceNameBytes() { + java.lang.Object ref = interfaceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + interfaceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * InterfaceName specifies the name of the network interface associated with
+       * the allocated device. This might be the name of a physical or virtual
+       * network interface being configured in the pod.
+       * Must not be longer than 256 bytes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxBytes=256
+       * 
+ * + * optional string interfaceName = 1; + */ + public Builder setInterfaceName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + interfaceName_ = value; + onChanged(); + return this; + } + /** + *
+       * InterfaceName specifies the name of the network interface associated with
+       * the allocated device. This might be the name of a physical or virtual
+       * network interface being configured in the pod.
+       * Must not be longer than 256 bytes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxBytes=256
+       * 
+ * + * optional string interfaceName = 1; + */ + public Builder clearInterfaceName() { + bitField0_ = (bitField0_ & ~0x00000001); + interfaceName_ = getDefaultInstance().getInterfaceName(); + onChanged(); + return this; + } + /** + *
+       * InterfaceName specifies the name of the network interface associated with
+       * the allocated device. This might be the name of a physical or virtual
+       * network interface being configured in the pod.
+       * Must not be longer than 256 bytes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxBytes=256
+       * 
+ * + * optional string interfaceName = 1; + */ + public Builder setInterfaceNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + interfaceName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList ips_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureIpsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + ips_ = new com.google.protobuf.LazyStringArrayList(ips_); + bitField0_ |= 0x00000002; + } + } + /** + *
+       * IPs lists the network addresses assigned to the device's network interface.
+       * This can include both IPv4 and IPv6 addresses.
+       * The IPs are in the CIDR notation, which includes both the address and the
+       * associated subnet mask.
+       * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+       * 
+ * + * repeated string ips = 2; + */ + public com.google.protobuf.ProtocolStringList + getIpsList() { + return ips_.getUnmodifiableView(); + } + /** + *
+       * IPs lists the network addresses assigned to the device's network interface.
+       * This can include both IPv4 and IPv6 addresses.
+       * The IPs are in the CIDR notation, which includes both the address and the
+       * associated subnet mask.
+       * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+       * 
+ * + * repeated string ips = 2; + */ + public int getIpsCount() { + return ips_.size(); + } + /** + *
+       * IPs lists the network addresses assigned to the device's network interface.
+       * This can include both IPv4 and IPv6 addresses.
+       * The IPs are in the CIDR notation, which includes both the address and the
+       * associated subnet mask.
+       * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+       * 
+ * + * repeated string ips = 2; + */ + public java.lang.String getIps(int index) { + return ips_.get(index); + } + /** + *
+       * IPs lists the network addresses assigned to the device's network interface.
+       * This can include both IPv4 and IPv6 addresses.
+       * The IPs are in the CIDR notation, which includes both the address and the
+       * associated subnet mask.
+       * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+       * 
+ * + * repeated string ips = 2; + */ + public com.google.protobuf.ByteString + getIpsBytes(int index) { + return ips_.getByteString(index); + } + /** + *
+       * IPs lists the network addresses assigned to the device's network interface.
+       * This can include both IPv4 and IPv6 addresses.
+       * The IPs are in the CIDR notation, which includes both the address and the
+       * associated subnet mask.
+       * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+       * 
+ * + * repeated string ips = 2; + */ + public Builder setIps( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIpsIsMutable(); + ips_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * IPs lists the network addresses assigned to the device's network interface.
+       * This can include both IPv4 and IPv6 addresses.
+       * The IPs are in the CIDR notation, which includes both the address and the
+       * associated subnet mask.
+       * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+       * 
+ * + * repeated string ips = 2; + */ + public Builder addIps( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIpsIsMutable(); + ips_.add(value); + onChanged(); + return this; + } + /** + *
+       * IPs lists the network addresses assigned to the device's network interface.
+       * This can include both IPv4 and IPv6 addresses.
+       * The IPs are in the CIDR notation, which includes both the address and the
+       * associated subnet mask.
+       * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+       * 
+ * + * repeated string ips = 2; + */ + public Builder addAllIps( + java.lang.Iterable values) { + ensureIpsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, ips_); + onChanged(); + return this; + } + /** + *
+       * IPs lists the network addresses assigned to the device's network interface.
+       * This can include both IPv4 and IPv6 addresses.
+       * The IPs are in the CIDR notation, which includes both the address and the
+       * associated subnet mask.
+       * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+       * 
+ * + * repeated string ips = 2; + */ + public Builder clearIps() { + ips_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+       * IPs lists the network addresses assigned to the device's network interface.
+       * This can include both IPv4 and IPv6 addresses.
+       * The IPs are in the CIDR notation, which includes both the address and the
+       * associated subnet mask.
+       * e.g.: "192.0.2.5/24" for IPv4 and "2001:db8::5/64" for IPv6.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=set
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=16
+       * 
+ * + * repeated string ips = 2; + */ + public Builder addIpsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIpsIsMutable(); + ips_.add(value); + onChanged(); + return this; + } + + private java.lang.Object hardwareAddress_ = ""; + /** + *
+       * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
+       * Must not be longer than 128 bytes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxBytes=128
+       * 
+ * + * optional string hardwareAddress = 3; + */ + public boolean hasHardwareAddress() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
+       * Must not be longer than 128 bytes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxBytes=128
+       * 
+ * + * optional string hardwareAddress = 3; + */ + public java.lang.String getHardwareAddress() { + java.lang.Object ref = hardwareAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + hardwareAddress_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
+       * Must not be longer than 128 bytes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxBytes=128
+       * 
+ * + * optional string hardwareAddress = 3; + */ + public com.google.protobuf.ByteString + getHardwareAddressBytes() { + java.lang.Object ref = hardwareAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + hardwareAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
+       * Must not be longer than 128 bytes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxBytes=128
+       * 
+ * + * optional string hardwareAddress = 3; + */ + public Builder setHardwareAddress( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + hardwareAddress_ = value; + onChanged(); + return this; + } + /** + *
+       * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
+       * Must not be longer than 128 bytes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxBytes=128
+       * 
+ * + * optional string hardwareAddress = 3; + */ + public Builder clearHardwareAddress() { + bitField0_ = (bitField0_ & ~0x00000004); + hardwareAddress_ = getDefaultInstance().getHardwareAddress(); + onChanged(); + return this; + } + /** + *
+       * HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface.
+       * Must not be longer than 128 bytes.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:maxBytes=128
+       * 
+ * + * optional string hardwareAddress = 3; + */ + public Builder setHardwareAddressBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + hardwareAddress_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.NetworkDeviceData) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.NetworkDeviceData) + private static final io.kubernetes.client.proto.V1Resource.NetworkDeviceData DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.NetworkDeviceData(); + } + + public static io.kubernetes.client.proto.V1Resource.NetworkDeviceData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NetworkDeviceData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NetworkDeviceData(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.NetworkDeviceData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface NodeAllocatableResourceMappingOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.NodeAllocatableResourceMapping) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * CapacityKey references a capacity name defined as a key in the
+     * `spec.devices[*].capacity` map. When this field is set, the value associated with
+     * this key in the `status.allocation.devices.results[*].consumedCapacity` map
+     * (for a specific claim allocation) determines the base quantity for
+     * the node allocatable resource. If `allocationMultiplier` is also set, it is
+     * multiplied with the base quantity.
+     * For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi",
+     * and this field is set to "dra.example.com/memory", then for a claim allocation
+     * that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the
+     * node allocatable resource mapping will be "4Gi", and `allocationMultiplier` should
+     * be omitted or set to "1".
+     * +optional
+     * 
+ * + * optional string capacityKey = 1; + */ + boolean hasCapacityKey(); + /** + *
+     * CapacityKey references a capacity name defined as a key in the
+     * `spec.devices[*].capacity` map. When this field is set, the value associated with
+     * this key in the `status.allocation.devices.results[*].consumedCapacity` map
+     * (for a specific claim allocation) determines the base quantity for
+     * the node allocatable resource. If `allocationMultiplier` is also set, it is
+     * multiplied with the base quantity.
+     * For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi",
+     * and this field is set to "dra.example.com/memory", then for a claim allocation
+     * that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the
+     * node allocatable resource mapping will be "4Gi", and `allocationMultiplier` should
+     * be omitted or set to "1".
+     * +optional
+     * 
+ * + * optional string capacityKey = 1; + */ + java.lang.String getCapacityKey(); + /** + *
+     * CapacityKey references a capacity name defined as a key in the
+     * `spec.devices[*].capacity` map. When this field is set, the value associated with
+     * this key in the `status.allocation.devices.results[*].consumedCapacity` map
+     * (for a specific claim allocation) determines the base quantity for
+     * the node allocatable resource. If `allocationMultiplier` is also set, it is
+     * multiplied with the base quantity.
+     * For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi",
+     * and this field is set to "dra.example.com/memory", then for a claim allocation
+     * that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the
+     * node allocatable resource mapping will be "4Gi", and `allocationMultiplier` should
+     * be omitted or set to "1".
+     * +optional
+     * 
+ * + * optional string capacityKey = 1; + */ + com.google.protobuf.ByteString + getCapacityKeyBytes(); + + /** + *
+     * AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim.
+     * It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set.
+     * 1.  If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.
+     * 	   a. A DRA driver representing each CPU core as a device would have
+     *        {ResourceName: "cpu", allocationMultiplier: "2"} in its
+     *        `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,
+     * 		  4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.
+     *     b. A GPU device that needs additional node memory per GPU allocation would
+     *        have {ResourceName: "memory", allocationMultiplier: "2Gi"}.  Each allocated
+     * 		  GPU device instance of this type will account for 2Gi of memory.
+     * 2.  If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.
+     * 	   The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.
+     *     For example, if a Device's capacity "dra.example.com/cores" is consumed,
+     *     and each "core" provides 2 "cpu"s, the mapping would be:
+     *     {ResourceName: "cpu", capacityKey: "dra.example.com/cores", allocationMultiplier: "2"}.
+     *     If a claim consumes 8 "dra.example.com/cores", the CPU footprint is 8 * 2 = 16.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity allocationMultiplier = 2; + */ + boolean hasAllocationMultiplier(); + /** + *
+     * AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim.
+     * It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set.
+     * 1.  If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.
+     * 	   a. A DRA driver representing each CPU core as a device would have
+     *        {ResourceName: "cpu", allocationMultiplier: "2"} in its
+     *        `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,
+     * 		  4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.
+     *     b. A GPU device that needs additional node memory per GPU allocation would
+     *        have {ResourceName: "memory", allocationMultiplier: "2Gi"}.  Each allocated
+     * 		  GPU device instance of this type will account for 2Gi of memory.
+     * 2.  If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.
+     * 	   The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.
+     *     For example, if a Device's capacity "dra.example.com/cores" is consumed,
+     *     and each "core" provides 2 "cpu"s, the mapping would be:
+     *     {ResourceName: "cpu", capacityKey: "dra.example.com/cores", allocationMultiplier: "2"}.
+     *     If a claim consumes 8 "dra.example.com/cores", the CPU footprint is 8 * 2 = 16.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity allocationMultiplier = 2; + */ + io.kubernetes.client.proto.Resource.Quantity getAllocationMultiplier(); + /** + *
+     * AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim.
+     * It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set.
+     * 1.  If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.
+     * 	   a. A DRA driver representing each CPU core as a device would have
+     *        {ResourceName: "cpu", allocationMultiplier: "2"} in its
+     *        `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,
+     * 		  4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.
+     *     b. A GPU device that needs additional node memory per GPU allocation would
+     *        have {ResourceName: "memory", allocationMultiplier: "2Gi"}.  Each allocated
+     * 		  GPU device instance of this type will account for 2Gi of memory.
+     * 2.  If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.
+     * 	   The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.
+     *     For example, if a Device's capacity "dra.example.com/cores" is consumed,
+     *     and each "core" provides 2 "cpu"s, the mapping would be:
+     *     {ResourceName: "cpu", capacityKey: "dra.example.com/cores", allocationMultiplier: "2"}.
+     *     If a claim consumes 8 "dra.example.com/cores", the CPU footprint is 8 * 2 = 16.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity allocationMultiplier = 2; + */ + io.kubernetes.client.proto.Resource.QuantityOrBuilder getAllocationMultiplierOrBuilder(); + } + /** + *
+   * NodeAllocatableResourceMapping defines the translation between the DRA device/capacity
+   * units requested to the corresponding quantity of the node allocatable resource.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.NodeAllocatableResourceMapping} + */ + public static final class NodeAllocatableResourceMapping extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.NodeAllocatableResourceMapping) + NodeAllocatableResourceMappingOrBuilder { + private static final long serialVersionUID = 0L; + // Use NodeAllocatableResourceMapping.newBuilder() to construct. + private NodeAllocatableResourceMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private NodeAllocatableResourceMapping() { + capacityKey_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private NodeAllocatableResourceMapping( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + capacityKey_ = bs; + break; + } + case 18: { + io.kubernetes.client.proto.Resource.Quantity.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = allocationMultiplier_.toBuilder(); + } + allocationMultiplier_ = input.readMessage(io.kubernetes.client.proto.Resource.Quantity.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(allocationMultiplier_); + allocationMultiplier_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_NodeAllocatableResourceMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_NodeAllocatableResourceMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping.class, io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping.Builder.class); + } + + private int bitField0_; + public static final int CAPACITYKEY_FIELD_NUMBER = 1; + private volatile java.lang.Object capacityKey_; + /** + *
+     * CapacityKey references a capacity name defined as a key in the
+     * `spec.devices[*].capacity` map. When this field is set, the value associated with
+     * this key in the `status.allocation.devices.results[*].consumedCapacity` map
+     * (for a specific claim allocation) determines the base quantity for
+     * the node allocatable resource. If `allocationMultiplier` is also set, it is
+     * multiplied with the base quantity.
+     * For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi",
+     * and this field is set to "dra.example.com/memory", then for a claim allocation
+     * that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the
+     * node allocatable resource mapping will be "4Gi", and `allocationMultiplier` should
+     * be omitted or set to "1".
+     * +optional
+     * 
+ * + * optional string capacityKey = 1; + */ + public boolean hasCapacityKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * CapacityKey references a capacity name defined as a key in the
+     * `spec.devices[*].capacity` map. When this field is set, the value associated with
+     * this key in the `status.allocation.devices.results[*].consumedCapacity` map
+     * (for a specific claim allocation) determines the base quantity for
+     * the node allocatable resource. If `allocationMultiplier` is also set, it is
+     * multiplied with the base quantity.
+     * For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi",
+     * and this field is set to "dra.example.com/memory", then for a claim allocation
+     * that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the
+     * node allocatable resource mapping will be "4Gi", and `allocationMultiplier` should
+     * be omitted or set to "1".
+     * +optional
+     * 
+ * + * optional string capacityKey = 1; + */ + public java.lang.String getCapacityKey() { + java.lang.Object ref = capacityKey_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + capacityKey_ = s; + } + return s; + } + } + /** + *
+     * CapacityKey references a capacity name defined as a key in the
+     * `spec.devices[*].capacity` map. When this field is set, the value associated with
+     * this key in the `status.allocation.devices.results[*].consumedCapacity` map
+     * (for a specific claim allocation) determines the base quantity for
+     * the node allocatable resource. If `allocationMultiplier` is also set, it is
+     * multiplied with the base quantity.
+     * For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi",
+     * and this field is set to "dra.example.com/memory", then for a claim allocation
+     * that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the
+     * node allocatable resource mapping will be "4Gi", and `allocationMultiplier` should
+     * be omitted or set to "1".
+     * +optional
+     * 
+ * + * optional string capacityKey = 1; + */ + public com.google.protobuf.ByteString + getCapacityKeyBytes() { + java.lang.Object ref = capacityKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + capacityKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ALLOCATIONMULTIPLIER_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.Resource.Quantity allocationMultiplier_; + /** + *
+     * AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim.
+     * It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set.
+     * 1.  If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.
+     * 	   a. A DRA driver representing each CPU core as a device would have
+     *        {ResourceName: "cpu", allocationMultiplier: "2"} in its
+     *        `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,
+     * 		  4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.
+     *     b. A GPU device that needs additional node memory per GPU allocation would
+     *        have {ResourceName: "memory", allocationMultiplier: "2Gi"}.  Each allocated
+     * 		  GPU device instance of this type will account for 2Gi of memory.
+     * 2.  If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.
+     * 	   The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.
+     *     For example, if a Device's capacity "dra.example.com/cores" is consumed,
+     *     and each "core" provides 2 "cpu"s, the mapping would be:
+     *     {ResourceName: "cpu", capacityKey: "dra.example.com/cores", allocationMultiplier: "2"}.
+     *     If a claim consumes 8 "dra.example.com/cores", the CPU footprint is 8 * 2 = 16.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity allocationMultiplier = 2; + */ + public boolean hasAllocationMultiplier() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim.
+     * It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set.
+     * 1.  If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.
+     * 	   a. A DRA driver representing each CPU core as a device would have
+     *        {ResourceName: "cpu", allocationMultiplier: "2"} in its
+     *        `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,
+     * 		  4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.
+     *     b. A GPU device that needs additional node memory per GPU allocation would
+     *        have {ResourceName: "memory", allocationMultiplier: "2Gi"}.  Each allocated
+     * 		  GPU device instance of this type will account for 2Gi of memory.
+     * 2.  If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.
+     * 	   The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.
+     *     For example, if a Device's capacity "dra.example.com/cores" is consumed,
+     *     and each "core" provides 2 "cpu"s, the mapping would be:
+     *     {ResourceName: "cpu", capacityKey: "dra.example.com/cores", allocationMultiplier: "2"}.
+     *     If a claim consumes 8 "dra.example.com/cores", the CPU footprint is 8 * 2 = 16.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity allocationMultiplier = 2; + */ + public io.kubernetes.client.proto.Resource.Quantity getAllocationMultiplier() { + return allocationMultiplier_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : allocationMultiplier_; + } + /** + *
+     * AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim.
+     * It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set.
+     * 1.  If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.
+     * 	   a. A DRA driver representing each CPU core as a device would have
+     *        {ResourceName: "cpu", allocationMultiplier: "2"} in its
+     *        `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,
+     * 		  4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.
+     *     b. A GPU device that needs additional node memory per GPU allocation would
+     *        have {ResourceName: "memory", allocationMultiplier: "2Gi"}.  Each allocated
+     * 		  GPU device instance of this type will account for 2Gi of memory.
+     * 2.  If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.
+     * 	   The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.
+     *     For example, if a Device's capacity "dra.example.com/cores" is consumed,
+     *     and each "core" provides 2 "cpu"s, the mapping would be:
+     *     {ResourceName: "cpu", capacityKey: "dra.example.com/cores", allocationMultiplier: "2"}.
+     *     If a claim consumes 8 "dra.example.com/cores", the CPU footprint is 8 * 2 = 16.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity allocationMultiplier = 2; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getAllocationMultiplierOrBuilder() { + return allocationMultiplier_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : allocationMultiplier_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, capacityKey_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getAllocationMultiplier()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, capacityKey_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAllocationMultiplier()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping other = (io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping) obj; + + boolean result = true; + result = result && (hasCapacityKey() == other.hasCapacityKey()); + if (hasCapacityKey()) { + result = result && getCapacityKey() + .equals(other.getCapacityKey()); + } + result = result && (hasAllocationMultiplier() == other.hasAllocationMultiplier()); + if (hasAllocationMultiplier()) { + result = result && getAllocationMultiplier() + .equals(other.getAllocationMultiplier()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCapacityKey()) { + hash = (37 * hash) + CAPACITYKEY_FIELD_NUMBER; + hash = (53 * hash) + getCapacityKey().hashCode(); + } + if (hasAllocationMultiplier()) { + hash = (37 * hash) + ALLOCATIONMULTIPLIER_FIELD_NUMBER; + hash = (53 * hash) + getAllocationMultiplier().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * NodeAllocatableResourceMapping defines the translation between the DRA device/capacity
+     * units requested to the corresponding quantity of the node allocatable resource.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.NodeAllocatableResourceMapping} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.NodeAllocatableResourceMapping) + io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMappingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_NodeAllocatableResourceMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_NodeAllocatableResourceMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping.class, io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAllocationMultiplierFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + capacityKey_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (allocationMultiplierBuilder_ == null) { + allocationMultiplier_ = null; + } else { + allocationMultiplierBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_NodeAllocatableResourceMapping_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping build() { + io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping buildPartial() { + io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping result = new io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.capacityKey_ = capacityKey_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (allocationMultiplierBuilder_ == null) { + result.allocationMultiplier_ = allocationMultiplier_; + } else { + result.allocationMultiplier_ = allocationMultiplierBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping other) { + if (other == io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping.getDefaultInstance()) return this; + if (other.hasCapacityKey()) { + bitField0_ |= 0x00000001; + capacityKey_ = other.capacityKey_; + onChanged(); + } + if (other.hasAllocationMultiplier()) { + mergeAllocationMultiplier(other.getAllocationMultiplier()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object capacityKey_ = ""; + /** + *
+       * CapacityKey references a capacity name defined as a key in the
+       * `spec.devices[*].capacity` map. When this field is set, the value associated with
+       * this key in the `status.allocation.devices.results[*].consumedCapacity` map
+       * (for a specific claim allocation) determines the base quantity for
+       * the node allocatable resource. If `allocationMultiplier` is also set, it is
+       * multiplied with the base quantity.
+       * For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi",
+       * and this field is set to "dra.example.com/memory", then for a claim allocation
+       * that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the
+       * node allocatable resource mapping will be "4Gi", and `allocationMultiplier` should
+       * be omitted or set to "1".
+       * +optional
+       * 
+ * + * optional string capacityKey = 1; + */ + public boolean hasCapacityKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * CapacityKey references a capacity name defined as a key in the
+       * `spec.devices[*].capacity` map. When this field is set, the value associated with
+       * this key in the `status.allocation.devices.results[*].consumedCapacity` map
+       * (for a specific claim allocation) determines the base quantity for
+       * the node allocatable resource. If `allocationMultiplier` is also set, it is
+       * multiplied with the base quantity.
+       * For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi",
+       * and this field is set to "dra.example.com/memory", then for a claim allocation
+       * that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the
+       * node allocatable resource mapping will be "4Gi", and `allocationMultiplier` should
+       * be omitted or set to "1".
+       * +optional
+       * 
+ * + * optional string capacityKey = 1; + */ + public java.lang.String getCapacityKey() { + java.lang.Object ref = capacityKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + capacityKey_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * CapacityKey references a capacity name defined as a key in the
+       * `spec.devices[*].capacity` map. When this field is set, the value associated with
+       * this key in the `status.allocation.devices.results[*].consumedCapacity` map
+       * (for a specific claim allocation) determines the base quantity for
+       * the node allocatable resource. If `allocationMultiplier` is also set, it is
+       * multiplied with the base quantity.
+       * For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi",
+       * and this field is set to "dra.example.com/memory", then for a claim allocation
+       * that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the
+       * node allocatable resource mapping will be "4Gi", and `allocationMultiplier` should
+       * be omitted or set to "1".
+       * +optional
+       * 
+ * + * optional string capacityKey = 1; + */ + public com.google.protobuf.ByteString + getCapacityKeyBytes() { + java.lang.Object ref = capacityKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + capacityKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * CapacityKey references a capacity name defined as a key in the
+       * `spec.devices[*].capacity` map. When this field is set, the value associated with
+       * this key in the `status.allocation.devices.results[*].consumedCapacity` map
+       * (for a specific claim allocation) determines the base quantity for
+       * the node allocatable resource. If `allocationMultiplier` is also set, it is
+       * multiplied with the base quantity.
+       * For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi",
+       * and this field is set to "dra.example.com/memory", then for a claim allocation
+       * that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the
+       * node allocatable resource mapping will be "4Gi", and `allocationMultiplier` should
+       * be omitted or set to "1".
+       * +optional
+       * 
+ * + * optional string capacityKey = 1; + */ + public Builder setCapacityKey( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + capacityKey_ = value; + onChanged(); + return this; + } + /** + *
+       * CapacityKey references a capacity name defined as a key in the
+       * `spec.devices[*].capacity` map. When this field is set, the value associated with
+       * this key in the `status.allocation.devices.results[*].consumedCapacity` map
+       * (for a specific claim allocation) determines the base quantity for
+       * the node allocatable resource. If `allocationMultiplier` is also set, it is
+       * multiplied with the base quantity.
+       * For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi",
+       * and this field is set to "dra.example.com/memory", then for a claim allocation
+       * that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the
+       * node allocatable resource mapping will be "4Gi", and `allocationMultiplier` should
+       * be omitted or set to "1".
+       * +optional
+       * 
+ * + * optional string capacityKey = 1; + */ + public Builder clearCapacityKey() { + bitField0_ = (bitField0_ & ~0x00000001); + capacityKey_ = getDefaultInstance().getCapacityKey(); + onChanged(); + return this; + } + /** + *
+       * CapacityKey references a capacity name defined as a key in the
+       * `spec.devices[*].capacity` map. When this field is set, the value associated with
+       * this key in the `status.allocation.devices.results[*].consumedCapacity` map
+       * (for a specific claim allocation) determines the base quantity for
+       * the node allocatable resource. If `allocationMultiplier` is also set, it is
+       * multiplied with the base quantity.
+       * For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi",
+       * and this field is set to "dra.example.com/memory", then for a claim allocation
+       * that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the
+       * node allocatable resource mapping will be "4Gi", and `allocationMultiplier` should
+       * be omitted or set to "1".
+       * +optional
+       * 
+ * + * optional string capacityKey = 1; + */ + public Builder setCapacityKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + capacityKey_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.Resource.Quantity allocationMultiplier_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> allocationMultiplierBuilder_; + /** + *
+       * AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim.
+       * It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set.
+       * 1.  If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.
+       * 	   a. A DRA driver representing each CPU core as a device would have
+       *        {ResourceName: "cpu", allocationMultiplier: "2"} in its
+       *        `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,
+       * 		  4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.
+       *     b. A GPU device that needs additional node memory per GPU allocation would
+       *        have {ResourceName: "memory", allocationMultiplier: "2Gi"}.  Each allocated
+       * 		  GPU device instance of this type will account for 2Gi of memory.
+       * 2.  If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.
+       * 	   The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.
+       *     For example, if a Device's capacity "dra.example.com/cores" is consumed,
+       *     and each "core" provides 2 "cpu"s, the mapping would be:
+       *     {ResourceName: "cpu", capacityKey: "dra.example.com/cores", allocationMultiplier: "2"}.
+       *     If a claim consumes 8 "dra.example.com/cores", the CPU footprint is 8 * 2 = 16.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity allocationMultiplier = 2; + */ + public boolean hasAllocationMultiplier() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim.
+       * It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set.
+       * 1.  If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.
+       * 	   a. A DRA driver representing each CPU core as a device would have
+       *        {ResourceName: "cpu", allocationMultiplier: "2"} in its
+       *        `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,
+       * 		  4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.
+       *     b. A GPU device that needs additional node memory per GPU allocation would
+       *        have {ResourceName: "memory", allocationMultiplier: "2Gi"}.  Each allocated
+       * 		  GPU device instance of this type will account for 2Gi of memory.
+       * 2.  If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.
+       * 	   The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.
+       *     For example, if a Device's capacity "dra.example.com/cores" is consumed,
+       *     and each "core" provides 2 "cpu"s, the mapping would be:
+       *     {ResourceName: "cpu", capacityKey: "dra.example.com/cores", allocationMultiplier: "2"}.
+       *     If a claim consumes 8 "dra.example.com/cores", the CPU footprint is 8 * 2 = 16.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity allocationMultiplier = 2; + */ + public io.kubernetes.client.proto.Resource.Quantity getAllocationMultiplier() { + if (allocationMultiplierBuilder_ == null) { + return allocationMultiplier_ == null ? io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : allocationMultiplier_; + } else { + return allocationMultiplierBuilder_.getMessage(); + } + } + /** + *
+       * AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim.
+       * It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set.
+       * 1.  If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.
+       * 	   a. A DRA driver representing each CPU core as a device would have
+       *        {ResourceName: "cpu", allocationMultiplier: "2"} in its
+       *        `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,
+       * 		  4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.
+       *     b. A GPU device that needs additional node memory per GPU allocation would
+       *        have {ResourceName: "memory", allocationMultiplier: "2Gi"}.  Each allocated
+       * 		  GPU device instance of this type will account for 2Gi of memory.
+       * 2.  If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.
+       * 	   The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.
+       *     For example, if a Device's capacity "dra.example.com/cores" is consumed,
+       *     and each "core" provides 2 "cpu"s, the mapping would be:
+       *     {ResourceName: "cpu", capacityKey: "dra.example.com/cores", allocationMultiplier: "2"}.
+       *     If a claim consumes 8 "dra.example.com/cores", the CPU footprint is 8 * 2 = 16.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity allocationMultiplier = 2; + */ + public Builder setAllocationMultiplier(io.kubernetes.client.proto.Resource.Quantity value) { + if (allocationMultiplierBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + allocationMultiplier_ = value; + onChanged(); + } else { + allocationMultiplierBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim.
+       * It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set.
+       * 1.  If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.
+       * 	   a. A DRA driver representing each CPU core as a device would have
+       *        {ResourceName: "cpu", allocationMultiplier: "2"} in its
+       *        `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,
+       * 		  4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.
+       *     b. A GPU device that needs additional node memory per GPU allocation would
+       *        have {ResourceName: "memory", allocationMultiplier: "2Gi"}.  Each allocated
+       * 		  GPU device instance of this type will account for 2Gi of memory.
+       * 2.  If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.
+       * 	   The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.
+       *     For example, if a Device's capacity "dra.example.com/cores" is consumed,
+       *     and each "core" provides 2 "cpu"s, the mapping would be:
+       *     {ResourceName: "cpu", capacityKey: "dra.example.com/cores", allocationMultiplier: "2"}.
+       *     If a claim consumes 8 "dra.example.com/cores", the CPU footprint is 8 * 2 = 16.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity allocationMultiplier = 2; + */ + public Builder setAllocationMultiplier( + io.kubernetes.client.proto.Resource.Quantity.Builder builderForValue) { + if (allocationMultiplierBuilder_ == null) { + allocationMultiplier_ = builderForValue.build(); + onChanged(); + } else { + allocationMultiplierBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim.
+       * It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set.
+       * 1.  If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.
+       * 	   a. A DRA driver representing each CPU core as a device would have
+       *        {ResourceName: "cpu", allocationMultiplier: "2"} in its
+       *        `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,
+       * 		  4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.
+       *     b. A GPU device that needs additional node memory per GPU allocation would
+       *        have {ResourceName: "memory", allocationMultiplier: "2Gi"}.  Each allocated
+       * 		  GPU device instance of this type will account for 2Gi of memory.
+       * 2.  If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.
+       * 	   The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.
+       *     For example, if a Device's capacity "dra.example.com/cores" is consumed,
+       *     and each "core" provides 2 "cpu"s, the mapping would be:
+       *     {ResourceName: "cpu", capacityKey: "dra.example.com/cores", allocationMultiplier: "2"}.
+       *     If a claim consumes 8 "dra.example.com/cores", the CPU footprint is 8 * 2 = 16.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity allocationMultiplier = 2; + */ + public Builder mergeAllocationMultiplier(io.kubernetes.client.proto.Resource.Quantity value) { + if (allocationMultiplierBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + allocationMultiplier_ != null && + allocationMultiplier_ != io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance()) { + allocationMultiplier_ = + io.kubernetes.client.proto.Resource.Quantity.newBuilder(allocationMultiplier_).mergeFrom(value).buildPartial(); + } else { + allocationMultiplier_ = value; + } + onChanged(); + } else { + allocationMultiplierBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim.
+       * It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set.
+       * 1.  If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.
+       * 	   a. A DRA driver representing each CPU core as a device would have
+       *        {ResourceName: "cpu", allocationMultiplier: "2"} in its
+       *        `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,
+       * 		  4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.
+       *     b. A GPU device that needs additional node memory per GPU allocation would
+       *        have {ResourceName: "memory", allocationMultiplier: "2Gi"}.  Each allocated
+       * 		  GPU device instance of this type will account for 2Gi of memory.
+       * 2.  If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.
+       * 	   The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.
+       *     For example, if a Device's capacity "dra.example.com/cores" is consumed,
+       *     and each "core" provides 2 "cpu"s, the mapping would be:
+       *     {ResourceName: "cpu", capacityKey: "dra.example.com/cores", allocationMultiplier: "2"}.
+       *     If a claim consumes 8 "dra.example.com/cores", the CPU footprint is 8 * 2 = 16.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity allocationMultiplier = 2; + */ + public Builder clearAllocationMultiplier() { + if (allocationMultiplierBuilder_ == null) { + allocationMultiplier_ = null; + onChanged(); + } else { + allocationMultiplierBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim.
+       * It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set.
+       * 1.  If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.
+       * 	   a. A DRA driver representing each CPU core as a device would have
+       *        {ResourceName: "cpu", allocationMultiplier: "2"} in its
+       *        `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,
+       * 		  4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.
+       *     b. A GPU device that needs additional node memory per GPU allocation would
+       *        have {ResourceName: "memory", allocationMultiplier: "2Gi"}.  Each allocated
+       * 		  GPU device instance of this type will account for 2Gi of memory.
+       * 2.  If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.
+       * 	   The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.
+       *     For example, if a Device's capacity "dra.example.com/cores" is consumed,
+       *     and each "core" provides 2 "cpu"s, the mapping would be:
+       *     {ResourceName: "cpu", capacityKey: "dra.example.com/cores", allocationMultiplier: "2"}.
+       *     If a claim consumes 8 "dra.example.com/cores", the CPU footprint is 8 * 2 = 16.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity allocationMultiplier = 2; + */ + public io.kubernetes.client.proto.Resource.Quantity.Builder getAllocationMultiplierBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAllocationMultiplierFieldBuilder().getBuilder(); + } + /** + *
+       * AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim.
+       * It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set.
+       * 1.  If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.
+       * 	   a. A DRA driver representing each CPU core as a device would have
+       *        {ResourceName: "cpu", allocationMultiplier: "2"} in its
+       *        `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,
+       * 		  4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.
+       *     b. A GPU device that needs additional node memory per GPU allocation would
+       *        have {ResourceName: "memory", allocationMultiplier: "2Gi"}.  Each allocated
+       * 		  GPU device instance of this type will account for 2Gi of memory.
+       * 2.  If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.
+       * 	   The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.
+       *     For example, if a Device's capacity "dra.example.com/cores" is consumed,
+       *     and each "core" provides 2 "cpu"s, the mapping would be:
+       *     {ResourceName: "cpu", capacityKey: "dra.example.com/cores", allocationMultiplier: "2"}.
+       *     If a claim consumes 8 "dra.example.com/cores", the CPU footprint is 8 * 2 = 16.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity allocationMultiplier = 2; + */ + public io.kubernetes.client.proto.Resource.QuantityOrBuilder getAllocationMultiplierOrBuilder() { + if (allocationMultiplierBuilder_ != null) { + return allocationMultiplierBuilder_.getMessageOrBuilder(); + } else { + return allocationMultiplier_ == null ? + io.kubernetes.client.proto.Resource.Quantity.getDefaultInstance() : allocationMultiplier_; + } + } + /** + *
+       * AllocationMultiplier is used as a multiplier for the allocated device count or the allocated capacity in the claim.
+       * It defaults to 1 if not specified. How the field is used also depends on whether `capacityKey` is set.
+       * 1.  If `capacityKey` is NOT set: `allocationMultiplier` multiplies the device count allocated to the claim.
+       * 	   a. A DRA driver representing each CPU core as a device would have
+       *        {ResourceName: "cpu", allocationMultiplier: "2"} in its
+       *        `nodeAllocatableResourceMappings`. If 4 devices are allocated to the claim,
+       * 		  4 * 2 CPUs would be considered as allocated and subtracted from the node's capacity.
+       *     b. A GPU device that needs additional node memory per GPU allocation would
+       *        have {ResourceName: "memory", allocationMultiplier: "2Gi"}.  Each allocated
+       * 		  GPU device instance of this type will account for 2Gi of memory.
+       * 2.  If `capacityKey` IS set: `allocationMultiplier` is multiplied by the amount of that capacity consumed.
+       * 	   The final node allocatable resource amount is `consumedCapacity[capacityKey]` * `allocationMultiplier`.
+       *     For example, if a Device's capacity "dra.example.com/cores" is consumed,
+       *     and each "core" provides 2 "cpu"s, the mapping would be:
+       *     {ResourceName: "cpu", capacityKey: "dra.example.com/cores", allocationMultiplier: "2"}.
+       *     If a claim consumes 8 "dra.example.com/cores", the CPU footprint is 8 * 2 = 16.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.api.resource.Quantity allocationMultiplier = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder> + getAllocationMultiplierFieldBuilder() { + if (allocationMultiplierBuilder_ == null) { + allocationMultiplierBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Resource.Quantity, io.kubernetes.client.proto.Resource.Quantity.Builder, io.kubernetes.client.proto.Resource.QuantityOrBuilder>( + getAllocationMultiplier(), + getParentForChildren(), + isClean()); + allocationMultiplier_ = null; + } + return allocationMultiplierBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.NodeAllocatableResourceMapping) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.NodeAllocatableResourceMapping) + private static final io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping(); + } + + public static io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NodeAllocatableResourceMapping parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new NodeAllocatableResourceMapping(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.NodeAllocatableResourceMapping getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface OpaqueDeviceConfigurationOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.OpaqueDeviceConfiguration) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Driver is used to determine which kubelet plugin needs
+     * to be passed these configuration parameters.
+     * An admission policy provided by the driver developer could use this
+     * to decide whether it needs to validate them.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+     * 
+ * + * optional string driver = 1; + */ + boolean hasDriver(); + /** + *
+     * Driver is used to determine which kubelet plugin needs
+     * to be passed these configuration parameters.
+     * An admission policy provided by the driver developer could use this
+     * to decide whether it needs to validate them.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+     * 
+ * + * optional string driver = 1; + */ + java.lang.String getDriver(); + /** + *
+     * Driver is used to determine which kubelet plugin needs
+     * to be passed these configuration parameters.
+     * An admission policy provided by the driver developer could use this
+     * to decide whether it needs to validate them.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+     * 
+ * + * optional string driver = 1; + */ + com.google.protobuf.ByteString + getDriverBytes(); + + /** + *
+     * Parameters can contain arbitrary data. It is the responsibility of
+     * the driver developer to handle validation and versioning. Typically this
+     * includes self-identification and a version ("kind" + "apiVersion" for
+     * Kubernetes types), with conversion between different versions.
+     * The length of the raw data must be smaller or equal to 10 Ki.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2; + */ + boolean hasParameters(); + /** + *
+     * Parameters can contain arbitrary data. It is the responsibility of
+     * the driver developer to handle validation and versioning. Typically this
+     * includes self-identification and a version ("kind" + "apiVersion" for
+     * Kubernetes types), with conversion between different versions.
+     * The length of the raw data must be smaller or equal to 10 Ki.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2; + */ + io.kubernetes.client.proto.Runtime.RawExtension getParameters(); + /** + *
+     * Parameters can contain arbitrary data. It is the responsibility of
+     * the driver developer to handle validation and versioning. Typically this
+     * includes self-identification and a version ("kind" + "apiVersion" for
+     * Kubernetes types), with conversion between different versions.
+     * The length of the raw data must be smaller or equal to 10 Ki.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2; + */ + io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getParametersOrBuilder(); + } + /** + *
+   * OpaqueDeviceConfiguration contains configuration parameters for a driver
+   * in a format defined by the driver vendor.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.OpaqueDeviceConfiguration} + */ + public static final class OpaqueDeviceConfiguration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.OpaqueDeviceConfiguration) + OpaqueDeviceConfigurationOrBuilder { + private static final long serialVersionUID = 0L; + // Use OpaqueDeviceConfiguration.newBuilder() to construct. + private OpaqueDeviceConfiguration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OpaqueDeviceConfiguration() { + driver_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OpaqueDeviceConfiguration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + driver_ = bs; + break; + } + case 18: { + io.kubernetes.client.proto.Runtime.RawExtension.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = parameters_.toBuilder(); + } + parameters_ = input.readMessage(io.kubernetes.client.proto.Runtime.RawExtension.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(parameters_); + parameters_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_OpaqueDeviceConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_OpaqueDeviceConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.class, io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.Builder.class); + } + + private int bitField0_; + public static final int DRIVER_FIELD_NUMBER = 1; + private volatile java.lang.Object driver_; + /** + *
+     * Driver is used to determine which kubelet plugin needs
+     * to be passed these configuration parameters.
+     * An admission policy provided by the driver developer could use this
+     * to decide whether it needs to validate them.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+     * 
+ * + * optional string driver = 1; + */ + public boolean hasDriver() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Driver is used to determine which kubelet plugin needs
+     * to be passed these configuration parameters.
+     * An admission policy provided by the driver developer could use this
+     * to decide whether it needs to validate them.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+     * 
+ * + * optional string driver = 1; + */ + public java.lang.String getDriver() { + java.lang.Object ref = driver_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + driver_ = s; + } + return s; + } + } + /** + *
+     * Driver is used to determine which kubelet plugin needs
+     * to be passed these configuration parameters.
+     * An admission policy provided by the driver developer could use this
+     * to decide whether it needs to validate them.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+     * 
+ * + * optional string driver = 1; + */ + public com.google.protobuf.ByteString + getDriverBytes() { + java.lang.Object ref = driver_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + driver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETERS_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.Runtime.RawExtension parameters_; + /** + *
+     * Parameters can contain arbitrary data. It is the responsibility of
+     * the driver developer to handle validation and versioning. Typically this
+     * includes self-identification and a version ("kind" + "apiVersion" for
+     * Kubernetes types), with conversion between different versions.
+     * The length of the raw data must be smaller or equal to 10 Ki.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2; + */ + public boolean hasParameters() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * Parameters can contain arbitrary data. It is the responsibility of
+     * the driver developer to handle validation and versioning. Typically this
+     * includes self-identification and a version ("kind" + "apiVersion" for
+     * Kubernetes types), with conversion between different versions.
+     * The length of the raw data must be smaller or equal to 10 Ki.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2; + */ + public io.kubernetes.client.proto.Runtime.RawExtension getParameters() { + return parameters_ == null ? io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance() : parameters_; + } + /** + *
+     * Parameters can contain arbitrary data. It is the responsibility of
+     * the driver developer to handle validation and versioning. Typically this
+     * includes self-identification and a version ("kind" + "apiVersion" for
+     * Kubernetes types), with conversion between different versions.
+     * The length of the raw data must be smaller or equal to 10 Ki.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2; + */ + public io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getParametersOrBuilder() { + return parameters_ == null ? io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance() : parameters_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getParameters()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, driver_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getParameters()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration other = (io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration) obj; + + boolean result = true; + result = result && (hasDriver() == other.hasDriver()); + if (hasDriver()) { + result = result && getDriver() + .equals(other.getDriver()); + } + result = result && (hasParameters() == other.hasParameters()); + if (hasParameters()) { + result = result && getParameters() + .equals(other.getParameters()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDriver()) { + hash = (37 * hash) + DRIVER_FIELD_NUMBER; + hash = (53 * hash) + getDriver().hashCode(); + } + if (hasParameters()) { + hash = (37 * hash) + PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getParameters().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * OpaqueDeviceConfiguration contains configuration parameters for a driver
+     * in a format defined by the driver vendor.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.OpaqueDeviceConfiguration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.OpaqueDeviceConfiguration) + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfigurationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_OpaqueDeviceConfiguration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_OpaqueDeviceConfiguration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.class, io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getParametersFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + driver_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (parametersBuilder_ == null) { + parameters_ = null; + } else { + parametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_OpaqueDeviceConfiguration_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration build() { + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration buildPartial() { + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration result = new io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.driver_ = driver_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (parametersBuilder_ == null) { + result.parameters_ = parameters_; + } else { + result.parameters_ = parametersBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration other) { + if (other == io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration.getDefaultInstance()) return this; + if (other.hasDriver()) { + bitField0_ |= 0x00000001; + driver_ = other.driver_; + onChanged(); + } + if (other.hasParameters()) { + mergeParameters(other.getParameters()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object driver_ = ""; + /** + *
+       * Driver is used to determine which kubelet plugin needs
+       * to be passed these configuration parameters.
+       * An admission policy provided by the driver developer could use this
+       * to decide whether it needs to validate them.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+       * 
+ * + * optional string driver = 1; + */ + public boolean hasDriver() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Driver is used to determine which kubelet plugin needs
+       * to be passed these configuration parameters.
+       * An admission policy provided by the driver developer could use this
+       * to decide whether it needs to validate them.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+       * 
+ * + * optional string driver = 1; + */ + public java.lang.String getDriver() { + java.lang.Object ref = driver_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + driver_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Driver is used to determine which kubelet plugin needs
+       * to be passed these configuration parameters.
+       * An admission policy provided by the driver developer could use this
+       * to decide whether it needs to validate them.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+       * 
+ * + * optional string driver = 1; + */ + public com.google.protobuf.ByteString + getDriverBytes() { + java.lang.Object ref = driver_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + driver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Driver is used to determine which kubelet plugin needs
+       * to be passed these configuration parameters.
+       * An admission policy provided by the driver developer could use this
+       * to decide whether it needs to validate them.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+       * 
+ * + * optional string driver = 1; + */ + public Builder setDriver( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + driver_ = value; + onChanged(); + return this; + } + /** + *
+       * Driver is used to determine which kubelet plugin needs
+       * to be passed these configuration parameters.
+       * An admission policy provided by the driver developer could use this
+       * to decide whether it needs to validate them.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+       * 
+ * + * optional string driver = 1; + */ + public Builder clearDriver() { + bitField0_ = (bitField0_ & ~0x00000001); + driver_ = getDefaultInstance().getDriver(); + onChanged(); + return this; + } + /** + *
+       * Driver is used to determine which kubelet plugin needs
+       * to be passed these configuration parameters.
+       * An admission policy provided by the driver developer could use this
+       * to decide whether it needs to validate them.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format=k8s-long-name-caseless
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
+       * 
+ * + * optional string driver = 1; + */ + public Builder setDriverBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + driver_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.Runtime.RawExtension parameters_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Runtime.RawExtension, io.kubernetes.client.proto.Runtime.RawExtension.Builder, io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder> parametersBuilder_; + /** + *
+       * Parameters can contain arbitrary data. It is the responsibility of
+       * the driver developer to handle validation and versioning. Typically this
+       * includes self-identification and a version ("kind" + "apiVersion" for
+       * Kubernetes types), with conversion between different versions.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2; + */ + public boolean hasParameters() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * Parameters can contain arbitrary data. It is the responsibility of
+       * the driver developer to handle validation and versioning. Typically this
+       * includes self-identification and a version ("kind" + "apiVersion" for
+       * Kubernetes types), with conversion between different versions.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2; + */ + public io.kubernetes.client.proto.Runtime.RawExtension getParameters() { + if (parametersBuilder_ == null) { + return parameters_ == null ? io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance() : parameters_; + } else { + return parametersBuilder_.getMessage(); + } + } + /** + *
+       * Parameters can contain arbitrary data. It is the responsibility of
+       * the driver developer to handle validation and versioning. Typically this
+       * includes self-identification and a version ("kind" + "apiVersion" for
+       * Kubernetes types), with conversion between different versions.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2; + */ + public Builder setParameters(io.kubernetes.client.proto.Runtime.RawExtension value) { + if (parametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parameters_ = value; + onChanged(); + } else { + parametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Parameters can contain arbitrary data. It is the responsibility of
+       * the driver developer to handle validation and versioning. Typically this
+       * includes self-identification and a version ("kind" + "apiVersion" for
+       * Kubernetes types), with conversion between different versions.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2; + */ + public Builder setParameters( + io.kubernetes.client.proto.Runtime.RawExtension.Builder builderForValue) { + if (parametersBuilder_ == null) { + parameters_ = builderForValue.build(); + onChanged(); + } else { + parametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Parameters can contain arbitrary data. It is the responsibility of
+       * the driver developer to handle validation and versioning. Typically this
+       * includes self-identification and a version ("kind" + "apiVersion" for
+       * Kubernetes types), with conversion between different versions.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2; + */ + public Builder mergeParameters(io.kubernetes.client.proto.Runtime.RawExtension value) { + if (parametersBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + parameters_ != null && + parameters_ != io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance()) { + parameters_ = + io.kubernetes.client.proto.Runtime.RawExtension.newBuilder(parameters_).mergeFrom(value).buildPartial(); + } else { + parameters_ = value; + } + onChanged(); + } else { + parametersBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Parameters can contain arbitrary data. It is the responsibility of
+       * the driver developer to handle validation and versioning. Typically this
+       * includes self-identification and a version ("kind" + "apiVersion" for
+       * Kubernetes types), with conversion between different versions.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2; + */ + public Builder clearParameters() { + if (parametersBuilder_ == null) { + parameters_ = null; + onChanged(); + } else { + parametersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * Parameters can contain arbitrary data. It is the responsibility of
+       * the driver developer to handle validation and versioning. Typically this
+       * includes self-identification and a version ("kind" + "apiVersion" for
+       * Kubernetes types), with conversion between different versions.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2; + */ + public io.kubernetes.client.proto.Runtime.RawExtension.Builder getParametersBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getParametersFieldBuilder().getBuilder(); + } + /** + *
+       * Parameters can contain arbitrary data. It is the responsibility of
+       * the driver developer to handle validation and versioning. Typically this
+       * includes self-identification and a version ("kind" + "apiVersion" for
+       * Kubernetes types), with conversion between different versions.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2; + */ + public io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder getParametersOrBuilder() { + if (parametersBuilder_ != null) { + return parametersBuilder_.getMessageOrBuilder(); + } else { + return parameters_ == null ? + io.kubernetes.client.proto.Runtime.RawExtension.getDefaultInstance() : parameters_; + } + } + /** + *
+       * Parameters can contain arbitrary data. It is the responsibility of
+       * the driver developer to handle validation and versioning. Typically this
+       * includes self-identification and a version ("kind" + "apiVersion" for
+       * Kubernetes types), with conversion between different versions.
+       * The length of the raw data must be smaller or equal to 10 Ki.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.runtime.RawExtension parameters = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Runtime.RawExtension, io.kubernetes.client.proto.Runtime.RawExtension.Builder, io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder> + getParametersFieldBuilder() { + if (parametersBuilder_ == null) { + parametersBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Runtime.RawExtension, io.kubernetes.client.proto.Runtime.RawExtension.Builder, io.kubernetes.client.proto.Runtime.RawExtensionOrBuilder>( + getParameters(), + getParentForChildren(), + isClean()); + parameters_ = null; + } + return parametersBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.OpaqueDeviceConfiguration) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.OpaqueDeviceConfiguration) + private static final io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration(); + } + + public static io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpaqueDeviceConfiguration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new OpaqueDeviceConfiguration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.OpaqueDeviceConfiguration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceClaimOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.ResourceClaim) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Spec describes what is being requested and how to configure it.
+     * The spec is immutable.
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * Spec describes what is being requested and how to configure it.
+     * The spec is immutable.
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec getSpec(); + /** + *
+     * Spec describes what is being requested and how to configure it.
+     * The spec is immutable.
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceClaimSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * Status describes whether the claim is ready to use and what has been allocated.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimStatus status = 3; + */ + boolean hasStatus(); + /** + *
+     * Status describes whether the claim is ready to use and what has been allocated.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimStatus status = 3; + */ + io.kubernetes.client.proto.V1Resource.ResourceClaimStatus getStatus(); + /** + *
+     * Status describes whether the claim is ready to use and what has been allocated.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimStatus status = 3; + */ + io.kubernetes.client.proto.V1Resource.ResourceClaimStatusOrBuilder getStatusOrBuilder(); + } + /** + *
+   * ResourceClaim describes a request for access to resources in the cluster,
+   * for use by workloads. For example, if a workload needs an accelerator device
+   * with specific properties, this is how that request is expressed. The status
+   * stanza tracks whether this claim has been satisfied and what specific
+   * resources have been allocated.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaim} + */ + public static final class ResourceClaim extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.ResourceClaim) + ResourceClaimOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceClaim.newBuilder() to construct. + private ResourceClaim(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceClaim() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceClaim( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaim_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaim_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaim.class, io.kubernetes.client.proto.V1Resource.ResourceClaim.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int SPEC_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Resource.ResourceClaimSpec spec_; + /** + *
+     * Spec describes what is being requested and how to configure it.
+     * The spec is immutable.
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * Spec describes what is being requested and how to configure it.
+     * The spec is immutable.
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimSpec getSpec() { + return spec_ == null ? io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Spec describes what is being requested and how to configure it.
+     * The spec is immutable.
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimSpecOrBuilder getSpecOrBuilder() { + return spec_ == null ? io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.getDefaultInstance() : spec_; + } + + public static final int STATUS_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.V1Resource.ResourceClaimStatus status_; + /** + *
+     * Status describes whether the claim is ready to use and what has been allocated.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimStatus status = 3; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * Status describes whether the claim is ready to use and what has been allocated.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimStatus status = 3; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimStatus getStatus() { + return status_ == null ? io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.getDefaultInstance() : status_; + } + /** + *
+     * Status describes whether the claim is ready to use and what has been allocated.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimStatus status = 3; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimStatusOrBuilder getStatusOrBuilder() { + return status_ == null ? io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.getDefaultInstance() : status_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getSpec()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getStatus()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStatus()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.ResourceClaim)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.ResourceClaim other = (io.kubernetes.client.proto.V1Resource.ResourceClaim) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && (hasStatus() == other.hasStatus()); + if (hasStatus()) { + result = result && getStatus() + .equals(other.getStatus()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaim parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaim parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaim parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaim parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaim parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaim parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaim parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaim parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaim parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaim parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaim parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaim parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.ResourceClaim prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ResourceClaim describes a request for access to resources in the cluster,
+     * for use by workloads. For example, if a workload needs an accelerator device
+     * with specific properties, this is how that request is expressed. The status
+     * stanza tracks whether this claim has been satisfied and what specific
+     * resources have been allocated.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaim} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.ResourceClaim) + io.kubernetes.client.proto.V1Resource.ResourceClaimOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaim_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaim_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaim.class, io.kubernetes.client.proto.V1Resource.ResourceClaim.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.ResourceClaim.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getSpecFieldBuilder(); + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (specBuilder_ == null) { + spec_ = null; + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (statusBuilder_ == null) { + status_ = null; + } else { + statusBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaim_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaim getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.ResourceClaim.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaim build() { + io.kubernetes.client.proto.V1Resource.ResourceClaim result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaim buildPartial() { + io.kubernetes.client.proto.V1Resource.ResourceClaim result = new io.kubernetes.client.proto.V1Resource.ResourceClaim(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.ResourceClaim) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.ResourceClaim)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.ResourceClaim other) { + if (other == io.kubernetes.client.proto.V1Resource.ResourceClaim.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.ResourceClaim parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.ResourceClaim) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.kubernetes.client.proto.V1Resource.ResourceClaimSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec, io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimSpecOrBuilder> specBuilder_; + /** + *
+       * Spec describes what is being requested and how to configure it.
+       * The spec is immutable.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * Spec describes what is being requested and how to configure it.
+       * The spec is immutable.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Spec describes what is being requested and how to configure it.
+       * The spec is immutable.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public Builder setSpec(io.kubernetes.client.proto.V1Resource.ResourceClaimSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Spec describes what is being requested and how to configure it.
+       * The spec is immutable.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public Builder setSpec( + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Spec describes what is being requested and how to configure it.
+       * The spec is immutable.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public Builder mergeSpec(io.kubernetes.client.proto.V1Resource.ResourceClaimSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + spec_ != null && + spec_ != io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.getDefaultInstance()) { + spec_ = + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Spec describes what is being requested and how to configure it.
+       * The spec is immutable.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * Spec describes what is being requested and how to configure it.
+       * The spec is immutable.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Spec describes what is being requested and how to configure it.
+       * The spec is immutable.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Spec describes what is being requested and how to configure it.
+       * The spec is immutable.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec, io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec, io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private io.kubernetes.client.proto.V1Resource.ResourceClaimStatus status_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimStatus, io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimStatusOrBuilder> statusBuilder_; + /** + *
+       * Status describes whether the claim is ready to use and what has been allocated.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimStatus status = 3; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * Status describes whether the claim is ready to use and what has been allocated.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimStatus status = 3; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+       * Status describes whether the claim is ready to use and what has been allocated.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimStatus status = 3; + */ + public Builder setStatus(io.kubernetes.client.proto.V1Resource.ResourceClaimStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * Status describes whether the claim is ready to use and what has been allocated.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimStatus status = 3; + */ + public Builder setStatus( + io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * Status describes whether the claim is ready to use and what has been allocated.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimStatus status = 3; + */ + public Builder mergeStatus(io.kubernetes.client.proto.V1Resource.ResourceClaimStatus value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + status_ != null && + status_ != io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.getDefaultInstance()) { + status_ = + io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * Status describes whether the claim is ready to use and what has been allocated.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimStatus status = 3; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + statusBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * Status describes whether the claim is ready to use and what has been allocated.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimStatus status = 3; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.Builder getStatusBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+       * Status describes whether the claim is ready to use and what has been allocated.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimStatus status = 3; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.getDefaultInstance() : status_; + } + } + /** + *
+       * Status describes whether the claim is ready to use and what has been allocated.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimStatus status = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimStatus, io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimStatus, io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.ResourceClaim) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.ResourceClaim) + private static final io.kubernetes.client.proto.V1Resource.ResourceClaim DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.ResourceClaim(); + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaim getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceClaim parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceClaim(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaim getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceClaimConsumerReferenceOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.ResourceClaimConsumerReference) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * APIGroup is the group for the resource being referenced. It is
+     * empty for the core API. This matches the group in the APIVersion
+     * that is used when creating the resources.
+     * +optional
+     * 
+ * + * optional string apiGroup = 1; + */ + boolean hasApiGroup(); + /** + *
+     * APIGroup is the group for the resource being referenced. It is
+     * empty for the core API. This matches the group in the APIVersion
+     * that is used when creating the resources.
+     * +optional
+     * 
+ * + * optional string apiGroup = 1; + */ + java.lang.String getApiGroup(); + /** + *
+     * APIGroup is the group for the resource being referenced. It is
+     * empty for the core API. This matches the group in the APIVersion
+     * that is used when creating the resources.
+     * +optional
+     * 
+ * + * optional string apiGroup = 1; + */ + com.google.protobuf.ByteString + getApiGroupBytes(); + + /** + *
+     * Resource is the type of resource being referenced, for example "pods".
+     * +required
+     * 
+ * + * optional string resource = 3; + */ + boolean hasResource(); + /** + *
+     * Resource is the type of resource being referenced, for example "pods".
+     * +required
+     * 
+ * + * optional string resource = 3; + */ + java.lang.String getResource(); + /** + *
+     * Resource is the type of resource being referenced, for example "pods".
+     * +required
+     * 
+ * + * optional string resource = 3; + */ + com.google.protobuf.ByteString + getResourceBytes(); + + /** + *
+     * Name is the name of resource being referenced.
+     * +required
+     * 
+ * + * optional string name = 4; + */ + boolean hasName(); + /** + *
+     * Name is the name of resource being referenced.
+     * +required
+     * 
+ * + * optional string name = 4; + */ + java.lang.String getName(); + /** + *
+     * Name is the name of resource being referenced.
+     * +required
+     * 
+ * + * optional string name = 4; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * UID identifies exactly one incarnation of the resource.
+     * +required
+     * 
+ * + * optional string uid = 5; + */ + boolean hasUid(); + /** + *
+     * UID identifies exactly one incarnation of the resource.
+     * +required
+     * 
+ * + * optional string uid = 5; + */ + java.lang.String getUid(); + /** + *
+     * UID identifies exactly one incarnation of the resource.
+     * +required
+     * 
+ * + * optional string uid = 5; + */ + com.google.protobuf.ByteString + getUidBytes(); + } + /** + *
+   * ResourceClaimConsumerReference contains enough information to let you
+   * locate the consumer of a ResourceClaim. The user must be a resource in the same
+   * namespace as the ResourceClaim.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaimConsumerReference} + */ + public static final class ResourceClaimConsumerReference extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.ResourceClaimConsumerReference) + ResourceClaimConsumerReferenceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceClaimConsumerReference.newBuilder() to construct. + private ResourceClaimConsumerReference(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceClaimConsumerReference() { + apiGroup_ = ""; + resource_ = ""; + name_ = ""; + uid_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceClaimConsumerReference( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + apiGroup_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + resource_ = bs; + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + name_ = bs; + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + uid_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimConsumerReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimConsumerReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.class, io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.Builder.class); + } + + private int bitField0_; + public static final int APIGROUP_FIELD_NUMBER = 1; + private volatile java.lang.Object apiGroup_; + /** + *
+     * APIGroup is the group for the resource being referenced. It is
+     * empty for the core API. This matches the group in the APIVersion
+     * that is used when creating the resources.
+     * +optional
+     * 
+ * + * optional string apiGroup = 1; + */ + public boolean hasApiGroup() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * APIGroup is the group for the resource being referenced. It is
+     * empty for the core API. This matches the group in the APIVersion
+     * that is used when creating the resources.
+     * +optional
+     * 
+ * + * optional string apiGroup = 1; + */ + public java.lang.String getApiGroup() { + java.lang.Object ref = apiGroup_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + apiGroup_ = s; + } + return s; + } + } + /** + *
+     * APIGroup is the group for the resource being referenced. It is
+     * empty for the core API. This matches the group in the APIVersion
+     * that is used when creating the resources.
+     * +optional
+     * 
+ * + * optional string apiGroup = 1; + */ + public com.google.protobuf.ByteString + getApiGroupBytes() { + java.lang.Object ref = apiGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + apiGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 3; + private volatile java.lang.Object resource_; + /** + *
+     * Resource is the type of resource being referenced, for example "pods".
+     * +required
+     * 
+ * + * optional string resource = 3; + */ + public boolean hasResource() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * Resource is the type of resource being referenced, for example "pods".
+     * +required
+     * 
+ * + * optional string resource = 3; + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + resource_ = s; + } + return s; + } + } + /** + *
+     * Resource is the type of resource being referenced, for example "pods".
+     * +required
+     * 
+ * + * optional string resource = 3; + */ + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object name_; + /** + *
+     * Name is the name of resource being referenced.
+     * +required
+     * 
+ * + * optional string name = 4; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * Name is the name of resource being referenced.
+     * +required
+     * 
+ * + * optional string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + *
+     * Name is the name of resource being referenced.
+     * +required
+     * 
+ * + * optional string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 5; + private volatile java.lang.Object uid_; + /** + *
+     * UID identifies exactly one incarnation of the resource.
+     * +required
+     * 
+ * + * optional string uid = 5; + */ + public boolean hasUid() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * UID identifies exactly one incarnation of the resource.
+     * +required
+     * 
+ * + * optional string uid = 5; + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + uid_ = s; + } + return s; + } + } + /** + *
+     * UID identifies exactly one incarnation of the resource.
+     * +required
+     * 
+ * + * optional string uid = 5; + */ + public com.google.protobuf.ByteString + getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiGroup_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resource_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, uid_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiGroup_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resource_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, uid_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference other = (io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference) obj; + + boolean result = true; + result = result && (hasApiGroup() == other.hasApiGroup()); + if (hasApiGroup()) { + result = result && getApiGroup() + .equals(other.getApiGroup()); + } + result = result && (hasResource() == other.hasResource()); + if (hasResource()) { + result = result && getResource() + .equals(other.getResource()); + } + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && (hasUid() == other.hasUid()); + if (hasUid()) { + result = result && getUid() + .equals(other.getUid()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasApiGroup()) { + hash = (37 * hash) + APIGROUP_FIELD_NUMBER; + hash = (53 * hash) + getApiGroup().hashCode(); + } + if (hasResource()) { + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + } + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasUid()) { + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ResourceClaimConsumerReference contains enough information to let you
+     * locate the consumer of a ResourceClaim. The user must be a resource in the same
+     * namespace as the ResourceClaim.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaimConsumerReference} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.ResourceClaimConsumerReference) + io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReferenceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimConsumerReference_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimConsumerReference_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.class, io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + apiGroup_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + resource_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + uid_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimConsumerReference_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference build() { + io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference buildPartial() { + io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference result = new io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.apiGroup_ = apiGroup_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.resource_ = resource_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.uid_ = uid_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference other) { + if (other == io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.getDefaultInstance()) return this; + if (other.hasApiGroup()) { + bitField0_ |= 0x00000001; + apiGroup_ = other.apiGroup_; + onChanged(); + } + if (other.hasResource()) { + bitField0_ |= 0x00000002; + resource_ = other.resource_; + onChanged(); + } + if (other.hasName()) { + bitField0_ |= 0x00000004; + name_ = other.name_; + onChanged(); + } + if (other.hasUid()) { + bitField0_ |= 0x00000008; + uid_ = other.uid_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object apiGroup_ = ""; + /** + *
+       * APIGroup is the group for the resource being referenced. It is
+       * empty for the core API. This matches the group in the APIVersion
+       * that is used when creating the resources.
+       * +optional
+       * 
+ * + * optional string apiGroup = 1; + */ + public boolean hasApiGroup() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * APIGroup is the group for the resource being referenced. It is
+       * empty for the core API. This matches the group in the APIVersion
+       * that is used when creating the resources.
+       * +optional
+       * 
+ * + * optional string apiGroup = 1; + */ + public java.lang.String getApiGroup() { + java.lang.Object ref = apiGroup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + apiGroup_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * APIGroup is the group for the resource being referenced. It is
+       * empty for the core API. This matches the group in the APIVersion
+       * that is used when creating the resources.
+       * +optional
+       * 
+ * + * optional string apiGroup = 1; + */ + public com.google.protobuf.ByteString + getApiGroupBytes() { + java.lang.Object ref = apiGroup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + apiGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * APIGroup is the group for the resource being referenced. It is
+       * empty for the core API. This matches the group in the APIVersion
+       * that is used when creating the resources.
+       * +optional
+       * 
+ * + * optional string apiGroup = 1; + */ + public Builder setApiGroup( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + apiGroup_ = value; + onChanged(); + return this; + } + /** + *
+       * APIGroup is the group for the resource being referenced. It is
+       * empty for the core API. This matches the group in the APIVersion
+       * that is used when creating the resources.
+       * +optional
+       * 
+ * + * optional string apiGroup = 1; + */ + public Builder clearApiGroup() { + bitField0_ = (bitField0_ & ~0x00000001); + apiGroup_ = getDefaultInstance().getApiGroup(); + onChanged(); + return this; + } + /** + *
+       * APIGroup is the group for the resource being referenced. It is
+       * empty for the core API. This matches the group in the APIVersion
+       * that is used when creating the resources.
+       * +optional
+       * 
+ * + * optional string apiGroup = 1; + */ + public Builder setApiGroupBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + apiGroup_ = value; + onChanged(); + return this; + } + + private java.lang.Object resource_ = ""; + /** + *
+       * Resource is the type of resource being referenced, for example "pods".
+       * +required
+       * 
+ * + * optional string resource = 3; + */ + public boolean hasResource() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * Resource is the type of resource being referenced, for example "pods".
+       * +required
+       * 
+ * + * optional string resource = 3; + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + resource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Resource is the type of resource being referenced, for example "pods".
+       * +required
+       * 
+ * + * optional string resource = 3; + */ + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Resource is the type of resource being referenced, for example "pods".
+       * +required
+       * 
+ * + * optional string resource = 3; + */ + public Builder setResource( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + resource_ = value; + onChanged(); + return this; + } + /** + *
+       * Resource is the type of resource being referenced, for example "pods".
+       * +required
+       * 
+ * + * optional string resource = 3; + */ + public Builder clearResource() { + bitField0_ = (bitField0_ & ~0x00000002); + resource_ = getDefaultInstance().getResource(); + onChanged(); + return this; + } + /** + *
+       * Resource is the type of resource being referenced, for example "pods".
+       * +required
+       * 
+ * + * optional string resource = 3; + */ + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + resource_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + *
+       * Name is the name of resource being referenced.
+       * +required
+       * 
+ * + * optional string name = 4; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * Name is the name of resource being referenced.
+       * +required
+       * 
+ * + * optional string name = 4; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name is the name of resource being referenced.
+       * +required
+       * 
+ * + * optional string name = 4; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name is the name of resource being referenced.
+       * +required
+       * 
+ * + * optional string name = 4; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Name is the name of resource being referenced.
+       * +required
+       * 
+ * + * optional string name = 4; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000004); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name is the name of resource being referenced.
+       * +required
+       * 
+ * + * optional string name = 4; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + /** + *
+       * UID identifies exactly one incarnation of the resource.
+       * +required
+       * 
+ * + * optional string uid = 5; + */ + public boolean hasUid() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * UID identifies exactly one incarnation of the resource.
+       * +required
+       * 
+ * + * optional string uid = 5; + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + uid_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * UID identifies exactly one incarnation of the resource.
+       * +required
+       * 
+ * + * optional string uid = 5; + */ + public com.google.protobuf.ByteString + getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * UID identifies exactly one incarnation of the resource.
+       * +required
+       * 
+ * + * optional string uid = 5; + */ + public Builder setUid( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + uid_ = value; + onChanged(); + return this; + } + /** + *
+       * UID identifies exactly one incarnation of the resource.
+       * +required
+       * 
+ * + * optional string uid = 5; + */ + public Builder clearUid() { + bitField0_ = (bitField0_ & ~0x00000008); + uid_ = getDefaultInstance().getUid(); + onChanged(); + return this; + } + /** + *
+       * UID identifies exactly one incarnation of the resource.
+       * +required
+       * 
+ * + * optional string uid = 5; + */ + public Builder setUidBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + uid_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.ResourceClaimConsumerReference) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.ResourceClaimConsumerReference) + private static final io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference(); + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceClaimConsumerReference parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceClaimConsumerReference(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceClaimListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.ResourceClaimList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Items is the list of resource claims.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * Items is the list of resource claims.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceClaim getItems(int index); + /** + *
+     * Items is the list of resource claims.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + int getItemsCount(); + /** + *
+     * Items is the list of resource claims.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * Items is the list of resource claims.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceClaimOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * ResourceClaimList is a collection of claims.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaimList} + */ + public static final class ResourceClaimList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.ResourceClaimList) + ResourceClaimListOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceClaimList.newBuilder() to construct. + private ResourceClaimList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceClaimList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceClaimList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.ResourceClaim.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaimList.class, io.kubernetes.client.proto.V1Resource.ResourceClaimList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * Items is the list of resource claims.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * Items is the list of resource claims.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * Items is the list of resource claims.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * Items is the list of resource claims.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaim getItems(int index) { + return items_.get(index); + } + /** + *
+     * Items is the list of resource claims.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.ResourceClaimList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.ResourceClaimList other = (io.kubernetes.client.proto.V1Resource.ResourceClaimList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaimList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.ResourceClaimList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ResourceClaimList is a collection of claims.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaimList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.ResourceClaimList) + io.kubernetes.client.proto.V1Resource.ResourceClaimListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaimList.class, io.kubernetes.client.proto.V1Resource.ResourceClaimList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.ResourceClaimList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.ResourceClaimList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimList build() { + io.kubernetes.client.proto.V1Resource.ResourceClaimList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimList buildPartial() { + io.kubernetes.client.proto.V1Resource.ResourceClaimList result = new io.kubernetes.client.proto.V1Resource.ResourceClaimList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.ResourceClaimList) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.ResourceClaimList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.ResourceClaimList other) { + if (other == io.kubernetes.client.proto.V1Resource.ResourceClaimList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.ResourceClaimList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.ResourceClaimList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaim, io.kubernetes.client.proto.V1Resource.ResourceClaim.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimOrBuilder> itemsBuilder_; + + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaim getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Resource.ResourceClaim value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Resource.ResourceClaim.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V1Resource.ResourceClaim value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Resource.ResourceClaim value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V1Resource.ResourceClaim.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Resource.ResourceClaim.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaim.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaim.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.ResourceClaim.getDefaultInstance()); + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaim.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.ResourceClaim.getDefaultInstance()); + } + /** + *
+       * Items is the list of resource claims.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaim items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaim, io.kubernetes.client.proto.V1Resource.ResourceClaim.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaim, io.kubernetes.client.proto.V1Resource.ResourceClaim.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.ResourceClaimList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.ResourceClaimList) + private static final io.kubernetes.client.proto.V1Resource.ResourceClaimList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.ResourceClaimList(); + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaimList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceClaimList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceClaimList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceClaimSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.ResourceClaimSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Devices defines how to request devices.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClaim devices = 1; + */ + boolean hasDevices(); + /** + *
+     * Devices defines how to request devices.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClaim devices = 1; + */ + io.kubernetes.client.proto.V1Resource.DeviceClaim getDevices(); + /** + *
+     * Devices defines how to request devices.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClaim devices = 1; + */ + io.kubernetes.client.proto.V1Resource.DeviceClaimOrBuilder getDevicesOrBuilder(); + } + /** + *
+   * ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaimSpec} + */ + public static final class ResourceClaimSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.ResourceClaimSpec) + ResourceClaimSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceClaimSpec.newBuilder() to construct. + private ResourceClaimSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceClaimSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceClaimSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.V1Resource.DeviceClaim.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = devices_.toBuilder(); + } + devices_ = input.readMessage(io.kubernetes.client.proto.V1Resource.DeviceClaim.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(devices_); + devices_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.class, io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.Builder.class); + } + + private int bitField0_; + public static final int DEVICES_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.V1Resource.DeviceClaim devices_; + /** + *
+     * Devices defines how to request devices.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClaim devices = 1; + */ + public boolean hasDevices() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Devices defines how to request devices.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClaim devices = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClaim getDevices() { + return devices_ == null ? io.kubernetes.client.proto.V1Resource.DeviceClaim.getDefaultInstance() : devices_; + } + /** + *
+     * Devices defines how to request devices.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClaim devices = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClaimOrBuilder getDevicesOrBuilder() { + return devices_ == null ? io.kubernetes.client.proto.V1Resource.DeviceClaim.getDefaultInstance() : devices_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getDevices()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getDevices()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.ResourceClaimSpec)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec other = (io.kubernetes.client.proto.V1Resource.ResourceClaimSpec) obj; + + boolean result = true; + result = result && (hasDevices() == other.hasDevices()); + if (hasDevices()) { + result = result && getDevices() + .equals(other.getDevices()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDevices()) { + hash = (37 * hash) + DEVICES_FIELD_NUMBER; + hash = (53 * hash) + getDevices().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaimSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.ResourceClaimSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ResourceClaimSpec defines what is being requested in a ResourceClaim and how to configure it.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaimSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.ResourceClaimSpec) + io.kubernetes.client.proto.V1Resource.ResourceClaimSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.class, io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDevicesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (devicesBuilder_ == null) { + devices_ = null; + } else { + devicesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimSpec_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimSpec getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimSpec build() { + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimSpec buildPartial() { + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec result = new io.kubernetes.client.proto.V1Resource.ResourceClaimSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (devicesBuilder_ == null) { + result.devices_ = devices_; + } else { + result.devices_ = devicesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.ResourceClaimSpec) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.ResourceClaimSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.ResourceClaimSpec other) { + if (other == io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.getDefaultInstance()) return this; + if (other.hasDevices()) { + mergeDevices(other.getDevices()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.ResourceClaimSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.V1Resource.DeviceClaim devices_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceClaim, io.kubernetes.client.proto.V1Resource.DeviceClaim.Builder, io.kubernetes.client.proto.V1Resource.DeviceClaimOrBuilder> devicesBuilder_; + /** + *
+       * Devices defines how to request devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClaim devices = 1; + */ + public boolean hasDevices() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Devices defines how to request devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClaim devices = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClaim getDevices() { + if (devicesBuilder_ == null) { + return devices_ == null ? io.kubernetes.client.proto.V1Resource.DeviceClaim.getDefaultInstance() : devices_; + } else { + return devicesBuilder_.getMessage(); + } + } + /** + *
+       * Devices defines how to request devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClaim devices = 1; + */ + public Builder setDevices(io.kubernetes.client.proto.V1Resource.DeviceClaim value) { + if (devicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + devices_ = value; + onChanged(); + } else { + devicesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Devices defines how to request devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClaim devices = 1; + */ + public Builder setDevices( + io.kubernetes.client.proto.V1Resource.DeviceClaim.Builder builderForValue) { + if (devicesBuilder_ == null) { + devices_ = builderForValue.build(); + onChanged(); + } else { + devicesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Devices defines how to request devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClaim devices = 1; + */ + public Builder mergeDevices(io.kubernetes.client.proto.V1Resource.DeviceClaim value) { + if (devicesBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + devices_ != null && + devices_ != io.kubernetes.client.proto.V1Resource.DeviceClaim.getDefaultInstance()) { + devices_ = + io.kubernetes.client.proto.V1Resource.DeviceClaim.newBuilder(devices_).mergeFrom(value).buildPartial(); + } else { + devices_ = value; + } + onChanged(); + } else { + devicesBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Devices defines how to request devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClaim devices = 1; + */ + public Builder clearDevices() { + if (devicesBuilder_ == null) { + devices_ = null; + onChanged(); + } else { + devicesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Devices defines how to request devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClaim devices = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClaim.Builder getDevicesBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDevicesFieldBuilder().getBuilder(); + } + /** + *
+       * Devices defines how to request devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClaim devices = 1; + */ + public io.kubernetes.client.proto.V1Resource.DeviceClaimOrBuilder getDevicesOrBuilder() { + if (devicesBuilder_ != null) { + return devicesBuilder_.getMessageOrBuilder(); + } else { + return devices_ == null ? + io.kubernetes.client.proto.V1Resource.DeviceClaim.getDefaultInstance() : devices_; + } + } + /** + *
+       * Devices defines how to request devices.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.DeviceClaim devices = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceClaim, io.kubernetes.client.proto.V1Resource.DeviceClaim.Builder, io.kubernetes.client.proto.V1Resource.DeviceClaimOrBuilder> + getDevicesFieldBuilder() { + if (devicesBuilder_ == null) { + devicesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.DeviceClaim, io.kubernetes.client.proto.V1Resource.DeviceClaim.Builder, io.kubernetes.client.proto.V1Resource.DeviceClaimOrBuilder>( + getDevices(), + getParentForChildren(), + isClean()); + devices_ = null; + } + return devicesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.ResourceClaimSpec) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.ResourceClaimSpec) + private static final io.kubernetes.client.proto.V1Resource.ResourceClaimSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.ResourceClaimSpec(); + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaimSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceClaimSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceClaimSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceClaimStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.ResourceClaimStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Allocation is set once the claim has been allocated successfully.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:update=NoModify
+     * 
+ * + * optional .k8s.io.api.resource.v1.AllocationResult allocation = 1; + */ + boolean hasAllocation(); + /** + *
+     * Allocation is set once the claim has been allocated successfully.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:update=NoModify
+     * 
+ * + * optional .k8s.io.api.resource.v1.AllocationResult allocation = 1; + */ + io.kubernetes.client.proto.V1Resource.AllocationResult getAllocation(); + /** + *
+     * Allocation is set once the claim has been allocated successfully.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:update=NoModify
+     * 
+ * + * optional .k8s.io.api.resource.v1.AllocationResult allocation = 1; + */ + io.kubernetes.client.proto.V1Resource.AllocationResultOrBuilder getAllocationOrBuilder(); + + /** + *
+     * ReservedFor indicates which entities are currently allowed to use
+     * the claim. A Pod which references a ResourceClaim which is not
+     * reserved for that Pod will not be started. A claim that is in
+     * use or might be in use because it has been reserved must not get
+     * deallocated.
+     * In a cluster with multiple scheduler instances, two pods might get
+     * scheduled concurrently by different schedulers. When they reference
+     * the same ResourceClaim which already has reached its maximum number
+     * of consumers, only one pod can be scheduled.
+     * Both schedulers try to add their pod to the claim.status.reservedFor
+     * field, but only the update that reaches the API server first gets
+     * stored. The other one fails with an error and the scheduler
+     * which issued it knows that it must put the pod back into the queue,
+     * waiting for the ResourceClaim to become usable again.
+     * There can be at most 256 such reservations. This may get increased in
+     * the future, but not reduced.
+     * +optional
+     * +listType=map
+     * +listMapKey=uid
+     * +patchStrategy=merge
+     * +patchMergeKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + java.util.List + getReservedForList(); + /** + *
+     * ReservedFor indicates which entities are currently allowed to use
+     * the claim. A Pod which references a ResourceClaim which is not
+     * reserved for that Pod will not be started. A claim that is in
+     * use or might be in use because it has been reserved must not get
+     * deallocated.
+     * In a cluster with multiple scheduler instances, two pods might get
+     * scheduled concurrently by different schedulers. When they reference
+     * the same ResourceClaim which already has reached its maximum number
+     * of consumers, only one pod can be scheduled.
+     * Both schedulers try to add their pod to the claim.status.reservedFor
+     * field, but only the update that reaches the API server first gets
+     * stored. The other one fails with an error and the scheduler
+     * which issued it knows that it must put the pod back into the queue,
+     * waiting for the ResourceClaim to become usable again.
+     * There can be at most 256 such reservations. This may get increased in
+     * the future, but not reduced.
+     * +optional
+     * +listType=map
+     * +listMapKey=uid
+     * +patchStrategy=merge
+     * +patchMergeKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference getReservedFor(int index); + /** + *
+     * ReservedFor indicates which entities are currently allowed to use
+     * the claim. A Pod which references a ResourceClaim which is not
+     * reserved for that Pod will not be started. A claim that is in
+     * use or might be in use because it has been reserved must not get
+     * deallocated.
+     * In a cluster with multiple scheduler instances, two pods might get
+     * scheduled concurrently by different schedulers. When they reference
+     * the same ResourceClaim which already has reached its maximum number
+     * of consumers, only one pod can be scheduled.
+     * Both schedulers try to add their pod to the claim.status.reservedFor
+     * field, but only the update that reaches the API server first gets
+     * stored. The other one fails with an error and the scheduler
+     * which issued it knows that it must put the pod back into the queue,
+     * waiting for the ResourceClaim to become usable again.
+     * There can be at most 256 such reservations. This may get increased in
+     * the future, but not reduced.
+     * +optional
+     * +listType=map
+     * +listMapKey=uid
+     * +patchStrategy=merge
+     * +patchMergeKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + int getReservedForCount(); + /** + *
+     * ReservedFor indicates which entities are currently allowed to use
+     * the claim. A Pod which references a ResourceClaim which is not
+     * reserved for that Pod will not be started. A claim that is in
+     * use or might be in use because it has been reserved must not get
+     * deallocated.
+     * In a cluster with multiple scheduler instances, two pods might get
+     * scheduled concurrently by different schedulers. When they reference
+     * the same ResourceClaim which already has reached its maximum number
+     * of consumers, only one pod can be scheduled.
+     * Both schedulers try to add their pod to the claim.status.reservedFor
+     * field, but only the update that reaches the API server first gets
+     * stored. The other one fails with an error and the scheduler
+     * which issued it knows that it must put the pod back into the queue,
+     * waiting for the ResourceClaim to become usable again.
+     * There can be at most 256 such reservations. This may get increased in
+     * the future, but not reduced.
+     * +optional
+     * +listType=map
+     * +listMapKey=uid
+     * +patchStrategy=merge
+     * +patchMergeKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + java.util.List + getReservedForOrBuilderList(); + /** + *
+     * ReservedFor indicates which entities are currently allowed to use
+     * the claim. A Pod which references a ResourceClaim which is not
+     * reserved for that Pod will not be started. A claim that is in
+     * use or might be in use because it has been reserved must not get
+     * deallocated.
+     * In a cluster with multiple scheduler instances, two pods might get
+     * scheduled concurrently by different schedulers. When they reference
+     * the same ResourceClaim which already has reached its maximum number
+     * of consumers, only one pod can be scheduled.
+     * Both schedulers try to add their pod to the claim.status.reservedFor
+     * field, but only the update that reaches the API server first gets
+     * stored. The other one fails with an error and the scheduler
+     * which issued it knows that it must put the pod back into the queue,
+     * waiting for the ResourceClaim to become usable again.
+     * There can be at most 256 such reservations. This may get increased in
+     * the future, but not reduced.
+     * +optional
+     * +listType=map
+     * +listMapKey=uid
+     * +patchStrategy=merge
+     * +patchMergeKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReferenceOrBuilder getReservedForOrBuilder( + int index); + + /** + *
+     * Devices contains the status of each device allocated for this
+     * claim, as reported by the driver. This can include driver-specific
+     * information. Entries are owned by their respective drivers.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=map
+     * +listMapKey=driver
+     * +listMapKey=device
+     * +listMapKey=pool
+     * +listMapKey=shareID
+     * +featureGate=DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+     * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + java.util.List + getDevicesList(); + /** + *
+     * Devices contains the status of each device allocated for this
+     * claim, as reported by the driver. This can include driver-specific
+     * information. Entries are owned by their respective drivers.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=map
+     * +listMapKey=driver
+     * +listMapKey=device
+     * +listMapKey=pool
+     * +listMapKey=shareID
+     * +featureGate=DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+     * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus getDevices(int index); + /** + *
+     * Devices contains the status of each device allocated for this
+     * claim, as reported by the driver. This can include driver-specific
+     * information. Entries are owned by their respective drivers.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=map
+     * +listMapKey=driver
+     * +listMapKey=device
+     * +listMapKey=pool
+     * +listMapKey=shareID
+     * +featureGate=DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+     * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + int getDevicesCount(); + /** + *
+     * Devices contains the status of each device allocated for this
+     * claim, as reported by the driver. This can include driver-specific
+     * information. Entries are owned by their respective drivers.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=map
+     * +listMapKey=driver
+     * +listMapKey=device
+     * +listMapKey=pool
+     * +listMapKey=shareID
+     * +featureGate=DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+     * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + java.util.List + getDevicesOrBuilderList(); + /** + *
+     * Devices contains the status of each device allocated for this
+     * claim, as reported by the driver. This can include driver-specific
+     * information. Entries are owned by their respective drivers.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=map
+     * +listMapKey=driver
+     * +listMapKey=device
+     * +listMapKey=pool
+     * +listMapKey=shareID
+     * +featureGate=DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+     * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatusOrBuilder getDevicesOrBuilder( + int index); + } + /** + *
+   * ResourceClaimStatus tracks whether the resource has been allocated and what
+   * the result of that was.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaimStatus} + */ + public static final class ResourceClaimStatus extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.ResourceClaimStatus) + ResourceClaimStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceClaimStatus.newBuilder() to construct. + private ResourceClaimStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceClaimStatus() { + reservedFor_ = java.util.Collections.emptyList(); + devices_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceClaimStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.V1Resource.AllocationResult.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = allocation_.toBuilder(); + } + allocation_ = input.readMessage(io.kubernetes.client.proto.V1Resource.AllocationResult.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(allocation_); + allocation_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + reservedFor_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + reservedFor_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.PARSER, extensionRegistry)); + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + devices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + devices_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + reservedFor_ = java.util.Collections.unmodifiableList(reservedFor_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + devices_ = java.util.Collections.unmodifiableList(devices_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.class, io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.Builder.class); + } + + private int bitField0_; + public static final int ALLOCATION_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.V1Resource.AllocationResult allocation_; + /** + *
+     * Allocation is set once the claim has been allocated successfully.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:update=NoModify
+     * 
+ * + * optional .k8s.io.api.resource.v1.AllocationResult allocation = 1; + */ + public boolean hasAllocation() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Allocation is set once the claim has been allocated successfully.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:update=NoModify
+     * 
+ * + * optional .k8s.io.api.resource.v1.AllocationResult allocation = 1; + */ + public io.kubernetes.client.proto.V1Resource.AllocationResult getAllocation() { + return allocation_ == null ? io.kubernetes.client.proto.V1Resource.AllocationResult.getDefaultInstance() : allocation_; + } + /** + *
+     * Allocation is set once the claim has been allocated successfully.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:update=NoModify
+     * 
+ * + * optional .k8s.io.api.resource.v1.AllocationResult allocation = 1; + */ + public io.kubernetes.client.proto.V1Resource.AllocationResultOrBuilder getAllocationOrBuilder() { + return allocation_ == null ? io.kubernetes.client.proto.V1Resource.AllocationResult.getDefaultInstance() : allocation_; + } + + public static final int RESERVEDFOR_FIELD_NUMBER = 2; + private java.util.List reservedFor_; + /** + *
+     * ReservedFor indicates which entities are currently allowed to use
+     * the claim. A Pod which references a ResourceClaim which is not
+     * reserved for that Pod will not be started. A claim that is in
+     * use or might be in use because it has been reserved must not get
+     * deallocated.
+     * In a cluster with multiple scheduler instances, two pods might get
+     * scheduled concurrently by different schedulers. When they reference
+     * the same ResourceClaim which already has reached its maximum number
+     * of consumers, only one pod can be scheduled.
+     * Both schedulers try to add their pod to the claim.status.reservedFor
+     * field, but only the update that reaches the API server first gets
+     * stored. The other one fails with an error and the scheduler
+     * which issued it knows that it must put the pod back into the queue,
+     * waiting for the ResourceClaim to become usable again.
+     * There can be at most 256 such reservations. This may get increased in
+     * the future, but not reduced.
+     * +optional
+     * +listType=map
+     * +listMapKey=uid
+     * +patchStrategy=merge
+     * +patchMergeKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public java.util.List getReservedForList() { + return reservedFor_; + } + /** + *
+     * ReservedFor indicates which entities are currently allowed to use
+     * the claim. A Pod which references a ResourceClaim which is not
+     * reserved for that Pod will not be started. A claim that is in
+     * use or might be in use because it has been reserved must not get
+     * deallocated.
+     * In a cluster with multiple scheduler instances, two pods might get
+     * scheduled concurrently by different schedulers. When they reference
+     * the same ResourceClaim which already has reached its maximum number
+     * of consumers, only one pod can be scheduled.
+     * Both schedulers try to add their pod to the claim.status.reservedFor
+     * field, but only the update that reaches the API server first gets
+     * stored. The other one fails with an error and the scheduler
+     * which issued it knows that it must put the pod back into the queue,
+     * waiting for the ResourceClaim to become usable again.
+     * There can be at most 256 such reservations. This may get increased in
+     * the future, but not reduced.
+     * +optional
+     * +listType=map
+     * +listMapKey=uid
+     * +patchStrategy=merge
+     * +patchMergeKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public java.util.List + getReservedForOrBuilderList() { + return reservedFor_; + } + /** + *
+     * ReservedFor indicates which entities are currently allowed to use
+     * the claim. A Pod which references a ResourceClaim which is not
+     * reserved for that Pod will not be started. A claim that is in
+     * use or might be in use because it has been reserved must not get
+     * deallocated.
+     * In a cluster with multiple scheduler instances, two pods might get
+     * scheduled concurrently by different schedulers. When they reference
+     * the same ResourceClaim which already has reached its maximum number
+     * of consumers, only one pod can be scheduled.
+     * Both schedulers try to add their pod to the claim.status.reservedFor
+     * field, but only the update that reaches the API server first gets
+     * stored. The other one fails with an error and the scheduler
+     * which issued it knows that it must put the pod back into the queue,
+     * waiting for the ResourceClaim to become usable again.
+     * There can be at most 256 such reservations. This may get increased in
+     * the future, but not reduced.
+     * +optional
+     * +listType=map
+     * +listMapKey=uid
+     * +patchStrategy=merge
+     * +patchMergeKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public int getReservedForCount() { + return reservedFor_.size(); + } + /** + *
+     * ReservedFor indicates which entities are currently allowed to use
+     * the claim. A Pod which references a ResourceClaim which is not
+     * reserved for that Pod will not be started. A claim that is in
+     * use or might be in use because it has been reserved must not get
+     * deallocated.
+     * In a cluster with multiple scheduler instances, two pods might get
+     * scheduled concurrently by different schedulers. When they reference
+     * the same ResourceClaim which already has reached its maximum number
+     * of consumers, only one pod can be scheduled.
+     * Both schedulers try to add their pod to the claim.status.reservedFor
+     * field, but only the update that reaches the API server first gets
+     * stored. The other one fails with an error and the scheduler
+     * which issued it knows that it must put the pod back into the queue,
+     * waiting for the ResourceClaim to become usable again.
+     * There can be at most 256 such reservations. This may get increased in
+     * the future, but not reduced.
+     * +optional
+     * +listType=map
+     * +listMapKey=uid
+     * +patchStrategy=merge
+     * +patchMergeKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference getReservedFor(int index) { + return reservedFor_.get(index); + } + /** + *
+     * ReservedFor indicates which entities are currently allowed to use
+     * the claim. A Pod which references a ResourceClaim which is not
+     * reserved for that Pod will not be started. A claim that is in
+     * use or might be in use because it has been reserved must not get
+     * deallocated.
+     * In a cluster with multiple scheduler instances, two pods might get
+     * scheduled concurrently by different schedulers. When they reference
+     * the same ResourceClaim which already has reached its maximum number
+     * of consumers, only one pod can be scheduled.
+     * Both schedulers try to add their pod to the claim.status.reservedFor
+     * field, but only the update that reaches the API server first gets
+     * stored. The other one fails with an error and the scheduler
+     * which issued it knows that it must put the pod back into the queue,
+     * waiting for the ResourceClaim to become usable again.
+     * There can be at most 256 such reservations. This may get increased in
+     * the future, but not reduced.
+     * +optional
+     * +listType=map
+     * +listMapKey=uid
+     * +patchStrategy=merge
+     * +patchMergeKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReferenceOrBuilder getReservedForOrBuilder( + int index) { + return reservedFor_.get(index); + } + + public static final int DEVICES_FIELD_NUMBER = 4; + private java.util.List devices_; + /** + *
+     * Devices contains the status of each device allocated for this
+     * claim, as reported by the driver. This can include driver-specific
+     * information. Entries are owned by their respective drivers.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=map
+     * +listMapKey=driver
+     * +listMapKey=device
+     * +listMapKey=pool
+     * +listMapKey=shareID
+     * +featureGate=DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+     * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public java.util.List getDevicesList() { + return devices_; + } + /** + *
+     * Devices contains the status of each device allocated for this
+     * claim, as reported by the driver. This can include driver-specific
+     * information. Entries are owned by their respective drivers.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=map
+     * +listMapKey=driver
+     * +listMapKey=device
+     * +listMapKey=pool
+     * +listMapKey=shareID
+     * +featureGate=DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+     * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public java.util.List + getDevicesOrBuilderList() { + return devices_; + } + /** + *
+     * Devices contains the status of each device allocated for this
+     * claim, as reported by the driver. This can include driver-specific
+     * information. Entries are owned by their respective drivers.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=map
+     * +listMapKey=driver
+     * +listMapKey=device
+     * +listMapKey=pool
+     * +listMapKey=shareID
+     * +featureGate=DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+     * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public int getDevicesCount() { + return devices_.size(); + } + /** + *
+     * Devices contains the status of each device allocated for this
+     * claim, as reported by the driver. This can include driver-specific
+     * information. Entries are owned by their respective drivers.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=map
+     * +listMapKey=driver
+     * +listMapKey=device
+     * +listMapKey=pool
+     * +listMapKey=shareID
+     * +featureGate=DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+     * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus getDevices(int index) { + return devices_.get(index); + } + /** + *
+     * Devices contains the status of each device allocated for this
+     * claim, as reported by the driver. This can include driver-specific
+     * information. Entries are owned by their respective drivers.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=map
+     * +listMapKey=driver
+     * +listMapKey=device
+     * +listMapKey=pool
+     * +listMapKey=shareID
+     * +featureGate=DRAResourceClaimDeviceStatus
+     * +k8s:alpha(since: "1.36")=+k8s:listType=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+     * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatusOrBuilder getDevicesOrBuilder( + int index) { + return devices_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getAllocation()); + } + for (int i = 0; i < reservedFor_.size(); i++) { + output.writeMessage(2, reservedFor_.get(i)); + } + for (int i = 0; i < devices_.size(); i++) { + output.writeMessage(4, devices_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getAllocation()); + } + for (int i = 0; i < reservedFor_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, reservedFor_.get(i)); + } + for (int i = 0; i < devices_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, devices_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.ResourceClaimStatus)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.ResourceClaimStatus other = (io.kubernetes.client.proto.V1Resource.ResourceClaimStatus) obj; + + boolean result = true; + result = result && (hasAllocation() == other.hasAllocation()); + if (hasAllocation()) { + result = result && getAllocation() + .equals(other.getAllocation()); + } + result = result && getReservedForList() + .equals(other.getReservedForList()); + result = result && getDevicesList() + .equals(other.getDevicesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasAllocation()) { + hash = (37 * hash) + ALLOCATION_FIELD_NUMBER; + hash = (53 * hash) + getAllocation().hashCode(); + } + if (getReservedForCount() > 0) { + hash = (37 * hash) + RESERVEDFOR_FIELD_NUMBER; + hash = (53 * hash) + getReservedForList().hashCode(); + } + if (getDevicesCount() > 0) { + hash = (37 * hash) + DEVICES_FIELD_NUMBER; + hash = (53 * hash) + getDevicesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaimStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.ResourceClaimStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ResourceClaimStatus tracks whether the resource has been allocated and what
+     * the result of that was.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaimStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.ResourceClaimStatus) + io.kubernetes.client.proto.V1Resource.ResourceClaimStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.class, io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAllocationFieldBuilder(); + getReservedForFieldBuilder(); + getDevicesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (allocationBuilder_ == null) { + allocation_ = null; + } else { + allocationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (reservedForBuilder_ == null) { + reservedFor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + reservedForBuilder_.clear(); + } + if (devicesBuilder_ == null) { + devices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + devicesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimStatus_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimStatus getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimStatus build() { + io.kubernetes.client.proto.V1Resource.ResourceClaimStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimStatus buildPartial() { + io.kubernetes.client.proto.V1Resource.ResourceClaimStatus result = new io.kubernetes.client.proto.V1Resource.ResourceClaimStatus(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (allocationBuilder_ == null) { + result.allocation_ = allocation_; + } else { + result.allocation_ = allocationBuilder_.build(); + } + if (reservedForBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + reservedFor_ = java.util.Collections.unmodifiableList(reservedFor_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.reservedFor_ = reservedFor_; + } else { + result.reservedFor_ = reservedForBuilder_.build(); + } + if (devicesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + devices_ = java.util.Collections.unmodifiableList(devices_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.devices_ = devices_; + } else { + result.devices_ = devicesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.ResourceClaimStatus) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.ResourceClaimStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.ResourceClaimStatus other) { + if (other == io.kubernetes.client.proto.V1Resource.ResourceClaimStatus.getDefaultInstance()) return this; + if (other.hasAllocation()) { + mergeAllocation(other.getAllocation()); + } + if (reservedForBuilder_ == null) { + if (!other.reservedFor_.isEmpty()) { + if (reservedFor_.isEmpty()) { + reservedFor_ = other.reservedFor_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureReservedForIsMutable(); + reservedFor_.addAll(other.reservedFor_); + } + onChanged(); + } + } else { + if (!other.reservedFor_.isEmpty()) { + if (reservedForBuilder_.isEmpty()) { + reservedForBuilder_.dispose(); + reservedForBuilder_ = null; + reservedFor_ = other.reservedFor_; + bitField0_ = (bitField0_ & ~0x00000002); + reservedForBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getReservedForFieldBuilder() : null; + } else { + reservedForBuilder_.addAllMessages(other.reservedFor_); + } + } + } + if (devicesBuilder_ == null) { + if (!other.devices_.isEmpty()) { + if (devices_.isEmpty()) { + devices_ = other.devices_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDevicesIsMutable(); + devices_.addAll(other.devices_); + } + onChanged(); + } + } else { + if (!other.devices_.isEmpty()) { + if (devicesBuilder_.isEmpty()) { + devicesBuilder_.dispose(); + devicesBuilder_ = null; + devices_ = other.devices_; + bitField0_ = (bitField0_ & ~0x00000004); + devicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDevicesFieldBuilder() : null; + } else { + devicesBuilder_.addAllMessages(other.devices_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.ResourceClaimStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.ResourceClaimStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.V1Resource.AllocationResult allocation_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.AllocationResult, io.kubernetes.client.proto.V1Resource.AllocationResult.Builder, io.kubernetes.client.proto.V1Resource.AllocationResultOrBuilder> allocationBuilder_; + /** + *
+       * Allocation is set once the claim has been allocated successfully.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:update=NoModify
+       * 
+ * + * optional .k8s.io.api.resource.v1.AllocationResult allocation = 1; + */ + public boolean hasAllocation() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Allocation is set once the claim has been allocated successfully.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:update=NoModify
+       * 
+ * + * optional .k8s.io.api.resource.v1.AllocationResult allocation = 1; + */ + public io.kubernetes.client.proto.V1Resource.AllocationResult getAllocation() { + if (allocationBuilder_ == null) { + return allocation_ == null ? io.kubernetes.client.proto.V1Resource.AllocationResult.getDefaultInstance() : allocation_; + } else { + return allocationBuilder_.getMessage(); + } + } + /** + *
+       * Allocation is set once the claim has been allocated successfully.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:update=NoModify
+       * 
+ * + * optional .k8s.io.api.resource.v1.AllocationResult allocation = 1; + */ + public Builder setAllocation(io.kubernetes.client.proto.V1Resource.AllocationResult value) { + if (allocationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + allocation_ = value; + onChanged(); + } else { + allocationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Allocation is set once the claim has been allocated successfully.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:update=NoModify
+       * 
+ * + * optional .k8s.io.api.resource.v1.AllocationResult allocation = 1; + */ + public Builder setAllocation( + io.kubernetes.client.proto.V1Resource.AllocationResult.Builder builderForValue) { + if (allocationBuilder_ == null) { + allocation_ = builderForValue.build(); + onChanged(); + } else { + allocationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Allocation is set once the claim has been allocated successfully.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:update=NoModify
+       * 
+ * + * optional .k8s.io.api.resource.v1.AllocationResult allocation = 1; + */ + public Builder mergeAllocation(io.kubernetes.client.proto.V1Resource.AllocationResult value) { + if (allocationBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + allocation_ != null && + allocation_ != io.kubernetes.client.proto.V1Resource.AllocationResult.getDefaultInstance()) { + allocation_ = + io.kubernetes.client.proto.V1Resource.AllocationResult.newBuilder(allocation_).mergeFrom(value).buildPartial(); + } else { + allocation_ = value; + } + onChanged(); + } else { + allocationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Allocation is set once the claim has been allocated successfully.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:update=NoModify
+       * 
+ * + * optional .k8s.io.api.resource.v1.AllocationResult allocation = 1; + */ + public Builder clearAllocation() { + if (allocationBuilder_ == null) { + allocation_ = null; + onChanged(); + } else { + allocationBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Allocation is set once the claim has been allocated successfully.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:update=NoModify
+       * 
+ * + * optional .k8s.io.api.resource.v1.AllocationResult allocation = 1; + */ + public io.kubernetes.client.proto.V1Resource.AllocationResult.Builder getAllocationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAllocationFieldBuilder().getBuilder(); + } + /** + *
+       * Allocation is set once the claim has been allocated successfully.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:update=NoModify
+       * 
+ * + * optional .k8s.io.api.resource.v1.AllocationResult allocation = 1; + */ + public io.kubernetes.client.proto.V1Resource.AllocationResultOrBuilder getAllocationOrBuilder() { + if (allocationBuilder_ != null) { + return allocationBuilder_.getMessageOrBuilder(); + } else { + return allocation_ == null ? + io.kubernetes.client.proto.V1Resource.AllocationResult.getDefaultInstance() : allocation_; + } + } + /** + *
+       * Allocation is set once the claim has been allocated successfully.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:update=NoModify
+       * 
+ * + * optional .k8s.io.api.resource.v1.AllocationResult allocation = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.AllocationResult, io.kubernetes.client.proto.V1Resource.AllocationResult.Builder, io.kubernetes.client.proto.V1Resource.AllocationResultOrBuilder> + getAllocationFieldBuilder() { + if (allocationBuilder_ == null) { + allocationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.AllocationResult, io.kubernetes.client.proto.V1Resource.AllocationResult.Builder, io.kubernetes.client.proto.V1Resource.AllocationResultOrBuilder>( + getAllocation(), + getParentForChildren(), + isClean()); + allocation_ = null; + } + return allocationBuilder_; + } + + private java.util.List reservedFor_ = + java.util.Collections.emptyList(); + private void ensureReservedForIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + reservedFor_ = new java.util.ArrayList(reservedFor_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference, io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReferenceOrBuilder> reservedForBuilder_; + + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public java.util.List getReservedForList() { + if (reservedForBuilder_ == null) { + return java.util.Collections.unmodifiableList(reservedFor_); + } else { + return reservedForBuilder_.getMessageList(); + } + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public int getReservedForCount() { + if (reservedForBuilder_ == null) { + return reservedFor_.size(); + } else { + return reservedForBuilder_.getCount(); + } + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference getReservedFor(int index) { + if (reservedForBuilder_ == null) { + return reservedFor_.get(index); + } else { + return reservedForBuilder_.getMessage(index); + } + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public Builder setReservedFor( + int index, io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference value) { + if (reservedForBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReservedForIsMutable(); + reservedFor_.set(index, value); + onChanged(); + } else { + reservedForBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public Builder setReservedFor( + int index, io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.Builder builderForValue) { + if (reservedForBuilder_ == null) { + ensureReservedForIsMutable(); + reservedFor_.set(index, builderForValue.build()); + onChanged(); + } else { + reservedForBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public Builder addReservedFor(io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference value) { + if (reservedForBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReservedForIsMutable(); + reservedFor_.add(value); + onChanged(); + } else { + reservedForBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public Builder addReservedFor( + int index, io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference value) { + if (reservedForBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureReservedForIsMutable(); + reservedFor_.add(index, value); + onChanged(); + } else { + reservedForBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public Builder addReservedFor( + io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.Builder builderForValue) { + if (reservedForBuilder_ == null) { + ensureReservedForIsMutable(); + reservedFor_.add(builderForValue.build()); + onChanged(); + } else { + reservedForBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public Builder addReservedFor( + int index, io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.Builder builderForValue) { + if (reservedForBuilder_ == null) { + ensureReservedForIsMutable(); + reservedFor_.add(index, builderForValue.build()); + onChanged(); + } else { + reservedForBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public Builder addAllReservedFor( + java.lang.Iterable values) { + if (reservedForBuilder_ == null) { + ensureReservedForIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, reservedFor_); + onChanged(); + } else { + reservedForBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public Builder clearReservedFor() { + if (reservedForBuilder_ == null) { + reservedFor_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + reservedForBuilder_.clear(); + } + return this; + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public Builder removeReservedFor(int index) { + if (reservedForBuilder_ == null) { + ensureReservedForIsMutable(); + reservedFor_.remove(index); + onChanged(); + } else { + reservedForBuilder_.remove(index); + } + return this; + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.Builder getReservedForBuilder( + int index) { + return getReservedForFieldBuilder().getBuilder(index); + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReferenceOrBuilder getReservedForOrBuilder( + int index) { + if (reservedForBuilder_ == null) { + return reservedFor_.get(index); } else { + return reservedForBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public java.util.List + getReservedForOrBuilderList() { + if (reservedForBuilder_ != null) { + return reservedForBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(reservedFor_); + } + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.Builder addReservedForBuilder() { + return getReservedForFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.getDefaultInstance()); + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.Builder addReservedForBuilder( + int index) { + return getReservedForFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.getDefaultInstance()); + } + /** + *
+       * ReservedFor indicates which entities are currently allowed to use
+       * the claim. A Pod which references a ResourceClaim which is not
+       * reserved for that Pod will not be started. A claim that is in
+       * use or might be in use because it has been reserved must not get
+       * deallocated.
+       * In a cluster with multiple scheduler instances, two pods might get
+       * scheduled concurrently by different schedulers. When they reference
+       * the same ResourceClaim which already has reached its maximum number
+       * of consumers, only one pod can be scheduled.
+       * Both schedulers try to add their pod to the claim.status.reservedFor
+       * field, but only the update that reaches the API server first gets
+       * stored. The other one fails with an error and the scheduler
+       * which issued it knows that it must put the pod back into the queue,
+       * waiting for the ResourceClaim to become usable again.
+       * There can be at most 256 such reservations. This may get increased in
+       * the future, but not reduced.
+       * +optional
+       * +listType=map
+       * +listMapKey=uid
+       * +patchStrategy=merge
+       * +patchMergeKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=uid
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=256
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimConsumerReference reservedFor = 2; + */ + public java.util.List + getReservedForBuilderList() { + return getReservedForFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference, io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReferenceOrBuilder> + getReservedForFieldBuilder() { + if (reservedForBuilder_ == null) { + reservedForBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference, io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReference.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimConsumerReferenceOrBuilder>( + reservedFor_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + reservedFor_ = null; + } + return reservedForBuilder_; + } + + private java.util.List devices_ = + java.util.Collections.emptyList(); + private void ensureDevicesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + devices_ = new java.util.ArrayList(devices_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus, io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.Builder, io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatusOrBuilder> devicesBuilder_; + + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public java.util.List getDevicesList() { + if (devicesBuilder_ == null) { + return java.util.Collections.unmodifiableList(devices_); + } else { + return devicesBuilder_.getMessageList(); + } + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public int getDevicesCount() { + if (devicesBuilder_ == null) { + return devices_.size(); + } else { + return devicesBuilder_.getCount(); + } + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus getDevices(int index) { + if (devicesBuilder_ == null) { + return devices_.get(index); + } else { + return devicesBuilder_.getMessage(index); + } + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public Builder setDevices( + int index, io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus value) { + if (devicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDevicesIsMutable(); + devices_.set(index, value); + onChanged(); + } else { + devicesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public Builder setDevices( + int index, io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.Builder builderForValue) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.set(index, builderForValue.build()); + onChanged(); + } else { + devicesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public Builder addDevices(io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus value) { + if (devicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDevicesIsMutable(); + devices_.add(value); + onChanged(); + } else { + devicesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public Builder addDevices( + int index, io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus value) { + if (devicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDevicesIsMutable(); + devices_.add(index, value); + onChanged(); + } else { + devicesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public Builder addDevices( + io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.Builder builderForValue) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.add(builderForValue.build()); + onChanged(); + } else { + devicesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public Builder addDevices( + int index, io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.Builder builderForValue) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.add(index, builderForValue.build()); + onChanged(); + } else { + devicesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public Builder addAllDevices( + java.lang.Iterable values) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, devices_); + onChanged(); + } else { + devicesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public Builder clearDevices() { + if (devicesBuilder_ == null) { + devices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + devicesBuilder_.clear(); + } + return this; + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public Builder removeDevices(int index) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.remove(index); + onChanged(); + } else { + devicesBuilder_.remove(index); + } + return this; + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.Builder getDevicesBuilder( + int index) { + return getDevicesFieldBuilder().getBuilder(index); + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatusOrBuilder getDevicesOrBuilder( + int index) { + if (devicesBuilder_ == null) { + return devices_.get(index); } else { + return devicesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public java.util.List + getDevicesOrBuilderList() { + if (devicesBuilder_ != null) { + return devicesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(devices_); + } + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.Builder addDevicesBuilder() { + return getDevicesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.getDefaultInstance()); + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.Builder addDevicesBuilder( + int index) { + return getDevicesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.getDefaultInstance()); + } + /** + *
+       * Devices contains the status of each device allocated for this
+       * claim, as reported by the driver. This can include driver-specific
+       * information. Entries are owned by their respective drivers.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=map
+       * +listMapKey=driver
+       * +listMapKey=device
+       * +listMapKey=pool
+       * +listMapKey=shareID
+       * +featureGate=DRAResourceClaimDeviceStatus
+       * +k8s:alpha(since: "1.36")=+k8s:listType=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=driver
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=device
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=pool
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=shareID
+       * 
+ * + * repeated .k8s.io.api.resource.v1.AllocatedDeviceStatus devices = 4; + */ + public java.util.List + getDevicesBuilderList() { + return getDevicesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus, io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.Builder, io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatusOrBuilder> + getDevicesFieldBuilder() { + if (devicesBuilder_ == null) { + devicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus, io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatus.Builder, io.kubernetes.client.proto.V1Resource.AllocatedDeviceStatusOrBuilder>( + devices_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + devices_ = null; + } + return devicesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.ResourceClaimStatus) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.ResourceClaimStatus) + private static final io.kubernetes.client.proto.V1Resource.ResourceClaimStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.ResourceClaimStatus(); + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaimStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceClaimStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceClaimStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceClaimTemplateOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.ResourceClaimTemplate) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Describes the ResourceClaim that is to be generated.
+     * This field is immutable. A ResourceClaim will get created by the
+     * control plane for a Pod when needed and then not get updated
+     * anymore.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimTemplateSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * Describes the ResourceClaim that is to be generated.
+     * This field is immutable. A ResourceClaim will get created by the
+     * control plane for a Pod when needed and then not get updated
+     * anymore.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimTemplateSpec spec = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec getSpec(); + /** + *
+     * Describes the ResourceClaim that is to be generated.
+     * This field is immutable. A ResourceClaim will get created by the
+     * control plane for a Pod when needed and then not get updated
+     * anymore.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimTemplateSpec spec = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * ResourceClaimTemplate is used to produce ResourceClaim objects.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaimTemplate} + */ + public static final class ResourceClaimTemplate extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.ResourceClaimTemplate) + ResourceClaimTemplateOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceClaimTemplate.newBuilder() to construct. + private ResourceClaimTemplate(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceClaimTemplate() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceClaimTemplate( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.class, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int SPEC_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec spec_; + /** + *
+     * Describes the ResourceClaim that is to be generated.
+     * This field is immutable. A ResourceClaim will get created by the
+     * control plane for a Pod when needed and then not get updated
+     * anymore.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimTemplateSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * Describes the ResourceClaim that is to be generated.
+     * This field is immutable. A ResourceClaim will get created by the
+     * control plane for a Pod when needed and then not get updated
+     * anymore.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimTemplateSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec getSpec() { + return spec_ == null ? io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Describes the ResourceClaim that is to be generated.
+     * This field is immutable. A ResourceClaim will get created by the
+     * control plane for a Pod when needed and then not get updated
+     * anymore.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimTemplateSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpecOrBuilder getSpecOrBuilder() { + return spec_ == null ? io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.getDefaultInstance() : spec_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getSpec()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate other = (io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ResourceClaimTemplate is used to produce ResourceClaim objects.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaimTemplate} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.ResourceClaimTemplate) + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimTemplate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimTemplate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.class, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getSpecFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (specBuilder_ == null) { + spec_ = null; + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimTemplate_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate build() { + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate buildPartial() { + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate result = new io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate other) { + if (other == io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpecOrBuilder> specBuilder_; + /** + *
+       * Describes the ResourceClaim that is to be generated.
+       * This field is immutable. A ResourceClaim will get created by the
+       * control plane for a Pod when needed and then not get updated
+       * anymore.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimTemplateSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * Describes the ResourceClaim that is to be generated.
+       * This field is immutable. A ResourceClaim will get created by the
+       * control plane for a Pod when needed and then not get updated
+       * anymore.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimTemplateSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Describes the ResourceClaim that is to be generated.
+       * This field is immutable. A ResourceClaim will get created by the
+       * control plane for a Pod when needed and then not get updated
+       * anymore.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimTemplateSpec spec = 2; + */ + public Builder setSpec(io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Describes the ResourceClaim that is to be generated.
+       * This field is immutable. A ResourceClaim will get created by the
+       * control plane for a Pod when needed and then not get updated
+       * anymore.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimTemplateSpec spec = 2; + */ + public Builder setSpec( + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Describes the ResourceClaim that is to be generated.
+       * This field is immutable. A ResourceClaim will get created by the
+       * control plane for a Pod when needed and then not get updated
+       * anymore.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimTemplateSpec spec = 2; + */ + public Builder mergeSpec(io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + spec_ != null && + spec_ != io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.getDefaultInstance()) { + spec_ = + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Describes the ResourceClaim that is to be generated.
+       * This field is immutable. A ResourceClaim will get created by the
+       * control plane for a Pod when needed and then not get updated
+       * anymore.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimTemplateSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * Describes the ResourceClaim that is to be generated.
+       * This field is immutable. A ResourceClaim will get created by the
+       * control plane for a Pod when needed and then not get updated
+       * anymore.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimTemplateSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Describes the ResourceClaim that is to be generated.
+       * This field is immutable. A ResourceClaim will get created by the
+       * control plane for a Pod when needed and then not get updated
+       * anymore.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimTemplateSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Describes the ResourceClaim that is to be generated.
+       * This field is immutable. A ResourceClaim will get created by the
+       * control plane for a Pod when needed and then not get updated
+       * anymore.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimTemplateSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.ResourceClaimTemplate) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.ResourceClaimTemplate) + private static final io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate(); + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceClaimTemplate parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceClaimTemplate(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceClaimTemplateListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.ResourceClaimTemplateList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Items is the list of resource claim templates.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * Items is the list of resource claim templates.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate getItems(int index); + /** + *
+     * Items is the list of resource claim templates.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + int getItemsCount(); + /** + *
+     * Items is the list of resource claim templates.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * Items is the list of resource claim templates.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * ResourceClaimTemplateList is a collection of claim templates.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaimTemplateList} + */ + public static final class ResourceClaimTemplateList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.ResourceClaimTemplateList) + ResourceClaimTemplateListOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceClaimTemplateList.newBuilder() to construct. + private ResourceClaimTemplateList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceClaimTemplateList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceClaimTemplateList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList.class, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * Items is the list of resource claim templates.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * Items is the list of resource claim templates.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * Items is the list of resource claim templates.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * Items is the list of resource claim templates.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate getItems(int index) { + return items_.get(index); + } + /** + *
+     * Items is the list of resource claim templates.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList other = (io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ResourceClaimTemplateList is a collection of claim templates.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaimTemplateList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.ResourceClaimTemplateList) + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList.class, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList build() { + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList buildPartial() { + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList result = new io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList other) { + if (other == io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateOrBuilder> itemsBuilder_; + + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.getDefaultInstance()); + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.getDefaultInstance()); + } + /** + *
+       * Items is the list of resource claim templates.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceClaimTemplate items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplate.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.ResourceClaimTemplateList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.ResourceClaimTemplateList) + private static final io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList(); + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceClaimTemplateList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceClaimTemplateList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceClaimTemplateSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.ResourceClaimTemplateSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
+     * when creating it. No other fields are allowed and will be rejected during
+     * validation.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
+     * when creating it. No other fields are allowed and will be rejected during
+     * validation.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
+     * when creating it. No other fields are allowed and will be rejected during
+     * validation.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Spec for the ResourceClaim. The entire content is copied unchanged
+     * into the ResourceClaim that gets created from this template. The
+     * same fields as in a ResourceClaim are also valid here.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * Spec for the ResourceClaim. The entire content is copied unchanged
+     * into the ResourceClaim that gets created from this template. The
+     * same fields as in a ResourceClaim are also valid here.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec getSpec(); + /** + *
+     * Spec for the ResourceClaim. The entire content is copied unchanged
+     * into the ResourceClaim that gets created from this template. The
+     * same fields as in a ResourceClaim are also valid here.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceClaimSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaimTemplateSpec} + */ + public static final class ResourceClaimTemplateSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.ResourceClaimTemplateSpec) + ResourceClaimTemplateSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceClaimTemplateSpec.newBuilder() to construct. + private ResourceClaimTemplateSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceClaimTemplateSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceClaimTemplateSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.class, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
+     * when creating it. No other fields are allowed and will be rejected during
+     * validation.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
+     * when creating it. No other fields are allowed and will be rejected during
+     * validation.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
+     * when creating it. No other fields are allowed and will be rejected during
+     * validation.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int SPEC_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Resource.ResourceClaimSpec spec_; + /** + *
+     * Spec for the ResourceClaim. The entire content is copied unchanged
+     * into the ResourceClaim that gets created from this template. The
+     * same fields as in a ResourceClaim are also valid here.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * Spec for the ResourceClaim. The entire content is copied unchanged
+     * into the ResourceClaim that gets created from this template. The
+     * same fields as in a ResourceClaim are also valid here.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimSpec getSpec() { + return spec_ == null ? io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Spec for the ResourceClaim. The entire content is copied unchanged
+     * into the ResourceClaim that gets created from this template. The
+     * same fields as in a ResourceClaim are also valid here.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimSpecOrBuilder getSpecOrBuilder() { + return spec_ == null ? io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.getDefaultInstance() : spec_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getSpec()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec other = (io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ResourceClaimTemplateSpec contains the metadata and fields for a ResourceClaim.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceClaimTemplateSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.ResourceClaimTemplateSpec) + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.class, io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getSpecFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (specBuilder_ == null) { + spec_ = null; + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateSpec_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec build() { + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec buildPartial() { + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec result = new io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec other) { + if (other == io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
+       * when creating it. No other fields are allowed and will be rejected during
+       * validation.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
+       * when creating it. No other fields are allowed and will be rejected during
+       * validation.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
+       * when creating it. No other fields are allowed and will be rejected during
+       * validation.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
+       * when creating it. No other fields are allowed and will be rejected during
+       * validation.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
+       * when creating it. No other fields are allowed and will be rejected during
+       * validation.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
+       * when creating it. No other fields are allowed and will be rejected during
+       * validation.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
+       * when creating it. No other fields are allowed and will be rejected during
+       * validation.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
+       * when creating it. No other fields are allowed and will be rejected during
+       * validation.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * ObjectMeta may contain labels and annotations that will be copied into the ResourceClaim
+       * when creating it. No other fields are allowed and will be rejected during
+       * validation.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.kubernetes.client.proto.V1Resource.ResourceClaimSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec, io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimSpecOrBuilder> specBuilder_; + /** + *
+       * Spec for the ResourceClaim. The entire content is copied unchanged
+       * into the ResourceClaim that gets created from this template. The
+       * same fields as in a ResourceClaim are also valid here.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * Spec for the ResourceClaim. The entire content is copied unchanged
+       * into the ResourceClaim that gets created from this template. The
+       * same fields as in a ResourceClaim are also valid here.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Spec for the ResourceClaim. The entire content is copied unchanged
+       * into the ResourceClaim that gets created from this template. The
+       * same fields as in a ResourceClaim are also valid here.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public Builder setSpec(io.kubernetes.client.proto.V1Resource.ResourceClaimSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Spec for the ResourceClaim. The entire content is copied unchanged
+       * into the ResourceClaim that gets created from this template. The
+       * same fields as in a ResourceClaim are also valid here.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public Builder setSpec( + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Spec for the ResourceClaim. The entire content is copied unchanged
+       * into the ResourceClaim that gets created from this template. The
+       * same fields as in a ResourceClaim are also valid here.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public Builder mergeSpec(io.kubernetes.client.proto.V1Resource.ResourceClaimSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + spec_ != null && + spec_ != io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.getDefaultInstance()) { + spec_ = + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Spec for the ResourceClaim. The entire content is copied unchanged
+       * into the ResourceClaim that gets created from this template. The
+       * same fields as in a ResourceClaim are also valid here.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * Spec for the ResourceClaim. The entire content is copied unchanged
+       * into the ResourceClaim that gets created from this template. The
+       * same fields as in a ResourceClaim are also valid here.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Spec for the ResourceClaim. The entire content is copied unchanged
+       * into the ResourceClaim that gets created from this template. The
+       * same fields as in a ResourceClaim are also valid here.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceClaimSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Spec for the ResourceClaim. The entire content is copied unchanged
+       * into the ResourceClaim that gets created from this template. The
+       * same fields as in a ResourceClaim are also valid here.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceClaimSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec, io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceClaimSpec, io.kubernetes.client.proto.V1Resource.ResourceClaimSpec.Builder, io.kubernetes.client.proto.V1Resource.ResourceClaimSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.ResourceClaimTemplateSpec) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.ResourceClaimTemplateSpec) + private static final io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec(); + } + + public static io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceClaimTemplateSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceClaimTemplateSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceClaimTemplateSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourcePoolOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.ResourcePool) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Name is used to identify the pool. For node-local devices, this
+     * is often the node name, but this is not required.
+     * It must not be longer than 253 characters and must consist of one or more DNS sub-domains
+     * separated by slashes. This field is immutable.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + boolean hasName(); + /** + *
+     * Name is used to identify the pool. For node-local devices, this
+     * is often the node name, but this is not required.
+     * It must not be longer than 253 characters and must consist of one or more DNS sub-domains
+     * separated by slashes. This field is immutable.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + java.lang.String getName(); + /** + *
+     * Name is used to identify the pool. For node-local devices, this
+     * is often the node name, but this is not required.
+     * It must not be longer than 253 characters and must consist of one or more DNS sub-domains
+     * separated by slashes. This field is immutable.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + *
+     * Generation tracks the change in a pool over time. Whenever a driver
+     * changes something about one or more of the resources in a pool, it
+     * must change the generation in all ResourceSlices which are part of
+     * that pool. Consumers of ResourceSlices should only consider
+     * resources from the pool with the highest generation number. The
+     * generation may be reset by drivers, which should be fine for
+     * consumers, assuming that all ResourceSlices in a pool are updated to
+     * match or deleted.
+     * Combined with ResourceSliceCount, this mechanism enables consumers to
+     * detect pools which are comprised of multiple ResourceSlices and are
+     * in an incomplete state.
+     * +required
+     * 
+ * + * optional int64 generation = 2; + */ + boolean hasGeneration(); + /** + *
+     * Generation tracks the change in a pool over time. Whenever a driver
+     * changes something about one or more of the resources in a pool, it
+     * must change the generation in all ResourceSlices which are part of
+     * that pool. Consumers of ResourceSlices should only consider
+     * resources from the pool with the highest generation number. The
+     * generation may be reset by drivers, which should be fine for
+     * consumers, assuming that all ResourceSlices in a pool are updated to
+     * match or deleted.
+     * Combined with ResourceSliceCount, this mechanism enables consumers to
+     * detect pools which are comprised of multiple ResourceSlices and are
+     * in an incomplete state.
+     * +required
+     * 
+ * + * optional int64 generation = 2; + */ + long getGeneration(); + + /** + *
+     * ResourceSliceCount is the total number of ResourceSlices in the pool at this
+     * generation number. Must be greater than zero.
+     * Consumers can use this to check whether they have seen all ResourceSlices
+     * belonging to the same pool.
+     * +required
+     * 
+ * + * optional int64 resourceSliceCount = 3; + */ + boolean hasResourceSliceCount(); + /** + *
+     * ResourceSliceCount is the total number of ResourceSlices in the pool at this
+     * generation number. Must be greater than zero.
+     * Consumers can use this to check whether they have seen all ResourceSlices
+     * belonging to the same pool.
+     * +required
+     * 
+ * + * optional int64 resourceSliceCount = 3; + */ + long getResourceSliceCount(); + } + /** + *
+   * ResourcePool describes the pool that ResourceSlices belong to.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourcePool} + */ + public static final class ResourcePool extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.ResourcePool) + ResourcePoolOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourcePool.newBuilder() to construct. + private ResourcePool(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourcePool() { + name_ = ""; + generation_ = 0L; + resourceSliceCount_ = 0L; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourcePool( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + name_ = bs; + break; + } + case 16: { + bitField0_ |= 0x00000002; + generation_ = input.readInt64(); + break; + } + case 24: { + bitField0_ |= 0x00000004; + resourceSliceCount_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourcePool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourcePool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourcePool.class, io.kubernetes.client.proto.V1Resource.ResourcePool.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + *
+     * Name is used to identify the pool. For node-local devices, this
+     * is often the node name, but this is not required.
+     * It must not be longer than 253 characters and must consist of one or more DNS sub-domains
+     * separated by slashes. This field is immutable.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Name is used to identify the pool. For node-local devices, this
+     * is often the node name, but this is not required.
+     * It must not be longer than 253 characters and must consist of one or more DNS sub-domains
+     * separated by slashes. This field is immutable.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } + } + /** + *
+     * Name is used to identify the pool. For node-local devices, this
+     * is often the node name, but this is not required.
+     * It must not be longer than 253 characters and must consist of one or more DNS sub-domains
+     * separated by slashes. This field is immutable.
+     * +required
+     * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GENERATION_FIELD_NUMBER = 2; + private long generation_; + /** + *
+     * Generation tracks the change in a pool over time. Whenever a driver
+     * changes something about one or more of the resources in a pool, it
+     * must change the generation in all ResourceSlices which are part of
+     * that pool. Consumers of ResourceSlices should only consider
+     * resources from the pool with the highest generation number. The
+     * generation may be reset by drivers, which should be fine for
+     * consumers, assuming that all ResourceSlices in a pool are updated to
+     * match or deleted.
+     * Combined with ResourceSliceCount, this mechanism enables consumers to
+     * detect pools which are comprised of multiple ResourceSlices and are
+     * in an incomplete state.
+     * +required
+     * 
+ * + * optional int64 generation = 2; + */ + public boolean hasGeneration() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * Generation tracks the change in a pool over time. Whenever a driver
+     * changes something about one or more of the resources in a pool, it
+     * must change the generation in all ResourceSlices which are part of
+     * that pool. Consumers of ResourceSlices should only consider
+     * resources from the pool with the highest generation number. The
+     * generation may be reset by drivers, which should be fine for
+     * consumers, assuming that all ResourceSlices in a pool are updated to
+     * match or deleted.
+     * Combined with ResourceSliceCount, this mechanism enables consumers to
+     * detect pools which are comprised of multiple ResourceSlices and are
+     * in an incomplete state.
+     * +required
+     * 
+ * + * optional int64 generation = 2; + */ + public long getGeneration() { + return generation_; + } + + public static final int RESOURCESLICECOUNT_FIELD_NUMBER = 3; + private long resourceSliceCount_; + /** + *
+     * ResourceSliceCount is the total number of ResourceSlices in the pool at this
+     * generation number. Must be greater than zero.
+     * Consumers can use this to check whether they have seen all ResourceSlices
+     * belonging to the same pool.
+     * +required
+     * 
+ * + * optional int64 resourceSliceCount = 3; + */ + public boolean hasResourceSliceCount() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * ResourceSliceCount is the total number of ResourceSlices in the pool at this
+     * generation number. Must be greater than zero.
+     * Consumers can use this to check whether they have seen all ResourceSlices
+     * belonging to the same pool.
+     * +required
+     * 
+ * + * optional int64 resourceSliceCount = 3; + */ + public long getResourceSliceCount() { + return resourceSliceCount_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeInt64(2, generation_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt64(3, resourceSliceCount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, generation_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, resourceSliceCount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.ResourcePool)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.ResourcePool other = (io.kubernetes.client.proto.V1Resource.ResourcePool) obj; + + boolean result = true; + result = result && (hasName() == other.hasName()); + if (hasName()) { + result = result && getName() + .equals(other.getName()); + } + result = result && (hasGeneration() == other.hasGeneration()); + if (hasGeneration()) { + result = result && (getGeneration() + == other.getGeneration()); + } + result = result && (hasResourceSliceCount() == other.hasResourceSliceCount()); + if (hasResourceSliceCount()) { + result = result && (getResourceSliceCount() + == other.getResourceSliceCount()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasName()) { + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + } + if (hasGeneration()) { + hash = (37 * hash) + GENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGeneration()); + } + if (hasResourceSliceCount()) { + hash = (37 * hash) + RESOURCESLICECOUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getResourceSliceCount()); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.ResourcePool parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourcePool parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourcePool parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourcePool parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourcePool parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourcePool parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourcePool parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourcePool parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourcePool parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourcePool parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourcePool parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourcePool parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.ResourcePool prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ResourcePool describes the pool that ResourceSlices belong to.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourcePool} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.ResourcePool) + io.kubernetes.client.proto.V1Resource.ResourcePoolOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourcePool_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourcePool_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourcePool.class, io.kubernetes.client.proto.V1Resource.ResourcePool.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.ResourcePool.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + generation_ = 0L; + bitField0_ = (bitField0_ & ~0x00000002); + resourceSliceCount_ = 0L; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourcePool_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourcePool getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.ResourcePool.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourcePool build() { + io.kubernetes.client.proto.V1Resource.ResourcePool result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourcePool buildPartial() { + io.kubernetes.client.proto.V1Resource.ResourcePool result = new io.kubernetes.client.proto.V1Resource.ResourcePool(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.name_ = name_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.generation_ = generation_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.resourceSliceCount_ = resourceSliceCount_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.ResourcePool) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.ResourcePool)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.ResourcePool other) { + if (other == io.kubernetes.client.proto.V1Resource.ResourcePool.getDefaultInstance()) return this; + if (other.hasName()) { + bitField0_ |= 0x00000001; + name_ = other.name_; + onChanged(); + } + if (other.hasGeneration()) { + setGeneration(other.getGeneration()); + } + if (other.hasResourceSliceCount()) { + setResourceSliceCount(other.getResourceSliceCount()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.ResourcePool parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.ResourcePool) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + *
+       * Name is used to identify the pool. For node-local devices, this
+       * is often the node name, but this is not required.
+       * It must not be longer than 253 characters and must consist of one or more DNS sub-domains
+       * separated by slashes. This field is immutable.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public boolean hasName() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Name is used to identify the pool. For node-local devices, this
+       * is often the node name, but this is not required.
+       * It must not be longer than 253 characters and must consist of one or more DNS sub-domains
+       * separated by slashes. This field is immutable.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + name_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Name is used to identify the pool. For node-local devices, this
+       * is often the node name, but this is not required.
+       * It must not be longer than 253 characters and must consist of one or more DNS sub-domains
+       * separated by slashes. This field is immutable.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Name is used to identify the pool. For node-local devices, this
+       * is often the node name, but this is not required.
+       * It must not be longer than 253 characters and must consist of one or more DNS sub-domains
+       * separated by slashes. This field is immutable.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + /** + *
+       * Name is used to identify the pool. For node-local devices, this
+       * is often the node name, but this is not required.
+       * It must not be longer than 253 characters and must consist of one or more DNS sub-domains
+       * separated by slashes. This field is immutable.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public Builder clearName() { + bitField0_ = (bitField0_ & ~0x00000001); + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + *
+       * Name is used to identify the pool. For node-local devices, this
+       * is often the node name, but this is not required.
+       * It must not be longer than 253 characters and must consist of one or more DNS sub-domains
+       * separated by slashes. This field is immutable.
+       * +required
+       * 
+ * + * optional string name = 1; + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + name_ = value; + onChanged(); + return this; + } + + private long generation_ ; + /** + *
+       * Generation tracks the change in a pool over time. Whenever a driver
+       * changes something about one or more of the resources in a pool, it
+       * must change the generation in all ResourceSlices which are part of
+       * that pool. Consumers of ResourceSlices should only consider
+       * resources from the pool with the highest generation number. The
+       * generation may be reset by drivers, which should be fine for
+       * consumers, assuming that all ResourceSlices in a pool are updated to
+       * match or deleted.
+       * Combined with ResourceSliceCount, this mechanism enables consumers to
+       * detect pools which are comprised of multiple ResourceSlices and are
+       * in an incomplete state.
+       * +required
+       * 
+ * + * optional int64 generation = 2; + */ + public boolean hasGeneration() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * Generation tracks the change in a pool over time. Whenever a driver
+       * changes something about one or more of the resources in a pool, it
+       * must change the generation in all ResourceSlices which are part of
+       * that pool. Consumers of ResourceSlices should only consider
+       * resources from the pool with the highest generation number. The
+       * generation may be reset by drivers, which should be fine for
+       * consumers, assuming that all ResourceSlices in a pool are updated to
+       * match or deleted.
+       * Combined with ResourceSliceCount, this mechanism enables consumers to
+       * detect pools which are comprised of multiple ResourceSlices and are
+       * in an incomplete state.
+       * +required
+       * 
+ * + * optional int64 generation = 2; + */ + public long getGeneration() { + return generation_; + } + /** + *
+       * Generation tracks the change in a pool over time. Whenever a driver
+       * changes something about one or more of the resources in a pool, it
+       * must change the generation in all ResourceSlices which are part of
+       * that pool. Consumers of ResourceSlices should only consider
+       * resources from the pool with the highest generation number. The
+       * generation may be reset by drivers, which should be fine for
+       * consumers, assuming that all ResourceSlices in a pool are updated to
+       * match or deleted.
+       * Combined with ResourceSliceCount, this mechanism enables consumers to
+       * detect pools which are comprised of multiple ResourceSlices and are
+       * in an incomplete state.
+       * +required
+       * 
+ * + * optional int64 generation = 2; + */ + public Builder setGeneration(long value) { + bitField0_ |= 0x00000002; + generation_ = value; + onChanged(); + return this; + } + /** + *
+       * Generation tracks the change in a pool over time. Whenever a driver
+       * changes something about one or more of the resources in a pool, it
+       * must change the generation in all ResourceSlices which are part of
+       * that pool. Consumers of ResourceSlices should only consider
+       * resources from the pool with the highest generation number. The
+       * generation may be reset by drivers, which should be fine for
+       * consumers, assuming that all ResourceSlices in a pool are updated to
+       * match or deleted.
+       * Combined with ResourceSliceCount, this mechanism enables consumers to
+       * detect pools which are comprised of multiple ResourceSlices and are
+       * in an incomplete state.
+       * +required
+       * 
+ * + * optional int64 generation = 2; + */ + public Builder clearGeneration() { + bitField0_ = (bitField0_ & ~0x00000002); + generation_ = 0L; + onChanged(); + return this; + } + + private long resourceSliceCount_ ; + /** + *
+       * ResourceSliceCount is the total number of ResourceSlices in the pool at this
+       * generation number. Must be greater than zero.
+       * Consumers can use this to check whether they have seen all ResourceSlices
+       * belonging to the same pool.
+       * +required
+       * 
+ * + * optional int64 resourceSliceCount = 3; + */ + public boolean hasResourceSliceCount() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * ResourceSliceCount is the total number of ResourceSlices in the pool at this
+       * generation number. Must be greater than zero.
+       * Consumers can use this to check whether they have seen all ResourceSlices
+       * belonging to the same pool.
+       * +required
+       * 
+ * + * optional int64 resourceSliceCount = 3; + */ + public long getResourceSliceCount() { + return resourceSliceCount_; + } + /** + *
+       * ResourceSliceCount is the total number of ResourceSlices in the pool at this
+       * generation number. Must be greater than zero.
+       * Consumers can use this to check whether they have seen all ResourceSlices
+       * belonging to the same pool.
+       * +required
+       * 
+ * + * optional int64 resourceSliceCount = 3; + */ + public Builder setResourceSliceCount(long value) { + bitField0_ |= 0x00000004; + resourceSliceCount_ = value; + onChanged(); + return this; + } + /** + *
+       * ResourceSliceCount is the total number of ResourceSlices in the pool at this
+       * generation number. Must be greater than zero.
+       * Consumers can use this to check whether they have seen all ResourceSlices
+       * belonging to the same pool.
+       * +required
+       * 
+ * + * optional int64 resourceSliceCount = 3; + */ + public Builder clearResourceSliceCount() { + bitField0_ = (bitField0_ & ~0x00000004); + resourceSliceCount_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.ResourcePool) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.ResourcePool) + private static final io.kubernetes.client.proto.V1Resource.ResourcePool DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.ResourcePool(); + } + + public static io.kubernetes.client.proto.V1Resource.ResourcePool getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourcePool parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourcePool(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourcePool getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceSliceOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.ResourceSlice) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Contains the information published by the driver.
+     * Changing the spec automatically increments the metadata.generation number.
+     * +required
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceSliceSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * Contains the information published by the driver.
+     * Changing the spec automatically increments the metadata.generation number.
+     * +required
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceSliceSpec spec = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceSliceSpec getSpec(); + /** + *
+     * Contains the information published by the driver.
+     * Changing the spec automatically increments the metadata.generation number.
+     * +required
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceSliceSpec spec = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceSliceSpecOrBuilder getSpecOrBuilder(); + } + /** + *
+   * ResourceSlice represents one or more resources in a pool of similar resources,
+   * managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many
+   * ResourceSlices comprise a pool is determined by the driver.
+   * At the moment, the only supported resources are devices with attributes and capacities.
+   * Each device in a given pool, regardless of how many ResourceSlices, must have a unique name.
+   * The ResourceSlice in which a device gets published may change over time. The unique identifier
+   * for a device is the tuple <driver name>, <pool name>, <device name>.
+   * Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number
+   * and updates all ResourceSlices with that new number and new resource definitions. A consumer
+   * must only use ResourceSlices with the highest generation number and ignore all others.
+   * When allocating all resources in a pool matching certain criteria or when
+   * looking for the best solution among several different alternatives, a
+   * consumer should check the number of ResourceSlices in a pool (included in
+   * each ResourceSlice) to determine whether its view of a pool is complete and
+   * if not, should wait until the driver has completed updating the pool.
+   * For resources that are not local to a node, the node name is not set. Instead,
+   * the driver may use a node selector to specify where the devices are available.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceSlice} + */ + public static final class ResourceSlice extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.ResourceSlice) + ResourceSliceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceSlice.newBuilder() to construct. + private ResourceSlice(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceSlice() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceSlice( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceSlice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceSlice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceSlice.class, io.kubernetes.client.proto.V1Resource.ResourceSlice.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard object metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int SPEC_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Resource.ResourceSliceSpec spec_; + /** + *
+     * Contains the information published by the driver.
+     * Changing the spec automatically increments the metadata.generation number.
+     * +required
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceSliceSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * Contains the information published by the driver.
+     * Changing the spec automatically increments the metadata.generation number.
+     * +required
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceSliceSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceSliceSpec getSpec() { + return spec_ == null ? io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Contains the information published by the driver.
+     * Changing the spec automatically increments the metadata.generation number.
+     * +required
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourceSliceSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceSliceSpecOrBuilder getSpecOrBuilder() { + return spec_ == null ? io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.getDefaultInstance() : spec_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getSpec()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.ResourceSlice)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.ResourceSlice other = (io.kubernetes.client.proto.V1Resource.ResourceSlice) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.ResourceSlice parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSlice parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSlice parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSlice parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSlice parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSlice parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSlice parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSlice parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSlice parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSlice parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSlice parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSlice parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.ResourceSlice prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ResourceSlice represents one or more resources in a pool of similar resources,
+     * managed by a common driver. A pool may span more than one ResourceSlice, and exactly how many
+     * ResourceSlices comprise a pool is determined by the driver.
+     * At the moment, the only supported resources are devices with attributes and capacities.
+     * Each device in a given pool, regardless of how many ResourceSlices, must have a unique name.
+     * The ResourceSlice in which a device gets published may change over time. The unique identifier
+     * for a device is the tuple <driver name>, <pool name>, <device name>.
+     * Whenever a driver needs to update a pool, it increments the pool.Spec.Pool.Generation number
+     * and updates all ResourceSlices with that new number and new resource definitions. A consumer
+     * must only use ResourceSlices with the highest generation number and ignore all others.
+     * When allocating all resources in a pool matching certain criteria or when
+     * looking for the best solution among several different alternatives, a
+     * consumer should check the number of ResourceSlices in a pool (included in
+     * each ResourceSlice) to determine whether its view of a pool is complete and
+     * if not, should wait until the driver has completed updating the pool.
+     * For resources that are not local to a node, the node name is not set. Instead,
+     * the driver may use a node selector to specify where the devices are available.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceSlice} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.ResourceSlice) + io.kubernetes.client.proto.V1Resource.ResourceSliceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceSlice_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceSlice_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceSlice.class, io.kubernetes.client.proto.V1Resource.ResourceSlice.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.ResourceSlice.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getSpecFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (specBuilder_ == null) { + spec_ = null; + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceSlice_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceSlice getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.ResourceSlice.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceSlice build() { + io.kubernetes.client.proto.V1Resource.ResourceSlice result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceSlice buildPartial() { + io.kubernetes.client.proto.V1Resource.ResourceSlice result = new io.kubernetes.client.proto.V1Resource.ResourceSlice(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.ResourceSlice) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.ResourceSlice)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.ResourceSlice other) { + if (other == io.kubernetes.client.proto.V1Resource.ResourceSlice.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.ResourceSlice parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.ResourceSlice) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard object metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.kubernetes.client.proto.V1Resource.ResourceSliceSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceSliceSpec, io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.Builder, io.kubernetes.client.proto.V1Resource.ResourceSliceSpecOrBuilder> specBuilder_; + /** + *
+       * Contains the information published by the driver.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceSliceSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * Contains the information published by the driver.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceSliceSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceSliceSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Contains the information published by the driver.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceSliceSpec spec = 2; + */ + public Builder setSpec(io.kubernetes.client.proto.V1Resource.ResourceSliceSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Contains the information published by the driver.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceSliceSpec spec = 2; + */ + public Builder setSpec( + io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Contains the information published by the driver.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceSliceSpec spec = 2; + */ + public Builder mergeSpec(io.kubernetes.client.proto.V1Resource.ResourceSliceSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + spec_ != null && + spec_ != io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.getDefaultInstance()) { + spec_ = + io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Contains the information published by the driver.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceSliceSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * Contains the information published by the driver.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceSliceSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Contains the information published by the driver.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceSliceSpec spec = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceSliceSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Contains the information published by the driver.
+       * Changing the spec automatically increments the metadata.generation number.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourceSliceSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceSliceSpec, io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.Builder, io.kubernetes.client.proto.V1Resource.ResourceSliceSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceSliceSpec, io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.Builder, io.kubernetes.client.proto.V1Resource.ResourceSliceSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.ResourceSlice) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.ResourceSlice) + private static final io.kubernetes.client.proto.V1Resource.ResourceSlice DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.ResourceSlice(); + } + + public static io.kubernetes.client.proto.V1Resource.ResourceSlice getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceSlice parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceSlice(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceSlice getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceSliceListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.ResourceSliceList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Items is the list of resource ResourceSlices.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * Items is the list of resource ResourceSlices.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceSlice getItems(int index); + /** + *
+     * Items is the list of resource ResourceSlices.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + int getItemsCount(); + /** + *
+     * Items is the list of resource ResourceSlices.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * Items is the list of resource ResourceSlices.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourceSliceOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * ResourceSliceList is a collection of ResourceSlices.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceSliceList} + */ + public static final class ResourceSliceList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.ResourceSliceList) + ResourceSliceListOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceSliceList.newBuilder() to construct. + private ResourceSliceList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceSliceList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceSliceList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.ResourceSlice.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceSliceList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceSliceList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceSliceList.class, io.kubernetes.client.proto.V1Resource.ResourceSliceList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard list metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * Items is the list of resource ResourceSlices.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * Items is the list of resource ResourceSlices.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * Items is the list of resource ResourceSlices.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * Items is the list of resource ResourceSlices.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceSlice getItems(int index) { + return items_.get(index); + } + /** + *
+     * Items is the list of resource ResourceSlices.
+     * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceSliceOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.ResourceSliceList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.ResourceSliceList other = (io.kubernetes.client.proto.V1Resource.ResourceSliceList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.ResourceSliceList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.ResourceSliceList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ResourceSliceList is a collection of ResourceSlices.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceSliceList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.ResourceSliceList) + io.kubernetes.client.proto.V1Resource.ResourceSliceListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceSliceList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceSliceList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceSliceList.class, io.kubernetes.client.proto.V1Resource.ResourceSliceList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.ResourceSliceList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceSliceList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceSliceList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.ResourceSliceList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceSliceList build() { + io.kubernetes.client.proto.V1Resource.ResourceSliceList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceSliceList buildPartial() { + io.kubernetes.client.proto.V1Resource.ResourceSliceList result = new io.kubernetes.client.proto.V1Resource.ResourceSliceList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.ResourceSliceList) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.ResourceSliceList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.ResourceSliceList other) { + if (other == io.kubernetes.client.proto.V1Resource.ResourceSliceList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.ResourceSliceList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.ResourceSliceList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard list metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceSlice, io.kubernetes.client.proto.V1Resource.ResourceSlice.Builder, io.kubernetes.client.proto.V1Resource.ResourceSliceOrBuilder> itemsBuilder_; + + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceSlice getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Resource.ResourceSlice value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1Resource.ResourceSlice.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V1Resource.ResourceSlice value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Resource.ResourceSlice value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V1Resource.ResourceSlice.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1Resource.ResourceSlice.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceSlice.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceSliceOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceSlice.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.ResourceSlice.getDefaultInstance()); + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourceSlice.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.ResourceSlice.getDefaultInstance()); + } + /** + *
+       * Items is the list of resource ResourceSlices.
+       * 
+ * + * repeated .k8s.io.api.resource.v1.ResourceSlice items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceSlice, io.kubernetes.client.proto.V1Resource.ResourceSlice.Builder, io.kubernetes.client.proto.V1Resource.ResourceSliceOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourceSlice, io.kubernetes.client.proto.V1Resource.ResourceSlice.Builder, io.kubernetes.client.proto.V1Resource.ResourceSliceOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.ResourceSliceList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.ResourceSliceList) + private static final io.kubernetes.client.proto.V1Resource.ResourceSliceList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.ResourceSliceList(); + } + + public static io.kubernetes.client.proto.V1Resource.ResourceSliceList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceSliceList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceSliceList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceSliceList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ResourceSliceSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.resource.v1.ResourceSliceSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Driver identifies the DRA driver providing the capacity information.
+     * A field selector can be used to list only ResourceSlice
+     * objects with a certain driver name.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * This field is immutable.
+     * +required
+     * 
+ * + * optional string driver = 1; + */ + boolean hasDriver(); + /** + *
+     * Driver identifies the DRA driver providing the capacity information.
+     * A field selector can be used to list only ResourceSlice
+     * objects with a certain driver name.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * This field is immutable.
+     * +required
+     * 
+ * + * optional string driver = 1; + */ + java.lang.String getDriver(); + /** + *
+     * Driver identifies the DRA driver providing the capacity information.
+     * A field selector can be used to list only ResourceSlice
+     * objects with a certain driver name.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * This field is immutable.
+     * +required
+     * 
+ * + * optional string driver = 1; + */ + com.google.protobuf.ByteString + getDriverBytes(); + + /** + *
+     * Pool describes the pool that this ResourceSlice belongs to.
+     * +required
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourcePool pool = 2; + */ + boolean hasPool(); + /** + *
+     * Pool describes the pool that this ResourceSlice belongs to.
+     * +required
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourcePool pool = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourcePool getPool(); + /** + *
+     * Pool describes the pool that this ResourceSlice belongs to.
+     * +required
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourcePool pool = 2; + */ + io.kubernetes.client.proto.V1Resource.ResourcePoolOrBuilder getPoolOrBuilder(); + + /** + *
+     * NodeName identifies the node which provides the resources in this pool.
+     * A field selector can be used to list only ResourceSlice
+     * objects belonging to a certain node.
+     * This field can be used to limit access from nodes to ResourceSlices with
+     * the same node name. It also indicates to autoscalers that adding
+     * new nodes of the same type as some old node might also make new
+     * resources available.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * This field is immutable.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional string nodeName = 3; + */ + boolean hasNodeName(); + /** + *
+     * NodeName identifies the node which provides the resources in this pool.
+     * A field selector can be used to list only ResourceSlice
+     * objects belonging to a certain node.
+     * This field can be used to limit access from nodes to ResourceSlices with
+     * the same node name. It also indicates to autoscalers that adding
+     * new nodes of the same type as some old node might also make new
+     * resources available.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * This field is immutable.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional string nodeName = 3; + */ + java.lang.String getNodeName(); + /** + *
+     * NodeName identifies the node which provides the resources in this pool.
+     * A field selector can be used to list only ResourceSlice
+     * objects belonging to a certain node.
+     * This field can be used to limit access from nodes to ResourceSlices with
+     * the same node name. It also indicates to autoscalers that adding
+     * new nodes of the same type as some old node might also make new
+     * resources available.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * This field is immutable.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional string nodeName = 3; + */ + com.google.protobuf.ByteString + getNodeNameBytes(); + + /** + *
+     * NodeSelector defines which nodes have access to the resources in the pool,
+     * when that pool is not limited to a single node.
+     * Must use exactly one term.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4; + */ + boolean hasNodeSelector(); + /** + *
+     * NodeSelector defines which nodes have access to the resources in the pool,
+     * when that pool is not limited to a single node.
+     * Must use exactly one term.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4; + */ + io.kubernetes.client.proto.V1.NodeSelector getNodeSelector(); + /** + *
+     * NodeSelector defines which nodes have access to the resources in the pool,
+     * when that pool is not limited to a single node.
+     * Must use exactly one term.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4; + */ + io.kubernetes.client.proto.V1.NodeSelectorOrBuilder getNodeSelectorOrBuilder(); + + /** + *
+     * AllNodes indicates that all nodes have access to the resources in the pool.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional bool allNodes = 5; + */ + boolean hasAllNodes(); + /** + *
+     * AllNodes indicates that all nodes have access to the resources in the pool.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional bool allNodes = 5; + */ + boolean getAllNodes(); + + /** + *
+     * Devices lists some or all of the devices in this pool.
+     * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +zeroOrOneOf=ResourceSliceType
+     * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + java.util.List + getDevicesList(); + /** + *
+     * Devices lists some or all of the devices in this pool.
+     * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +zeroOrOneOf=ResourceSliceType
+     * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + io.kubernetes.client.proto.V1Resource.Device getDevices(int index); + /** + *
+     * Devices lists some or all of the devices in this pool.
+     * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +zeroOrOneOf=ResourceSliceType
+     * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + int getDevicesCount(); + /** + *
+     * Devices lists some or all of the devices in this pool.
+     * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +zeroOrOneOf=ResourceSliceType
+     * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + java.util.List + getDevicesOrBuilderList(); + /** + *
+     * Devices lists some or all of the devices in this pool.
+     * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +zeroOrOneOf=ResourceSliceType
+     * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + io.kubernetes.client.proto.V1Resource.DeviceOrBuilder getDevicesOrBuilder( + int index); + + /** + *
+     * PerDeviceNodeSelection defines whether the access from nodes to
+     * resources in the pool is set on the ResourceSlice level or on each
+     * device. If it is set to true, every device defined the ResourceSlice
+     * must specify this individually.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * +optional
+     * +oneOf=NodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional bool perDeviceNodeSelection = 7; + */ + boolean hasPerDeviceNodeSelection(); + /** + *
+     * PerDeviceNodeSelection defines whether the access from nodes to
+     * resources in the pool is set on the ResourceSlice level or on each
+     * device. If it is set to true, every device defined the ResourceSlice
+     * must specify this individually.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * +optional
+     * +oneOf=NodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional bool perDeviceNodeSelection = 7; + */ + boolean getPerDeviceNodeSelection(); + + /** + *
+     * SharedCounters defines a list of counter sets, each of which
+     * has a name and a list of counters available.
+     * The names of the counter sets must be unique in the ResourcePool.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * The maximum number of counter sets is 8.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +featureGate=DRAPartitionableDevices
+     * +zeroOrOneOf=ResourceSliceType
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + java.util.List + getSharedCountersList(); + /** + *
+     * SharedCounters defines a list of counter sets, each of which
+     * has a name and a list of counters available.
+     * The names of the counter sets must be unique in the ResourcePool.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * The maximum number of counter sets is 8.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +featureGate=DRAPartitionableDevices
+     * +zeroOrOneOf=ResourceSliceType
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + io.kubernetes.client.proto.V1Resource.CounterSet getSharedCounters(int index); + /** + *
+     * SharedCounters defines a list of counter sets, each of which
+     * has a name and a list of counters available.
+     * The names of the counter sets must be unique in the ResourcePool.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * The maximum number of counter sets is 8.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +featureGate=DRAPartitionableDevices
+     * +zeroOrOneOf=ResourceSliceType
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + int getSharedCountersCount(); + /** + *
+     * SharedCounters defines a list of counter sets, each of which
+     * has a name and a list of counters available.
+     * The names of the counter sets must be unique in the ResourcePool.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * The maximum number of counter sets is 8.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +featureGate=DRAPartitionableDevices
+     * +zeroOrOneOf=ResourceSliceType
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + java.util.List + getSharedCountersOrBuilderList(); + /** + *
+     * SharedCounters defines a list of counter sets, each of which
+     * has a name and a list of counters available.
+     * The names of the counter sets must be unique in the ResourcePool.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * The maximum number of counter sets is 8.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +featureGate=DRAPartitionableDevices
+     * +zeroOrOneOf=ResourceSliceType
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + io.kubernetes.client.proto.V1Resource.CounterSetOrBuilder getSharedCountersOrBuilder( + int index); + } + /** + *
+   * ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
+   * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceSliceSpec} + */ + public static final class ResourceSliceSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.resource.v1.ResourceSliceSpec) + ResourceSliceSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use ResourceSliceSpec.newBuilder() to construct. + private ResourceSliceSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ResourceSliceSpec() { + driver_ = ""; + nodeName_ = ""; + allNodes_ = false; + devices_ = java.util.Collections.emptyList(); + perDeviceNodeSelection_ = false; + sharedCounters_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ResourceSliceSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + driver_ = bs; + break; + } + case 18: { + io.kubernetes.client.proto.V1Resource.ResourcePool.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = pool_.toBuilder(); + } + pool_ = input.readMessage(io.kubernetes.client.proto.V1Resource.ResourcePool.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(pool_); + pool_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + nodeName_ = bs; + break; + } + case 34: { + io.kubernetes.client.proto.V1.NodeSelector.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = nodeSelector_.toBuilder(); + } + nodeSelector_ = input.readMessage(io.kubernetes.client.proto.V1.NodeSelector.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nodeSelector_); + nodeSelector_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 40: { + bitField0_ |= 0x00000010; + allNodes_ = input.readBool(); + break; + } + case 50: { + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + devices_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + devices_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.Device.PARSER, extensionRegistry)); + break; + } + case 56: { + bitField0_ |= 0x00000020; + perDeviceNodeSelection_ = input.readBool(); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + sharedCounters_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + sharedCounters_.add( + input.readMessage(io.kubernetes.client.proto.V1Resource.CounterSet.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + devices_ = java.util.Collections.unmodifiableList(devices_); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + sharedCounters_ = java.util.Collections.unmodifiableList(sharedCounters_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceSliceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceSliceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.class, io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.Builder.class); + } + + private int bitField0_; + public static final int DRIVER_FIELD_NUMBER = 1; + private volatile java.lang.Object driver_; + /** + *
+     * Driver identifies the DRA driver providing the capacity information.
+     * A field selector can be used to list only ResourceSlice
+     * objects with a certain driver name.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * This field is immutable.
+     * +required
+     * 
+ * + * optional string driver = 1; + */ + public boolean hasDriver() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Driver identifies the DRA driver providing the capacity information.
+     * A field selector can be used to list only ResourceSlice
+     * objects with a certain driver name.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * This field is immutable.
+     * +required
+     * 
+ * + * optional string driver = 1; + */ + public java.lang.String getDriver() { + java.lang.Object ref = driver_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + driver_ = s; + } + return s; + } + } + /** + *
+     * Driver identifies the DRA driver providing the capacity information.
+     * A field selector can be used to list only ResourceSlice
+     * objects with a certain driver name.
+     * Must be a DNS subdomain and should end with a DNS domain owned by the
+     * vendor of the driver. It should use only lower case characters.
+     * This field is immutable.
+     * +required
+     * 
+ * + * optional string driver = 1; + */ + public com.google.protobuf.ByteString + getDriverBytes() { + java.lang.Object ref = driver_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + driver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POOL_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1Resource.ResourcePool pool_; + /** + *
+     * Pool describes the pool that this ResourceSlice belongs to.
+     * +required
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourcePool pool = 2; + */ + public boolean hasPool() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * Pool describes the pool that this ResourceSlice belongs to.
+     * +required
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourcePool pool = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourcePool getPool() { + return pool_ == null ? io.kubernetes.client.proto.V1Resource.ResourcePool.getDefaultInstance() : pool_; + } + /** + *
+     * Pool describes the pool that this ResourceSlice belongs to.
+     * +required
+     * 
+ * + * optional .k8s.io.api.resource.v1.ResourcePool pool = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourcePoolOrBuilder getPoolOrBuilder() { + return pool_ == null ? io.kubernetes.client.proto.V1Resource.ResourcePool.getDefaultInstance() : pool_; + } + + public static final int NODENAME_FIELD_NUMBER = 3; + private volatile java.lang.Object nodeName_; + /** + *
+     * NodeName identifies the node which provides the resources in this pool.
+     * A field selector can be used to list only ResourceSlice
+     * objects belonging to a certain node.
+     * This field can be used to limit access from nodes to ResourceSlices with
+     * the same node name. It also indicates to autoscalers that adding
+     * new nodes of the same type as some old node might also make new
+     * resources available.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * This field is immutable.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional string nodeName = 3; + */ + public boolean hasNodeName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * NodeName identifies the node which provides the resources in this pool.
+     * A field selector can be used to list only ResourceSlice
+     * objects belonging to a certain node.
+     * This field can be used to limit access from nodes to ResourceSlices with
+     * the same node name. It also indicates to autoscalers that adding
+     * new nodes of the same type as some old node might also make new
+     * resources available.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * This field is immutable.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional string nodeName = 3; + */ + public java.lang.String getNodeName() { + java.lang.Object ref = nodeName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + nodeName_ = s; + } + return s; + } + } + /** + *
+     * NodeName identifies the node which provides the resources in this pool.
+     * A field selector can be used to list only ResourceSlice
+     * objects belonging to a certain node.
+     * This field can be used to limit access from nodes to ResourceSlices with
+     * the same node name. It also indicates to autoscalers that adding
+     * new nodes of the same type as some old node might also make new
+     * resources available.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * This field is immutable.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional string nodeName = 3; + */ + public com.google.protobuf.ByteString + getNodeNameBytes() { + java.lang.Object ref = nodeName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NODESELECTOR_FIELD_NUMBER = 4; + private io.kubernetes.client.proto.V1.NodeSelector nodeSelector_; + /** + *
+     * NodeSelector defines which nodes have access to the resources in the pool,
+     * when that pool is not limited to a single node.
+     * Must use exactly one term.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4; + */ + public boolean hasNodeSelector() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * NodeSelector defines which nodes have access to the resources in the pool,
+     * when that pool is not limited to a single node.
+     * Must use exactly one term.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4; + */ + public io.kubernetes.client.proto.V1.NodeSelector getNodeSelector() { + return nodeSelector_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : nodeSelector_; + } + /** + *
+     * NodeSelector defines which nodes have access to the resources in the pool,
+     * when that pool is not limited to a single node.
+     * Must use exactly one term.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4; + */ + public io.kubernetes.client.proto.V1.NodeSelectorOrBuilder getNodeSelectorOrBuilder() { + return nodeSelector_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : nodeSelector_; + } + + public static final int ALLNODES_FIELD_NUMBER = 5; + private boolean allNodes_; + /** + *
+     * AllNodes indicates that all nodes have access to the resources in the pool.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional bool allNodes = 5; + */ + public boolean hasAllNodes() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+     * AllNodes indicates that all nodes have access to the resources in the pool.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * +optional
+     * +oneOf=NodeSelection
+     * 
+ * + * optional bool allNodes = 5; + */ + public boolean getAllNodes() { + return allNodes_; + } + + public static final int DEVICES_FIELD_NUMBER = 6; + private java.util.List devices_; + /** + *
+     * Devices lists some or all of the devices in this pool.
+     * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +zeroOrOneOf=ResourceSliceType
+     * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public java.util.List getDevicesList() { + return devices_; + } + /** + *
+     * Devices lists some or all of the devices in this pool.
+     * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +zeroOrOneOf=ResourceSliceType
+     * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public java.util.List + getDevicesOrBuilderList() { + return devices_; + } + /** + *
+     * Devices lists some or all of the devices in this pool.
+     * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +zeroOrOneOf=ResourceSliceType
+     * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public int getDevicesCount() { + return devices_.size(); + } + /** + *
+     * Devices lists some or all of the devices in this pool.
+     * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +zeroOrOneOf=ResourceSliceType
+     * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public io.kubernetes.client.proto.V1Resource.Device getDevices(int index) { + return devices_.get(index); + } + /** + *
+     * Devices lists some or all of the devices in this pool.
+     * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * +optional
+     * +listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +zeroOrOneOf=ResourceSliceType
+     * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceOrBuilder getDevicesOrBuilder( + int index) { + return devices_.get(index); + } + + public static final int PERDEVICENODESELECTION_FIELD_NUMBER = 7; + private boolean perDeviceNodeSelection_; + /** + *
+     * PerDeviceNodeSelection defines whether the access from nodes to
+     * resources in the pool is set on the ResourceSlice level or on each
+     * device. If it is set to true, every device defined the ResourceSlice
+     * must specify this individually.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * +optional
+     * +oneOf=NodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional bool perDeviceNodeSelection = 7; + */ + public boolean hasPerDeviceNodeSelection() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+     * PerDeviceNodeSelection defines whether the access from nodes to
+     * resources in the pool is set on the ResourceSlice level or on each
+     * device. If it is set to true, every device defined the ResourceSlice
+     * must specify this individually.
+     * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+     * +optional
+     * +oneOf=NodeSelection
+     * +featureGate=DRAPartitionableDevices
+     * 
+ * + * optional bool perDeviceNodeSelection = 7; + */ + public boolean getPerDeviceNodeSelection() { + return perDeviceNodeSelection_; + } + + public static final int SHAREDCOUNTERS_FIELD_NUMBER = 8; + private java.util.List sharedCounters_; + /** + *
+     * SharedCounters defines a list of counter sets, each of which
+     * has a name and a list of counters available.
+     * The names of the counter sets must be unique in the ResourcePool.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * The maximum number of counter sets is 8.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +featureGate=DRAPartitionableDevices
+     * +zeroOrOneOf=ResourceSliceType
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public java.util.List getSharedCountersList() { + return sharedCounters_; + } + /** + *
+     * SharedCounters defines a list of counter sets, each of which
+     * has a name and a list of counters available.
+     * The names of the counter sets must be unique in the ResourcePool.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * The maximum number of counter sets is 8.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +featureGate=DRAPartitionableDevices
+     * +zeroOrOneOf=ResourceSliceType
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public java.util.List + getSharedCountersOrBuilderList() { + return sharedCounters_; + } + /** + *
+     * SharedCounters defines a list of counter sets, each of which
+     * has a name and a list of counters available.
+     * The names of the counter sets must be unique in the ResourcePool.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * The maximum number of counter sets is 8.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +featureGate=DRAPartitionableDevices
+     * +zeroOrOneOf=ResourceSliceType
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public int getSharedCountersCount() { + return sharedCounters_.size(); + } + /** + *
+     * SharedCounters defines a list of counter sets, each of which
+     * has a name and a list of counters available.
+     * The names of the counter sets must be unique in the ResourcePool.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * The maximum number of counter sets is 8.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +featureGate=DRAPartitionableDevices
+     * +zeroOrOneOf=ResourceSliceType
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public io.kubernetes.client.proto.V1Resource.CounterSet getSharedCounters(int index) { + return sharedCounters_.get(index); + } + /** + *
+     * SharedCounters defines a list of counter sets, each of which
+     * has a name and a list of counters available.
+     * The names of the counter sets must be unique in the ResourcePool.
+     * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+     * The maximum number of counter sets is 8.
+     * +optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
+     * +listType=atomic
+     * +k8s:listType=atomic
+     * +k8s:alpha(since: "1.36")=+k8s:unique=map
+     * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+     * +featureGate=DRAPartitionableDevices
+     * +zeroOrOneOf=ResourceSliceType
+     * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+     * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public io.kubernetes.client.proto.V1Resource.CounterSetOrBuilder getSharedCountersOrBuilder( + int index) { + return sharedCounters_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, driver_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getPool()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nodeName_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, getNodeSelector()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + output.writeBool(5, allNodes_); + } + for (int i = 0; i < devices_.size(); i++) { + output.writeMessage(6, devices_.get(i)); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeBool(7, perDeviceNodeSelection_); + } + for (int i = 0; i < sharedCounters_.size(); i++) { + output.writeMessage(8, sharedCounters_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, driver_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPool()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nodeName_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getNodeSelector()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, allNodes_); + } + for (int i = 0; i < devices_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, devices_.get(i)); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(7, perDeviceNodeSelection_); + } + for (int i = 0; i < sharedCounters_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, sharedCounters_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1Resource.ResourceSliceSpec)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1Resource.ResourceSliceSpec other = (io.kubernetes.client.proto.V1Resource.ResourceSliceSpec) obj; + + boolean result = true; + result = result && (hasDriver() == other.hasDriver()); + if (hasDriver()) { + result = result && getDriver() + .equals(other.getDriver()); + } + result = result && (hasPool() == other.hasPool()); + if (hasPool()) { + result = result && getPool() + .equals(other.getPool()); + } + result = result && (hasNodeName() == other.hasNodeName()); + if (hasNodeName()) { + result = result && getNodeName() + .equals(other.getNodeName()); + } + result = result && (hasNodeSelector() == other.hasNodeSelector()); + if (hasNodeSelector()) { + result = result && getNodeSelector() + .equals(other.getNodeSelector()); + } + result = result && (hasAllNodes() == other.hasAllNodes()); + if (hasAllNodes()) { + result = result && (getAllNodes() + == other.getAllNodes()); + } + result = result && getDevicesList() + .equals(other.getDevicesList()); + result = result && (hasPerDeviceNodeSelection() == other.hasPerDeviceNodeSelection()); + if (hasPerDeviceNodeSelection()) { + result = result && (getPerDeviceNodeSelection() + == other.getPerDeviceNodeSelection()); + } + result = result && getSharedCountersList() + .equals(other.getSharedCountersList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDriver()) { + hash = (37 * hash) + DRIVER_FIELD_NUMBER; + hash = (53 * hash) + getDriver().hashCode(); + } + if (hasPool()) { + hash = (37 * hash) + POOL_FIELD_NUMBER; + hash = (53 * hash) + getPool().hashCode(); + } + if (hasNodeName()) { + hash = (37 * hash) + NODENAME_FIELD_NUMBER; + hash = (53 * hash) + getNodeName().hashCode(); + } + if (hasNodeSelector()) { + hash = (37 * hash) + NODESELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getNodeSelector().hashCode(); + } + if (hasAllNodes()) { + hash = (37 * hash) + ALLNODES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getAllNodes()); + } + if (getDevicesCount() > 0) { + hash = (37 * hash) + DEVICES_FIELD_NUMBER; + hash = (53 * hash) + getDevicesList().hashCode(); + } + if (hasPerDeviceNodeSelection()) { + hash = (37 * hash) + PERDEVICENODESELECTION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPerDeviceNodeSelection()); + } + if (getSharedCountersCount() > 0) { + hash = (37 * hash) + SHAREDCOUNTERS_FIELD_NUMBER; + hash = (53 * hash) + getSharedCountersList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1Resource.ResourceSliceSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1Resource.ResourceSliceSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1Resource.ResourceSliceSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
+     * 
+ * + * Protobuf type {@code k8s.io.api.resource.v1.ResourceSliceSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.resource.v1.ResourceSliceSpec) + io.kubernetes.client.proto.V1Resource.ResourceSliceSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceSliceSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceSliceSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.class, io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPoolFieldBuilder(); + getNodeSelectorFieldBuilder(); + getDevicesFieldBuilder(); + getSharedCountersFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + driver_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (poolBuilder_ == null) { + pool_ = null; + } else { + poolBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + nodeName_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + if (nodeSelectorBuilder_ == null) { + nodeSelector_ = null; + } else { + nodeSelectorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + allNodes_ = false; + bitField0_ = (bitField0_ & ~0x00000010); + if (devicesBuilder_ == null) { + devices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + devicesBuilder_.clear(); + } + perDeviceNodeSelection_ = false; + bitField0_ = (bitField0_ & ~0x00000040); + if (sharedCountersBuilder_ == null) { + sharedCounters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + sharedCountersBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1Resource.internal_static_k8s_io_api_resource_v1_ResourceSliceSpec_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceSliceSpec getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceSliceSpec build() { + io.kubernetes.client.proto.V1Resource.ResourceSliceSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceSliceSpec buildPartial() { + io.kubernetes.client.proto.V1Resource.ResourceSliceSpec result = new io.kubernetes.client.proto.V1Resource.ResourceSliceSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.driver_ = driver_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (poolBuilder_ == null) { + result.pool_ = pool_; + } else { + result.pool_ = poolBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.nodeName_ = nodeName_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (nodeSelectorBuilder_ == null) { + result.nodeSelector_ = nodeSelector_; + } else { + result.nodeSelector_ = nodeSelectorBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.allNodes_ = allNodes_; + if (devicesBuilder_ == null) { + if (((bitField0_ & 0x00000020) == 0x00000020)) { + devices_ = java.util.Collections.unmodifiableList(devices_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.devices_ = devices_; + } else { + result.devices_ = devicesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) == 0x00000040)) { + to_bitField0_ |= 0x00000020; + } + result.perDeviceNodeSelection_ = perDeviceNodeSelection_; + if (sharedCountersBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + sharedCounters_ = java.util.Collections.unmodifiableList(sharedCounters_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.sharedCounters_ = sharedCounters_; + } else { + result.sharedCounters_ = sharedCountersBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1Resource.ResourceSliceSpec) { + return mergeFrom((io.kubernetes.client.proto.V1Resource.ResourceSliceSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1Resource.ResourceSliceSpec other) { + if (other == io.kubernetes.client.proto.V1Resource.ResourceSliceSpec.getDefaultInstance()) return this; + if (other.hasDriver()) { + bitField0_ |= 0x00000001; + driver_ = other.driver_; + onChanged(); + } + if (other.hasPool()) { + mergePool(other.getPool()); + } + if (other.hasNodeName()) { + bitField0_ |= 0x00000004; + nodeName_ = other.nodeName_; + onChanged(); + } + if (other.hasNodeSelector()) { + mergeNodeSelector(other.getNodeSelector()); + } + if (other.hasAllNodes()) { + setAllNodes(other.getAllNodes()); + } + if (devicesBuilder_ == null) { + if (!other.devices_.isEmpty()) { + if (devices_.isEmpty()) { + devices_ = other.devices_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureDevicesIsMutable(); + devices_.addAll(other.devices_); + } + onChanged(); + } + } else { + if (!other.devices_.isEmpty()) { + if (devicesBuilder_.isEmpty()) { + devicesBuilder_.dispose(); + devicesBuilder_ = null; + devices_ = other.devices_; + bitField0_ = (bitField0_ & ~0x00000020); + devicesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDevicesFieldBuilder() : null; + } else { + devicesBuilder_.addAllMessages(other.devices_); + } + } + } + if (other.hasPerDeviceNodeSelection()) { + setPerDeviceNodeSelection(other.getPerDeviceNodeSelection()); + } + if (sharedCountersBuilder_ == null) { + if (!other.sharedCounters_.isEmpty()) { + if (sharedCounters_.isEmpty()) { + sharedCounters_ = other.sharedCounters_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureSharedCountersIsMutable(); + sharedCounters_.addAll(other.sharedCounters_); + } + onChanged(); + } + } else { + if (!other.sharedCounters_.isEmpty()) { + if (sharedCountersBuilder_.isEmpty()) { + sharedCountersBuilder_.dispose(); + sharedCountersBuilder_ = null; + sharedCounters_ = other.sharedCounters_; + bitField0_ = (bitField0_ & ~0x00000080); + sharedCountersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSharedCountersFieldBuilder() : null; + } else { + sharedCountersBuilder_.addAllMessages(other.sharedCounters_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1Resource.ResourceSliceSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1Resource.ResourceSliceSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object driver_ = ""; + /** + *
+       * Driver identifies the DRA driver providing the capacity information.
+       * A field selector can be used to list only ResourceSlice
+       * objects with a certain driver name.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * This field is immutable.
+       * +required
+       * 
+ * + * optional string driver = 1; + */ + public boolean hasDriver() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Driver identifies the DRA driver providing the capacity information.
+       * A field selector can be used to list only ResourceSlice
+       * objects with a certain driver name.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * This field is immutable.
+       * +required
+       * 
+ * + * optional string driver = 1; + */ + public java.lang.String getDriver() { + java.lang.Object ref = driver_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + driver_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * Driver identifies the DRA driver providing the capacity information.
+       * A field selector can be used to list only ResourceSlice
+       * objects with a certain driver name.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * This field is immutable.
+       * +required
+       * 
+ * + * optional string driver = 1; + */ + public com.google.protobuf.ByteString + getDriverBytes() { + java.lang.Object ref = driver_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + driver_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * Driver identifies the DRA driver providing the capacity information.
+       * A field selector can be used to list only ResourceSlice
+       * objects with a certain driver name.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * This field is immutable.
+       * +required
+       * 
+ * + * optional string driver = 1; + */ + public Builder setDriver( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + driver_ = value; + onChanged(); + return this; + } + /** + *
+       * Driver identifies the DRA driver providing the capacity information.
+       * A field selector can be used to list only ResourceSlice
+       * objects with a certain driver name.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * This field is immutable.
+       * +required
+       * 
+ * + * optional string driver = 1; + */ + public Builder clearDriver() { + bitField0_ = (bitField0_ & ~0x00000001); + driver_ = getDefaultInstance().getDriver(); + onChanged(); + return this; + } + /** + *
+       * Driver identifies the DRA driver providing the capacity information.
+       * A field selector can be used to list only ResourceSlice
+       * objects with a certain driver name.
+       * Must be a DNS subdomain and should end with a DNS domain owned by the
+       * vendor of the driver. It should use only lower case characters.
+       * This field is immutable.
+       * +required
+       * 
+ * + * optional string driver = 1; + */ + public Builder setDriverBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + driver_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1Resource.ResourcePool pool_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourcePool, io.kubernetes.client.proto.V1Resource.ResourcePool.Builder, io.kubernetes.client.proto.V1Resource.ResourcePoolOrBuilder> poolBuilder_; + /** + *
+       * Pool describes the pool that this ResourceSlice belongs to.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourcePool pool = 2; + */ + public boolean hasPool() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * Pool describes the pool that this ResourceSlice belongs to.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourcePool pool = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourcePool getPool() { + if (poolBuilder_ == null) { + return pool_ == null ? io.kubernetes.client.proto.V1Resource.ResourcePool.getDefaultInstance() : pool_; + } else { + return poolBuilder_.getMessage(); + } + } + /** + *
+       * Pool describes the pool that this ResourceSlice belongs to.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourcePool pool = 2; + */ + public Builder setPool(io.kubernetes.client.proto.V1Resource.ResourcePool value) { + if (poolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pool_ = value; + onChanged(); + } else { + poolBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Pool describes the pool that this ResourceSlice belongs to.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourcePool pool = 2; + */ + public Builder setPool( + io.kubernetes.client.proto.V1Resource.ResourcePool.Builder builderForValue) { + if (poolBuilder_ == null) { + pool_ = builderForValue.build(); + onChanged(); + } else { + poolBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Pool describes the pool that this ResourceSlice belongs to.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourcePool pool = 2; + */ + public Builder mergePool(io.kubernetes.client.proto.V1Resource.ResourcePool value) { + if (poolBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + pool_ != null && + pool_ != io.kubernetes.client.proto.V1Resource.ResourcePool.getDefaultInstance()) { + pool_ = + io.kubernetes.client.proto.V1Resource.ResourcePool.newBuilder(pool_).mergeFrom(value).buildPartial(); + } else { + pool_ = value; + } + onChanged(); + } else { + poolBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Pool describes the pool that this ResourceSlice belongs to.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourcePool pool = 2; + */ + public Builder clearPool() { + if (poolBuilder_ == null) { + pool_ = null; + onChanged(); + } else { + poolBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * Pool describes the pool that this ResourceSlice belongs to.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourcePool pool = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourcePool.Builder getPoolBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPoolFieldBuilder().getBuilder(); + } + /** + *
+       * Pool describes the pool that this ResourceSlice belongs to.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourcePool pool = 2; + */ + public io.kubernetes.client.proto.V1Resource.ResourcePoolOrBuilder getPoolOrBuilder() { + if (poolBuilder_ != null) { + return poolBuilder_.getMessageOrBuilder(); + } else { + return pool_ == null ? + io.kubernetes.client.proto.V1Resource.ResourcePool.getDefaultInstance() : pool_; + } + } + /** + *
+       * Pool describes the pool that this ResourceSlice belongs to.
+       * +required
+       * 
+ * + * optional .k8s.io.api.resource.v1.ResourcePool pool = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourcePool, io.kubernetes.client.proto.V1Resource.ResourcePool.Builder, io.kubernetes.client.proto.V1Resource.ResourcePoolOrBuilder> + getPoolFieldBuilder() { + if (poolBuilder_ == null) { + poolBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.ResourcePool, io.kubernetes.client.proto.V1Resource.ResourcePool.Builder, io.kubernetes.client.proto.V1Resource.ResourcePoolOrBuilder>( + getPool(), + getParentForChildren(), + isClean()); + pool_ = null; + } + return poolBuilder_; + } + + private java.lang.Object nodeName_ = ""; + /** + *
+       * NodeName identifies the node which provides the resources in this pool.
+       * A field selector can be used to list only ResourceSlice
+       * objects belonging to a certain node.
+       * This field can be used to limit access from nodes to ResourceSlices with
+       * the same node name. It also indicates to autoscalers that adding
+       * new nodes of the same type as some old node might also make new
+       * resources available.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * This field is immutable.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional string nodeName = 3; + */ + public boolean hasNodeName() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * NodeName identifies the node which provides the resources in this pool.
+       * A field selector can be used to list only ResourceSlice
+       * objects belonging to a certain node.
+       * This field can be used to limit access from nodes to ResourceSlices with
+       * the same node name. It also indicates to autoscalers that adding
+       * new nodes of the same type as some old node might also make new
+       * resources available.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * This field is immutable.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional string nodeName = 3; + */ + public java.lang.String getNodeName() { + java.lang.Object ref = nodeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + nodeName_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * NodeName identifies the node which provides the resources in this pool.
+       * A field selector can be used to list only ResourceSlice
+       * objects belonging to a certain node.
+       * This field can be used to limit access from nodes to ResourceSlices with
+       * the same node name. It also indicates to autoscalers that adding
+       * new nodes of the same type as some old node might also make new
+       * resources available.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * This field is immutable.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional string nodeName = 3; + */ + public com.google.protobuf.ByteString + getNodeNameBytes() { + java.lang.Object ref = nodeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + nodeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * NodeName identifies the node which provides the resources in this pool.
+       * A field selector can be used to list only ResourceSlice
+       * objects belonging to a certain node.
+       * This field can be used to limit access from nodes to ResourceSlices with
+       * the same node name. It also indicates to autoscalers that adding
+       * new nodes of the same type as some old node might also make new
+       * resources available.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * This field is immutable.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional string nodeName = 3; + */ + public Builder setNodeName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + nodeName_ = value; + onChanged(); + return this; + } + /** + *
+       * NodeName identifies the node which provides the resources in this pool.
+       * A field selector can be used to list only ResourceSlice
+       * objects belonging to a certain node.
+       * This field can be used to limit access from nodes to ResourceSlices with
+       * the same node name. It also indicates to autoscalers that adding
+       * new nodes of the same type as some old node might also make new
+       * resources available.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * This field is immutable.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional string nodeName = 3; + */ + public Builder clearNodeName() { + bitField0_ = (bitField0_ & ~0x00000004); + nodeName_ = getDefaultInstance().getNodeName(); + onChanged(); + return this; + } + /** + *
+       * NodeName identifies the node which provides the resources in this pool.
+       * A field selector can be used to list only ResourceSlice
+       * objects belonging to a certain node.
+       * This field can be used to limit access from nodes to ResourceSlices with
+       * the same node name. It also indicates to autoscalers that adding
+       * new nodes of the same type as some old node might also make new
+       * resources available.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * This field is immutable.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional string nodeName = 3; + */ + public Builder setNodeNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + nodeName_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.V1.NodeSelector nodeSelector_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.NodeSelector, io.kubernetes.client.proto.V1.NodeSelector.Builder, io.kubernetes.client.proto.V1.NodeSelectorOrBuilder> nodeSelectorBuilder_; + /** + *
+       * NodeSelector defines which nodes have access to the resources in the pool,
+       * when that pool is not limited to a single node.
+       * Must use exactly one term.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4; + */ + public boolean hasNodeSelector() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * NodeSelector defines which nodes have access to the resources in the pool,
+       * when that pool is not limited to a single node.
+       * Must use exactly one term.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4; + */ + public io.kubernetes.client.proto.V1.NodeSelector getNodeSelector() { + if (nodeSelectorBuilder_ == null) { + return nodeSelector_ == null ? io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : nodeSelector_; + } else { + return nodeSelectorBuilder_.getMessage(); + } + } + /** + *
+       * NodeSelector defines which nodes have access to the resources in the pool,
+       * when that pool is not limited to a single node.
+       * Must use exactly one term.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4; + */ + public Builder setNodeSelector(io.kubernetes.client.proto.V1.NodeSelector value) { + if (nodeSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nodeSelector_ = value; + onChanged(); + } else { + nodeSelectorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * NodeSelector defines which nodes have access to the resources in the pool,
+       * when that pool is not limited to a single node.
+       * Must use exactly one term.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4; + */ + public Builder setNodeSelector( + io.kubernetes.client.proto.V1.NodeSelector.Builder builderForValue) { + if (nodeSelectorBuilder_ == null) { + nodeSelector_ = builderForValue.build(); + onChanged(); + } else { + nodeSelectorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * NodeSelector defines which nodes have access to the resources in the pool,
+       * when that pool is not limited to a single node.
+       * Must use exactly one term.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4; + */ + public Builder mergeNodeSelector(io.kubernetes.client.proto.V1.NodeSelector value) { + if (nodeSelectorBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + nodeSelector_ != null && + nodeSelector_ != io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance()) { + nodeSelector_ = + io.kubernetes.client.proto.V1.NodeSelector.newBuilder(nodeSelector_).mergeFrom(value).buildPartial(); + } else { + nodeSelector_ = value; + } + onChanged(); + } else { + nodeSelectorBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * NodeSelector defines which nodes have access to the resources in the pool,
+       * when that pool is not limited to a single node.
+       * Must use exactly one term.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4; + */ + public Builder clearNodeSelector() { + if (nodeSelectorBuilder_ == null) { + nodeSelector_ = null; + onChanged(); + } else { + nodeSelectorBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + *
+       * NodeSelector defines which nodes have access to the resources in the pool,
+       * when that pool is not limited to a single node.
+       * Must use exactly one term.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4; + */ + public io.kubernetes.client.proto.V1.NodeSelector.Builder getNodeSelectorBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getNodeSelectorFieldBuilder().getBuilder(); + } + /** + *
+       * NodeSelector defines which nodes have access to the resources in the pool,
+       * when that pool is not limited to a single node.
+       * Must use exactly one term.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4; + */ + public io.kubernetes.client.proto.V1.NodeSelectorOrBuilder getNodeSelectorOrBuilder() { + if (nodeSelectorBuilder_ != null) { + return nodeSelectorBuilder_.getMessageOrBuilder(); + } else { + return nodeSelector_ == null ? + io.kubernetes.client.proto.V1.NodeSelector.getDefaultInstance() : nodeSelector_; + } + } + /** + *
+       * NodeSelector defines which nodes have access to the resources in the pool,
+       * when that pool is not limited to a single node.
+       * Must use exactly one term.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional .k8s.io.api.core.v1.NodeSelector nodeSelector = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.NodeSelector, io.kubernetes.client.proto.V1.NodeSelector.Builder, io.kubernetes.client.proto.V1.NodeSelectorOrBuilder> + getNodeSelectorFieldBuilder() { + if (nodeSelectorBuilder_ == null) { + nodeSelectorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1.NodeSelector, io.kubernetes.client.proto.V1.NodeSelector.Builder, io.kubernetes.client.proto.V1.NodeSelectorOrBuilder>( + getNodeSelector(), + getParentForChildren(), + isClean()); + nodeSelector_ = null; + } + return nodeSelectorBuilder_; + } + + private boolean allNodes_ ; + /** + *
+       * AllNodes indicates that all nodes have access to the resources in the pool.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional bool allNodes = 5; + */ + public boolean hasAllNodes() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+       * AllNodes indicates that all nodes have access to the resources in the pool.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional bool allNodes = 5; + */ + public boolean getAllNodes() { + return allNodes_; + } + /** + *
+       * AllNodes indicates that all nodes have access to the resources in the pool.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional bool allNodes = 5; + */ + public Builder setAllNodes(boolean value) { + bitField0_ |= 0x00000010; + allNodes_ = value; + onChanged(); + return this; + } + /** + *
+       * AllNodes indicates that all nodes have access to the resources in the pool.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * 
+ * + * optional bool allNodes = 5; + */ + public Builder clearAllNodes() { + bitField0_ = (bitField0_ & ~0x00000010); + allNodes_ = false; + onChanged(); + return this; + } + + private java.util.List devices_ = + java.util.Collections.emptyList(); + private void ensureDevicesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + devices_ = new java.util.ArrayList(devices_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.Device, io.kubernetes.client.proto.V1Resource.Device.Builder, io.kubernetes.client.proto.V1Resource.DeviceOrBuilder> devicesBuilder_; + + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public java.util.List getDevicesList() { + if (devicesBuilder_ == null) { + return java.util.Collections.unmodifiableList(devices_); + } else { + return devicesBuilder_.getMessageList(); + } + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public int getDevicesCount() { + if (devicesBuilder_ == null) { + return devices_.size(); + } else { + return devicesBuilder_.getCount(); + } + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public io.kubernetes.client.proto.V1Resource.Device getDevices(int index) { + if (devicesBuilder_ == null) { + return devices_.get(index); + } else { + return devicesBuilder_.getMessage(index); + } + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public Builder setDevices( + int index, io.kubernetes.client.proto.V1Resource.Device value) { + if (devicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDevicesIsMutable(); + devices_.set(index, value); + onChanged(); + } else { + devicesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public Builder setDevices( + int index, io.kubernetes.client.proto.V1Resource.Device.Builder builderForValue) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.set(index, builderForValue.build()); + onChanged(); + } else { + devicesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public Builder addDevices(io.kubernetes.client.proto.V1Resource.Device value) { + if (devicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDevicesIsMutable(); + devices_.add(value); + onChanged(); + } else { + devicesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public Builder addDevices( + int index, io.kubernetes.client.proto.V1Resource.Device value) { + if (devicesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDevicesIsMutable(); + devices_.add(index, value); + onChanged(); + } else { + devicesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public Builder addDevices( + io.kubernetes.client.proto.V1Resource.Device.Builder builderForValue) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.add(builderForValue.build()); + onChanged(); + } else { + devicesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public Builder addDevices( + int index, io.kubernetes.client.proto.V1Resource.Device.Builder builderForValue) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.add(index, builderForValue.build()); + onChanged(); + } else { + devicesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public Builder addAllDevices( + java.lang.Iterable values) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, devices_); + onChanged(); + } else { + devicesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public Builder clearDevices() { + if (devicesBuilder_ == null) { + devices_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + devicesBuilder_.clear(); + } + return this; + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public Builder removeDevices(int index) { + if (devicesBuilder_ == null) { + ensureDevicesIsMutable(); + devices_.remove(index); + onChanged(); + } else { + devicesBuilder_.remove(index); + } + return this; + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public io.kubernetes.client.proto.V1Resource.Device.Builder getDevicesBuilder( + int index) { + return getDevicesFieldBuilder().getBuilder(index); + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public io.kubernetes.client.proto.V1Resource.DeviceOrBuilder getDevicesOrBuilder( + int index) { + if (devicesBuilder_ == null) { + return devices_.get(index); } else { + return devicesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public java.util.List + getDevicesOrBuilderList() { + if (devicesBuilder_ != null) { + return devicesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(devices_); + } + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public io.kubernetes.client.proto.V1Resource.Device.Builder addDevicesBuilder() { + return getDevicesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.Device.getDefaultInstance()); + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public io.kubernetes.client.proto.V1Resource.Device.Builder addDevicesBuilder( + int index) { + return getDevicesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.Device.getDefaultInstance()); + } + /** + *
+       * Devices lists some or all of the devices in this pool.
+       * Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * +optional
+       * +listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +zeroOrOneOf=ResourceSliceType
+       * 
+ * + * repeated .k8s.io.api.resource.v1.Device devices = 6; + */ + public java.util.List + getDevicesBuilderList() { + return getDevicesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.Device, io.kubernetes.client.proto.V1Resource.Device.Builder, io.kubernetes.client.proto.V1Resource.DeviceOrBuilder> + getDevicesFieldBuilder() { + if (devicesBuilder_ == null) { + devicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.Device, io.kubernetes.client.proto.V1Resource.Device.Builder, io.kubernetes.client.proto.V1Resource.DeviceOrBuilder>( + devices_, + ((bitField0_ & 0x00000020) == 0x00000020), + getParentForChildren(), + isClean()); + devices_ = null; + } + return devicesBuilder_; + } + + private boolean perDeviceNodeSelection_ ; + /** + *
+       * PerDeviceNodeSelection defines whether the access from nodes to
+       * resources in the pool is set on the ResourceSlice level or on each
+       * device. If it is set to true, every device defined the ResourceSlice
+       * must specify this individually.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional bool perDeviceNodeSelection = 7; + */ + public boolean hasPerDeviceNodeSelection() { + return ((bitField0_ & 0x00000040) == 0x00000040); + } + /** + *
+       * PerDeviceNodeSelection defines whether the access from nodes to
+       * resources in the pool is set on the ResourceSlice level or on each
+       * device. If it is set to true, every device defined the ResourceSlice
+       * must specify this individually.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional bool perDeviceNodeSelection = 7; + */ + public boolean getPerDeviceNodeSelection() { + return perDeviceNodeSelection_; + } + /** + *
+       * PerDeviceNodeSelection defines whether the access from nodes to
+       * resources in the pool is set on the ResourceSlice level or on each
+       * device. If it is set to true, every device defined the ResourceSlice
+       * must specify this individually.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional bool perDeviceNodeSelection = 7; + */ + public Builder setPerDeviceNodeSelection(boolean value) { + bitField0_ |= 0x00000040; + perDeviceNodeSelection_ = value; + onChanged(); + return this; + } + /** + *
+       * PerDeviceNodeSelection defines whether the access from nodes to
+       * resources in the pool is set on the ResourceSlice level or on each
+       * device. If it is set to true, every device defined the ResourceSlice
+       * must specify this individually.
+       * Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
+       * +optional
+       * +oneOf=NodeSelection
+       * +featureGate=DRAPartitionableDevices
+       * 
+ * + * optional bool perDeviceNodeSelection = 7; + */ + public Builder clearPerDeviceNodeSelection() { + bitField0_ = (bitField0_ & ~0x00000040); + perDeviceNodeSelection_ = false; + onChanged(); + return this; + } + + private java.util.List sharedCounters_ = + java.util.Collections.emptyList(); + private void ensureSharedCountersIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + sharedCounters_ = new java.util.ArrayList(sharedCounters_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CounterSet, io.kubernetes.client.proto.V1Resource.CounterSet.Builder, io.kubernetes.client.proto.V1Resource.CounterSetOrBuilder> sharedCountersBuilder_; + + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public java.util.List getSharedCountersList() { + if (sharedCountersBuilder_ == null) { + return java.util.Collections.unmodifiableList(sharedCounters_); + } else { + return sharedCountersBuilder_.getMessageList(); + } + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public int getSharedCountersCount() { + if (sharedCountersBuilder_ == null) { + return sharedCounters_.size(); + } else { + return sharedCountersBuilder_.getCount(); + } + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public io.kubernetes.client.proto.V1Resource.CounterSet getSharedCounters(int index) { + if (sharedCountersBuilder_ == null) { + return sharedCounters_.get(index); + } else { + return sharedCountersBuilder_.getMessage(index); + } + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public Builder setSharedCounters( + int index, io.kubernetes.client.proto.V1Resource.CounterSet value) { + if (sharedCountersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharedCountersIsMutable(); + sharedCounters_.set(index, value); + onChanged(); + } else { + sharedCountersBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public Builder setSharedCounters( + int index, io.kubernetes.client.proto.V1Resource.CounterSet.Builder builderForValue) { + if (sharedCountersBuilder_ == null) { + ensureSharedCountersIsMutable(); + sharedCounters_.set(index, builderForValue.build()); + onChanged(); + } else { + sharedCountersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public Builder addSharedCounters(io.kubernetes.client.proto.V1Resource.CounterSet value) { + if (sharedCountersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharedCountersIsMutable(); + sharedCounters_.add(value); + onChanged(); + } else { + sharedCountersBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public Builder addSharedCounters( + int index, io.kubernetes.client.proto.V1Resource.CounterSet value) { + if (sharedCountersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSharedCountersIsMutable(); + sharedCounters_.add(index, value); + onChanged(); + } else { + sharedCountersBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public Builder addSharedCounters( + io.kubernetes.client.proto.V1Resource.CounterSet.Builder builderForValue) { + if (sharedCountersBuilder_ == null) { + ensureSharedCountersIsMutable(); + sharedCounters_.add(builderForValue.build()); + onChanged(); + } else { + sharedCountersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public Builder addSharedCounters( + int index, io.kubernetes.client.proto.V1Resource.CounterSet.Builder builderForValue) { + if (sharedCountersBuilder_ == null) { + ensureSharedCountersIsMutable(); + sharedCounters_.add(index, builderForValue.build()); + onChanged(); + } else { + sharedCountersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public Builder addAllSharedCounters( + java.lang.Iterable values) { + if (sharedCountersBuilder_ == null) { + ensureSharedCountersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, sharedCounters_); + onChanged(); + } else { + sharedCountersBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public Builder clearSharedCounters() { + if (sharedCountersBuilder_ == null) { + sharedCounters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + sharedCountersBuilder_.clear(); + } + return this; + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public Builder removeSharedCounters(int index) { + if (sharedCountersBuilder_ == null) { + ensureSharedCountersIsMutable(); + sharedCounters_.remove(index); + onChanged(); + } else { + sharedCountersBuilder_.remove(index); + } + return this; + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public io.kubernetes.client.proto.V1Resource.CounterSet.Builder getSharedCountersBuilder( + int index) { + return getSharedCountersFieldBuilder().getBuilder(index); + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public io.kubernetes.client.proto.V1Resource.CounterSetOrBuilder getSharedCountersOrBuilder( + int index) { + if (sharedCountersBuilder_ == null) { + return sharedCounters_.get(index); } else { + return sharedCountersBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public java.util.List + getSharedCountersOrBuilderList() { + if (sharedCountersBuilder_ != null) { + return sharedCountersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sharedCounters_); + } + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public io.kubernetes.client.proto.V1Resource.CounterSet.Builder addSharedCountersBuilder() { + return getSharedCountersFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1Resource.CounterSet.getDefaultInstance()); + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public io.kubernetes.client.proto.V1Resource.CounterSet.Builder addSharedCountersBuilder( + int index) { + return getSharedCountersFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1Resource.CounterSet.getDefaultInstance()); + } + /** + *
+       * SharedCounters defines a list of counter sets, each of which
+       * has a name and a list of counters available.
+       * The names of the counter sets must be unique in the ResourcePool.
+       * Only one of Devices and SharedCounters can be set in a ResourceSlice.
+       * The maximum number of counter sets is 8.
+       * +optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
+       * +listType=atomic
+       * +k8s:listType=atomic
+       * +k8s:alpha(since: "1.36")=+k8s:unique=map
+       * +k8s:alpha(since: "1.36")=+k8s:listMapKey=name
+       * +featureGate=DRAPartitionableDevices
+       * +zeroOrOneOf=ResourceSliceType
+       * +k8s:alpha(since: "1.36")=+k8s:maxItems=8
+       * 
+ * + * repeated .k8s.io.api.resource.v1.CounterSet sharedCounters = 8; + */ + public java.util.List + getSharedCountersBuilderList() { + return getSharedCountersFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CounterSet, io.kubernetes.client.proto.V1Resource.CounterSet.Builder, io.kubernetes.client.proto.V1Resource.CounterSetOrBuilder> + getSharedCountersFieldBuilder() { + if (sharedCountersBuilder_ == null) { + sharedCountersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1Resource.CounterSet, io.kubernetes.client.proto.V1Resource.CounterSet.Builder, io.kubernetes.client.proto.V1Resource.CounterSetOrBuilder>( + sharedCounters_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + sharedCounters_ = null; + } + return sharedCountersBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.resource.v1.ResourceSliceSpec) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.resource.v1.ResourceSliceSpec) + private static final io.kubernetes.client.proto.V1Resource.ResourceSliceSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1Resource.ResourceSliceSpec(); + } + + public static io.kubernetes.client.proto.V1Resource.ResourceSliceSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ResourceSliceSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ResourceSliceSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1Resource.ResourceSliceSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_AllocatedDeviceStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_AllocatedDeviceStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_AllocationResult_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_AllocationResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_CELDeviceSelector_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_CELDeviceSelector_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_CapacityRequestPolicy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_CapacityRequestPolicy_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_CapacityRequestPolicyRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_CapacityRequestPolicyRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_CapacityRequirements_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_CapacityRequirements_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_CapacityRequirements_RequestsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_CapacityRequirements_RequestsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_Counter_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_Counter_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_CounterSet_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_CounterSet_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_CounterSet_CountersEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_CounterSet_CountersEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_Device_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_Device_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_Device_AttributesEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_Device_AttributesEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_Device_CapacityEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_Device_CapacityEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_Device_NodeAllocatableResourceMappingsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_Device_NodeAllocatableResourceMappingsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceAllocationConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceAllocationConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceAllocationResult_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceAllocationResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceAttribute_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceAttribute_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceCapacity_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceCapacity_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceClaim_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceClaim_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceClaimConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceClaimConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceClass_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceClass_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceClassConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceClassConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceClassList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceClassList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceClassSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceClassSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceConstraint_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceConstraint_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_CountersEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_CountersEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_ConsumedCapacityEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_ConsumedCapacityEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceSelector_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceSelector_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceSubRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceSubRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceTaint_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceTaint_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_DeviceToleration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_DeviceToleration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_ExactDeviceRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_ExactDeviceRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_NetworkDeviceData_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_NetworkDeviceData_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_NodeAllocatableResourceMapping_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_NodeAllocatableResourceMapping_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_OpaqueDeviceConfiguration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_OpaqueDeviceConfiguration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_ResourceClaim_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_ResourceClaim_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_ResourceClaimConsumerReference_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_ResourceClaimConsumerReference_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_ResourceClaimList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_ResourceClaimList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_ResourceClaimSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_ResourceClaimSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_ResourceClaimStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_ResourceClaimStatus_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_ResourceClaimTemplate_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_ResourceClaimTemplate_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_ResourcePool_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_ResourcePool_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_ResourceSlice_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_ResourceSlice_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_ResourceSliceList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_ResourceSliceList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_resource_v1_ResourceSliceSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_resource_v1_ResourceSliceSpec_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n&k8s.io/api/resource/v1/generated.proto" + + "\022\026k8s.io.api.resource.v1\032\"k8s.io/api/cor" + + "e/v1/generated.proto\0324k8s.io/apimachiner" + + "y/pkg/api/resource/generated.proto\0324k8s." + + "io/apimachinery/pkg/apis/meta/v1/generat" + + "ed.proto\032/k8s.io/apimachinery/pkg/runtim" + + "e/generated.proto\0326k8s.io/apimachinery/p" + + "kg/runtime/schema/generated.proto\"\230\002\n\025Al" + + "locatedDeviceStatus\022\016\n\006driver\030\001 \001(\t\022\014\n\004p" + + "ool\030\002 \001(\t\022\016\n\006device\030\003 \001(\t\022\017\n\007shareID\030\007 \001" + + "(\t\022C\n\nconditions\030\004 \003(\0132/.k8s.io.apimachi" + + "nery.pkg.apis.meta.v1.Condition\022;\n\004data\030" + + "\005 \001(\0132-.k8s.io.apimachinery.pkg.runtime." + + "RawExtension\022>\n\013networkData\030\006 \001(\0132).k8s." + + "io.api.resource.v1.NetworkDeviceData\"\324\001\n" + + "\020AllocationResult\022?\n\007devices\030\001 \001(\0132..k8s" + + ".io.api.resource.v1.DeviceAllocationResu" + + "lt\0226\n\014nodeSelector\030\003 \001(\0132 .k8s.io.api.co" + + "re.v1.NodeSelector\022G\n\023allocationTimestam" + + "p\030\005 \001(\0132*.k8s.io.apimachinery.pkg.apis.m" + + "eta.v1.Time\"\'\n\021CELDeviceSelector\022\022\n\nexpr" + + "ession\030\001 \001(\t\"\345\001\n\025CapacityRequestPolicy\022?" + + "\n\007default\030\001 \001(\0132..k8s.io.apimachinery.pk" + + "g.api.resource.Quantity\022C\n\013validValues\030\003" + + " \003(\0132..k8s.io.apimachinery.pkg.api.resou" + + "rce.Quantity\022F\n\nvalidRange\030\004 \001(\01322.k8s.i" + + "o.api.resource.v1.CapacityRequestPolicyR" + + "ange\"\324\001\n\032CapacityRequestPolicyRange\022;\n\003m" + + "in\030\001 \001(\0132..k8s.io.apimachinery.pkg.api.r" + + "esource.Quantity\022;\n\003max\030\002 \001(\0132..k8s.io.a" + + "pimachinery.pkg.api.resource.Quantity\022<\n" + + "\004step\030\003 \001(\0132..k8s.io.apimachinery.pkg.ap" + + "i.resource.Quantity\"\305\001\n\024CapacityRequirem" + + "ents\022L\n\010requests\030\001 \003(\0132:.k8s.io.api.reso" + + "urce.v1.CapacityRequirements.RequestsEnt" + + "ry\032_\n\rRequestsEntry\022\013\n\003key\030\001 \001(\t\022=\n\005valu" + + "e\030\002 \001(\0132..k8s.io.apimachinery.pkg.api.re" + + "source.Quantity:\0028\001\"H\n\007Counter\022=\n\005value\030" + + "\001 \001(\0132..k8s.io.apimachinery.pkg.api.reso" + + "urce.Quantity\"\260\001\n\nCounterSet\022\014\n\004name\030\001 \001" + + "(\t\022B\n\010counters\030\002 \003(\01320.k8s.io.api.resour" + + "ce.v1.CounterSet.CountersEntry\032P\n\rCounte" + + "rsEntry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037.k8" + + "s.io.api.resource.v1.Counter:\0028\001\"\216\007\n\006Dev" + + "ice\022\014\n\004name\030\001 \001(\t\022B\n\nattributes\030\002 \003(\0132.." + + "k8s.io.api.resource.v1.Device.Attributes" + + "Entry\022>\n\010capacity\030\003 \003(\0132,.k8s.io.api.res" + + "ource.v1.Device.CapacityEntry\022J\n\020consume" + + "sCounters\030\004 \003(\01320.k8s.io.api.resource.v1" + + ".DeviceCounterConsumption\022\020\n\010nodeName\030\005 " + + "\001(\t\0226\n\014nodeSelector\030\006 \001(\0132 .k8s.io.api.c" + + "ore.v1.NodeSelector\022\020\n\010allNodes\030\007 \001(\010\0223\n" + + "\006taints\030\010 \003(\0132#.k8s.io.api.resource.v1.D" + + "eviceTaint\022\023\n\013bindsToNode\030\t \001(\010\022\031\n\021bindi" + + "ngConditions\030\n \003(\t\022 \n\030bindingFailureCond" + + "itions\030\013 \003(\t\022 \n\030allowMultipleAllocations" + + "\030\014 \001(\010\022l\n\037nodeAllocatableResourceMapping" + + "s\030\r \003(\0132C.k8s.io.api.resource.v1.Device." + + "NodeAllocatableResourceMappingsEntry\032Z\n\017" + + "AttributesEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 " + + "\001(\0132\'.k8s.io.api.resource.v1.DeviceAttri" + + "bute:\0028\001\032W\n\rCapacityEntry\022\013\n\003key\030\001 \001(\t\0225" + + "\n\005value\030\002 \001(\0132&.k8s.io.api.resource.v1.D" + + "eviceCapacity:\0028\001\032~\n$NodeAllocatableReso" + + "urceMappingsEntry\022\013\n\003key\030\001 \001(\t\022E\n\005value\030" + + "\002 \001(\01326.k8s.io.api.resource.v1.NodeAlloc" + + "atableResourceMapping:\0028\001\"\213\001\n\035DeviceAllo" + + "cationConfiguration\022\016\n\006source\030\001 \001(\t\022\020\n\010r" + + "equests\030\002 \003(\t\022H\n\023deviceConfiguration\030\003 \001" + + "(\0132+.k8s.io.api.resource.v1.DeviceConfig" + + "uration\"\247\001\n\026DeviceAllocationResult\022F\n\007re" + + "sults\030\001 \003(\01325.k8s.io.api.resource.v1.Dev" + + "iceRequestAllocationResult\022E\n\006config\030\002 \003" + + "(\01325.k8s.io.api.resource.v1.DeviceAlloca" + + "tionConfiguration\"\215\001\n\017DeviceAttribute\022\013\n" + + "\003int\030\002 \001(\003\022\014\n\004bool\030\003 \001(\010\022\016\n\006string\030\004 \001(\t" + + "\022\017\n\007version\030\005 \001(\t\022\014\n\004ints\030\006 \003(\003\022\r\n\005bools" + + "\030\007 \003(\010\022\017\n\007strings\030\010 \003(\t\022\020\n\010versions\030\t \003(" + + "\t\"\225\001\n\016DeviceCapacity\022=\n\005value\030\001 \001(\0132..k8" + + "s.io.apimachinery.pkg.api.resource.Quant" + + "ity\022D\n\rrequestPolicy\030\002 \001(\0132-.k8s.io.api." + + "resource.v1.CapacityRequestPolicy\"\307\001\n\013De" + + "viceClaim\0227\n\010requests\030\001 \003(\0132%.k8s.io.api" + + ".resource.v1.DeviceRequest\022=\n\013constraint" + + "s\030\002 \003(\0132(.k8s.io.api.resource.v1.DeviceC" + + "onstraint\022@\n\006config\030\003 \003(\01320.k8s.io.api.r" + + "esource.v1.DeviceClaimConfiguration\"v\n\030D" + + "eviceClaimConfiguration\022\020\n\010requests\030\001 \003(" + + "\t\022H\n\023deviceConfiguration\030\002 \001(\0132+.k8s.io." + + "api.resource.v1.DeviceConfiguration\"\210\001\n\013" + + "DeviceClass\022B\n\010metadata\030\001 \001(\01320.k8s.io.a" + + "pimachinery.pkg.apis.meta.v1.ObjectMeta\022" + + "5\n\004spec\030\002 \001(\0132\'.k8s.io.api.resource.v1.D" + + "eviceClassSpec\"d\n\030DeviceClassConfigurati" + + "on\022H\n\023deviceConfiguration\030\001 \001(\0132+.k8s.io" + + ".api.resource.v1.DeviceConfiguration\"\207\001\n" + + "\017DeviceClassList\022@\n\010metadata\030\001 \001(\0132..k8s" + + ".io.apimachinery.pkg.apis.meta.v1.ListMe" + + "ta\0222\n\005items\030\002 \003(\0132#.k8s.io.api.resource." + + "v1.DeviceClass\"\254\001\n\017DeviceClassSpec\0229\n\tse" + + "lectors\030\001 \003(\0132&.k8s.io.api.resource.v1.D" + + "eviceSelector\022@\n\006config\030\002 \003(\01320.k8s.io.a" + + "pi.resource.v1.DeviceClassConfiguration\022" + + "\034\n\024extendedResourceName\030\004 \001(\t\"X\n\023DeviceC" + + "onfiguration\022A\n\006opaque\030\001 \001(\01321.k8s.io.ap" + + "i.resource.v1.OpaqueDeviceConfiguration\"" + + "W\n\020DeviceConstraint\022\020\n\010requests\030\001 \003(\t\022\026\n" + + "\016matchAttribute\030\002 \001(\t\022\031\n\021distinctAttribu" + + "te\030\003 \001(\t\"\322\001\n\030DeviceCounterConsumption\022\022\n" + + "\ncounterSet\030\001 \001(\t\022P\n\010counters\030\002 \003(\0132>.k8" + + "s.io.api.resource.v1.DeviceCounterConsum" + + "ption.CountersEntry\032P\n\rCountersEntry\022\013\n\003" + + "key\030\001 \001(\t\022.\n\005value\030\002 \001(\0132\037.k8s.io.api.re" + + "source.v1.Counter:\0028\001\"\234\001\n\rDeviceRequest\022" + + "\014\n\004name\030\001 \001(\t\022;\n\007exactly\030\002 \001(\0132*.k8s.io." + + "api.resource.v1.ExactDeviceRequest\022@\n\016fi" + + "rstAvailable\030\003 \003(\0132(.k8s.io.api.resource" + + ".v1.DeviceSubRequest\"\320\003\n\035DeviceRequestAl" + + "locationResult\022\017\n\007request\030\001 \001(\t\022\016\n\006drive" + + "r\030\002 \001(\t\022\014\n\004pool\030\003 \001(\t\022\016\n\006device\030\004 \001(\t\022\023\n" + + "\013adminAccess\030\005 \001(\010\022=\n\013tolerations\030\006 \003(\0132" + + "(.k8s.io.api.resource.v1.DeviceToleratio" + + "n\022\031\n\021bindingConditions\030\007 \003(\t\022 \n\030bindingF" + + "ailureConditions\030\010 \003(\t\022\017\n\007shareID\030\t \001(\t\022" + + "e\n\020consumedCapacity\030\n \003(\0132K.k8s.io.api.r" + + "esource.v1.DeviceRequestAllocationResult" + + ".ConsumedCapacityEntry\032g\n\025ConsumedCapaci" + + "tyEntry\022\013\n\003key\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8" + + "s.io.apimachinery.pkg.api.resource.Quant" + + "ity:\0028\001\"H\n\016DeviceSelector\0226\n\003cel\030\001 \001(\0132)" + + ".k8s.io.api.resource.v1.CELDeviceSelecto" + + "r\"\232\002\n\020DeviceSubRequest\022\014\n\004name\030\001 \001(\t\022\027\n\017" + + "deviceClassName\030\002 \001(\t\0229\n\tselectors\030\003 \003(\013" + + "2&.k8s.io.api.resource.v1.DeviceSelector" + + "\022\026\n\016allocationMode\030\004 \001(\t\022\r\n\005count\030\005 \001(\003\022" + + "=\n\013tolerations\030\006 \003(\0132(.k8s.io.api.resour" + + "ce.v1.DeviceToleration\022>\n\010capacity\030\007 \001(\013" + + "2,.k8s.io.api.resource.v1.CapacityRequir" + + "ements\"x\n\013DeviceTaint\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t\022\016\n\006effect\030\003 \001(\t\022=\n\ttimeAdded\030\004" + + " \001(\0132*.k8s.io.apimachinery.pkg.apis.meta" + + ".v1.Time\"k\n\020DeviceToleration\022\013\n\003key\030\001 \001(" + + "\t\022\020\n\010operator\030\002 \001(\t\022\r\n\005value\030\003 \001(\t\022\016\n\006ef" + + "fect\030\004 \001(\t\022\031\n\021tolerationSeconds\030\005 \001(\003\"\243\002" + + "\n\022ExactDeviceRequest\022\027\n\017deviceClassName\030" + + "\001 \001(\t\0229\n\tselectors\030\002 \003(\0132&.k8s.io.api.re" + + "source.v1.DeviceSelector\022\026\n\016allocationMo" + + "de\030\003 \001(\t\022\r\n\005count\030\004 \001(\003\022\023\n\013adminAccess\030\005" + + " \001(\010\022=\n\013tolerations\030\006 \003(\0132(.k8s.io.api.r" + + "esource.v1.DeviceToleration\022>\n\010capacity\030" + + "\007 \001(\0132,.k8s.io.api.resource.v1.CapacityR" + + "equirements\"P\n\021NetworkDeviceData\022\025\n\rinte" + + "rfaceName\030\001 \001(\t\022\013\n\003ips\030\002 \003(\t\022\027\n\017hardware" + + "Address\030\003 \001(\t\"\203\001\n\036NodeAllocatableResourc" + + "eMapping\022\023\n\013capacityKey\030\001 \001(\t\022L\n\024allocat" + + "ionMultiplier\030\002 \001(\0132..k8s.io.apimachiner" + + "y.pkg.api.resource.Quantity\"n\n\031OpaqueDev" + + "iceConfiguration\022\016\n\006driver\030\001 \001(\t\022A\n\npara" + + "meters\030\002 \001(\0132-.k8s.io.apimachinery.pkg.r" + + "untime.RawExtension\"\311\001\n\rResourceClaim\022B\n" + + "\010metadata\030\001 \001(\01320.k8s.io.apimachinery.pk" + + "g.apis.meta.v1.ObjectMeta\0227\n\004spec\030\002 \001(\0132" + + ").k8s.io.api.resource.v1.ResourceClaimSp" + + "ec\022;\n\006status\030\003 \001(\0132+.k8s.io.api.resource" + + ".v1.ResourceClaimStatus\"_\n\036ResourceClaim" + + "ConsumerReference\022\020\n\010apiGroup\030\001 \001(\t\022\020\n\010r" + + "esource\030\003 \001(\t\022\014\n\004name\030\004 \001(\t\022\013\n\003uid\030\005 \001(\t" + + "\"\213\001\n\021ResourceClaimList\022@\n\010metadata\030\001 \001(\013" + + "2..k8s.io.apimachinery.pkg.apis.meta.v1." + + "ListMeta\0224\n\005items\030\002 \003(\0132%.k8s.io.api.res" + + "ource.v1.ResourceClaim\"I\n\021ResourceClaimS" + + "pec\0224\n\007devices\030\001 \001(\0132#.k8s.io.api.resour" + + "ce.v1.DeviceClaim\"\340\001\n\023ResourceClaimStatu" + + "s\022<\n\nallocation\030\001 \001(\0132(.k8s.io.api.resou" + + "rce.v1.AllocationResult\022K\n\013reservedFor\030\002" + + " \003(\01326.k8s.io.api.resource.v1.ResourceCl" + + "aimConsumerReference\022>\n\007devices\030\004 \003(\0132-." + + "k8s.io.api.resource.v1.AllocatedDeviceSt" + + "atus\"\234\001\n\025ResourceClaimTemplate\022B\n\010metada" + + "ta\030\001 \001(\01320.k8s.io.apimachinery.pkg.apis." + + "meta.v1.ObjectMeta\022?\n\004spec\030\002 \001(\01321.k8s.i" + + "o.api.resource.v1.ResourceClaimTemplateS" + + "pec\"\233\001\n\031ResourceClaimTemplateList\022@\n\010met" + + "adata\030\001 \001(\0132..k8s.io.apimachinery.pkg.ap" + + "is.meta.v1.ListMeta\022<\n\005items\030\002 \003(\0132-.k8s" + + ".io.api.resource.v1.ResourceClaimTemplat" + + "e\"\230\001\n\031ResourceClaimTemplateSpec\022B\n\010metad" + + "ata\030\001 \001(\01320.k8s.io.apimachinery.pkg.apis" + + ".meta.v1.ObjectMeta\0227\n\004spec\030\002 \001(\0132).k8s." + + "io.api.resource.v1.ResourceClaimSpec\"L\n\014" + + "ResourcePool\022\014\n\004name\030\001 \001(\t\022\022\n\ngeneration" + + "\030\002 \001(\003\022\032\n\022resourceSliceCount\030\003 \001(\003\"\214\001\n\rR" + + "esourceSlice\022B\n\010metadata\030\001 \001(\01320.k8s.io." + + "apimachinery.pkg.apis.meta.v1.ObjectMeta" + + "\0227\n\004spec\030\002 \001(\0132).k8s.io.api.resource.v1." + + "ResourceSliceSpec\"\213\001\n\021ResourceSliceList\022" + + "@\n\010metadata\030\001 \001(\0132..k8s.io.apimachinery." + + "pkg.apis.meta.v1.ListMeta\0224\n\005items\030\002 \003(\013" + + "2%.k8s.io.api.resource.v1.ResourceSlice\"" + + "\300\002\n\021ResourceSliceSpec\022\016\n\006driver\030\001 \001(\t\0222\n" + + "\004pool\030\002 \001(\0132$.k8s.io.api.resource.v1.Res" + + "ourcePool\022\020\n\010nodeName\030\003 \001(\t\0226\n\014nodeSelec" + + "tor\030\004 \001(\0132 .k8s.io.api.core.v1.NodeSelec" + + "tor\022\020\n\010allNodes\030\005 \001(\010\022/\n\007devices\030\006 \003(\0132\036" + + ".k8s.io.api.resource.v1.Device\022\036\n\026perDev" + + "iceNodeSelection\030\007 \001(\010\022:\n\016sharedCounters" + + "\030\010 \003(\0132\".k8s.io.api.resource.v1.CounterS" + + "etB@\n\032io.kubernetes.client.protoB\nV1Reso" + + "urceZ\026k8s.io/api/resource/v1" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.kubernetes.client.proto.V1.getDescriptor(), + io.kubernetes.client.proto.Resource.getDescriptor(), + io.kubernetes.client.proto.Meta.getDescriptor(), + io.kubernetes.client.proto.Runtime.getDescriptor(), + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), + }, assigner); + internal_static_k8s_io_api_resource_v1_AllocatedDeviceStatus_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_k8s_io_api_resource_v1_AllocatedDeviceStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_AllocatedDeviceStatus_descriptor, + new java.lang.String[] { "Driver", "Pool", "Device", "ShareID", "Conditions", "Data", "NetworkData", }); + internal_static_k8s_io_api_resource_v1_AllocationResult_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_k8s_io_api_resource_v1_AllocationResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_AllocationResult_descriptor, + new java.lang.String[] { "Devices", "NodeSelector", "AllocationTimestamp", }); + internal_static_k8s_io_api_resource_v1_CELDeviceSelector_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_k8s_io_api_resource_v1_CELDeviceSelector_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_CELDeviceSelector_descriptor, + new java.lang.String[] { "Expression", }); + internal_static_k8s_io_api_resource_v1_CapacityRequestPolicy_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_k8s_io_api_resource_v1_CapacityRequestPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_CapacityRequestPolicy_descriptor, + new java.lang.String[] { "Default", "ValidValues", "ValidRange", }); + internal_static_k8s_io_api_resource_v1_CapacityRequestPolicyRange_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_k8s_io_api_resource_v1_CapacityRequestPolicyRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_CapacityRequestPolicyRange_descriptor, + new java.lang.String[] { "Min", "Max", "Step", }); + internal_static_k8s_io_api_resource_v1_CapacityRequirements_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_k8s_io_api_resource_v1_CapacityRequirements_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_CapacityRequirements_descriptor, + new java.lang.String[] { "Requests", }); + internal_static_k8s_io_api_resource_v1_CapacityRequirements_RequestsEntry_descriptor = + internal_static_k8s_io_api_resource_v1_CapacityRequirements_descriptor.getNestedTypes().get(0); + internal_static_k8s_io_api_resource_v1_CapacityRequirements_RequestsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_CapacityRequirements_RequestsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_k8s_io_api_resource_v1_Counter_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_k8s_io_api_resource_v1_Counter_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_Counter_descriptor, + new java.lang.String[] { "Value", }); + internal_static_k8s_io_api_resource_v1_CounterSet_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_k8s_io_api_resource_v1_CounterSet_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_CounterSet_descriptor, + new java.lang.String[] { "Name", "Counters", }); + internal_static_k8s_io_api_resource_v1_CounterSet_CountersEntry_descriptor = + internal_static_k8s_io_api_resource_v1_CounterSet_descriptor.getNestedTypes().get(0); + internal_static_k8s_io_api_resource_v1_CounterSet_CountersEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_CounterSet_CountersEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_k8s_io_api_resource_v1_Device_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_k8s_io_api_resource_v1_Device_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_Device_descriptor, + new java.lang.String[] { "Name", "Attributes", "Capacity", "ConsumesCounters", "NodeName", "NodeSelector", "AllNodes", "Taints", "BindsToNode", "BindingConditions", "BindingFailureConditions", "AllowMultipleAllocations", "NodeAllocatableResourceMappings", }); + internal_static_k8s_io_api_resource_v1_Device_AttributesEntry_descriptor = + internal_static_k8s_io_api_resource_v1_Device_descriptor.getNestedTypes().get(0); + internal_static_k8s_io_api_resource_v1_Device_AttributesEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_Device_AttributesEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_k8s_io_api_resource_v1_Device_CapacityEntry_descriptor = + internal_static_k8s_io_api_resource_v1_Device_descriptor.getNestedTypes().get(1); + internal_static_k8s_io_api_resource_v1_Device_CapacityEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_Device_CapacityEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_k8s_io_api_resource_v1_Device_NodeAllocatableResourceMappingsEntry_descriptor = + internal_static_k8s_io_api_resource_v1_Device_descriptor.getNestedTypes().get(2); + internal_static_k8s_io_api_resource_v1_Device_NodeAllocatableResourceMappingsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_Device_NodeAllocatableResourceMappingsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_k8s_io_api_resource_v1_DeviceAllocationConfiguration_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_k8s_io_api_resource_v1_DeviceAllocationConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceAllocationConfiguration_descriptor, + new java.lang.String[] { "Source", "Requests", "DeviceConfiguration", }); + internal_static_k8s_io_api_resource_v1_DeviceAllocationResult_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_k8s_io_api_resource_v1_DeviceAllocationResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceAllocationResult_descriptor, + new java.lang.String[] { "Results", "Config", }); + internal_static_k8s_io_api_resource_v1_DeviceAttribute_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_k8s_io_api_resource_v1_DeviceAttribute_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceAttribute_descriptor, + new java.lang.String[] { "Int", "Bool", "String", "Version", "Ints", "Bools", "Strings", "Versions", }); + internal_static_k8s_io_api_resource_v1_DeviceCapacity_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_k8s_io_api_resource_v1_DeviceCapacity_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceCapacity_descriptor, + new java.lang.String[] { "Value", "RequestPolicy", }); + internal_static_k8s_io_api_resource_v1_DeviceClaim_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_k8s_io_api_resource_v1_DeviceClaim_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceClaim_descriptor, + new java.lang.String[] { "Requests", "Constraints", "Config", }); + internal_static_k8s_io_api_resource_v1_DeviceClaimConfiguration_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_k8s_io_api_resource_v1_DeviceClaimConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceClaimConfiguration_descriptor, + new java.lang.String[] { "Requests", "DeviceConfiguration", }); + internal_static_k8s_io_api_resource_v1_DeviceClass_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_k8s_io_api_resource_v1_DeviceClass_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceClass_descriptor, + new java.lang.String[] { "Metadata", "Spec", }); + internal_static_k8s_io_api_resource_v1_DeviceClassConfiguration_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_k8s_io_api_resource_v1_DeviceClassConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceClassConfiguration_descriptor, + new java.lang.String[] { "DeviceConfiguration", }); + internal_static_k8s_io_api_resource_v1_DeviceClassList_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_k8s_io_api_resource_v1_DeviceClassList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceClassList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_resource_v1_DeviceClassSpec_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_k8s_io_api_resource_v1_DeviceClassSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceClassSpec_descriptor, + new java.lang.String[] { "Selectors", "Config", "ExtendedResourceName", }); + internal_static_k8s_io_api_resource_v1_DeviceConfiguration_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_k8s_io_api_resource_v1_DeviceConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceConfiguration_descriptor, + new java.lang.String[] { "Opaque", }); + internal_static_k8s_io_api_resource_v1_DeviceConstraint_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_k8s_io_api_resource_v1_DeviceConstraint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceConstraint_descriptor, + new java.lang.String[] { "Requests", "MatchAttribute", "DistinctAttribute", }); + internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_descriptor, + new java.lang.String[] { "CounterSet", "Counters", }); + internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_CountersEntry_descriptor = + internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_descriptor.getNestedTypes().get(0); + internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_CountersEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceCounterConsumption_CountersEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_k8s_io_api_resource_v1_DeviceRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_k8s_io_api_resource_v1_DeviceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceRequest_descriptor, + new java.lang.String[] { "Name", "Exactly", "FirstAvailable", }); + internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_descriptor, + new java.lang.String[] { "Request", "Driver", "Pool", "Device", "AdminAccess", "Tolerations", "BindingConditions", "BindingFailureConditions", "ShareID", "ConsumedCapacity", }); + internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_ConsumedCapacityEntry_descriptor = + internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_descriptor.getNestedTypes().get(0); + internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_ConsumedCapacityEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceRequestAllocationResult_ConsumedCapacityEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_k8s_io_api_resource_v1_DeviceSelector_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_k8s_io_api_resource_v1_DeviceSelector_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceSelector_descriptor, + new java.lang.String[] { "Cel", }); + internal_static_k8s_io_api_resource_v1_DeviceSubRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_k8s_io_api_resource_v1_DeviceSubRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceSubRequest_descriptor, + new java.lang.String[] { "Name", "DeviceClassName", "Selectors", "AllocationMode", "Count", "Tolerations", "Capacity", }); + internal_static_k8s_io_api_resource_v1_DeviceTaint_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_k8s_io_api_resource_v1_DeviceTaint_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceTaint_descriptor, + new java.lang.String[] { "Key", "Value", "Effect", "TimeAdded", }); + internal_static_k8s_io_api_resource_v1_DeviceToleration_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_k8s_io_api_resource_v1_DeviceToleration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_DeviceToleration_descriptor, + new java.lang.String[] { "Key", "Operator", "Value", "Effect", "TolerationSeconds", }); + internal_static_k8s_io_api_resource_v1_ExactDeviceRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_k8s_io_api_resource_v1_ExactDeviceRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_ExactDeviceRequest_descriptor, + new java.lang.String[] { "DeviceClassName", "Selectors", "AllocationMode", "Count", "AdminAccess", "Tolerations", "Capacity", }); + internal_static_k8s_io_api_resource_v1_NetworkDeviceData_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_k8s_io_api_resource_v1_NetworkDeviceData_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_NetworkDeviceData_descriptor, + new java.lang.String[] { "InterfaceName", "Ips", "HardwareAddress", }); + internal_static_k8s_io_api_resource_v1_NodeAllocatableResourceMapping_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_k8s_io_api_resource_v1_NodeAllocatableResourceMapping_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_NodeAllocatableResourceMapping_descriptor, + new java.lang.String[] { "CapacityKey", "AllocationMultiplier", }); + internal_static_k8s_io_api_resource_v1_OpaqueDeviceConfiguration_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_k8s_io_api_resource_v1_OpaqueDeviceConfiguration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_OpaqueDeviceConfiguration_descriptor, + new java.lang.String[] { "Driver", "Parameters", }); + internal_static_k8s_io_api_resource_v1_ResourceClaim_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_k8s_io_api_resource_v1_ResourceClaim_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_ResourceClaim_descriptor, + new java.lang.String[] { "Metadata", "Spec", "Status", }); + internal_static_k8s_io_api_resource_v1_ResourceClaimConsumerReference_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_k8s_io_api_resource_v1_ResourceClaimConsumerReference_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_ResourceClaimConsumerReference_descriptor, + new java.lang.String[] { "ApiGroup", "Resource", "Name", "Uid", }); + internal_static_k8s_io_api_resource_v1_ResourceClaimList_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_k8s_io_api_resource_v1_ResourceClaimList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_ResourceClaimList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_resource_v1_ResourceClaimSpec_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_k8s_io_api_resource_v1_ResourceClaimSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_ResourceClaimSpec_descriptor, + new java.lang.String[] { "Devices", }); + internal_static_k8s_io_api_resource_v1_ResourceClaimStatus_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_k8s_io_api_resource_v1_ResourceClaimStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_ResourceClaimStatus_descriptor, + new java.lang.String[] { "Allocation", "ReservedFor", "Devices", }); + internal_static_k8s_io_api_resource_v1_ResourceClaimTemplate_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_k8s_io_api_resource_v1_ResourceClaimTemplate_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_ResourceClaimTemplate_descriptor, + new java.lang.String[] { "Metadata", "Spec", }); + internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateList_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateSpec_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_ResourceClaimTemplateSpec_descriptor, + new java.lang.String[] { "Metadata", "Spec", }); + internal_static_k8s_io_api_resource_v1_ResourcePool_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_k8s_io_api_resource_v1_ResourcePool_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_ResourcePool_descriptor, + new java.lang.String[] { "Name", "Generation", "ResourceSliceCount", }); + internal_static_k8s_io_api_resource_v1_ResourceSlice_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_k8s_io_api_resource_v1_ResourceSlice_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_ResourceSlice_descriptor, + new java.lang.String[] { "Metadata", "Spec", }); + internal_static_k8s_io_api_resource_v1_ResourceSliceList_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_k8s_io_api_resource_v1_ResourceSliceList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_ResourceSliceList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_resource_v1_ResourceSliceSpec_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_k8s_io_api_resource_v1_ResourceSliceSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_resource_v1_ResourceSliceSpec_descriptor, + new java.lang.String[] { "Driver", "Pool", "NodeName", "NodeSelector", "AllNodes", "Devices", "PerDeviceNodeSelection", "SharedCounters", }); + io.kubernetes.client.proto.V1.getDescriptor(); + io.kubernetes.client.proto.Resource.getDescriptor(); + io.kubernetes.client.proto.Meta.getDescriptor(); + io.kubernetes.client.proto.Runtime.getDescriptor(); + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1Storage.java b/proto/src/main/java/io/kubernetes/client/proto/V1Storage.java index a322d68cbf..61bfdf1304 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V1Storage.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V1Storage.java @@ -2741,7 +2741,7 @@ io.kubernetes.client.proto.V1Storage.TokenRequestOrBuilder getTokenRequestsOrBui * updates triggered by capacity-related failures are enabled. If not set, no updates * occur (neither periodic nor upon detecting capacity-related failures), and the * allocatable.count remains static. The minimum allowed value for this field is 10 seconds. - * This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. + * This feature requires the MutableCSINodeAllocatableCount feature gate to be enabled. * This field is mutable. * +featureGate=MutableCSINodeAllocatableCount * +optional @@ -2757,7 +2757,7 @@ io.kubernetes.client.proto.V1Storage.TokenRequestOrBuilder getTokenRequestsOrBui * updates triggered by capacity-related failures are enabled. If not set, no updates * occur (neither periodic nor upon detecting capacity-related failures), and the * allocatable.count remains static. The minimum allowed value for this field is 10 seconds. - * This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. + * This feature requires the MutableCSINodeAllocatableCount feature gate to be enabled. * This field is mutable. * +featureGate=MutableCSINodeAllocatableCount * +optional @@ -2815,6 +2815,53 @@ io.kubernetes.client.proto.V1Storage.TokenRequestOrBuilder getTokenRequestsOrBui * optional bool serviceAccountTokenInSecrets = 10; */ boolean getServiceAccountTokenInSecrets(); + + /** + *
+     * PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod
+     * scheduling if the CSI driver on the node is missing.
+     * Enabling this option will prevent the scheduler (or any other
+     * component which embeds default scheduler such as cluster-autoscaler) from
+     * scheduling pods to nodes where CSI driver is not installed.
+     * For components(such as cluster-autoscaler) that embed the scheduler and run
+     * pod placement simulations using scheduler plugins, they MUST be aware of
+     * CSI driver registration information via CSINode object. They must create simulated
+     * CSINode objects in addition to Node objects during scheduling simulation, otherwise
+     * if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any
+     * newly created node may be rejected by the scheduler because of missing CSI driver
+     * information from the node.
+     * This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled.
+     * Default is "false".
+     * +featureGate=VolumeLimitScaling
+     * +optional
+     * 
+ * + * optional bool preventPodSchedulingIfMissing = 11; + */ + boolean hasPreventPodSchedulingIfMissing(); + /** + *
+     * PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod
+     * scheduling if the CSI driver on the node is missing.
+     * Enabling this option will prevent the scheduler (or any other
+     * component which embeds default scheduler such as cluster-autoscaler) from
+     * scheduling pods to nodes where CSI driver is not installed.
+     * For components(such as cluster-autoscaler) that embed the scheduler and run
+     * pod placement simulations using scheduler plugins, they MUST be aware of
+     * CSI driver registration information via CSINode object. They must create simulated
+     * CSINode objects in addition to Node objects during scheduling simulation, otherwise
+     * if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any
+     * newly created node may be rejected by the scheduler because of missing CSI driver
+     * information from the node.
+     * This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled.
+     * Default is "false".
+     * +featureGate=VolumeLimitScaling
+     * +optional
+     * 
+ * + * optional bool preventPodSchedulingIfMissing = 11; + */ + boolean getPreventPodSchedulingIfMissing(); } /** *
@@ -2843,6 +2890,7 @@ private CSIDriverSpec() {
       seLinuxMount_ = false;
       nodeAllocatableUpdatePeriodSeconds_ = 0L;
       serviceAccountTokenInSecrets_ = false;
+      preventPodSchedulingIfMissing_ = false;
     }
 
     @java.lang.Override
@@ -2928,6 +2976,11 @@ private CSIDriverSpec(
               serviceAccountTokenInSecrets_ = input.readBool();
               break;
             }
+            case 88: {
+              bitField0_ |= 0x00000100;
+              preventPodSchedulingIfMissing_ = input.readBool();
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -3520,7 +3573,7 @@ public boolean getSeLinuxMount() {
      * updates triggered by capacity-related failures are enabled. If not set, no updates
      * occur (neither periodic nor upon detecting capacity-related failures), and the
      * allocatable.count remains static. The minimum allowed value for this field is 10 seconds.
-     * This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled.
+     * This feature requires the MutableCSINodeAllocatableCount feature gate to be enabled.
      * This field is mutable.
      * +featureGate=MutableCSINodeAllocatableCount
      * +optional
@@ -3538,7 +3591,7 @@ public boolean hasNodeAllocatableUpdatePeriodSeconds() {
      * updates triggered by capacity-related failures are enabled. If not set, no updates
      * occur (neither periodic nor upon detecting capacity-related failures), and the
      * allocatable.count remains static. The minimum allowed value for this field is 10 seconds.
-     * This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled.
+     * This feature requires the MutableCSINodeAllocatableCount feature gate to be enabled.
      * This field is mutable.
      * +featureGate=MutableCSINodeAllocatableCount
      * +optional
@@ -3605,6 +3658,59 @@ public boolean getServiceAccountTokenInSecrets() {
       return serviceAccountTokenInSecrets_;
     }
 
+    public static final int PREVENTPODSCHEDULINGIFMISSING_FIELD_NUMBER = 11;
+    private boolean preventPodSchedulingIfMissing_;
+    /**
+     * 
+     * PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod
+     * scheduling if the CSI driver on the node is missing.
+     * Enabling this option will prevent the scheduler (or any other
+     * component which embeds default scheduler such as cluster-autoscaler) from
+     * scheduling pods to nodes where CSI driver is not installed.
+     * For components(such as cluster-autoscaler) that embed the scheduler and run
+     * pod placement simulations using scheduler plugins, they MUST be aware of
+     * CSI driver registration information via CSINode object. They must create simulated
+     * CSINode objects in addition to Node objects during scheduling simulation, otherwise
+     * if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any
+     * newly created node may be rejected by the scheduler because of missing CSI driver
+     * information from the node.
+     * This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled.
+     * Default is "false".
+     * +featureGate=VolumeLimitScaling
+     * +optional
+     * 
+ * + * optional bool preventPodSchedulingIfMissing = 11; + */ + public boolean hasPreventPodSchedulingIfMissing() { + return ((bitField0_ & 0x00000100) == 0x00000100); + } + /** + *
+     * PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod
+     * scheduling if the CSI driver on the node is missing.
+     * Enabling this option will prevent the scheduler (or any other
+     * component which embeds default scheduler such as cluster-autoscaler) from
+     * scheduling pods to nodes where CSI driver is not installed.
+     * For components(such as cluster-autoscaler) that embed the scheduler and run
+     * pod placement simulations using scheduler plugins, they MUST be aware of
+     * CSI driver registration information via CSINode object. They must create simulated
+     * CSINode objects in addition to Node objects during scheduling simulation, otherwise
+     * if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any
+     * newly created node may be rejected by the scheduler because of missing CSI driver
+     * information from the node.
+     * This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled.
+     * Default is "false".
+     * +featureGate=VolumeLimitScaling
+     * +optional
+     * 
+ * + * optional bool preventPodSchedulingIfMissing = 11; + */ + public boolean getPreventPodSchedulingIfMissing() { + return preventPodSchedulingIfMissing_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -3649,6 +3755,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000080) == 0x00000080)) { output.writeBool(10, serviceAccountTokenInSecrets_); } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + output.writeBool(11, preventPodSchedulingIfMissing_); + } unknownFields.writeTo(output); } @@ -3701,6 +3810,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, serviceAccountTokenInSecrets_); } + if (((bitField0_ & 0x00000100) == 0x00000100)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(11, preventPodSchedulingIfMissing_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3761,6 +3874,11 @@ public boolean equals(final java.lang.Object obj) { result = result && (getServiceAccountTokenInSecrets() == other.getServiceAccountTokenInSecrets()); } + result = result && (hasPreventPodSchedulingIfMissing() == other.hasPreventPodSchedulingIfMissing()); + if (hasPreventPodSchedulingIfMissing()) { + result = result && (getPreventPodSchedulingIfMissing() + == other.getPreventPodSchedulingIfMissing()); + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -3819,6 +3937,11 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getServiceAccountTokenInSecrets()); } + if (hasPreventPodSchedulingIfMissing()) { + hash = (37 * hash) + PREVENTPODSCHEDULINGIFMISSING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getPreventPodSchedulingIfMissing()); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3981,6 +4104,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000100); serviceAccountTokenInSecrets_ = false; bitField0_ = (bitField0_ & ~0x00000200); + preventPodSchedulingIfMissing_ = false; + bitField0_ = (bitField0_ & ~0x00000400); return this; } @@ -4055,6 +4180,10 @@ public io.kubernetes.client.proto.V1Storage.CSIDriverSpec buildPartial() { to_bitField0_ |= 0x00000080; } result.serviceAccountTokenInSecrets_ = serviceAccountTokenInSecrets_; + if (((from_bitField0_ & 0x00000400) == 0x00000400)) { + to_bitField0_ |= 0x00000100; + } + result.preventPodSchedulingIfMissing_ = preventPodSchedulingIfMissing_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -4166,6 +4295,9 @@ public Builder mergeFrom(io.kubernetes.client.proto.V1Storage.CSIDriverSpec othe if (other.hasServiceAccountTokenInSecrets()) { setServiceAccountTokenInSecrets(other.getServiceAccountTokenInSecrets()); } + if (other.hasPreventPodSchedulingIfMissing()) { + setPreventPodSchedulingIfMissing(other.getPreventPodSchedulingIfMissing()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -5667,7 +5799,7 @@ public Builder clearSeLinuxMount() { * updates triggered by capacity-related failures are enabled. If not set, no updates * occur (neither periodic nor upon detecting capacity-related failures), and the * allocatable.count remains static. The minimum allowed value for this field is 10 seconds. - * This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. + * This feature requires the MutableCSINodeAllocatableCount feature gate to be enabled. * This field is mutable. * +featureGate=MutableCSINodeAllocatableCount * +optional @@ -5685,7 +5817,7 @@ public boolean hasNodeAllocatableUpdatePeriodSeconds() { * updates triggered by capacity-related failures are enabled. If not set, no updates * occur (neither periodic nor upon detecting capacity-related failures), and the * allocatable.count remains static. The minimum allowed value for this field is 10 seconds. - * This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. + * This feature requires the MutableCSINodeAllocatableCount feature gate to be enabled. * This field is mutable. * +featureGate=MutableCSINodeAllocatableCount * +optional @@ -5703,7 +5835,7 @@ public long getNodeAllocatableUpdatePeriodSeconds() { * updates triggered by capacity-related failures are enabled. If not set, no updates * occur (neither periodic nor upon detecting capacity-related failures), and the * allocatable.count remains static. The minimum allowed value for this field is 10 seconds. - * This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. + * This feature requires the MutableCSINodeAllocatableCount feature gate to be enabled. * This field is mutable. * +featureGate=MutableCSINodeAllocatableCount * +optional @@ -5724,7 +5856,7 @@ public Builder setNodeAllocatableUpdatePeriodSeconds(long value) { * updates triggered by capacity-related failures are enabled. If not set, no updates * occur (neither periodic nor upon detecting capacity-related failures), and the * allocatable.count remains static. The minimum allowed value for this field is 10 seconds. - * This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. + * This feature requires the MutableCSINodeAllocatableCount feature gate to be enabled. * This field is mutable. * +featureGate=MutableCSINodeAllocatableCount * +optional @@ -5850,6 +5982,114 @@ public Builder clearServiceAccountTokenInSecrets() { onChanged(); return this; } + + private boolean preventPodSchedulingIfMissing_ ; + /** + *
+       * PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod
+       * scheduling if the CSI driver on the node is missing.
+       * Enabling this option will prevent the scheduler (or any other
+       * component which embeds default scheduler such as cluster-autoscaler) from
+       * scheduling pods to nodes where CSI driver is not installed.
+       * For components(such as cluster-autoscaler) that embed the scheduler and run
+       * pod placement simulations using scheduler plugins, they MUST be aware of
+       * CSI driver registration information via CSINode object. They must create simulated
+       * CSINode objects in addition to Node objects during scheduling simulation, otherwise
+       * if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any
+       * newly created node may be rejected by the scheduler because of missing CSI driver
+       * information from the node.
+       * This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled.
+       * Default is "false".
+       * +featureGate=VolumeLimitScaling
+       * +optional
+       * 
+ * + * optional bool preventPodSchedulingIfMissing = 11; + */ + public boolean hasPreventPodSchedulingIfMissing() { + return ((bitField0_ & 0x00000400) == 0x00000400); + } + /** + *
+       * PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod
+       * scheduling if the CSI driver on the node is missing.
+       * Enabling this option will prevent the scheduler (or any other
+       * component which embeds default scheduler such as cluster-autoscaler) from
+       * scheduling pods to nodes where CSI driver is not installed.
+       * For components(such as cluster-autoscaler) that embed the scheduler and run
+       * pod placement simulations using scheduler plugins, they MUST be aware of
+       * CSI driver registration information via CSINode object. They must create simulated
+       * CSINode objects in addition to Node objects during scheduling simulation, otherwise
+       * if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any
+       * newly created node may be rejected by the scheduler because of missing CSI driver
+       * information from the node.
+       * This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled.
+       * Default is "false".
+       * +featureGate=VolumeLimitScaling
+       * +optional
+       * 
+ * + * optional bool preventPodSchedulingIfMissing = 11; + */ + public boolean getPreventPodSchedulingIfMissing() { + return preventPodSchedulingIfMissing_; + } + /** + *
+       * PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod
+       * scheduling if the CSI driver on the node is missing.
+       * Enabling this option will prevent the scheduler (or any other
+       * component which embeds default scheduler such as cluster-autoscaler) from
+       * scheduling pods to nodes where CSI driver is not installed.
+       * For components(such as cluster-autoscaler) that embed the scheduler and run
+       * pod placement simulations using scheduler plugins, they MUST be aware of
+       * CSI driver registration information via CSINode object. They must create simulated
+       * CSINode objects in addition to Node objects during scheduling simulation, otherwise
+       * if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any
+       * newly created node may be rejected by the scheduler because of missing CSI driver
+       * information from the node.
+       * This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled.
+       * Default is "false".
+       * +featureGate=VolumeLimitScaling
+       * +optional
+       * 
+ * + * optional bool preventPodSchedulingIfMissing = 11; + */ + public Builder setPreventPodSchedulingIfMissing(boolean value) { + bitField0_ |= 0x00000400; + preventPodSchedulingIfMissing_ = value; + onChanged(); + return this; + } + /** + *
+       * PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod
+       * scheduling if the CSI driver on the node is missing.
+       * Enabling this option will prevent the scheduler (or any other
+       * component which embeds default scheduler such as cluster-autoscaler) from
+       * scheduling pods to nodes where CSI driver is not installed.
+       * For components(such as cluster-autoscaler) that embed the scheduler and run
+       * pod placement simulations using scheduler plugins, they MUST be aware of
+       * CSI driver registration information via CSINode object. They must create simulated
+       * CSINode objects in addition to Node objects during scheduling simulation, otherwise
+       * if PreventPodSchedulingIfMissing is enabled globally for CSIDriver object, any
+       * newly created node may be rejected by the scheduler because of missing CSI driver
+       * information from the node.
+       * This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled.
+       * Default is "false".
+       * +featureGate=VolumeLimitScaling
+       * +optional
+       * 
+ * + * optional bool preventPodSchedulingIfMissing = 11; + */ + public Builder clearPreventPodSchedulingIfMissing() { + bitField0_ = (bitField0_ & ~0x00000400); + preventPodSchedulingIfMissing_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -14249,7 +14489,8 @@ public interface StorageClassOrBuilder extends *
      * provisioner indicates the type of the provisioner.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
      * 
* * optional string provisioner = 2; @@ -14259,7 +14500,8 @@ public interface StorageClassOrBuilder extends *
      * provisioner indicates the type of the provisioner.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
      * 
* * optional string provisioner = 2; @@ -14269,7 +14511,8 @@ public interface StorageClassOrBuilder extends *
      * provisioner indicates the type of the provisioner.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
      * 
* * optional string provisioner = 2; @@ -14282,6 +14525,8 @@ public interface StorageClassOrBuilder extends * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional *
* * map<string, string> parameters = 3; @@ -14292,6 +14537,8 @@ public interface StorageClassOrBuilder extends * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * map<string, string> parameters = 3; @@ -14309,6 +14556,8 @@ boolean containsParameters( * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * map<string, string> parameters = 3; @@ -14320,6 +14569,8 @@ boolean containsParameters( * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * map<string, string> parameters = 3; @@ -14333,6 +14584,8 @@ java.lang.String getParametersOrDefault( * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * map<string, string> parameters = 3; @@ -14346,6 +14599,8 @@ java.lang.String getParametersOrThrow( * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. * Defaults to Delete. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string reclaimPolicy = 4; @@ -14356,6 +14611,8 @@ java.lang.String getParametersOrThrow( * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. * Defaults to Delete. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string reclaimPolicy = 4; @@ -14366,6 +14623,8 @@ java.lang.String getParametersOrThrow( * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. * Defaults to Delete. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string reclaimPolicy = 4; @@ -14449,6 +14708,8 @@ java.lang.String getParametersOrThrow( * provisioned and bound. When unset, VolumeBindingImmediate is used. * This field is only honored by servers that enable the VolumeScheduling feature. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string volumeBindingMode = 7; @@ -14460,6 +14721,8 @@ java.lang.String getParametersOrThrow( * provisioned and bound. When unset, VolumeBindingImmediate is used. * This field is only honored by servers that enable the VolumeScheduling feature. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string volumeBindingMode = 7; @@ -14471,6 +14734,8 @@ java.lang.String getParametersOrThrow( * provisioned and bound. When unset, VolumeBindingImmediate is used. * This field is only honored by servers that enable the VolumeScheduling feature. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string volumeBindingMode = 7; @@ -14762,7 +15027,8 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( *
      * provisioner indicates the type of the provisioner.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
      * 
* * optional string provisioner = 2; @@ -14774,7 +15040,8 @@ public boolean hasProvisioner() { *
      * provisioner indicates the type of the provisioner.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
      * 
* * optional string provisioner = 2; @@ -14797,7 +15064,8 @@ public java.lang.String getProvisioner() { *
      * provisioner indicates the type of the provisioner.
      * +required
-     * +k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
      * 
* * optional string provisioner = 2; @@ -14847,6 +15115,8 @@ public int getParametersCount() { * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * map<string, string> parameters = 3; @@ -14869,6 +15139,8 @@ public java.util.Map getParameters() { * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * map<string, string> parameters = 3; @@ -14882,6 +15154,8 @@ public java.util.Map getParametersMap() { * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * map<string, string> parameters = 3; @@ -14900,6 +15174,8 @@ public java.lang.String getParametersOrDefault( * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * map<string, string> parameters = 3; @@ -14923,6 +15199,8 @@ public java.lang.String getParametersOrThrow( * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. * Defaults to Delete. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string reclaimPolicy = 4; @@ -14935,6 +15213,8 @@ public boolean hasReclaimPolicy() { * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. * Defaults to Delete. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string reclaimPolicy = 4; @@ -14958,6 +15238,8 @@ public java.lang.String getReclaimPolicy() { * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. * Defaults to Delete. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string reclaimPolicy = 4; @@ -15070,6 +15352,8 @@ public boolean getAllowVolumeExpansion() { * provisioned and bound. When unset, VolumeBindingImmediate is used. * This field is only honored by servers that enable the VolumeScheduling feature. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string volumeBindingMode = 7; @@ -15083,6 +15367,8 @@ public boolean hasVolumeBindingMode() { * provisioned and bound. When unset, VolumeBindingImmediate is used. * This field is only honored by servers that enable the VolumeScheduling feature. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string volumeBindingMode = 7; @@ -15107,6 +15393,8 @@ public java.lang.String getVolumeBindingMode() { * provisioned and bound. When unset, VolumeBindingImmediate is used. * This field is only honored by servers that enable the VolumeScheduling feature. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string volumeBindingMode = 7; @@ -15955,7 +16243,8 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( *
        * provisioner indicates the type of the provisioner.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
        * 
* * optional string provisioner = 2; @@ -15967,7 +16256,8 @@ public boolean hasProvisioner() { *
        * provisioner indicates the type of the provisioner.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
        * 
* * optional string provisioner = 2; @@ -15990,7 +16280,8 @@ public java.lang.String getProvisioner() { *
        * provisioner indicates the type of the provisioner.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
        * 
* * optional string provisioner = 2; @@ -16012,7 +16303,8 @@ public java.lang.String getProvisioner() { *
        * provisioner indicates the type of the provisioner.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
        * 
* * optional string provisioner = 2; @@ -16031,7 +16323,8 @@ public Builder setProvisioner( *
        * provisioner indicates the type of the provisioner.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
        * 
* * optional string provisioner = 2; @@ -16046,7 +16339,8 @@ public Builder clearProvisioner() { *
        * provisioner indicates the type of the provisioner.
        * +required
-       * +k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
        * 
* * optional string provisioner = 2; @@ -16093,6 +16387,8 @@ public int getParametersCount() { * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * map<string, string> parameters = 3; @@ -16115,6 +16411,8 @@ public java.util.Map getParameters() { * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * map<string, string> parameters = 3; @@ -16128,6 +16426,8 @@ public java.util.Map getParametersMap() { * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * map<string, string> parameters = 3; @@ -16146,6 +16446,8 @@ public java.lang.String getParametersOrDefault( * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * map<string, string> parameters = 3; @@ -16172,6 +16474,8 @@ public Builder clearParameters() { * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * map<string, string> parameters = 3; @@ -16197,6 +16501,8 @@ public Builder removeParameters( * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * map<string, string> parameters = 3; @@ -16215,6 +16521,8 @@ public Builder putParameters( * parameters holds the parameters for the provisioner that should * create volumes of this storage class. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * map<string, string> parameters = 3; @@ -16233,6 +16541,8 @@ public Builder putAllParameters( * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. * Defaults to Delete. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string reclaimPolicy = 4; @@ -16245,6 +16555,8 @@ public boolean hasReclaimPolicy() { * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. * Defaults to Delete. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string reclaimPolicy = 4; @@ -16268,6 +16580,8 @@ public java.lang.String getReclaimPolicy() { * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. * Defaults to Delete. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string reclaimPolicy = 4; @@ -16290,6 +16604,8 @@ public java.lang.String getReclaimPolicy() { * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. * Defaults to Delete. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string reclaimPolicy = 4; @@ -16309,6 +16625,8 @@ public Builder setReclaimPolicy( * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. * Defaults to Delete. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string reclaimPolicy = 4; @@ -16324,6 +16642,8 @@ public Builder clearReclaimPolicy() { * reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class. * Defaults to Delete. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string reclaimPolicy = 4; @@ -16563,6 +16883,8 @@ public Builder clearAllowVolumeExpansion() { * provisioned and bound. When unset, VolumeBindingImmediate is used. * This field is only honored by servers that enable the VolumeScheduling feature. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string volumeBindingMode = 7; @@ -16576,6 +16898,8 @@ public boolean hasVolumeBindingMode() { * provisioned and bound. When unset, VolumeBindingImmediate is used. * This field is only honored by servers that enable the VolumeScheduling feature. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string volumeBindingMode = 7; @@ -16600,6 +16924,8 @@ public java.lang.String getVolumeBindingMode() { * provisioned and bound. When unset, VolumeBindingImmediate is used. * This field is only honored by servers that enable the VolumeScheduling feature. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string volumeBindingMode = 7; @@ -16623,6 +16949,8 @@ public java.lang.String getVolumeBindingMode() { * provisioned and bound. When unset, VolumeBindingImmediate is used. * This field is only honored by servers that enable the VolumeScheduling feature. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string volumeBindingMode = 7; @@ -16643,6 +16971,8 @@ public Builder setVolumeBindingMode( * provisioned and bound. When unset, VolumeBindingImmediate is used. * This field is only honored by servers that enable the VolumeScheduling feature. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string volumeBindingMode = 7; @@ -16659,6 +16989,8 @@ public Builder clearVolumeBindingMode() { * provisioned and bound. When unset, VolumeBindingImmediate is used. * This field is only honored by servers that enable the VolumeScheduling feature. * +optional + * +k8s:alpha(since: "1.36")=+k8s:immutable + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional string volumeBindingMode = 7; @@ -19148,6 +19480,8 @@ public interface VolumeAttachmentOrBuilder extends *
      * spec represents specification of the desired attach/detach volume behavior.
      * Populated by the Kubernetes system.
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +required
      * 
* * optional .k8s.io.api.storage.v1.VolumeAttachmentSpec spec = 2; @@ -19157,6 +19491,8 @@ public interface VolumeAttachmentOrBuilder extends *
      * spec represents specification of the desired attach/detach volume behavior.
      * Populated by the Kubernetes system.
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +required
      * 
* * optional .k8s.io.api.storage.v1.VolumeAttachmentSpec spec = 2; @@ -19166,6 +19502,8 @@ public interface VolumeAttachmentOrBuilder extends *
      * spec represents specification of the desired attach/detach volume behavior.
      * Populated by the Kubernetes system.
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +required
      * 
* * optional .k8s.io.api.storage.v1.VolumeAttachmentSpec spec = 2; @@ -19368,6 +19706,8 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( *
      * spec represents specification of the desired attach/detach volume behavior.
      * Populated by the Kubernetes system.
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +required
      * 
* * optional .k8s.io.api.storage.v1.VolumeAttachmentSpec spec = 2; @@ -19379,6 +19719,8 @@ public boolean hasSpec() { *
      * spec represents specification of the desired attach/detach volume behavior.
      * Populated by the Kubernetes system.
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +required
      * 
* * optional .k8s.io.api.storage.v1.VolumeAttachmentSpec spec = 2; @@ -19390,6 +19732,8 @@ public io.kubernetes.client.proto.V1Storage.VolumeAttachmentSpec getSpec() { *
      * spec represents specification of the desired attach/detach volume behavior.
      * Populated by the Kubernetes system.
+     * +k8s:alpha(since: "1.36")=+k8s:immutable
+     * +required
      * 
* * optional .k8s.io.api.storage.v1.VolumeAttachmentSpec spec = 2; @@ -20017,6 +20361,8 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( *
        * spec represents specification of the desired attach/detach volume behavior.
        * Populated by the Kubernetes system.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +required
        * 
* * optional .k8s.io.api.storage.v1.VolumeAttachmentSpec spec = 2; @@ -20028,6 +20374,8 @@ public boolean hasSpec() { *
        * spec represents specification of the desired attach/detach volume behavior.
        * Populated by the Kubernetes system.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +required
        * 
* * optional .k8s.io.api.storage.v1.VolumeAttachmentSpec spec = 2; @@ -20043,6 +20391,8 @@ public io.kubernetes.client.proto.V1Storage.VolumeAttachmentSpec getSpec() { *
        * spec represents specification of the desired attach/detach volume behavior.
        * Populated by the Kubernetes system.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +required
        * 
* * optional .k8s.io.api.storage.v1.VolumeAttachmentSpec spec = 2; @@ -20064,6 +20414,8 @@ public Builder setSpec(io.kubernetes.client.proto.V1Storage.VolumeAttachmentSpec *
        * spec represents specification of the desired attach/detach volume behavior.
        * Populated by the Kubernetes system.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +required
        * 
* * optional .k8s.io.api.storage.v1.VolumeAttachmentSpec spec = 2; @@ -20083,6 +20435,8 @@ public Builder setSpec( *
        * spec represents specification of the desired attach/detach volume behavior.
        * Populated by the Kubernetes system.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +required
        * 
* * optional .k8s.io.api.storage.v1.VolumeAttachmentSpec spec = 2; @@ -20108,6 +20462,8 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1Storage.VolumeAttachmentSp *
        * spec represents specification of the desired attach/detach volume behavior.
        * Populated by the Kubernetes system.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +required
        * 
* * optional .k8s.io.api.storage.v1.VolumeAttachmentSpec spec = 2; @@ -20126,6 +20482,8 @@ public Builder clearSpec() { *
        * spec represents specification of the desired attach/detach volume behavior.
        * Populated by the Kubernetes system.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +required
        * 
* * optional .k8s.io.api.storage.v1.VolumeAttachmentSpec spec = 2; @@ -20139,6 +20497,8 @@ public io.kubernetes.client.proto.V1Storage.VolumeAttachmentSpec.Builder getSpec *
        * spec represents specification of the desired attach/detach volume behavior.
        * Populated by the Kubernetes system.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +required
        * 
* * optional .k8s.io.api.storage.v1.VolumeAttachmentSpec spec = 2; @@ -20155,6 +20515,8 @@ public io.kubernetes.client.proto.V1Storage.VolumeAttachmentSpecOrBuilder getSpe *
        * spec represents specification of the desired attach/detach volume behavior.
        * Populated by the Kubernetes system.
+       * +k8s:alpha(since: "1.36")=+k8s:immutable
+       * +required
        * 
* * optional .k8s.io.api.storage.v1.VolumeAttachmentSpec spec = 2; @@ -22614,6 +22976,10 @@ public interface VolumeAttachmentSpecOrBuilder extends *
      * attacher indicates the name of the volume driver that MUST handle this
      * request. This is the name returned by GetPluginName().
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format="k8s-long-name-caseless"
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
      * 
* * optional string attacher = 1; @@ -22623,6 +22989,10 @@ public interface VolumeAttachmentSpecOrBuilder extends *
      * attacher indicates the name of the volume driver that MUST handle this
      * request. This is the name returned by GetPluginName().
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format="k8s-long-name-caseless"
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
      * 
* * optional string attacher = 1; @@ -22632,6 +23002,10 @@ public interface VolumeAttachmentSpecOrBuilder extends *
      * attacher indicates the name of the volume driver that MUST handle this
      * request. This is the name returned by GetPluginName().
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format="k8s-long-name-caseless"
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
      * 
* * optional string attacher = 1; @@ -22799,6 +23173,10 @@ private VolumeAttachmentSpec( *
      * attacher indicates the name of the volume driver that MUST handle this
      * request. This is the name returned by GetPluginName().
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format="k8s-long-name-caseless"
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
      * 
* * optional string attacher = 1; @@ -22810,6 +23188,10 @@ public boolean hasAttacher() { *
      * attacher indicates the name of the volume driver that MUST handle this
      * request. This is the name returned by GetPluginName().
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format="k8s-long-name-caseless"
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
      * 
* * optional string attacher = 1; @@ -22832,6 +23214,10 @@ public java.lang.String getAttacher() { *
      * attacher indicates the name of the volume driver that MUST handle this
      * request. This is the name returned by GetPluginName().
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
+     * +k8s:alpha(since: "1.36")=+k8s:format="k8s-long-name-caseless"
+     * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
      * 
* * optional string attacher = 1; @@ -23322,6 +23708,10 @@ public Builder mergeFrom( *
        * attacher indicates the name of the volume driver that MUST handle this
        * request. This is the name returned by GetPluginName().
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format="k8s-long-name-caseless"
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
        * 
* * optional string attacher = 1; @@ -23333,6 +23723,10 @@ public boolean hasAttacher() { *
        * attacher indicates the name of the volume driver that MUST handle this
        * request. This is the name returned by GetPluginName().
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format="k8s-long-name-caseless"
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
        * 
* * optional string attacher = 1; @@ -23355,6 +23749,10 @@ public java.lang.String getAttacher() { *
        * attacher indicates the name of the volume driver that MUST handle this
        * request. This is the name returned by GetPluginName().
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format="k8s-long-name-caseless"
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
        * 
* * optional string attacher = 1; @@ -23376,6 +23774,10 @@ public java.lang.String getAttacher() { *
        * attacher indicates the name of the volume driver that MUST handle this
        * request. This is the name returned by GetPluginName().
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format="k8s-long-name-caseless"
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
        * 
* * optional string attacher = 1; @@ -23394,6 +23796,10 @@ public Builder setAttacher( *
        * attacher indicates the name of the volume driver that MUST handle this
        * request. This is the name returned by GetPluginName().
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format="k8s-long-name-caseless"
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
        * 
* * optional string attacher = 1; @@ -23408,6 +23814,10 @@ public Builder clearAttacher() { *
        * attacher indicates the name of the volume driver that MUST handle this
        * request. This is the name returned by GetPluginName().
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
+       * +k8s:alpha(since: "1.36")=+k8s:format="k8s-long-name-caseless"
+       * +k8s:alpha(since: "1.36")=+k8s:maxLength=63
        * 
* * optional string attacher = 1; @@ -28105,7 +28515,7 @@ public interface VolumeErrorOrBuilder extends /** *
      * errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.
-     * This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
+     * This field requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
      * +featureGate=MutableCSINodeAllocatableCount
      * +optional
      * 
@@ -28116,7 +28526,7 @@ public interface VolumeErrorOrBuilder extends /** *
      * errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.
-     * This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
+     * This field requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
      * +featureGate=MutableCSINodeAllocatableCount
      * +optional
      * 
@@ -28331,7 +28741,7 @@ public java.lang.String getMessage() { /** *
      * errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.
-     * This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
+     * This field requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
      * +featureGate=MutableCSINodeAllocatableCount
      * +optional
      * 
@@ -28344,7 +28754,7 @@ public boolean hasErrorCode() { /** *
      * errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.
-     * This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
+     * This field requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
      * +featureGate=MutableCSINodeAllocatableCount
      * +optional
      * 
@@ -29019,7 +29429,7 @@ public Builder setMessageBytes( /** *
        * errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.
-       * This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
+       * This field requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
        * +featureGate=MutableCSINodeAllocatableCount
        * +optional
        * 
@@ -29032,7 +29442,7 @@ public boolean hasErrorCode() { /** *
        * errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.
-       * This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
+       * This field requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
        * +featureGate=MutableCSINodeAllocatableCount
        * +optional
        * 
@@ -29045,7 +29455,7 @@ public int getErrorCode() { /** *
        * errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.
-       * This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
+       * This field requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
        * +featureGate=MutableCSINodeAllocatableCount
        * +optional
        * 
@@ -29061,7 +29471,7 @@ public Builder setErrorCode(int value) { /** *
        * errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations.
-       * This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
+       * This field requires the MutableCSINodeAllocatableCount feature gate being enabled to be set.
        * +featureGate=MutableCSINodeAllocatableCount
        * +optional
        * 
@@ -29847,7 +30257,7 @@ public io.kubernetes.client.proto.V1Storage.VolumeNodeResources getDefaultInstan "rSpec\"\202\001\n\rCSIDriverList\022@\n\010metadata\030\001 \001(" + "\0132..k8s.io.apimachinery.pkg.apis.meta.v1" + ".ListMeta\022/\n\005items\030\002 \003(\0132 .k8s.io.api.st" + - "orage.v1.CSIDriver\"\314\002\n\rCSIDriverSpec\022\026\n\016" + + "orage.v1.CSIDriver\"\363\002\n\rCSIDriverSpec\022\026\n\016" + "attachRequired\030\001 \001(\010\022\026\n\016podInfoOnMount\030\002" + " \001(\010\022\034\n\024volumeLifecycleModes\030\003 \003(\t\022\027\n\017st" + "orageCapacity\030\004 \001(\010\022\025\n\rfsGroupPolicy\030\005 \001" + @@ -29855,84 +30265,85 @@ public io.kubernetes.client.proto.V1Storage.VolumeNodeResources getDefaultInstan "torage.v1.TokenRequest\022\031\n\021requiresRepubl" + "ish\030\007 \001(\010\022\024\n\014seLinuxMount\030\010 \001(\010\022*\n\"nodeA" + "llocatableUpdatePeriodSeconds\030\t \001(\003\022$\n\034s" + - "erviceAccountTokenInSecrets\030\n \001(\010\"\177\n\007CSI" + - "Node\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachi" + - "nery.pkg.apis.meta.v1.ObjectMeta\0220\n\004spec" + - "\030\002 \001(\0132\".k8s.io.api.storage.v1.CSINodeSp" + - "ec\"\204\001\n\rCSINodeDriver\022\014\n\004name\030\001 \001(\t\022\016\n\006no" + - "deID\030\002 \001(\t\022\024\n\014topologyKeys\030\003 \003(\t\022?\n\013allo" + - "catable\030\004 \001(\0132*.k8s.io.api.storage.v1.Vo" + - "lumeNodeResources\"~\n\013CSINodeList\022@\n\010meta" + - "data\030\001 \001(\0132..k8s.io.apimachinery.pkg.api" + - "s.meta.v1.ListMeta\022-\n\005items\030\002 \003(\0132\036.k8s." + - "io.api.storage.v1.CSINode\"D\n\013CSINodeSpec" + - "\0225\n\007drivers\030\001 \003(\0132$.k8s.io.api.storage.v" + - "1.CSINodeDriver\"\312\002\n\022CSIStorageCapacity\022B" + - "\n\010metadata\030\001 \001(\01320.k8s.io.apimachinery.p" + - "kg.apis.meta.v1.ObjectMeta\022I\n\014nodeTopolo" + - "gy\030\002 \001(\01323.k8s.io.apimachinery.pkg.apis." + - "meta.v1.LabelSelector\022\030\n\020storageClassNam" + - "e\030\003 \001(\t\022@\n\010capacity\030\004 \001(\0132..k8s.io.apima" + - "chinery.pkg.api.resource.Quantity\022I\n\021max" + - "imumVolumeSize\030\005 \001(\0132..k8s.io.apimachine" + - "ry.pkg.api.resource.Quantity\"\224\001\n\026CSIStor" + - "ageCapacityList\022@\n\010metadata\030\001 \001(\0132..k8s." + + "erviceAccountTokenInSecrets\030\n \001(\010\022%\n\035pre" + + "ventPodSchedulingIfMissing\030\013 \001(\010\"\177\n\007CSIN" + + "ode\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachin" + + "ery.pkg.apis.meta.v1.ObjectMeta\0220\n\004spec\030" + + "\002 \001(\0132\".k8s.io.api.storage.v1.CSINodeSpe" + + "c\"\204\001\n\rCSINodeDriver\022\014\n\004name\030\001 \001(\t\022\016\n\006nod" + + "eID\030\002 \001(\t\022\024\n\014topologyKeys\030\003 \003(\t\022?\n\013alloc" + + "atable\030\004 \001(\0132*.k8s.io.api.storage.v1.Vol" + + "umeNodeResources\"~\n\013CSINodeList\022@\n\010metad" + + "ata\030\001 \001(\0132..k8s.io.apimachinery.pkg.apis" + + ".meta.v1.ListMeta\022-\n\005items\030\002 \003(\0132\036.k8s.i" + + "o.api.storage.v1.CSINode\"D\n\013CSINodeSpec\022" + + "5\n\007drivers\030\001 \003(\0132$.k8s.io.api.storage.v1" + + ".CSINodeDriver\"\312\002\n\022CSIStorageCapacity\022B\n" + + "\010metadata\030\001 \001(\01320.k8s.io.apimachinery.pk" + + "g.apis.meta.v1.ObjectMeta\022I\n\014nodeTopolog" + + "y\030\002 \001(\01323.k8s.io.apimachinery.pkg.apis.m" + + "eta.v1.LabelSelector\022\030\n\020storageClassName" + + "\030\003 \001(\t\022@\n\010capacity\030\004 \001(\0132..k8s.io.apimac" + + "hinery.pkg.api.resource.Quantity\022I\n\021maxi" + + "mumVolumeSize\030\005 \001(\0132..k8s.io.apimachiner" + + "y.pkg.api.resource.Quantity\"\224\001\n\026CSIStora" + + "geCapacityList\022@\n\010metadata\030\001 \001(\0132..k8s.i" + + "o.apimachinery.pkg.apis.meta.v1.ListMeta" + + "\0228\n\005items\030\002 \003(\0132).k8s.io.api.storage.v1." + + "CSIStorageCapacity\"\216\003\n\014StorageClass\022B\n\010m" + + "etadata\030\001 \001(\01320.k8s.io.apimachinery.pkg." + + "apis.meta.v1.ObjectMeta\022\023\n\013provisioner\030\002" + + " \001(\t\022G\n\nparameters\030\003 \003(\01323.k8s.io.api.st" + + "orage.v1.StorageClass.ParametersEntry\022\025\n" + + "\rreclaimPolicy\030\004 \001(\t\022\024\n\014mountOptions\030\005 \003" + + "(\t\022\034\n\024allowVolumeExpansion\030\006 \001(\010\022\031\n\021volu" + + "meBindingMode\030\007 \001(\t\022C\n\021allowedTopologies" + + "\030\010 \003(\0132(.k8s.io.api.core.v1.TopologySele" + + "ctorTerm\0321\n\017ParametersEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\210\001\n\020StorageClassList" + + "\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimachinery" + + ".pkg.apis.meta.v1.ListMeta\0222\n\005items\030\002 \003(" + + "\0132#.k8s.io.api.storage.v1.StorageClass\";" + + "\n\014TokenRequest\022\020\n\010audience\030\001 \001(\t\022\031\n\021expi" + + "rationSeconds\030\002 \001(\003\"\320\001\n\020VolumeAttachment" + + "\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachinery" + + ".pkg.apis.meta.v1.ObjectMeta\0229\n\004spec\030\002 \001" + + "(\0132+.k8s.io.api.storage.v1.VolumeAttachm" + + "entSpec\022=\n\006status\030\003 \001(\0132-.k8s.io.api.sto" + + "rage.v1.VolumeAttachmentStatus\"\220\001\n\024Volum" + + "eAttachmentList\022@\n\010metadata\030\001 \001(\0132..k8s." + "io.apimachinery.pkg.apis.meta.v1.ListMet" + - "a\0228\n\005items\030\002 \003(\0132).k8s.io.api.storage.v1" + - ".CSIStorageCapacity\"\216\003\n\014StorageClass\022B\n\010" + - "metadata\030\001 \001(\01320.k8s.io.apimachinery.pkg" + - ".apis.meta.v1.ObjectMeta\022\023\n\013provisioner\030" + - "\002 \001(\t\022G\n\nparameters\030\003 \003(\01323.k8s.io.api.s" + - "torage.v1.StorageClass.ParametersEntry\022\025" + - "\n\rreclaimPolicy\030\004 \001(\t\022\024\n\014mountOptions\030\005 " + - "\003(\t\022\034\n\024allowVolumeExpansion\030\006 \001(\010\022\031\n\021vol" + - "umeBindingMode\030\007 \001(\t\022C\n\021allowedTopologie" + - "s\030\010 \003(\0132(.k8s.io.api.core.v1.TopologySel" + - "ectorTerm\0321\n\017ParametersEntry\022\013\n\003key\030\001 \001(" + - "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\210\001\n\020StorageClassLis" + - "t\022@\n\010metadata\030\001 \001(\0132..k8s.io.apimachiner" + - "y.pkg.apis.meta.v1.ListMeta\0222\n\005items\030\002 \003" + - "(\0132#.k8s.io.api.storage.v1.StorageClass\"" + - ";\n\014TokenRequest\022\020\n\010audience\030\001 \001(\t\022\031\n\021exp" + - "irationSeconds\030\002 \001(\003\"\320\001\n\020VolumeAttachmen" + - "t\022B\n\010metadata\030\001 \001(\01320.k8s.io.apimachiner" + - "y.pkg.apis.meta.v1.ObjectMeta\0229\n\004spec\030\002 " + - "\001(\0132+.k8s.io.api.storage.v1.VolumeAttach" + - "mentSpec\022=\n\006status\030\003 \001(\0132-.k8s.io.api.st" + - "orage.v1.VolumeAttachmentStatus\"\220\001\n\024Volu" + - "meAttachmentList\022@\n\010metadata\030\001 \001(\0132..k8s" + - ".io.apimachinery.pkg.apis.meta.v1.ListMe" + - "ta\0226\n\005items\030\002 \003(\0132\'.k8s.io.api.storage.v" + - "1.VolumeAttachment\"z\n\026VolumeAttachmentSo" + - "urce\022\034\n\024persistentVolumeName\030\001 \001(\t\022B\n\020in" + - "lineVolumeSpec\030\002 \001(\0132(.k8s.io.api.core.v" + - "1.PersistentVolumeSpec\"y\n\024VolumeAttachme" + - "ntSpec\022\020\n\010attacher\030\001 \001(\t\022=\n\006source\030\002 \001(\013" + - "2-.k8s.io.api.storage.v1.VolumeAttachmen" + - "tSource\022\020\n\010nodeName\030\003 \001(\t\"\272\002\n\026VolumeAtta" + - "chmentStatus\022\020\n\010attached\030\001 \001(\010\022a\n\022attach" + - "mentMetadata\030\002 \003(\0132E.k8s.io.api.storage." + - "v1.VolumeAttachmentStatus.AttachmentMeta" + - "dataEntry\0227\n\013attachError\030\003 \001(\0132\".k8s.io." + - "api.storage.v1.VolumeError\0227\n\013detachErro" + - "r\030\004 \001(\0132\".k8s.io.api.storage.v1.VolumeEr" + - "ror\0329\n\027AttachmentMetadataEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\364\001\n\025VolumeAttribu" + - "tesClass\022B\n\010metadata\030\001 \001(\01320.k8s.io.apim" + - "achinery.pkg.apis.meta.v1.ObjectMeta\022\022\n\n" + - "driverName\030\002 \001(\t\022P\n\nparameters\030\003 \003(\0132<.k" + - "8s.io.api.storage.v1.VolumeAttributesCla" + - "ss.ParametersEntry\0321\n\017ParametersEntry\022\013\n" + - "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\232\001\n\031Volume" + - "AttributesClassList\022@\n\010metadata\030\001 \001(\0132.." + - "k8s.io.apimachinery.pkg.apis.meta.v1.Lis" + - "tMeta\022;\n\005items\030\002 \003(\0132,.k8s.io.api.storag" + - "e.v1.VolumeAttributesClass\"k\n\013VolumeErro" + - "r\0228\n\004time\030\001 \001(\0132*.k8s.io.apimachinery.pk" + - "g.apis.meta.v1.Time\022\017\n\007message\030\002 \001(\t\022\021\n\t" + - "errorCode\030\003 \001(\005\"$\n\023VolumeNodeResources\022\r" + - "\n\005count\030\001 \001(\005B>\n\032io.kubernetes.client.pr" + - "otoB\tV1StorageZ\025k8s.io/api/storage/v1" + "a\0226\n\005items\030\002 \003(\0132\'.k8s.io.api.storage.v1" + + ".VolumeAttachment\"z\n\026VolumeAttachmentSou" + + "rce\022\034\n\024persistentVolumeName\030\001 \001(\t\022B\n\020inl" + + "ineVolumeSpec\030\002 \001(\0132(.k8s.io.api.core.v1" + + ".PersistentVolumeSpec\"y\n\024VolumeAttachmen" + + "tSpec\022\020\n\010attacher\030\001 \001(\t\022=\n\006source\030\002 \001(\0132" + + "-.k8s.io.api.storage.v1.VolumeAttachment" + + "Source\022\020\n\010nodeName\030\003 \001(\t\"\272\002\n\026VolumeAttac" + + "hmentStatus\022\020\n\010attached\030\001 \001(\010\022a\n\022attachm" + + "entMetadata\030\002 \003(\0132E.k8s.io.api.storage.v" + + "1.VolumeAttachmentStatus.AttachmentMetad" + + "ataEntry\0227\n\013attachError\030\003 \001(\0132\".k8s.io.a" + + "pi.storage.v1.VolumeError\0227\n\013detachError" + + "\030\004 \001(\0132\".k8s.io.api.storage.v1.VolumeErr" + + "or\0329\n\027AttachmentMetadataEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\364\001\n\025VolumeAttribut" + + "esClass\022B\n\010metadata\030\001 \001(\01320.k8s.io.apima" + + "chinery.pkg.apis.meta.v1.ObjectMeta\022\022\n\nd" + + "riverName\030\002 \001(\t\022P\n\nparameters\030\003 \003(\0132<.k8" + + "s.io.api.storage.v1.VolumeAttributesClas" + + "s.ParametersEntry\0321\n\017ParametersEntry\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\232\001\n\031VolumeA" + + "ttributesClassList\022@\n\010metadata\030\001 \001(\0132..k" + + "8s.io.apimachinery.pkg.apis.meta.v1.List" + + "Meta\022;\n\005items\030\002 \003(\0132,.k8s.io.api.storage" + + ".v1.VolumeAttributesClass\"k\n\013VolumeError" + + "\0228\n\004time\030\001 \001(\0132*.k8s.io.apimachinery.pkg" + + ".apis.meta.v1.Time\022\017\n\007message\030\002 \001(\t\022\021\n\te" + + "rrorCode\030\003 \001(\005\"$\n\023VolumeNodeResources\022\r\n" + + "\005count\030\001 \001(\005B>\n\032io.kubernetes.client.pro" + + "toB\tV1StorageZ\025k8s.io/api/storage/v1" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -29968,7 +30379,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_storage_v1_CSIDriverSpec_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_storage_v1_CSIDriverSpec_descriptor, - new java.lang.String[] { "AttachRequired", "PodInfoOnMount", "VolumeLifecycleModes", "StorageCapacity", "FsGroupPolicy", "TokenRequests", "RequiresRepublish", "SeLinuxMount", "NodeAllocatableUpdatePeriodSeconds", "ServiceAccountTokenInSecrets", }); + new java.lang.String[] { "AttachRequired", "PodInfoOnMount", "VolumeLifecycleModes", "StorageCapacity", "FsGroupPolicy", "TokenRequests", "RequiresRepublish", "SeLinuxMount", "NodeAllocatableUpdatePeriodSeconds", "ServiceAccountTokenInSecrets", "PreventPodSchedulingIfMissing", }); internal_static_k8s_io_api_storage_v1_CSINode_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_k8s_io_api_storage_v1_CSINode_fieldAccessorTable = new diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1alpha1Apiserverinternal.java b/proto/src/main/java/io/kubernetes/client/proto/V1alpha1Apiserverinternal.java new file mode 100644 index 0000000000..f26de03958 --- /dev/null +++ b/proto/src/main/java/io/kubernetes/client/proto/V1alpha1Apiserverinternal.java @@ -0,0 +1,8117 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: k8s.io/api/apiserverinternal/v1alpha1/generated.proto + +package io.kubernetes.client.proto; + +public final class V1alpha1Apiserverinternal { + private V1alpha1Apiserverinternal() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface ServerStorageVersionOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * apiServerID is the ID of the reporting API server.
+     * +required
+     * 
+ * + * optional string apiServerID = 1; + */ + boolean hasApiServerID(); + /** + *
+     * apiServerID is the ID of the reporting API server.
+     * +required
+     * 
+ * + * optional string apiServerID = 1; + */ + java.lang.String getApiServerID(); + /** + *
+     * apiServerID is the ID of the reporting API server.
+     * +required
+     * 
+ * + * optional string apiServerID = 1; + */ + com.google.protobuf.ByteString + getApiServerIDBytes(); + + /** + *
+     * encodingVersion the API server encodes the object to when persisting it in
+     * the backend (e.g., etcd).
+     * +required
+     * 
+ * + * optional string encodingVersion = 2; + */ + boolean hasEncodingVersion(); + /** + *
+     * encodingVersion the API server encodes the object to when persisting it in
+     * the backend (e.g., etcd).
+     * +required
+     * 
+ * + * optional string encodingVersion = 2; + */ + java.lang.String getEncodingVersion(); + /** + *
+     * encodingVersion the API server encodes the object to when persisting it in
+     * the backend (e.g., etcd).
+     * +required
+     * 
+ * + * optional string encodingVersion = 2; + */ + com.google.protobuf.ByteString + getEncodingVersionBytes(); + + /** + *
+     * decodableVersions are the encoding versions the API server can handle to decode.
+     * The API server can decode objects encoded in these versions.
+     * The encodingVersion must be included in the decodableVersions.
+     * +listType=set
+     * +required
+     * 
+ * + * repeated string decodableVersions = 3; + */ + java.util.List + getDecodableVersionsList(); + /** + *
+     * decodableVersions are the encoding versions the API server can handle to decode.
+     * The API server can decode objects encoded in these versions.
+     * The encodingVersion must be included in the decodableVersions.
+     * +listType=set
+     * +required
+     * 
+ * + * repeated string decodableVersions = 3; + */ + int getDecodableVersionsCount(); + /** + *
+     * decodableVersions are the encoding versions the API server can handle to decode.
+     * The API server can decode objects encoded in these versions.
+     * The encodingVersion must be included in the decodableVersions.
+     * +listType=set
+     * +required
+     * 
+ * + * repeated string decodableVersions = 3; + */ + java.lang.String getDecodableVersions(int index); + /** + *
+     * decodableVersions are the encoding versions the API server can handle to decode.
+     * The API server can decode objects encoded in these versions.
+     * The encodingVersion must be included in the decodableVersions.
+     * +listType=set
+     * +required
+     * 
+ * + * repeated string decodableVersions = 3; + */ + com.google.protobuf.ByteString + getDecodableVersionsBytes(int index); + + /** + *
+     * servedVersions lists all versions the API server can serve.
+     * DecodableVersions must include all ServedVersions.
+     * +listType=set
+     * +optional
+     * 
+ * + * repeated string servedVersions = 4; + */ + java.util.List + getServedVersionsList(); + /** + *
+     * servedVersions lists all versions the API server can serve.
+     * DecodableVersions must include all ServedVersions.
+     * +listType=set
+     * +optional
+     * 
+ * + * repeated string servedVersions = 4; + */ + int getServedVersionsCount(); + /** + *
+     * servedVersions lists all versions the API server can serve.
+     * DecodableVersions must include all ServedVersions.
+     * +listType=set
+     * +optional
+     * 
+ * + * repeated string servedVersions = 4; + */ + java.lang.String getServedVersions(int index); + /** + *
+     * servedVersions lists all versions the API server can serve.
+     * DecodableVersions must include all ServedVersions.
+     * +listType=set
+     * +optional
+     * 
+ * + * repeated string servedVersions = 4; + */ + com.google.protobuf.ByteString + getServedVersionsBytes(int index); + } + /** + *
+   * An API server instance reports the version it can decode and the version it
+   * encodes objects to when persisting objects in the backend.
+   * 
+ * + * Protobuf type {@code k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion} + */ + public static final class ServerStorageVersion extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion) + ServerStorageVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ServerStorageVersion.newBuilder() to construct. + private ServerStorageVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ServerStorageVersion() { + apiServerID_ = ""; + encodingVersion_ = ""; + decodableVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + servedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ServerStorageVersion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + apiServerID_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + encodingVersion_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + decodableVersions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + decodableVersions_.add(bs); + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + servedVersions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + servedVersions_.add(bs); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + decodableVersions_ = decodableVersions_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + servedVersions_ = servedVersions_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_ServerStorageVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_ServerStorageVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.class, io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.Builder.class); + } + + private int bitField0_; + public static final int APISERVERID_FIELD_NUMBER = 1; + private volatile java.lang.Object apiServerID_; + /** + *
+     * apiServerID is the ID of the reporting API server.
+     * +required
+     * 
+ * + * optional string apiServerID = 1; + */ + public boolean hasApiServerID() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * apiServerID is the ID of the reporting API server.
+     * +required
+     * 
+ * + * optional string apiServerID = 1; + */ + public java.lang.String getApiServerID() { + java.lang.Object ref = apiServerID_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + apiServerID_ = s; + } + return s; + } + } + /** + *
+     * apiServerID is the ID of the reporting API server.
+     * +required
+     * 
+ * + * optional string apiServerID = 1; + */ + public com.google.protobuf.ByteString + getApiServerIDBytes() { + java.lang.Object ref = apiServerID_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + apiServerID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENCODINGVERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object encodingVersion_; + /** + *
+     * encodingVersion the API server encodes the object to when persisting it in
+     * the backend (e.g., etcd).
+     * +required
+     * 
+ * + * optional string encodingVersion = 2; + */ + public boolean hasEncodingVersion() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * encodingVersion the API server encodes the object to when persisting it in
+     * the backend (e.g., etcd).
+     * +required
+     * 
+ * + * optional string encodingVersion = 2; + */ + public java.lang.String getEncodingVersion() { + java.lang.Object ref = encodingVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + encodingVersion_ = s; + } + return s; + } + } + /** + *
+     * encodingVersion the API server encodes the object to when persisting it in
+     * the backend (e.g., etcd).
+     * +required
+     * 
+ * + * optional string encodingVersion = 2; + */ + public com.google.protobuf.ByteString + getEncodingVersionBytes() { + java.lang.Object ref = encodingVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + encodingVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DECODABLEVERSIONS_FIELD_NUMBER = 3; + private com.google.protobuf.LazyStringList decodableVersions_; + /** + *
+     * decodableVersions are the encoding versions the API server can handle to decode.
+     * The API server can decode objects encoded in these versions.
+     * The encodingVersion must be included in the decodableVersions.
+     * +listType=set
+     * +required
+     * 
+ * + * repeated string decodableVersions = 3; + */ + public com.google.protobuf.ProtocolStringList + getDecodableVersionsList() { + return decodableVersions_; + } + /** + *
+     * decodableVersions are the encoding versions the API server can handle to decode.
+     * The API server can decode objects encoded in these versions.
+     * The encodingVersion must be included in the decodableVersions.
+     * +listType=set
+     * +required
+     * 
+ * + * repeated string decodableVersions = 3; + */ + public int getDecodableVersionsCount() { + return decodableVersions_.size(); + } + /** + *
+     * decodableVersions are the encoding versions the API server can handle to decode.
+     * The API server can decode objects encoded in these versions.
+     * The encodingVersion must be included in the decodableVersions.
+     * +listType=set
+     * +required
+     * 
+ * + * repeated string decodableVersions = 3; + */ + public java.lang.String getDecodableVersions(int index) { + return decodableVersions_.get(index); + } + /** + *
+     * decodableVersions are the encoding versions the API server can handle to decode.
+     * The API server can decode objects encoded in these versions.
+     * The encodingVersion must be included in the decodableVersions.
+     * +listType=set
+     * +required
+     * 
+ * + * repeated string decodableVersions = 3; + */ + public com.google.protobuf.ByteString + getDecodableVersionsBytes(int index) { + return decodableVersions_.getByteString(index); + } + + public static final int SERVEDVERSIONS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList servedVersions_; + /** + *
+     * servedVersions lists all versions the API server can serve.
+     * DecodableVersions must include all ServedVersions.
+     * +listType=set
+     * +optional
+     * 
+ * + * repeated string servedVersions = 4; + */ + public com.google.protobuf.ProtocolStringList + getServedVersionsList() { + return servedVersions_; + } + /** + *
+     * servedVersions lists all versions the API server can serve.
+     * DecodableVersions must include all ServedVersions.
+     * +listType=set
+     * +optional
+     * 
+ * + * repeated string servedVersions = 4; + */ + public int getServedVersionsCount() { + return servedVersions_.size(); + } + /** + *
+     * servedVersions lists all versions the API server can serve.
+     * DecodableVersions must include all ServedVersions.
+     * +listType=set
+     * +optional
+     * 
+ * + * repeated string servedVersions = 4; + */ + public java.lang.String getServedVersions(int index) { + return servedVersions_.get(index); + } + /** + *
+     * servedVersions lists all versions the API server can serve.
+     * DecodableVersions must include all ServedVersions.
+     * +listType=set
+     * +optional
+     * 
+ * + * repeated string servedVersions = 4; + */ + public com.google.protobuf.ByteString + getServedVersionsBytes(int index) { + return servedVersions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiServerID_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, encodingVersion_); + } + for (int i = 0; i < decodableVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, decodableVersions_.getRaw(i)); + } + for (int i = 0; i < servedVersions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, servedVersions_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiServerID_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, encodingVersion_); + } + { + int dataSize = 0; + for (int i = 0; i < decodableVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(decodableVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getDecodableVersionsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < servedVersions_.size(); i++) { + dataSize += computeStringSizeNoTag(servedVersions_.getRaw(i)); + } + size += dataSize; + size += 1 * getServedVersionsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion other = (io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion) obj; + + boolean result = true; + result = result && (hasApiServerID() == other.hasApiServerID()); + if (hasApiServerID()) { + result = result && getApiServerID() + .equals(other.getApiServerID()); + } + result = result && (hasEncodingVersion() == other.hasEncodingVersion()); + if (hasEncodingVersion()) { + result = result && getEncodingVersion() + .equals(other.getEncodingVersion()); + } + result = result && getDecodableVersionsList() + .equals(other.getDecodableVersionsList()); + result = result && getServedVersionsList() + .equals(other.getServedVersionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasApiServerID()) { + hash = (37 * hash) + APISERVERID_FIELD_NUMBER; + hash = (53 * hash) + getApiServerID().hashCode(); + } + if (hasEncodingVersion()) { + hash = (37 * hash) + ENCODINGVERSION_FIELD_NUMBER; + hash = (53 * hash) + getEncodingVersion().hashCode(); + } + if (getDecodableVersionsCount() > 0) { + hash = (37 * hash) + DECODABLEVERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getDecodableVersionsList().hashCode(); + } + if (getServedVersionsCount() > 0) { + hash = (37 * hash) + SERVEDVERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getServedVersionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * An API server instance reports the version it can decode and the version it
+     * encodes objects to when persisting objects in the backend.
+     * 
+ * + * Protobuf type {@code k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion) + io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_ServerStorageVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_ServerStorageVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.class, io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + apiServerID_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + encodingVersion_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + decodableVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + servedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_ServerStorageVersion_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion build() { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion buildPartial() { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion result = new io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.apiServerID_ = apiServerID_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.encodingVersion_ = encodingVersion_; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + decodableVersions_ = decodableVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.decodableVersions_ = decodableVersions_; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + servedVersions_ = servedVersions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.servedVersions_ = servedVersions_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion) { + return mergeFrom((io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion other) { + if (other == io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.getDefaultInstance()) return this; + if (other.hasApiServerID()) { + bitField0_ |= 0x00000001; + apiServerID_ = other.apiServerID_; + onChanged(); + } + if (other.hasEncodingVersion()) { + bitField0_ |= 0x00000002; + encodingVersion_ = other.encodingVersion_; + onChanged(); + } + if (!other.decodableVersions_.isEmpty()) { + if (decodableVersions_.isEmpty()) { + decodableVersions_ = other.decodableVersions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDecodableVersionsIsMutable(); + decodableVersions_.addAll(other.decodableVersions_); + } + onChanged(); + } + if (!other.servedVersions_.isEmpty()) { + if (servedVersions_.isEmpty()) { + servedVersions_ = other.servedVersions_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureServedVersionsIsMutable(); + servedVersions_.addAll(other.servedVersions_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object apiServerID_ = ""; + /** + *
+       * apiServerID is the ID of the reporting API server.
+       * +required
+       * 
+ * + * optional string apiServerID = 1; + */ + public boolean hasApiServerID() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * apiServerID is the ID of the reporting API server.
+       * +required
+       * 
+ * + * optional string apiServerID = 1; + */ + public java.lang.String getApiServerID() { + java.lang.Object ref = apiServerID_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + apiServerID_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * apiServerID is the ID of the reporting API server.
+       * +required
+       * 
+ * + * optional string apiServerID = 1; + */ + public com.google.protobuf.ByteString + getApiServerIDBytes() { + java.lang.Object ref = apiServerID_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + apiServerID_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * apiServerID is the ID of the reporting API server.
+       * +required
+       * 
+ * + * optional string apiServerID = 1; + */ + public Builder setApiServerID( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + apiServerID_ = value; + onChanged(); + return this; + } + /** + *
+       * apiServerID is the ID of the reporting API server.
+       * +required
+       * 
+ * + * optional string apiServerID = 1; + */ + public Builder clearApiServerID() { + bitField0_ = (bitField0_ & ~0x00000001); + apiServerID_ = getDefaultInstance().getApiServerID(); + onChanged(); + return this; + } + /** + *
+       * apiServerID is the ID of the reporting API server.
+       * +required
+       * 
+ * + * optional string apiServerID = 1; + */ + public Builder setApiServerIDBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + apiServerID_ = value; + onChanged(); + return this; + } + + private java.lang.Object encodingVersion_ = ""; + /** + *
+       * encodingVersion the API server encodes the object to when persisting it in
+       * the backend (e.g., etcd).
+       * +required
+       * 
+ * + * optional string encodingVersion = 2; + */ + public boolean hasEncodingVersion() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * encodingVersion the API server encodes the object to when persisting it in
+       * the backend (e.g., etcd).
+       * +required
+       * 
+ * + * optional string encodingVersion = 2; + */ + public java.lang.String getEncodingVersion() { + java.lang.Object ref = encodingVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + encodingVersion_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * encodingVersion the API server encodes the object to when persisting it in
+       * the backend (e.g., etcd).
+       * +required
+       * 
+ * + * optional string encodingVersion = 2; + */ + public com.google.protobuf.ByteString + getEncodingVersionBytes() { + java.lang.Object ref = encodingVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + encodingVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * encodingVersion the API server encodes the object to when persisting it in
+       * the backend (e.g., etcd).
+       * +required
+       * 
+ * + * optional string encodingVersion = 2; + */ + public Builder setEncodingVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + encodingVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * encodingVersion the API server encodes the object to when persisting it in
+       * the backend (e.g., etcd).
+       * +required
+       * 
+ * + * optional string encodingVersion = 2; + */ + public Builder clearEncodingVersion() { + bitField0_ = (bitField0_ & ~0x00000002); + encodingVersion_ = getDefaultInstance().getEncodingVersion(); + onChanged(); + return this; + } + /** + *
+       * encodingVersion the API server encodes the object to when persisting it in
+       * the backend (e.g., etcd).
+       * +required
+       * 
+ * + * optional string encodingVersion = 2; + */ + public Builder setEncodingVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + encodingVersion_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList decodableVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureDecodableVersionsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + decodableVersions_ = new com.google.protobuf.LazyStringArrayList(decodableVersions_); + bitField0_ |= 0x00000004; + } + } + /** + *
+       * decodableVersions are the encoding versions the API server can handle to decode.
+       * The API server can decode objects encoded in these versions.
+       * The encodingVersion must be included in the decodableVersions.
+       * +listType=set
+       * +required
+       * 
+ * + * repeated string decodableVersions = 3; + */ + public com.google.protobuf.ProtocolStringList + getDecodableVersionsList() { + return decodableVersions_.getUnmodifiableView(); + } + /** + *
+       * decodableVersions are the encoding versions the API server can handle to decode.
+       * The API server can decode objects encoded in these versions.
+       * The encodingVersion must be included in the decodableVersions.
+       * +listType=set
+       * +required
+       * 
+ * + * repeated string decodableVersions = 3; + */ + public int getDecodableVersionsCount() { + return decodableVersions_.size(); + } + /** + *
+       * decodableVersions are the encoding versions the API server can handle to decode.
+       * The API server can decode objects encoded in these versions.
+       * The encodingVersion must be included in the decodableVersions.
+       * +listType=set
+       * +required
+       * 
+ * + * repeated string decodableVersions = 3; + */ + public java.lang.String getDecodableVersions(int index) { + return decodableVersions_.get(index); + } + /** + *
+       * decodableVersions are the encoding versions the API server can handle to decode.
+       * The API server can decode objects encoded in these versions.
+       * The encodingVersion must be included in the decodableVersions.
+       * +listType=set
+       * +required
+       * 
+ * + * repeated string decodableVersions = 3; + */ + public com.google.protobuf.ByteString + getDecodableVersionsBytes(int index) { + return decodableVersions_.getByteString(index); + } + /** + *
+       * decodableVersions are the encoding versions the API server can handle to decode.
+       * The API server can decode objects encoded in these versions.
+       * The encodingVersion must be included in the decodableVersions.
+       * +listType=set
+       * +required
+       * 
+ * + * repeated string decodableVersions = 3; + */ + public Builder setDecodableVersions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDecodableVersionsIsMutable(); + decodableVersions_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * decodableVersions are the encoding versions the API server can handle to decode.
+       * The API server can decode objects encoded in these versions.
+       * The encodingVersion must be included in the decodableVersions.
+       * +listType=set
+       * +required
+       * 
+ * + * repeated string decodableVersions = 3; + */ + public Builder addDecodableVersions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDecodableVersionsIsMutable(); + decodableVersions_.add(value); + onChanged(); + return this; + } + /** + *
+       * decodableVersions are the encoding versions the API server can handle to decode.
+       * The API server can decode objects encoded in these versions.
+       * The encodingVersion must be included in the decodableVersions.
+       * +listType=set
+       * +required
+       * 
+ * + * repeated string decodableVersions = 3; + */ + public Builder addAllDecodableVersions( + java.lang.Iterable values) { + ensureDecodableVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, decodableVersions_); + onChanged(); + return this; + } + /** + *
+       * decodableVersions are the encoding versions the API server can handle to decode.
+       * The API server can decode objects encoded in these versions.
+       * The encodingVersion must be included in the decodableVersions.
+       * +listType=set
+       * +required
+       * 
+ * + * repeated string decodableVersions = 3; + */ + public Builder clearDecodableVersions() { + decodableVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+       * decodableVersions are the encoding versions the API server can handle to decode.
+       * The API server can decode objects encoded in these versions.
+       * The encodingVersion must be included in the decodableVersions.
+       * +listType=set
+       * +required
+       * 
+ * + * repeated string decodableVersions = 3; + */ + public Builder addDecodableVersionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDecodableVersionsIsMutable(); + decodableVersions_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList servedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureServedVersionsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + servedVersions_ = new com.google.protobuf.LazyStringArrayList(servedVersions_); + bitField0_ |= 0x00000008; + } + } + /** + *
+       * servedVersions lists all versions the API server can serve.
+       * DecodableVersions must include all ServedVersions.
+       * +listType=set
+       * +optional
+       * 
+ * + * repeated string servedVersions = 4; + */ + public com.google.protobuf.ProtocolStringList + getServedVersionsList() { + return servedVersions_.getUnmodifiableView(); + } + /** + *
+       * servedVersions lists all versions the API server can serve.
+       * DecodableVersions must include all ServedVersions.
+       * +listType=set
+       * +optional
+       * 
+ * + * repeated string servedVersions = 4; + */ + public int getServedVersionsCount() { + return servedVersions_.size(); + } + /** + *
+       * servedVersions lists all versions the API server can serve.
+       * DecodableVersions must include all ServedVersions.
+       * +listType=set
+       * +optional
+       * 
+ * + * repeated string servedVersions = 4; + */ + public java.lang.String getServedVersions(int index) { + return servedVersions_.get(index); + } + /** + *
+       * servedVersions lists all versions the API server can serve.
+       * DecodableVersions must include all ServedVersions.
+       * +listType=set
+       * +optional
+       * 
+ * + * repeated string servedVersions = 4; + */ + public com.google.protobuf.ByteString + getServedVersionsBytes(int index) { + return servedVersions_.getByteString(index); + } + /** + *
+       * servedVersions lists all versions the API server can serve.
+       * DecodableVersions must include all ServedVersions.
+       * +listType=set
+       * +optional
+       * 
+ * + * repeated string servedVersions = 4; + */ + public Builder setServedVersions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServedVersionsIsMutable(); + servedVersions_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * servedVersions lists all versions the API server can serve.
+       * DecodableVersions must include all ServedVersions.
+       * +listType=set
+       * +optional
+       * 
+ * + * repeated string servedVersions = 4; + */ + public Builder addServedVersions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServedVersionsIsMutable(); + servedVersions_.add(value); + onChanged(); + return this; + } + /** + *
+       * servedVersions lists all versions the API server can serve.
+       * DecodableVersions must include all ServedVersions.
+       * +listType=set
+       * +optional
+       * 
+ * + * repeated string servedVersions = 4; + */ + public Builder addAllServedVersions( + java.lang.Iterable values) { + ensureServedVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, servedVersions_); + onChanged(); + return this; + } + /** + *
+       * servedVersions lists all versions the API server can serve.
+       * DecodableVersions must include all ServedVersions.
+       * +listType=set
+       * +optional
+       * 
+ * + * repeated string servedVersions = 4; + */ + public Builder clearServedVersions() { + servedVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * servedVersions lists all versions the API server can serve.
+       * DecodableVersions must include all ServedVersions.
+       * +listType=set
+       * +optional
+       * 
+ * + * repeated string servedVersions = 4; + */ + public Builder addServedVersionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureServedVersionsIsMutable(); + servedVersions_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion) + private static final io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion(); + } + + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ServerStorageVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ServerStorageVersion(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StorageVersionOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apiserverinternal.v1alpha1.StorageVersion) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * metadata is the standard object metadata.
+     * The name is <group>.<resource>.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * metadata is the standard object metadata.
+     * The name is <group>.<resource>.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * metadata is the standard object metadata.
+     * The name is <group>.<resource>.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * spec is an empty spec. It is here to comply with Kubernetes API style.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * spec is an empty spec. It is here to comply with Kubernetes API style.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec spec = 2; + */ + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec getSpec(); + /** + *
+     * spec is an empty spec. It is here to comply with Kubernetes API style.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec spec = 2; + */ + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * status on the version the API server instance can decode from and
+     * encode objects to when persisting objects in the backend.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus status = 3; + */ + boolean hasStatus(); + /** + *
+     * status on the version the API server instance can decode from and
+     * encode objects to when persisting objects in the backend.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus status = 3; + */ + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus getStatus(); + /** + *
+     * status on the version the API server instance can decode from and
+     * encode objects to when persisting objects in the backend.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus status = 3; + */ + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatusOrBuilder getStatusOrBuilder(); + } + /** + *
+   * Storage version of a specific resource.
+   * +k8s:supportsSubresource="/status"
+   * 
+ * + * Protobuf type {@code k8s.io.api.apiserverinternal.v1alpha1.StorageVersion} + */ + public static final class StorageVersion extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apiserverinternal.v1alpha1.StorageVersion) + StorageVersionOrBuilder { + private static final long serialVersionUID = 0L; + // Use StorageVersion.newBuilder() to construct. + private StorageVersion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StorageVersion() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StorageVersion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.class, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * metadata is the standard object metadata.
+     * The name is <group>.<resource>.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * metadata is the standard object metadata.
+     * The name is <group>.<resource>.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * metadata is the standard object metadata.
+     * The name is <group>.<resource>.
+     * +required
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int SPEC_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec spec_; + /** + *
+     * spec is an empty spec. It is here to comply with Kubernetes API style.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * spec is an empty spec. It is here to comply with Kubernetes API style.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec spec = 2; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec getSpec() { + return spec_ == null ? io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.getDefaultInstance() : spec_; + } + /** + *
+     * spec is an empty spec. It is here to comply with Kubernetes API style.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec spec = 2; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpecOrBuilder getSpecOrBuilder() { + return spec_ == null ? io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.getDefaultInstance() : spec_; + } + + public static final int STATUS_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus status_; + /** + *
+     * status on the version the API server instance can decode from and
+     * encode objects to when persisting objects in the backend.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus status = 3; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * status on the version the API server instance can decode from and
+     * encode objects to when persisting objects in the backend.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus status = 3; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus getStatus() { + return status_ == null ? io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.getDefaultInstance() : status_; + } + /** + *
+     * status on the version the API server instance can decode from and
+     * encode objects to when persisting objects in the backend.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus status = 3; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatusOrBuilder getStatusOrBuilder() { + return status_ == null ? io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.getDefaultInstance() : status_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getSpec()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getStatus()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStatus()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion other = (io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && (hasStatus() == other.hasStatus()); + if (hasStatus()) { + result = result && getStatus() + .equals(other.getStatus()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Storage version of a specific resource.
+     * +k8s:supportsSubresource="/status"
+     * 
+ * + * Protobuf type {@code k8s.io.api.apiserverinternal.v1alpha1.StorageVersion} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apiserverinternal.v1alpha1.StorageVersion) + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.class, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getSpecFieldBuilder(); + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (specBuilder_ == null) { + spec_ = null; + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (statusBuilder_ == null) { + status_ = null; + } else { + statusBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersion_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion build() { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion buildPartial() { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion result = new io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion) { + return mergeFrom((io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion other) { + if (other == io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * metadata is the standard object metadata.
+       * The name is <group>.<resource>.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * metadata is the standard object metadata.
+       * The name is <group>.<resource>.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * metadata is the standard object metadata.
+       * The name is <group>.<resource>.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is the standard object metadata.
+       * The name is <group>.<resource>.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is the standard object metadata.
+       * The name is <group>.<resource>.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is the standard object metadata.
+       * The name is <group>.<resource>.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * metadata is the standard object metadata.
+       * The name is <group>.<resource>.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * metadata is the standard object metadata.
+       * The name is <group>.<resource>.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * metadata is the standard object metadata.
+       * The name is <group>.<resource>.
+       * +required
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.Builder, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpecOrBuilder> specBuilder_; + /** + *
+       * spec is an empty spec. It is here to comply with Kubernetes API style.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * spec is an empty spec. It is here to comply with Kubernetes API style.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec spec = 2; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * spec is an empty spec. It is here to comply with Kubernetes API style.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec spec = 2; + */ + public Builder setSpec(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * spec is an empty spec. It is here to comply with Kubernetes API style.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec spec = 2; + */ + public Builder setSpec( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * spec is an empty spec. It is here to comply with Kubernetes API style.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec spec = 2; + */ + public Builder mergeSpec(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + spec_ != null && + spec_ != io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.getDefaultInstance()) { + spec_ = + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * spec is an empty spec. It is here to comply with Kubernetes API style.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * spec is an empty spec. It is here to comply with Kubernetes API style.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec spec = 2; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * spec is an empty spec. It is here to comply with Kubernetes API style.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec spec = 2; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * spec is an empty spec. It is here to comply with Kubernetes API style.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.Builder, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.Builder, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus status_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.Builder, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatusOrBuilder> statusBuilder_; + /** + *
+       * status on the version the API server instance can decode from and
+       * encode objects to when persisting objects in the backend.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus status = 3; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * status on the version the API server instance can decode from and
+       * encode objects to when persisting objects in the backend.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus status = 3; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+       * status on the version the API server instance can decode from and
+       * encode objects to when persisting objects in the backend.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus status = 3; + */ + public Builder setStatus(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * status on the version the API server instance can decode from and
+       * encode objects to when persisting objects in the backend.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus status = 3; + */ + public Builder setStatus( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * status on the version the API server instance can decode from and
+       * encode objects to when persisting objects in the backend.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus status = 3; + */ + public Builder mergeStatus(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + status_ != null && + status_ != io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.getDefaultInstance()) { + status_ = + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * status on the version the API server instance can decode from and
+       * encode objects to when persisting objects in the backend.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus status = 3; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + statusBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * status on the version the API server instance can decode from and
+       * encode objects to when persisting objects in the backend.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus status = 3; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.Builder getStatusBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+       * status on the version the API server instance can decode from and
+       * encode objects to when persisting objects in the backend.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus status = 3; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.getDefaultInstance() : status_; + } + } + /** + *
+       * status on the version the API server instance can decode from and
+       * encode objects to when persisting objects in the backend.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus status = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.Builder, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.Builder, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apiserverinternal.v1alpha1.StorageVersion) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apiserverinternal.v1alpha1.StorageVersion) + private static final io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion(); + } + + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageVersion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageVersion(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StorageVersionConditionOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * type of the condition.
+     * +required
+     * 
+ * + * optional string type = 1; + */ + boolean hasType(); + /** + *
+     * type of the condition.
+     * +required
+     * 
+ * + * optional string type = 1; + */ + java.lang.String getType(); + /** + *
+     * type of the condition.
+     * +required
+     * 
+ * + * optional string type = 1; + */ + com.google.protobuf.ByteString + getTypeBytes(); + + /** + *
+     * status of the condition, one of True, False, Unknown.
+     * +required
+     * 
+ * + * optional string status = 2; + */ + boolean hasStatus(); + /** + *
+     * status of the condition, one of True, False, Unknown.
+     * +required
+     * 
+ * + * optional string status = 2; + */ + java.lang.String getStatus(); + /** + *
+     * status of the condition, one of True, False, Unknown.
+     * +required
+     * 
+ * + * optional string status = 2; + */ + com.google.protobuf.ByteString + getStatusBytes(); + + /** + *
+     * observedGeneration represents the .metadata.generation that the condition was set based upon, if field is set.
+     * +optional
+     * 
+ * + * optional int64 observedGeneration = 3; + */ + boolean hasObservedGeneration(); + /** + *
+     * observedGeneration represents the .metadata.generation that the condition was set based upon, if field is set.
+     * +optional
+     * 
+ * + * optional int64 observedGeneration = 3; + */ + long getObservedGeneration(); + + /** + *
+     * lastTransitionTime is the last time the condition transitioned from one status to another.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + boolean hasLastTransitionTime(); + /** + *
+     * lastTransitionTime is the last time the condition transitioned from one status to another.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + io.kubernetes.client.proto.Meta.Time getLastTransitionTime(); + /** + *
+     * lastTransitionTime is the last time the condition transitioned from one status to another.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder(); + + /** + *
+     * reason for the condition's last transition.
+     * +required
+     * 
+ * + * optional string reason = 5; + */ + boolean hasReason(); + /** + *
+     * reason for the condition's last transition.
+     * +required
+     * 
+ * + * optional string reason = 5; + */ + java.lang.String getReason(); + /** + *
+     * reason for the condition's last transition.
+     * +required
+     * 
+ * + * optional string reason = 5; + */ + com.google.protobuf.ByteString + getReasonBytes(); + + /** + *
+     * message is a human readable string indicating details about the transition.
+     * +required
+     * 
+ * + * optional string message = 6; + */ + boolean hasMessage(); + /** + *
+     * message is a human readable string indicating details about the transition.
+     * +required
+     * 
+ * + * optional string message = 6; + */ + java.lang.String getMessage(); + /** + *
+     * message is a human readable string indicating details about the transition.
+     * +required
+     * 
+ * + * optional string message = 6; + */ + com.google.protobuf.ByteString + getMessageBytes(); + } + /** + *
+   * Describes the state of the storageVersion at a certain point.
+   * 
+ * + * Protobuf type {@code k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition} + */ + public static final class StorageVersionCondition extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition) + StorageVersionConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use StorageVersionCondition.newBuilder() to construct. + private StorageVersionCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StorageVersionCondition() { + type_ = ""; + status_ = ""; + observedGeneration_ = 0L; + reason_ = ""; + message_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StorageVersionCondition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + type_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + status_ = bs; + break; + } + case 24: { + bitField0_ |= 0x00000004; + observedGeneration_ = input.readInt64(); + break; + } + case 34: { + io.kubernetes.client.proto.Meta.Time.Builder subBuilder = null; + if (((bitField0_ & 0x00000008) == 0x00000008)) { + subBuilder = lastTransitionTime_.toBuilder(); + } + lastTransitionTime_ = input.readMessage(io.kubernetes.client.proto.Meta.Time.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(lastTransitionTime_); + lastTransitionTime_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000008; + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000010; + reason_ = bs; + break; + } + case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000020; + message_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.class, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.Builder.class); + } + + private int bitField0_; + public static final int TYPE_FIELD_NUMBER = 1; + private volatile java.lang.Object type_; + /** + *
+     * type of the condition.
+     * +required
+     * 
+ * + * optional string type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * type of the condition.
+     * +required
+     * 
+ * + * optional string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } + } + /** + *
+     * type of the condition.
+     * +required
+     * 
+ * + * optional string type = 1; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private volatile java.lang.Object status_; + /** + *
+     * status of the condition, one of True, False, Unknown.
+     * +required
+     * 
+ * + * optional string status = 2; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * status of the condition, one of True, False, Unknown.
+     * +required
+     * 
+ * + * optional string status = 2; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + status_ = s; + } + return s; + } + } + /** + *
+     * status of the condition, one of True, False, Unknown.
+     * +required
+     * 
+ * + * optional string status = 2; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OBSERVEDGENERATION_FIELD_NUMBER = 3; + private long observedGeneration_; + /** + *
+     * observedGeneration represents the .metadata.generation that the condition was set based upon, if field is set.
+     * +optional
+     * 
+ * + * optional int64 observedGeneration = 3; + */ + public boolean hasObservedGeneration() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * observedGeneration represents the .metadata.generation that the condition was set based upon, if field is set.
+     * +optional
+     * 
+ * + * optional int64 observedGeneration = 3; + */ + public long getObservedGeneration() { + return observedGeneration_; + } + + public static final int LASTTRANSITIONTIME_FIELD_NUMBER = 4; + private io.kubernetes.client.proto.Meta.Time lastTransitionTime_; + /** + *
+     * lastTransitionTime is the last time the condition transitioned from one status to another.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public boolean hasLastTransitionTime() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * lastTransitionTime is the last time the condition transitioned from one status to another.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { + return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + } + /** + *
+     * lastTransitionTime is the last time the condition transitioned from one status to another.
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { + return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + } + + public static final int REASON_FIELD_NUMBER = 5; + private volatile java.lang.Object reason_; + /** + *
+     * reason for the condition's last transition.
+     * +required
+     * 
+ * + * optional string reason = 5; + */ + public boolean hasReason() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+     * reason for the condition's last transition.
+     * +required
+     * 
+ * + * optional string reason = 5; + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + reason_ = s; + } + return s; + } + } + /** + *
+     * reason for the condition's last transition.
+     * +required
+     * 
+ * + * optional string reason = 5; + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 6; + private volatile java.lang.Object message_; + /** + *
+     * message is a human readable string indicating details about the transition.
+     * +required
+     * 
+ * + * optional string message = 6; + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+     * message is a human readable string indicating details about the transition.
+     * +required
+     * 
+ * + * optional string message = 6; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + message_ = s; + } + return s; + } + } + /** + *
+     * message is a human readable string indicating details about the transition.
+     * +required
+     * 
+ * + * optional string message = 6; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, type_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, status_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeInt64(3, observedGeneration_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + output.writeMessage(4, getLastTransitionTime()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, reason_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, message_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, type_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, observedGeneration_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getLastTransitionTime()); + } + if (((bitField0_ & 0x00000010) == 0x00000010)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, reason_); + } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, message_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition other = (io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition) obj; + + boolean result = true; + result = result && (hasType() == other.hasType()); + if (hasType()) { + result = result && getType() + .equals(other.getType()); + } + result = result && (hasStatus() == other.hasStatus()); + if (hasStatus()) { + result = result && getStatus() + .equals(other.getStatus()); + } + result = result && (hasObservedGeneration() == other.hasObservedGeneration()); + if (hasObservedGeneration()) { + result = result && (getObservedGeneration() + == other.getObservedGeneration()); + } + result = result && (hasLastTransitionTime() == other.hasLastTransitionTime()); + if (hasLastTransitionTime()) { + result = result && getLastTransitionTime() + .equals(other.getLastTransitionTime()); + } + result = result && (hasReason() == other.hasReason()); + if (hasReason()) { + result = result && getReason() + .equals(other.getReason()); + } + result = result && (hasMessage() == other.hasMessage()); + if (hasMessage()) { + result = result && getMessage() + .equals(other.getMessage()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + if (hasObservedGeneration()) { + hash = (37 * hash) + OBSERVEDGENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getObservedGeneration()); + } + if (hasLastTransitionTime()) { + hash = (37 * hash) + LASTTRANSITIONTIME_FIELD_NUMBER; + hash = (53 * hash) + getLastTransitionTime().hashCode(); + } + if (hasReason()) { + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + } + if (hasMessage()) { + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Describes the state of the storageVersion at a certain point.
+     * 
+ * + * Protobuf type {@code k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition) + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.class, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getLastTransitionTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + type_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + status_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + observedGeneration_ = 0L; + bitField0_ = (bitField0_ & ~0x00000004); + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTime_ = null; + } else { + lastTransitionTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + reason_ = ""; + bitField0_ = (bitField0_ & ~0x00000010); + message_ = ""; + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionCondition_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition build() { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition buildPartial() { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition result = new io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.type_ = type_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.status_ = status_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.observedGeneration_ = observedGeneration_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + if (lastTransitionTimeBuilder_ == null) { + result.lastTransitionTime_ = lastTransitionTime_; + } else { + result.lastTransitionTime_ = lastTransitionTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) == 0x00000010)) { + to_bitField0_ |= 0x00000010; + } + result.reason_ = reason_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.message_ = message_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition) { + return mergeFrom((io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition other) { + if (other == io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.getDefaultInstance()) return this; + if (other.hasType()) { + bitField0_ |= 0x00000001; + type_ = other.type_; + onChanged(); + } + if (other.hasStatus()) { + bitField0_ |= 0x00000002; + status_ = other.status_; + onChanged(); + } + if (other.hasObservedGeneration()) { + setObservedGeneration(other.getObservedGeneration()); + } + if (other.hasLastTransitionTime()) { + mergeLastTransitionTime(other.getLastTransitionTime()); + } + if (other.hasReason()) { + bitField0_ |= 0x00000010; + reason_ = other.reason_; + onChanged(); + } + if (other.hasMessage()) { + bitField0_ |= 0x00000020; + message_ = other.message_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object type_ = ""; + /** + *
+       * type of the condition.
+       * +required
+       * 
+ * + * optional string type = 1; + */ + public boolean hasType() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * type of the condition.
+       * +required
+       * 
+ * + * optional string type = 1; + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + type_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * type of the condition.
+       * +required
+       * 
+ * + * optional string type = 1; + */ + public com.google.protobuf.ByteString + getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * type of the condition.
+       * +required
+       * 
+ * + * optional string type = 1; + */ + public Builder setType( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + /** + *
+       * type of the condition.
+       * +required
+       * 
+ * + * optional string type = 1; + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = getDefaultInstance().getType(); + onChanged(); + return this; + } + /** + *
+       * type of the condition.
+       * +required
+       * 
+ * + * optional string type = 1; + */ + public Builder setTypeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + /** + *
+       * status of the condition, one of True, False, Unknown.
+       * +required
+       * 
+ * + * optional string status = 2; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * status of the condition, one of True, False, Unknown.
+       * +required
+       * 
+ * + * optional string status = 2; + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + status_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * status of the condition, one of True, False, Unknown.
+       * +required
+       * 
+ * + * optional string status = 2; + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * status of the condition, one of True, False, Unknown.
+       * +required
+       * 
+ * + * optional string status = 2; + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + status_ = value; + onChanged(); + return this; + } + /** + *
+       * status of the condition, one of True, False, Unknown.
+       * +required
+       * 
+ * + * optional string status = 2; + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + status_ = getDefaultInstance().getStatus(); + onChanged(); + return this; + } + /** + *
+       * status of the condition, one of True, False, Unknown.
+       * +required
+       * 
+ * + * optional string status = 2; + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + status_ = value; + onChanged(); + return this; + } + + private long observedGeneration_ ; + /** + *
+       * observedGeneration represents the .metadata.generation that the condition was set based upon, if field is set.
+       * +optional
+       * 
+ * + * optional int64 observedGeneration = 3; + */ + public boolean hasObservedGeneration() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * observedGeneration represents the .metadata.generation that the condition was set based upon, if field is set.
+       * +optional
+       * 
+ * + * optional int64 observedGeneration = 3; + */ + public long getObservedGeneration() { + return observedGeneration_; + } + /** + *
+       * observedGeneration represents the .metadata.generation that the condition was set based upon, if field is set.
+       * +optional
+       * 
+ * + * optional int64 observedGeneration = 3; + */ + public Builder setObservedGeneration(long value) { + bitField0_ |= 0x00000004; + observedGeneration_ = value; + onChanged(); + return this; + } + /** + *
+       * observedGeneration represents the .metadata.generation that the condition was set based upon, if field is set.
+       * +optional
+       * 
+ * + * optional int64 observedGeneration = 3; + */ + public Builder clearObservedGeneration() { + bitField0_ = (bitField0_ & ~0x00000004); + observedGeneration_ = 0L; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.Meta.Time lastTransitionTime_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> lastTransitionTimeBuilder_; + /** + *
+       * lastTransitionTime is the last time the condition transitioned from one status to another.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public boolean hasLastTransitionTime() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * lastTransitionTime is the last time the condition transitioned from one status to another.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public io.kubernetes.client.proto.Meta.Time getLastTransitionTime() { + if (lastTransitionTimeBuilder_ == null) { + return lastTransitionTime_ == null ? io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + } else { + return lastTransitionTimeBuilder_.getMessage(); + } + } + /** + *
+       * lastTransitionTime is the last time the condition transitioned from one status to another.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public Builder setLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { + if (lastTransitionTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastTransitionTime_ = value; + onChanged(); + } else { + lastTransitionTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * lastTransitionTime is the last time the condition transitioned from one status to another.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public Builder setLastTransitionTime( + io.kubernetes.client.proto.Meta.Time.Builder builderForValue) { + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTime_ = builderForValue.build(); + onChanged(); + } else { + lastTransitionTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * lastTransitionTime is the last time the condition transitioned from one status to another.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public Builder mergeLastTransitionTime(io.kubernetes.client.proto.Meta.Time value) { + if (lastTransitionTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) == 0x00000008) && + lastTransitionTime_ != null && + lastTransitionTime_ != io.kubernetes.client.proto.Meta.Time.getDefaultInstance()) { + lastTransitionTime_ = + io.kubernetes.client.proto.Meta.Time.newBuilder(lastTransitionTime_).mergeFrom(value).buildPartial(); + } else { + lastTransitionTime_ = value; + } + onChanged(); + } else { + lastTransitionTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + return this; + } + /** + *
+       * lastTransitionTime is the last time the condition transitioned from one status to another.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public Builder clearLastTransitionTime() { + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTime_ = null; + onChanged(); + } else { + lastTransitionTimeBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + /** + *
+       * lastTransitionTime is the last time the condition transitioned from one status to another.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public io.kubernetes.client.proto.Meta.Time.Builder getLastTransitionTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getLastTransitionTimeFieldBuilder().getBuilder(); + } + /** + *
+       * lastTransitionTime is the last time the condition transitioned from one status to another.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + public io.kubernetes.client.proto.Meta.TimeOrBuilder getLastTransitionTimeOrBuilder() { + if (lastTransitionTimeBuilder_ != null) { + return lastTransitionTimeBuilder_.getMessageOrBuilder(); + } else { + return lastTransitionTime_ == null ? + io.kubernetes.client.proto.Meta.Time.getDefaultInstance() : lastTransitionTime_; + } + } + /** + *
+       * lastTransitionTime is the last time the condition transitioned from one status to another.
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder> + getLastTransitionTimeFieldBuilder() { + if (lastTransitionTimeBuilder_ == null) { + lastTransitionTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.Time, io.kubernetes.client.proto.Meta.Time.Builder, io.kubernetes.client.proto.Meta.TimeOrBuilder>( + getLastTransitionTime(), + getParentForChildren(), + isClean()); + lastTransitionTime_ = null; + } + return lastTransitionTimeBuilder_; + } + + private java.lang.Object reason_ = ""; + /** + *
+       * reason for the condition's last transition.
+       * +required
+       * 
+ * + * optional string reason = 5; + */ + public boolean hasReason() { + return ((bitField0_ & 0x00000010) == 0x00000010); + } + /** + *
+       * reason for the condition's last transition.
+       * +required
+       * 
+ * + * optional string reason = 5; + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + reason_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * reason for the condition's last transition.
+       * +required
+       * 
+ * + * optional string reason = 5; + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * reason for the condition's last transition.
+       * +required
+       * 
+ * + * optional string reason = 5; + */ + public Builder setReason( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + reason_ = value; + onChanged(); + return this; + } + /** + *
+       * reason for the condition's last transition.
+       * +required
+       * 
+ * + * optional string reason = 5; + */ + public Builder clearReason() { + bitField0_ = (bitField0_ & ~0x00000010); + reason_ = getDefaultInstance().getReason(); + onChanged(); + return this; + } + /** + *
+       * reason for the condition's last transition.
+       * +required
+       * 
+ * + * optional string reason = 5; + */ + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + reason_ = value; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + /** + *
+       * message is a human readable string indicating details about the transition.
+       * +required
+       * 
+ * + * optional string message = 6; + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+       * message is a human readable string indicating details about the transition.
+       * +required
+       * 
+ * + * optional string message = 6; + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + message_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * message is a human readable string indicating details about the transition.
+       * +required
+       * 
+ * + * optional string message = 6; + */ + public com.google.protobuf.ByteString + getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * message is a human readable string indicating details about the transition.
+       * +required
+       * 
+ * + * optional string message = 6; + */ + public Builder setMessage( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + message_ = value; + onChanged(); + return this; + } + /** + *
+       * message is a human readable string indicating details about the transition.
+       * +required
+       * 
+ * + * optional string message = 6; + */ + public Builder clearMessage() { + bitField0_ = (bitField0_ & ~0x00000020); + message_ = getDefaultInstance().getMessage(); + onChanged(); + return this; + } + /** + *
+       * message is a human readable string indicating details about the transition.
+       * +required
+       * 
+ * + * optional string message = 6; + */ + public Builder setMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + message_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition) + private static final io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition(); + } + + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageVersionCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageVersionCondition(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StorageVersionListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Items holds a list of StorageVersion
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * Items holds a list of StorageVersion
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion getItems(int index); + /** + *
+     * Items holds a list of StorageVersion
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + int getItemsCount(); + /** + *
+     * Items holds a list of StorageVersion
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * Items holds a list of StorageVersion
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * A list of StorageVersions.
+   * 
+ * + * Protobuf type {@code k8s.io.api.apiserverinternal.v1alpha1.StorageVersionList} + */ + public static final class StorageVersionList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionList) + StorageVersionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use StorageVersionList.newBuilder() to construct. + private StorageVersionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StorageVersionList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StorageVersionList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList.class, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard list metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * Items holds a list of StorageVersion
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * Items holds a list of StorageVersion
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * Items holds a list of StorageVersion
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * Items holds a list of StorageVersion
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion getItems(int index) { + return items_.get(index); + } + /** + *
+     * Items holds a list of StorageVersion
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList other = (io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * A list of StorageVersions.
+     * 
+ * + * Protobuf type {@code k8s.io.api.apiserverinternal.v1alpha1.StorageVersionList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionList) + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList.class, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList build() { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList buildPartial() { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList result = new io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList) { + return mergeFrom((io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList other) { + if (other == io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard list metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.Builder, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionOrBuilder> itemsBuilder_; + + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.getDefaultInstance()); + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.getDefaultInstance()); + } + /** + *
+       * Items holds a list of StorageVersion
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersion items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.Builder, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersion.Builder, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionList) + private static final io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList(); + } + + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageVersionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageVersionList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StorageVersionSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * StorageVersionSpec is an empty spec.
+   * 
+ * + * Protobuf type {@code k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec} + */ + public static final class StorageVersionSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec) + StorageVersionSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use StorageVersionSpec.newBuilder() to construct. + private StorageVersionSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StorageVersionSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StorageVersionSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.class, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec other = (io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * StorageVersionSpec is an empty spec.
+     * 
+ * + * Protobuf type {@code k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec) + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.class, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionSpec_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec build() { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec buildPartial() { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec result = new io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec) { + return mergeFrom((io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec other) { + if (other == io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionSpec) + private static final io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec(); + } + + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageVersionSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageVersionSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StorageVersionStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * storageVersions lists the reported versions per API server instance.
+     * +optional
+     * +listType=map
+     * +listMapKey=apiServerID
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + java.util.List + getStorageVersionsList(); + /** + *
+     * storageVersions lists the reported versions per API server instance.
+     * +optional
+     * +listType=map
+     * +listMapKey=apiServerID
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion getStorageVersions(int index); + /** + *
+     * storageVersions lists the reported versions per API server instance.
+     * +optional
+     * +listType=map
+     * +listMapKey=apiServerID
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + int getStorageVersionsCount(); + /** + *
+     * storageVersions lists the reported versions per API server instance.
+     * +optional
+     * +listType=map
+     * +listMapKey=apiServerID
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + java.util.List + getStorageVersionsOrBuilderList(); + /** + *
+     * storageVersions lists the reported versions per API server instance.
+     * +optional
+     * +listType=map
+     * +listMapKey=apiServerID
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersionOrBuilder getStorageVersionsOrBuilder( + int index); + + /** + *
+     * commonEncodingVersion is set to an encoding storage version if all API server
+     * instances share that same version. If they don't share one storage version, this
+     * field is left empty.
+     * API servers should finish updating its storageVersionStatus entry before
+     * serving write operations, so that this field will be in sync with the reality.
+     * +optional
+     * 
+ * + * optional string commonEncodingVersion = 2; + */ + boolean hasCommonEncodingVersion(); + /** + *
+     * commonEncodingVersion is set to an encoding storage version if all API server
+     * instances share that same version. If they don't share one storage version, this
+     * field is left empty.
+     * API servers should finish updating its storageVersionStatus entry before
+     * serving write operations, so that this field will be in sync with the reality.
+     * +optional
+     * 
+ * + * optional string commonEncodingVersion = 2; + */ + java.lang.String getCommonEncodingVersion(); + /** + *
+     * commonEncodingVersion is set to an encoding storage version if all API server
+     * instances share that same version. If they don't share one storage version, this
+     * field is left empty.
+     * API servers should finish updating its storageVersionStatus entry before
+     * serving write operations, so that this field will be in sync with the reality.
+     * +optional
+     * 
+ * + * optional string commonEncodingVersion = 2; + */ + com.google.protobuf.ByteString + getCommonEncodingVersionBytes(); + + /** + *
+     * conditions lists the latest available observations of the storageVersion's state.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + java.util.List + getConditionsList(); + /** + *
+     * conditions lists the latest available observations of the storageVersion's state.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition getConditions(int index); + /** + *
+     * conditions lists the latest available observations of the storageVersion's state.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + int getConditionsCount(); + /** + *
+     * conditions lists the latest available observations of the storageVersion's state.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+     * conditions lists the latest available observations of the storageVersion's state.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionConditionOrBuilder getConditionsOrBuilder( + int index); + } + /** + *
+   * API server instances report the versions they can decode and the version they
+   * encode objects to when persisting objects in the backend.
+   * 
+ * + * Protobuf type {@code k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus} + */ + public static final class StorageVersionStatus extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus) + StorageVersionStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use StorageVersionStatus.newBuilder() to construct. + private StorageVersionStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StorageVersionStatus() { + storageVersions_ = java.util.Collections.emptyList(); + commonEncodingVersion_ = ""; + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StorageVersionStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + storageVersions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + storageVersions_.add( + input.readMessage(io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.PARSER, extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + commonEncodingVersion_ = bs; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + conditions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + conditions_.add( + input.readMessage(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + storageVersions_ = java.util.Collections.unmodifiableList(storageVersions_); + } + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.class, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.Builder.class); + } + + private int bitField0_; + public static final int STORAGEVERSIONS_FIELD_NUMBER = 1; + private java.util.List storageVersions_; + /** + *
+     * storageVersions lists the reported versions per API server instance.
+     * +optional
+     * +listType=map
+     * +listMapKey=apiServerID
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public java.util.List getStorageVersionsList() { + return storageVersions_; + } + /** + *
+     * storageVersions lists the reported versions per API server instance.
+     * +optional
+     * +listType=map
+     * +listMapKey=apiServerID
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public java.util.List + getStorageVersionsOrBuilderList() { + return storageVersions_; + } + /** + *
+     * storageVersions lists the reported versions per API server instance.
+     * +optional
+     * +listType=map
+     * +listMapKey=apiServerID
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public int getStorageVersionsCount() { + return storageVersions_.size(); + } + /** + *
+     * storageVersions lists the reported versions per API server instance.
+     * +optional
+     * +listType=map
+     * +listMapKey=apiServerID
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion getStorageVersions(int index) { + return storageVersions_.get(index); + } + /** + *
+     * storageVersions lists the reported versions per API server instance.
+     * +optional
+     * +listType=map
+     * +listMapKey=apiServerID
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersionOrBuilder getStorageVersionsOrBuilder( + int index) { + return storageVersions_.get(index); + } + + public static final int COMMONENCODINGVERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object commonEncodingVersion_; + /** + *
+     * commonEncodingVersion is set to an encoding storage version if all API server
+     * instances share that same version. If they don't share one storage version, this
+     * field is left empty.
+     * API servers should finish updating its storageVersionStatus entry before
+     * serving write operations, so that this field will be in sync with the reality.
+     * +optional
+     * 
+ * + * optional string commonEncodingVersion = 2; + */ + public boolean hasCommonEncodingVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * commonEncodingVersion is set to an encoding storage version if all API server
+     * instances share that same version. If they don't share one storage version, this
+     * field is left empty.
+     * API servers should finish updating its storageVersionStatus entry before
+     * serving write operations, so that this field will be in sync with the reality.
+     * +optional
+     * 
+ * + * optional string commonEncodingVersion = 2; + */ + public java.lang.String getCommonEncodingVersion() { + java.lang.Object ref = commonEncodingVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + commonEncodingVersion_ = s; + } + return s; + } + } + /** + *
+     * commonEncodingVersion is set to an encoding storage version if all API server
+     * instances share that same version. If they don't share one storage version, this
+     * field is left empty.
+     * API servers should finish updating its storageVersionStatus entry before
+     * serving write operations, so that this field will be in sync with the reality.
+     * +optional
+     * 
+ * + * optional string commonEncodingVersion = 2; + */ + public com.google.protobuf.ByteString + getCommonEncodingVersionBytes() { + java.lang.Object ref = commonEncodingVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + commonEncodingVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONDITIONS_FIELD_NUMBER = 3; + private java.util.List conditions_; + /** + *
+     * conditions lists the latest available observations of the storageVersion's state.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+     * conditions lists the latest available observations of the storageVersion's state.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+     * conditions lists the latest available observations of the storageVersion's state.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+     * conditions lists the latest available observations of the storageVersion's state.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition getConditions(int index) { + return conditions_.get(index); + } + /** + *
+     * conditions lists the latest available observations of the storageVersion's state.
+     * +optional
+     * +listType=map
+     * +listMapKey=type
+     * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionConditionOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < storageVersions_.size(); i++) { + output.writeMessage(1, storageVersions_.get(i)); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commonEncodingVersion_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(3, conditions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < storageVersions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, storageVersions_.get(i)); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commonEncodingVersion_); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, conditions_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus other = (io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus) obj; + + boolean result = true; + result = result && getStorageVersionsList() + .equals(other.getStorageVersionsList()); + result = result && (hasCommonEncodingVersion() == other.hasCommonEncodingVersion()); + if (hasCommonEncodingVersion()) { + result = result && getCommonEncodingVersion() + .equals(other.getCommonEncodingVersion()); + } + result = result && getConditionsList() + .equals(other.getConditionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getStorageVersionsCount() > 0) { + hash = (37 * hash) + STORAGEVERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getStorageVersionsList().hashCode(); + } + if (hasCommonEncodingVersion()) { + hash = (37 * hash) + COMMONENCODINGVERSION_FIELD_NUMBER; + hash = (53 * hash) + getCommonEncodingVersion().hashCode(); + } + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * API server instances report the versions they can decode and the version they
+     * encode objects to when persisting objects in the backend.
+     * 
+ * + * Protobuf type {@code k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus) + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.class, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStorageVersionsFieldBuilder(); + getConditionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (storageVersionsBuilder_ == null) { + storageVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + storageVersionsBuilder_.clear(); + } + commonEncodingVersion_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + conditionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionStatus_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus build() { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus buildPartial() { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus result = new io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (storageVersionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + storageVersions_ = java.util.Collections.unmodifiableList(storageVersions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.storageVersions_ = storageVersions_; + } else { + result.storageVersions_ = storageVersionsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000001; + } + result.commonEncodingVersion_ = commonEncodingVersion_; + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus) { + return mergeFrom((io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus other) { + if (other == io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus.getDefaultInstance()) return this; + if (storageVersionsBuilder_ == null) { + if (!other.storageVersions_.isEmpty()) { + if (storageVersions_.isEmpty()) { + storageVersions_ = other.storageVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStorageVersionsIsMutable(); + storageVersions_.addAll(other.storageVersions_); + } + onChanged(); + } + } else { + if (!other.storageVersions_.isEmpty()) { + if (storageVersionsBuilder_.isEmpty()) { + storageVersionsBuilder_.dispose(); + storageVersionsBuilder_ = null; + storageVersions_ = other.storageVersions_; + bitField0_ = (bitField0_ & ~0x00000001); + storageVersionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStorageVersionsFieldBuilder() : null; + } else { + storageVersionsBuilder_.addAllMessages(other.storageVersions_); + } + } + } + if (other.hasCommonEncodingVersion()) { + bitField0_ |= 0x00000002; + commonEncodingVersion_ = other.commonEncodingVersion_; + onChanged(); + } + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000004); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List storageVersions_ = + java.util.Collections.emptyList(); + private void ensureStorageVersionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + storageVersions_ = new java.util.ArrayList(storageVersions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion, io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.Builder, io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersionOrBuilder> storageVersionsBuilder_; + + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public java.util.List getStorageVersionsList() { + if (storageVersionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(storageVersions_); + } else { + return storageVersionsBuilder_.getMessageList(); + } + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public int getStorageVersionsCount() { + if (storageVersionsBuilder_ == null) { + return storageVersions_.size(); + } else { + return storageVersionsBuilder_.getCount(); + } + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion getStorageVersions(int index) { + if (storageVersionsBuilder_ == null) { + return storageVersions_.get(index); + } else { + return storageVersionsBuilder_.getMessage(index); + } + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public Builder setStorageVersions( + int index, io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion value) { + if (storageVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStorageVersionsIsMutable(); + storageVersions_.set(index, value); + onChanged(); + } else { + storageVersionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public Builder setStorageVersions( + int index, io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.Builder builderForValue) { + if (storageVersionsBuilder_ == null) { + ensureStorageVersionsIsMutable(); + storageVersions_.set(index, builderForValue.build()); + onChanged(); + } else { + storageVersionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public Builder addStorageVersions(io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion value) { + if (storageVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStorageVersionsIsMutable(); + storageVersions_.add(value); + onChanged(); + } else { + storageVersionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public Builder addStorageVersions( + int index, io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion value) { + if (storageVersionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStorageVersionsIsMutable(); + storageVersions_.add(index, value); + onChanged(); + } else { + storageVersionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public Builder addStorageVersions( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.Builder builderForValue) { + if (storageVersionsBuilder_ == null) { + ensureStorageVersionsIsMutable(); + storageVersions_.add(builderForValue.build()); + onChanged(); + } else { + storageVersionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public Builder addStorageVersions( + int index, io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.Builder builderForValue) { + if (storageVersionsBuilder_ == null) { + ensureStorageVersionsIsMutable(); + storageVersions_.add(index, builderForValue.build()); + onChanged(); + } else { + storageVersionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public Builder addAllStorageVersions( + java.lang.Iterable values) { + if (storageVersionsBuilder_ == null) { + ensureStorageVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, storageVersions_); + onChanged(); + } else { + storageVersionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public Builder clearStorageVersions() { + if (storageVersionsBuilder_ == null) { + storageVersions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + storageVersionsBuilder_.clear(); + } + return this; + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public Builder removeStorageVersions(int index) { + if (storageVersionsBuilder_ == null) { + ensureStorageVersionsIsMutable(); + storageVersions_.remove(index); + onChanged(); + } else { + storageVersionsBuilder_.remove(index); + } + return this; + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.Builder getStorageVersionsBuilder( + int index) { + return getStorageVersionsFieldBuilder().getBuilder(index); + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersionOrBuilder getStorageVersionsOrBuilder( + int index) { + if (storageVersionsBuilder_ == null) { + return storageVersions_.get(index); } else { + return storageVersionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public java.util.List + getStorageVersionsOrBuilderList() { + if (storageVersionsBuilder_ != null) { + return storageVersionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(storageVersions_); + } + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.Builder addStorageVersionsBuilder() { + return getStorageVersionsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.getDefaultInstance()); + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.Builder addStorageVersionsBuilder( + int index) { + return getStorageVersionsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.getDefaultInstance()); + } + /** + *
+       * storageVersions lists the reported versions per API server instance.
+       * +optional
+       * +listType=map
+       * +listMapKey=apiServerID
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.ServerStorageVersion storageVersions = 1; + */ + public java.util.List + getStorageVersionsBuilderList() { + return getStorageVersionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion, io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.Builder, io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersionOrBuilder> + getStorageVersionsFieldBuilder() { + if (storageVersionsBuilder_ == null) { + storageVersionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion, io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersion.Builder, io.kubernetes.client.proto.V1alpha1Apiserverinternal.ServerStorageVersionOrBuilder>( + storageVersions_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + storageVersions_ = null; + } + return storageVersionsBuilder_; + } + + private java.lang.Object commonEncodingVersion_ = ""; + /** + *
+       * commonEncodingVersion is set to an encoding storage version if all API server
+       * instances share that same version. If they don't share one storage version, this
+       * field is left empty.
+       * API servers should finish updating its storageVersionStatus entry before
+       * serving write operations, so that this field will be in sync with the reality.
+       * +optional
+       * 
+ * + * optional string commonEncodingVersion = 2; + */ + public boolean hasCommonEncodingVersion() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * commonEncodingVersion is set to an encoding storage version if all API server
+       * instances share that same version. If they don't share one storage version, this
+       * field is left empty.
+       * API servers should finish updating its storageVersionStatus entry before
+       * serving write operations, so that this field will be in sync with the reality.
+       * +optional
+       * 
+ * + * optional string commonEncodingVersion = 2; + */ + public java.lang.String getCommonEncodingVersion() { + java.lang.Object ref = commonEncodingVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + commonEncodingVersion_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * commonEncodingVersion is set to an encoding storage version if all API server
+       * instances share that same version. If they don't share one storage version, this
+       * field is left empty.
+       * API servers should finish updating its storageVersionStatus entry before
+       * serving write operations, so that this field will be in sync with the reality.
+       * +optional
+       * 
+ * + * optional string commonEncodingVersion = 2; + */ + public com.google.protobuf.ByteString + getCommonEncodingVersionBytes() { + java.lang.Object ref = commonEncodingVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + commonEncodingVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * commonEncodingVersion is set to an encoding storage version if all API server
+       * instances share that same version. If they don't share one storage version, this
+       * field is left empty.
+       * API servers should finish updating its storageVersionStatus entry before
+       * serving write operations, so that this field will be in sync with the reality.
+       * +optional
+       * 
+ * + * optional string commonEncodingVersion = 2; + */ + public Builder setCommonEncodingVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + commonEncodingVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * commonEncodingVersion is set to an encoding storage version if all API server
+       * instances share that same version. If they don't share one storage version, this
+       * field is left empty.
+       * API servers should finish updating its storageVersionStatus entry before
+       * serving write operations, so that this field will be in sync with the reality.
+       * +optional
+       * 
+ * + * optional string commonEncodingVersion = 2; + */ + public Builder clearCommonEncodingVersion() { + bitField0_ = (bitField0_ & ~0x00000002); + commonEncodingVersion_ = getDefaultInstance().getCommonEncodingVersion(); + onChanged(); + return this; + } + /** + *
+       * commonEncodingVersion is set to an encoding storage version if all API server
+       * instances share that same version. If they don't share one storage version, this
+       * field is left empty.
+       * API servers should finish updating its storageVersionStatus entry before
+       * serving write operations, so that this field will be in sync with the reality.
+       * +optional
+       * 
+ * + * optional string commonEncodingVersion = 2; + */ + public Builder setCommonEncodingVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + commonEncodingVersion_ = value; + onChanged(); + return this; + } + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.Builder, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionConditionOrBuilder> conditionsBuilder_; + + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public Builder setConditions( + int index, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public Builder setConditions( + int index, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public Builder addConditions(io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public Builder addConditions( + int index, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public Builder addConditions( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public Builder addConditions( + int index, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionConditionOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.getDefaultInstance()); + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.getDefaultInstance()); + } + /** + *
+       * conditions lists the latest available observations of the storageVersion's state.
+       * +optional
+       * +listType=map
+       * +listMapKey=type
+       * 
+ * + * repeated .k8s.io.api.apiserverinternal.v1alpha1.StorageVersionCondition conditions = 3; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.Builder, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionCondition.Builder, io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionConditionOrBuilder>( + conditions_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apiserverinternal.v1alpha1.StorageVersionStatus) + private static final io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus(); + } + + public static io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageVersionStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageVersionStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1alpha1Apiserverinternal.StorageVersionStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apiserverinternal_v1alpha1_ServerStorageVersion_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apiserverinternal_v1alpha1_ServerStorageVersion_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersion_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersion_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionCondition_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionCondition_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionStatus_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n5k8s.io/api/apiserverinternal/v1alpha1/" + + "generated.proto\022%k8s.io.api.apiserverint" + + "ernal.v1alpha1\0324k8s.io/apimachinery/pkg/" + + "apis/meta/v1/generated.proto\032/k8s.io/api" + + "machinery/pkg/runtime/generated.proto\0326k" + + "8s.io/apimachinery/pkg/runtime/schema/ge" + + "nerated.proto\"w\n\024ServerStorageVersion\022\023\n" + + "\013apiServerID\030\001 \001(\t\022\027\n\017encodingVersion\030\002 " + + "\001(\t\022\031\n\021decodableVersions\030\003 \003(\t\022\026\n\016served" + + "Versions\030\004 \003(\t\"\352\001\n\016StorageVersion\022B\n\010met" + + "adata\030\001 \001(\01320.k8s.io.apimachinery.pkg.ap" + + "is.meta.v1.ObjectMeta\022G\n\004spec\030\002 \001(\01329.k8" + + "s.io.api.apiserverinternal.v1alpha1.Stor" + + "ageVersionSpec\022K\n\006status\030\003 \001(\0132;.k8s.io." + + "api.apiserverinternal.v1alpha1.StorageVe" + + "rsionStatus\"\274\001\n\027StorageVersionCondition\022" + + "\014\n\004type\030\001 \001(\t\022\016\n\006status\030\002 \001(\t\022\032\n\022observe" + + "dGeneration\030\003 \001(\003\022F\n\022lastTransitionTime\030" + + "\004 \001(\0132*.k8s.io.apimachinery.pkg.apis.met" + + "a.v1.Time\022\016\n\006reason\030\005 \001(\t\022\017\n\007message\030\006 \001" + + "(\t\"\234\001\n\022StorageVersionList\022@\n\010metadata\030\001 " + + "\001(\0132..k8s.io.apimachinery.pkg.apis.meta." + + "v1.ListMeta\022D\n\005items\030\002 \003(\01325.k8s.io.api." + + "apiserverinternal.v1alpha1.StorageVersio" + + "n\"\024\n\022StorageVersionSpec\"\337\001\n\024StorageVersi" + + "onStatus\022T\n\017storageVersions\030\001 \003(\0132;.k8s." + + "io.api.apiserverinternal.v1alpha1.Server" + + "StorageVersion\022\035\n\025commonEncodingVersion\030" + + "\002 \001(\t\022R\n\nconditions\030\003 \003(\0132>.k8s.io.api.a" + + "piserverinternal.v1alpha1.StorageVersion" + + "ConditionB^\n\032io.kubernetes.client.protoB" + + "\031V1alpha1ApiserverinternalZ%k8s.io/api/a" + + "piserverinternal/v1alpha1" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.kubernetes.client.proto.Meta.getDescriptor(), + io.kubernetes.client.proto.Runtime.getDescriptor(), + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), + }, assigner); + internal_static_k8s_io_api_apiserverinternal_v1alpha1_ServerStorageVersion_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_k8s_io_api_apiserverinternal_v1alpha1_ServerStorageVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apiserverinternal_v1alpha1_ServerStorageVersion_descriptor, + new java.lang.String[] { "ApiServerID", "EncodingVersion", "DecodableVersions", "ServedVersions", }); + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersion_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersion_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersion_descriptor, + new java.lang.String[] { "Metadata", "Spec", "Status", }); + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionCondition_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionCondition_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionCondition_descriptor, + new java.lang.String[] { "Type", "Status", "ObservedGeneration", "LastTransitionTime", "Reason", "Message", }); + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionSpec_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionSpec_descriptor, + new java.lang.String[] { }); + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionStatus_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apiserverinternal_v1alpha1_StorageVersionStatus_descriptor, + new java.lang.String[] { "StorageVersions", "CommonEncodingVersion", "Conditions", }); + io.kubernetes.client.proto.Meta.getDescriptor(); + io.kubernetes.client.proto.Runtime.getDescriptor(); + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1alpha1Imagepolicy.java b/proto/src/main/java/io/kubernetes/client/proto/V1alpha1Imagepolicy.java index 972610700e..db18a11f66 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V1alpha1Imagepolicy.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V1alpha1Imagepolicy.java @@ -52,6 +52,7 @@ public interface ImageReviewOrBuilder extends /** *
      * Spec holds information about the pod being evaluated
+     * +optional
      * 
* * optional .k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec spec = 2; @@ -60,6 +61,7 @@ public interface ImageReviewOrBuilder extends /** *
      * Spec holds information about the pod being evaluated
+     * +optional
      * 
* * optional .k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec spec = 2; @@ -68,6 +70,7 @@ public interface ImageReviewOrBuilder extends /** *
      * Spec holds information about the pod being evaluated
+     * +optional
      * 
* * optional .k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec spec = 2; @@ -105,6 +108,7 @@ public interface ImageReviewOrBuilder extends /** *
    * ImageReview checks if the set of images in a pod are allowed.
+   * +k8s:supportsSubresource="/status"
    * 
* * Protobuf type {@code k8s.io.api.imagepolicy.v1alpha1.ImageReview} @@ -261,6 +265,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
      * Spec holds information about the pod being evaluated
+     * +optional
      * 
* * optional .k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec spec = 2; @@ -271,6 +276,7 @@ public boolean hasSpec() { /** *
      * Spec holds information about the pod being evaluated
+     * +optional
      * 
* * optional .k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec spec = 2; @@ -281,6 +287,7 @@ public io.kubernetes.client.proto.V1alpha1Imagepolicy.ImageReviewSpec getSpec() /** *
      * Spec holds information about the pod being evaluated
+     * +optional
      * 
* * optional .k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec spec = 2; @@ -521,6 +528,7 @@ protected Builder newBuilderForType( /** *
      * ImageReview checks if the set of images in a pod are allowed.
+     * +k8s:supportsSubresource="/status"
      * 
* * Protobuf type {@code k8s.io.api.imagepolicy.v1alpha1.ImageReview} @@ -899,6 +907,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( /** *
        * Spec holds information about the pod being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec spec = 2; @@ -909,6 +918,7 @@ public boolean hasSpec() { /** *
        * Spec holds information about the pod being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec spec = 2; @@ -923,6 +933,7 @@ public io.kubernetes.client.proto.V1alpha1Imagepolicy.ImageReviewSpec getSpec() /** *
        * Spec holds information about the pod being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec spec = 2; @@ -943,6 +954,7 @@ public Builder setSpec(io.kubernetes.client.proto.V1alpha1Imagepolicy.ImageRevie /** *
        * Spec holds information about the pod being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec spec = 2; @@ -961,6 +973,7 @@ public Builder setSpec( /** *
        * Spec holds information about the pod being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec spec = 2; @@ -985,6 +998,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V1alpha1Imagepolicy.ImageRev /** *
        * Spec holds information about the pod being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec spec = 2; @@ -1002,6 +1016,7 @@ public Builder clearSpec() { /** *
        * Spec holds information about the pod being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec spec = 2; @@ -1014,6 +1029,7 @@ public io.kubernetes.client.proto.V1alpha1Imagepolicy.ImageReviewSpec.Builder ge /** *
        * Spec holds information about the pod being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec spec = 2; @@ -1029,6 +1045,7 @@ public io.kubernetes.client.proto.V1alpha1Imagepolicy.ImageReviewSpecOrBuilder g /** *
        * Spec holds information about the pod being evaluated
+       * +optional
        * 
* * optional .k8s.io.api.imagepolicy.v1alpha1.ImageReviewSpec spec = 2; @@ -3525,6 +3542,7 @@ public interface ImageReviewStatusOrBuilder extends /** *
      * Allowed indicates that all images were allowed to be run.
+     * +optional
      * 
* * optional bool allowed = 1; @@ -3533,6 +3551,7 @@ public interface ImageReviewStatusOrBuilder extends /** *
      * Allowed indicates that all images were allowed to be run.
+     * +optional
      * 
* * optional bool allowed = 1; @@ -3767,6 +3786,7 @@ protected com.google.protobuf.MapField internalGetMapField( /** *
      * Allowed indicates that all images were allowed to be run.
+     * +optional
      * 
* * optional bool allowed = 1; @@ -3777,6 +3797,7 @@ public boolean hasAllowed() { /** *
      * Allowed indicates that all images were allowed to be run.
+     * +optional
      * 
* * optional bool allowed = 1; @@ -4355,6 +4376,7 @@ public Builder mergeFrom( /** *
        * Allowed indicates that all images were allowed to be run.
+       * +optional
        * 
* * optional bool allowed = 1; @@ -4365,6 +4387,7 @@ public boolean hasAllowed() { /** *
        * Allowed indicates that all images were allowed to be run.
+       * +optional
        * 
* * optional bool allowed = 1; @@ -4375,6 +4398,7 @@ public boolean getAllowed() { /** *
        * Allowed indicates that all images were allowed to be run.
+       * +optional
        * 
* * optional bool allowed = 1; @@ -4388,6 +4412,7 @@ public Builder setAllowed(boolean value) { /** *
        * Allowed indicates that all images were allowed to be run.
+       * +optional
        * 
* * optional bool allowed = 1; diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1beta1Extensions.java b/proto/src/main/java/io/kubernetes/client/proto/V1beta1Extensions.java index cc0d8eb023..46f748d74b 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V1beta1Extensions.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V1beta1Extensions.java @@ -125,6 +125,7 @@ public interface DaemonSetOrBuilder extends * DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for * more information. * DaemonSet represents the configuration of a daemon set. + * +k8s:supportsSubresource="/status" * * * Protobuf type {@code k8s.io.api.extensions.v1beta1.DaemonSet} @@ -561,6 +562,7 @@ protected Builder newBuilderForType( * DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for * more information. * DaemonSet represents the configuration of a daemon set. + * +k8s:supportsSubresource="/status" * * * Protobuf type {@code k8s.io.api.extensions.v1beta1.DaemonSet} @@ -9257,6 +9259,7 @@ public interface DeploymentOrBuilder extends * DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for * more information. * Deployment enables declarative updates for Pods and ReplicaSets. + * +k8s:supportsSubresource="/status" * * * Protobuf type {@code k8s.io.api.extensions.v1beta1.Deployment} @@ -9675,6 +9678,7 @@ protected Builder newBuilderForType( * DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for * more information. * Deployment enables declarative updates for Pods and ReplicaSets. + * +k8s:supportsSubresource="/status" * * * Protobuf type {@code k8s.io.api.extensions.v1beta1.Deployment} @@ -22319,6 +22323,8 @@ public interface IPBlockOrBuilder extends *
      * CIDR is a string representing the IP Block
      * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string cidr = 1; @@ -22328,6 +22334,8 @@ public interface IPBlockOrBuilder extends *
      * CIDR is a string representing the IP Block
      * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string cidr = 1; @@ -22337,6 +22345,8 @@ public interface IPBlockOrBuilder extends *
      * CIDR is a string representing the IP Block
      * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string cidr = 1; @@ -22500,6 +22510,8 @@ private IPBlock( *
      * CIDR is a string representing the IP Block
      * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string cidr = 1; @@ -22511,6 +22523,8 @@ public boolean hasCidr() { *
      * CIDR is a string representing the IP Block
      * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string cidr = 1; @@ -22533,6 +22547,8 @@ public java.lang.String getCidr() { *
      * CIDR is a string representing the IP Block
      * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+     * +required
+     * +k8s:alpha(since: "1.36")=+k8s:required
      * 
* * optional string cidr = 1; @@ -22974,6 +22990,8 @@ public Builder mergeFrom( *
        * CIDR is a string representing the IP Block
        * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string cidr = 1; @@ -22985,6 +23003,8 @@ public boolean hasCidr() { *
        * CIDR is a string representing the IP Block
        * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string cidr = 1; @@ -23007,6 +23027,8 @@ public java.lang.String getCidr() { *
        * CIDR is a string representing the IP Block
        * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string cidr = 1; @@ -23028,6 +23050,8 @@ public java.lang.String getCidr() { *
        * CIDR is a string representing the IP Block
        * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string cidr = 1; @@ -23046,6 +23070,8 @@ public Builder setCidr( *
        * CIDR is a string representing the IP Block
        * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string cidr = 1; @@ -23060,6 +23086,8 @@ public Builder clearCidr() { *
        * CIDR is a string representing the IP Block
        * Valid examples are "192.168.1.0/24" or "2001:db8::/64"
+       * +required
+       * +k8s:alpha(since: "1.36")=+k8s:required
        * 
* * optional string cidr = 1; @@ -23396,6 +23424,7 @@ public interface IngressOrBuilder extends * externally-reachable urls, load balance traffic, terminate SSL, offer name * based virtual hosting etc. * DEPRECATED - This group version of Ingress is deprecated by networking.k8s.io/v1beta1 Ingress. See the release notes for more information. + * +k8s:supportsSubresource="/status" * * * Protobuf type {@code k8s.io.api.extensions.v1beta1.Ingress} @@ -23825,6 +23854,7 @@ protected Builder newBuilderForType( * externally-reachable urls, load balance traffic, terminate SSL, offer name * based virtual hosting etc. * DEPRECATED - This group version of Ingress is deprecated by networking.k8s.io/v1beta1 Ingress. See the release notes for more information. + * +k8s:supportsSubresource="/status" * * * Protobuf type {@code k8s.io.api.extensions.v1beta1.Ingress} @@ -37601,6 +37631,7 @@ io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPortOrBuilder getPorts * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -37616,6 +37647,7 @@ io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPortOrBuilder getPorts * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -37630,6 +37662,7 @@ io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPortOrBuilder getPorts * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -37644,6 +37677,7 @@ io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPortOrBuilder getPorts * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -37659,6 +37693,7 @@ io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPortOrBuilder getPorts * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -37866,6 +37901,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPortOrBuilder g * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -37882,6 +37918,7 @@ public java.util.List * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -37899,6 +37936,7 @@ public java.util.List * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -37915,6 +37953,7 @@ public int getToCount() { * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -37931,6 +37970,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeer getTo(int * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -38786,6 +38826,7 @@ private void ensureToIsMutable() { * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -38806,6 +38847,7 @@ public java.util.List * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -38826,6 +38868,7 @@ public int getToCount() { * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -38846,6 +38889,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeer getTo(int * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -38873,6 +38917,7 @@ public Builder setTo( * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -38897,6 +38942,7 @@ public Builder setTo( * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -38923,6 +38969,7 @@ public Builder addTo(io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyP * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -38950,6 +38997,7 @@ public Builder addTo( * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -38974,6 +39022,7 @@ public Builder addTo( * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -38998,6 +39047,7 @@ public Builder addTo( * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -39023,6 +39073,7 @@ public Builder addAllTo( * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -39046,6 +39097,7 @@ public Builder clearTo() { * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -39069,6 +39121,7 @@ public Builder removeTo(int index) { * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -39086,6 +39139,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeer.Builder ge * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -39106,6 +39160,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeerOrBuilder g * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -39127,6 +39182,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeerOrBuilder g * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -39144,6 +39200,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeer.Builder ad * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -39162,6 +39219,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeer.Builder ad * allows traffic only if the traffic matches at least one item in the to list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer to = 2; @@ -39324,6 +39382,7 @@ io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPortOrBuilder getPorts * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -39339,6 +39398,7 @@ io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPortOrBuilder getPorts * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -39353,6 +39413,7 @@ io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPortOrBuilder getPorts * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -39367,6 +39428,7 @@ io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPortOrBuilder getPorts * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -39382,6 +39444,7 @@ io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPortOrBuilder getPorts * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -39587,6 +39650,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPortOrBuilder g * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -39603,6 +39667,7 @@ public java.util.List * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -39620,6 +39685,7 @@ public java.util.List * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -39636,6 +39702,7 @@ public int getFromCount() { * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -39652,6 +39719,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeer getFrom(in * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40505,6 +40573,7 @@ private void ensureFromIsMutable() { * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40525,6 +40594,7 @@ public java.util.List * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40545,6 +40615,7 @@ public int getFromCount() { * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40565,6 +40636,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeer getFrom(in * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40592,6 +40664,7 @@ public Builder setFrom( * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40616,6 +40689,7 @@ public Builder setFrom( * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40642,6 +40716,7 @@ public Builder addFrom(io.kubernetes.client.proto.V1beta1Extensions.NetworkPolic * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40669,6 +40744,7 @@ public Builder addFrom( * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40693,6 +40769,7 @@ public Builder addFrom( * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40717,6 +40794,7 @@ public Builder addFrom( * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40742,6 +40820,7 @@ public Builder addAllFrom( * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40765,6 +40844,7 @@ public Builder clearFrom() { * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40788,6 +40868,7 @@ public Builder removeFrom(int index) { * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40805,6 +40886,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeer.Builder ge * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40825,6 +40907,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeerOrBuilder g * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40846,6 +40929,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeerOrBuilder g * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40863,6 +40947,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeer.Builder ad * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -40881,6 +40966,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyPeer.Builder ad * traffic matches at least one item in the from list. * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2; @@ -42241,6 +42327,7 @@ public interface NetworkPolicyPeerOrBuilder extends * IPBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional .k8s.io.api.extensions.v1beta1.IPBlock ipBlock = 3; @@ -42251,6 +42338,7 @@ public interface NetworkPolicyPeerOrBuilder extends * IPBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional .k8s.io.api.extensions.v1beta1.IPBlock ipBlock = 3; @@ -42261,6 +42349,7 @@ public interface NetworkPolicyPeerOrBuilder extends * IPBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional .k8s.io.api.extensions.v1beta1.IPBlock ipBlock = 3; @@ -42485,6 +42574,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelect * IPBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional .k8s.io.api.extensions.v1beta1.IPBlock ipBlock = 3; @@ -42497,6 +42587,7 @@ public boolean hasIpBlock() { * IPBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional .k8s.io.api.extensions.v1beta1.IPBlock ipBlock = 3; @@ -42509,6 +42600,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.IPBlock getIpBlock() { * IPBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional .k8s.io.api.extensions.v1beta1.IPBlock ipBlock = 3; @@ -43319,6 +43411,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getNamespaceSelect * IPBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional .k8s.io.api.extensions.v1beta1.IPBlock ipBlock = 3; @@ -43331,6 +43424,7 @@ public boolean hasIpBlock() { * IPBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional .k8s.io.api.extensions.v1beta1.IPBlock ipBlock = 3; @@ -43347,6 +43441,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.IPBlock getIpBlock() { * IPBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional .k8s.io.api.extensions.v1beta1.IPBlock ipBlock = 3; @@ -43369,6 +43464,7 @@ public Builder setIpBlock(io.kubernetes.client.proto.V1beta1Extensions.IPBlock v * IPBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional .k8s.io.api.extensions.v1beta1.IPBlock ipBlock = 3; @@ -43389,6 +43485,7 @@ public Builder setIpBlock( * IPBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional .k8s.io.api.extensions.v1beta1.IPBlock ipBlock = 3; @@ -43415,6 +43512,7 @@ public Builder mergeIpBlock(io.kubernetes.client.proto.V1beta1Extensions.IPBlock * IPBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional .k8s.io.api.extensions.v1beta1.IPBlock ipBlock = 3; @@ -43434,6 +43532,7 @@ public Builder clearIpBlock() { * IPBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional .k8s.io.api.extensions.v1beta1.IPBlock ipBlock = 3; @@ -43448,6 +43547,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.IPBlock.Builder getIpBlockBu * IPBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional .k8s.io.api.extensions.v1beta1.IPBlock ipBlock = 3; @@ -43465,6 +43565,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.IPBlockOrBuilder getIpBlockO * IPBlock defines policy on a particular IPBlock. If this field is set then * neither of the other fields can be. * +optional + * +k8s:alpha(since: "1.36")=+k8s:optional * * * optional .k8s.io.api.extensions.v1beta1.IPBlock ipBlock = 3; @@ -44720,6 +44821,7 @@ public interface NetworkPolicySpecOrBuilder extends * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -44737,6 +44839,7 @@ public interface NetworkPolicySpecOrBuilder extends * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -44753,6 +44856,7 @@ public interface NetworkPolicySpecOrBuilder extends * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -44769,6 +44873,7 @@ public interface NetworkPolicySpecOrBuilder extends * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -44786,6 +44891,7 @@ public interface NetworkPolicySpecOrBuilder extends * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -44804,6 +44910,7 @@ io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyIngressRuleOrBuilder g * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -44821,6 +44928,7 @@ io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyIngressRuleOrBuilder g * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -44837,6 +44945,7 @@ io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyIngressRuleOrBuilder g * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -44853,6 +44962,7 @@ io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyIngressRuleOrBuilder g * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -44870,6 +44980,7 @@ io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyIngressRuleOrBuilder g * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -45142,6 +45253,7 @@ public io.kubernetes.client.proto.Meta.LabelSelectorOrBuilder getPodSelectorOrBu * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -45160,6 +45272,7 @@ public java.util.List * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -45179,6 +45292,7 @@ public java.util.List * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -45197,6 +45311,7 @@ public int getIngressCount() { * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -45215,6 +45330,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyIngressRule get * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -45237,6 +45353,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyIngressRuleOrBu * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -45255,6 +45372,7 @@ public java.util.List * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -45274,6 +45392,7 @@ public java.util.List * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -45292,6 +45411,7 @@ public int getEgressCount() { * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -45310,6 +45430,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyEgressRule getE * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46093,6 +46214,7 @@ private void ensureIngressIsMutable() { * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46115,6 +46237,7 @@ public java.util.List * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46137,6 +46260,7 @@ public int getIngressCount() { * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46159,6 +46283,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyIngressRule get * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46188,6 +46313,7 @@ public Builder setIngress( * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46214,6 +46340,7 @@ public Builder setIngress( * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46242,6 +46369,7 @@ public Builder addIngress(io.kubernetes.client.proto.V1beta1Extensions.NetworkPo * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46271,6 +46399,7 @@ public Builder addIngress( * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46297,6 +46426,7 @@ public Builder addIngress( * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46323,6 +46453,7 @@ public Builder addIngress( * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46350,6 +46481,7 @@ public Builder addAllIngress( * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46375,6 +46507,7 @@ public Builder clearIngress() { * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46400,6 +46533,7 @@ public Builder removeIngress(int index) { * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46419,6 +46553,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyIngressRule.Bui * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46441,6 +46576,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyIngressRuleOrBu * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46464,6 +46600,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyIngressRuleOrBu * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46483,6 +46620,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyIngressRule.Bui * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46503,6 +46641,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyIngressRule.Bui * (and serves solely to ensure that the pods it selects are isolated by default). * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2; @@ -46549,6 +46688,7 @@ private void ensureEgressIsMutable() { * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46571,6 +46711,7 @@ public java.util.List * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46593,6 +46734,7 @@ public int getEgressCount() { * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46615,6 +46757,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyEgressRule getE * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46644,6 +46787,7 @@ public Builder setEgress( * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46670,6 +46814,7 @@ public Builder setEgress( * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46698,6 +46843,7 @@ public Builder addEgress(io.kubernetes.client.proto.V1beta1Extensions.NetworkPol * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46727,6 +46873,7 @@ public Builder addEgress( * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46753,6 +46900,7 @@ public Builder addEgress( * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46779,6 +46927,7 @@ public Builder addEgress( * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46806,6 +46955,7 @@ public Builder addAllEgress( * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46831,6 +46981,7 @@ public Builder clearEgress() { * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46856,6 +47007,7 @@ public Builder removeEgress(int index) { * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46875,6 +47027,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyEgressRule.Buil * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46897,6 +47050,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyEgressRuleOrBui * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46920,6 +47074,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyEgressRuleOrBui * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46939,6 +47094,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyEgressRule.Buil * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -46959,6 +47115,7 @@ public io.kubernetes.client.proto.V1beta1Extensions.NetworkPolicyEgressRule.Buil * This field is beta-level in 1.8 * +optional * +listType=atomic + * +k8s:alpha(since: "1.36")=+k8s:optional * * * repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3; @@ -47376,6 +47533,7 @@ public interface ReplicaSetOrBuilder extends * DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1beta2/ReplicaSet. See the release notes for * more information. * ReplicaSet ensures that a specified number of pod replicas are running at any given time. + * +k8s:supportsSubresource="/status" * * * Protobuf type {@code k8s.io.api.extensions.v1beta1.ReplicaSet} @@ -47815,6 +47973,7 @@ protected Builder newBuilderForType( * DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1beta2/ReplicaSet. See the release notes for * more information. * ReplicaSet ensures that a specified number of pod replicas are running at any given time. + * +k8s:supportsSubresource="/status" * * * Protobuf type {@code k8s.io.api.extensions.v1beta1.ReplicaSet} @@ -59092,9 +59251,9 @@ public interface ScaleSpecOrBuilder extends *
      * desired number of instances for the scaled object.
      * +optional
-     * +k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
      * +default=0
-     * +k8s:minimum=0
+     * +k8s:alpha(since: "1.36")=+k8s:minimum=0
      * 
* * optional int32 replicas = 1; @@ -59104,9 +59263,9 @@ public interface ScaleSpecOrBuilder extends *
      * desired number of instances for the scaled object.
      * +optional
-     * +k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
      * +default=0
-     * +k8s:minimum=0
+     * +k8s:alpha(since: "1.36")=+k8s:minimum=0
      * 
* * optional int32 replicas = 1; @@ -59201,9 +59360,9 @@ private ScaleSpec( *
      * desired number of instances for the scaled object.
      * +optional
-     * +k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
      * +default=0
-     * +k8s:minimum=0
+     * +k8s:alpha(since: "1.36")=+k8s:minimum=0
      * 
* * optional int32 replicas = 1; @@ -59215,9 +59374,9 @@ public boolean hasReplicas() { *
      * desired number of instances for the scaled object.
      * +optional
-     * +k8s:optional
+     * +k8s:alpha(since: "1.36")=+k8s:optional
      * +default=0
-     * +k8s:minimum=0
+     * +k8s:alpha(since: "1.36")=+k8s:minimum=0
      * 
* * optional int32 replicas = 1; @@ -59550,9 +59709,9 @@ public Builder mergeFrom( *
        * desired number of instances for the scaled object.
        * +optional
-       * +k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
        * +default=0
-       * +k8s:minimum=0
+       * +k8s:alpha(since: "1.36")=+k8s:minimum=0
        * 
* * optional int32 replicas = 1; @@ -59564,9 +59723,9 @@ public boolean hasReplicas() { *
        * desired number of instances for the scaled object.
        * +optional
-       * +k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
        * +default=0
-       * +k8s:minimum=0
+       * +k8s:alpha(since: "1.36")=+k8s:minimum=0
        * 
* * optional int32 replicas = 1; @@ -59578,9 +59737,9 @@ public int getReplicas() { *
        * desired number of instances for the scaled object.
        * +optional
-       * +k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
        * +default=0
-       * +k8s:minimum=0
+       * +k8s:alpha(since: "1.36")=+k8s:minimum=0
        * 
* * optional int32 replicas = 1; @@ -59595,9 +59754,9 @@ public Builder setReplicas(int value) { *
        * desired number of instances for the scaled object.
        * +optional
-       * +k8s:optional
+       * +k8s:alpha(since: "1.36")=+k8s:optional
        * +default=0
-       * +k8s:minimum=0
+       * +k8s:alpha(since: "1.36")=+k8s:minimum=0
        * 
* * optional int32 replicas = 1; diff --git a/proto/src/main/java/io/kubernetes/client/proto/V1beta1Storagemigration.java b/proto/src/main/java/io/kubernetes/client/proto/V1beta1Storagemigration.java new file mode 100644 index 0000000000..47cbdaee69 --- /dev/null +++ b/proto/src/main/java/io/kubernetes/client/proto/V1beta1Storagemigration.java @@ -0,0 +1,4660 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: k8s.io/api/storagemigration/v1beta1/generated.proto + +package io.kubernetes.client.proto; + +public final class V1beta1Storagemigration { + private V1beta1Storagemigration() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface StorageVersionMigrationOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.storagemigration.v1beta1.StorageVersionMigration) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard object metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard object metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * Standard object metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Specification of the migration.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec spec = 2; + */ + boolean hasSpec(); + /** + *
+     * Specification of the migration.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec spec = 2; + */ + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec getSpec(); + /** + *
+     * Specification of the migration.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec spec = 2; + */ + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpecOrBuilder getSpecOrBuilder(); + + /** + *
+     * Status of the migration.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus status = 3; + */ + boolean hasStatus(); + /** + *
+     * Status of the migration.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus status = 3; + */ + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus getStatus(); + /** + *
+     * Status of the migration.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus status = 3; + */ + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatusOrBuilder getStatusOrBuilder(); + } + /** + *
+   * StorageVersionMigration represents a migration of stored data to the latest
+   * storage version.
+   * +k8s:supportsSubresource="/status"
+   * 
+ * + * Protobuf type {@code k8s.io.api.storagemigration.v1beta1.StorageVersionMigration} + */ + public static final class StorageVersionMigration extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.storagemigration.v1beta1.StorageVersionMigration) + StorageVersionMigrationOrBuilder { + private static final long serialVersionUID = 0L; + // Use StorageVersionMigration.newBuilder() to construct. + private StorageVersionMigration(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StorageVersionMigration() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StorageVersionMigration( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = spec_.toBuilder(); + } + spec_ = input.readMessage(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(spec_); + spec_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.Builder subBuilder = null; + if (((bitField0_ & 0x00000004) == 0x00000004)) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000004; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.class, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * Standard object metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard object metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard object metadata.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int SPEC_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec spec_; + /** + *
+     * Specification of the migration.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * Specification of the migration.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec spec = 2; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec getSpec() { + return spec_ == null ? io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.getDefaultInstance() : spec_; + } + /** + *
+     * Specification of the migration.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec spec = 2; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpecOrBuilder getSpecOrBuilder() { + return spec_ == null ? io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.getDefaultInstance() : spec_; + } + + public static final int STATUS_FIELD_NUMBER = 3; + private io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus status_; + /** + *
+     * Status of the migration.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus status = 3; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * Status of the migration.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus status = 3; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus getStatus() { + return status_ == null ? io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.getDefaultInstance() : status_; + } + /** + *
+     * Status of the migration.
+     * +optional
+     * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus status = 3; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatusOrBuilder getStatusOrBuilder() { + return status_ == null ? io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.getDefaultInstance() : status_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getSpec()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeMessage(3, getStatus()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSpec()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStatus()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration other = (io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && (hasSpec() == other.hasSpec()); + if (hasSpec()) { + result = result && getSpec() + .equals(other.getSpec()); + } + result = result && (hasStatus() == other.hasStatus()); + if (hasStatus()) { + result = result && getStatus() + .equals(other.getStatus()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (hasSpec()) { + hash = (37 * hash) + SPEC_FIELD_NUMBER; + hash = (53 * hash) + getSpec().hashCode(); + } + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * StorageVersionMigration represents a migration of stored data to the latest
+     * storage version.
+     * +k8s:supportsSubresource="/status"
+     * 
+ * + * Protobuf type {@code k8s.io.api.storagemigration.v1beta1.StorageVersionMigration} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.storagemigration.v1beta1.StorageVersionMigration) + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigration_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigration_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.class, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getSpecFieldBuilder(); + getStatusFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (specBuilder_ == null) { + spec_ = null; + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (statusBuilder_ == null) { + status_ = null; + } else { + statusBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigration_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration build() { + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration buildPartial() { + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration result = new io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (specBuilder_ == null) { + result.spec_ = spec_; + } else { + result.spec_ = specBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + if (statusBuilder_ == null) { + result.status_ = status_; + } else { + result.status_ = statusBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration) { + return mergeFrom((io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration other) { + if (other == io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (other.hasSpec()) { + mergeSpec(other.getSpec()); + } + if (other.hasStatus()) { + mergeStatus(other.getStatus()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard object metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard object metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard object metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard object metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard object metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard object metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard object metadata.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec spec_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.Builder, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpecOrBuilder> specBuilder_; + /** + *
+       * Specification of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec spec = 2; + */ + public boolean hasSpec() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * Specification of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec spec = 2; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec getSpec() { + if (specBuilder_ == null) { + return spec_ == null ? io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.getDefaultInstance() : spec_; + } else { + return specBuilder_.getMessage(); + } + } + /** + *
+       * Specification of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec spec = 2; + */ + public Builder setSpec(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec value) { + if (specBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + spec_ = value; + onChanged(); + } else { + specBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Specification of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec spec = 2; + */ + public Builder setSpec( + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.Builder builderForValue) { + if (specBuilder_ == null) { + spec_ = builderForValue.build(); + onChanged(); + } else { + specBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Specification of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec spec = 2; + */ + public Builder mergeSpec(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec value) { + if (specBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + spec_ != null && + spec_ != io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.getDefaultInstance()) { + spec_ = + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.newBuilder(spec_).mergeFrom(value).buildPartial(); + } else { + spec_ = value; + } + onChanged(); + } else { + specBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * Specification of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec spec = 2; + */ + public Builder clearSpec() { + if (specBuilder_ == null) { + spec_ = null; + onChanged(); + } else { + specBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * Specification of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec spec = 2; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.Builder getSpecBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSpecFieldBuilder().getBuilder(); + } + /** + *
+       * Specification of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec spec = 2; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpecOrBuilder getSpecOrBuilder() { + if (specBuilder_ != null) { + return specBuilder_.getMessageOrBuilder(); + } else { + return spec_ == null ? + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.getDefaultInstance() : spec_; + } + } + /** + *
+       * Specification of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec spec = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.Builder, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpecOrBuilder> + getSpecFieldBuilder() { + if (specBuilder_ == null) { + specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.Builder, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpecOrBuilder>( + getSpec(), + getParentForChildren(), + isClean()); + spec_ = null; + } + return specBuilder_; + } + + private io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus status_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.Builder, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatusOrBuilder> statusBuilder_; + /** + *
+       * Status of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus status = 3; + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * Status of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus status = 3; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus getStatus() { + if (statusBuilder_ == null) { + return status_ == null ? io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.getDefaultInstance() : status_; + } else { + return statusBuilder_.getMessage(); + } + } + /** + *
+       * Status of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus status = 3; + */ + public Builder setStatus(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus value) { + if (statusBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + onChanged(); + } else { + statusBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * Status of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus status = 3; + */ + public Builder setStatus( + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.Builder builderForValue) { + if (statusBuilder_ == null) { + status_ = builderForValue.build(); + onChanged(); + } else { + statusBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * Status of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus status = 3; + */ + public Builder mergeStatus(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus value) { + if (statusBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004) && + status_ != null && + status_ != io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.getDefaultInstance()) { + status_ = + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.newBuilder(status_).mergeFrom(value).buildPartial(); + } else { + status_ = value; + } + onChanged(); + } else { + statusBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + return this; + } + /** + *
+       * Status of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus status = 3; + */ + public Builder clearStatus() { + if (statusBuilder_ == null) { + status_ = null; + onChanged(); + } else { + statusBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + /** + *
+       * Status of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus status = 3; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.Builder getStatusBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getStatusFieldBuilder().getBuilder(); + } + /** + *
+       * Status of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus status = 3; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatusOrBuilder getStatusOrBuilder() { + if (statusBuilder_ != null) { + return statusBuilder_.getMessageOrBuilder(); + } else { + return status_ == null ? + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.getDefaultInstance() : status_; + } + } + /** + *
+       * Status of the migration.
+       * +optional
+       * 
+ * + * optional .k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus status = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.Builder, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatusOrBuilder> + getStatusFieldBuilder() { + if (statusBuilder_ == null) { + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.Builder, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); + status_ = null; + } + return statusBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.storagemigration.v1beta1.StorageVersionMigration) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.storagemigration.v1beta1.StorageVersionMigration) + private static final io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration(); + } + + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageVersionMigration parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageVersionMigration(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StorageVersionMigrationListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Standard list metadata
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * Standard list metadata
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * Standard list metadata
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * Items is the list of StorageVersionMigration
+     * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * Items is the list of StorageVersionMigration
+     * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration getItems(int index); + /** + *
+     * Items is the list of StorageVersionMigration
+     * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + int getItemsCount(); + /** + *
+     * Items is the list of StorageVersionMigration
+     * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * Items is the list of StorageVersionMigration
+     * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * StorageVersionMigrationList is a collection of storage version migrations.
+   * 
+ * + * Protobuf type {@code k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationList} + */ + public static final class StorageVersionMigrationList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationList) + StorageVersionMigrationListOrBuilder { + private static final long serialVersionUID = 0L; + // Use StorageVersionMigrationList.newBuilder() to construct. + private StorageVersionMigrationList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StorageVersionMigrationList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StorageVersionMigrationList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList.class, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * Standard list metadata
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * Standard list metadata
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * Standard list metadata
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * Items is the list of StorageVersionMigration
+     * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * Items is the list of StorageVersionMigration
+     * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * Items is the list of StorageVersionMigration
+     * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * Items is the list of StorageVersionMigration
+     * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration getItems(int index) { + return items_.get(index); + } + /** + *
+     * Items is the list of StorageVersionMigration
+     * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList other = (io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * StorageVersionMigrationList is a collection of storage version migrations.
+     * 
+ * + * Protobuf type {@code k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationList) + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList.class, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList build() { + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList buildPartial() { + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList result = new io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList) { + return mergeFrom((io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList other) { + if (other == io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * Standard list metadata
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * Standard list metadata
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * Standard list metadata
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * Standard list metadata
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * Standard list metadata
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * Standard list metadata
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * Standard list metadata
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.Builder, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationOrBuilder> itemsBuilder_; + + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.getDefaultInstance()); + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.getDefaultInstance()); + } + /** + *
+       * Items is the list of StorageVersionMigration
+       * 
+ * + * repeated .k8s.io.api.storagemigration.v1beta1.StorageVersionMigration items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.Builder, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigration.Builder, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationList) + private static final io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList(); + } + + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageVersionMigrationList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageVersionMigrationList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StorageVersionMigrationSpecOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The resource that is being migrated. The migrator sends requests to
+     * the endpoint serving the resource.
+     * Immutable.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1; + */ + boolean hasResource(); + /** + *
+     * The resource that is being migrated. The migrator sends requests to
+     * the endpoint serving the resource.
+     * Immutable.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1; + */ + io.kubernetes.client.proto.Meta.GroupResource getResource(); + /** + *
+     * The resource that is being migrated. The migrator sends requests to
+     * the endpoint serving the resource.
+     * Immutable.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1; + */ + io.kubernetes.client.proto.Meta.GroupResourceOrBuilder getResourceOrBuilder(); + } + /** + *
+   * Spec of the storage version migration.
+   * 
+ * + * Protobuf type {@code k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec} + */ + public static final class StorageVersionMigrationSpec extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec) + StorageVersionMigrationSpecOrBuilder { + private static final long serialVersionUID = 0L; + // Use StorageVersionMigrationSpec.newBuilder() to construct. + private StorageVersionMigrationSpec(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StorageVersionMigrationSpec() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StorageVersionMigrationSpec( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.GroupResource.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = resource_.toBuilder(); + } + resource_ = input.readMessage(io.kubernetes.client.proto.Meta.GroupResource.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resource_); + resource_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.class, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.Builder.class); + } + + private int bitField0_; + public static final int RESOURCE_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.GroupResource resource_; + /** + *
+     * The resource that is being migrated. The migrator sends requests to
+     * the endpoint serving the resource.
+     * Immutable.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1; + */ + public boolean hasResource() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * The resource that is being migrated. The migrator sends requests to
+     * the endpoint serving the resource.
+     * Immutable.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1; + */ + public io.kubernetes.client.proto.Meta.GroupResource getResource() { + return resource_ == null ? io.kubernetes.client.proto.Meta.GroupResource.getDefaultInstance() : resource_; + } + /** + *
+     * The resource that is being migrated. The migrator sends requests to
+     * the endpoint serving the resource.
+     * Immutable.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1; + */ + public io.kubernetes.client.proto.Meta.GroupResourceOrBuilder getResourceOrBuilder() { + return resource_ == null ? io.kubernetes.client.proto.Meta.GroupResource.getDefaultInstance() : resource_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getResource()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getResource()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec other = (io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec) obj; + + boolean result = true; + result = result && (hasResource() == other.hasResource()); + if (hasResource()) { + result = result && getResource() + .equals(other.getResource()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResource()) { + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Spec of the storage version migration.
+     * 
+ * + * Protobuf type {@code k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec) + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.class, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResourceFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (resourceBuilder_ == null) { + resource_ = null; + } else { + resourceBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationSpec_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec build() { + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec buildPartial() { + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec result = new io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (resourceBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = resourceBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec) { + return mergeFrom((io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec other) { + if (other == io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec.getDefaultInstance()) return this; + if (other.hasResource()) { + mergeResource(other.getResource()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.GroupResource resource_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupResource, io.kubernetes.client.proto.Meta.GroupResource.Builder, io.kubernetes.client.proto.Meta.GroupResourceOrBuilder> resourceBuilder_; + /** + *
+       * The resource that is being migrated. The migrator sends requests to
+       * the endpoint serving the resource.
+       * Immutable.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1; + */ + public boolean hasResource() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * The resource that is being migrated. The migrator sends requests to
+       * the endpoint serving the resource.
+       * Immutable.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1; + */ + public io.kubernetes.client.proto.Meta.GroupResource getResource() { + if (resourceBuilder_ == null) { + return resource_ == null ? io.kubernetes.client.proto.Meta.GroupResource.getDefaultInstance() : resource_; + } else { + return resourceBuilder_.getMessage(); + } + } + /** + *
+       * The resource that is being migrated. The migrator sends requests to
+       * the endpoint serving the resource.
+       * Immutable.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1; + */ + public Builder setResource(io.kubernetes.client.proto.Meta.GroupResource value) { + if (resourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + resourceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * The resource that is being migrated. The migrator sends requests to
+       * the endpoint serving the resource.
+       * Immutable.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1; + */ + public Builder setResource( + io.kubernetes.client.proto.Meta.GroupResource.Builder builderForValue) { + if (resourceBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + resourceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * The resource that is being migrated. The migrator sends requests to
+       * the endpoint serving the resource.
+       * Immutable.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1; + */ + public Builder mergeResource(io.kubernetes.client.proto.Meta.GroupResource value) { + if (resourceBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + resource_ != null && + resource_ != io.kubernetes.client.proto.Meta.GroupResource.getDefaultInstance()) { + resource_ = + io.kubernetes.client.proto.Meta.GroupResource.newBuilder(resource_).mergeFrom(value).buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + resourceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * The resource that is being migrated. The migrator sends requests to
+       * the endpoint serving the resource.
+       * Immutable.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1; + */ + public Builder clearResource() { + if (resourceBuilder_ == null) { + resource_ = null; + onChanged(); + } else { + resourceBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * The resource that is being migrated. The migrator sends requests to
+       * the endpoint serving the resource.
+       * Immutable.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1; + */ + public io.kubernetes.client.proto.Meta.GroupResource.Builder getResourceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getResourceFieldBuilder().getBuilder(); + } + /** + *
+       * The resource that is being migrated. The migrator sends requests to
+       * the endpoint serving the resource.
+       * Immutable.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1; + */ + public io.kubernetes.client.proto.Meta.GroupResourceOrBuilder getResourceOrBuilder() { + if (resourceBuilder_ != null) { + return resourceBuilder_.getMessageOrBuilder(); + } else { + return resource_ == null ? + io.kubernetes.client.proto.Meta.GroupResource.getDefaultInstance() : resource_; + } + } + /** + *
+       * The resource that is being migrated. The migrator sends requests to
+       * the endpoint serving the resource.
+       * Immutable.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupResource, io.kubernetes.client.proto.Meta.GroupResource.Builder, io.kubernetes.client.proto.Meta.GroupResourceOrBuilder> + getResourceFieldBuilder() { + if (resourceBuilder_ == null) { + resourceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupResource, io.kubernetes.client.proto.Meta.GroupResource.Builder, io.kubernetes.client.proto.Meta.GroupResourceOrBuilder>( + getResource(), + getParentForChildren(), + isClean()); + resource_ = null; + } + return resourceBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationSpec) + private static final io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec(); + } + + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageVersionMigrationSpec parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageVersionMigrationSpec(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StorageVersionMigrationStatusOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * The latest available observations of the migration's current state.
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=type
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + java.util.List + getConditionsList(); + /** + *
+     * The latest available observations of the migration's current state.
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=type
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + io.kubernetes.client.proto.Meta.Condition getConditions(int index); + /** + *
+     * The latest available observations of the migration's current state.
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=type
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + int getConditionsCount(); + /** + *
+     * The latest available observations of the migration's current state.
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=type
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + java.util.List + getConditionsOrBuilderList(); + /** + *
+     * The latest available observations of the migration's current state.
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=type
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder( + int index); + + /** + *
+     * ResourceVersion to compare with the GC cache for performing the migration.
+     * This is the current resource version of given group, version and resource when
+     * kube-controller-manager first observes this StorageVersionMigration resource.
+     * 
+ * + * optional string resourceVersion = 2; + */ + boolean hasResourceVersion(); + /** + *
+     * ResourceVersion to compare with the GC cache for performing the migration.
+     * This is the current resource version of given group, version and resource when
+     * kube-controller-manager first observes this StorageVersionMigration resource.
+     * 
+ * + * optional string resourceVersion = 2; + */ + java.lang.String getResourceVersion(); + /** + *
+     * ResourceVersion to compare with the GC cache for performing the migration.
+     * This is the current resource version of given group, version and resource when
+     * kube-controller-manager first observes this StorageVersionMigration resource.
+     * 
+ * + * optional string resourceVersion = 2; + */ + com.google.protobuf.ByteString + getResourceVersionBytes(); + } + /** + *
+   * Status of the storage version migration.
+   * 
+ * + * Protobuf type {@code k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus} + */ + public static final class StorageVersionMigrationStatus extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus) + StorageVersionMigrationStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use StorageVersionMigrationStatus.newBuilder() to construct. + private StorageVersionMigrationStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StorageVersionMigrationStatus() { + conditions_ = java.util.Collections.emptyList(); + resourceVersion_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StorageVersionMigrationStatus( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + conditions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + conditions_.add( + input.readMessage(io.kubernetes.client.proto.Meta.Condition.PARSER, extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + resourceVersion_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.class, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.Builder.class); + } + + private int bitField0_; + public static final int CONDITIONS_FIELD_NUMBER = 1; + private java.util.List conditions_; + /** + *
+     * The latest available observations of the migration's current state.
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=type
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public java.util.List getConditionsList() { + return conditions_; + } + /** + *
+     * The latest available observations of the migration's current state.
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=type
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + *
+     * The latest available observations of the migration's current state.
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=type
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public int getConditionsCount() { + return conditions_.size(); + } + /** + *
+     * The latest available observations of the migration's current state.
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=type
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { + return conditions_.get(index); + } + /** + *
+     * The latest available observations of the migration's current state.
+     * +patchMergeKey=type
+     * +patchStrategy=merge
+     * +listType=map
+     * +listMapKey=type
+     * +optional
+     * +k8s:alpha(since: "1.37")=+k8s:optional
+     * +k8s:alpha(since: "1.37")=+k8s:listType=map
+     * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder( + int index) { + return conditions_.get(index); + } + + public static final int RESOURCEVERSION_FIELD_NUMBER = 2; + private volatile java.lang.Object resourceVersion_; + /** + *
+     * ResourceVersion to compare with the GC cache for performing the migration.
+     * This is the current resource version of given group, version and resource when
+     * kube-controller-manager first observes this StorageVersionMigration resource.
+     * 
+ * + * optional string resourceVersion = 2; + */ + public boolean hasResourceVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * ResourceVersion to compare with the GC cache for performing the migration.
+     * This is the current resource version of given group, version and resource when
+     * kube-controller-manager first observes this StorageVersionMigration resource.
+     * 
+ * + * optional string resourceVersion = 2; + */ + public java.lang.String getResourceVersion() { + java.lang.Object ref = resourceVersion_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + resourceVersion_ = s; + } + return s; + } + } + /** + *
+     * ResourceVersion to compare with the GC cache for performing the migration.
+     * This is the current resource version of given group, version and resource when
+     * kube-controller-manager first observes this StorageVersionMigration resource.
+     * 
+ * + * optional string resourceVersion = 2; + */ + public com.google.protobuf.ByteString + getResourceVersionBytes() { + java.lang.Object ref = resourceVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(1, conditions_.get(i)); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resourceVersion_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, conditions_.get(i)); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resourceVersion_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus other = (io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus) obj; + + boolean result = true; + result = result && getConditionsList() + .equals(other.getConditionsList()); + result = result && (hasResourceVersion() == other.hasResourceVersion()); + if (hasResourceVersion()) { + result = result && getResourceVersion() + .equals(other.getResourceVersion()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getConditionsCount() > 0) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getConditionsList().hashCode(); + } + if (hasResourceVersion()) { + hash = (37 * hash) + RESOURCEVERSION_FIELD_NUMBER; + hash = (53 * hash) + getResourceVersion().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Status of the storage version migration.
+     * 
+ * + * Protobuf type {@code k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus) + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.class, io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConditionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + conditionsBuilder_.clear(); + } + resourceVersion_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V1beta1Storagemigration.internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationStatus_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus getDefaultInstanceForType() { + return io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus build() { + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus buildPartial() { + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus result = new io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000001; + } + result.resourceVersion_ = resourceVersion_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus) { + return mergeFrom((io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus other) { + if (other == io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus.getDefaultInstance()) return this; + if (conditionsBuilder_ == null) { + if (!other.conditions_.isEmpty()) { + if (conditions_.isEmpty()) { + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000001); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConditionsFieldBuilder() : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.hasResourceVersion()) { + bitField0_ |= 0x00000002; + resourceVersion_ = other.resourceVersion_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List conditions_ = + java.util.Collections.emptyList(); + private void ensureConditionsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.Meta.Condition, io.kubernetes.client.proto.Meta.Condition.Builder, io.kubernetes.client.proto.Meta.ConditionOrBuilder> conditionsBuilder_; + + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); + } + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public io.kubernetes.client.proto.Meta.Condition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public Builder setConditions( + int index, io.kubernetes.client.proto.Meta.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.set(index, value); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public Builder setConditions( + int index, io.kubernetes.client.proto.Meta.Condition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.set(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public Builder addConditions(io.kubernetes.client.proto.Meta.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(value); + onChanged(); + } else { + conditionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public Builder addConditions( + int index, io.kubernetes.client.proto.Meta.Condition value) { + if (conditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConditionsIsMutable(); + conditions_.add(index, value); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public Builder addConditions( + io.kubernetes.client.proto.Meta.Condition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public Builder addConditions( + int index, io.kubernetes.client.proto.Meta.Condition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); + } else { + conditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + conditionsBuilder_.clear(); + } + return this; + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); + } + return this; + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public io.kubernetes.client.proto.Meta.Condition.Builder getConditionsBuilder( + int index) { + return getConditionsFieldBuilder().getBuilder(index); + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public io.kubernetes.client.proto.Meta.ConditionOrBuilder getConditionsOrBuilder( + int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); } else { + return conditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conditions_); + } + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder().addBuilder( + io.kubernetes.client.proto.Meta.Condition.getDefaultInstance()); + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public io.kubernetes.client.proto.Meta.Condition.Builder addConditionsBuilder( + int index) { + return getConditionsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.Meta.Condition.getDefaultInstance()); + } + /** + *
+       * The latest available observations of the migration's current state.
+       * +patchMergeKey=type
+       * +patchStrategy=merge
+       * +listType=map
+       * +listMapKey=type
+       * +optional
+       * +k8s:alpha(since: "1.37")=+k8s:optional
+       * +k8s:alpha(since: "1.37")=+k8s:listType=map
+       * +k8s:alpha(since: "1.37")=+k8s:listMapKey=type
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1; + */ + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.Meta.Condition, io.kubernetes.client.proto.Meta.Condition.Builder, io.kubernetes.client.proto.Meta.ConditionOrBuilder> + getConditionsFieldBuilder() { + if (conditionsBuilder_ == null) { + conditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.Meta.Condition, io.kubernetes.client.proto.Meta.Condition.Builder, io.kubernetes.client.proto.Meta.ConditionOrBuilder>( + conditions_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + conditions_ = null; + } + return conditionsBuilder_; + } + + private java.lang.Object resourceVersion_ = ""; + /** + *
+       * ResourceVersion to compare with the GC cache for performing the migration.
+       * This is the current resource version of given group, version and resource when
+       * kube-controller-manager first observes this StorageVersionMigration resource.
+       * 
+ * + * optional string resourceVersion = 2; + */ + public boolean hasResourceVersion() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * ResourceVersion to compare with the GC cache for performing the migration.
+       * This is the current resource version of given group, version and resource when
+       * kube-controller-manager first observes this StorageVersionMigration resource.
+       * 
+ * + * optional string resourceVersion = 2; + */ + public java.lang.String getResourceVersion() { + java.lang.Object ref = resourceVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + resourceVersion_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * ResourceVersion to compare with the GC cache for performing the migration.
+       * This is the current resource version of given group, version and resource when
+       * kube-controller-manager first observes this StorageVersionMigration resource.
+       * 
+ * + * optional string resourceVersion = 2; + */ + public com.google.protobuf.ByteString + getResourceVersionBytes() { + java.lang.Object ref = resourceVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resourceVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * ResourceVersion to compare with the GC cache for performing the migration.
+       * This is the current resource version of given group, version and resource when
+       * kube-controller-manager first observes this StorageVersionMigration resource.
+       * 
+ * + * optional string resourceVersion = 2; + */ + public Builder setResourceVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + resourceVersion_ = value; + onChanged(); + return this; + } + /** + *
+       * ResourceVersion to compare with the GC cache for performing the migration.
+       * This is the current resource version of given group, version and resource when
+       * kube-controller-manager first observes this StorageVersionMigration resource.
+       * 
+ * + * optional string resourceVersion = 2; + */ + public Builder clearResourceVersion() { + bitField0_ = (bitField0_ & ~0x00000002); + resourceVersion_ = getDefaultInstance().getResourceVersion(); + onChanged(); + return this; + } + /** + *
+       * ResourceVersion to compare with the GC cache for performing the migration.
+       * This is the current resource version of given group, version and resource when
+       * kube-controller-manager first observes this StorageVersionMigration resource.
+       * 
+ * + * optional string resourceVersion = 2; + */ + public Builder setResourceVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + resourceVersion_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.storagemigration.v1beta1.StorageVersionMigrationStatus) + private static final io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus(); + } + + public static io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StorageVersionMigrationStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StorageVersionMigrationStatus(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V1beta1Storagemigration.StorageVersionMigrationStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigration_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigration_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationSpec_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationSpec_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationStatus_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationStatus_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3k8s.io/api/storagemigration/v1beta1/ge" + + "nerated.proto\022#k8s.io.api.storagemigrati" + + "on.v1beta1\0324k8s.io/apimachinery/pkg/apis" + + "/meta/v1/generated.proto\032/k8s.io/apimach" + + "inery/pkg/runtime/generated.proto\0326k8s.i" + + "o/apimachinery/pkg/runtime/schema/genera" + + "ted.proto\"\201\002\n\027StorageVersionMigration\022B\n" + + "\010metadata\030\001 \001(\01320.k8s.io.apimachinery.pk" + + "g.apis.meta.v1.ObjectMeta\022N\n\004spec\030\002 \001(\0132" + + "@.k8s.io.api.storagemigration.v1beta1.St" + + "orageVersionMigrationSpec\022R\n\006status\030\003 \001(" + + "\0132B.k8s.io.api.storagemigration.v1beta1." + + "StorageVersionMigrationStatus\"\254\001\n\033Storag" + + "eVersionMigrationList\022@\n\010metadata\030\001 \001(\0132" + + "..k8s.io.apimachinery.pkg.apis.meta.v1.L" + + "istMeta\022K\n\005items\030\002 \003(\0132<.k8s.io.api.stor" + + "agemigration.v1beta1.StorageVersionMigra" + + "tion\"d\n\033StorageVersionMigrationSpec\022E\n\010r" + + "esource\030\001 \001(\01323.k8s.io.apimachinery.pkg." + + "apis.meta.v1.GroupResource\"}\n\035StorageVer" + + "sionMigrationStatus\022C\n\nconditions\030\001 \003(\0132" + + "/.k8s.io.apimachinery.pkg.apis.meta.v1.C" + + "ondition\022\027\n\017resourceVersion\030\002 \001(\tBZ\n\032io." + + "kubernetes.client.protoB\027V1beta1Storagem" + + "igrationZ#k8s.io/api/storagemigration/v1" + + "beta1" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.kubernetes.client.proto.Meta.getDescriptor(), + io.kubernetes.client.proto.Runtime.getDescriptor(), + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), + }, assigner); + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigration_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigration_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigration_descriptor, + new java.lang.String[] { "Metadata", "Spec", "Status", }); + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationList_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationSpec_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationSpec_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationSpec_descriptor, + new java.lang.String[] { "Resource", }); + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationStatus_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationStatus_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_storagemigration_v1beta1_StorageVersionMigrationStatus_descriptor, + new java.lang.String[] { "Conditions", "ResourceVersion", }); + io.kubernetes.client.proto.Meta.getDescriptor(); + io.kubernetes.client.proto.Runtime.getDescriptor(); + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto/src/main/java/io/kubernetes/client/proto/V2Apidiscovery.java b/proto/src/main/java/io/kubernetes/client/proto/V2Apidiscovery.java new file mode 100644 index 0000000000..eca88db1fb --- /dev/null +++ b/proto/src/main/java/io/kubernetes/client/proto/V2Apidiscovery.java @@ -0,0 +1,8910 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: k8s.io/api/apidiscovery/v2/generated.proto + +package io.kubernetes.client.proto; + +public final class V2Apidiscovery { + private V2Apidiscovery() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface APIGroupDiscoveryOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apidiscovery.v2.APIGroupDiscovery) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * metadata is standard object's metadata.
+     * The only field completed will be name. For instance, resourceVersion will be empty.
+     * name is the name of the API group whose discovery information is presented here.
+     * name is allowed to be "" to represent the legacy, ungroupified resources.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * metadata is standard object's metadata.
+     * The only field completed will be name. For instance, resourceVersion will be empty.
+     * name is the name of the API group whose discovery information is presented here.
+     * name is allowed to be "" to represent the legacy, ungroupified resources.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * metadata is standard object's metadata.
+     * The only field completed will be name. For instance, resourceVersion will be empty.
+     * name is the name of the API group whose discovery information is presented here.
+     * name is allowed to be "" to represent the legacy, ungroupified resources.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + java.util.List + getVersionsList(); + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery getVersions(int index); + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + int getVersionsCount(); + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + java.util.List + getVersionsOrBuilderList(); + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscoveryOrBuilder getVersionsOrBuilder( + int index); + } + /** + *
+   * APIGroupDiscovery holds information about which resources are being served for all version of the API Group.
+   * It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version.
+   * Versions are in descending order of preference, with the first version being the preferred entry.
+   * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2.APIGroupDiscovery} + */ + public static final class APIGroupDiscovery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apidiscovery.v2.APIGroupDiscovery) + APIGroupDiscoveryOrBuilder { + private static final long serialVersionUID = 0L; + // Use APIGroupDiscovery.newBuilder() to construct. + private APIGroupDiscovery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private APIGroupDiscovery() { + versions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private APIGroupDiscovery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + versions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + versions_.add( + input.readMessage(io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + versions_ = java.util.Collections.unmodifiableList(versions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.class, io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * metadata is standard object's metadata.
+     * The only field completed will be name. For instance, resourceVersion will be empty.
+     * name is the name of the API group whose discovery information is presented here.
+     * name is allowed to be "" to represent the legacy, ungroupified resources.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * metadata is standard object's metadata.
+     * The only field completed will be name. For instance, resourceVersion will be empty.
+     * name is the name of the API group whose discovery information is presented here.
+     * name is allowed to be "" to represent the legacy, ungroupified resources.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * metadata is standard object's metadata.
+     * The only field completed will be name. For instance, resourceVersion will be empty.
+     * name is the name of the API group whose discovery information is presented here.
+     * name is allowed to be "" to represent the legacy, ungroupified resources.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int VERSIONS_FIELD_NUMBER = 2; + private java.util.List versions_; + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public java.util.List getVersionsList() { + return versions_; + } + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public java.util.List + getVersionsOrBuilderList() { + return versions_; + } + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public int getVersionsCount() { + return versions_.size(); + } + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery getVersions(int index) { + return versions_.get(index); + } + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscoveryOrBuilder getVersionsOrBuilder( + int index) { + return versions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < versions_.size(); i++) { + output.writeMessage(2, versions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < versions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, versions_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery other = (io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getVersionsList() + .equals(other.getVersionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getVersionsCount() > 0) { + hash = (37 * hash) + VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getVersionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * APIGroupDiscovery holds information about which resources are being served for all version of the API Group.
+     * It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version.
+     * Versions are in descending order of preference, with the first version being the preferred entry.
+     * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2.APIGroupDiscovery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apidiscovery.v2.APIGroupDiscovery) + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.class, io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getVersionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (versionsBuilder_ == null) { + versions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + versionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscovery_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery getDefaultInstanceForType() { + return io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery build() { + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery buildPartial() { + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery result = new io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (versionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + versions_ = java.util.Collections.unmodifiableList(versions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.versions_ = versions_; + } else { + result.versions_ = versionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery) { + return mergeFrom((io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery other) { + if (other == io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (versionsBuilder_ == null) { + if (!other.versions_.isEmpty()) { + if (versions_.isEmpty()) { + versions_ = other.versions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureVersionsIsMutable(); + versions_.addAll(other.versions_); + } + onChanged(); + } + } else { + if (!other.versions_.isEmpty()) { + if (versionsBuilder_.isEmpty()) { + versionsBuilder_.dispose(); + versionsBuilder_ = null; + versions_ = other.versions_; + bitField0_ = (bitField0_ & ~0x00000002); + versionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVersionsFieldBuilder() : null; + } else { + versionsBuilder_.addAllMessages(other.versions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List versions_ = + java.util.Collections.emptyList(); + private void ensureVersionsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + versions_ = new java.util.ArrayList(versions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery, io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.Builder, io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscoveryOrBuilder> versionsBuilder_; + + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public java.util.List getVersionsList() { + if (versionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(versions_); + } else { + return versionsBuilder_.getMessageList(); + } + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public int getVersionsCount() { + if (versionsBuilder_ == null) { + return versions_.size(); + } else { + return versionsBuilder_.getCount(); + } + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery getVersions(int index) { + if (versionsBuilder_ == null) { + return versions_.get(index); + } else { + return versionsBuilder_.getMessage(index); + } + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public Builder setVersions( + int index, io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery value) { + if (versionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionsIsMutable(); + versions_.set(index, value); + onChanged(); + } else { + versionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public Builder setVersions( + int index, io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.Builder builderForValue) { + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + versions_.set(index, builderForValue.build()); + onChanged(); + } else { + versionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public Builder addVersions(io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery value) { + if (versionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionsIsMutable(); + versions_.add(value); + onChanged(); + } else { + versionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public Builder addVersions( + int index, io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery value) { + if (versionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionsIsMutable(); + versions_.add(index, value); + onChanged(); + } else { + versionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public Builder addVersions( + io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.Builder builderForValue) { + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + versions_.add(builderForValue.build()); + onChanged(); + } else { + versionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public Builder addVersions( + int index, io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.Builder builderForValue) { + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + versions_.add(index, builderForValue.build()); + onChanged(); + } else { + versionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public Builder addAllVersions( + java.lang.Iterable values) { + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, versions_); + onChanged(); + } else { + versionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public Builder clearVersions() { + if (versionsBuilder_ == null) { + versions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + versionsBuilder_.clear(); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public Builder removeVersions(int index) { + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + versions_.remove(index); + onChanged(); + } else { + versionsBuilder_.remove(index); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.Builder getVersionsBuilder( + int index) { + return getVersionsFieldBuilder().getBuilder(index); + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscoveryOrBuilder getVersionsOrBuilder( + int index) { + if (versionsBuilder_ == null) { + return versions_.get(index); } else { + return versionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public java.util.List + getVersionsOrBuilderList() { + if (versionsBuilder_ != null) { + return versionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(versions_); + } + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.Builder addVersionsBuilder() { + return getVersionsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.getDefaultInstance()); + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.Builder addVersionsBuilder( + int index) { + return getVersionsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.getDefaultInstance()); + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIVersionDiscovery versions = 2; + */ + public java.util.List + getVersionsBuilderList() { + return getVersionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery, io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.Builder, io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscoveryOrBuilder> + getVersionsFieldBuilder() { + if (versionsBuilder_ == null) { + versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery, io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.Builder, io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscoveryOrBuilder>( + versions_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + versions_ = null; + } + return versionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apidiscovery.v2.APIGroupDiscovery) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apidiscovery.v2.APIGroupDiscovery) + private static final io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery(); + } + + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public APIGroupDiscovery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new APIGroupDiscovery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface APIGroupDiscoveryListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apidiscovery.v2.APIGroupDiscoveryList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery getItems(int index); + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + int getItemsCount(); + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery.
+   * This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated
+   * list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers)
+   * that a cluster supports.
+   * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2.APIGroupDiscoveryList} + */ + public static final class APIGroupDiscoveryList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apidiscovery.v2.APIGroupDiscoveryList) + APIGroupDiscoveryListOrBuilder { + private static final long serialVersionUID = 0L; + // Use APIGroupDiscoveryList.newBuilder() to construct. + private APIGroupDiscoveryList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private APIGroupDiscoveryList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private APIGroupDiscoveryList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscoveryList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscoveryList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList.class, io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery getItems(int index) { + return items_.get(index); + } + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList other = (io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery.
+     * This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated
+     * list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers)
+     * that a cluster supports.
+     * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2.APIGroupDiscoveryList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apidiscovery.v2.APIGroupDiscoveryList) + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscoveryList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscoveryList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList.class, io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscoveryList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList build() { + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList buildPartial() { + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList result = new io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList) { + return mergeFrom((io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList other) { + if (other == io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery, io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.Builder, io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryOrBuilder> itemsBuilder_; + + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.getDefaultInstance()); + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.getDefaultInstance()); + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIGroupDiscovery items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery, io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.Builder, io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery, io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscovery.Builder, io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apidiscovery.v2.APIGroupDiscoveryList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apidiscovery.v2.APIGroupDiscoveryList) + private static final io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList(); + } + + public static io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public APIGroupDiscoveryList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new APIGroupDiscoveryList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIGroupDiscoveryList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface APIResourceDiscoveryOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apidiscovery.v2.APIResourceDiscovery) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions in the API group.
+     * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+     * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+     * 
+ * + * optional string resource = 1; + */ + boolean hasResource(); + /** + *
+     * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions in the API group.
+     * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+     * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+     * 
+ * + * optional string resource = 1; + */ + java.lang.String getResource(); + /** + *
+     * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions in the API group.
+     * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+     * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+     * 
+ * + * optional string resource = 1; + */ + com.google.protobuf.ByteString + getResourceBytes(); + + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+     * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + boolean hasResponseKind(); + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+     * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + io.kubernetes.client.proto.Meta.GroupVersionKind getResponseKind(); + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+     * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getResponseKindOrBuilder(); + + /** + *
+     * scope indicates the scope of a resource, either Cluster or Namespaced
+     * 
+ * + * optional string scope = 3; + */ + boolean hasScope(); + /** + *
+     * scope indicates the scope of a resource, either Cluster or Namespaced
+     * 
+ * + * optional string scope = 3; + */ + java.lang.String getScope(); + /** + *
+     * scope indicates the scope of a resource, either Cluster or Namespaced
+     * 
+ * + * optional string scope = 3; + */ + com.google.protobuf.ByteString + getScopeBytes(); + + /** + *
+     * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+     * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+     * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+     * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+     * 
+ * + * optional string singularResource = 4; + */ + boolean hasSingularResource(); + /** + *
+     * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+     * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+     * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+     * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+     * 
+ * + * optional string singularResource = 4; + */ + java.lang.String getSingularResource(); + /** + *
+     * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+     * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+     * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+     * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+     * 
+ * + * optional string singularResource = 4; + */ + com.google.protobuf.ByteString + getSingularResourceBytes(); + + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + java.util.List + getVerbsList(); + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + int getVerbsCount(); + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + java.lang.String getVerbs(int index); + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + com.google.protobuf.ByteString + getVerbsBytes(int index); + + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + java.util.List + getShortNamesList(); + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + int getShortNamesCount(); + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + java.lang.String getShortNames(int index); + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + com.google.protobuf.ByteString + getShortNamesBytes(int index); + + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + java.util.List + getCategoriesList(); + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + int getCategoriesCount(); + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + java.lang.String getCategories(int index); + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + com.google.protobuf.ByteString + getCategoriesBytes(int index); + + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + java.util.List + getSubresourcesList(); + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery getSubresources(int index); + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + int getSubresourcesCount(); + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + java.util.List + getSubresourcesOrBuilderList(); + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscoveryOrBuilder getSubresourcesOrBuilder( + int index); + } + /** + *
+   * APIResourceDiscovery provides information about an API resource for discovery.
+   * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2.APIResourceDiscovery} + */ + public static final class APIResourceDiscovery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apidiscovery.v2.APIResourceDiscovery) + APIResourceDiscoveryOrBuilder { + private static final long serialVersionUID = 0L; + // Use APIResourceDiscovery.newBuilder() to construct. + private APIResourceDiscovery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private APIResourceDiscovery() { + resource_ = ""; + scope_ = ""; + singularResource_ = ""; + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + shortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + subresources_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private APIResourceDiscovery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + resource_ = bs; + break; + } + case 18: { + io.kubernetes.client.proto.Meta.GroupVersionKind.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = responseKind_.toBuilder(); + } + responseKind_ = input.readMessage(io.kubernetes.client.proto.Meta.GroupVersionKind.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(responseKind_); + responseKind_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + scope_ = bs; + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + singularResource_ = bs; + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + verbs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + verbs_.add(bs); + break; + } + case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + shortNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + shortNames_.add(bs); + break; + } + case 58: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + categories_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000040; + } + categories_.add(bs); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + subresources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + subresources_.add( + input.readMessage(io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + verbs_ = verbs_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + shortNames_ = shortNames_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + categories_ = categories_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + subresources_ = java.util.Collections.unmodifiableList(subresources_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIResourceDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIResourceDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.class, io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.Builder.class); + } + + private int bitField0_; + public static final int RESOURCE_FIELD_NUMBER = 1; + private volatile java.lang.Object resource_; + /** + *
+     * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions in the API group.
+     * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+     * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+     * 
+ * + * optional string resource = 1; + */ + public boolean hasResource() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions in the API group.
+     * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+     * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+     * 
+ * + * optional string resource = 1; + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + resource_ = s; + } + return s; + } + } + /** + *
+     * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions in the API group.
+     * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+     * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+     * 
+ * + * optional string resource = 1; + */ + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSEKIND_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.Meta.GroupVersionKind responseKind_; + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+     * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public boolean hasResponseKind() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+     * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind getResponseKind() { + return responseKind_ == null ? io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+     * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getResponseKindOrBuilder() { + return responseKind_ == null ? io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } + + public static final int SCOPE_FIELD_NUMBER = 3; + private volatile java.lang.Object scope_; + /** + *
+     * scope indicates the scope of a resource, either Cluster or Namespaced
+     * 
+ * + * optional string scope = 3; + */ + public boolean hasScope() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * scope indicates the scope of a resource, either Cluster or Namespaced
+     * 
+ * + * optional string scope = 3; + */ + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + scope_ = s; + } + return s; + } + } + /** + *
+     * scope indicates the scope of a resource, either Cluster or Namespaced
+     * 
+ * + * optional string scope = 3; + */ + public com.google.protobuf.ByteString + getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SINGULARRESOURCE_FIELD_NUMBER = 4; + private volatile java.lang.Object singularResource_; + /** + *
+     * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+     * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+     * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+     * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+     * 
+ * + * optional string singularResource = 4; + */ + public boolean hasSingularResource() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+     * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+     * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+     * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+     * 
+ * + * optional string singularResource = 4; + */ + public java.lang.String getSingularResource() { + java.lang.Object ref = singularResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + singularResource_ = s; + } + return s; + } + } + /** + *
+     * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+     * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+     * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+     * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+     * 
+ * + * optional string singularResource = 4; + */ + public com.google.protobuf.ByteString + getSingularResourceBytes() { + java.lang.Object ref = singularResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + singularResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERBS_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList verbs_; + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + public com.google.protobuf.ProtocolStringList + getVerbsList() { + return verbs_; + } + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + public int getVerbsCount() { + return verbs_.size(); + } + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + public java.lang.String getVerbs(int index) { + return verbs_.get(index); + } + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + public com.google.protobuf.ByteString + getVerbsBytes(int index) { + return verbs_.getByteString(index); + } + + public static final int SHORTNAMES_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList shortNames_; + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + public com.google.protobuf.ProtocolStringList + getShortNamesList() { + return shortNames_; + } + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + public int getShortNamesCount() { + return shortNames_.size(); + } + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + public java.lang.String getShortNames(int index) { + return shortNames_.get(index); + } + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + public com.google.protobuf.ByteString + getShortNamesBytes(int index) { + return shortNames_.getByteString(index); + } + + public static final int CATEGORIES_FIELD_NUMBER = 7; + private com.google.protobuf.LazyStringList categories_; + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + public com.google.protobuf.ProtocolStringList + getCategoriesList() { + return categories_; + } + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + public int getCategoriesCount() { + return categories_.size(); + } + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + public java.lang.String getCategories(int index) { + return categories_.get(index); + } + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + public com.google.protobuf.ByteString + getCategoriesBytes(int index) { + return categories_.getByteString(index); + } + + public static final int SUBRESOURCES_FIELD_NUMBER = 8; + private java.util.List subresources_; + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public java.util.List getSubresourcesList() { + return subresources_; + } + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public java.util.List + getSubresourcesOrBuilderList() { + return subresources_; + } + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public int getSubresourcesCount() { + return subresources_.size(); + } + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery getSubresources(int index) { + return subresources_.get(index); + } + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscoveryOrBuilder getSubresourcesOrBuilder( + int index) { + return subresources_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getResponseKind()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, scope_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, singularResource_); + } + for (int i = 0; i < verbs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, verbs_.getRaw(i)); + } + for (int i = 0; i < shortNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, shortNames_.getRaw(i)); + } + for (int i = 0; i < categories_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, categories_.getRaw(i)); + } + for (int i = 0; i < subresources_.size(); i++) { + output.writeMessage(8, subresources_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getResponseKind()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, scope_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, singularResource_); + } + { + int dataSize = 0; + for (int i = 0; i < verbs_.size(); i++) { + dataSize += computeStringSizeNoTag(verbs_.getRaw(i)); + } + size += dataSize; + size += 1 * getVerbsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < shortNames_.size(); i++) { + dataSize += computeStringSizeNoTag(shortNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getShortNamesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < categories_.size(); i++) { + dataSize += computeStringSizeNoTag(categories_.getRaw(i)); + } + size += dataSize; + size += 1 * getCategoriesList().size(); + } + for (int i = 0; i < subresources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, subresources_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery other = (io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery) obj; + + boolean result = true; + result = result && (hasResource() == other.hasResource()); + if (hasResource()) { + result = result && getResource() + .equals(other.getResource()); + } + result = result && (hasResponseKind() == other.hasResponseKind()); + if (hasResponseKind()) { + result = result && getResponseKind() + .equals(other.getResponseKind()); + } + result = result && (hasScope() == other.hasScope()); + if (hasScope()) { + result = result && getScope() + .equals(other.getScope()); + } + result = result && (hasSingularResource() == other.hasSingularResource()); + if (hasSingularResource()) { + result = result && getSingularResource() + .equals(other.getSingularResource()); + } + result = result && getVerbsList() + .equals(other.getVerbsList()); + result = result && getShortNamesList() + .equals(other.getShortNamesList()); + result = result && getCategoriesList() + .equals(other.getCategoriesList()); + result = result && getSubresourcesList() + .equals(other.getSubresourcesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResource()) { + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + } + if (hasResponseKind()) { + hash = (37 * hash) + RESPONSEKIND_FIELD_NUMBER; + hash = (53 * hash) + getResponseKind().hashCode(); + } + if (hasScope()) { + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + } + if (hasSingularResource()) { + hash = (37 * hash) + SINGULARRESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSingularResource().hashCode(); + } + if (getVerbsCount() > 0) { + hash = (37 * hash) + VERBS_FIELD_NUMBER; + hash = (53 * hash) + getVerbsList().hashCode(); + } + if (getShortNamesCount() > 0) { + hash = (37 * hash) + SHORTNAMES_FIELD_NUMBER; + hash = (53 * hash) + getShortNamesList().hashCode(); + } + if (getCategoriesCount() > 0) { + hash = (37 * hash) + CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + getCategoriesList().hashCode(); + } + if (getSubresourcesCount() > 0) { + hash = (37 * hash) + SUBRESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getSubresourcesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * APIResourceDiscovery provides information about an API resource for discovery.
+     * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2.APIResourceDiscovery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apidiscovery.v2.APIResourceDiscovery) + io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscoveryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIResourceDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIResourceDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.class, io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResponseKindFieldBuilder(); + getSubresourcesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resource_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (responseKindBuilder_ == null) { + responseKind_ = null; + } else { + responseKindBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + scope_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + singularResource_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + shortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + if (subresourcesBuilder_ == null) { + subresources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + subresourcesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIResourceDiscovery_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery getDefaultInstanceForType() { + return io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery build() { + io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery buildPartial() { + io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery result = new io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.resource_ = resource_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (responseKindBuilder_ == null) { + result.responseKind_ = responseKind_; + } else { + result.responseKind_ = responseKindBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.scope_ = scope_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.singularResource_ = singularResource_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + verbs_ = verbs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.verbs_ = verbs_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + shortNames_ = shortNames_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.shortNames_ = shortNames_; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + categories_ = categories_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.categories_ = categories_; + if (subresourcesBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + subresources_ = java.util.Collections.unmodifiableList(subresources_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.subresources_ = subresources_; + } else { + result.subresources_ = subresourcesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery) { + return mergeFrom((io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery other) { + if (other == io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.getDefaultInstance()) return this; + if (other.hasResource()) { + bitField0_ |= 0x00000001; + resource_ = other.resource_; + onChanged(); + } + if (other.hasResponseKind()) { + mergeResponseKind(other.getResponseKind()); + } + if (other.hasScope()) { + bitField0_ |= 0x00000004; + scope_ = other.scope_; + onChanged(); + } + if (other.hasSingularResource()) { + bitField0_ |= 0x00000008; + singularResource_ = other.singularResource_; + onChanged(); + } + if (!other.verbs_.isEmpty()) { + if (verbs_.isEmpty()) { + verbs_ = other.verbs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureVerbsIsMutable(); + verbs_.addAll(other.verbs_); + } + onChanged(); + } + if (!other.shortNames_.isEmpty()) { + if (shortNames_.isEmpty()) { + shortNames_ = other.shortNames_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureShortNamesIsMutable(); + shortNames_.addAll(other.shortNames_); + } + onChanged(); + } + if (!other.categories_.isEmpty()) { + if (categories_.isEmpty()) { + categories_ = other.categories_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureCategoriesIsMutable(); + categories_.addAll(other.categories_); + } + onChanged(); + } + if (subresourcesBuilder_ == null) { + if (!other.subresources_.isEmpty()) { + if (subresources_.isEmpty()) { + subresources_ = other.subresources_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureSubresourcesIsMutable(); + subresources_.addAll(other.subresources_); + } + onChanged(); + } + } else { + if (!other.subresources_.isEmpty()) { + if (subresourcesBuilder_.isEmpty()) { + subresourcesBuilder_.dispose(); + subresourcesBuilder_ = null; + subresources_ = other.subresources_; + bitField0_ = (bitField0_ & ~0x00000080); + subresourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubresourcesFieldBuilder() : null; + } else { + subresourcesBuilder_.addAllMessages(other.subresources_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object resource_ = ""; + /** + *
+       * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions in the API group.
+       * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+       * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+       * 
+ * + * optional string resource = 1; + */ + public boolean hasResource() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions in the API group.
+       * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+       * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+       * 
+ * + * optional string resource = 1; + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + resource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions in the API group.
+       * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+       * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+       * 
+ * + * optional string resource = 1; + */ + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions in the API group.
+       * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+       * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+       * 
+ * + * optional string resource = 1; + */ + public Builder setResource( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + resource_ = value; + onChanged(); + return this; + } + /** + *
+       * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions in the API group.
+       * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+       * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+       * 
+ * + * optional string resource = 1; + */ + public Builder clearResource() { + bitField0_ = (bitField0_ & ~0x00000001); + resource_ = getDefaultInstance().getResource(); + onChanged(); + return this; + } + /** + *
+       * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions in the API group.
+       * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+       * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+       * 
+ * + * optional string resource = 1; + */ + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + resource_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.Meta.GroupVersionKind responseKind_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder> responseKindBuilder_; + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public boolean hasResponseKind() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind getResponseKind() { + if (responseKindBuilder_ == null) { + return responseKind_ == null ? io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } else { + return responseKindBuilder_.getMessage(); + } + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder setResponseKind(io.kubernetes.client.proto.Meta.GroupVersionKind value) { + if (responseKindBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + responseKind_ = value; + onChanged(); + } else { + responseKindBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder setResponseKind( + io.kubernetes.client.proto.Meta.GroupVersionKind.Builder builderForValue) { + if (responseKindBuilder_ == null) { + responseKind_ = builderForValue.build(); + onChanged(); + } else { + responseKindBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder mergeResponseKind(io.kubernetes.client.proto.Meta.GroupVersionKind value) { + if (responseKindBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + responseKind_ != null && + responseKind_ != io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance()) { + responseKind_ = + io.kubernetes.client.proto.Meta.GroupVersionKind.newBuilder(responseKind_).mergeFrom(value).buildPartial(); + } else { + responseKind_ = value; + } + onChanged(); + } else { + responseKindBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder clearResponseKind() { + if (responseKindBuilder_ == null) { + responseKind_ = null; + onChanged(); + } else { + responseKindBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind.Builder getResponseKindBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getResponseKindFieldBuilder().getBuilder(); + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getResponseKindOrBuilder() { + if (responseKindBuilder_ != null) { + return responseKindBuilder_.getMessageOrBuilder(); + } else { + return responseKind_ == null ? + io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder> + getResponseKindFieldBuilder() { + if (responseKindBuilder_ == null) { + responseKindBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder>( + getResponseKind(), + getParentForChildren(), + isClean()); + responseKind_ = null; + } + return responseKindBuilder_; + } + + private java.lang.Object scope_ = ""; + /** + *
+       * scope indicates the scope of a resource, either Cluster or Namespaced
+       * 
+ * + * optional string scope = 3; + */ + public boolean hasScope() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * scope indicates the scope of a resource, either Cluster or Namespaced
+       * 
+ * + * optional string scope = 3; + */ + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + scope_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * scope indicates the scope of a resource, either Cluster or Namespaced
+       * 
+ * + * optional string scope = 3; + */ + public com.google.protobuf.ByteString + getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * scope indicates the scope of a resource, either Cluster or Namespaced
+       * 
+ * + * optional string scope = 3; + */ + public Builder setScope( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + scope_ = value; + onChanged(); + return this; + } + /** + *
+       * scope indicates the scope of a resource, either Cluster or Namespaced
+       * 
+ * + * optional string scope = 3; + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000004); + scope_ = getDefaultInstance().getScope(); + onChanged(); + return this; + } + /** + *
+       * scope indicates the scope of a resource, either Cluster or Namespaced
+       * 
+ * + * optional string scope = 3; + */ + public Builder setScopeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + scope_ = value; + onChanged(); + return this; + } + + private java.lang.Object singularResource_ = ""; + /** + *
+       * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+       * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+       * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+       * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+       * 
+ * + * optional string singularResource = 4; + */ + public boolean hasSingularResource() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+       * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+       * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+       * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+       * 
+ * + * optional string singularResource = 4; + */ + public java.lang.String getSingularResource() { + java.lang.Object ref = singularResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + singularResource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+       * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+       * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+       * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+       * 
+ * + * optional string singularResource = 4; + */ + public com.google.protobuf.ByteString + getSingularResourceBytes() { + java.lang.Object ref = singularResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + singularResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+       * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+       * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+       * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+       * 
+ * + * optional string singularResource = 4; + */ + public Builder setSingularResource( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + singularResource_ = value; + onChanged(); + return this; + } + /** + *
+       * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+       * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+       * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+       * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+       * 
+ * + * optional string singularResource = 4; + */ + public Builder clearSingularResource() { + bitField0_ = (bitField0_ & ~0x00000008); + singularResource_ = getDefaultInstance().getSingularResource(); + onChanged(); + return this; + } + /** + *
+       * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+       * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+       * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+       * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+       * 
+ * + * optional string singularResource = 4; + */ + public Builder setSingularResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + singularResource_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureVerbsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + verbs_ = new com.google.protobuf.LazyStringArrayList(verbs_); + bitField0_ |= 0x00000010; + } + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public com.google.protobuf.ProtocolStringList + getVerbsList() { + return verbs_.getUnmodifiableView(); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public int getVerbsCount() { + return verbs_.size(); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public java.lang.String getVerbs(int index) { + return verbs_.get(index); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public com.google.protobuf.ByteString + getVerbsBytes(int index) { + return verbs_.getByteString(index); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public Builder setVerbs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public Builder addVerbs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.add(value); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public Builder addAllVerbs( + java.lang.Iterable values) { + ensureVerbsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, verbs_); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public Builder clearVerbs() { + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public Builder addVerbsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList shortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureShortNamesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + shortNames_ = new com.google.protobuf.LazyStringArrayList(shortNames_); + bitField0_ |= 0x00000020; + } + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public com.google.protobuf.ProtocolStringList + getShortNamesList() { + return shortNames_.getUnmodifiableView(); + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public int getShortNamesCount() { + return shortNames_.size(); + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public java.lang.String getShortNames(int index) { + return shortNames_.get(index); + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public com.google.protobuf.ByteString + getShortNamesBytes(int index) { + return shortNames_.getByteString(index); + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public Builder setShortNames( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureShortNamesIsMutable(); + shortNames_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public Builder addShortNames( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureShortNamesIsMutable(); + shortNames_.add(value); + onChanged(); + return this; + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public Builder addAllShortNames( + java.lang.Iterable values) { + ensureShortNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shortNames_); + onChanged(); + return this; + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public Builder clearShortNames() { + shortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public Builder addShortNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureShortNamesIsMutable(); + shortNames_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCategoriesIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + categories_ = new com.google.protobuf.LazyStringArrayList(categories_); + bitField0_ |= 0x00000040; + } + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public com.google.protobuf.ProtocolStringList + getCategoriesList() { + return categories_.getUnmodifiableView(); + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public int getCategoriesCount() { + return categories_.size(); + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public java.lang.String getCategories(int index) { + return categories_.get(index); + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public com.google.protobuf.ByteString + getCategoriesBytes(int index) { + return categories_.getByteString(index); + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public Builder setCategories( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoriesIsMutable(); + categories_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public Builder addCategories( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoriesIsMutable(); + categories_.add(value); + onChanged(); + return this; + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public Builder addAllCategories( + java.lang.Iterable values) { + ensureCategoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, categories_); + onChanged(); + return this; + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public Builder clearCategories() { + categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public Builder addCategoriesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoriesIsMutable(); + categories_.add(value); + onChanged(); + return this; + } + + private java.util.List subresources_ = + java.util.Collections.emptyList(); + private void ensureSubresourcesIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + subresources_ = new java.util.ArrayList(subresources_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery, io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.Builder, io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscoveryOrBuilder> subresourcesBuilder_; + + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public java.util.List getSubresourcesList() { + if (subresourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(subresources_); + } else { + return subresourcesBuilder_.getMessageList(); + } + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public int getSubresourcesCount() { + if (subresourcesBuilder_ == null) { + return subresources_.size(); + } else { + return subresourcesBuilder_.getCount(); + } + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery getSubresources(int index) { + if (subresourcesBuilder_ == null) { + return subresources_.get(index); + } else { + return subresourcesBuilder_.getMessage(index); + } + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public Builder setSubresources( + int index, io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery value) { + if (subresourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubresourcesIsMutable(); + subresources_.set(index, value); + onChanged(); + } else { + subresourcesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public Builder setSubresources( + int index, io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.Builder builderForValue) { + if (subresourcesBuilder_ == null) { + ensureSubresourcesIsMutable(); + subresources_.set(index, builderForValue.build()); + onChanged(); + } else { + subresourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public Builder addSubresources(io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery value) { + if (subresourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubresourcesIsMutable(); + subresources_.add(value); + onChanged(); + } else { + subresourcesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public Builder addSubresources( + int index, io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery value) { + if (subresourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubresourcesIsMutable(); + subresources_.add(index, value); + onChanged(); + } else { + subresourcesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public Builder addSubresources( + io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.Builder builderForValue) { + if (subresourcesBuilder_ == null) { + ensureSubresourcesIsMutable(); + subresources_.add(builderForValue.build()); + onChanged(); + } else { + subresourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public Builder addSubresources( + int index, io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.Builder builderForValue) { + if (subresourcesBuilder_ == null) { + ensureSubresourcesIsMutable(); + subresources_.add(index, builderForValue.build()); + onChanged(); + } else { + subresourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public Builder addAllSubresources( + java.lang.Iterable values) { + if (subresourcesBuilder_ == null) { + ensureSubresourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subresources_); + onChanged(); + } else { + subresourcesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public Builder clearSubresources() { + if (subresourcesBuilder_ == null) { + subresources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + subresourcesBuilder_.clear(); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public Builder removeSubresources(int index) { + if (subresourcesBuilder_ == null) { + ensureSubresourcesIsMutable(); + subresources_.remove(index); + onChanged(); + } else { + subresourcesBuilder_.remove(index); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.Builder getSubresourcesBuilder( + int index) { + return getSubresourcesFieldBuilder().getBuilder(index); + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscoveryOrBuilder getSubresourcesOrBuilder( + int index) { + if (subresourcesBuilder_ == null) { + return subresources_.get(index); } else { + return subresourcesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public java.util.List + getSubresourcesOrBuilderList() { + if (subresourcesBuilder_ != null) { + return subresourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subresources_); + } + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.Builder addSubresourcesBuilder() { + return getSubresourcesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.getDefaultInstance()); + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.Builder addSubresourcesBuilder( + int index) { + return getSubresourcesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.getDefaultInstance()); + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APISubresourceDiscovery subresources = 8; + */ + public java.util.List + getSubresourcesBuilderList() { + return getSubresourcesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery, io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.Builder, io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscoveryOrBuilder> + getSubresourcesFieldBuilder() { + if (subresourcesBuilder_ == null) { + subresourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery, io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.Builder, io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscoveryOrBuilder>( + subresources_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + subresources_ = null; + } + return subresourcesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apidiscovery.v2.APIResourceDiscovery) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apidiscovery.v2.APIResourceDiscovery) + private static final io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery(); + } + + public static io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public APIResourceDiscovery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new APIResourceDiscovery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface APISubresourceDiscoveryOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apidiscovery.v2.APISubresourceDiscovery) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions.
+     * 
+ * + * optional string subresource = 1; + */ + boolean hasSubresource(); + /** + *
+     * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions.
+     * 
+ * + * optional string subresource = 1; + */ + java.lang.String getSubresource(); + /** + *
+     * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions.
+     * 
+ * + * optional string subresource = 1; + */ + com.google.protobuf.ByteString + getSubresourceBytes(); + + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * Some subresources do not return normal resources, these will have null or empty return types.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + boolean hasResponseKind(); + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * Some subresources do not return normal resources, these will have null or empty return types.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + io.kubernetes.client.proto.Meta.GroupVersionKind getResponseKind(); + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * Some subresources do not return normal resources, these will have null or empty return types.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getResponseKindOrBuilder(); + + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + java.util.List + getAcceptedTypesList(); + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + io.kubernetes.client.proto.Meta.GroupVersionKind getAcceptedTypes(int index); + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + int getAcceptedTypesCount(); + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + java.util.List + getAcceptedTypesOrBuilderList(); + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getAcceptedTypesOrBuilder( + int index); + + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + java.util.List + getVerbsList(); + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + int getVerbsCount(); + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + java.lang.String getVerbs(int index); + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + com.google.protobuf.ByteString + getVerbsBytes(int index); + } + /** + *
+   * APISubresourceDiscovery provides information about an API subresource for discovery.
+   * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2.APISubresourceDiscovery} + */ + public static final class APISubresourceDiscovery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apidiscovery.v2.APISubresourceDiscovery) + APISubresourceDiscoveryOrBuilder { + private static final long serialVersionUID = 0L; + // Use APISubresourceDiscovery.newBuilder() to construct. + private APISubresourceDiscovery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private APISubresourceDiscovery() { + subresource_ = ""; + acceptedTypes_ = java.util.Collections.emptyList(); + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private APISubresourceDiscovery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + subresource_ = bs; + break; + } + case 18: { + io.kubernetes.client.proto.Meta.GroupVersionKind.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = responseKind_.toBuilder(); + } + responseKind_ = input.readMessage(io.kubernetes.client.proto.Meta.GroupVersionKind.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(responseKind_); + responseKind_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + acceptedTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + acceptedTypes_.add( + input.readMessage(io.kubernetes.client.proto.Meta.GroupVersionKind.PARSER, extensionRegistry)); + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + verbs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + verbs_.add(bs); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + acceptedTypes_ = java.util.Collections.unmodifiableList(acceptedTypes_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + verbs_ = verbs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APISubresourceDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APISubresourceDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.class, io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.Builder.class); + } + + private int bitField0_; + public static final int SUBRESOURCE_FIELD_NUMBER = 1; + private volatile java.lang.Object subresource_; + /** + *
+     * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions.
+     * 
+ * + * optional string subresource = 1; + */ + public boolean hasSubresource() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions.
+     * 
+ * + * optional string subresource = 1; + */ + public java.lang.String getSubresource() { + java.lang.Object ref = subresource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + subresource_ = s; + } + return s; + } + } + /** + *
+     * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions.
+     * 
+ * + * optional string subresource = 1; + */ + public com.google.protobuf.ByteString + getSubresourceBytes() { + java.lang.Object ref = subresource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subresource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSEKIND_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.Meta.GroupVersionKind responseKind_; + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * Some subresources do not return normal resources, these will have null or empty return types.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public boolean hasResponseKind() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * Some subresources do not return normal resources, these will have null or empty return types.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind getResponseKind() { + return responseKind_ == null ? io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * Some subresources do not return normal resources, these will have null or empty return types.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getResponseKindOrBuilder() { + return responseKind_ == null ? io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } + + public static final int ACCEPTEDTYPES_FIELD_NUMBER = 3; + private java.util.List acceptedTypes_; + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public java.util.List getAcceptedTypesList() { + return acceptedTypes_; + } + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public java.util.List + getAcceptedTypesOrBuilderList() { + return acceptedTypes_; + } + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public int getAcceptedTypesCount() { + return acceptedTypes_.size(); + } + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind getAcceptedTypes(int index) { + return acceptedTypes_.get(index); + } + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getAcceptedTypesOrBuilder( + int index) { + return acceptedTypes_.get(index); + } + + public static final int VERBS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList verbs_; + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + public com.google.protobuf.ProtocolStringList + getVerbsList() { + return verbs_; + } + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + public int getVerbsCount() { + return verbs_.size(); + } + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + public java.lang.String getVerbs(int index) { + return verbs_.get(index); + } + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + public com.google.protobuf.ByteString + getVerbsBytes(int index) { + return verbs_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subresource_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getResponseKind()); + } + for (int i = 0; i < acceptedTypes_.size(); i++) { + output.writeMessage(3, acceptedTypes_.get(i)); + } + for (int i = 0; i < verbs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verbs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subresource_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getResponseKind()); + } + for (int i = 0; i < acceptedTypes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, acceptedTypes_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < verbs_.size(); i++) { + dataSize += computeStringSizeNoTag(verbs_.getRaw(i)); + } + size += dataSize; + size += 1 * getVerbsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery other = (io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery) obj; + + boolean result = true; + result = result && (hasSubresource() == other.hasSubresource()); + if (hasSubresource()) { + result = result && getSubresource() + .equals(other.getSubresource()); + } + result = result && (hasResponseKind() == other.hasResponseKind()); + if (hasResponseKind()) { + result = result && getResponseKind() + .equals(other.getResponseKind()); + } + result = result && getAcceptedTypesList() + .equals(other.getAcceptedTypesList()); + result = result && getVerbsList() + .equals(other.getVerbsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSubresource()) { + hash = (37 * hash) + SUBRESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSubresource().hashCode(); + } + if (hasResponseKind()) { + hash = (37 * hash) + RESPONSEKIND_FIELD_NUMBER; + hash = (53 * hash) + getResponseKind().hashCode(); + } + if (getAcceptedTypesCount() > 0) { + hash = (37 * hash) + ACCEPTEDTYPES_FIELD_NUMBER; + hash = (53 * hash) + getAcceptedTypesList().hashCode(); + } + if (getVerbsCount() > 0) { + hash = (37 * hash) + VERBS_FIELD_NUMBER; + hash = (53 * hash) + getVerbsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * APISubresourceDiscovery provides information about an API subresource for discovery.
+     * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2.APISubresourceDiscovery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apidiscovery.v2.APISubresourceDiscovery) + io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscoveryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APISubresourceDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APISubresourceDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.class, io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResponseKindFieldBuilder(); + getAcceptedTypesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + subresource_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (responseKindBuilder_ == null) { + responseKind_ = null; + } else { + responseKindBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (acceptedTypesBuilder_ == null) { + acceptedTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + acceptedTypesBuilder_.clear(); + } + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APISubresourceDiscovery_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery getDefaultInstanceForType() { + return io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery build() { + io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery buildPartial() { + io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery result = new io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.subresource_ = subresource_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (responseKindBuilder_ == null) { + result.responseKind_ = responseKind_; + } else { + result.responseKind_ = responseKindBuilder_.build(); + } + if (acceptedTypesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + acceptedTypes_ = java.util.Collections.unmodifiableList(acceptedTypes_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.acceptedTypes_ = acceptedTypes_; + } else { + result.acceptedTypes_ = acceptedTypesBuilder_.build(); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + verbs_ = verbs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.verbs_ = verbs_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery) { + return mergeFrom((io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery other) { + if (other == io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery.getDefaultInstance()) return this; + if (other.hasSubresource()) { + bitField0_ |= 0x00000001; + subresource_ = other.subresource_; + onChanged(); + } + if (other.hasResponseKind()) { + mergeResponseKind(other.getResponseKind()); + } + if (acceptedTypesBuilder_ == null) { + if (!other.acceptedTypes_.isEmpty()) { + if (acceptedTypes_.isEmpty()) { + acceptedTypes_ = other.acceptedTypes_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAcceptedTypesIsMutable(); + acceptedTypes_.addAll(other.acceptedTypes_); + } + onChanged(); + } + } else { + if (!other.acceptedTypes_.isEmpty()) { + if (acceptedTypesBuilder_.isEmpty()) { + acceptedTypesBuilder_.dispose(); + acceptedTypesBuilder_ = null; + acceptedTypes_ = other.acceptedTypes_; + bitField0_ = (bitField0_ & ~0x00000004); + acceptedTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAcceptedTypesFieldBuilder() : null; + } else { + acceptedTypesBuilder_.addAllMessages(other.acceptedTypes_); + } + } + } + if (!other.verbs_.isEmpty()) { + if (verbs_.isEmpty()) { + verbs_ = other.verbs_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureVerbsIsMutable(); + verbs_.addAll(other.verbs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object subresource_ = ""; + /** + *
+       * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions.
+       * 
+ * + * optional string subresource = 1; + */ + public boolean hasSubresource() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions.
+       * 
+ * + * optional string subresource = 1; + */ + public java.lang.String getSubresource() { + java.lang.Object ref = subresource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + subresource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions.
+       * 
+ * + * optional string subresource = 1; + */ + public com.google.protobuf.ByteString + getSubresourceBytes() { + java.lang.Object ref = subresource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subresource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions.
+       * 
+ * + * optional string subresource = 1; + */ + public Builder setSubresource( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + subresource_ = value; + onChanged(); + return this; + } + /** + *
+       * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions.
+       * 
+ * + * optional string subresource = 1; + */ + public Builder clearSubresource() { + bitField0_ = (bitField0_ & ~0x00000001); + subresource_ = getDefaultInstance().getSubresource(); + onChanged(); + return this; + } + /** + *
+       * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions.
+       * 
+ * + * optional string subresource = 1; + */ + public Builder setSubresourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + subresource_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.Meta.GroupVersionKind responseKind_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder> responseKindBuilder_; + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public boolean hasResponseKind() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind getResponseKind() { + if (responseKindBuilder_ == null) { + return responseKind_ == null ? io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } else { + return responseKindBuilder_.getMessage(); + } + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder setResponseKind(io.kubernetes.client.proto.Meta.GroupVersionKind value) { + if (responseKindBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + responseKind_ = value; + onChanged(); + } else { + responseKindBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder setResponseKind( + io.kubernetes.client.proto.Meta.GroupVersionKind.Builder builderForValue) { + if (responseKindBuilder_ == null) { + responseKind_ = builderForValue.build(); + onChanged(); + } else { + responseKindBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder mergeResponseKind(io.kubernetes.client.proto.Meta.GroupVersionKind value) { + if (responseKindBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + responseKind_ != null && + responseKind_ != io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance()) { + responseKind_ = + io.kubernetes.client.proto.Meta.GroupVersionKind.newBuilder(responseKind_).mergeFrom(value).buildPartial(); + } else { + responseKind_ = value; + } + onChanged(); + } else { + responseKindBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder clearResponseKind() { + if (responseKindBuilder_ == null) { + responseKind_ = null; + onChanged(); + } else { + responseKindBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind.Builder getResponseKindBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getResponseKindFieldBuilder().getBuilder(); + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getResponseKindOrBuilder() { + if (responseKindBuilder_ != null) { + return responseKindBuilder_.getMessageOrBuilder(); + } else { + return responseKind_ == null ? + io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder> + getResponseKindFieldBuilder() { + if (responseKindBuilder_ == null) { + responseKindBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder>( + getResponseKind(), + getParentForChildren(), + isClean()); + responseKind_ = null; + } + return responseKindBuilder_; + } + + private java.util.List acceptedTypes_ = + java.util.Collections.emptyList(); + private void ensureAcceptedTypesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + acceptedTypes_ = new java.util.ArrayList(acceptedTypes_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder> acceptedTypesBuilder_; + + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public java.util.List getAcceptedTypesList() { + if (acceptedTypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(acceptedTypes_); + } else { + return acceptedTypesBuilder_.getMessageList(); + } + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public int getAcceptedTypesCount() { + if (acceptedTypesBuilder_ == null) { + return acceptedTypes_.size(); + } else { + return acceptedTypesBuilder_.getCount(); + } + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind getAcceptedTypes(int index) { + if (acceptedTypesBuilder_ == null) { + return acceptedTypes_.get(index); + } else { + return acceptedTypesBuilder_.getMessage(index); + } + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder setAcceptedTypes( + int index, io.kubernetes.client.proto.Meta.GroupVersionKind value) { + if (acceptedTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceptedTypesIsMutable(); + acceptedTypes_.set(index, value); + onChanged(); + } else { + acceptedTypesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder setAcceptedTypes( + int index, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder builderForValue) { + if (acceptedTypesBuilder_ == null) { + ensureAcceptedTypesIsMutable(); + acceptedTypes_.set(index, builderForValue.build()); + onChanged(); + } else { + acceptedTypesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder addAcceptedTypes(io.kubernetes.client.proto.Meta.GroupVersionKind value) { + if (acceptedTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceptedTypesIsMutable(); + acceptedTypes_.add(value); + onChanged(); + } else { + acceptedTypesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder addAcceptedTypes( + int index, io.kubernetes.client.proto.Meta.GroupVersionKind value) { + if (acceptedTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceptedTypesIsMutable(); + acceptedTypes_.add(index, value); + onChanged(); + } else { + acceptedTypesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder addAcceptedTypes( + io.kubernetes.client.proto.Meta.GroupVersionKind.Builder builderForValue) { + if (acceptedTypesBuilder_ == null) { + ensureAcceptedTypesIsMutable(); + acceptedTypes_.add(builderForValue.build()); + onChanged(); + } else { + acceptedTypesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder addAcceptedTypes( + int index, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder builderForValue) { + if (acceptedTypesBuilder_ == null) { + ensureAcceptedTypesIsMutable(); + acceptedTypes_.add(index, builderForValue.build()); + onChanged(); + } else { + acceptedTypesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder addAllAcceptedTypes( + java.lang.Iterable values) { + if (acceptedTypesBuilder_ == null) { + ensureAcceptedTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, acceptedTypes_); + onChanged(); + } else { + acceptedTypesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder clearAcceptedTypes() { + if (acceptedTypesBuilder_ == null) { + acceptedTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + acceptedTypesBuilder_.clear(); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder removeAcceptedTypes(int index) { + if (acceptedTypesBuilder_ == null) { + ensureAcceptedTypesIsMutable(); + acceptedTypes_.remove(index); + onChanged(); + } else { + acceptedTypesBuilder_.remove(index); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind.Builder getAcceptedTypesBuilder( + int index) { + return getAcceptedTypesFieldBuilder().getBuilder(index); + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getAcceptedTypesOrBuilder( + int index) { + if (acceptedTypesBuilder_ == null) { + return acceptedTypes_.get(index); } else { + return acceptedTypesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public java.util.List + getAcceptedTypesOrBuilderList() { + if (acceptedTypesBuilder_ != null) { + return acceptedTypesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(acceptedTypes_); + } + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind.Builder addAcceptedTypesBuilder() { + return getAcceptedTypesFieldBuilder().addBuilder( + io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance()); + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind.Builder addAcceptedTypesBuilder( + int index) { + return getAcceptedTypesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance()); + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public java.util.List + getAcceptedTypesBuilderList() { + return getAcceptedTypesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder> + getAcceptedTypesFieldBuilder() { + if (acceptedTypesBuilder_ == null) { + acceptedTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder>( + acceptedTypes_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + acceptedTypes_ = null; + } + return acceptedTypesBuilder_; + } + + private com.google.protobuf.LazyStringList verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureVerbsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + verbs_ = new com.google.protobuf.LazyStringArrayList(verbs_); + bitField0_ |= 0x00000008; + } + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public com.google.protobuf.ProtocolStringList + getVerbsList() { + return verbs_.getUnmodifiableView(); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public int getVerbsCount() { + return verbs_.size(); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public java.lang.String getVerbs(int index) { + return verbs_.get(index); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public com.google.protobuf.ByteString + getVerbsBytes(int index) { + return verbs_.getByteString(index); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public Builder setVerbs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public Builder addVerbs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.add(value); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public Builder addAllVerbs( + java.lang.Iterable values) { + ensureVerbsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, verbs_); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public Builder clearVerbs() { + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public Builder addVerbsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apidiscovery.v2.APISubresourceDiscovery) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apidiscovery.v2.APISubresourceDiscovery) + private static final io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery(); + } + + public static io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public APISubresourceDiscovery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new APISubresourceDiscovery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APISubresourceDiscovery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface APIVersionDiscoveryOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apidiscovery.v2.APIVersionDiscovery) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * version is the name of the version within a group version.
+     * 
+ * + * optional string version = 1; + */ + boolean hasVersion(); + /** + *
+     * version is the name of the version within a group version.
+     * 
+ * + * optional string version = 1; + */ + java.lang.String getVersion(); + /** + *
+     * version is the name of the version within a group version.
+     * 
+ * + * optional string version = 1; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + java.util.List + getResourcesList(); + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery getResources(int index); + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + int getResourcesCount(); + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + java.util.List + getResourcesOrBuilderList(); + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscoveryOrBuilder getResourcesOrBuilder( + int index); + + /** + *
+     * freshness marks whether a group version's discovery document is up to date.
+     * "Current" indicates the discovery document was recently
+     * refreshed. "Stale" indicates the discovery document could not
+     * be retrieved and the returned discovery document may be
+     * significantly out of date. Clients that require the latest
+     * version of the discovery information be retrieved before
+     * performing an operation should not use the aggregated document
+     * 
+ * + * optional string freshness = 3; + */ + boolean hasFreshness(); + /** + *
+     * freshness marks whether a group version's discovery document is up to date.
+     * "Current" indicates the discovery document was recently
+     * refreshed. "Stale" indicates the discovery document could not
+     * be retrieved and the returned discovery document may be
+     * significantly out of date. Clients that require the latest
+     * version of the discovery information be retrieved before
+     * performing an operation should not use the aggregated document
+     * 
+ * + * optional string freshness = 3; + */ + java.lang.String getFreshness(); + /** + *
+     * freshness marks whether a group version's discovery document is up to date.
+     * "Current" indicates the discovery document was recently
+     * refreshed. "Stale" indicates the discovery document could not
+     * be retrieved and the returned discovery document may be
+     * significantly out of date. Clients that require the latest
+     * version of the discovery information be retrieved before
+     * performing an operation should not use the aggregated document
+     * 
+ * + * optional string freshness = 3; + */ + com.google.protobuf.ByteString + getFreshnessBytes(); + } + /** + *
+   * APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.
+   * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2.APIVersionDiscovery} + */ + public static final class APIVersionDiscovery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apidiscovery.v2.APIVersionDiscovery) + APIVersionDiscoveryOrBuilder { + private static final long serialVersionUID = 0L; + // Use APIVersionDiscovery.newBuilder() to construct. + private APIVersionDiscovery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private APIVersionDiscovery() { + version_ = ""; + resources_ = java.util.Collections.emptyList(); + freshness_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private APIVersionDiscovery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + version_ = bs; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + resources_.add( + input.readMessage(io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.PARSER, extensionRegistry)); + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + freshness_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + resources_ = java.util.Collections.unmodifiableList(resources_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIVersionDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIVersionDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.class, io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.Builder.class); + } + + private int bitField0_; + public static final int VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object version_; + /** + *
+     * version is the name of the version within a group version.
+     * 
+ * + * optional string version = 1; + */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * version is the name of the version within a group version.
+     * 
+ * + * optional string version = 1; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + version_ = s; + } + return s; + } + } + /** + *
+     * version is the name of the version within a group version.
+     * 
+ * + * optional string version = 1; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCES_FIELD_NUMBER = 2; + private java.util.List resources_; + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public java.util.List getResourcesList() { + return resources_; + } + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public java.util.List + getResourcesOrBuilderList() { + return resources_; + } + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public int getResourcesCount() { + return resources_.size(); + } + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery getResources(int index) { + return resources_.get(index); + } + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscoveryOrBuilder getResourcesOrBuilder( + int index) { + return resources_.get(index); + } + + public static final int FRESHNESS_FIELD_NUMBER = 3; + private volatile java.lang.Object freshness_; + /** + *
+     * freshness marks whether a group version's discovery document is up to date.
+     * "Current" indicates the discovery document was recently
+     * refreshed. "Stale" indicates the discovery document could not
+     * be retrieved and the returned discovery document may be
+     * significantly out of date. Clients that require the latest
+     * version of the discovery information be retrieved before
+     * performing an operation should not use the aggregated document
+     * 
+ * + * optional string freshness = 3; + */ + public boolean hasFreshness() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * freshness marks whether a group version's discovery document is up to date.
+     * "Current" indicates the discovery document was recently
+     * refreshed. "Stale" indicates the discovery document could not
+     * be retrieved and the returned discovery document may be
+     * significantly out of date. Clients that require the latest
+     * version of the discovery information be retrieved before
+     * performing an operation should not use the aggregated document
+     * 
+ * + * optional string freshness = 3; + */ + public java.lang.String getFreshness() { + java.lang.Object ref = freshness_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + freshness_ = s; + } + return s; + } + } + /** + *
+     * freshness marks whether a group version's discovery document is up to date.
+     * "Current" indicates the discovery document was recently
+     * refreshed. "Stale" indicates the discovery document could not
+     * be retrieved and the returned discovery document may be
+     * significantly out of date. Clients that require the latest
+     * version of the discovery information be retrieved before
+     * performing an operation should not use the aggregated document
+     * 
+ * + * optional string freshness = 3; + */ + public com.google.protobuf.ByteString + getFreshnessBytes() { + java.lang.Object ref = freshness_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + freshness_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + for (int i = 0; i < resources_.size(); i++) { + output.writeMessage(2, resources_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, freshness_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + for (int i = 0; i < resources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, resources_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, freshness_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery other = (io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery) obj; + + boolean result = true; + result = result && (hasVersion() == other.hasVersion()); + if (hasVersion()) { + result = result && getVersion() + .equals(other.getVersion()); + } + result = result && getResourcesList() + .equals(other.getResourcesList()); + result = result && (hasFreshness() == other.hasFreshness()); + if (hasFreshness()) { + result = result && getFreshness() + .equals(other.getFreshness()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + } + if (getResourcesCount() > 0) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResourcesList().hashCode(); + } + if (hasFreshness()) { + hash = (37 * hash) + FRESHNESS_FIELD_NUMBER; + hash = (53 * hash) + getFreshness().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.
+     * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2.APIVersionDiscovery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apidiscovery.v2.APIVersionDiscovery) + io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscoveryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIVersionDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIVersionDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.class, io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResourcesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (resourcesBuilder_ == null) { + resources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + resourcesBuilder_.clear(); + } + freshness_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V2Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2_APIVersionDiscovery_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery getDefaultInstanceForType() { + return io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery build() { + io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery buildPartial() { + io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery result = new io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.version_ = version_; + if (resourcesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + resources_ = java.util.Collections.unmodifiableList(resources_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + result.freshness_ = freshness_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery) { + return mergeFrom((io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery other) { + if (other == io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery.getDefaultInstance()) return this; + if (other.hasVersion()) { + bitField0_ |= 0x00000001; + version_ = other.version_; + onChanged(); + } + if (resourcesBuilder_ == null) { + if (!other.resources_.isEmpty()) { + if (resources_.isEmpty()) { + resources_ = other.resources_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureResourcesIsMutable(); + resources_.addAll(other.resources_); + } + onChanged(); + } + } else { + if (!other.resources_.isEmpty()) { + if (resourcesBuilder_.isEmpty()) { + resourcesBuilder_.dispose(); + resourcesBuilder_ = null; + resources_ = other.resources_; + bitField0_ = (bitField0_ & ~0x00000002); + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourcesFieldBuilder() : null; + } else { + resourcesBuilder_.addAllMessages(other.resources_); + } + } + } + if (other.hasFreshness()) { + bitField0_ |= 0x00000004; + freshness_ = other.freshness_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object version_ = ""; + /** + *
+       * version is the name of the version within a group version.
+       * 
+ * + * optional string version = 1; + */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * version is the name of the version within a group version.
+       * 
+ * + * optional string version = 1; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + version_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * version is the name of the version within a group version.
+       * 
+ * + * optional string version = 1; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * version is the name of the version within a group version.
+       * 
+ * + * optional string version = 1; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + version_ = value; + onChanged(); + return this; + } + /** + *
+       * version is the name of the version within a group version.
+       * 
+ * + * optional string version = 1; + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       * version is the name of the version within a group version.
+       * 
+ * + * optional string version = 1; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + version_ = value; + onChanged(); + return this; + } + + private java.util.List resources_ = + java.util.Collections.emptyList(); + private void ensureResourcesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + resources_ = new java.util.ArrayList(resources_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery, io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.Builder, io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscoveryOrBuilder> resourcesBuilder_; + + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public java.util.List getResourcesList() { + if (resourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(resources_); + } else { + return resourcesBuilder_.getMessageList(); + } + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public int getResourcesCount() { + if (resourcesBuilder_ == null) { + return resources_.size(); + } else { + return resourcesBuilder_.getCount(); + } + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery getResources(int index) { + if (resourcesBuilder_ == null) { + return resources_.get(index); + } else { + return resourcesBuilder_.getMessage(index); + } + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public Builder setResources( + int index, io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.set(index, value); + onChanged(); + } else { + resourcesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public Builder setResources( + int index, io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.set(index, builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public Builder addResources(io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(value); + onChanged(); + } else { + resourcesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public Builder addResources( + int index, io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(index, value); + onChanged(); + } else { + resourcesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public Builder addResources( + io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public Builder addResources( + int index, io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(index, builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public Builder addAllResources( + java.lang.Iterable values) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resources_); + onChanged(); + } else { + resourcesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + resourcesBuilder_.clear(); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public Builder removeResources(int index) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.remove(index); + onChanged(); + } else { + resourcesBuilder_.remove(index); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.Builder getResourcesBuilder( + int index) { + return getResourcesFieldBuilder().getBuilder(index); + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscoveryOrBuilder getResourcesOrBuilder( + int index) { + if (resourcesBuilder_ == null) { + return resources_.get(index); } else { + return resourcesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public java.util.List + getResourcesOrBuilderList() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resources_); + } + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.Builder addResourcesBuilder() { + return getResourcesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.getDefaultInstance()); + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.Builder addResourcesBuilder( + int index) { + return getResourcesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.getDefaultInstance()); + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2.APIResourceDiscovery resources = 2; + */ + public java.util.List + getResourcesBuilderList() { + return getResourcesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery, io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.Builder, io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscoveryOrBuilder> + getResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery, io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscovery.Builder, io.kubernetes.client.proto.V2Apidiscovery.APIResourceDiscoveryOrBuilder>( + resources_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + + private java.lang.Object freshness_ = ""; + /** + *
+       * freshness marks whether a group version's discovery document is up to date.
+       * "Current" indicates the discovery document was recently
+       * refreshed. "Stale" indicates the discovery document could not
+       * be retrieved and the returned discovery document may be
+       * significantly out of date. Clients that require the latest
+       * version of the discovery information be retrieved before
+       * performing an operation should not use the aggregated document
+       * 
+ * + * optional string freshness = 3; + */ + public boolean hasFreshness() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * freshness marks whether a group version's discovery document is up to date.
+       * "Current" indicates the discovery document was recently
+       * refreshed. "Stale" indicates the discovery document could not
+       * be retrieved and the returned discovery document may be
+       * significantly out of date. Clients that require the latest
+       * version of the discovery information be retrieved before
+       * performing an operation should not use the aggregated document
+       * 
+ * + * optional string freshness = 3; + */ + public java.lang.String getFreshness() { + java.lang.Object ref = freshness_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + freshness_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * freshness marks whether a group version's discovery document is up to date.
+       * "Current" indicates the discovery document was recently
+       * refreshed. "Stale" indicates the discovery document could not
+       * be retrieved and the returned discovery document may be
+       * significantly out of date. Clients that require the latest
+       * version of the discovery information be retrieved before
+       * performing an operation should not use the aggregated document
+       * 
+ * + * optional string freshness = 3; + */ + public com.google.protobuf.ByteString + getFreshnessBytes() { + java.lang.Object ref = freshness_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + freshness_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * freshness marks whether a group version's discovery document is up to date.
+       * "Current" indicates the discovery document was recently
+       * refreshed. "Stale" indicates the discovery document could not
+       * be retrieved and the returned discovery document may be
+       * significantly out of date. Clients that require the latest
+       * version of the discovery information be retrieved before
+       * performing an operation should not use the aggregated document
+       * 
+ * + * optional string freshness = 3; + */ + public Builder setFreshness( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + freshness_ = value; + onChanged(); + return this; + } + /** + *
+       * freshness marks whether a group version's discovery document is up to date.
+       * "Current" indicates the discovery document was recently
+       * refreshed. "Stale" indicates the discovery document could not
+       * be retrieved and the returned discovery document may be
+       * significantly out of date. Clients that require the latest
+       * version of the discovery information be retrieved before
+       * performing an operation should not use the aggregated document
+       * 
+ * + * optional string freshness = 3; + */ + public Builder clearFreshness() { + bitField0_ = (bitField0_ & ~0x00000004); + freshness_ = getDefaultInstance().getFreshness(); + onChanged(); + return this; + } + /** + *
+       * freshness marks whether a group version's discovery document is up to date.
+       * "Current" indicates the discovery document was recently
+       * refreshed. "Stale" indicates the discovery document could not
+       * be retrieved and the returned discovery document may be
+       * significantly out of date. Clients that require the latest
+       * version of the discovery information be retrieved before
+       * performing an operation should not use the aggregated document
+       * 
+ * + * optional string freshness = 3; + */ + public Builder setFreshnessBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + freshness_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apidiscovery.v2.APIVersionDiscovery) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apidiscovery.v2.APIVersionDiscovery) + private static final io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery(); + } + + public static io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public APIVersionDiscovery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new APIVersionDiscovery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2Apidiscovery.APIVersionDiscovery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscovery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscovery_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscoveryList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscoveryList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apidiscovery_v2_APIResourceDiscovery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apidiscovery_v2_APIResourceDiscovery_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apidiscovery_v2_APISubresourceDiscovery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apidiscovery_v2_APISubresourceDiscovery_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apidiscovery_v2_APIVersionDiscovery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apidiscovery_v2_APIVersionDiscovery_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*k8s.io/api/apidiscovery/v2/generated.p" + + "roto\022\032k8s.io.api.apidiscovery.v2\0324k8s.io" + + "/apimachinery/pkg/apis/meta/v1/generated" + + ".proto\032/k8s.io/apimachinery/pkg/runtime/" + + "generated.proto\0326k8s.io/apimachinery/pkg" + + "/runtime/schema/generated.proto\"\232\001\n\021APIG" + + "roupDiscovery\022B\n\010metadata\030\001 \001(\01320.k8s.io" + + ".apimachinery.pkg.apis.meta.v1.ObjectMet" + + "a\022A\n\010versions\030\002 \003(\0132/.k8s.io.api.apidisc" + + "overy.v2.APIVersionDiscovery\"\227\001\n\025APIGrou" + + "pDiscoveryList\022@\n\010metadata\030\001 \001(\0132..k8s.i" + + "o.apimachinery.pkg.apis.meta.v1.ListMeta" + + "\022<\n\005items\030\002 \003(\0132-.k8s.io.api.apidiscover" + + "y.v2.APIGroupDiscovery\"\241\002\n\024APIResourceDi" + + "scovery\022\020\n\010resource\030\001 \001(\t\022L\n\014responseKin" + + "d\030\002 \001(\01326.k8s.io.apimachinery.pkg.apis.m" + + "eta.v1.GroupVersionKind\022\r\n\005scope\030\003 \001(\t\022\030" + + "\n\020singularResource\030\004 \001(\t\022\r\n\005verbs\030\005 \003(\t\022" + + "\022\n\nshortNames\030\006 \003(\t\022\022\n\ncategories\030\007 \003(\t\022" + + "I\n\014subresources\030\010 \003(\01323.k8s.io.api.apidi" + + "scovery.v2.APISubresourceDiscovery\"\332\001\n\027A" + + "PISubresourceDiscovery\022\023\n\013subresource\030\001 " + + "\001(\t\022L\n\014responseKind\030\002 \001(\01326.k8s.io.apima" + + "chinery.pkg.apis.meta.v1.GroupVersionKin" + + "d\022M\n\racceptedTypes\030\003 \003(\01326.k8s.io.apimac" + + "hinery.pkg.apis.meta.v1.GroupVersionKind" + + "\022\r\n\005verbs\030\004 \003(\t\"~\n\023APIVersionDiscovery\022\017" + + "\n\007version\030\001 \001(\t\022C\n\tresources\030\002 \003(\01320.k8s" + + ".io.api.apidiscovery.v2.APIResourceDisco" + + "very\022\021\n\tfreshness\030\003 \001(\tBH\n\032io.kubernetes" + + ".client.protoB\016V2ApidiscoveryZ\032k8s.io/ap" + + "i/apidiscovery/v2" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.kubernetes.client.proto.Meta.getDescriptor(), + io.kubernetes.client.proto.Runtime.getDescriptor(), + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), + }, assigner); + internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscovery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscovery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscovery_descriptor, + new java.lang.String[] { "Metadata", "Versions", }); + internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscoveryList_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscoveryList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apidiscovery_v2_APIGroupDiscoveryList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_apidiscovery_v2_APIResourceDiscovery_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_k8s_io_api_apidiscovery_v2_APIResourceDiscovery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apidiscovery_v2_APIResourceDiscovery_descriptor, + new java.lang.String[] { "Resource", "ResponseKind", "Scope", "SingularResource", "Verbs", "ShortNames", "Categories", "Subresources", }); + internal_static_k8s_io_api_apidiscovery_v2_APISubresourceDiscovery_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_k8s_io_api_apidiscovery_v2_APISubresourceDiscovery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apidiscovery_v2_APISubresourceDiscovery_descriptor, + new java.lang.String[] { "Subresource", "ResponseKind", "AcceptedTypes", "Verbs", }); + internal_static_k8s_io_api_apidiscovery_v2_APIVersionDiscovery_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_k8s_io_api_apidiscovery_v2_APIVersionDiscovery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apidiscovery_v2_APIVersionDiscovery_descriptor, + new java.lang.String[] { "Version", "Resources", "Freshness", }); + io.kubernetes.client.proto.Meta.getDescriptor(); + io.kubernetes.client.proto.Runtime.getDescriptor(); + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto/src/main/java/io/kubernetes/client/proto/V2Autoscaling.java b/proto/src/main/java/io/kubernetes/client/proto/V2Autoscaling.java index a04f487a73..4c0e6f3dab 100644 --- a/proto/src/main/java/io/kubernetes/client/proto/V2Autoscaling.java +++ b/proto/src/main/java/io/kubernetes/client/proto/V2Autoscaling.java @@ -8035,7 +8035,7 @@ public interface HorizontalPodAutoscalerOrBuilder extends *
      * spec is the specification for the behaviour of the autoscaler.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec spec = 2; @@ -8045,7 +8045,7 @@ public interface HorizontalPodAutoscalerOrBuilder extends *
      * spec is the specification for the behaviour of the autoscaler.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec spec = 2; @@ -8055,7 +8055,7 @@ public interface HorizontalPodAutoscalerOrBuilder extends *
      * spec is the specification for the behaviour of the autoscaler.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec spec = 2; @@ -8095,6 +8095,7 @@ public interface HorizontalPodAutoscalerOrBuilder extends * HorizontalPodAutoscaler is the configuration for a horizontal pod * autoscaler, which automatically manages the replica count of any resource * implementing the scale subresource based on the metrics specified. + * +k8s:supportsSubresource="/status" * * * Protobuf type {@code k8s.io.api.autoscaling.v2.HorizontalPodAutoscaler} @@ -8252,7 +8253,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( *
      * spec is the specification for the behaviour of the autoscaler.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec spec = 2; @@ -8264,7 +8265,7 @@ public boolean hasSpec() { *
      * spec is the specification for the behaviour of the autoscaler.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec spec = 2; @@ -8276,7 +8277,7 @@ public io.kubernetes.client.proto.V2Autoscaling.HorizontalPodAutoscalerSpec getS *
      * spec is the specification for the behaviour of the autoscaler.
      * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-     * +optional
+     * +required
      * 
* * optional .k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec spec = 2; @@ -8519,6 +8520,7 @@ protected Builder newBuilderForType( * HorizontalPodAutoscaler is the configuration for a horizontal pod * autoscaler, which automatically manages the replica count of any resource * implementing the scale subresource based on the metrics specified. + * +k8s:supportsSubresource="/status" * * * Protobuf type {@code k8s.io.api.autoscaling.v2.HorizontalPodAutoscaler} @@ -8898,7 +8900,7 @@ public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder( *
        * spec is the specification for the behaviour of the autoscaler.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec spec = 2; @@ -8910,7 +8912,7 @@ public boolean hasSpec() { *
        * spec is the specification for the behaviour of the autoscaler.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec spec = 2; @@ -8926,7 +8928,7 @@ public io.kubernetes.client.proto.V2Autoscaling.HorizontalPodAutoscalerSpec getS *
        * spec is the specification for the behaviour of the autoscaler.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec spec = 2; @@ -8948,7 +8950,7 @@ public Builder setSpec(io.kubernetes.client.proto.V2Autoscaling.HorizontalPodAut *
        * spec is the specification for the behaviour of the autoscaler.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec spec = 2; @@ -8968,7 +8970,7 @@ public Builder setSpec( *
        * spec is the specification for the behaviour of the autoscaler.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec spec = 2; @@ -8994,7 +8996,7 @@ public Builder mergeSpec(io.kubernetes.client.proto.V2Autoscaling.HorizontalPodA *
        * spec is the specification for the behaviour of the autoscaler.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec spec = 2; @@ -9013,7 +9015,7 @@ public Builder clearSpec() { *
        * spec is the specification for the behaviour of the autoscaler.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec spec = 2; @@ -9027,7 +9029,7 @@ public io.kubernetes.client.proto.V2Autoscaling.HorizontalPodAutoscalerSpec.Buil *
        * spec is the specification for the behaviour of the autoscaler.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec spec = 2; @@ -9044,7 +9046,7 @@ public io.kubernetes.client.proto.V2Autoscaling.HorizontalPodAutoscalerSpecOrBui *
        * spec is the specification for the behaviour of the autoscaler.
        * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
-       * +optional
+       * +required
        * 
* * optional .k8s.io.api.autoscaling.v2.HorizontalPodAutoscalerSpec spec = 2; @@ -10506,6 +10508,29 @@ public interface HorizontalPodAutoscalerConditionOrBuilder extends */ com.google.protobuf.ByteString getMessageBytes(); + + /** + *
+     * observedGeneration represents the .metadata.generation that the condition was set based upon.
+     * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+     * with respect to the current state of the instance.
+     * +optional
+     * 
+ * + * optional int64 observedGeneration = 6; + */ + boolean hasObservedGeneration(); + /** + *
+     * observedGeneration represents the .metadata.generation that the condition was set based upon.
+     * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+     * with respect to the current state of the instance.
+     * +optional
+     * 
+ * + * optional int64 observedGeneration = 6; + */ + long getObservedGeneration(); } /** *
@@ -10529,6 +10554,7 @@ private HorizontalPodAutoscalerCondition() {
       status_ = "";
       reason_ = "";
       message_ = "";
+      observedGeneration_ = 0L;
     }
 
     @java.lang.Override
@@ -10592,6 +10618,11 @@ private HorizontalPodAutoscalerCondition(
               message_ = bs;
               break;
             }
+            case 48: {
+              bitField0_ |= 0x00000020;
+              observedGeneration_ = input.readInt64();
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -10889,6 +10920,35 @@ public java.lang.String getMessage() {
       }
     }
 
+    public static final int OBSERVEDGENERATION_FIELD_NUMBER = 6;
+    private long observedGeneration_;
+    /**
+     * 
+     * observedGeneration represents the .metadata.generation that the condition was set based upon.
+     * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+     * with respect to the current state of the instance.
+     * +optional
+     * 
+ * + * optional int64 observedGeneration = 6; + */ + public boolean hasObservedGeneration() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+     * observedGeneration represents the .metadata.generation that the condition was set based upon.
+     * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+     * with respect to the current state of the instance.
+     * +optional
+     * 
+ * + * optional int64 observedGeneration = 6; + */ + public long getObservedGeneration() { + return observedGeneration_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -10918,6 +10978,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000010) == 0x00000010)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, message_); } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + output.writeInt64(6, observedGeneration_); + } unknownFields.writeTo(output); } @@ -10943,6 +11006,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, message_); } + if (((bitField0_ & 0x00000020) == 0x00000020)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, observedGeneration_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -10984,6 +11051,11 @@ public boolean equals(final java.lang.Object obj) { result = result && getMessage() .equals(other.getMessage()); } + result = result && (hasObservedGeneration() == other.hasObservedGeneration()); + if (hasObservedGeneration()) { + result = result && (getObservedGeneration() + == other.getObservedGeneration()); + } result = result && unknownFields.equals(other.unknownFields); return result; } @@ -11015,6 +11087,11 @@ public int hashCode() { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } + if (hasObservedGeneration()) { + hash = (37 * hash) + OBSERVEDGENERATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getObservedGeneration()); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -11168,6 +11245,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000008); message_ = ""; bitField0_ = (bitField0_ & ~0x00000010); + observedGeneration_ = 0L; + bitField0_ = (bitField0_ & ~0x00000020); return this; } @@ -11220,6 +11299,10 @@ public io.kubernetes.client.proto.V2Autoscaling.HorizontalPodAutoscalerCondition to_bitField0_ |= 0x00000010; } result.message_ = message_; + if (((from_bitField0_ & 0x00000020) == 0x00000020)) { + to_bitField0_ |= 0x00000020; + } + result.observedGeneration_ = observedGeneration_; result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -11292,6 +11375,9 @@ public Builder mergeFrom(io.kubernetes.client.proto.V2Autoscaling.HorizontalPodA message_ = other.message_; onChanged(); } + if (other.hasObservedGeneration()) { + setObservedGeneration(other.getObservedGeneration()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -11911,6 +11997,66 @@ public Builder setMessageBytes( onChanged(); return this; } + + private long observedGeneration_ ; + /** + *
+       * observedGeneration represents the .metadata.generation that the condition was set based upon.
+       * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+       * with respect to the current state of the instance.
+       * +optional
+       * 
+ * + * optional int64 observedGeneration = 6; + */ + public boolean hasObservedGeneration() { + return ((bitField0_ & 0x00000020) == 0x00000020); + } + /** + *
+       * observedGeneration represents the .metadata.generation that the condition was set based upon.
+       * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+       * with respect to the current state of the instance.
+       * +optional
+       * 
+ * + * optional int64 observedGeneration = 6; + */ + public long getObservedGeneration() { + return observedGeneration_; + } + /** + *
+       * observedGeneration represents the .metadata.generation that the condition was set based upon.
+       * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+       * with respect to the current state of the instance.
+       * +optional
+       * 
+ * + * optional int64 observedGeneration = 6; + */ + public Builder setObservedGeneration(long value) { + bitField0_ |= 0x00000020; + observedGeneration_ = value; + onChanged(); + return this; + } + /** + *
+       * observedGeneration represents the .metadata.generation that the condition was set based upon.
+       * For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date
+       * with respect to the current state of the instance.
+       * +optional
+       * 
+ * + * optional int64 observedGeneration = 6; + */ + public Builder clearObservedGeneration() { + bitField0_ = (bitField0_ & ~0x00000020); + observedGeneration_ = 0L; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -13183,7 +13329,9 @@ public interface HorizontalPodAutoscalerSpecOrBuilder extends * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 *
* * optional int32 minReplicas = 2; @@ -13197,7 +13345,9 @@ public interface HorizontalPodAutoscalerSpecOrBuilder extends * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 * * * optional int32 minReplicas = 2; @@ -13209,8 +13359,8 @@ public interface HorizontalPodAutoscalerSpecOrBuilder extends * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. * It cannot be less that minReplicas. * +required - * +k8s:required - * +k8s:minimum=1 + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:minimum=1 * * * optional int32 maxReplicas = 3; @@ -13221,8 +13371,8 @@ public interface HorizontalPodAutoscalerSpecOrBuilder extends * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. * It cannot be less that minReplicas. * +required - * +k8s:required - * +k8s:minimum=1 + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:minimum=1 * * * optional int32 maxReplicas = 3; @@ -13525,7 +13675,9 @@ public io.kubernetes.client.proto.V2Autoscaling.CrossVersionObjectReferenceOrBui * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 * * * optional int32 minReplicas = 2; @@ -13541,7 +13693,9 @@ public boolean hasMinReplicas() { * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 * * * optional int32 minReplicas = 2; @@ -13557,8 +13711,8 @@ public int getMinReplicas() { * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. * It cannot be less that minReplicas. * +required - * +k8s:required - * +k8s:minimum=1 + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:minimum=1 * * * optional int32 maxReplicas = 3; @@ -13571,8 +13725,8 @@ public boolean hasMaxReplicas() { * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. * It cannot be less that minReplicas. * +required - * +k8s:required - * +k8s:minimum=1 + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:minimum=1 * * * optional int32 maxReplicas = 3; @@ -14362,7 +14516,9 @@ public io.kubernetes.client.proto.V2Autoscaling.CrossVersionObjectReferenceOrBui * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 * * * optional int32 minReplicas = 2; @@ -14378,7 +14534,9 @@ public boolean hasMinReplicas() { * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 * * * optional int32 minReplicas = 2; @@ -14394,7 +14552,9 @@ public int getMinReplicas() { * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 * * * optional int32 minReplicas = 2; @@ -14413,7 +14573,9 @@ public Builder setMinReplicas(int value) { * metric is configured. Scaling is active as long as at least one metric value is * available. * +optional - * +k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:optional + * +k8s:alpha(since: "1.36")=+k8s:ifEnabled(HPAScaleToZero)=+k8s:minimum=0 + * +k8s:alpha(since: "1.36")=+k8s:ifDisabled(HPAScaleToZero)=+k8s:minimum=1 * * * optional int32 minReplicas = 2; @@ -14431,8 +14593,8 @@ public Builder clearMinReplicas() { * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. * It cannot be less that minReplicas. * +required - * +k8s:required - * +k8s:minimum=1 + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:minimum=1 * * * optional int32 maxReplicas = 3; @@ -14445,8 +14607,8 @@ public boolean hasMaxReplicas() { * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. * It cannot be less that minReplicas. * +required - * +k8s:required - * +k8s:minimum=1 + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:minimum=1 * * * optional int32 maxReplicas = 3; @@ -14459,8 +14621,8 @@ public int getMaxReplicas() { * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. * It cannot be less that minReplicas. * +required - * +k8s:required - * +k8s:minimum=1 + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:minimum=1 * * * optional int32 maxReplicas = 3; @@ -14476,8 +14638,8 @@ public Builder setMaxReplicas(int value) { * maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. * It cannot be less that minReplicas. * +required - * +k8s:required - * +k8s:minimum=1 + * +k8s:alpha(since: "1.36")=+k8s:required + * +k8s:alpha(since: "1.36")=+k8s:minimum=1 * * * optional int32 maxReplicas = 3; @@ -20814,7 +20976,7 @@ public interface MetricStatusOrBuilder extends /** *
-     * container resource refers to a resource metric (such as those specified in
+     * containerResource refers to a resource metric (such as those specified in
      * requests and limits) known to Kubernetes describing a single container in each pod in the
      * current scale target (e.g. CPU or memory). Such metrics are built in to
      * Kubernetes, and have special scaling options on top of those available
@@ -20827,7 +20989,7 @@ public interface MetricStatusOrBuilder extends
     boolean hasContainerResource();
     /**
      * 
-     * container resource refers to a resource metric (such as those specified in
+     * containerResource refers to a resource metric (such as those specified in
      * requests and limits) known to Kubernetes describing a single container in each pod in the
      * current scale target (e.g. CPU or memory). Such metrics are built in to
      * Kubernetes, and have special scaling options on top of those available
@@ -20840,7 +21002,7 @@ public interface MetricStatusOrBuilder extends
     io.kubernetes.client.proto.V2Autoscaling.ContainerResourceMetricStatus getContainerResource();
     /**
      * 
-     * container resource refers to a resource metric (such as those specified in
+     * containerResource refers to a resource metric (such as those specified in
      * requests and limits) known to Kubernetes describing a single container in each pod in the
      * current scale target (e.g. CPU or memory). Such metrics are built in to
      * Kubernetes, and have special scaling options on top of those available
@@ -21230,7 +21392,7 @@ public io.kubernetes.client.proto.V2Autoscaling.ResourceMetricStatusOrBuilder ge
     private io.kubernetes.client.proto.V2Autoscaling.ContainerResourceMetricStatus containerResource_;
     /**
      * 
-     * container resource refers to a resource metric (such as those specified in
+     * containerResource refers to a resource metric (such as those specified in
      * requests and limits) known to Kubernetes describing a single container in each pod in the
      * current scale target (e.g. CPU or memory). Such metrics are built in to
      * Kubernetes, and have special scaling options on top of those available
@@ -21245,7 +21407,7 @@ public boolean hasContainerResource() {
     }
     /**
      * 
-     * container resource refers to a resource metric (such as those specified in
+     * containerResource refers to a resource metric (such as those specified in
      * requests and limits) known to Kubernetes describing a single container in each pod in the
      * current scale target (e.g. CPU or memory). Such metrics are built in to
      * Kubernetes, and have special scaling options on top of those available
@@ -21260,7 +21422,7 @@ public io.kubernetes.client.proto.V2Autoscaling.ContainerResourceMetricStatus ge
     }
     /**
      * 
-     * container resource refers to a resource metric (such as those specified in
+     * containerResource refers to a resource metric (such as those specified in
      * requests and limits) known to Kubernetes describing a single container in each pod in the
      * current scale target (e.g. CPU or memory). Such metrics are built in to
      * Kubernetes, and have special scaling options on top of those available
@@ -22475,7 +22637,7 @@ public io.kubernetes.client.proto.V2Autoscaling.ResourceMetricStatusOrBuilder ge
           io.kubernetes.client.proto.V2Autoscaling.ContainerResourceMetricStatus, io.kubernetes.client.proto.V2Autoscaling.ContainerResourceMetricStatus.Builder, io.kubernetes.client.proto.V2Autoscaling.ContainerResourceMetricStatusOrBuilder> containerResourceBuilder_;
       /**
        * 
-       * container resource refers to a resource metric (such as those specified in
+       * containerResource refers to a resource metric (such as those specified in
        * requests and limits) known to Kubernetes describing a single container in each pod in the
        * current scale target (e.g. CPU or memory). Such metrics are built in to
        * Kubernetes, and have special scaling options on top of those available
@@ -22490,7 +22652,7 @@ public boolean hasContainerResource() {
       }
       /**
        * 
-       * container resource refers to a resource metric (such as those specified in
+       * containerResource refers to a resource metric (such as those specified in
        * requests and limits) known to Kubernetes describing a single container in each pod in the
        * current scale target (e.g. CPU or memory). Such metrics are built in to
        * Kubernetes, and have special scaling options on top of those available
@@ -22509,7 +22671,7 @@ public io.kubernetes.client.proto.V2Autoscaling.ContainerResourceMetricStatus ge
       }
       /**
        * 
-       * container resource refers to a resource metric (such as those specified in
+       * containerResource refers to a resource metric (such as those specified in
        * requests and limits) known to Kubernetes describing a single container in each pod in the
        * current scale target (e.g. CPU or memory). Such metrics are built in to
        * Kubernetes, and have special scaling options on top of those available
@@ -22534,7 +22696,7 @@ public Builder setContainerResource(io.kubernetes.client.proto.V2Autoscaling.Con
       }
       /**
        * 
-       * container resource refers to a resource metric (such as those specified in
+       * containerResource refers to a resource metric (such as those specified in
        * requests and limits) known to Kubernetes describing a single container in each pod in the
        * current scale target (e.g. CPU or memory). Such metrics are built in to
        * Kubernetes, and have special scaling options on top of those available
@@ -22557,7 +22719,7 @@ public Builder setContainerResource(
       }
       /**
        * 
-       * container resource refers to a resource metric (such as those specified in
+       * containerResource refers to a resource metric (such as those specified in
        * requests and limits) known to Kubernetes describing a single container in each pod in the
        * current scale target (e.g. CPU or memory). Such metrics are built in to
        * Kubernetes, and have special scaling options on top of those available
@@ -22586,7 +22748,7 @@ public Builder mergeContainerResource(io.kubernetes.client.proto.V2Autoscaling.C
       }
       /**
        * 
-       * container resource refers to a resource metric (such as those specified in
+       * containerResource refers to a resource metric (such as those specified in
        * requests and limits) known to Kubernetes describing a single container in each pod in the
        * current scale target (e.g. CPU or memory). Such metrics are built in to
        * Kubernetes, and have special scaling options on top of those available
@@ -22608,7 +22770,7 @@ public Builder clearContainerResource() {
       }
       /**
        * 
-       * container resource refers to a resource metric (such as those specified in
+       * containerResource refers to a resource metric (such as those specified in
        * requests and limits) known to Kubernetes describing a single container in each pod in the
        * current scale target (e.g. CPU or memory). Such metrics are built in to
        * Kubernetes, and have special scaling options on top of those available
@@ -22625,7 +22787,7 @@ public io.kubernetes.client.proto.V2Autoscaling.ContainerResourceMetricStatus.Bu
       }
       /**
        * 
-       * container resource refers to a resource metric (such as those specified in
+       * containerResource refers to a resource metric (such as those specified in
        * requests and limits) known to Kubernetes describing a single container in each pod in the
        * current scale target (e.g. CPU or memory). Such metrics are built in to
        * Kubernetes, and have special scaling options on top of those available
@@ -22645,7 +22807,7 @@ public io.kubernetes.client.proto.V2Autoscaling.ContainerResourceMetricStatusOrB
       }
       /**
        * 
-       * container resource refers to a resource metric (such as those specified in
+       * containerResource refers to a resource metric (such as those specified in
        * requests and limits) known to Kubernetes describing a single container in each pod in the
        * current scale target (e.g. CPU or memory). Such metrics are built in to
        * Kubernetes, and have special scaling options on top of those available
@@ -24338,7 +24500,7 @@ public interface MetricValueStatusOrBuilder extends
 
     /**
      * 
-     * currentAverageUtilization is the current value of the average of the
+     * averageUtilization is the current value of the average of the
      * resource metric across all relevant pods, represented as a percentage of
      * the requested value of the resource for the pods.
      * +optional
@@ -24349,7 +24511,7 @@ public interface MetricValueStatusOrBuilder extends
     boolean hasAverageUtilization();
     /**
      * 
-     * currentAverageUtilization is the current value of the average of the
+     * averageUtilization is the current value of the average of the
      * resource metric across all relevant pods, represented as a percentage of
      * the requested value of the resource for the pods.
      * +optional
@@ -24546,7 +24708,7 @@ public io.kubernetes.client.proto.Resource.QuantityOrBuilder getAverageValueOrBu
     private int averageUtilization_;
     /**
      * 
-     * currentAverageUtilization is the current value of the average of the
+     * averageUtilization is the current value of the average of the
      * resource metric across all relevant pods, represented as a percentage of
      * the requested value of the resource for the pods.
      * +optional
@@ -24559,7 +24721,7 @@ public boolean hasAverageUtilization() {
     }
     /**
      * 
-     * currentAverageUtilization is the current value of the average of the
+     * averageUtilization is the current value of the average of the
      * resource metric across all relevant pods, represented as a percentage of
      * the requested value of the resource for the pods.
      * +optional
@@ -25296,7 +25458,7 @@ public io.kubernetes.client.proto.Resource.QuantityOrBuilder getAverageValueOrBu
       private int averageUtilization_ ;
       /**
        * 
-       * currentAverageUtilization is the current value of the average of the
+       * averageUtilization is the current value of the average of the
        * resource metric across all relevant pods, represented as a percentage of
        * the requested value of the resource for the pods.
        * +optional
@@ -25309,7 +25471,7 @@ public boolean hasAverageUtilization() {
       }
       /**
        * 
-       * currentAverageUtilization is the current value of the average of the
+       * averageUtilization is the current value of the average of the
        * resource metric across all relevant pods, represented as a percentage of
        * the requested value of the resource for the pods.
        * +optional
@@ -25322,7 +25484,7 @@ public int getAverageUtilization() {
       }
       /**
        * 
-       * currentAverageUtilization is the current value of the average of the
+       * averageUtilization is the current value of the average of the
        * resource metric across all relevant pods, represented as a percentage of
        * the requested value of the resource for the pods.
        * +optional
@@ -25338,7 +25500,7 @@ public Builder setAverageUtilization(int value) {
       }
       /**
        * 
-       * currentAverageUtilization is the current value of the average of the
+       * averageUtilization is the current value of the average of the
        * resource metric across all relevant pods, represented as a percentage of
        * the requested value of the resource for the pods.
        * +optional
@@ -26666,7 +26828,7 @@ public interface ObjectMetricStatusOrBuilder extends
 
     /**
      * 
-     * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+     * describedObject specifies the descriptions of a object,such as kind,name apiVersion
      * 
* * optional .k8s.io.api.autoscaling.v2.CrossVersionObjectReference describedObject = 3; @@ -26674,7 +26836,7 @@ public interface ObjectMetricStatusOrBuilder extends boolean hasDescribedObject(); /** *
-     * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+     * describedObject specifies the descriptions of a object,such as kind,name apiVersion
      * 
* * optional .k8s.io.api.autoscaling.v2.CrossVersionObjectReference describedObject = 3; @@ -26682,7 +26844,7 @@ public interface ObjectMetricStatusOrBuilder extends io.kubernetes.client.proto.V2Autoscaling.CrossVersionObjectReference getDescribedObject(); /** *
-     * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+     * describedObject specifies the descriptions of a object,such as kind,name apiVersion
      * 
* * optional .k8s.io.api.autoscaling.v2.CrossVersionObjectReference describedObject = 3; @@ -26875,7 +27037,7 @@ public io.kubernetes.client.proto.V2Autoscaling.MetricValueStatusOrBuilder getCu private io.kubernetes.client.proto.V2Autoscaling.CrossVersionObjectReference describedObject_; /** *
-     * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+     * describedObject specifies the descriptions of a object,such as kind,name apiVersion
      * 
* * optional .k8s.io.api.autoscaling.v2.CrossVersionObjectReference describedObject = 3; @@ -26885,7 +27047,7 @@ public boolean hasDescribedObject() { } /** *
-     * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+     * describedObject specifies the descriptions of a object,such as kind,name apiVersion
      * 
* * optional .k8s.io.api.autoscaling.v2.CrossVersionObjectReference describedObject = 3; @@ -26895,7 +27057,7 @@ public io.kubernetes.client.proto.V2Autoscaling.CrossVersionObjectReference getD } /** *
-     * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+     * describedObject specifies the descriptions of a object,such as kind,name apiVersion
      * 
* * optional .k8s.io.api.autoscaling.v2.CrossVersionObjectReference describedObject = 3; @@ -27614,7 +27776,7 @@ public io.kubernetes.client.proto.V2Autoscaling.MetricValueStatusOrBuilder getCu io.kubernetes.client.proto.V2Autoscaling.CrossVersionObjectReference, io.kubernetes.client.proto.V2Autoscaling.CrossVersionObjectReference.Builder, io.kubernetes.client.proto.V2Autoscaling.CrossVersionObjectReferenceOrBuilder> describedObjectBuilder_; /** *
-       * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+       * describedObject specifies the descriptions of a object,such as kind,name apiVersion
        * 
* * optional .k8s.io.api.autoscaling.v2.CrossVersionObjectReference describedObject = 3; @@ -27624,7 +27786,7 @@ public boolean hasDescribedObject() { } /** *
-       * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+       * describedObject specifies the descriptions of a object,such as kind,name apiVersion
        * 
* * optional .k8s.io.api.autoscaling.v2.CrossVersionObjectReference describedObject = 3; @@ -27638,7 +27800,7 @@ public io.kubernetes.client.proto.V2Autoscaling.CrossVersionObjectReference getD } /** *
-       * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+       * describedObject specifies the descriptions of a object,such as kind,name apiVersion
        * 
* * optional .k8s.io.api.autoscaling.v2.CrossVersionObjectReference describedObject = 3; @@ -27658,7 +27820,7 @@ public Builder setDescribedObject(io.kubernetes.client.proto.V2Autoscaling.Cross } /** *
-       * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+       * describedObject specifies the descriptions of a object,such as kind,name apiVersion
        * 
* * optional .k8s.io.api.autoscaling.v2.CrossVersionObjectReference describedObject = 3; @@ -27676,7 +27838,7 @@ public Builder setDescribedObject( } /** *
-       * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+       * describedObject specifies the descriptions of a object,such as kind,name apiVersion
        * 
* * optional .k8s.io.api.autoscaling.v2.CrossVersionObjectReference describedObject = 3; @@ -27700,7 +27862,7 @@ public Builder mergeDescribedObject(io.kubernetes.client.proto.V2Autoscaling.Cro } /** *
-       * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+       * describedObject specifies the descriptions of a object,such as kind,name apiVersion
        * 
* * optional .k8s.io.api.autoscaling.v2.CrossVersionObjectReference describedObject = 3; @@ -27717,7 +27879,7 @@ public Builder clearDescribedObject() { } /** *
-       * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+       * describedObject specifies the descriptions of a object,such as kind,name apiVersion
        * 
* * optional .k8s.io.api.autoscaling.v2.CrossVersionObjectReference describedObject = 3; @@ -27729,7 +27891,7 @@ public io.kubernetes.client.proto.V2Autoscaling.CrossVersionObjectReference.Buil } /** *
-       * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+       * describedObject specifies the descriptions of a object,such as kind,name apiVersion
        * 
* * optional .k8s.io.api.autoscaling.v2.CrossVersionObjectReference describedObject = 3; @@ -27744,7 +27906,7 @@ public io.kubernetes.client.proto.V2Autoscaling.CrossVersionObjectReferenceOrBui } /** *
-       * DescribedObject specifies the descriptions of a object,such as kind,name apiVersion
+       * describedObject specifies the descriptions of a object,such as kind,name apiVersion
        * 
* * optional .k8s.io.api.autoscaling.v2.CrossVersionObjectReference describedObject = 3; @@ -31696,86 +31858,87 @@ public io.kubernetes.client.proto.V2Autoscaling.ResourceMetricStatus getDefaultI "AutoscalerBehavior\022;\n\007scaleUp\030\001 \001(\0132*.k8" + "s.io.api.autoscaling.v2.HPAScalingRules\022" + "=\n\tscaleDown\030\002 \001(\0132*.k8s.io.api.autoscal" + - "ing.v2.HPAScalingRules\"\251\001\n HorizontalPod" + + "ing.v2.HPAScalingRules\"\305\001\n HorizontalPod" + "AutoscalerCondition\022\014\n\004type\030\001 \001(\t\022\016\n\006sta" + "tus\030\002 \001(\t\022F\n\022lastTransitionTime\030\003 \001(\0132*." + "k8s.io.apimachinery.pkg.apis.meta.v1.Tim" + - "e\022\016\n\006reason\030\004 \001(\t\022\017\n\007message\030\005 \001(\t\"\242\001\n\033H" + - "orizontalPodAutoscalerList\022@\n\010metadata\030\001" + - " \001(\0132..k8s.io.apimachinery.pkg.apis.meta" + - ".v1.ListMeta\022A\n\005items\030\002 \003(\01322.k8s.io.api" + - ".autoscaling.v2.HorizontalPodAutoscaler\"" + - "\235\002\n\033HorizontalPodAutoscalerSpec\022N\n\016scale" + - "TargetRef\030\001 \001(\01326.k8s.io.api.autoscaling" + - ".v2.CrossVersionObjectReference\022\023\n\013minRe" + - "plicas\030\002 \001(\005\022\023\n\013maxReplicas\030\003 \001(\005\0226\n\007met" + - "rics\030\004 \003(\0132%.k8s.io.api.autoscaling.v2.M" + - "etricSpec\022L\n\010behavior\030\005 \001(\0132:.k8s.io.api" + - ".autoscaling.v2.HorizontalPodAutoscalerB" + - "ehavior\"\302\002\n\035HorizontalPodAutoscalerStatu" + - "s\022\032\n\022observedGeneration\030\001 \001(\003\022A\n\rlastSca" + - "leTime\030\002 \001(\0132*.k8s.io.apimachinery.pkg.a" + - "pis.meta.v1.Time\022\027\n\017currentReplicas\030\003 \001(" + - "\005\022\027\n\017desiredReplicas\030\004 \001(\005\022?\n\016currentMet" + - "rics\030\005 \003(\0132\'.k8s.io.api.autoscaling.v2.M" + - "etricStatus\022O\n\nconditions\030\006 \003(\0132;.k8s.io" + - ".api.autoscaling.v2.HorizontalPodAutosca" + - "lerCondition\"g\n\020MetricIdentifier\022\014\n\004name" + - "\030\001 \001(\t\022E\n\010selector\030\002 \001(\01323.k8s.io.apimac" + - "hinery.pkg.apis.meta.v1.LabelSelector\"\357\002" + - "\n\nMetricSpec\022\014\n\004type\030\001 \001(\t\022=\n\006object\030\002 \001" + + "e\022\016\n\006reason\030\004 \001(\t\022\017\n\007message\030\005 \001(\t\022\032\n\022ob" + + "servedGeneration\030\006 \001(\003\"\242\001\n\033HorizontalPod" + + "AutoscalerList\022@\n\010metadata\030\001 \001(\0132..k8s.i" + + "o.apimachinery.pkg.apis.meta.v1.ListMeta" + + "\022A\n\005items\030\002 \003(\01322.k8s.io.api.autoscaling" + + ".v2.HorizontalPodAutoscaler\"\235\002\n\033Horizont" + + "alPodAutoscalerSpec\022N\n\016scaleTargetRef\030\001 " + + "\001(\01326.k8s.io.api.autoscaling.v2.CrossVer" + + "sionObjectReference\022\023\n\013minReplicas\030\002 \001(\005" + + "\022\023\n\013maxReplicas\030\003 \001(\005\0226\n\007metrics\030\004 \003(\0132%" + + ".k8s.io.api.autoscaling.v2.MetricSpec\022L\n" + + "\010behavior\030\005 \001(\0132:.k8s.io.api.autoscaling" + + ".v2.HorizontalPodAutoscalerBehavior\"\302\002\n\035" + + "HorizontalPodAutoscalerStatus\022\032\n\022observe" + + "dGeneration\030\001 \001(\003\022A\n\rlastScaleTime\030\002 \001(\013" + + "2*.k8s.io.apimachinery.pkg.apis.meta.v1." + + "Time\022\027\n\017currentReplicas\030\003 \001(\005\022\027\n\017desired" + + "Replicas\030\004 \001(\005\022?\n\016currentMetrics\030\005 \003(\0132\'" + + ".k8s.io.api.autoscaling.v2.MetricStatus\022" + + "O\n\nconditions\030\006 \003(\0132;.k8s.io.api.autosca" + + "ling.v2.HorizontalPodAutoscalerCondition" + + "\"g\n\020MetricIdentifier\022\014\n\004name\030\001 \001(\t\022E\n\010se" + + "lector\030\002 \001(\01323.k8s.io.apimachinery.pkg.a" + + "pis.meta.v1.LabelSelector\"\357\002\n\nMetricSpec" + + "\022\014\n\004type\030\001 \001(\t\022=\n\006object\030\002 \001(\0132-.k8s.io." + + "api.autoscaling.v2.ObjectMetricSource\0229\n" + + "\004pods\030\003 \001(\0132+.k8s.io.api.autoscaling.v2." + + "PodsMetricSource\022A\n\010resource\030\004 \001(\0132/.k8s" + + ".io.api.autoscaling.v2.ResourceMetricSou" + + "rce\022S\n\021containerResource\030\007 \001(\01328.k8s.io." + + "api.autoscaling.v2.ContainerResourceMetr" + + "icSource\022A\n\010external\030\005 \001(\0132/.k8s.io.api." + + "autoscaling.v2.ExternalMetricSource\"\361\002\n\014" + + "MetricStatus\022\014\n\004type\030\001 \001(\t\022=\n\006object\030\002 \001" + "(\0132-.k8s.io.api.autoscaling.v2.ObjectMet" + - "ricSource\0229\n\004pods\030\003 \001(\0132+.k8s.io.api.aut" + - "oscaling.v2.PodsMetricSource\022A\n\010resource" + + "ricStatus\0229\n\004pods\030\003 \001(\0132+.k8s.io.api.aut" + + "oscaling.v2.PodsMetricStatus\022A\n\010resource" + "\030\004 \001(\0132/.k8s.io.api.autoscaling.v2.Resou" + - "rceMetricSource\022S\n\021containerResource\030\007 \001" + + "rceMetricStatus\022S\n\021containerResource\030\007 \001" + "(\01328.k8s.io.api.autoscaling.v2.Container" + - "ResourceMetricSource\022A\n\010external\030\005 \001(\0132/" + + "ResourceMetricStatus\022A\n\010external\030\005 \001(\0132/" + ".k8s.io.api.autoscaling.v2.ExternalMetri" + - "cSource\"\361\002\n\014MetricStatus\022\014\n\004type\030\001 \001(\t\022=" + - "\n\006object\030\002 \001(\0132-.k8s.io.api.autoscaling." + - "v2.ObjectMetricStatus\0229\n\004pods\030\003 \001(\0132+.k8" + - "s.io.api.autoscaling.v2.PodsMetricStatus" + - "\022A\n\010resource\030\004 \001(\0132/.k8s.io.api.autoscal" + - "ing.v2.ResourceMetricStatus\022S\n\021container" + - "Resource\030\007 \001(\01328.k8s.io.api.autoscaling." + - "v2.ContainerResourceMetricStatus\022A\n\010exte" + - "rnal\030\005 \001(\0132/.k8s.io.api.autoscaling.v2.E" + - "xternalMetricStatus\"\275\001\n\014MetricTarget\022\014\n\004" + - "type\030\001 \001(\t\022=\n\005value\030\002 \001(\0132..k8s.io.apima" + - "chinery.pkg.api.resource.Quantity\022D\n\014ave" + - "rageValue\030\003 \001(\0132..k8s.io.apimachinery.pk" + - "g.api.resource.Quantity\022\032\n\022averageUtiliz" + - "ation\030\004 \001(\005\"\264\001\n\021MetricValueStatus\022=\n\005val" + - "ue\030\001 \001(\0132..k8s.io.apimachinery.pkg.api.r" + - "esource.Quantity\022D\n\014averageValue\030\002 \001(\0132." + - ".k8s.io.apimachinery.pkg.api.resource.Qu" + - "antity\022\032\n\022averageUtilization\030\003 \001(\005\"\333\001\n\022O" + - "bjectMetricSource\022O\n\017describedObject\030\001 \001" + - "(\01326.k8s.io.api.autoscaling.v2.CrossVers" + - "ionObjectReference\0227\n\006target\030\002 \001(\0132\'.k8s" + - ".io.api.autoscaling.v2.MetricTarget\022;\n\006m" + - "etric\030\003 \001(\0132+.k8s.io.api.autoscaling.v2." + - "MetricIdentifier\"\341\001\n\022ObjectMetricStatus\022" + - ";\n\006metric\030\001 \001(\0132+.k8s.io.api.autoscaling" + - ".v2.MetricIdentifier\022=\n\007current\030\002 \001(\0132,." + - "k8s.io.api.autoscaling.v2.MetricValueSta" + - "tus\022O\n\017describedObject\030\003 \001(\01326.k8s.io.ap" + - "i.autoscaling.v2.CrossVersionObjectRefer" + - "ence\"\210\001\n\020PodsMetricSource\022;\n\006metric\030\001 \001(" + - "\0132+.k8s.io.api.autoscaling.v2.MetricIden" + - "tifier\0227\n\006target\030\002 \001(\0132\'.k8s.io.api.auto" + - "scaling.v2.MetricTarget\"\216\001\n\020PodsMetricSt" + - "atus\022;\n\006metric\030\001 \001(\0132+.k8s.io.api.autosc" + - "aling.v2.MetricIdentifier\022=\n\007current\030\002 \001" + - "(\0132,.k8s.io.api.autoscaling.v2.MetricVal" + - "ueStatus\"]\n\024ResourceMetricSource\022\014\n\004name" + - "\030\001 \001(\t\0227\n\006target\030\002 \001(\0132\'.k8s.io.api.auto" + - "scaling.v2.MetricTarget\"c\n\024ResourceMetri" + - "cStatus\022\014\n\004name\030\001 \001(\t\022=\n\007current\030\002 \001(\0132," + - ".k8s.io.api.autoscaling.v2.MetricValueSt" + - "atusBF\n\032io.kubernetes.client.protoB\rV2Au" + - "toscalingZ\031k8s.io/api/autoscaling/v2" + "cStatus\"\275\001\n\014MetricTarget\022\014\n\004type\030\001 \001(\t\022=" + + "\n\005value\030\002 \001(\0132..k8s.io.apimachinery.pkg." + + "api.resource.Quantity\022D\n\014averageValue\030\003 " + + "\001(\0132..k8s.io.apimachinery.pkg.api.resour" + + "ce.Quantity\022\032\n\022averageUtilization\030\004 \001(\005\"" + + "\264\001\n\021MetricValueStatus\022=\n\005value\030\001 \001(\0132..k" + + "8s.io.apimachinery.pkg.api.resource.Quan" + + "tity\022D\n\014averageValue\030\002 \001(\0132..k8s.io.apim" + + "achinery.pkg.api.resource.Quantity\022\032\n\022av" + + "erageUtilization\030\003 \001(\005\"\333\001\n\022ObjectMetricS" + + "ource\022O\n\017describedObject\030\001 \001(\01326.k8s.io." + + "api.autoscaling.v2.CrossVersionObjectRef" + + "erence\0227\n\006target\030\002 \001(\0132\'.k8s.io.api.auto" + + "scaling.v2.MetricTarget\022;\n\006metric\030\003 \001(\0132" + + "+.k8s.io.api.autoscaling.v2.MetricIdenti" + + "fier\"\341\001\n\022ObjectMetricStatus\022;\n\006metric\030\001 " + + "\001(\0132+.k8s.io.api.autoscaling.v2.MetricId" + + "entifier\022=\n\007current\030\002 \001(\0132,.k8s.io.api.a" + + "utoscaling.v2.MetricValueStatus\022O\n\017descr" + + "ibedObject\030\003 \001(\01326.k8s.io.api.autoscalin" + + "g.v2.CrossVersionObjectReference\"\210\001\n\020Pod" + + "sMetricSource\022;\n\006metric\030\001 \001(\0132+.k8s.io.a" + + "pi.autoscaling.v2.MetricIdentifier\0227\n\006ta" + + "rget\030\002 \001(\0132\'.k8s.io.api.autoscaling.v2.M" + + "etricTarget\"\216\001\n\020PodsMetricStatus\022;\n\006metr" + + "ic\030\001 \001(\0132+.k8s.io.api.autoscaling.v2.Met" + + "ricIdentifier\022=\n\007current\030\002 \001(\0132,.k8s.io." + + "api.autoscaling.v2.MetricValueStatus\"]\n\024" + + "ResourceMetricSource\022\014\n\004name\030\001 \001(\t\0227\n\006ta" + + "rget\030\002 \001(\0132\'.k8s.io.api.autoscaling.v2.M" + + "etricTarget\"c\n\024ResourceMetricStatus\022\014\n\004n" + + "ame\030\001 \001(\t\022=\n\007current\030\002 \001(\0132,.k8s.io.api." + + "autoscaling.v2.MetricValueStatusBF\n\032io.k" + + "ubernetes.client.protoB\rV2AutoscalingZ\031k" + + "8s.io/api/autoscaling/v2" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { @@ -31853,7 +32016,7 @@ public com.google.protobuf.ExtensionRegistry assignDescriptors( internal_static_k8s_io_api_autoscaling_v2_HorizontalPodAutoscalerCondition_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_k8s_io_api_autoscaling_v2_HorizontalPodAutoscalerCondition_descriptor, - new java.lang.String[] { "Type", "Status", "LastTransitionTime", "Reason", "Message", }); + new java.lang.String[] { "Type", "Status", "LastTransitionTime", "Reason", "Message", "ObservedGeneration", }); internal_static_k8s_io_api_autoscaling_v2_HorizontalPodAutoscalerList_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_k8s_io_api_autoscaling_v2_HorizontalPodAutoscalerList_fieldAccessorTable = new diff --git a/proto/src/main/java/io/kubernetes/client/proto/V2beta1Apidiscovery.java b/proto/src/main/java/io/kubernetes/client/proto/V2beta1Apidiscovery.java new file mode 100644 index 0000000000..0874a6d192 --- /dev/null +++ b/proto/src/main/java/io/kubernetes/client/proto/V2beta1Apidiscovery.java @@ -0,0 +1,8911 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: k8s.io/api/apidiscovery/v2beta1/generated.proto + +package io.kubernetes.client.proto; + +public final class V2beta1Apidiscovery { + private V2beta1Apidiscovery() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface APIGroupDiscoveryOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * metadata is standard object's metadata.
+     * The only field completed will be name. For instance, resourceVersion will be empty.
+     * name is the name of the API group whose discovery information is presented here.
+     * name is allowed to be "" to represent the legacy, ungroupified resources.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * metadata is standard object's metadata.
+     * The only field completed will be name. For instance, resourceVersion will be empty.
+     * name is the name of the API group whose discovery information is presented here.
+     * name is allowed to be "" to represent the legacy, ungroupified resources.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMeta getMetadata(); + /** + *
+     * metadata is standard object's metadata.
+     * The only field completed will be name. For instance, resourceVersion will be empty.
+     * name is the name of the API group whose discovery information is presented here.
+     * name is allowed to be "" to represent the legacy, ungroupified resources.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + java.util.List + getVersionsList(); + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery getVersions(int index); + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + int getVersionsCount(); + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + java.util.List + getVersionsOrBuilderList(); + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscoveryOrBuilder getVersionsOrBuilder( + int index); + } + /** + *
+   * APIGroupDiscovery holds information about which resources are being served for all version of the API Group.
+   * It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version.
+   * Versions are in descending order of preference, with the first version being the preferred entry.
+   * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery} + */ + public static final class APIGroupDiscovery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery) + APIGroupDiscoveryOrBuilder { + private static final long serialVersionUID = 0L; + // Use APIGroupDiscovery.newBuilder() to construct. + private APIGroupDiscovery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private APIGroupDiscovery() { + versions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private APIGroupDiscovery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ObjectMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ObjectMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + versions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + versions_.add( + input.readMessage(io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + versions_ = java.util.Collections.unmodifiableList(versions_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.class, io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_; + /** + *
+     * metadata is standard object's metadata.
+     * The only field completed will be name. For instance, resourceVersion will be empty.
+     * name is the name of the API group whose discovery information is presented here.
+     * name is allowed to be "" to represent the legacy, ungroupified resources.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * metadata is standard object's metadata.
+     * The only field completed will be name. For instance, resourceVersion will be empty.
+     * name is the name of the API group whose discovery information is presented here.
+     * name is allowed to be "" to represent the legacy, ungroupified resources.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * metadata is standard object's metadata.
+     * The only field completed will be name. For instance, resourceVersion will be empty.
+     * name is the name of the API group whose discovery information is presented here.
+     * name is allowed to be "" to represent the legacy, ungroupified resources.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + + public static final int VERSIONS_FIELD_NUMBER = 2; + private java.util.List versions_; + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public java.util.List getVersionsList() { + return versions_; + } + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public java.util.List + getVersionsOrBuilderList() { + return versions_; + } + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public int getVersionsCount() { + return versions_.size(); + } + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery getVersions(int index) { + return versions_.get(index); + } + /** + *
+     * versions are the versions supported in this group. They are sorted in descending order of preference,
+     * with the preferred version being the first entry.
+     * +listType=map
+     * +listMapKey=version
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscoveryOrBuilder getVersionsOrBuilder( + int index) { + return versions_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < versions_.size(); i++) { + output.writeMessage(2, versions_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < versions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, versions_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery other = (io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getVersionsList() + .equals(other.getVersionsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getVersionsCount() > 0) { + hash = (37 * hash) + VERSIONS_FIELD_NUMBER; + hash = (53 * hash) + getVersionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * APIGroupDiscovery holds information about which resources are being served for all version of the API Group.
+     * It contains a list of APIVersionDiscovery that holds a list of APIResourceDiscovery types served for a version.
+     * Versions are in descending order of preference, with the first version being the preferred entry.
+     * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery) + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.class, io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getVersionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (versionsBuilder_ == null) { + versions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + versionsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscovery_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery getDefaultInstanceForType() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery build() { + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery buildPartial() { + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery result = new io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (versionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + versions_ = java.util.Collections.unmodifiableList(versions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.versions_ = versions_; + } else { + result.versions_ = versionsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery) { + return mergeFrom((io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery other) { + if (other == io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (versionsBuilder_ == null) { + if (!other.versions_.isEmpty()) { + if (versions_.isEmpty()) { + versions_ = other.versions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureVersionsIsMutable(); + versions_.addAll(other.versions_); + } + onChanged(); + } + } else { + if (!other.versions_.isEmpty()) { + if (versionsBuilder_.isEmpty()) { + versionsBuilder_.dispose(); + versionsBuilder_ = null; + versions_ = other.versions_; + bitField0_ = (bitField0_ & ~0x00000002); + versionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getVersionsFieldBuilder() : null; + } else { + versionsBuilder_.addAllMessages(other.versions_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ObjectMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> metadataBuilder_; + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ObjectMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ObjectMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ObjectMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ObjectMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * metadata is standard object's metadata.
+       * The only field completed will be name. For instance, resourceVersion will be empty.
+       * name is the name of the API group whose discovery information is presented here.
+       * name is allowed to be "" to represent the legacy, ungroupified resources.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ObjectMeta, io.kubernetes.client.proto.Meta.ObjectMeta.Builder, io.kubernetes.client.proto.Meta.ObjectMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List versions_ = + java.util.Collections.emptyList(); + private void ensureVersionsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + versions_ = new java.util.ArrayList(versions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery, io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.Builder, io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscoveryOrBuilder> versionsBuilder_; + + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public java.util.List getVersionsList() { + if (versionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(versions_); + } else { + return versionsBuilder_.getMessageList(); + } + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public int getVersionsCount() { + if (versionsBuilder_ == null) { + return versions_.size(); + } else { + return versionsBuilder_.getCount(); + } + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery getVersions(int index) { + if (versionsBuilder_ == null) { + return versions_.get(index); + } else { + return versionsBuilder_.getMessage(index); + } + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public Builder setVersions( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery value) { + if (versionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionsIsMutable(); + versions_.set(index, value); + onChanged(); + } else { + versionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public Builder setVersions( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.Builder builderForValue) { + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + versions_.set(index, builderForValue.build()); + onChanged(); + } else { + versionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public Builder addVersions(io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery value) { + if (versionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionsIsMutable(); + versions_.add(value); + onChanged(); + } else { + versionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public Builder addVersions( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery value) { + if (versionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureVersionsIsMutable(); + versions_.add(index, value); + onChanged(); + } else { + versionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public Builder addVersions( + io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.Builder builderForValue) { + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + versions_.add(builderForValue.build()); + onChanged(); + } else { + versionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public Builder addVersions( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.Builder builderForValue) { + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + versions_.add(index, builderForValue.build()); + onChanged(); + } else { + versionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public Builder addAllVersions( + java.lang.Iterable values) { + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, versions_); + onChanged(); + } else { + versionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public Builder clearVersions() { + if (versionsBuilder_ == null) { + versions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + versionsBuilder_.clear(); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public Builder removeVersions(int index) { + if (versionsBuilder_ == null) { + ensureVersionsIsMutable(); + versions_.remove(index); + onChanged(); + } else { + versionsBuilder_.remove(index); + } + return this; + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.Builder getVersionsBuilder( + int index) { + return getVersionsFieldBuilder().getBuilder(index); + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscoveryOrBuilder getVersionsOrBuilder( + int index) { + if (versionsBuilder_ == null) { + return versions_.get(index); } else { + return versionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public java.util.List + getVersionsOrBuilderList() { + if (versionsBuilder_ != null) { + return versionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(versions_); + } + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.Builder addVersionsBuilder() { + return getVersionsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.getDefaultInstance()); + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.Builder addVersionsBuilder( + int index) { + return getVersionsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.getDefaultInstance()); + } + /** + *
+       * versions are the versions supported in this group. They are sorted in descending order of preference,
+       * with the preferred version being the first entry.
+       * +listType=map
+       * +listMapKey=version
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery versions = 2; + */ + public java.util.List + getVersionsBuilderList() { + return getVersionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery, io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.Builder, io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscoveryOrBuilder> + getVersionsFieldBuilder() { + if (versionsBuilder_ == null) { + versionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery, io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.Builder, io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscoveryOrBuilder>( + versions_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + versions_ = null; + } + return versionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery) + private static final io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery(); + } + + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public APIGroupDiscovery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new APIGroupDiscovery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface APIGroupDiscoveryListOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apidiscovery.v2beta1.APIGroupDiscoveryList) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + boolean hasMetadata(); + /** + *
+     * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMeta getMetadata(); + /** + *
+     * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder(); + + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + java.util.List + getItemsList(); + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery getItems(int index); + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + int getItemsCount(); + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryOrBuilder getItemsOrBuilder( + int index); + } + /** + *
+   * APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery.
+   * This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated
+   * list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers)
+   * that a cluster supports.
+   * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2beta1.APIGroupDiscoveryList} + */ + public static final class APIGroupDiscoveryList extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apidiscovery.v2beta1.APIGroupDiscoveryList) + APIGroupDiscoveryListOrBuilder { + private static final long serialVersionUID = 0L; + // Use APIGroupDiscoveryList.newBuilder() to construct. + private APIGroupDiscoveryList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private APIGroupDiscoveryList() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private APIGroupDiscoveryList( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.kubernetes.client.proto.Meta.ListMeta.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = input.readMessage(io.kubernetes.client.proto.Meta.ListMeta.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + items_.add( + input.readMessage(io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscoveryList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscoveryList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList.class, io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList.Builder.class); + } + + private int bitField0_; + public static final int METADATA_FIELD_NUMBER = 1; + private io.kubernetes.client.proto.Meta.ListMeta metadata_; + /** + *
+     * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + /** + *
+     * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+     * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+     * +optional
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public java.util.List getItemsList() { + return items_; + } + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public int getItemsCount() { + return items_.size(); + } + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery getItems(int index) { + return items_.get(index); + } + /** + *
+     * items is the list of groups for discovery. The groups are listed in priority order.
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeMessage(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getMetadata()); + } + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList other = (io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList) obj; + + boolean result = true; + result = result && (hasMetadata() == other.hasMetadata()); + if (hasMetadata()) { + result = result && getMetadata() + .equals(other.getMetadata()); + } + result = result && getItemsList() + .equals(other.getItemsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * APIGroupDiscoveryList is a resource containing a list of APIGroupDiscovery.
+     * This is one of the types able to be returned from the /api and /apis endpoint and contains an aggregated
+     * list of API resources (built-ins, Custom Resource Definitions, resources from aggregated servers)
+     * that a cluster supports.
+     * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2beta1.APIGroupDiscoveryList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apidiscovery.v2beta1.APIGroupDiscoveryList) + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscoveryList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscoveryList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList.class, io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMetadataFieldBuilder(); + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscoveryList_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList getDefaultInstanceForType() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList build() { + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList buildPartial() { + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList result = new io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + if (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList) { + return mergeFrom((io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList other) { + if (other == io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList.getDefaultInstance()) return this; + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000002); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private io.kubernetes.client.proto.Meta.ListMeta metadata_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> metadataBuilder_; + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder setMetadata( + io.kubernetes.client.proto.Meta.ListMeta.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder mergeMetadata(io.kubernetes.client.proto.Meta.ListMeta value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001) && + metadata_ != null && + metadata_ != io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance()) { + metadata_ = + io.kubernetes.client.proto.Meta.ListMeta.newBuilder(metadata_).mergeFrom(value).buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadataBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMeta.Builder getMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + public io.kubernetes.client.proto.Meta.ListMetaOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? + io.kubernetes.client.proto.Meta.ListMeta.getDefaultInstance() : metadata_; + } + } + /** + *
+       * ResourceVersion will not be set, because this does not have a replayable ordering among multiple apiservers.
+       * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
+       * +optional
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.ListMeta, io.kubernetes.client.proto.Meta.ListMeta.Builder, io.kubernetes.client.proto.Meta.ListMetaOrBuilder>( + getMetadata(), + getParentForChildren(), + isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery, io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.Builder, io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryOrBuilder> itemsBuilder_; + + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public Builder setItems( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public Builder addItems(io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public Builder addItems( + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public Builder addItems( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.getDefaultInstance()); + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.getDefaultInstance()); + } + /** + *
+       * items is the list of groups for discovery. The groups are listed in priority order.
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIGroupDiscovery items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery, io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.Builder, io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery, io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscovery.Builder, io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryOrBuilder>( + items_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apidiscovery.v2beta1.APIGroupDiscoveryList) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apidiscovery.v2beta1.APIGroupDiscoveryList) + private static final io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList(); + } + + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public APIGroupDiscoveryList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new APIGroupDiscoveryList(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIGroupDiscoveryList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface APIResourceDiscoveryOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions in the API group.
+     * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+     * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+     * 
+ * + * optional string resource = 1; + */ + boolean hasResource(); + /** + *
+     * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions in the API group.
+     * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+     * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+     * 
+ * + * optional string resource = 1; + */ + java.lang.String getResource(); + /** + *
+     * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions in the API group.
+     * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+     * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+     * 
+ * + * optional string resource = 1; + */ + com.google.protobuf.ByteString + getResourceBytes(); + + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+     * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + boolean hasResponseKind(); + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+     * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + io.kubernetes.client.proto.Meta.GroupVersionKind getResponseKind(); + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+     * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getResponseKindOrBuilder(); + + /** + *
+     * scope indicates the scope of a resource, either Cluster or Namespaced
+     * 
+ * + * optional string scope = 3; + */ + boolean hasScope(); + /** + *
+     * scope indicates the scope of a resource, either Cluster or Namespaced
+     * 
+ * + * optional string scope = 3; + */ + java.lang.String getScope(); + /** + *
+     * scope indicates the scope of a resource, either Cluster or Namespaced
+     * 
+ * + * optional string scope = 3; + */ + com.google.protobuf.ByteString + getScopeBytes(); + + /** + *
+     * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+     * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+     * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+     * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+     * 
+ * + * optional string singularResource = 4; + */ + boolean hasSingularResource(); + /** + *
+     * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+     * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+     * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+     * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+     * 
+ * + * optional string singularResource = 4; + */ + java.lang.String getSingularResource(); + /** + *
+     * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+     * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+     * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+     * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+     * 
+ * + * optional string singularResource = 4; + */ + com.google.protobuf.ByteString + getSingularResourceBytes(); + + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + java.util.List + getVerbsList(); + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + int getVerbsCount(); + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + java.lang.String getVerbs(int index); + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + com.google.protobuf.ByteString + getVerbsBytes(int index); + + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + java.util.List + getShortNamesList(); + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + int getShortNamesCount(); + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + java.lang.String getShortNames(int index); + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + com.google.protobuf.ByteString + getShortNamesBytes(int index); + + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + java.util.List + getCategoriesList(); + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + int getCategoriesCount(); + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + java.lang.String getCategories(int index); + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + com.google.protobuf.ByteString + getCategoriesBytes(int index); + + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + java.util.List + getSubresourcesList(); + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery getSubresources(int index); + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + int getSubresourcesCount(); + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + java.util.List + getSubresourcesOrBuilderList(); + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscoveryOrBuilder getSubresourcesOrBuilder( + int index); + } + /** + *
+   * APIResourceDiscovery provides information about an API resource for discovery.
+   * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery} + */ + public static final class APIResourceDiscovery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery) + APIResourceDiscoveryOrBuilder { + private static final long serialVersionUID = 0L; + // Use APIResourceDiscovery.newBuilder() to construct. + private APIResourceDiscovery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private APIResourceDiscovery() { + resource_ = ""; + scope_ = ""; + singularResource_ = ""; + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + shortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + subresources_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private APIResourceDiscovery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + resource_ = bs; + break; + } + case 18: { + io.kubernetes.client.proto.Meta.GroupVersionKind.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = responseKind_.toBuilder(); + } + responseKind_ = input.readMessage(io.kubernetes.client.proto.Meta.GroupVersionKind.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(responseKind_); + responseKind_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + scope_ = bs; + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000008; + singularResource_ = bs; + break; + } + case 42: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + verbs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000010; + } + verbs_.add(bs); + break; + } + case 50: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + shortNames_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000020; + } + shortNames_.add(bs); + break; + } + case 58: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + categories_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000040; + } + categories_.add(bs); + break; + } + case 66: { + if (!((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + subresources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000080; + } + subresources_.add( + input.readMessage(io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.PARSER, extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + verbs_ = verbs_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000020) == 0x00000020)) { + shortNames_ = shortNames_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000040) == 0x00000040)) { + categories_ = categories_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000080) == 0x00000080)) { + subresources_ = java.util.Collections.unmodifiableList(subresources_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIResourceDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIResourceDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.class, io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.Builder.class); + } + + private int bitField0_; + public static final int RESOURCE_FIELD_NUMBER = 1; + private volatile java.lang.Object resource_; + /** + *
+     * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions in the API group.
+     * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+     * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+     * 
+ * + * optional string resource = 1; + */ + public boolean hasResource() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions in the API group.
+     * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+     * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+     * 
+ * + * optional string resource = 1; + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + resource_ = s; + } + return s; + } + } + /** + *
+     * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions in the API group.
+     * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+     * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+     * 
+ * + * optional string resource = 1; + */ + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSEKIND_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.Meta.GroupVersionKind responseKind_; + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+     * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public boolean hasResponseKind() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+     * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind getResponseKind() { + return responseKind_ == null ? io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+     * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getResponseKindOrBuilder() { + return responseKind_ == null ? io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } + + public static final int SCOPE_FIELD_NUMBER = 3; + private volatile java.lang.Object scope_; + /** + *
+     * scope indicates the scope of a resource, either Cluster or Namespaced
+     * 
+ * + * optional string scope = 3; + */ + public boolean hasScope() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+     * scope indicates the scope of a resource, either Cluster or Namespaced
+     * 
+ * + * optional string scope = 3; + */ + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + scope_ = s; + } + return s; + } + } + /** + *
+     * scope indicates the scope of a resource, either Cluster or Namespaced
+     * 
+ * + * optional string scope = 3; + */ + public com.google.protobuf.ByteString + getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SINGULARRESOURCE_FIELD_NUMBER = 4; + private volatile java.lang.Object singularResource_; + /** + *
+     * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+     * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+     * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+     * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+     * 
+ * + * optional string singularResource = 4; + */ + public boolean hasSingularResource() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+     * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+     * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+     * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+     * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+     * 
+ * + * optional string singularResource = 4; + */ + public java.lang.String getSingularResource() { + java.lang.Object ref = singularResource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + singularResource_ = s; + } + return s; + } + } + /** + *
+     * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+     * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+     * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+     * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+     * 
+ * + * optional string singularResource = 4; + */ + public com.google.protobuf.ByteString + getSingularResourceBytes() { + java.lang.Object ref = singularResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + singularResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERBS_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList verbs_; + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + public com.google.protobuf.ProtocolStringList + getVerbsList() { + return verbs_; + } + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + public int getVerbsCount() { + return verbs_.size(); + } + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + public java.lang.String getVerbs(int index) { + return verbs_.get(index); + } + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy).
+     * +listType=set
+     * 
+ * + * repeated string verbs = 5; + */ + public com.google.protobuf.ByteString + getVerbsBytes(int index) { + return verbs_.getByteString(index); + } + + public static final int SHORTNAMES_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList shortNames_; + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + public com.google.protobuf.ProtocolStringList + getShortNamesList() { + return shortNames_; + } + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + public int getShortNamesCount() { + return shortNames_.size(); + } + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + public java.lang.String getShortNames(int index) { + return shortNames_.get(index); + } + /** + *
+     * shortNames is a list of suggested short names of the resource.
+     * +listType=set
+     * 
+ * + * repeated string shortNames = 6; + */ + public com.google.protobuf.ByteString + getShortNamesBytes(int index) { + return shortNames_.getByteString(index); + } + + public static final int CATEGORIES_FIELD_NUMBER = 7; + private com.google.protobuf.LazyStringList categories_; + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + public com.google.protobuf.ProtocolStringList + getCategoriesList() { + return categories_; + } + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + public int getCategoriesCount() { + return categories_.size(); + } + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + public java.lang.String getCategories(int index) { + return categories_.get(index); + } + /** + *
+     * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+     * Clients may use this to simplify acting on multiple resource types at once.
+     * +listType=set
+     * 
+ * + * repeated string categories = 7; + */ + public com.google.protobuf.ByteString + getCategoriesBytes(int index) { + return categories_.getByteString(index); + } + + public static final int SUBRESOURCES_FIELD_NUMBER = 8; + private java.util.List subresources_; + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public java.util.List getSubresourcesList() { + return subresources_; + } + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public java.util.List + getSubresourcesOrBuilderList() { + return subresources_; + } + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public int getSubresourcesCount() { + return subresources_.size(); + } + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery getSubresources(int index) { + return subresources_.get(index); + } + /** + *
+     * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+     * +listType=map
+     * +listMapKey=subresource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscoveryOrBuilder getSubresourcesOrBuilder( + int index) { + return subresources_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getResponseKind()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, scope_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, singularResource_); + } + for (int i = 0; i < verbs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, verbs_.getRaw(i)); + } + for (int i = 0; i < shortNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, shortNames_.getRaw(i)); + } + for (int i = 0; i < categories_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, categories_.getRaw(i)); + } + for (int i = 0; i < subresources_.size(); i++) { + output.writeMessage(8, subresources_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getResponseKind()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, scope_); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, singularResource_); + } + { + int dataSize = 0; + for (int i = 0; i < verbs_.size(); i++) { + dataSize += computeStringSizeNoTag(verbs_.getRaw(i)); + } + size += dataSize; + size += 1 * getVerbsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < shortNames_.size(); i++) { + dataSize += computeStringSizeNoTag(shortNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getShortNamesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < categories_.size(); i++) { + dataSize += computeStringSizeNoTag(categories_.getRaw(i)); + } + size += dataSize; + size += 1 * getCategoriesList().size(); + } + for (int i = 0; i < subresources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, subresources_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery other = (io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery) obj; + + boolean result = true; + result = result && (hasResource() == other.hasResource()); + if (hasResource()) { + result = result && getResource() + .equals(other.getResource()); + } + result = result && (hasResponseKind() == other.hasResponseKind()); + if (hasResponseKind()) { + result = result && getResponseKind() + .equals(other.getResponseKind()); + } + result = result && (hasScope() == other.hasScope()); + if (hasScope()) { + result = result && getScope() + .equals(other.getScope()); + } + result = result && (hasSingularResource() == other.hasSingularResource()); + if (hasSingularResource()) { + result = result && getSingularResource() + .equals(other.getSingularResource()); + } + result = result && getVerbsList() + .equals(other.getVerbsList()); + result = result && getShortNamesList() + .equals(other.getShortNamesList()); + result = result && getCategoriesList() + .equals(other.getCategoriesList()); + result = result && getSubresourcesList() + .equals(other.getSubresourcesList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasResource()) { + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + } + if (hasResponseKind()) { + hash = (37 * hash) + RESPONSEKIND_FIELD_NUMBER; + hash = (53 * hash) + getResponseKind().hashCode(); + } + if (hasScope()) { + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getScope().hashCode(); + } + if (hasSingularResource()) { + hash = (37 * hash) + SINGULARRESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSingularResource().hashCode(); + } + if (getVerbsCount() > 0) { + hash = (37 * hash) + VERBS_FIELD_NUMBER; + hash = (53 * hash) + getVerbsList().hashCode(); + } + if (getShortNamesCount() > 0) { + hash = (37 * hash) + SHORTNAMES_FIELD_NUMBER; + hash = (53 * hash) + getShortNamesList().hashCode(); + } + if (getCategoriesCount() > 0) { + hash = (37 * hash) + CATEGORIES_FIELD_NUMBER; + hash = (53 * hash) + getCategoriesList().hashCode(); + } + if (getSubresourcesCount() > 0) { + hash = (37 * hash) + SUBRESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getSubresourcesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * APIResourceDiscovery provides information about an API resource for discovery.
+     * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery) + io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscoveryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIResourceDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIResourceDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.class, io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResponseKindFieldBuilder(); + getSubresourcesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + resource_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (responseKindBuilder_ == null) { + responseKind_ = null; + } else { + responseKindBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + scope_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + singularResource_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + shortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + if (subresourcesBuilder_ == null) { + subresources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + } else { + subresourcesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIResourceDiscovery_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery getDefaultInstanceForType() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery build() { + io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery buildPartial() { + io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery result = new io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.resource_ = resource_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (responseKindBuilder_ == null) { + result.responseKind_ = responseKind_; + } else { + result.responseKind_ = responseKindBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000004; + } + result.scope_ = scope_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000008; + } + result.singularResource_ = singularResource_; + if (((bitField0_ & 0x00000010) == 0x00000010)) { + verbs_ = verbs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.verbs_ = verbs_; + if (((bitField0_ & 0x00000020) == 0x00000020)) { + shortNames_ = shortNames_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.shortNames_ = shortNames_; + if (((bitField0_ & 0x00000040) == 0x00000040)) { + categories_ = categories_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.categories_ = categories_; + if (subresourcesBuilder_ == null) { + if (((bitField0_ & 0x00000080) == 0x00000080)) { + subresources_ = java.util.Collections.unmodifiableList(subresources_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.subresources_ = subresources_; + } else { + result.subresources_ = subresourcesBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery) { + return mergeFrom((io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery other) { + if (other == io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.getDefaultInstance()) return this; + if (other.hasResource()) { + bitField0_ |= 0x00000001; + resource_ = other.resource_; + onChanged(); + } + if (other.hasResponseKind()) { + mergeResponseKind(other.getResponseKind()); + } + if (other.hasScope()) { + bitField0_ |= 0x00000004; + scope_ = other.scope_; + onChanged(); + } + if (other.hasSingularResource()) { + bitField0_ |= 0x00000008; + singularResource_ = other.singularResource_; + onChanged(); + } + if (!other.verbs_.isEmpty()) { + if (verbs_.isEmpty()) { + verbs_ = other.verbs_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureVerbsIsMutable(); + verbs_.addAll(other.verbs_); + } + onChanged(); + } + if (!other.shortNames_.isEmpty()) { + if (shortNames_.isEmpty()) { + shortNames_ = other.shortNames_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureShortNamesIsMutable(); + shortNames_.addAll(other.shortNames_); + } + onChanged(); + } + if (!other.categories_.isEmpty()) { + if (categories_.isEmpty()) { + categories_ = other.categories_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureCategoriesIsMutable(); + categories_.addAll(other.categories_); + } + onChanged(); + } + if (subresourcesBuilder_ == null) { + if (!other.subresources_.isEmpty()) { + if (subresources_.isEmpty()) { + subresources_ = other.subresources_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureSubresourcesIsMutable(); + subresources_.addAll(other.subresources_); + } + onChanged(); + } + } else { + if (!other.subresources_.isEmpty()) { + if (subresourcesBuilder_.isEmpty()) { + subresourcesBuilder_.dispose(); + subresourcesBuilder_ = null; + subresources_ = other.subresources_; + bitField0_ = (bitField0_ & ~0x00000080); + subresourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getSubresourcesFieldBuilder() : null; + } else { + subresourcesBuilder_.addAllMessages(other.subresources_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object resource_ = ""; + /** + *
+       * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions in the API group.
+       * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+       * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+       * 
+ * + * optional string resource = 1; + */ + public boolean hasResource() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions in the API group.
+       * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+       * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+       * 
+ * + * optional string resource = 1; + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + resource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions in the API group.
+       * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+       * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+       * 
+ * + * optional string resource = 1; + */ + public com.google.protobuf.ByteString + getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions in the API group.
+       * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+       * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+       * 
+ * + * optional string resource = 1; + */ + public Builder setResource( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + resource_ = value; + onChanged(); + return this; + } + /** + *
+       * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions in the API group.
+       * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+       * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+       * 
+ * + * optional string resource = 1; + */ + public Builder clearResource() { + bitField0_ = (bitField0_ & ~0x00000001); + resource_ = getDefaultInstance().getResource(); + onChanged(); + return this; + } + /** + *
+       * resource is the plural name of the resource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions in the API group.
+       * Resources with non-empty groups are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>
+       * Resources with empty groups are located at /api/v1/<APIResourceDiscovery.Resource>
+       * 
+ * + * optional string resource = 1; + */ + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + resource_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.Meta.GroupVersionKind responseKind_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder> responseKindBuilder_; + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public boolean hasResponseKind() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind getResponseKind() { + if (responseKindBuilder_ == null) { + return responseKind_ == null ? io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } else { + return responseKindBuilder_.getMessage(); + } + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder setResponseKind(io.kubernetes.client.proto.Meta.GroupVersionKind value) { + if (responseKindBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + responseKind_ = value; + onChanged(); + } else { + responseKindBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder setResponseKind( + io.kubernetes.client.proto.Meta.GroupVersionKind.Builder builderForValue) { + if (responseKindBuilder_ == null) { + responseKind_ = builderForValue.build(); + onChanged(); + } else { + responseKindBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder mergeResponseKind(io.kubernetes.client.proto.Meta.GroupVersionKind value) { + if (responseKindBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + responseKind_ != null && + responseKind_ != io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance()) { + responseKind_ = + io.kubernetes.client.proto.Meta.GroupVersionKind.newBuilder(responseKind_).mergeFrom(value).buildPartial(); + } else { + responseKind_ = value; + } + onChanged(); + } else { + responseKindBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder clearResponseKind() { + if (responseKindBuilder_ == null) { + responseKind_ = null; + onChanged(); + } else { + responseKindBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind.Builder getResponseKindBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getResponseKindFieldBuilder().getBuilder(); + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getResponseKindOrBuilder() { + if (responseKindBuilder_ != null) { + return responseKindBuilder_.getMessageOrBuilder(); + } else { + return responseKind_ == null ? + io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * APIs may return other objects types at their discretion, such as error conditions, requests for alternate representations, or other operation specific behavior.
+       * This value will be null or empty if an APIService reports subresources but supports no operations on the parent resource
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder> + getResponseKindFieldBuilder() { + if (responseKindBuilder_ == null) { + responseKindBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder>( + getResponseKind(), + getParentForChildren(), + isClean()); + responseKind_ = null; + } + return responseKindBuilder_; + } + + private java.lang.Object scope_ = ""; + /** + *
+       * scope indicates the scope of a resource, either Cluster or Namespaced
+       * 
+ * + * optional string scope = 3; + */ + public boolean hasScope() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * scope indicates the scope of a resource, either Cluster or Namespaced
+       * 
+ * + * optional string scope = 3; + */ + public java.lang.String getScope() { + java.lang.Object ref = scope_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + scope_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * scope indicates the scope of a resource, either Cluster or Namespaced
+       * 
+ * + * optional string scope = 3; + */ + public com.google.protobuf.ByteString + getScopeBytes() { + java.lang.Object ref = scope_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + scope_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * scope indicates the scope of a resource, either Cluster or Namespaced
+       * 
+ * + * optional string scope = 3; + */ + public Builder setScope( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + scope_ = value; + onChanged(); + return this; + } + /** + *
+       * scope indicates the scope of a resource, either Cluster or Namespaced
+       * 
+ * + * optional string scope = 3; + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000004); + scope_ = getDefaultInstance().getScope(); + onChanged(); + return this; + } + /** + *
+       * scope indicates the scope of a resource, either Cluster or Namespaced
+       * 
+ * + * optional string scope = 3; + */ + public Builder setScopeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + scope_ = value; + onChanged(); + return this; + } + + private java.lang.Object singularResource_ = ""; + /** + *
+       * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+       * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+       * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+       * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+       * 
+ * + * optional string singularResource = 4; + */ + public boolean hasSingularResource() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + *
+       * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+       * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+       * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+       * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+       * 
+ * + * optional string singularResource = 4; + */ + public java.lang.String getSingularResource() { + java.lang.Object ref = singularResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + singularResource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+       * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+       * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+       * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+       * 
+ * + * optional string singularResource = 4; + */ + public com.google.protobuf.ByteString + getSingularResourceBytes() { + java.lang.Object ref = singularResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + singularResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+       * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+       * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+       * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+       * 
+ * + * optional string singularResource = 4; + */ + public Builder setSingularResource( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + singularResource_ = value; + onChanged(); + return this; + } + /** + *
+       * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+       * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+       * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+       * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+       * 
+ * + * optional string singularResource = 4; + */ + public Builder clearSingularResource() { + bitField0_ = (bitField0_ & ~0x00000008); + singularResource_ = getDefaultInstance().getSingularResource(); + onChanged(); + return this; + } + /** + *
+       * singularResource is the singular name of the resource.  This allows clients to handle plural and singular opaquely.
+       * For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
+       * The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
+       * The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
+       * 
+ * + * optional string singularResource = 4; + */ + public Builder setSingularResourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + singularResource_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureVerbsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + verbs_ = new com.google.protobuf.LazyStringArrayList(verbs_); + bitField0_ |= 0x00000010; + } + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public com.google.protobuf.ProtocolStringList + getVerbsList() { + return verbs_.getUnmodifiableView(); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public int getVerbsCount() { + return verbs_.size(); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public java.lang.String getVerbs(int index) { + return verbs_.get(index); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public com.google.protobuf.ByteString + getVerbsBytes(int index) { + return verbs_.getByteString(index); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public Builder setVerbs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public Builder addVerbs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.add(value); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public Builder addAllVerbs( + java.lang.Iterable values) { + ensureVerbsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, verbs_); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public Builder clearVerbs() { + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy).
+       * +listType=set
+       * 
+ * + * repeated string verbs = 5; + */ + public Builder addVerbsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList shortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureShortNamesIsMutable() { + if (!((bitField0_ & 0x00000020) == 0x00000020)) { + shortNames_ = new com.google.protobuf.LazyStringArrayList(shortNames_); + bitField0_ |= 0x00000020; + } + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public com.google.protobuf.ProtocolStringList + getShortNamesList() { + return shortNames_.getUnmodifiableView(); + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public int getShortNamesCount() { + return shortNames_.size(); + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public java.lang.String getShortNames(int index) { + return shortNames_.get(index); + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public com.google.protobuf.ByteString + getShortNamesBytes(int index) { + return shortNames_.getByteString(index); + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public Builder setShortNames( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureShortNamesIsMutable(); + shortNames_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public Builder addShortNames( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureShortNamesIsMutable(); + shortNames_.add(value); + onChanged(); + return this; + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public Builder addAllShortNames( + java.lang.Iterable values) { + ensureShortNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, shortNames_); + onChanged(); + return this; + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public Builder clearShortNames() { + shortNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+       * shortNames is a list of suggested short names of the resource.
+       * +listType=set
+       * 
+ * + * repeated string shortNames = 6; + */ + public Builder addShortNamesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureShortNamesIsMutable(); + shortNames_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureCategoriesIsMutable() { + if (!((bitField0_ & 0x00000040) == 0x00000040)) { + categories_ = new com.google.protobuf.LazyStringArrayList(categories_); + bitField0_ |= 0x00000040; + } + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public com.google.protobuf.ProtocolStringList + getCategoriesList() { + return categories_.getUnmodifiableView(); + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public int getCategoriesCount() { + return categories_.size(); + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public java.lang.String getCategories(int index) { + return categories_.get(index); + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public com.google.protobuf.ByteString + getCategoriesBytes(int index) { + return categories_.getByteString(index); + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public Builder setCategories( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoriesIsMutable(); + categories_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public Builder addCategories( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoriesIsMutable(); + categories_.add(value); + onChanged(); + return this; + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public Builder addAllCategories( + java.lang.Iterable values) { + ensureCategoriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, categories_); + onChanged(); + return this; + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public Builder clearCategories() { + categories_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + *
+       * categories is a list of the grouped resources this resource belongs to (e.g. 'all').
+       * Clients may use this to simplify acting on multiple resource types at once.
+       * +listType=set
+       * 
+ * + * repeated string categories = 7; + */ + public Builder addCategoriesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureCategoriesIsMutable(); + categories_.add(value); + onChanged(); + return this; + } + + private java.util.List subresources_ = + java.util.Collections.emptyList(); + private void ensureSubresourcesIsMutable() { + if (!((bitField0_ & 0x00000080) == 0x00000080)) { + subresources_ = new java.util.ArrayList(subresources_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery, io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.Builder, io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscoveryOrBuilder> subresourcesBuilder_; + + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public java.util.List getSubresourcesList() { + if (subresourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(subresources_); + } else { + return subresourcesBuilder_.getMessageList(); + } + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public int getSubresourcesCount() { + if (subresourcesBuilder_ == null) { + return subresources_.size(); + } else { + return subresourcesBuilder_.getCount(); + } + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery getSubresources(int index) { + if (subresourcesBuilder_ == null) { + return subresources_.get(index); + } else { + return subresourcesBuilder_.getMessage(index); + } + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public Builder setSubresources( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery value) { + if (subresourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubresourcesIsMutable(); + subresources_.set(index, value); + onChanged(); + } else { + subresourcesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public Builder setSubresources( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.Builder builderForValue) { + if (subresourcesBuilder_ == null) { + ensureSubresourcesIsMutable(); + subresources_.set(index, builderForValue.build()); + onChanged(); + } else { + subresourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public Builder addSubresources(io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery value) { + if (subresourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubresourcesIsMutable(); + subresources_.add(value); + onChanged(); + } else { + subresourcesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public Builder addSubresources( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery value) { + if (subresourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubresourcesIsMutable(); + subresources_.add(index, value); + onChanged(); + } else { + subresourcesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public Builder addSubresources( + io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.Builder builderForValue) { + if (subresourcesBuilder_ == null) { + ensureSubresourcesIsMutable(); + subresources_.add(builderForValue.build()); + onChanged(); + } else { + subresourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public Builder addSubresources( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.Builder builderForValue) { + if (subresourcesBuilder_ == null) { + ensureSubresourcesIsMutable(); + subresources_.add(index, builderForValue.build()); + onChanged(); + } else { + subresourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public Builder addAllSubresources( + java.lang.Iterable values) { + if (subresourcesBuilder_ == null) { + ensureSubresourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, subresources_); + onChanged(); + } else { + subresourcesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public Builder clearSubresources() { + if (subresourcesBuilder_ == null) { + subresources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + subresourcesBuilder_.clear(); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public Builder removeSubresources(int index) { + if (subresourcesBuilder_ == null) { + ensureSubresourcesIsMutable(); + subresources_.remove(index); + onChanged(); + } else { + subresourcesBuilder_.remove(index); + } + return this; + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.Builder getSubresourcesBuilder( + int index) { + return getSubresourcesFieldBuilder().getBuilder(index); + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscoveryOrBuilder getSubresourcesOrBuilder( + int index) { + if (subresourcesBuilder_ == null) { + return subresources_.get(index); } else { + return subresourcesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public java.util.List + getSubresourcesOrBuilderList() { + if (subresourcesBuilder_ != null) { + return subresourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subresources_); + } + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.Builder addSubresourcesBuilder() { + return getSubresourcesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.getDefaultInstance()); + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.Builder addSubresourcesBuilder( + int index) { + return getSubresourcesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.getDefaultInstance()); + } + /** + *
+       * subresources is a list of subresources provided by this resource. Subresources are located at /apis/<APIGroupDiscovery.objectMeta.name>/<APIVersionDiscovery.version>/<APIResourceDiscovery.Resource>/name-of-instance/<APIResourceDiscovery.subresources[i].subresource>
+       * +listType=map
+       * +listMapKey=subresource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery subresources = 8; + */ + public java.util.List + getSubresourcesBuilderList() { + return getSubresourcesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery, io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.Builder, io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscoveryOrBuilder> + getSubresourcesFieldBuilder() { + if (subresourcesBuilder_ == null) { + subresourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery, io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.Builder, io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscoveryOrBuilder>( + subresources_, + ((bitField0_ & 0x00000080) == 0x00000080), + getParentForChildren(), + isClean()); + subresources_ = null; + } + return subresourcesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery) + private static final io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery(); + } + + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public APIResourceDiscovery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new APIResourceDiscovery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface APISubresourceDiscoveryOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions.
+     * 
+ * + * optional string subresource = 1; + */ + boolean hasSubresource(); + /** + *
+     * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions.
+     * 
+ * + * optional string subresource = 1; + */ + java.lang.String getSubresource(); + /** + *
+     * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions.
+     * 
+ * + * optional string subresource = 1; + */ + com.google.protobuf.ByteString + getSubresourceBytes(); + + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * Some subresources do not return normal resources, these will have null or empty return types.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + boolean hasResponseKind(); + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * Some subresources do not return normal resources, these will have null or empty return types.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + io.kubernetes.client.proto.Meta.GroupVersionKind getResponseKind(); + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * Some subresources do not return normal resources, these will have null or empty return types.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getResponseKindOrBuilder(); + + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + java.util.List + getAcceptedTypesList(); + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + io.kubernetes.client.proto.Meta.GroupVersionKind getAcceptedTypes(int index); + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + int getAcceptedTypesCount(); + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + java.util.List + getAcceptedTypesOrBuilderList(); + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getAcceptedTypesOrBuilder( + int index); + + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + java.util.List + getVerbsList(); + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + int getVerbsCount(); + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + java.lang.String getVerbs(int index); + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + com.google.protobuf.ByteString + getVerbsBytes(int index); + } + /** + *
+   * APISubresourceDiscovery provides information about an API subresource for discovery.
+   * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery} + */ + public static final class APISubresourceDiscovery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery) + APISubresourceDiscoveryOrBuilder { + private static final long serialVersionUID = 0L; + // Use APISubresourceDiscovery.newBuilder() to construct. + private APISubresourceDiscovery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private APISubresourceDiscovery() { + subresource_ = ""; + acceptedTypes_ = java.util.Collections.emptyList(); + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private APISubresourceDiscovery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + subresource_ = bs; + break; + } + case 18: { + io.kubernetes.client.proto.Meta.GroupVersionKind.Builder subBuilder = null; + if (((bitField0_ & 0x00000002) == 0x00000002)) { + subBuilder = responseKind_.toBuilder(); + } + responseKind_ = input.readMessage(io.kubernetes.client.proto.Meta.GroupVersionKind.PARSER, extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(responseKind_); + responseKind_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + acceptedTypes_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000004; + } + acceptedTypes_.add( + input.readMessage(io.kubernetes.client.proto.Meta.GroupVersionKind.PARSER, extensionRegistry)); + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + verbs_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000008; + } + verbs_.add(bs); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + acceptedTypes_ = java.util.Collections.unmodifiableList(acceptedTypes_); + } + if (((mutable_bitField0_ & 0x00000008) == 0x00000008)) { + verbs_ = verbs_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APISubresourceDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APISubresourceDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.class, io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.Builder.class); + } + + private int bitField0_; + public static final int SUBRESOURCE_FIELD_NUMBER = 1; + private volatile java.lang.Object subresource_; + /** + *
+     * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions.
+     * 
+ * + * optional string subresource = 1; + */ + public boolean hasSubresource() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions.
+     * 
+ * + * optional string subresource = 1; + */ + public java.lang.String getSubresource() { + java.lang.Object ref = subresource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + subresource_ = s; + } + return s; + } + } + /** + *
+     * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+     * for this resource across all versions.
+     * 
+ * + * optional string subresource = 1; + */ + public com.google.protobuf.ByteString + getSubresourceBytes() { + java.lang.Object ref = subresource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subresource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESPONSEKIND_FIELD_NUMBER = 2; + private io.kubernetes.client.proto.Meta.GroupVersionKind responseKind_; + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * Some subresources do not return normal resources, these will have null or empty return types.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public boolean hasResponseKind() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * Some subresources do not return normal resources, these will have null or empty return types.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind getResponseKind() { + return responseKind_ == null ? io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } + /** + *
+     * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+     * Some subresources do not return normal resources, these will have null or empty return types.
+     * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getResponseKindOrBuilder() { + return responseKind_ == null ? io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } + + public static final int ACCEPTEDTYPES_FIELD_NUMBER = 3; + private java.util.List acceptedTypes_; + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public java.util.List getAcceptedTypesList() { + return acceptedTypes_; + } + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public java.util.List + getAcceptedTypesOrBuilderList() { + return acceptedTypes_; + } + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public int getAcceptedTypesCount() { + return acceptedTypes_.size(); + } + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind getAcceptedTypes(int index) { + return acceptedTypes_.get(index); + } + /** + *
+     * acceptedTypes describes the kinds that this endpoint accepts.
+     * Subresources may accept the standard content types or define
+     * custom negotiation schemes. The list may not be exhaustive for
+     * all operations.
+     * +listType=map
+     * +listMapKey=group
+     * +listMapKey=version
+     * +listMapKey=kind
+     * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getAcceptedTypesOrBuilder( + int index) { + return acceptedTypes_.get(index); + } + + public static final int VERBS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList verbs_; + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + public com.google.protobuf.ProtocolStringList + getVerbsList() { + return verbs_; + } + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + public int getVerbsCount() { + return verbs_.size(); + } + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + public java.lang.String getVerbs(int index) { + return verbs_.get(index); + } + /** + *
+     * verbs is a list of supported API operation types (this includes
+     * but is not limited to get, list, watch, create, update, patch,
+     * delete, deletecollection, and proxy). Subresources may define
+     * custom verbs outside the standard Kubernetes verb set. Clients
+     * should expect the behavior of standard verbs to align with
+     * Kubernetes interaction conventions.
+     * +listType=set
+     * 
+ * + * repeated string verbs = 4; + */ + public com.google.protobuf.ByteString + getVerbsBytes(int index) { + return verbs_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subresource_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeMessage(2, getResponseKind()); + } + for (int i = 0; i < acceptedTypes_.size(); i++) { + output.writeMessage(3, acceptedTypes_.get(i)); + } + for (int i = 0; i < verbs_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verbs_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subresource_); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getResponseKind()); + } + for (int i = 0; i < acceptedTypes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, acceptedTypes_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < verbs_.size(); i++) { + dataSize += computeStringSizeNoTag(verbs_.getRaw(i)); + } + size += dataSize; + size += 1 * getVerbsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery other = (io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery) obj; + + boolean result = true; + result = result && (hasSubresource() == other.hasSubresource()); + if (hasSubresource()) { + result = result && getSubresource() + .equals(other.getSubresource()); + } + result = result && (hasResponseKind() == other.hasResponseKind()); + if (hasResponseKind()) { + result = result && getResponseKind() + .equals(other.getResponseKind()); + } + result = result && getAcceptedTypesList() + .equals(other.getAcceptedTypesList()); + result = result && getVerbsList() + .equals(other.getVerbsList()); + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasSubresource()) { + hash = (37 * hash) + SUBRESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSubresource().hashCode(); + } + if (hasResponseKind()) { + hash = (37 * hash) + RESPONSEKIND_FIELD_NUMBER; + hash = (53 * hash) + getResponseKind().hashCode(); + } + if (getAcceptedTypesCount() > 0) { + hash = (37 * hash) + ACCEPTEDTYPES_FIELD_NUMBER; + hash = (53 * hash) + getAcceptedTypesList().hashCode(); + } + if (getVerbsCount() > 0) { + hash = (37 * hash) + VERBS_FIELD_NUMBER; + hash = (53 * hash) + getVerbsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * APISubresourceDiscovery provides information about an API subresource for discovery.
+     * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery) + io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscoveryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APISubresourceDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APISubresourceDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.class, io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResponseKindFieldBuilder(); + getAcceptedTypesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + subresource_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (responseKindBuilder_ == null) { + responseKind_ = null; + } else { + responseKindBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (acceptedTypesBuilder_ == null) { + acceptedTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + } else { + acceptedTypesBuilder_.clear(); + } + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APISubresourceDiscovery_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery getDefaultInstanceForType() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery build() { + io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery buildPartial() { + io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery result = new io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.subresource_ = subresource_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + if (responseKindBuilder_ == null) { + result.responseKind_ = responseKind_; + } else { + result.responseKind_ = responseKindBuilder_.build(); + } + if (acceptedTypesBuilder_ == null) { + if (((bitField0_ & 0x00000004) == 0x00000004)) { + acceptedTypes_ = java.util.Collections.unmodifiableList(acceptedTypes_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.acceptedTypes_ = acceptedTypes_; + } else { + result.acceptedTypes_ = acceptedTypesBuilder_.build(); + } + if (((bitField0_ & 0x00000008) == 0x00000008)) { + verbs_ = verbs_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.verbs_ = verbs_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery) { + return mergeFrom((io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery other) { + if (other == io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery.getDefaultInstance()) return this; + if (other.hasSubresource()) { + bitField0_ |= 0x00000001; + subresource_ = other.subresource_; + onChanged(); + } + if (other.hasResponseKind()) { + mergeResponseKind(other.getResponseKind()); + } + if (acceptedTypesBuilder_ == null) { + if (!other.acceptedTypes_.isEmpty()) { + if (acceptedTypes_.isEmpty()) { + acceptedTypes_ = other.acceptedTypes_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAcceptedTypesIsMutable(); + acceptedTypes_.addAll(other.acceptedTypes_); + } + onChanged(); + } + } else { + if (!other.acceptedTypes_.isEmpty()) { + if (acceptedTypesBuilder_.isEmpty()) { + acceptedTypesBuilder_.dispose(); + acceptedTypesBuilder_ = null; + acceptedTypes_ = other.acceptedTypes_; + bitField0_ = (bitField0_ & ~0x00000004); + acceptedTypesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAcceptedTypesFieldBuilder() : null; + } else { + acceptedTypesBuilder_.addAllMessages(other.acceptedTypes_); + } + } + } + if (!other.verbs_.isEmpty()) { + if (verbs_.isEmpty()) { + verbs_ = other.verbs_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureVerbsIsMutable(); + verbs_.addAll(other.verbs_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object subresource_ = ""; + /** + *
+       * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions.
+       * 
+ * + * optional string subresource = 1; + */ + public boolean hasSubresource() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions.
+       * 
+ * + * optional string subresource = 1; + */ + public java.lang.String getSubresource() { + java.lang.Object ref = subresource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + subresource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions.
+       * 
+ * + * optional string subresource = 1; + */ + public com.google.protobuf.ByteString + getSubresourceBytes() { + java.lang.Object ref = subresource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subresource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions.
+       * 
+ * + * optional string subresource = 1; + */ + public Builder setSubresource( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + subresource_ = value; + onChanged(); + return this; + } + /** + *
+       * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions.
+       * 
+ * + * optional string subresource = 1; + */ + public Builder clearSubresource() { + bitField0_ = (bitField0_ & ~0x00000001); + subresource_ = getDefaultInstance().getSubresource(); + onChanged(); + return this; + } + /** + *
+       * subresource is the name of the subresource.  This is used in the URL path and is the unique identifier
+       * for this resource across all versions.
+       * 
+ * + * optional string subresource = 1; + */ + public Builder setSubresourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + subresource_ = value; + onChanged(); + return this; + } + + private io.kubernetes.client.proto.Meta.GroupVersionKind responseKind_ = null; + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder> responseKindBuilder_; + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public boolean hasResponseKind() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind getResponseKind() { + if (responseKindBuilder_ == null) { + return responseKind_ == null ? io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } else { + return responseKindBuilder_.getMessage(); + } + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder setResponseKind(io.kubernetes.client.proto.Meta.GroupVersionKind value) { + if (responseKindBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + responseKind_ = value; + onChanged(); + } else { + responseKindBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder setResponseKind( + io.kubernetes.client.proto.Meta.GroupVersionKind.Builder builderForValue) { + if (responseKindBuilder_ == null) { + responseKind_ = builderForValue.build(); + onChanged(); + } else { + responseKindBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder mergeResponseKind(io.kubernetes.client.proto.Meta.GroupVersionKind value) { + if (responseKindBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002) && + responseKind_ != null && + responseKind_ != io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance()) { + responseKind_ = + io.kubernetes.client.proto.Meta.GroupVersionKind.newBuilder(responseKind_).mergeFrom(value).buildPartial(); + } else { + responseKind_ = value; + } + onChanged(); + } else { + responseKindBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public Builder clearResponseKind() { + if (responseKindBuilder_ == null) { + responseKind_ = null; + onChanged(); + } else { + responseKindBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind.Builder getResponseKindBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getResponseKindFieldBuilder().getBuilder(); + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getResponseKindOrBuilder() { + if (responseKindBuilder_ != null) { + return responseKindBuilder_.getMessageOrBuilder(); + } else { + return responseKind_ == null ? + io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance() : responseKind_; + } + } + /** + *
+       * responseKind describes the group, version, and kind of the serialization schema for the object type this endpoint typically returns.
+       * Some subresources do not return normal resources, these will have null or empty return types.
+       * 
+ * + * optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind responseKind = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder> + getResponseKindFieldBuilder() { + if (responseKindBuilder_ == null) { + responseKindBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder>( + getResponseKind(), + getParentForChildren(), + isClean()); + responseKind_ = null; + } + return responseKindBuilder_; + } + + private java.util.List acceptedTypes_ = + java.util.Collections.emptyList(); + private void ensureAcceptedTypesIsMutable() { + if (!((bitField0_ & 0x00000004) == 0x00000004)) { + acceptedTypes_ = new java.util.ArrayList(acceptedTypes_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder> acceptedTypesBuilder_; + + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public java.util.List getAcceptedTypesList() { + if (acceptedTypesBuilder_ == null) { + return java.util.Collections.unmodifiableList(acceptedTypes_); + } else { + return acceptedTypesBuilder_.getMessageList(); + } + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public int getAcceptedTypesCount() { + if (acceptedTypesBuilder_ == null) { + return acceptedTypes_.size(); + } else { + return acceptedTypesBuilder_.getCount(); + } + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind getAcceptedTypes(int index) { + if (acceptedTypesBuilder_ == null) { + return acceptedTypes_.get(index); + } else { + return acceptedTypesBuilder_.getMessage(index); + } + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder setAcceptedTypes( + int index, io.kubernetes.client.proto.Meta.GroupVersionKind value) { + if (acceptedTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceptedTypesIsMutable(); + acceptedTypes_.set(index, value); + onChanged(); + } else { + acceptedTypesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder setAcceptedTypes( + int index, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder builderForValue) { + if (acceptedTypesBuilder_ == null) { + ensureAcceptedTypesIsMutable(); + acceptedTypes_.set(index, builderForValue.build()); + onChanged(); + } else { + acceptedTypesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder addAcceptedTypes(io.kubernetes.client.proto.Meta.GroupVersionKind value) { + if (acceptedTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceptedTypesIsMutable(); + acceptedTypes_.add(value); + onChanged(); + } else { + acceptedTypesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder addAcceptedTypes( + int index, io.kubernetes.client.proto.Meta.GroupVersionKind value) { + if (acceptedTypesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAcceptedTypesIsMutable(); + acceptedTypes_.add(index, value); + onChanged(); + } else { + acceptedTypesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder addAcceptedTypes( + io.kubernetes.client.proto.Meta.GroupVersionKind.Builder builderForValue) { + if (acceptedTypesBuilder_ == null) { + ensureAcceptedTypesIsMutable(); + acceptedTypes_.add(builderForValue.build()); + onChanged(); + } else { + acceptedTypesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder addAcceptedTypes( + int index, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder builderForValue) { + if (acceptedTypesBuilder_ == null) { + ensureAcceptedTypesIsMutable(); + acceptedTypes_.add(index, builderForValue.build()); + onChanged(); + } else { + acceptedTypesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder addAllAcceptedTypes( + java.lang.Iterable values) { + if (acceptedTypesBuilder_ == null) { + ensureAcceptedTypesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, acceptedTypes_); + onChanged(); + } else { + acceptedTypesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder clearAcceptedTypes() { + if (acceptedTypesBuilder_ == null) { + acceptedTypes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + acceptedTypesBuilder_.clear(); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public Builder removeAcceptedTypes(int index) { + if (acceptedTypesBuilder_ == null) { + ensureAcceptedTypesIsMutable(); + acceptedTypes_.remove(index); + onChanged(); + } else { + acceptedTypesBuilder_.remove(index); + } + return this; + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind.Builder getAcceptedTypesBuilder( + int index) { + return getAcceptedTypesFieldBuilder().getBuilder(index); + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder getAcceptedTypesOrBuilder( + int index) { + if (acceptedTypesBuilder_ == null) { + return acceptedTypes_.get(index); } else { + return acceptedTypesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public java.util.List + getAcceptedTypesOrBuilderList() { + if (acceptedTypesBuilder_ != null) { + return acceptedTypesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(acceptedTypes_); + } + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind.Builder addAcceptedTypesBuilder() { + return getAcceptedTypesFieldBuilder().addBuilder( + io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance()); + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public io.kubernetes.client.proto.Meta.GroupVersionKind.Builder addAcceptedTypesBuilder( + int index) { + return getAcceptedTypesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.Meta.GroupVersionKind.getDefaultInstance()); + } + /** + *
+       * acceptedTypes describes the kinds that this endpoint accepts.
+       * Subresources may accept the standard content types or define
+       * custom negotiation schemes. The list may not be exhaustive for
+       * all operations.
+       * +listType=map
+       * +listMapKey=group
+       * +listMapKey=version
+       * +listMapKey=kind
+       * 
+ * + * repeated .k8s.io.apimachinery.pkg.apis.meta.v1.GroupVersionKind acceptedTypes = 3; + */ + public java.util.List + getAcceptedTypesBuilderList() { + return getAcceptedTypesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder> + getAcceptedTypesFieldBuilder() { + if (acceptedTypesBuilder_ == null) { + acceptedTypesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.Meta.GroupVersionKind, io.kubernetes.client.proto.Meta.GroupVersionKind.Builder, io.kubernetes.client.proto.Meta.GroupVersionKindOrBuilder>( + acceptedTypes_, + ((bitField0_ & 0x00000004) == 0x00000004), + getParentForChildren(), + isClean()); + acceptedTypes_ = null; + } + return acceptedTypesBuilder_; + } + + private com.google.protobuf.LazyStringList verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureVerbsIsMutable() { + if (!((bitField0_ & 0x00000008) == 0x00000008)) { + verbs_ = new com.google.protobuf.LazyStringArrayList(verbs_); + bitField0_ |= 0x00000008; + } + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public com.google.protobuf.ProtocolStringList + getVerbsList() { + return verbs_.getUnmodifiableView(); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public int getVerbsCount() { + return verbs_.size(); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public java.lang.String getVerbs(int index) { + return verbs_.get(index); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public com.google.protobuf.ByteString + getVerbsBytes(int index) { + return verbs_.getByteString(index); + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public Builder setVerbs( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.set(index, value); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public Builder addVerbs( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.add(value); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public Builder addAllVerbs( + java.lang.Iterable values) { + ensureVerbsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, verbs_); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public Builder clearVerbs() { + verbs_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+       * verbs is a list of supported API operation types (this includes
+       * but is not limited to get, list, watch, create, update, patch,
+       * delete, deletecollection, and proxy). Subresources may define
+       * custom verbs outside the standard Kubernetes verb set. Clients
+       * should expect the behavior of standard verbs to align with
+       * Kubernetes interaction conventions.
+       * +listType=set
+       * 
+ * + * repeated string verbs = 4; + */ + public Builder addVerbsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVerbsIsMutable(); + verbs_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apidiscovery.v2beta1.APISubresourceDiscovery) + private static final io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery(); + } + + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public APISubresourceDiscovery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new APISubresourceDiscovery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APISubresourceDiscovery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface APIVersionDiscoveryOrBuilder extends + // @@protoc_insertion_point(interface_extends:k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * version is the name of the version within a group version.
+     * 
+ * + * optional string version = 1; + */ + boolean hasVersion(); + /** + *
+     * version is the name of the version within a group version.
+     * 
+ * + * optional string version = 1; + */ + java.lang.String getVersion(); + /** + *
+     * version is the name of the version within a group version.
+     * 
+ * + * optional string version = 1; + */ + com.google.protobuf.ByteString + getVersionBytes(); + + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + java.util.List + getResourcesList(); + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery getResources(int index); + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + int getResourcesCount(); + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + java.util.List + getResourcesOrBuilderList(); + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscoveryOrBuilder getResourcesOrBuilder( + int index); + + /** + *
+     * freshness marks whether a group version's discovery document is up to date.
+     * "Current" indicates the discovery document was recently
+     * refreshed. "Stale" indicates the discovery document could not
+     * be retrieved and the returned discovery document may be
+     * significantly out of date. Clients that require the latest
+     * version of the discovery information be retrieved before
+     * performing an operation should not use the aggregated document
+     * 
+ * + * optional string freshness = 3; + */ + boolean hasFreshness(); + /** + *
+     * freshness marks whether a group version's discovery document is up to date.
+     * "Current" indicates the discovery document was recently
+     * refreshed. "Stale" indicates the discovery document could not
+     * be retrieved and the returned discovery document may be
+     * significantly out of date. Clients that require the latest
+     * version of the discovery information be retrieved before
+     * performing an operation should not use the aggregated document
+     * 
+ * + * optional string freshness = 3; + */ + java.lang.String getFreshness(); + /** + *
+     * freshness marks whether a group version's discovery document is up to date.
+     * "Current" indicates the discovery document was recently
+     * refreshed. "Stale" indicates the discovery document could not
+     * be retrieved and the returned discovery document may be
+     * significantly out of date. Clients that require the latest
+     * version of the discovery information be retrieved before
+     * performing an operation should not use the aggregated document
+     * 
+ * + * optional string freshness = 3; + */ + com.google.protobuf.ByteString + getFreshnessBytes(); + } + /** + *
+   * APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.
+   * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery} + */ + public static final class APIVersionDiscovery extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery) + APIVersionDiscoveryOrBuilder { + private static final long serialVersionUID = 0L; + // Use APIVersionDiscovery.newBuilder() to construct. + private APIVersionDiscovery(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private APIVersionDiscovery() { + version_ = ""; + resources_ = java.util.Collections.emptyList(); + freshness_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private APIVersionDiscovery( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + version_ = bs; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + resources_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + resources_.add( + input.readMessage(io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.PARSER, extensionRegistry)); + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + freshness_ = bs; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + resources_ = java.util.Collections.unmodifiableList(resources_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIVersionDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIVersionDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.class, io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.Builder.class); + } + + private int bitField0_; + public static final int VERSION_FIELD_NUMBER = 1; + private volatile java.lang.Object version_; + /** + *
+     * version is the name of the version within a group version.
+     * 
+ * + * optional string version = 1; + */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+     * version is the name of the version within a group version.
+     * 
+ * + * optional string version = 1; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + version_ = s; + } + return s; + } + } + /** + *
+     * version is the name of the version within a group version.
+     * 
+ * + * optional string version = 1; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCES_FIELD_NUMBER = 2; + private java.util.List resources_; + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public java.util.List getResourcesList() { + return resources_; + } + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public java.util.List + getResourcesOrBuilderList() { + return resources_; + } + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public int getResourcesCount() { + return resources_.size(); + } + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery getResources(int index) { + return resources_.get(index); + } + /** + *
+     * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+     * +listType=map
+     * +listMapKey=resource
+     * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscoveryOrBuilder getResourcesOrBuilder( + int index) { + return resources_.get(index); + } + + public static final int FRESHNESS_FIELD_NUMBER = 3; + private volatile java.lang.Object freshness_; + /** + *
+     * freshness marks whether a group version's discovery document is up to date.
+     * "Current" indicates the discovery document was recently
+     * refreshed. "Stale" indicates the discovery document could not
+     * be retrieved and the returned discovery document may be
+     * significantly out of date. Clients that require the latest
+     * version of the discovery information be retrieved before
+     * performing an operation should not use the aggregated document
+     * 
+ * + * optional string freshness = 3; + */ + public boolean hasFreshness() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + *
+     * freshness marks whether a group version's discovery document is up to date.
+     * "Current" indicates the discovery document was recently
+     * refreshed. "Stale" indicates the discovery document could not
+     * be retrieved and the returned discovery document may be
+     * significantly out of date. Clients that require the latest
+     * version of the discovery information be retrieved before
+     * performing an operation should not use the aggregated document
+     * 
+ * + * optional string freshness = 3; + */ + public java.lang.String getFreshness() { + java.lang.Object ref = freshness_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + freshness_ = s; + } + return s; + } + } + /** + *
+     * freshness marks whether a group version's discovery document is up to date.
+     * "Current" indicates the discovery document was recently
+     * refreshed. "Stale" indicates the discovery document could not
+     * be retrieved and the returned discovery document may be
+     * significantly out of date. Clients that require the latest
+     * version of the discovery information be retrieved before
+     * performing an operation should not use the aggregated document
+     * 
+ * + * optional string freshness = 3; + */ + public com.google.protobuf.ByteString + getFreshnessBytes() { + java.lang.Object ref = freshness_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + freshness_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, version_); + } + for (int i = 0; i < resources_.size(); i++) { + output.writeMessage(2, resources_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, freshness_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, version_); + } + for (int i = 0; i < resources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, resources_.get(i)); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, freshness_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery)) { + return super.equals(obj); + } + io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery other = (io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery) obj; + + boolean result = true; + result = result && (hasVersion() == other.hasVersion()); + if (hasVersion()) { + result = result && getVersion() + .equals(other.getVersion()); + } + result = result && getResourcesList() + .equals(other.getResourcesList()); + result = result && (hasFreshness() == other.hasFreshness()); + if (hasFreshness()) { + result = result && getFreshness() + .equals(other.getFreshness()); + } + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion().hashCode(); + } + if (getResourcesCount() > 0) { + hash = (37 * hash) + RESOURCES_FIELD_NUMBER; + hash = (53 * hash) + getResourcesList().hashCode(); + } + if (hasFreshness()) { + hash = (37 * hash) + FRESHNESS_FIELD_NUMBER; + hash = (53 * hash) + getFreshness().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * APIVersionDiscovery holds a list of APIResourceDiscovery types that are served for a particular version within an API Group.
+     * 
+ * + * Protobuf type {@code k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery) + io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscoveryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIVersionDiscovery_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIVersionDiscovery_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.class, io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.Builder.class); + } + + // Construct using io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getResourcesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + version_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (resourcesBuilder_ == null) { + resources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + resourcesBuilder_.clear(); + } + freshness_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.internal_static_k8s_io_api_apidiscovery_v2beta1_APIVersionDiscovery_descriptor; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery getDefaultInstanceForType() { + return io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.getDefaultInstance(); + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery build() { + io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery buildPartial() { + io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery result = new io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.version_ = version_; + if (resourcesBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + resources_ = java.util.Collections.unmodifiableList(resources_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.resources_ = resources_; + } else { + result.resources_ = resourcesBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + result.freshness_ = freshness_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return (Builder) super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return (Builder) super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return (Builder) super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return (Builder) super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return (Builder) super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery) { + return mergeFrom((io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery other) { + if (other == io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery.getDefaultInstance()) return this; + if (other.hasVersion()) { + bitField0_ |= 0x00000001; + version_ = other.version_; + onChanged(); + } + if (resourcesBuilder_ == null) { + if (!other.resources_.isEmpty()) { + if (resources_.isEmpty()) { + resources_ = other.resources_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureResourcesIsMutable(); + resources_.addAll(other.resources_); + } + onChanged(); + } + } else { + if (!other.resources_.isEmpty()) { + if (resourcesBuilder_.isEmpty()) { + resourcesBuilder_.dispose(); + resourcesBuilder_ = null; + resources_ = other.resources_; + bitField0_ = (bitField0_ & ~0x00000002); + resourcesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getResourcesFieldBuilder() : null; + } else { + resourcesBuilder_.addAllMessages(other.resources_); + } + } + } + if (other.hasFreshness()) { + bitField0_ |= 0x00000004; + freshness_ = other.freshness_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object version_ = ""; + /** + *
+       * version is the name of the version within a group version.
+       * 
+ * + * optional string version = 1; + */ + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + *
+       * version is the name of the version within a group version.
+       * 
+ * + * optional string version = 1; + */ + public java.lang.String getVersion() { + java.lang.Object ref = version_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + version_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * version is the name of the version within a group version.
+       * 
+ * + * optional string version = 1; + */ + public com.google.protobuf.ByteString + getVersionBytes() { + java.lang.Object ref = version_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + version_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * version is the name of the version within a group version.
+       * 
+ * + * optional string version = 1; + */ + public Builder setVersion( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + version_ = value; + onChanged(); + return this; + } + /** + *
+       * version is the name of the version within a group version.
+       * 
+ * + * optional string version = 1; + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + version_ = getDefaultInstance().getVersion(); + onChanged(); + return this; + } + /** + *
+       * version is the name of the version within a group version.
+       * 
+ * + * optional string version = 1; + */ + public Builder setVersionBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + version_ = value; + onChanged(); + return this; + } + + private java.util.List resources_ = + java.util.Collections.emptyList(); + private void ensureResourcesIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + resources_ = new java.util.ArrayList(resources_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery, io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.Builder, io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscoveryOrBuilder> resourcesBuilder_; + + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public java.util.List getResourcesList() { + if (resourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(resources_); + } else { + return resourcesBuilder_.getMessageList(); + } + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public int getResourcesCount() { + if (resourcesBuilder_ == null) { + return resources_.size(); + } else { + return resourcesBuilder_.getCount(); + } + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery getResources(int index) { + if (resourcesBuilder_ == null) { + return resources_.get(index); + } else { + return resourcesBuilder_.getMessage(index); + } + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public Builder setResources( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.set(index, value); + onChanged(); + } else { + resourcesBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public Builder setResources( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.set(index, builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public Builder addResources(io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(value); + onChanged(); + } else { + resourcesBuilder_.addMessage(value); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public Builder addResources( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery value) { + if (resourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourcesIsMutable(); + resources_.add(index, value); + onChanged(); + } else { + resourcesBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public Builder addResources( + io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public Builder addResources( + int index, io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.Builder builderForValue) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.add(index, builderForValue.build()); + onChanged(); + } else { + resourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public Builder addAllResources( + java.lang.Iterable values) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, resources_); + onChanged(); + } else { + resourcesBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public Builder clearResources() { + if (resourcesBuilder_ == null) { + resources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + resourcesBuilder_.clear(); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public Builder removeResources(int index) { + if (resourcesBuilder_ == null) { + ensureResourcesIsMutable(); + resources_.remove(index); + onChanged(); + } else { + resourcesBuilder_.remove(index); + } + return this; + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.Builder getResourcesBuilder( + int index) { + return getResourcesFieldBuilder().getBuilder(index); + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscoveryOrBuilder getResourcesOrBuilder( + int index) { + if (resourcesBuilder_ == null) { + return resources_.get(index); } else { + return resourcesBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public java.util.List + getResourcesOrBuilderList() { + if (resourcesBuilder_ != null) { + return resourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(resources_); + } + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.Builder addResourcesBuilder() { + return getResourcesFieldBuilder().addBuilder( + io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.getDefaultInstance()); + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.Builder addResourcesBuilder( + int index) { + return getResourcesFieldBuilder().addBuilder( + index, io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.getDefaultInstance()); + } + /** + *
+       * resources is a list of APIResourceDiscovery objects for the corresponding group version.
+       * +listType=map
+       * +listMapKey=resource
+       * 
+ * + * repeated .k8s.io.api.apidiscovery.v2beta1.APIResourceDiscovery resources = 2; + */ + public java.util.List + getResourcesBuilderList() { + return getResourcesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery, io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.Builder, io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscoveryOrBuilder> + getResourcesFieldBuilder() { + if (resourcesBuilder_ == null) { + resourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery, io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscovery.Builder, io.kubernetes.client.proto.V2beta1Apidiscovery.APIResourceDiscoveryOrBuilder>( + resources_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + resources_ = null; + } + return resourcesBuilder_; + } + + private java.lang.Object freshness_ = ""; + /** + *
+       * freshness marks whether a group version's discovery document is up to date.
+       * "Current" indicates the discovery document was recently
+       * refreshed. "Stale" indicates the discovery document could not
+       * be retrieved and the returned discovery document may be
+       * significantly out of date. Clients that require the latest
+       * version of the discovery information be retrieved before
+       * performing an operation should not use the aggregated document
+       * 
+ * + * optional string freshness = 3; + */ + public boolean hasFreshness() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + *
+       * freshness marks whether a group version's discovery document is up to date.
+       * "Current" indicates the discovery document was recently
+       * refreshed. "Stale" indicates the discovery document could not
+       * be retrieved and the returned discovery document may be
+       * significantly out of date. Clients that require the latest
+       * version of the discovery information be retrieved before
+       * performing an operation should not use the aggregated document
+       * 
+ * + * optional string freshness = 3; + */ + public java.lang.String getFreshness() { + java.lang.Object ref = freshness_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + freshness_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+       * freshness marks whether a group version's discovery document is up to date.
+       * "Current" indicates the discovery document was recently
+       * refreshed. "Stale" indicates the discovery document could not
+       * be retrieved and the returned discovery document may be
+       * significantly out of date. Clients that require the latest
+       * version of the discovery information be retrieved before
+       * performing an operation should not use the aggregated document
+       * 
+ * + * optional string freshness = 3; + */ + public com.google.protobuf.ByteString + getFreshnessBytes() { + java.lang.Object ref = freshness_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + freshness_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+       * freshness marks whether a group version's discovery document is up to date.
+       * "Current" indicates the discovery document was recently
+       * refreshed. "Stale" indicates the discovery document could not
+       * be retrieved and the returned discovery document may be
+       * significantly out of date. Clients that require the latest
+       * version of the discovery information be retrieved before
+       * performing an operation should not use the aggregated document
+       * 
+ * + * optional string freshness = 3; + */ + public Builder setFreshness( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + freshness_ = value; + onChanged(); + return this; + } + /** + *
+       * freshness marks whether a group version's discovery document is up to date.
+       * "Current" indicates the discovery document was recently
+       * refreshed. "Stale" indicates the discovery document could not
+       * be retrieved and the returned discovery document may be
+       * significantly out of date. Clients that require the latest
+       * version of the discovery information be retrieved before
+       * performing an operation should not use the aggregated document
+       * 
+ * + * optional string freshness = 3; + */ + public Builder clearFreshness() { + bitField0_ = (bitField0_ & ~0x00000004); + freshness_ = getDefaultInstance().getFreshness(); + onChanged(); + return this; + } + /** + *
+       * freshness marks whether a group version's discovery document is up to date.
+       * "Current" indicates the discovery document was recently
+       * refreshed. "Stale" indicates the discovery document could not
+       * be retrieved and the returned discovery document may be
+       * significantly out of date. Clients that require the latest
+       * version of the discovery information be retrieved before
+       * performing an operation should not use the aggregated document
+       * 
+ * + * optional string freshness = 3; + */ + public Builder setFreshnessBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + freshness_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery) + } + + // @@protoc_insertion_point(class_scope:k8s.io.api.apidiscovery.v2beta1.APIVersionDiscovery) + private static final io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery(); + } + + public static io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + @java.lang.Deprecated public static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public APIVersionDiscovery parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new APIVersionDiscovery(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.kubernetes.client.proto.V2beta1Apidiscovery.APIVersionDiscovery getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscovery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscovery_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscoveryList_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscoveryList_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apidiscovery_v2beta1_APIResourceDiscovery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apidiscovery_v2beta1_APIResourceDiscovery_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apidiscovery_v2beta1_APISubresourceDiscovery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apidiscovery_v2beta1_APISubresourceDiscovery_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_k8s_io_api_apidiscovery_v2beta1_APIVersionDiscovery_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_k8s_io_api_apidiscovery_v2beta1_APIVersionDiscovery_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n/k8s.io/api/apidiscovery/v2beta1/genera" + + "ted.proto\022\037k8s.io.api.apidiscovery.v2bet" + + "a1\0324k8s.io/apimachinery/pkg/apis/meta/v1" + + "/generated.proto\032/k8s.io/apimachinery/pk" + + "g/runtime/generated.proto\0326k8s.io/apimac" + + "hinery/pkg/runtime/schema/generated.prot" + + "o\"\237\001\n\021APIGroupDiscovery\022B\n\010metadata\030\001 \001(" + + "\01320.k8s.io.apimachinery.pkg.apis.meta.v1" + + ".ObjectMeta\022F\n\010versions\030\002 \003(\01324.k8s.io.a" + + "pi.apidiscovery.v2beta1.APIVersionDiscov" + + "ery\"\234\001\n\025APIGroupDiscoveryList\022@\n\010metadat" + + "a\030\001 \001(\0132..k8s.io.apimachinery.pkg.apis.m" + + "eta.v1.ListMeta\022A\n\005items\030\002 \003(\01322.k8s.io." + + "api.apidiscovery.v2beta1.APIGroupDiscove" + + "ry\"\246\002\n\024APIResourceDiscovery\022\020\n\010resource\030" + + "\001 \001(\t\022L\n\014responseKind\030\002 \001(\01326.k8s.io.api" + + "machinery.pkg.apis.meta.v1.GroupVersionK" + + "ind\022\r\n\005scope\030\003 \001(\t\022\030\n\020singularResource\030\004" + + " \001(\t\022\r\n\005verbs\030\005 \003(\t\022\022\n\nshortNames\030\006 \003(\t\022" + + "\022\n\ncategories\030\007 \003(\t\022N\n\014subresources\030\010 \003(" + + "\01328.k8s.io.api.apidiscovery.v2beta1.APIS" + + "ubresourceDiscovery\"\332\001\n\027APISubresourceDi" + + "scovery\022\023\n\013subresource\030\001 \001(\t\022L\n\014response" + + "Kind\030\002 \001(\01326.k8s.io.apimachinery.pkg.api" + + "s.meta.v1.GroupVersionKind\022M\n\racceptedTy" + + "pes\030\003 \003(\01326.k8s.io.apimachinery.pkg.apis" + + ".meta.v1.GroupVersionKind\022\r\n\005verbs\030\004 \003(\t" + + "\"\203\001\n\023APIVersionDiscovery\022\017\n\007version\030\001 \001(" + + "\t\022H\n\tresources\030\002 \003(\01325.k8s.io.api.apidis" + + "covery.v2beta1.APIResourceDiscovery\022\021\n\tf" + + "reshness\030\003 \001(\tBR\n\032io.kubernetes.client.p" + + "rotoB\023V2beta1ApidiscoveryZ\037k8s.io/api/ap" + + "idiscovery/v2beta1" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + io.kubernetes.client.proto.Meta.getDescriptor(), + io.kubernetes.client.proto.Runtime.getDescriptor(), + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(), + }, assigner); + internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscovery_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscovery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscovery_descriptor, + new java.lang.String[] { "Metadata", "Versions", }); + internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscoveryList_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscoveryList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apidiscovery_v2beta1_APIGroupDiscoveryList_descriptor, + new java.lang.String[] { "Metadata", "Items", }); + internal_static_k8s_io_api_apidiscovery_v2beta1_APIResourceDiscovery_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_k8s_io_api_apidiscovery_v2beta1_APIResourceDiscovery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apidiscovery_v2beta1_APIResourceDiscovery_descriptor, + new java.lang.String[] { "Resource", "ResponseKind", "Scope", "SingularResource", "Verbs", "ShortNames", "Categories", "Subresources", }); + internal_static_k8s_io_api_apidiscovery_v2beta1_APISubresourceDiscovery_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_k8s_io_api_apidiscovery_v2beta1_APISubresourceDiscovery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apidiscovery_v2beta1_APISubresourceDiscovery_descriptor, + new java.lang.String[] { "Subresource", "ResponseKind", "AcceptedTypes", "Verbs", }); + internal_static_k8s_io_api_apidiscovery_v2beta1_APIVersionDiscovery_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_k8s_io_api_apidiscovery_v2beta1_APIVersionDiscovery_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_k8s_io_api_apidiscovery_v2beta1_APIVersionDiscovery_descriptor, + new java.lang.String[] { "Version", "Resources", "Freshness", }); + io.kubernetes.client.proto.Meta.getDescriptor(); + io.kubernetes.client.proto.Runtime.getDescriptor(); + io.kubernetes.client.proto.RuntimeSchema.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +}